@xmachines/play-vue 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/dist/PlayRenderer.vue.d.ts +49 -0
- package/dist/PlayRenderer.vue.d.ts.map +1 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -104,8 +104,8 @@ export const machine = setup({
|
|
|
104
104
|
context: {} as {
|
|
105
105
|
isAuthenticated: boolean;
|
|
106
106
|
username: string | null;
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
params: Record<string, string>;
|
|
108
|
+
query: Record<string, string>;
|
|
109
109
|
},
|
|
110
110
|
events: {} as
|
|
111
111
|
| { type: "auth.login"; username: string }
|
|
@@ -116,7 +116,7 @@ export const machine = setup({
|
|
|
116
116
|
formatPlayRouteTransitions({
|
|
117
117
|
id: "app",
|
|
118
118
|
initial: "login",
|
|
119
|
-
context: { isAuthenticated: false, username: null,
|
|
119
|
+
context: { isAuthenticated: false, username: null, params: {}, query: {} },
|
|
120
120
|
states: {
|
|
121
121
|
login: {
|
|
122
122
|
id: "login",
|
|
@@ -270,7 +270,7 @@ When using `formatPlayRouteTransitions`, URL path parameters flow automatically
|
|
|
270
270
|
|
|
271
271
|
```ts
|
|
272
272
|
// spec: { section: undefined, user: "alice" }
|
|
273
|
-
// After play.route to /settings/profile → context.
|
|
273
|
+
// After play.route to /settings/profile → context.params = { section: "profile" }
|
|
274
274
|
// Component receives: { section: "profile", user: "alice" }
|
|
275
275
|
```
|
|
276
276
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AbstractActor, Viewable } from '@xmachines/play-actor';
|
|
3
|
+
import { AnyActorLogic } from 'xstate';
|
|
4
|
+
import { ComponentRegistry } from '@json-render/vue';
|
|
5
|
+
import { StateStore } from '@json-render/core';
|
|
6
|
+
declare const _default: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<{
|
|
7
|
+
actor: {
|
|
8
|
+
type: PropType<AbstractActor<AnyActorLogic> & Viewable>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
registry: {
|
|
12
|
+
type: PropType<ComponentRegistry>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
store: {
|
|
16
|
+
type: PropType<StateStore>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
actions: {
|
|
20
|
+
type: PropType<Record<string, string>>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
}>, () => import('vue', { with: { "resolution-mode": "import" } }).VNode<import('vue', { with: { "resolution-mode": "import" } }).RendererNode, import('vue', { with: { "resolution-mode": "import" } }).RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}> | import('vue', { with: { "resolution-mode": "import" } }).VNode<import('vue', { with: { "resolution-mode": "import" } }).RendererNode, import('vue', { with: { "resolution-mode": "import" } }).RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>[] | null, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<{
|
|
28
|
+
actor: {
|
|
29
|
+
type: PropType<AbstractActor<AnyActorLogic> & Viewable>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
registry: {
|
|
33
|
+
type: PropType<ComponentRegistry>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
store: {
|
|
37
|
+
type: PropType<StateStore>;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
actions: {
|
|
41
|
+
type: PropType<Record<string, string>>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
store: StateStore;
|
|
46
|
+
actions: Record<string, string>;
|
|
47
|
+
}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
49
|
+
//# sourceMappingURL=PlayRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayRenderer.vue.d.ts","sourceRoot":"","sources":["../src/PlayRenderer.vue"],"names":[],"mappings":"AAmLA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAgB,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;;;cAUjC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;;;;cAIjD,QAAQ,CAAC,iBAAiB,CAAC;;;;cAI3B,QAAQ,CAAC,UAAU,CAAC;;;;cAIpB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;;;;;;;cAZhC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;;;;cAIjD,QAAQ,CAAC,iBAAiB,CAAC;;;;cAI3B,QAAQ,CAAC,UAAU,CAAC;;;;cAIpB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;;;;;AAhBnD,wBA0GG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmachines/play-vue",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.26",
|
|
4
4
|
"description": "Vue renderer for XMachines Play architecture",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"prepublishOnly": "npm run build"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@xmachines/play": "1.0.0-beta.
|
|
46
|
-
"@xmachines/play-actor": "1.0.0-beta.
|
|
47
|
-
"@xmachines/play-signals": "1.0.0-beta.
|
|
45
|
+
"@xmachines/play": "1.0.0-beta.26",
|
|
46
|
+
"@xmachines/play-actor": "1.0.0-beta.26",
|
|
47
|
+
"@xmachines/play-signals": "1.0.0-beta.26"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@json-render/core": "^0.16.0",
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
"@types/node": "^25.5.0",
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
55
55
|
"@vue/test-utils": "^2.4.6",
|
|
56
|
-
"@xmachines/shared": "1.0.0-beta.
|
|
56
|
+
"@xmachines/shared": "1.0.0-beta.26",
|
|
57
57
|
"@xstate/store": ">=3.17.0",
|
|
58
58
|
"oxfmt": "^0.43.0",
|
|
59
59
|
"oxlint": "^1.57.0",
|
|
60
60
|
"typescript": "^5.9.3 || ^6.0.2",
|
|
61
|
+
"vite-plugin-dts": "^4.5.4",
|
|
61
62
|
"vitest": "^4.1.2",
|
|
62
63
|
"vue": "^3.5.31",
|
|
63
64
|
"xstate": "^5.30.0"
|