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.
@@ -68,8 +68,8 @@ type ZPropertySelectInlineSlot = {
68
68
  ui: 'selectInlineSlot';
69
69
  default: string;
70
70
  } & ZPropertyBase;
71
- type ZPropertyRuntime<T extends Type> = {
72
- ui: 'runtime';
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: unknown;
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<ZPropertyRuntime<Type>>;
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, RuntimeProperties, SandboxKind } from '@/types';
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 runtimeProperties;
31
+ private transients;
32
32
  private depends;
33
- prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, runtimeProperties: Reactive<RuntimeProperties>, depends: ShallowRef<Depends | undefined>, initValues?: InitValues): void;
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;
@@ -4,4 +4,4 @@ export * from './data';
4
4
  export * from './depend';
5
5
  export * from './kind';
6
6
  export * from './meta';
7
- export * from './runtimeProperties';
7
+ export * from './transient';
@@ -1,4 +1,4 @@
1
- export interface RuntimeProperties {
1
+ export interface Transients {
2
2
  [nodeId: string]: {
3
3
  [propertyKey: string]: any;
4
4
  };
@@ -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[] | unknown[];
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, RuntimeProperties } from '@/types';
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 provideRuntimeProperties(runtimeProperties: Reactive<RuntimeProperties>): void;
28
- export declare function injectRuntimeProperties(): Reactive<RuntimeProperties>;
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;