x-runtime-lib 0.8.27 → 0.8.28

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,12 +1,24 @@
1
1
  export type PropertyKind = 'elementProperty' | 'refProperty' | 'customProperty' | 'elementSlotProperty' | 'customSlotProperty';
2
2
  export declare function isLocaleOfPropertyKind(kind: PropertyKind): kind is "elementProperty" | "elementSlotProperty";
3
3
  export declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
4
- export declare function unwrapPropertyId(id: string): [PropertyKind, string, string];
4
+ export declare function unwrapPropertyId(id: string): {
5
+ kind: PropertyKind;
6
+ nodeId: string;
7
+ propertyKey: string;
8
+ };
5
9
  export type MethodKind = 'elementMethod' | 'refMethod' | 'customMethod' | 'elementSlotMethod' | 'customSlotMethod';
6
10
  export declare function isLocaleOfMethodKind(kind: MethodKind): kind is "elementMethod" | "elementSlotMethod";
7
11
  export declare function makeMethodId(kind: MethodKind, nodeId: string, methodKey: string): string;
8
- export declare function unwrapMethodId(id: string): [MethodKind, string, string];
12
+ export declare function unwrapMethodId(id: string): {
13
+ kind: MethodKind;
14
+ nodeId: string;
15
+ methodKey: string;
16
+ };
9
17
  export type EventKind = 'elementEvent' | 'refEvent' | 'customEvent' | 'elementPropertyChangeEvent' | 'customPropertyChangeEvent' | 'stateChangeEvent';
10
18
  export declare function isLocaleOfEventKind(kind: EventKind): kind is "elementEvent" | "elementPropertyChangeEvent";
11
19
  export declare function makeEventId(kind: EventKind, nodeId: string, eventKey: string): string;
12
- export declare function unwrapEventId(id: string): string[];
20
+ export declare function unwrapEventId(id: string): {
21
+ kind: EventKind;
22
+ nodeId: string;
23
+ eventKey: string;
24
+ };
@@ -1,4 +1,3 @@
1
- import { EventKind, MethodKind, PropertyKind } from '@/types';
2
- export declare function toPropertyName(names: string[], kind: PropertyKind): string;
3
- export declare function toMethodName(names: string[], kind: MethodKind): string;
4
- export declare function toEventName(names: string[], kind: EventKind): string;
1
+ export declare function toPropertyName(id: string, names: string[]): string;
2
+ export declare function toMethodName(id: string, names: string[]): string;
3
+ export declare function toEventName(id: string, names: string[]): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.27",
4
+ "version": "0.8.28",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",