x-runtime-lib 0.7.10 → 0.7.12
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 +1588 -1563
- package/dist/interpreter/runtime/base.d.ts +1 -1
- package/dist/types/basic.d.ts +1 -1
- package/dist/types/sandbox.d.ts +3 -1
- package/dist/utils/provideInject.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const base = "\nvar __env__ = 'dev'\n\nfunction __getEnvV1__() {\n return __env__\n}\n\nvar __pointerPosX__ = 0\nvar __pointerPosY__ = 0\n";
|
|
1
|
+
declare const base = "\nvar __env__ = 'dev'\nvar __mode__ = 'editor'\n\nfunction __getEnvV1__() {\n return __env__\n}\n\nvar __pointerPosX__ = 0\nvar __pointerPosY__ = 0\n";
|
|
2
2
|
export default base;
|
package/dist/types/basic.d.ts
CHANGED
package/dist/types/sandbox.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import Interpreter from 'js-interpreter';
|
|
2
2
|
import { Emitter, EventType } from 'mitt';
|
|
3
|
-
import { Env, Type } from './basic';
|
|
3
|
+
import { Env, Mode, Type } from './basic';
|
|
4
4
|
import { Data } from './data';
|
|
5
5
|
type EventBus = Emitter<Record<EventType, unknown>>;
|
|
6
6
|
export interface SandboxContext {
|
|
7
|
+
org: string;
|
|
7
8
|
env: Env;
|
|
9
|
+
mode: Mode;
|
|
8
10
|
type: Type;
|
|
9
11
|
data: Data;
|
|
10
12
|
eventBus?: EventBus;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { Data, Depends, Device, Env, Mode, Sandbox, Type } from '../types';
|
|
3
|
+
export declare function provideOrg(org: string): void;
|
|
4
|
+
export declare function injectOrg(): string;
|
|
3
5
|
export declare function provideEnv(env: Env): void;
|
|
4
6
|
export declare function injectEnv(): Env;
|
|
5
7
|
export declare function provideMode(mode: Mode): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue-i18n": "^11.1.9",
|
|
32
32
|
"vuetify": "^3.9.0",
|
|
33
33
|
"x-error-lib": "^0.5.4",
|
|
34
|
-
"x-essential-lib": "^0.8.
|
|
34
|
+
"x-essential-lib": "^0.8.17"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^9.30.1",
|