x-runtime-lib 0.5.38 → 0.6.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.
@@ -4,5 +4,5 @@ export * from './context';
4
4
  export * from './data';
5
5
  export * from './depend';
6
6
  export * from './element';
7
- export * from './interpreter';
8
7
  export * from './meta';
8
+ export * from './sandbox';
@@ -1,3 +1,4 @@
1
+ import Interpreter from 'js-interpreter';
1
2
  import { Env, Type } from './basic';
2
3
  import { Data } from './data';
3
4
  export interface SandboxContext {
@@ -5,3 +6,6 @@ export interface SandboxContext {
5
6
  type: Type;
6
7
  data: Data;
7
8
  }
9
+ export interface Sandbox {
10
+ interpreter?: Interpreter;
11
+ }
@@ -1,6 +1,5 @@
1
- import Interpreter from 'js-interpreter';
2
1
  import { Ref } from 'vue';
3
- import { Data, Depends, Device, Env, Mode, Type } from '../types';
2
+ import { Data, Depends, Device, Env, Mode, Sandbox, Type } from '../types';
4
3
  export declare function provideEnv(env: Env): void;
5
4
  export declare function injectEnv(): Env;
6
5
  export declare function provideMode(mode: Mode): void;
@@ -15,5 +14,5 @@ export declare function provideData(data: Data): void;
15
14
  export declare function injectData(): Data;
16
15
  export declare function provideDepends(depends: Depends): void;
17
16
  export declare function injectDepends(): Depends;
18
- export declare function provideInterpreter(interpreter: Ref<Interpreter | undefined>): void;
19
- export declare function injectInterpreter(): Ref<Interpreter | undefined>;
17
+ export declare function provideSandbox(sandbox: Sandbox): void;
18
+ export declare function injectSandbox(): Sandbox;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.5.38",
4
+ "version": "0.6.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,30 +24,30 @@
24
24
  "dependencies": {
25
25
  "js-interpreter": "^5.1.2",
26
26
  "lodash-es": "^4.17.21",
27
- "vue": "^3.5.12",
28
- "vue-i18n": "^10.0.4",
29
- "vuetify": "^3.7.3",
30
- "x-essential-lib": "^0.7.11"
27
+ "vue": "^3.5.13",
28
+ "vue-i18n": "^11.1.1",
29
+ "vuetify": "^3.7.13",
30
+ "x-essential-lib": "^0.8.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@eslint/js": "^10.0.0",
33
+ "@eslint/js": "^9.21.0",
34
34
  "@types/lodash-es": "^4.17.12",
35
- "@types/node": "^22.7.7",
36
- "@vitejs/plugin-vue": "^5.1.4",
37
- "eslint": "^9.13.0",
38
- "eslint-config-prettier": "^9.1.0",
39
- "eslint-plugin-prettier": "^5.2.1",
40
- "eslint-plugin-vue": "^9.29.1",
41
- "husky": "^9.1.6",
42
- "lint-staged": "^15.2.10",
43
- "prettier": "3.3.3",
44
- "sass": "^1.80.3",
45
- "typescript": "^5.6.3",
46
- "typescript-eslint": "^8.11.0",
47
- "vite": "^5.4.9",
35
+ "@types/node": "^22.13.5",
36
+ "@vitejs/plugin-vue": "^5.2.1",
37
+ "eslint": "^9.21.0",
38
+ "eslint-config-prettier": "^10.0.1",
39
+ "eslint-plugin-prettier": "^5.2.3",
40
+ "eslint-plugin-vue": "^9.32.0",
41
+ "husky": "^9.1.7",
42
+ "lint-staged": "^15.4.3",
43
+ "prettier": "3.5.2",
44
+ "sass": "^1.85.1",
45
+ "typescript": "^5.7.3",
46
+ "typescript-eslint": "^8.25.0",
47
+ "vite": "^6.2.0",
48
48
  "vite-plugin-css-injected-by-js": "^3.5.2",
49
- "vite-plugin-vuetify": "^2.0.4",
50
- "vue-router": "^4.4.3",
51
- "vue-tsc": "^2.2.0"
49
+ "vite-plugin-vuetify": "^2.1.0",
50
+ "vue-router": "^4.5.0",
51
+ "vue-tsc": "^2.2.4"
52
52
  }
53
53
  }