@micromerce/formbuilder-react 1.0.799 → 1.0.802

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.
@@ -11,9 +11,10 @@ export interface IProps {
11
11
  state?: FormState | "";
12
12
  resolveUrl?: resolveUrl;
13
13
  onSubmit?: (urlEncodedFormValues: string, formValues: any) => Promise<any>;
14
+ onValidationFail?: () => void;
14
15
  postGenAiMessage?: ({ message, profile, }: PostMessageProps) => Promise<PostMessageResponse>;
15
16
  }
16
- declare const FormBuilder: ({ config, controlProps, fileUploaderConfig, iconType, state, resolveUrl, onSubmit, postGenAiMessage, }: IProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const FormBuilder: ({ config, controlProps, fileUploaderConfig, iconType, state, resolveUrl, onSubmit, onValidationFail, postGenAiMessage, }: IProps) => import("react/jsx-runtime").JSX.Element;
17
18
  interface FormProps {
18
19
  method: string;
19
20
  formSubmitted: boolean;
@@ -17,6 +17,7 @@ interface ContextProps {
17
17
  removeListItem: (listName: string, index: number) => void;
18
18
  getControlByObjectPath: (path: string) => FormControl;
19
19
  toggleRerendered: boolean;
20
+ showValidationErrors: boolean;
20
21
  postGenAiMessage?: ({ message, profile, }: PostMessageProps) => Promise<PostMessageResponse>;
21
22
  }
22
23
  export declare const FormDataContext: React.Context<Partial<ContextProps>>;
@@ -26,6 +27,7 @@ export interface ProviderProps {
26
27
  controls: FormControls;
27
28
  fileUploaderConfig?: FileUploaderConfig;
28
29
  resolveUrl?: resolveUrl;
30
+ validationTriggerRef?: React.MutableRefObject<(() => void) | null>;
29
31
  postGenAiMessage?: ({ message, profile, }: PostMessageProps) => Promise<PostMessageResponse>;
30
32
  }
31
33
  export declare const getEnhancedControls: (controls: FormControls) => FormControls;