@zealicsolutions/web-ui 0.4.96 → 0.4.98
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +13 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/styles.d.ts +5 -5
- package/dist/cjs/src/containers/utils.d.ts +2 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +2 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -1
- package/dist/esm/index.js +13 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/styles.d.ts +5 -5
- package/dist/esm/src/containers/utils.d.ts +2 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +2 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -1
- package/dist/index.d.ts +5 -1
- package/package.json +2 -2
@@ -8,11 +8,6 @@ export declare type ConfigurationItemInfo = {
|
|
8
8
|
isConfigurationMode?: boolean;
|
9
9
|
onClick?: (e: MouseEvent) => void;
|
10
10
|
};
|
11
|
-
export declare const getConfigurationWrapperStyle: ({ $selected, isConfigurationMode, theme: { colors }, }: {
|
12
|
-
$selected?: boolean | undefined;
|
13
|
-
isConfigurationMode?: boolean | undefined;
|
14
|
-
theme: DefaultTheme;
|
15
|
-
}) => import("styled-components").FlattenSimpleInterpolation;
|
16
11
|
export declare const ContainerWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, Pick<ContainerProps, "type"> & {
|
17
12
|
containerProps?: Partial<{
|
18
13
|
position: import("containers/types/types").ContainerPositionType;
|
@@ -36,3 +31,8 @@ export declare const ContainerWrapper: import("styled-components").StyledCompone
|
|
36
31
|
}> | undefined;
|
37
32
|
metadata?: AnyObject | undefined;
|
38
33
|
}, never>;
|
34
|
+
export declare const getConfigurationWrapperStyle: ({ $selected, isConfigurationMode, theme: { colors }, }: {
|
35
|
+
$selected?: boolean | undefined;
|
36
|
+
isConfigurationMode?: boolean | undefined;
|
37
|
+
theme: DefaultTheme;
|
38
|
+
}) => import("styled-components").FlattenSimpleInterpolation;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export declare function overrideAttributes(savedAttributes: Partial<Record<string, any>>, currentContentAttributes: Partial<Record<string, any>> | undefined, properties: string[], selected: boolean): Partial<Record<string, any>>;
|
2
|
+
export declare function overrideProps(savedProps: Partial<Record<string, any>>, currentStyleAttributes: Partial<Record<string, any>> | undefined, selected: boolean): Partial<Record<string, any>>;
|
@@ -29,5 +29,7 @@ export declare type OrganismContextType = {
|
|
29
29
|
organismMetadata?: MetadataType;
|
30
30
|
onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
|
31
31
|
selectedConfigurationItemId?: string;
|
32
|
+
currentStyleAttributes: Record<string, string>;
|
33
|
+
currentContentAttributes: Record<string, string>;
|
32
34
|
};
|
33
35
|
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -27,5 +27,7 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
27
27
|
isConfigurationMode: boolean;
|
28
28
|
onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
|
29
29
|
selectedConfigurationItemId: string;
|
30
|
+
currentStyleAttributes: Record<string, string>;
|
31
|
+
currentContentAttributes: Record<string, string>;
|
30
32
|
}>>;
|
31
|
-
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
|
33
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleAttributes, currentContentAttributes }: OrganismContextProviderProps) => JSX.Element;
|