@xmachines/play-react 1.0.0-beta.25 → 1.0.0-beta.26
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/README.md +4 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -92,8 +92,8 @@ const machine = setup({
|
|
|
92
92
|
context: {} as {
|
|
93
93
|
isAuthenticated: boolean;
|
|
94
94
|
username: string | null;
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
params: Record<string, string>;
|
|
96
|
+
query: Record<string, string>;
|
|
97
97
|
},
|
|
98
98
|
events: {} as
|
|
99
99
|
| { type: "auth.login"; username: string }
|
|
@@ -104,7 +104,7 @@ const machine = setup({
|
|
|
104
104
|
formatPlayRouteTransitions({
|
|
105
105
|
id: "app",
|
|
106
106
|
initial: "login",
|
|
107
|
-
context: { isAuthenticated: false, username: null,
|
|
107
|
+
context: { isAuthenticated: false, username: null, params: {}, query: {} },
|
|
108
108
|
states: {
|
|
109
109
|
login: {
|
|
110
110
|
id: "login",
|
|
@@ -301,7 +301,7 @@ When using `formatPlayRouteTransitions`, URL path parameters flow automatically
|
|
|
301
301
|
|
|
302
302
|
```ts
|
|
303
303
|
// spec: { section: undefined, user: "alice" }
|
|
304
|
-
// After play.route to /settings/profile → context.
|
|
304
|
+
// After play.route to /settings/profile → context.params = { section: "profile" }
|
|
305
305
|
// Component receives: { section: "profile", user: "alice" }
|
|
306
306
|
```
|
|
307
307
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmachines/play-react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.26",
|
|
4
4
|
"description": "React renderer for XMachines Play architecture with signal-driven rendering",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"actor",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"prepublishOnly": "npm run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@xmachines/play": "1.0.0-beta.
|
|
49
|
-
"@xmachines/play-actor": "1.0.0-beta.
|
|
50
|
-
"@xmachines/play-signals": "1.0.0-beta.
|
|
48
|
+
"@xmachines/play": "1.0.0-beta.26",
|
|
49
|
+
"@xmachines/play-actor": "1.0.0-beta.26",
|
|
50
|
+
"@xmachines/play-signals": "1.0.0-beta.26"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@json-render/core": "^0.16.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@types/node": "^25.5.0",
|
|
59
59
|
"@types/react": "^19.2.14",
|
|
60
60
|
"@types/react-dom": "^19.2.3",
|
|
61
|
-
"@xmachines/shared": "1.0.0-beta.
|
|
61
|
+
"@xmachines/shared": "1.0.0-beta.26",
|
|
62
62
|
"@xstate/store": ">=3.17.0",
|
|
63
63
|
"jsdom": "^29.0.1",
|
|
64
64
|
"oxfmt": "^0.43.0",
|