@zealicsolutions/web-ui 1.0.20 → 1.0.21

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.
@@ -8,6 +8,6 @@ export declare const useStateListenerValue: ({ stateListenerId }: UseStateListen
8
8
  } | {
9
9
  isStateDisabled: boolean;
10
10
  isStateVisible: boolean;
11
- stateValue: string | true | import("..").FormDataStateConfig | import("..").ActionEventType | import("..").BaseStateValue | import("..").ChecklistItemStateValue;
11
+ stateValue: string | true | import("..").FormDataStateConfig | import("..").ActionEventType | import("..").BaseStateValue;
12
12
  };
13
13
  export {};
@@ -1,8 +1,7 @@
1
- declare type ActionTypeType = 'clicked' | 'started' | 'completed' | 'closed' | 'opened' | 'checked' | 'unchecked';
1
+ import { ActionType } from 'containers';
2
2
  export declare const useStateModifierHandler: () => {
3
3
  onStateChange: ({ id, type }: {
4
4
  id?: string | undefined;
5
- type: ActionTypeType;
5
+ type: ActionType;
6
6
  }) => void;
7
7
  };
8
- export {};
@@ -143,16 +143,12 @@ export declare type FormDataStateConfig = {
143
143
  } & Record<string, {
144
144
  value?: string | number;
145
145
  }>;
146
- export declare type ActionEventType = Record<string, string>;
146
+ export declare type ActionType = 'clicked' | 'started' | 'completed' | 'closed' | 'opened' | 'checked' | 'unchecked';
147
+ export declare type ActionEventType = Record<'interacted', ActionType>;
147
148
  export declare type BaseStateValue = {
148
149
  visible: boolean;
149
- started: boolean;
150
150
  disabled: boolean;
151
- completed: boolean;
152
- };
153
- export declare type ChecklistItemStateValue = {
154
- checked: boolean;
155
151
  };
156
152
  export declare type StateConfigType = {
157
- [stateKey: string]: null | string | boolean | FormDataStateConfig | ActionEventType | BaseStateValue | ChecklistItemStateValue;
153
+ [stateKey: string]: null | string | boolean | FormDataStateConfig | ActionEventType | BaseStateValue;
158
154
  };