@zealicsolutions/web-ui 0.4.47 → 0.4.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,4 +3,4 @@ import { TabGroupProps } from 'molecules';
3
3
  export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id, formData, setFormData, isMobile, metadata, }: Molecule & {
4
4
  tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
5
5
  isMobile?: boolean | undefined;
6
- }) => JSX.Element;
6
+ }) => JSX.Element | null;
@@ -1,12 +1,18 @@
1
1
  declare type UseStateListenerValueProps = {
2
+ stateListenerId?: string;
2
3
  isAction?: boolean;
3
- id: string;
4
4
  };
5
- export declare const useStateListenerValue: ({ id, isAction }: UseStateListenerValueProps) => {
5
+ export declare const useStateListenerValue: ({ stateListenerId, isAction, }: UseStateListenerValueProps) => {
6
6
  isStateDisabled: boolean;
7
7
  isStateVisible: boolean;
8
- trackerSteps: Record<string, {
9
- status?: string | undefined;
10
- }> | undefined;
8
+ stateValue?: undefined;
9
+ } | {
10
+ isStateDisabled: boolean;
11
+ isStateVisible: boolean;
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>>);
11
17
  };
12
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>>;
@@ -2,7 +2,7 @@ import { ContainerComponentProps, Molecule } from 'containers';
2
2
  import { InputFieldTypes } from 'fieldsConfiguration';
3
3
  import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
4
4
  import { Dispatch, SetStateAction } from 'react';
5
- import { AnyObject } from 'typescript';
5
+ import type { AnyObject } from 'typescript';
6
6
  import { GroupedStepItemsByStepContainer } from './utils';
