x-runtime-lib 0.9.28 → 0.9.29
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/composables/element/core/elementPropertyTransient.d.ts +3 -0
- package/dist/composables/element/core/index.d.ts +1 -1
- package/dist/composables/runtime/sandbox.d.ts +5 -4
- package/dist/index.js +1445 -1424
- package/dist/meta/property.d.ts +4 -4
- package/dist/sandbox/sandbox/index.d.ts +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/{runtimeProperties.d.ts → transient.d.ts} +1 -1
- package/dist/utils/property.d.ts +1 -1
- package/dist/utils/provideInject.d.ts +3 -3
- package/dist/{vendor.kfdhvame.js → vendor.iv3gta0j.js} +5511 -5511
- package/package.json +1 -1
- package/dist/composables/element/core/elementPropertyRuntime.d.ts +0 -3
package/dist/meta/property.d.ts
CHANGED
|
@@ -68,8 +68,8 @@ type ZPropertySelectInlineSlot = {
|
|
|
68
68
|
ui: 'selectInlineSlot';
|
|
69
69
|
default: string;
|
|
70
70
|
} & ZPropertyBase;
|
|
71
|
-
type
|
|
72
|
-
ui: '
|
|
71
|
+
type ZPropertyTransient<T extends Type> = {
|
|
72
|
+
ui: 'transient';
|
|
73
73
|
type: T;
|
|
74
74
|
} & ZPropertyBase & {
|
|
75
75
|
string: {
|
|
@@ -88,7 +88,7 @@ type ZPropertyRuntime<T extends Type> = {
|
|
|
88
88
|
default: object;
|
|
89
89
|
};
|
|
90
90
|
any: {
|
|
91
|
-
default:
|
|
91
|
+
default: any;
|
|
92
92
|
};
|
|
93
93
|
}[T];
|
|
94
94
|
type WithArray<T extends {
|
|
@@ -104,5 +104,5 @@ export type ZProperty = ({
|
|
|
104
104
|
} & ZPropertyBranch) | ({
|
|
105
105
|
array: true;
|
|
106
106
|
defaultArray: any[];
|
|
107
|
-
} & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot> | WithArray<ZPropertySelectInlineSlot> | WithArray<
|
|
107
|
+
} & ZPropertyBranch) | WithArray<ZPropertyDummy> | WithArray<ZPropertyStrInput> | WithArray<ZPropertyNumInput> | WithArray<ZPropertySwitch> | WithArray<ZPropertySelect> | WithArray<ZPropertyColorPicker> | WithArray<ZPropertyJsonEditor> | WithArray<ZPropertyMultiTypes> | WithArray<ZPropertySelectComp> | WithArray<ZPropertySelectSlot> | WithArray<ZPropertyStrInput> | WithArray<ZPropertySelectAdaptSlot> | WithArray<ZPropertySelectInlineSlot> | WithArray<ZPropertyTransient<Type>>;
|
|
108
108
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuickJSContext, QuickJSRuntime } from 'quickjs-emscripten';
|
|
2
2
|
import { Reactive, Ref, ShallowRef } from 'vue';
|
|
3
|
-
import { Data, Depends, Env, Meta, Mode, Node,
|
|
3
|
+
import { Data, Depends, Env, Meta, Mode, Node, SandboxKind, Transients } from '@/types';
|
|
4
4
|
import { InitValues, Inputs } from '../common';
|
|
5
5
|
import { Hooks } from './hooks';
|
|
6
6
|
import { PromiseManager } from './promiseManager';
|
|
@@ -28,9 +28,9 @@ export declare class Sandbox {
|
|
|
28
28
|
private removeChild;
|
|
29
29
|
private meta;
|
|
30
30
|
private data;
|
|
31
|
-
private
|
|
31
|
+
private transients;
|
|
32
32
|
private depends;
|
|
33
|
-
prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>,
|
|
33
|
+
prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, transients: Reactive<Transients>, depends: ShallowRef<Depends | undefined>, initValues?: InitValues): void;
|
|
34
34
|
createVm(runtime: QuickJSRuntime, code: string): Promise<void>;
|
|
35
35
|
destroyVm(): void;
|
|
36
36
|
setGlobalVariable(key: string, value: any): void;
|
package/dist/types/index.d.ts
CHANGED
package/dist/utils/property.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from '@/meta';
|
|
2
2
|
import { Node } from '@/types';
|
|
3
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[]
|
|
3
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[];
|
|
4
4
|
export declare function getPropertyDefault(property: ZProperty): any;
|
|
5
5
|
export declare function initProperties(node: Node, properties: ZProperty[]): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QuickJSRuntime } from 'quickjs-emscripten';
|
|
2
2
|
import { Reactive, Ref, ShallowRef } from 'vue';
|
|
3
3
|
import { Sandbox } from '@/sandbox';
|
|
4
|
-
import { Data, Depends, Env, Meta, Mode, Node, NodeLite,
|
|
4
|
+
import { Data, Depends, Env, Meta, Mode, Node, NodeLite, Transients } from '@/types';
|
|
5
5
|
export declare function provideOrg(org: string): void;
|
|
6
6
|
export declare function injectOrg(): string;
|
|
7
7
|
export declare function provideEnv(env: Env): void;
|
|
@@ -24,8 +24,8 @@ export declare function provideMeta(meta: Ref<Meta | undefined>): void;
|
|
|
24
24
|
export declare function injectMeta(): Ref<Meta | undefined>;
|
|
25
25
|
export declare function provideData(data: Ref<Data | undefined>): void;
|
|
26
26
|
export declare function injectData(): Ref<Data | undefined>;
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
27
|
+
export declare function provideTransients(transients: Reactive<Transients>): void;
|
|
28
|
+
export declare function injectTransients(): Reactive<Transients>;
|
|
29
29
|
export declare function provideDepends(depends: ShallowRef<Depends>): void;
|
|
30
30
|
export declare function injectDepends(): ShallowRef<Depends>;
|
|
31
31
|
export declare function provideRuntime(runtime: QuickJSRuntime): void;
|