@acuteinfo/common-base 1.2.56 → 1.2.58

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { UseFormHookProps } from "./types";
2
+ import { FieldsErrorObjType, UseFormHookProps } from "./types";
3
3
  export declare const useForm: ({ onSubmit, readOnly }: UseFormHookProps) => {
4
4
  submitAttempt: number;
5
5
  isSubmitting: boolean;
@@ -13,4 +13,5 @@ export declare const useForm: ({ onSubmit, readOnly }: UseFormHookProps) => {
13
13
  handleClear: (e: any) => void;
14
14
  handleClearPartial: (fields: string[]) => void;
15
15
  getFieldData: () => Promise<{}>;
16
+ setFieldData: (fieldsValueObj?: FieldsErrorObjType | undefined) => void;
16
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-base",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",
@@ -31,7 +31,6 @@
31
31
  "date-fns": "^2.30.0",
32
32
  "dayjs": "^1.11.9",
33
33
  "history": "^5.0.0",
34
- "husky": "^4.3.0",
35
34
  "i18next": "^23.12.2",
36
35
  "js2xmlparser": "^5.0.0",
37
36
  "json-rules-engine": "^5.0.4",
@@ -116,6 +115,7 @@
116
115
  "@types/react": "^18.2.74",
117
116
  "@types/react-i18next": "^8.1.0",
118
117
  "@types/yup": "^0.29.6",
118
+ "husky": "^4.3.8",
119
119
  "postcss": "^8.4.38",
120
120
  "postcss-nested": "^6.0.1",
121
121
  "postcss-simple-vars": "^7.0.1",
@@ -132,4 +132,4 @@
132
132
  "react": "^18.2.0",
133
133
  "react-dom": "^18.2.0"
134
134
  }
135
- }
135
+ }