@feathery/react 2.0.118 → 2.0.120
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/dist/Form/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/formContext.d.ts +1 -3
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +29 -27
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/index.js +1 -1
|
@@ -10,12 +10,10 @@ import { FieldValues } from './init';
|
|
|
10
10
|
export declare const getFormContext: (formUuid: string) => {
|
|
11
11
|
userId: string | undefined;
|
|
12
12
|
setFieldValues: (userVals: FieldValues) => void;
|
|
13
|
+
fields: Record<string, import("./Field").default>;
|
|
13
14
|
getFieldValues: () => {
|
|
14
15
|
[x: string]: import("./init").FeatheryFieldTypes;
|
|
15
16
|
};
|
|
16
|
-
fields: {
|
|
17
|
-
[x: string]: import("./Field").default;
|
|
18
|
-
};
|
|
19
17
|
setFormCompletion: (flag: boolean) => any;
|
|
20
18
|
setFieldOptions: (newOptions: FieldOptions) => void;
|
|
21
19
|
setProgress: (val: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formContext.d.ts","sourceRoot":"","sources":["../../src/utils/formContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA4C,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI/E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAc,MAAM;;+
|
|
1
|
+
{"version":3,"file":"formContext.d.ts","sourceRoot":"","sources":["../../src/utils/formContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA4C,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI/E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAc,MAAM;;+BAahB,WAAW,KAAG,IAAI;;;;;8BAcnB,OAAO;kCAUH,YAAY;uBAQvB,GAAG;wBAGF,GAAG;;;;;;;;;6BAgCb,OAAO,MAAM,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;;;;CA6BxE,CAAC"}
|
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FieldOptions } from './formHelperFunctions';
|
|
3
3
|
import Field from './Field';
|
|
4
|
+
interface FormInternalState {
|
|
5
|
+
currentStep: any;
|
|
6
|
+
previousStepName: string;
|
|
7
|
+
visiblePositions: any;
|
|
8
|
+
client: any;
|
|
9
|
+
fields: Record<string, Field>;
|
|
10
|
+
formName: string;
|
|
11
|
+
formRef: React.MutableRefObject<any>;
|
|
12
|
+
formSettings: any;
|
|
13
|
+
getErrorCallback: (props1?: Record<string, unknown>) => (props2?: Record<string, unknown>) => Promise<boolean>;
|
|
14
|
+
history: any;
|
|
15
|
+
inlineErrors: Record<string, {
|
|
16
|
+
message: string;
|
|
17
|
+
index: number;
|
|
18
|
+
}>;
|
|
19
|
+
setInlineErrors: React.Dispatch<React.SetStateAction<Record<string, {
|
|
20
|
+
message: string;
|
|
21
|
+
index: number;
|
|
22
|
+
}>>>;
|
|
23
|
+
setUserProgress: React.Dispatch<React.SetStateAction<null>>;
|
|
24
|
+
steps: any;
|
|
25
|
+
updateFieldOptions: (stepData: any, loadStep?: null) => (newOptions: FieldOptions) => void;
|
|
26
|
+
setFieldErrors: (errors: Record<string, string | {
|
|
27
|
+
index: number;
|
|
28
|
+
message: string;
|
|
29
|
+
}>) => void;
|
|
30
|
+
}
|
|
4
31
|
declare type InternalState = {
|
|
5
|
-
[formUuid: string]:
|
|
6
|
-
currentStep: any;
|
|
7
|
-
previousStepName: string;
|
|
8
|
-
visiblePositions: any;
|
|
9
|
-
client: any;
|
|
10
|
-
fields: Record<string, Field>;
|
|
11
|
-
formName: string;
|
|
12
|
-
formRef: React.MutableRefObject<any>;
|
|
13
|
-
formSettings: any;
|
|
14
|
-
getErrorCallback: (props1?: Record<string, unknown>) => (props2?: Record<string, unknown>) => Promise<boolean>;
|
|
15
|
-
history: any;
|
|
16
|
-
inlineErrors: Record<string, {
|
|
17
|
-
message: string;
|
|
18
|
-
index: number;
|
|
19
|
-
}>;
|
|
20
|
-
setInlineErrors: React.Dispatch<React.SetStateAction<Record<string, {
|
|
21
|
-
message: string;
|
|
22
|
-
index: number;
|
|
23
|
-
}>>>;
|
|
24
|
-
setUserProgress: React.Dispatch<React.SetStateAction<null>>;
|
|
25
|
-
steps: any;
|
|
26
|
-
updateFieldOptions: (stepData: any, loadStep?: null) => (newOptions: FieldOptions) => void;
|
|
27
|
-
setFieldErrors: (errors: Record<string, string | {
|
|
28
|
-
index: number;
|
|
29
|
-
message: string;
|
|
30
|
-
}>) => void;
|
|
31
|
-
};
|
|
32
|
+
[formUuid: string]: FormInternalState;
|
|
32
33
|
};
|
|
33
34
|
declare const internalState: InternalState;
|
|
35
|
+
export declare const setFormInternalState: (formUuid: string, stateValues: Record<string, any>) => FormInternalState;
|
|
34
36
|
export default internalState;
|
|
35
37
|
//# sourceMappingURL=internalState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internalState.d.ts","sourceRoot":"","sources":["../../src/utils/internalState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"internalState.d.ts","sourceRoot":"","sources":["../../src/utils/internalState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,UAAU,iBAAiB;IACzB,WAAW,EAAE,GAAG,CA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