7
7
  export declare type OrganismContextType = {
8
8
  items: (ContainerComponentProps | Molecule)[];
@@ -23,6 +23,8 @@ export declare type OrganismContextType = {
23
23
  validations?: PasswordRuleValidation[];
24
24
  editable?: boolean;
25
25
  isFormInEditMode?: boolean;
26
- organismMetadata?: AnyObject;
26
+ organismMetadata?: {
27
+ stateListenerId?: string;
28
+ } & AnyObject;
27
29
  };
28
30
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,7 +1,8 @@
1
- import { ProcessStep, MetadataType } from 'containers';
1
+ import { MetadataType, ProcessStep } from 'containers';
2
+ export declare type ProcessTrackerOrientation = 'horizontal' | 'vertical';
2
3
  export declare type StepperProps = {
3
4
  steps: ProcessStep[];
4
- orientation: string;
5
+ orientation: ProcessTrackerOrientation;
5
6
  htmlElementId?: string;
6
7
  metadata: MetadataType;
7
8
  isMobile?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ProcessTrackerStatus } from 'containers';
2
2
  import { CSSProperties } from 'styled-components';
3
- import { Callback, Nullable } from 'typescript';
3
+ import type { Callback, Nullable } from 'typescript';
4
4
  export declare type ProcessTrackerProps = {
5
5
  title?: Nullable<string>;
6
6
  description?: Nullable<string>;
package/dist/index.d.ts CHANGED
@@ -626,14 +626,14 @@ declare type FormDataStateConfig = {
626
626
  value?: string | number;
627
627
  }>;
628
628
  declare type ActionEventType = Record<string, boolean>;
629
- declare type TrackerStateJbject = {
630
- visible: boolean;
629
+ declare type ProcessTrackerStateValue = {
630
+ visible?: boolean;
631
631
  journeyId: string;
632
- steps: Partial<ProcessStep & {
633
- nodeId: string;
634
- }>[];
632
+ steps: Pick<ProcessStep, 'id' | 'status' | 'link' | 'order'>[];
633
+ };
634
+ declare type StateConfigType = {
635
+ [stateKey: string]: Nullable<StrictUnion<boolean | string | FormDataStateConfig | ActionEventType | ProcessTrackerStateValue>>;
635
636
  };
636
- declare type StateConfigType = Record<string, Nullable<boolean | string | FormDataStateConfig | ActionEventType | TrackerStateJbject>>;
637
637
 
638
638
  declare type Callback = () => void;
639
639
  declare type AnyObject = Record<string, unknown>;
@@ -1514,7 +1514,9 @@ declare type OrganismContextType = {
1514
1514
  validations?: PasswordRuleValidation[];
1515
1515
  editable?: boolean;
1516
1516
  isFormInEditMode?: boolean;
1517
- organismMetadata?: AnyObject$1;
1517
+ organismMetadata?: {
1518
+ stateListenerId?: string;
1519
+ } & AnyObject$1;
1518
1520
  };
1519
1521
  declare const OrganismContext: react.Context<OrganismContextType>;
1520
1522
 
@@ -1918,9 +1920,10 @@ declare type AlertProps = {
1918
1920
  };
1919
1921
  declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
1920
1922
 
1923
+ declare type ProcessTrackerOrientation = 'horizontal' | 'vertical';
1921
1924
  declare type StepperProps = {
1922
1925
  steps: ProcessStep$1[];
1923
- orientation: string;
1926
+ orientation: ProcessTrackerOrientation;
1924
1927
  htmlElementId?: string;
1925
1928
  metadata: MetadataType$1;
1926
1929
  isMobile?: boolean;
@@ -2136,4 +2139,4 @@ declare type LinkProps = Omit<TextButtonProps$1, 'children'> & Partial<{
2136
2139
  }>;
2137
2140
  declare const Link: ({ text, isRichText, htmlElementId, isTrigger, moleculeId, ...props }: LinkProps) => JSX.Element | null;
2138
2141
 
2139
- export { AccountButtonContext, AccountButtonContextType, AccountButtonMolecule, AccountButtonProvider, AccountButtonProviderProps, AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionEventType, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownMenuConfigType, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorAttributes, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, ConsentType, Container, ContainerAlignItemsType, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DefaultSelectionType, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContextProviderProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, Link, LinkAttributes, LinkMolecule, LinkProps, LinkVariant, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MetadataStateConfig, MetadataType, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextType, OrganismItem, OrganismItemProps, OrientationType, OrientationTypeLabel, Padding, PaddingProps, PaddingVariants, PasswordSetupMolecule, PdfDocument, PdfDocumentProps, PopupPropsType, ProcessStep, ProcessStepsAttributes, ProcessStepsMoleculeType, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, SlateValueChildType, Slide, SliderProps, SlidesWrapper, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TrackerStateJbject, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, WrappedContainerType, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, baseButtonAllowedConfigurations, defaultTheme, defaultValue, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, passwordMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
2142
+ export { AccountButtonContext, AccountButtonContextType, AccountButtonMolecule, AccountButtonProvider, AccountButtonProviderProps, AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionEventType, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownMenuConfigType, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorAttributes, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, ConsentType, Container, ContainerAlignItemsType, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DefaultSelectionType, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContextProviderProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, Link, LinkAttributes, LinkMolecule, LinkProps, LinkVariant, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MetadataStateConfig, MetadataType, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextType, OrganismItem, OrganismItemProps, OrientationType, OrientationTypeLabel, Padding, PaddingProps, PaddingVariants, PasswordSetupMolecule, PdfDocument, PdfDocumentProps, PopupPropsType, ProcessStep, ProcessStepsAttributes, ProcessStepsMoleculeType, ProcessTracker, ProcessTrackerOrientation, ProcessTrackerProps, ProcessTrackerStateValue, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, SlateValueChildType, Slide, SliderProps, SlidesWrapper, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, WrappedContainerType, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, baseButtonAllowedConfigurations, defaultTheme, defaultValue, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, passwordMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.4.47",
4
- "testVersion": "0.3.180",
3
+ "version": "0.4.48",
4
+ "testVersion": "0.3.184",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"