@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.
- package/README.md +7 -0
- package/index.js +426 -388
- package/index.mjs +32647 -22771
- package/lib/components/FlowFormRenderer.d.ts +0 -1
- package/lib/components/FlowRenderer.d.ts +0 -1
- package/lib/components/FormComponentRenderer.d.ts +0 -1
- package/lib/components/FormRenderer.d.ts +0 -1
- package/lib/components/complex/VouchedSend.d.ts +5 -0
- package/lib/components/inputs/Cookie.d.ts +0 -1
- package/lib/components/inputs/Email.d.ts +0 -1
- package/lib/components/inputs/GAClientId.d.ts +0 -1
- package/lib/components/inputs/Hidden.d.ts +0 -1
- package/lib/components/inputs/Number.d.ts +4 -2
- package/lib/components/inputs/Otp.d.ts +0 -1
- package/lib/components/inputs/Phone.d.ts +0 -1
- package/lib/hooks/useFlowStore.d.ts +4 -0
- package/lib/state/slices/flow.slice.d.ts +15 -1
- package/package.json +1 -1
|
@@ -4,9 +4,11 @@ export interface NumberInputProps {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
required: boolean | string;
|
|
6
6
|
propertyId: string;
|
|
7
|
-
max
|
|
8
|
-
min
|
|
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>;
|
|
@@ -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
|
};
|