@zealicsolutions/web-ui 0.4.55 → 0.4.56
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 +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/Container.d.ts +1 -1
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +3 -2
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +17 -9
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/Container.d.ts +1 -1
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +3 -2
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +17 -9
- package/dist/index.d.ts +28 -20
- package/package.json +1 -1
@@ -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: ({
|
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: (
|
31
|
-
|
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
|
6
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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, }:
|
27
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
|