@zealicsolutions/web-ui 0.2.295 → 0.2.297
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 +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/utils.d.ts +2 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +3 -2
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/utils.d.ts +2 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +3 -2
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -2
- package/dist/index.d.ts +6 -4
- package/package.json +2 -2
@@ -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,7 +29,8 @@ export declare type OrganismContextType = {
|
|
29
29
|
organismMetadata?: MetadataType;
|
30
30
|
onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
|
31
31
|
selectedConfigurationItemId?: string;
|
32
|
-
currentStyleAttributes:
|
33
|
-
currentContentAttributes:
|
32
|
+
currentStyleAttributes: Record<string, string>;
|
33
|
+
currentContentAttributes: Record<string, string>;
|
34
|
+
realTimeFormUpdated: boolean;
|
34
35
|
};
|
35
36
|
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -27,7 +27,8 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
27
27
|
isConfigurationMode: boolean;
|
28
28
|
onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
|
29
29
|
selectedConfigurationItemId: string;
|
30
|
-
currentStyleAttributes:
|
31
|
-
currentContentAttributes:
|
30
|
+
currentStyleAttributes: Record<string, string>;
|
31
|
+
currentContentAttributes: Record<string, string>;
|
32
|
+
realTimeFormUpdated: boolean;
|
32
33
|
}>>;
|
33
34
|
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleAttributes, currentContentAttributes }: OrganismContextProviderProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
@@ -1558,8 +1558,9 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
1558
1558
|
isConfigurationMode: boolean;
|
1559
1559
|
onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
|
1560
1560
|
selectedConfigurationItemId: string;
|
1561
|
-
currentStyleAttributes:
|
1562
|
-
currentContentAttributes:
|
1561
|
+
currentStyleAttributes: Record<string, string>;
|
1562
|
+
currentContentAttributes: Record<string, string>;
|
1563
|
+
realTimeFormUpdated: boolean;
|
1563
1564
|
}>>;
|
1564
1565
|
declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleAttributes, currentContentAttributes }: OrganismContextProviderProps) => JSX.Element;
|
1565
1566
|
|
@@ -1587,8 +1588,9 @@ declare type OrganismContextType = {
|
|
1587
1588
|
organismMetadata?: MetadataType$1;
|
1588
1589
|
onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
|
1589
1590
|
selectedConfigurationItemId?: string;
|
1590
|
-
currentStyleAttributes:
|
1591
|
-
currentContentAttributes:
|
1591
|
+
currentStyleAttributes: Record<string, string>;
|
1592
|
+
currentContentAttributes: Record<string, string>;
|
1593
|
+
realTimeFormUpdated: boolean;
|
1592
1594
|
};
|
1593
1595
|
declare const OrganismContext: react.Context<OrganismContextType>;
|
1594
1596
|
|
package/package.json
CHANGED