x-state-lib 0.3.6 → 0.3.8

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/dist/index.js CHANGED
@@ -9,14 +9,16 @@ function xt() {
9
9
  },
10
10
  activePage: {
11
11
  meta: {
12
- arguments: []
12
+ arguments: [],
13
+ states: []
13
14
  }
14
15
  },
15
16
  activeComp: {
16
17
  meta: {
17
18
  properties: [],
18
19
  methods: [],
19
- events: []
20
+ events: [],
21
+ states: []
20
22
  }
21
23
  },
22
24
  activeObject: {
@@ -40,6 +42,10 @@ function Ct() {
40
42
  activeFlow: {
41
43
  id: "",
42
44
  name: ""
45
+ },
46
+ activeObject: {
47
+ type: "func",
48
+ version: ""
43
49
  }
44
50
  };
45
51
  }
@@ -1,4 +1,4 @@
1
- import { FieldType } from "x-runtime-lib";
1
+ import { Type } from 'x-runtime-lib';
2
2
  export type AppListEntry = {
3
3
  id: string;
4
4
  name: string;
@@ -27,7 +27,12 @@ export type PageMeta = {
27
27
  arguments: {
28
28
  id: string;
29
29
  name: string;
30
- type: FieldType;
30
+ type: Type;
31
+ }[];
32
+ states: {
33
+ id: string;
34
+ name: string;
35
+ type: Type;
31
36
  }[];
32
37
  };
33
38
  export type ActivePage = {
@@ -37,7 +42,7 @@ export type CompMeta = {
37
42
  properties: {
38
43
  id: string;
39
44
  name: string;
40
- type: FieldType;
45
+ type: Type;
41
46
  }[];
42
47
  methods: {
43
48
  id: string;
@@ -45,12 +50,12 @@ export type CompMeta = {
45
50
  inputs: {
46
51
  id: string;
47
52
  name: string;
48
- type: FieldType;
53
+ type: Type;
49
54
  }[];
50
55
  outputs: {
51
56
  id: string;
52
57
  name: string;
53
- type: FieldType;
58
+ type: Type;
54
59
  }[];
55
60
  }[];
56
61
  events: {
@@ -59,14 +64,19 @@ export type CompMeta = {
59
64
  params: {
60
65
  id: string;
61
66
  name: string;
62
- type: FieldType;
67
+ type: Type;
63
68
  }[];
64
69
  }[];
70
+ states: {
71
+ id: string;
72
+ name: string;
73
+ type: Type;
74
+ }[];
65
75
  };
66
76
  export type ActiveComp = {
67
77
  meta: CompMeta;
68
78
  };
69
- export type ActiveObject = {
79
+ export type ActiveObjectApp = {
70
80
  type: 'page' | 'comp';
71
81
  subtype: string;
72
82
  version: string;
@@ -85,7 +95,7 @@ export type App = {
85
95
  activeApp: ActiveApp;
86
96
  activePage: ActivePage;
87
97
  activeComp: ActiveComp;
88
- activeObject: ActiveObject;
98
+ activeObject: ActiveObjectApp;
89
99
  depends: {
90
100
  [key: string]: Depend;
91
101
  };
@@ -1,4 +1,4 @@
1
- import { FieldType } from "x-runtime-lib";
1
+ import { Type } from 'x-runtime-lib';
2
2
  export type FuncGroup = {
3
3
  id: string;
4
4
  name: string;
@@ -12,12 +12,12 @@ export type Func = {
12
12
  inputs: {
13
13
  id: string;
14
14
  name: string;
15
- type: FieldType;
15
+ type: Type;
16
16
  }[];
17
17
  outputs: {
18
18
  id: string;
19
19
  name: string;
20
- type: FieldType;
20
+ type: Type;
21
21
  }[];
22
22
  position: number;
23
23
  };
@@ -52,16 +52,21 @@ export type ActiveFunc = {
52
52
  outputs: {
53
53
  id: string;
54
54
  name: string;
55
- type: FieldType;
55
+ type: Type;
56
56
  }[];
57
57
  };
58
58
  export type ActiveFlow = {
59
59
  id: string;
60
60
  name: string;
61
61
  };
62
+ export type ActiveObjectCompute = {
63
+ type: 'func' | 'flow';
64
+ version: string;
65
+ };
62
66
  export type Compute = {
63
67
  spaces: ComputeSpace[];
64
68
  activeFunc: ActiveFunc;
65
69
  activeFlow: ActiveFlow;
70
+ activeObject: ActiveObjectCompute;
66
71
  };
67
72
  export declare function initCompute(): Compute;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-state-lib",
3
3
  "private": false,
4
- "version": "0.3.6",
4
+ "version": "0.3.8",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "lodash-es": "^4.17.21",
26
26
  "vue": "^3.5.18",
27
27
  "vuetify": "^3.9.4",
28
- "x-runtime-lib": "^0.7.32"
28
+ "x-runtime-lib": "^0.7.34"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@eslint/js": "^9.33.0",
@@ -1,5 +0,0 @@
1
- export type Base = {
2
- router: any;
3
- i18n: any;
4
- };
5
- export declare function initBase(): Base;