@xmachines/play-vue 2.0.0-alpha.1 → 2.0.0
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 +2 -5
- package/dist/ActorProvider.js +11 -4
- package/dist/ActorProvider.js.map +1 -1
- package/dist/ActorProvider.vue_vue_type_script_lang.js +124 -76
- package/dist/ActorProvider.vue_vue_type_script_lang.js.map +1 -1
- package/dist/PlayRenderer.js +11 -4
- package/dist/PlayRenderer.vue_vue_type_script_lang.js +30 -11
- package/dist/PlayRenderer.vue_vue_type_script_lang.js.map +1 -1
- package/dist/PlayUIProvider.js +11 -4
- package/dist/PlayUIProvider.vue_vue_type_script_lang.js +50 -32
- package/dist/PlayUIProvider.vue_vue_type_script_lang.js.map +1 -1
- package/dist/actor-provider-context.js +35 -7
- package/dist/actor-provider-context.js.map +1 -1
- package/dist/define-registry.js +110 -19
- package/dist/define-registry.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/useActor.js +50 -9
- package/dist/useActor.js.map +1 -1
- package/package.json +24 -24
- package/dist/ActorProvider.vue.d.ts +0 -51
- package/dist/ActorProvider.vue.d.ts.map +0 -1
- package/dist/PlayRenderer.vue.d.ts +0 -5
- package/dist/PlayRenderer.vue.d.ts.map +0 -1
- package/dist/PlayUIProvider.vue.d.ts +0 -76
- package/dist/PlayUIProvider.vue.d.ts.map +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { DefineRegistryResult, RenderErrorHandler } from '@xmachines/json-render-vue';
|
|
3
|
-
import { StateStore } from '@xmachines/json-render-core';
|
|
4
|
-
import { ActorProviderProps } from './types.js';
|
|
5
|
-
export type { ActorProviderProps } from './types.js';
|
|
6
|
-
export { getPlayViewContext } from './actor-provider-context.js';
|
|
7
|
-
export type { ViewContextValue } from './actor-provider-context.js';
|
|
8
|
-
declare const _default: import('@vue/runtime-core').DefineComponent<import('@vue/runtime-core').ExtractPropTypes<{
|
|
9
|
-
actor: {
|
|
10
|
-
type: PropType<ActorProviderProps["actor"]>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
registryResult: {
|
|
14
|
-
type: PropType<DefineRegistryResult>;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
store: {
|
|
18
|
-
type: PropType<StateStore>;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
onRenderError: {
|
|
22
|
-
type: PropType<RenderErrorHandler>;
|
|
23
|
-
default: undefined;
|
|
24
|
-
};
|
|
25
|
-
}>, () => import('@vue/runtime-core').VNode<import('@vue/runtime-core').RendererNode, import('@vue/runtime-core').RendererElement, {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}> | import('@vue/runtime-core').VNode<import('@vue/runtime-core').RendererNode, import('@vue/runtime-core').RendererElement, {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}>[] | null, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<import('@vue/runtime-core').ExtractPropTypes<{
|
|
30
|
-
actor: {
|
|
31
|
-
type: PropType<ActorProviderProps["actor"]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
registryResult: {
|
|
35
|
-
type: PropType<DefineRegistryResult>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
store: {
|
|
39
|
-
type: PropType<StateStore>;
|
|
40
|
-
default: undefined;
|
|
41
|
-
};
|
|
42
|
-
onRenderError: {
|
|
43
|
-
type: PropType<RenderErrorHandler>;
|
|
44
|
-
default: undefined;
|
|
45
|
-
};
|
|
46
|
-
}>> & Readonly<{}>, {
|
|
47
|
-
onRenderError: RenderErrorHandler;
|
|
48
|
-
store: StateStore;
|
|
49
|
-
}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
50
|
-
export default _default;
|
|
51
|
-
//# sourceMappingURL=ActorProvider.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActorProvider.vue.d.ts","sourceRoot":"","sources":["../src/ActorProvider.vue"],"names":[],"mappings":"AAkXA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAKpC,OAAO,KAAK,EACX,oBAAoB,EAEpB,kBAAkB,EAClB,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;;;cA8FjD,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;;;;cAIrC,QAAQ,CAAC,oBAAoB,CAAC;;;;cAI9B,QAAQ,CAAC,UAAU,CAAC;;;;cAIlB,QAAQ,CAAC,kBAAkB,CAAC;;;;;;;;;cAZ9B,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;;;;cAIrC,QAAQ,CAAC,oBAAoB,CAAC;;;;cAI9B,QAAQ,CAAC,UAAU,CAAC;;;;cAIlB,QAAQ,CAAC,kBAAkB,CAAC;;;;;;;AAhBjD,wBA0LG"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const _default: import('@vue/runtime-core').DefineComponent<{}, () => import('@vue/runtime-core').VNode<import('@vue/runtime-core').RendererNode, import('@vue/runtime-core').RendererElement, {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=PlayRenderer.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayRenderer.vue.d.ts","sourceRoot":"","sources":["../src/PlayRenderer.vue"],"names":[],"mappings":";;;AA6DA,wBAYG"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { DefineRegistryResult, RenderErrorHandler } from '@xmachines/json-render-vue';
|
|
3
|
-
import { StateStore } from '@xmachines/json-render-core';
|
|
4
|
-
import { AbstractActor, Viewable } from '@xmachines/play-actor';
|
|
5
|
-
import { AnyActorLogic } from 'xstate';
|
|
6
|
-
import { PlayUIProviderProps } from './types.js';
|
|
7
|
-
export type { PlayUIProviderProps } from './types.js';
|
|
8
|
-
declare const _default: import('@vue/runtime-core').DefineComponent<import('@vue/runtime-core').ExtractPropTypes<{
|
|
9
|
-
actor: {
|
|
10
|
-
type: PropType<AbstractActor<AnyActorLogic> & Viewable>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
registryResult: {
|
|
14
|
-
type: PropType<DefineRegistryResult>;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
store: {
|
|
18
|
-
type: PropType<StateStore>;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
onRenderError: {
|
|
22
|
-
type: PropType<RenderErrorHandler>;
|
|
23
|
-
default: undefined;
|
|
24
|
-
};
|
|
25
|
-
navigate: {
|
|
26
|
-
type: PropType<PlayUIProviderProps["navigate"]>;
|
|
27
|
-
default: undefined;
|
|
28
|
-
};
|
|
29
|
-
validationFunctions: {
|
|
30
|
-
type: PropType<PlayUIProviderProps["validationFunctions"]>;
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
functions: {
|
|
34
|
-
type: PropType<PlayUIProviderProps["functions"]>;
|
|
35
|
-
default: undefined;
|
|
36
|
-
};
|
|
37
|
-
}>, () => import('@vue/runtime-core').VNode<import('@vue/runtime-core').RendererNode, import('@vue/runtime-core').RendererElement, {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<import('@vue/runtime-core').ExtractPropTypes<{
|
|
40
|
-
actor: {
|
|
41
|
-
type: PropType<AbstractActor<AnyActorLogic> & Viewable>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
registryResult: {
|
|
45
|
-
type: PropType<DefineRegistryResult>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
store: {
|
|
49
|
-
type: PropType<StateStore>;
|
|
50
|
-
default: undefined;
|
|
51
|
-
};
|
|
52
|
-
onRenderError: {
|
|
53
|
-
type: PropType<RenderErrorHandler>;
|
|
54
|
-
default: undefined;
|
|
55
|
-
};
|
|
56
|
-
navigate: {
|
|
57
|
-
type: PropType<PlayUIProviderProps["navigate"]>;
|
|
58
|
-
default: undefined;
|
|
59
|
-
};
|
|
60
|
-
validationFunctions: {
|
|
61
|
-
type: PropType<PlayUIProviderProps["validationFunctions"]>;
|
|
62
|
-
default: undefined;
|
|
63
|
-
};
|
|
64
|
-
functions: {
|
|
65
|
-
type: PropType<PlayUIProviderProps["functions"]>;
|
|
66
|
-
default: undefined;
|
|
67
|
-
};
|
|
68
|
-
}>> & Readonly<{}>, {
|
|
69
|
-
onRenderError: RenderErrorHandler;
|
|
70
|
-
store: StateStore;
|
|
71
|
-
navigate: ((path: string) => void) | undefined;
|
|
72
|
-
validationFunctions: Record<string, (value: unknown, args?: Record<string, unknown>) => boolean> | undefined;
|
|
73
|
-
functions: Record<string, (args?: Record<string, unknown>, state?: Record<string, unknown>) => unknown> | undefined;
|
|
74
|
-
}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
75
|
-
export default _default;
|
|
76
|
-
//# sourceMappingURL=PlayUIProvider.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayUIProvider.vue.d.ts","sourceRoot":"","sources":["../src/PlayUIProvider.vue"],"names":[],"mappings":"AA0KA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;;;cA4DnC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;;;;cAIjD,QAAQ,CAAC,oBAAoB,CAAC;;;;cAI9B,QAAQ,CAAC,UAAU,CAAC;;;;cAIlB,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;;;;cAI3C,QAAQ,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;;;;cAIpD,QAAQ,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;;;;;;;cAxB1C,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;;;;cAIjD,QAAQ,CAAC,oBAAoB,CAAC;;;;cAI9B,QAAQ,CAAC,UAAU,CAAC;;;;cAIlB,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;;;;cAI3C,QAAQ,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;;;;cAIpD,QAAQ,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;AA5B7D,wBA2DG"}
|