@acuteinfo/common-base 1.0.109 → 1.2.1

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.
@@ -32,5 +32,6 @@ export declare const useField: ({ fieldKey, name, dependentFields, validate, val
32
32
  optionData?: any;
33
33
  ignoreInSubmit?: boolean | undefined;
34
34
  componentType?: string | undefined;
35
+ prevValue?: any;
35
36
  };
36
37
  export declare const transformDependentFieldsState: (dependentValues: DependentValuesType) => {};
@@ -17,6 +17,7 @@ export interface FormContextType {
17
17
  validationRun?: ValidationRunType;
18
18
  resetFieldOnUnmount?: boolean;
19
19
  initialValues?: InitialValuesType;
20
+ previousValues?: InitialValuesType;
20
21
  validationSchema?: AnyObjectSchema;
21
22
  formState: any;
22
23
  defaultArrayFieldValues?: InitialValuesType;
@@ -54,6 +55,7 @@ export interface FormFieldAtomType {
54
55
  optionData?: any;
55
56
  ignoreInSubmit?: boolean;
56
57
  componentType?: string;
58
+ prevValue?: any;
57
59
  }
58
60
  export interface DependentValuesType {
59
61
  [key: string]: FormFieldAtomType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-base",
3
- "version": "1.0.109",
3
+ "version": "1.2.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",