@zealicsolutions/web-ui 0.4.55 → 0.4.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import { ContainerComponentProps, ContainerProps } from 'containers';
2
2
  import { Dispatch, ReactNode, SetStateAction } from 'react';
3
3
  import type { AnyObject } from 'typescript';
4
- export declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, }: Partial<{
4
+ export declare const Container: ({ id, type, wide, props, compact, children, metadata, isMobile, }: Partial<{
5
5
  type: import("containers").ContainerType;
6
6
  containerTemplateType: "row_content_container";
7
7
  wide: Partial<{
@@ -4,6 +4,7 @@ import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
4
4
  import { Dispatch, SetStateAction } from 'react';
5
5
  import type { AnyObject } from 'typescript';
6
6
  import { GroupedStepItemsByStepContainer } from './utils';
7
+ import { ConfigurationItem } from './OrganismContextProvider';
7
8
  export declare type OrganismContextType = {
8
9
  items: (ContainerComponentProps | Molecule)[];
9
10
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
@@ -27,7 +28,7 @@ export declare type OrganismContextType = {
27
28
  organismMetadata?: {
28
29
  stateListenerId?: string;
29
30
  } & AnyObject;
30
- onConfigurationItemClicked: (itemPath?: string) => void;
31
- selectedConfigurationItemPath?: string;
31
+ onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
32
+ selectedConfigurationItemId?: string;
32
33
  };
33
34
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -2,18 +2,26 @@ import { PropsWithChildren } from 'react';
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
3
  import type { AnyObject } from 'typescript';
4
4
  import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
5
- export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
6
- initItems: (ContainerComponentProps | Molecule)[];
5
+ export declare type ConfigurationItem = {
6
+ entity: 'container' | 'molecule';
7
+ entityId: string;
8
+ organismId: string;
9
+ };
10
+ export declare type OrganismContextProviderProps = PropsWithChildren<{
11
+ organismId: string;
12
+ } & Partial<{
7
13
  formId: string;
14
+ editable: boolean;
15
+ initItems: (ContainerComponentProps | Molecule)[];
16
+ validations: PasswordRuleValidation[];
8
17
  submitHandler: (data: {
9
18
  formId: string;
10
19
  data: AnyObject;
11
20
  }) => void;
12
- validations: PasswordRuleValidation[];
13
- editable: boolean;
14
- isFormInEditMode?: boolean;
15
- organismMetadata?: AnyObject;
16
- isConfigurationMode?: boolean;
17
- onConfigurationItemHandler?: (itemPath?: string) => void;
21
+ isFormInEditMode: boolean;
22
+ organismMetadata: AnyObject;
23
+ isConfigurationMode: boolean;
24
+ onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
25
+ selectedConfigurationItemId: string;
18
26
  }>>;
19
- export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, }: FormStepContextProviderProps) => JSX.Element;
27
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;