@zealicsolutions/web-ui 0.3.79 → 0.3.80

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.
@@ -6,6 +6,9 @@ export declare type OrganismContextType = {
6
6
  items: (ContainerComponentProps | Molecule)[];
7
7
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
8
8
  formId?: string;
9
- submitHandler?: (data: Record<string, AnyObject>) => void;
9
+ submitHandler?: (data: {
10
+ formId: string;
11
+ data: AnyObject;
12
+ }[]) => void;
10
13
  };
11
14
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -3,7 +3,10 @@ import { PropsWithChildren } from 'react';
3
3
  import { AnyObject } from 'typescript';
4
4
  export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
5
5
  initItems: (ContainerComponentProps | Molecule)[];
6
- formId?: string;
7
- submitHandler?: (data: Record<string, AnyObject>) => void;
6
+ formId: string;
7
+ submitHandler: (data: {
8
+ formId: string;
9
+ data: AnyObject;
10
+ }[]) => void;
8
11
  }>>;
9
12
  export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -918,14 +918,20 @@ declare type OrganismContextType = {
918
918
  items: (ContainerComponentProps$1 | Molecule$1)[];
919
919
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
920
920
  formId?: string;
921
- submitHandler?: (data: Record<string, AnyObject$1>) => void;
921
+ submitHandler?: (data: {
922
+ formId: string;
923
+ data: AnyObject$1;
924
+ }[]) => void;
922
925
  };
923
926
  declare const OrganismContext: react.Context<OrganismContextType>;
924
927
 
925
928
  declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
926
929
  initItems: (ContainerComponentProps$1 | Molecule$1)[];
927
- formId?: string;
928
- submitHandler?: (data: Record<string, AnyObject$1>) => void;
930
+ formId: string;
931
+ submitHandler: (data: {
932
+ formId: string;
933
+ data: AnyObject$1;
934
+ }[]) => void;
929
935
  }>>;
930
936
  declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
931
937
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.79",
3
+ "version": "0.3.80",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"