@zealicsolutions/web-ui 0.3.181 → 0.3.183

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: ActionEventType;
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 TrackerStateJbject = {
126
- visible: boolean;
125
+ export declare type ProcessTrackerStateValue = {
126
+ visible?: boolean;
127
127
  journeyId: string;
128
- steps: Partial<ProcessStep & {
129
- nodeId: string;
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>>;