@zealicsolutions/web-ui 0.3.78 → 0.3.79

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.
@@ -1,8 +1,11 @@
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: Record<string, AnyObject>) => void;
7
10
  };
8
11
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,6 +1,9 @@
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: Record<string, AnyObject>) => void;
5
8
  }>>;
6
- export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
9
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -917,13 +917,17 @@ 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: Record<string, AnyObject$1>) => void;
920
922
  };
921
923
  declare const OrganismContext: react.Context<OrganismContextType>;
922
924
 
923
925
  declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
924
926
  initItems: (ContainerComponentProps$1 | Molecule$1)[];
927
+ formId?: string;
928
+ submitHandler?: (data: Record<string, AnyObject$1>) => void;
925
929
  }>>;
926
- declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
930
+ declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
927
931
 
928
932
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
929
933
  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.79",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"