x-runtime-lib 0.8.32 → 0.8.34

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.
@@ -21,15 +21,15 @@ interface TriggerCustomProperty {
21
21
  type: 'customProperty';
22
22
  propertyId: string;
23
23
  }
24
- interface TriggerCustomState {
25
- type: 'customState';
24
+ interface TriggerState {
25
+ type: 'state';
26
26
  stateId: string;
27
27
  }
28
28
  interface TriggerAdaptSlotProperty {
29
29
  type: 'adaptSlotProperty';
30
30
  propertyId: string;
31
31
  }
32
- export type Trigger = (TriggerElementProperty | TriggerCustomProperty | TriggerCustomState | TriggerAdaptSlotProperty) & {
32
+ export type Trigger = (TriggerElementProperty | TriggerCustomProperty | TriggerState | TriggerAdaptSlotProperty) & {
33
33
  subKeys?: string;
34
34
  };
35
35
  export interface Reactivity {
@@ -3,7 +3,7 @@ export type PropertyKeys = string[] | string;
3
3
  interface Hooks {
4
4
  onElementPropertyChange: (nodeId: string, propertyKeys: PropertyKeys, newValue: any, oldValue: any) => void;
5
5
  onCustomPropertyChange: (propertyId: string, newValue: any, oldValue: any) => void;
6
- onCustomStateChange: (stateId: string, newValue: any, oldValue: any) => void;
6
+ onStateChange: (stateId: string, newValue: any, oldValue: any) => void;
7
7
  onAdaptSlotPropertyChange: (propertyId: string, newValue: any, oldValue: any) => void;
8
8
  }
9
9
  export declare class Sandbox {
@@ -24,10 +24,10 @@ export declare class Sandbox {
24
24
  resetCustomProperties(): void;
25
25
  getCustomProperty(propertyId: string): any;
26
26
  setCustomProperty(propertyId: string, newValue: any): void;
27
- private customStates;
28
- resetCustomStates(): void;
29
- getCustomState(stateId: string): any;
30
- setCustomState(stateId: string, newValue: string): void;
27
+ private states;
28
+ resetStates(): void;
29
+ getState(stateId: string): any;
30
+ setState(stateId: string, newValue: string): void;
31
31
  private adaptSlotProperties;
32
32
  resetAdaptSlotProperties(): void;
33
33
  getAdaptSlotProperty(propertyId: string): any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.32",
4
+ "version": "0.8.34",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",