@zealicsolutions/web-ui 0.3.181 → 0.3.183
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/hooks/useStateListenerValue.d.ts +5 -2
- package/dist/cjs/src/containers/types/types.d.ts +7 -7
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/hooks/useStateListenerValue.d.ts +5 -2
- package/dist/esm/src/containers/types/types.d.ts +7 -7
- package/dist/index.d.ts +7 -7
- package/package.json +1 -1
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ActionEventType } from 'containers/types/types';
|
2
1
|
declare type UseStateListenerValueProps = {
|
3
2
|
stateListenerId?: string;
|
4
3
|
isAction?: boolean;
|
@@ -10,6 +9,10 @@ export declare const useStateListenerValue: ({ stateListenerId, isAction, }: Use
|
|
10
9
|
} | {
|
11
10
|
isStateDisabled: boolean;
|
12
11
|
isStateVisible: boolean;
|
13
|
-
stateValue:
|
12
|
+
stateValue: (string & Partial<Record<string, never>>) | (true & Partial<Record<string | number | typeof Symbol.iterator, never>>) | ({
|
13
|
+
value?: string | number | undefined;
|
14
|
+
} & Record<string, {
|
15
|
+
value?: string | number | undefined;
|
16
|
+
}> & Partial<Record<number | typeof Symbol.iterator, never>>) | (import("..").ActionEventType & Partial<Record<number | typeof Symbol.iterator, never>>) | (import("..").ProcessTrackerStateValue & Partial<Record<string | number | typeof Symbol.iterator, never>>);
|
14
17
|
};
|
15
18
|
export {};
|
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react';
|
|
3
3
|
import { ValidationMode } from 'react-hook-form';
|
4
4
|
import { CSSProperties } from 'styled-components';
|
5
5
|
import { SizesTypes } from 'theme';
|
6
|
-
import type { AnyObject, Nullable, StylesType } from 'typescript';
|
6
|
+
import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
|
7
7
|
import { Molecule, ProcessStep } from './moleculeTypes';
|
8
8
|
export declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step' | 'dynamic';
|
9
9
|
export declare type ContainerTemplateType = 'row_content_container';
|
@@ -122,11 +122,11 @@ export declare type FormDataStateConfig = {
|
|
122
122
|
value?: string | number;
|
123
123
|
}>;
|
124
124
|
export declare type ActionEventType = Record<string, boolean>;
|
125
|
-
export declare type
|
126
|
-
visible
|
125
|
+
export declare type ProcessTrackerStateValue = {
|
126
|
+
visible?: boolean;
|
127
127
|
journeyId: string;
|
128
|
-
steps:
|
129
|
-
|
130
|
-
|
128
|
+
steps: Pick<ProcessStep, 'id' | 'status' | 'link' | 'order'>[];
|
129
|
+
};
|
130
|
+
export declare type StateConfigType = {
|
131
|
+
[stateKey: string]: Nullable<StrictUnion<boolean | string | FormDataStateConfig | ActionEventType | ProcessTrackerStateValue>>;
|
131
132
|
};
|
132
|
-
export declare type StateConfigType = Record<string, Nullable<boolean | string | FormDataStateConfig | ActionEventType | TrackerStateJbject>>;
|