x-runtime-lib 0.8.36 → 0.8.37
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/components/element/dynamic/index.d.ts +2 -3
- package/dist/components/element/dynamic/slot/v1/index.vue.d.ts +1 -1
- package/dist/composables/common/depend.d.ts +3 -0
- package/dist/composables/common/index.d.ts +1 -0
- package/dist/element/_common/keys.d.ts +1 -1
- package/dist/element/dynamic/index.d.ts +1 -1
- package/dist/element/dynamic/reference/v1/meta.d.ts +2 -0
- package/dist/{i18n-en.newu3yte.js → i18n-en.e1q0pu8p.js} +1 -2
- package/dist/{i18n-zhHans.bu8byhfo.js → i18n-zhHans.fg4w34l5.js} +1 -2
- package/dist/index.js +1519 -1536
- package/dist/types/{component.d.ts → comp.d.ts} +2 -1
- package/dist/types/data.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/kind.d.ts +3 -3
- package/dist/utils/node.d.ts +1 -1
- package/dist/utils/sandbox.d.ts +7 -6
- package/dist/utils/unifiedId.d.ts +0 -2
- package/package.json +1 -1
- package/dist/components/element/dynamic/ref/v1/entry.vue.d.ts +0 -7
- package/dist/components/element/dynamic/singleRef/v1/index.vue.d.ts +0 -3
- package/dist/element/dynamic/singleRef/v1/meta.d.ts +0 -2
- /package/dist/components/element/dynamic/{ref → reference}/v1/index.vue.d.ts +0 -0
- /package/dist/element/dynamic/{singleRef → reference}/v1/index.d.ts +0 -0
package/dist/types/data.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
package/dist/types/kind.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type PropertyKind = 'elementProperty' | '
|
|
1
|
+
export type PropertyKind = 'elementProperty' | 'referenceProperty' | 'multipleRefProperty' | 'customProperty' | 'elementSlotProperty' | 'customSlotProperty';
|
|
2
2
|
export declare function isLocaleOfPropertyKind(kind: PropertyKind): kind is "elementProperty" | "elementSlotProperty";
|
|
3
|
-
export type MethodKind = 'elementMethod' | '
|
|
3
|
+
export type MethodKind = 'elementMethod' | 'referenceMethod' | 'multipleRefMethod' | 'customMethod' | 'elementSlotMethod' | 'customSlotMethod';
|
|
4
4
|
export declare function isLocaleOfMethodKind(kind: MethodKind): kind is "elementMethod" | "elementSlotMethod";
|
|
5
|
-
export type EventKind = 'elementEvent' | '
|
|
5
|
+
export type EventKind = 'elementEvent' | 'referenceEvent' | 'multipleRefEvent' | 'customEvent' | 'elementPropertyChangeEvent' | 'customPropertyChangeEvent' | 'stateChangeEvent';
|
|
6
6
|
export declare function isLocaleOfEventKind(kind: EventKind): kind is "elementEvent" | "elementPropertyChangeEvent";
|
package/dist/utils/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node } from '../types';
|
|
2
|
-
export declare function spawnNode(type: string, subtype: string, version: string, ref: boolean,
|
|
2
|
+
export declare function spawnNode(type: string, subtype: string, version: string, ref: boolean, keyOrRefId: string): Node | undefined;
|
|
3
3
|
export declare function getNode(nodes: Node[], id: string): Node | undefined;
|
|
4
4
|
export declare function duplicateNode(src: Node): Node;
|
|
5
5
|
export declare function duplicateNodes(src: Node[]): Node[];
|
package/dist/utils/sandbox.d.ts
CHANGED
|
@@ -4,17 +4,18 @@ export declare function dotPropertyKeys(propertyKeys: PropertyKeys): string;
|
|
|
4
4
|
interface Hooks {
|
|
5
5
|
onElementPropertyChange: (nodeId: string, propertyKeys: PropertyKeys, newValue: any, oldValue: any) => void;
|
|
6
6
|
onCustomPropertyChange: (propertyId: string, newValue: any, oldValue: any) => void;
|
|
7
|
-
onStateChange: (stateId: string, newValue: any, oldValue: any) => void;
|
|
8
7
|
onAdaptSlotPropertyChange: (propertyId: string, newValue: any, oldValue: any) => void;
|
|
8
|
+
onStateChange: (stateId: string, newValue: any, oldValue: any) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare class Sandbox {
|
|
11
|
+
parent: Sandbox | undefined;
|
|
11
12
|
org: string;
|
|
12
13
|
env: Env;
|
|
13
14
|
mode: Mode;
|
|
14
15
|
type: 'page' | 'comp';
|
|
15
16
|
eventBus: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
|
16
17
|
private hooks?;
|
|
17
|
-
constructor(org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks?: Hooks);
|
|
18
|
+
constructor(parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks?: Hooks);
|
|
18
19
|
private nodes;
|
|
19
20
|
syncNodes(data: Data | undefined): void;
|
|
20
21
|
getElementPropertyInner(node: any, propertyKeys: PropertyKeys): any;
|
|
@@ -25,14 +26,14 @@ export declare class Sandbox {
|
|
|
25
26
|
resetCustomProperties(): void;
|
|
26
27
|
getCustomProperty(propertyId: string): any;
|
|
27
28
|
setCustomProperty(propertyId: string, newValue: any): void;
|
|
28
|
-
private states;
|
|
29
|
-
resetStates(): void;
|
|
30
|
-
getState(stateId: string): any;
|
|
31
|
-
setState(stateId: string, newValue: string): void;
|
|
32
29
|
private adaptSlotProperties;
|
|
33
30
|
resetAdaptSlotProperties(): void;
|
|
34
31
|
getAdaptSlotProperty(propertyId: string): any;
|
|
35
32
|
setAdaptSlotProperty(propertyId: string, newValue: any): void;
|
|
33
|
+
private states;
|
|
34
|
+
resetStates(): void;
|
|
35
|
+
getState(stateId: string): any;
|
|
36
|
+
setState(stateId: string, newValue: string): void;
|
|
36
37
|
private interpreter;
|
|
37
38
|
createInterpreter(code: string): void;
|
|
38
39
|
destroyInterpreter(): void;
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RefContext } from '@/types';
|
|
2
|
-
interface Props {
|
|
3
|
-
refContext: RefContext;
|
|
4
|
-
}
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|