@zealicsolutions/web-ui 0.3.79 → 0.3.80

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;