x-state-lib 0.3.7 → 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
@@ -42,6 +42,10 @@ function Ct() {
42
42
  activeFlow: {
43
43
  id: "",
44
44
  name: ""
45
+ },
46
+ activeObject: {
47
+ type: "func",
48
+ version: ""
45
49
  }
46
50
  };
47
51
  }
@@ -76,7 +76,7 @@ export type CompMeta = {
76
76
  export type ActiveComp = {
77
77
  meta: CompMeta;
78
78
  };
79
- export type ActiveObject = {
79
+ export type ActiveObjectApp = {
80
80
  type: 'page' | 'comp';
81
81
  subtype: string;
82
82
  version: string;
@@ -95,7 +95,7 @@ export type App = {
95
95
  activeApp: ActiveApp;
96
96
  activePage: ActivePage;
97
97
  activeComp: ActiveComp;
98
- activeObject: ActiveObject;
98
+ activeObject: ActiveObjectApp;
99
99
  depends: {
100
100
  [key: string]: Depend;
101
101
  };
@@ -59,9 +59,14 @@ 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.7",
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.33"
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;