@hievilmath/browser-formidavim 1.6.2 → 1.7.0

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.
@@ -5,5 +5,4 @@ export declare const FlowFormRenderer: FC<{
5
5
  flowForm: Partial<FlowForm>;
6
6
  isPreview: boolean;
7
7
  evaluatedFormComponents?: EvaluatedFormComponent[];
8
- formidavimHost?: string;
9
8
  }>;
@@ -23,5 +23,4 @@ export declare const FlowRenderer: FC<{
23
23
  onPrevStep?: (data: eventData) => any;
24
24
  onFormInit?: (data: eventData) => any;
25
25
  shouldRedirect?: boolean;
26
- formidavimHost?: string;
27
26
  }>;
@@ -5,5 +5,4 @@ export declare const FormComponentRenderer: FC<{
5
5
  isPreview: boolean;
6
6
  boundary: 'first' | 'last' | null;
7
7
  isVisible?: boolean;
8
- formidavimHost?: string;
9
8
  }>;
@@ -5,5 +5,4 @@ export declare const FormRenderer: FC<{
5
5
  form?: Form;
6
6
  isPreview: boolean;
7
7
  evaluatedFormComponents: EvaluatedFormComponent[];
8
- formidavimHost?: string;
9
8
  }>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Vouched: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -2,5 +2,4 @@ import { FC } from 'react';
2
2
  import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const Cookie: FC<{
4
4
  formComponent: Partial<FormComponent>;
5
- formidavimHost?: string;
6
5
  }>;
@@ -2,5 +2,4 @@ import { FC } from 'react';
2
2
  import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const Email: FC<{
4
4
  formComponent: Partial<FormComponent>;
5
- formidavimHost?: string;
6
5
  }>;
@@ -12,5 +12,4 @@ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
12
12
  */
13
13
  export declare const GAClientId: FC<{
14
14
  formComponent: Partial<FormComponent>;
15
- formidavimHost?: string;
16
15
  }>;
@@ -2,5 +2,4 @@ import { FC } from 'react';
2
2
  import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const Hidden: FC<{
4
4
  formComponent: Partial<FormComponent>;
5
- formidavimHost?: string;
6
5
  }>;
@@ -4,9 +4,11 @@ export interface NumberInputProps {
4
4
  label?: string;
5
5
  required: boolean | string;
6
6
  propertyId: string;
7
- max: number;
8
- min: number;
7
+ max?: number | null | "";
8
+ min?: number | null | "";
9
9
  allowLeadingZero?: boolean;
10
+ maxDigits?: number | null | "";
11
+ minDigits?: number | null | "";
10
12
  }
11
13
  export declare const NumberInput: FC<{
12
14
  formComponent: Partial<FormComponent>;
@@ -2,5 +2,4 @@ import { default as React } from 'react';
2
2
  import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const Otp: React.FC<{
4
4
  formComponent: Partial<FormComponent>;
5
- formidavimHost?: string;
6
5
  }>;
@@ -2,5 +2,4 @@ import { FC } from 'react';
2
2
  import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const Phone: FC<{
4
4
  formComponent: Partial<FormComponent>;
5
- formidavimHost?: string;
6
5
  }>;
@@ -12,6 +12,8 @@ export declare const useFlowStore: () => {
12
12
  getFlowError: (field: string) => any;
13
13
  setDisableSubmitValue: (disabled: boolean) => void;
14
14
  getDisableSubmitValue: () => boolean;
15
+ setManualDisableSubmitValue: (disabled: boolean) => void;
16
+ getManualDisableSubmitValue: () => boolean;
15
17
  setPatientValue: (field: string, value: any) => void;
16
18
  setPatientValues: (profile: any) => void;
17
19
  getPatientValue: (field: string) => string | undefined;
@@ -20,6 +22,8 @@ export declare const useFlowStore: () => {
20
22
  getCurrentFlowValue: () => Partial<Flow>;
21
23
  setCurrentFormValue: (form: any) => void;
22
24
  getCurrentFormValue: () => Partial<import('../../../../../axios/formidavim/src/index.ts').Form>;
25
+ getFormidavimHost: () => string | undefined;
26
+ setFormidavimHostValue: (host: string | undefined) => void;
23
27
  setFlowAndPatientValue: (field: string, value: any) => void;
24
28
  generateFormDataFromFlow: (flow: Partial<Flow>) => Record<string, any>;
25
29
  };
@@ -4,8 +4,10 @@ export interface FlowSliceState {
4
4
  inputValues: Record<string, any>;
5
5
  inputErrors: Record<string, any>;
6
6
  disableSubmit: boolean;
7
+ manualDisableSubmit: boolean;
7
8
  currentFlow: Partial<Flow>;
8
9
  currentForm: Partial<Form>;
10
+ formidavimHost?: string;
9
11
  }
10
12
  export declare const flowSlice: import('@reduxjs/toolkit').Slice<FlowSliceState, {
11
13
  setInputValue: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<{
@@ -20,14 +22,18 @@ export declare const flowSlice: import('@reduxjs/toolkit').Slice<FlowSliceState,
20
22
  error: string | null;
21
23
  }>) => void;
22
24
  setDisableSubmit: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<boolean>) => void;
25
+ setManualDisableSubmit: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<boolean>) => void;
23
26
  setCurrentFlow: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<Partial<Flow>>) => void;
