@zealicsolutions/web-ui 0.4.97 → 0.4.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -1558,8 +1558,10 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
1558
1558
  isConfigurationMode: boolean;
1559
1559
  onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
1560
1560
  selectedConfigurationItemId: string;
1561
+ currentStyleAttributes: Record<string, string>;
1562
+ currentContentAttributes: Record<string, string>;
1561
1563
  }>>;
1562
- declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
1564
+ declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleAttributes, currentContentAttributes, }: OrganismContextProviderProps) => JSX.Element;
1563
1565
 
1564
1566
  declare type OrganismContextType = {
1565
1567
  items: (ContainerComponentProps$1 | Molecule$1)[];
@@ -1585,6 +1587,8 @@ declare type OrganismContextType = {
1585
1587
  organismMetadata?: MetadataType$1;
1586
1588
  onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
1587
1589
  selectedConfigurationItemId?: string;
1590
+ currentStyleAttributes: Record<string, string>;
1591
+ currentContentAttributes: Record<string, string>;
1588
1592
  };
1589
1593
  declare const OrganismContext: react.Context<OrganismContextType>;
1590
1594
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.4.97",
4
- "testVersion": "0.3.266",
3
+ "version": "0.4.99",
4
+ "testVersion": "0.2.296",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"