x-runtime-lib 0.8.93 → 0.8.95

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.
@@ -1,7 +1,9 @@
1
1
  export type SandboxKind = 'root' | 'reference' | 'multipleRef' | 'slot';
2
- export type PropertyKind = 'elementProperty' | 'referenceProperty' | 'multipleRefProperty' | 'customProperty' | 'elementSlotProperty' | 'customSlotProperty';
2
+ export type PropertyKind = 'elementProperty' | 'referenceProperty' | 'multipleRefProperty' | 'customProperty' | 'customSlotProperty' | 'adaptSlotElementProperty' | 'adaptSlotCustomProperty';
3
3
  export declare function isLocaleOfPropertyKind(kind: PropertyKind | ''): boolean;
4
- export type MethodKind = 'elementMethod' | 'referenceMethod' | 'multipleRefMethod' | 'customMethod' | 'elementSlotMethod' | 'customSlotMethod';
4
+ export type MethodKind = 'elementMethod' | 'referenceMethod' | 'multipleRefMethod' | 'customMethod' | 'customSlotMethod' | 'adaptSlotElementMethod' | 'adaptSlotCustomMethod';
5
5
  export declare function isLocaleOfMethodKind(kind: MethodKind | ''): boolean;
6
- export type EventKind = 'elementEvent' | 'referenceEvent' | 'multipleRefEvent' | 'customEvent' | 'elementSlotEvent' | 'customSlotEvent' | 'elementPropertyChangeEvent' | 'referencePropertyChangeEvent' | 'multipleRefPropertyChangeEvent' | 'customPropertyChangeEvent' | 'elementSlotPropertyChangeEvent' | 'customSlotPropertyChangeEvent' | 'stateChangeEvent';
6
+ export type EventKind = 'elementEvent' | 'referenceEvent' | 'multipleRefEvent' | 'customEvent' | 'customSlotEvent' | 'adaptSlotElementEvent' | 'adaptSlotCustomEvent' | 'elementPropertyChangeEvent' | 'referencePropertyChangeEvent' | 'multipleRefPropertyChangeEvent' | 'customPropertyChangeEvent' | 'customSlotPropertyChangeEvent' | 'adaptSlotElementPropertyChangeEvent' | 'adaptSlotCustomPropertyChangeEvent' | 'stateChangeEvent';
7
7
  export declare function isLocaleOfEventKind(kind: EventKind | ''): boolean;
8
+ export type SlotKind = 'elementSlot' | 'customSlot';
9
+ export declare function isLocaleOfSlotKind(kind: SlotKind | ''): boolean;
@@ -35,6 +35,6 @@ export type CompMeta = {
35
35
  properties?: Field[];
36
36
  methods?: Method[];
37
37
  events?: Event[];
38
- states?: Field[];
39
38
  slots?: Slot[];
39
+ states?: Field[];
40
40
  };
@@ -1,19 +1,61 @@
1
- import { EventKind, MethodKind, PropertyKind } from '@/types';
1
+ import { EventKind, MethodKind, PropertyKind, SlotKind } from '@/types';
2
2
  export declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
3
3
  export declare function unwrapPropertyId(id: string): {
4
4
  kind: PropertyKind;
5
5
  nodeId: string;
6
6
  propertyKey: string;
7
7
  };
8
+ export declare function makePropertyKeyOfElementSlot(elementKey: string, slotKey: string, propertyKey: string): string;
9
+ export declare function unwrapPropertyKeyOfElementSlot(key: string): {
10
+ elementKey: string;
11
+ slotKey: string;
12
+ propertyKey: string;
13
+ };
14
+ export declare function makePropertyKeyOfCustomSlot(compId: string, slotId: string, propertyId: string): string;
15
+ export declare function unwrapPropertyKeyOfCustomSlot(key: string): {
16
+ compId: string;
17
+ slotId: string;
18
+ propertyId: string;
19
+ };
8
20
  export declare function makeMethodId(kind: MethodKind, nodeId: string, methodKey: string): string;
9
21
  export declare function unwrapMethodId(id: string): {
10
22
  kind: MethodKind;
11
23
  nodeId: string;
12
24
  methodKey: string;
13
25
  };
26
+ export declare function makeMethodKeyOfElementSlot(elementKey: string, slotKey: string, methodKey: string): string;
27
+ export declare function unwrapMethodKeyOfElementSlot(key: string): {
28
+ elementKey: string;
29
+ slotKey: string;
30
+ methodKey: string;
31
+ };
32
+ export declare function makeMethodKeyOfCustomSlot(compId: string, slotId: string, methodId: string): string;
33
+ export declare function unwrapMethodKeyOfCustomSlot(key: string): {
34
+ compId: string;
35
+ slotId: string;
36
+ methodId: string;
37
+ };
14
38
  export declare function makeEventId(kind: EventKind, nodeId: string, eventKey: string): string;
15
39
  export declare function unwrapEventId(id: string): {
16
40
  kind: EventKind;
17
41
  nodeId: string;
18
42
  eventKey: string;
19
43
  };
44
+ export declare function makeEventKeyOfElementSlot(elementKey: string, slotKey: string, eventKey: string): string;
45
+ export declare function unwrapEventKeyOfElementSlot(key: string): {
46
+ elementKey: string;
47
+ slotKey: string;
48
+ eventKey: string;
49
+ };
50
+ export declare function makeEventKeyOfCustomSlot(compId: string, slotId: string, eventId: string): string;
51
+ export declare function unwrapEventKeyOfCustomSlot(key: string): {
52
+ compId: string;
53
+ slotId: string;
54
+ eventId: string;
55
+ };
56
+ export declare function makeSlotId(kind: SlotKind, mainKey: string, slotKey: string): string;
57
+ export declare function unwrapSlotId(id: string): {
58
+ kind: SlotKind;
59
+ mainKey: string;
60
+ slotKey: string;
61
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.93",
4
+ "version": "0.8.95",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",