24
27
  setCurrentForm: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<Partial<Form>>) => void;
28
+ setFormidavimHost: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<string | undefined>) => void;
25
29
  }, "flow", "flow", {
26
30
  selectInputValues: (state: FlowSliceState) => Record<string, any>;
27
31
  selectInputErrors: (state: FlowSliceState) => Record<string, any>;
28
32
  selectDisableSubmit: (state: FlowSliceState) => boolean;
33
+ selectManualDisableSubmit: (state: FlowSliceState) => boolean;
29
34
  selectCurrentFlow: (state: FlowSliceState) => Partial<Flow>;
30
35
  selectCurrentForm: (state: FlowSliceState) => Partial<Form>;
36
+ selectFormidavimHost: (state: FlowSliceState) => string | undefined;
31
37
  }>;
32
38
  export declare const setInputValue: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
33
39
  field: string;
@@ -35,7 +41,7 @@ export declare const setInputValue: import('@reduxjs/toolkit').ActionCreatorWith
35
41
  }, "flow/setInputValue">, setInputValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Record<string, any>, "flow/setInputValues">, resetInputValues: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"flow/resetInputValues">, resetAndSetInputValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Record<string, any>, "flow/resetAndSetInputValues">, setInputError: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
36
42
  field: string;
37
43
  error: string | null;
38
- }, "flow/setInputError">, setDisableSubmit: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "flow/setDisableSubmit">, setCurrentFlow: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<Flow>, "flow/setCurrentFlow">, setCurrentForm: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<Form>, "flow/setCurrentForm">;
44
+ }, "flow/setInputError">, setDisableSubmit: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "flow/setDisableSubmit">, setManualDisableSubmit: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "flow/setManualDisableSubmit">, setCurrentFlow: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<Flow>, "flow/setCurrentFlow">, setCurrentForm: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<Form>, "flow/setCurrentForm">, setFormidavimHost: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string | undefined, "flow/setFormidavimHost">;
39
45
  export declare const selectInputValues: import('reselect').Selector<{
40
46
  flow: FlowSliceState;
41
47
  }, Record<string, any>, []> & {
@@ -48,6 +54,10 @@ export declare const selectInputValues: import('reselect').Selector<{
48
54
  flow: FlowSliceState;
49
55
  }, boolean, []> & {
50
56
  unwrapped: (state: FlowSliceState) => boolean;
57
+ }, selectManualDisableSubmit: import('reselect').Selector<{
58
+ flow: FlowSliceState;
59
+ }, boolean, []> & {
60
+ unwrapped: (state: FlowSliceState) => boolean;
51
61
  }, selectCurrentFlow: import('reselect').Selector<{
52
62
  flow: FlowSliceState;
53
63
  }, Partial<Flow>, []> & {
@@ -56,4 +66,8 @@ export declare const selectInputValues: import('reselect').Selector<{
56
66
  flow: FlowSliceState;
57
67
  }, Partial<Form>, []> & {
58
68
  unwrapped: (state: FlowSliceState) => Partial<Form>;
69
+ }, selectFormidavimHost: import('reselect').Selector<{
70
+ flow: FlowSliceState;
71
+ }, string | undefined, []> & {
72
+ unwrapped: (state: FlowSliceState) => string | undefined;
59
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hievilmath/browser-formidavim",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "typings": "./index.d.ts",