@zealicsolutions/web-ui 0.3.78 → 0.3.80

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
+ import { AnyObject } from 'typescript';
3
4
  import { GroupedStepItemsByStepContainer } from './utils';
4
5
  export declare type OrganismContextType = {
5
6
  items: (ContainerComponentProps | Molecule)[];
6
7
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
8
+ formId?: string;
9
+ submitHandler?: (data: {
10
+ formId: string;
11
+ data: AnyObject;
12
+ }[]) => void;
7
13
  };
8
14
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,6 +1,12 @@
1
1
  import { ContainerComponentProps, Molecule } from 'containers';
2
2
  import { PropsWithChildren } from 'react';
3
+ import { AnyObject } from 'typescript';
3
4
  export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
4
5
  initItems: (ContainerComponentProps | Molecule)[];
6
+ formId: string;
7
+ submitHandler: (data: {
8
+ formId: string;
9
+ data: AnyObject;
10
+ }[]) => void;
5
11
  }>>;
6
- export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
12
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -917,13 +917,23 @@ declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
917
917
  declare type OrganismContextType = {
918
918
  items: (ContainerComponentProps$1 | Molecule$1)[];
919
919
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
920
+ formId?: string;
921
+ submitHandler?: (data: {
922
+ formId: string;
923
+ data: AnyObject$1;
924
+ }[]) => void;
920
925
  };
921
926
  declare const OrganismContext: react.Context<OrganismContextType>;
922
927
 
923
928
  declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
924
929
  initItems: (ContainerComponentProps$1 | Molecule$1)[];
930
+ formId: string;
931
+ submitHandler: (data: {
932
+ formId: string;
933
+ data: AnyObject$1;
934
+ }[]) => void;
925
935
  }>>;
926
- declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
936
+ declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
927
937
 
928
938
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
929
939
  declare type LabelInternalConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.78",
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"