x-state-lib 0.1.6 → 0.1.7
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 +14 -9
- package/dist/state/app.d.ts +15 -2
- package/dist/state/state.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,19 +8,24 @@ function Wt() {
|
|
|
8
8
|
comps: []
|
|
9
9
|
},
|
|
10
10
|
activePage: {
|
|
11
|
-
|
|
11
|
+
meta: {
|
|
12
|
+
arguments: []
|
|
13
|
+
}
|
|
12
14
|
},
|
|
13
15
|
activeComp: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
meta: {
|
|
17
|
+
properties: [],
|
|
18
|
+
methods: [],
|
|
19
|
+
events: []
|
|
20
|
+
}
|
|
17
21
|
},
|
|
18
22
|
activeObject: {
|
|
19
23
|
type: "page",
|
|
20
24
|
subtype: "",
|
|
21
25
|
version: "",
|
|
22
26
|
nodes: []
|
|
23
|
-
}
|
|
27
|
+
},
|
|
28
|
+
depends: {}
|
|
24
29
|
};
|
|
25
30
|
}
|
|
26
31
|
function qt() {
|
|
@@ -657,22 +662,22 @@ function xa(t) {
|
|
|
657
662
|
}), e;
|
|
658
663
|
}
|
|
659
664
|
const Ea = function() {
|
|
660
|
-
return window.
|
|
665
|
+
return window.globalState || (window.globalState = {
|
|
661
666
|
base: qt(),
|
|
662
667
|
runtime: Pa(),
|
|
663
668
|
app: Wt(),
|
|
664
669
|
compute: Yt(),
|
|
665
670
|
data: Xt(),
|
|
666
671
|
resource: Jt()
|
|
667
|
-
}), window.
|
|
672
|
+
}), window.globalState;
|
|
668
673
|
}();
|
|
669
674
|
export {
|
|
670
675
|
Ia as buildProps,
|
|
676
|
+
Ea as globalState,
|
|
671
677
|
Wt as initApp,
|
|
672
678
|
qt as initBase,
|
|
673
679
|
Yt as initCompute,
|
|
674
680
|
Xt as initData,
|
|
675
681
|
Jt as initResource,
|
|
676
|
-
Pa as initRuntime
|
|
677
|
-
Ea as state
|
|
682
|
+
Pa as initRuntime
|
|
678
683
|
};
|
package/dist/state/app.d.ts
CHANGED
|
@@ -22,14 +22,17 @@ export type ActiveApp = {
|
|
|
22
22
|
compGroups: CompGroup[];
|
|
23
23
|
comps: Comp[];
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type PageMeta = {
|
|
26
26
|
arguments: {
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
type: string;
|
|
30
30
|
}[];
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
32
|
+
export type ActivePage = {
|
|
33
|
+
meta: PageMeta;
|
|
34
|
+
};
|
|
35
|
+
export type CompMeta = {
|
|
33
36
|
properties: {
|
|
34
37
|
id: string;
|
|
35
38
|
name: string;
|
|
@@ -59,6 +62,9 @@ export type ActiveComp = {
|
|
|
59
62
|
}[];
|
|
60
63
|
}[];
|
|
61
64
|
};
|
|
65
|
+
export type ActiveComp = {
|
|
66
|
+
meta: CompMeta;
|
|
67
|
+
};
|
|
62
68
|
export type ActiveObject = {
|
|
63
69
|
type: 'page' | 'comp';
|
|
64
70
|
subtype: string;
|
|
@@ -69,11 +75,18 @@ export type ActiveObject = {
|
|
|
69
75
|
alias: string;
|
|
70
76
|
}[];
|
|
71
77
|
};
|
|
78
|
+
export type Depend = {
|
|
79
|
+
name: string;
|
|
80
|
+
meta: CompMeta;
|
|
81
|
+
};
|
|
72
82
|
export type App = {
|
|
73
83
|
appList: AppListEntry[];
|
|
74
84
|
activeApp: ActiveApp;
|
|
75
85
|
activePage: ActivePage;
|
|
76
86
|
activeComp: ActiveComp;
|
|
77
87
|
activeObject: ActiveObject;
|
|
88
|
+
depends: {
|
|
89
|
+
[key: string]: Depend;
|
|
90
|
+
};
|
|
78
91
|
};
|
|
79
92
|
export declare function initApp(): App;
|
package/dist/state/state.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-state-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
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.12",
|
|
27
27
|
"vuetify": "^3.7.3",
|
|
28
|
-
"x-runtime-lib": "^0.5.
|
|
28
|
+
"x-runtime-lib": "^0.5.39"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^10.0.0",
|