create-sygnal-app 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sygnal-app",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Scaffold a new Sygnal project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  import { xs, ABORT } from 'sygnal'
2
- import type { Component } from 'sygnal'
2
+ import type { RootComponent } from 'sygnal'
3
3
  import TaskItem from './TaskItem'
4
4
 
5
5
  type State = {
@@ -18,7 +18,7 @@ type Calculated = {
18
18
  remaining: number
19
19
  }
20
20
 
21
- type App = Component<State, {}, {}, Actions, Calculated>
21
+ type App = RootComponent<State, {}, Actions, Calculated>
22
22
 
23
23
  const App: App = function ({ state }) {
24
24
  return (
@@ -1,10 +1,10 @@
1
- import type { Component } from 'sygnal'
1
+ import type { RootComponent } from 'sygnal'
2
2
 
3
3
  type State = {
4
4
  description: string
5
5
  }
6
6
 
7
- type Page = Component<State>
7
+ type Page = RootComponent<State>
8
8
 
9
9
  const Page: Page = function ({ state }) {
10
10
  return (
@@ -1,5 +1,5 @@
1
1
  import { ABORT } from 'sygnal'
2
- import type { Component } from 'sygnal'
2
+ import type { RootComponent } from 'sygnal'
3
3
 
4
4
  type State = {
5
5
  count: number
@@ -11,7 +11,7 @@ type Actions = {
11
11
  RESET: Event
12
12
  }
13
13
 
14
- type Page = Component<State, {}, {}, Actions>
14
+ type Page = RootComponent<State, {}, Actions>
15
15
 
16
16
  const Page: Page = function ({ state }) {
17
17
  return (
@@ -1,5 +1,5 @@
1
1
  import { xs, ABORT } from 'sygnal'
2
- import type { Component } from 'sygnal'
2
+ import type { RootComponent } from 'sygnal'
3
3
  import TaskItem from './components/TaskItem'
4
4
 
5
5
  type State = {
@@ -18,7 +18,7 @@ type Calculated = {
18
18
  remaining: number
19
19
  }
20
20
 
21
- type App = Component<State, {}, {}, Actions, Calculated>
21
+ type App = RootComponent<State, {}, Actions, Calculated>
22
22
 
23
23
  const App: App = function ({ state }) {
24
24
  return (