react-hook-form 7.31.0 → 7.31.3

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.
Files changed (42) hide show
  1. package/README.md +14 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.mjs +24 -9
  5. package/dist/index.esm.mjs.map +1 -1
  6. package/dist/index.umd.js +1 -1
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/logic/createFormControl.d.ts.map +1 -1
  9. package/dist/logic/focusFieldBy.d.ts +2 -2
  10. package/dist/logic/focusFieldBy.d.ts.map +1 -1
  11. package/dist/logic/generateWatchOutput.d.ts +1 -1
  12. package/dist/logic/generateWatchOutput.d.ts.map +1 -1
  13. package/dist/logic/getCheckboxValue.d.ts +1 -1
  14. package/dist/logic/getCheckboxValue.d.ts.map +1 -1
  15. package/dist/logic/getProxyFormState.d.ts +1 -1
  16. package/dist/logic/getProxyFormState.d.ts.map +1 -1
  17. package/dist/logic/getRadioValue.d.ts +1 -1
  18. package/dist/logic/getRadioValue.d.ts.map +1 -1
  19. package/dist/logic/getResolverOptions.d.ts +1 -1
  20. package/dist/logic/getResolverOptions.d.ts.map +1 -1
  21. package/dist/logic/getRuleValue.d.ts +1 -1
  22. package/dist/logic/getRuleValue.d.ts.map +1 -1
  23. package/dist/logic/getValueAndMessage.d.ts +1 -1
  24. package/dist/logic/getValueAndMessage.d.ts.map +1 -1
  25. package/dist/logic/isWatched.d.ts +1 -1
  26. package/dist/logic/isWatched.d.ts.map +1 -1
  27. package/dist/logic/shouldRenderFormState.d.ts +1 -1
  28. package/dist/logic/shouldRenderFormState.d.ts.map +1 -1
  29. package/dist/logic/shouldSubscribeByName.d.ts +1 -1
  30. package/dist/logic/shouldSubscribeByName.d.ts.map +1 -1
  31. package/dist/logic/validateField.d.ts +1 -1
  32. package/dist/logic/validateField.d.ts.map +1 -1
  33. package/dist/types/form.d.ts +1 -1
  34. package/dist/useController.d.ts.map +1 -1
  35. package/dist/utils/cloneObject.d.ts.map +1 -1
  36. package/dist/utils/getValidationModes.d.ts +2 -1
  37. package/dist/utils/getValidationModes.d.ts.map +1 -1
  38. package/dist/utils/remove.d.ts +1 -1
  39. package/dist/utils/remove.d.ts.map +1 -1
  40. package/package.json +14 -13
  41. package/dist/logic/setCustomValidty.d.ts +0 -3
  42. package/dist/logic/setCustomValidty.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAYL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;AAgDlB,wBAAgB,iBAAiB,CAC/B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EAEd,KAAK,GAAE,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAM,GAC/C,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CAiqC1D"}
1
+ {"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAYL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;AAgDlB,wBAAgB,iBAAiB,CAC/B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EAEd,KAAK,GAAE,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAM,GAC/C,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CAgqC1D"}
@@ -1,4 +1,4 @@
1
- import { FieldRefs } from '../types';
2
- declare const focusFieldBy: (fields: FieldRefs, callback: (name: string) => boolean, fieldsNames?: Set<string> | string[] | undefined) => void;
1
+ import { FieldRefs, InternalFieldName } from '../types';
2
+ declare const focusFieldBy: (fields: FieldRefs, callback: (name: string) => boolean, fieldsNames?: Set<InternalFieldName> | InternalFieldName[]) => void;
3
3
  export default focusFieldBy;
4
4
  //# sourceMappingURL=focusFieldBy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusFieldBy.d.ts","sourceRoot":"","sources":["../../src/logic/focusFieldBy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AAKxD,QAAA,MAAM,YAAY,WACR,SAAS,mBACA,MAAM,KAAK,OAAO,2DAqBpC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"focusFieldBy.d.ts","sourceRoot":"","sources":["../../src/logic/focusFieldBy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAKxD,QAAA,MAAM,YAAY,WACR,SAAS,mBACA,MAAM,KAAK,OAAO,gBACrB,IAAI,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,SAoB3D,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { FieldValues, Names } from '../types';
2
- declare const _default: (names: string | string[] | undefined, _names: Names, formValues?: FieldValues | undefined, isGlobal?: boolean | undefined) => any;
2
+ declare const _default: (names: string | string[] | undefined, _names: Names, formValues?: FieldValues, isGlobal?: boolean) => any;
3
3
  export default _default;
4
4
  //# sourceMappingURL=generateWatchOutput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateWatchOutput.d.ts","sourceRoot":"","sources":["../../src/logic/generateWatchOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,KAAK,EAAE,MAAM,UAAU,CAAC;gCAKxD,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,UAC5B,KAAK;AAFf,wBAuBE"}
1
+ {"version":3,"file":"generateWatchOutput.d.ts","sourceRoot":"","sources":["../../src/logic/generateWatchOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,KAAK,EAAE,MAAM,UAAU,CAAC;gCAKxD,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,UAC5B,KAAK,eACA,WAAW,aACb,OAAO;AAJpB,wBAuBE"}
@@ -2,6 +2,6 @@ declare type CheckboxFieldResult = {
2
2
  isValid: boolean;
3
3
  value: string | string[] | boolean | undefined;
4
4
  };
5
- declare const _default: (options?: HTMLInputElement[] | undefined) => CheckboxFieldResult;
5
+ declare const _default: (options?: HTMLInputElement[]) => CheckboxFieldResult;
6
6
  export default _default;
7
7
  //# sourceMappingURL=getCheckboxValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCheckboxValue.d.ts","sourceRoot":"","sources":["../../src/logic/getCheckboxValue.ts"],"names":[],"mappings":"AAEA,aAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC;CAChD,CAAC;sEAS6C,mBAAmB;AAAlE,wBAoBE"}
1
+ {"version":3,"file":"getCheckboxValue.d.ts","sourceRoot":"","sources":["../../src/logic/getCheckboxValue.ts"],"names":[],"mappings":"AAEA,aAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC;CAChD,CAAC;mCASwB,gBAAgB,EAAE,KAAG,mBAAmB;AAAlE,wBAoBE"}
@@ -1,4 +1,4 @@
1
1
  import { FormState, ReadFormState } from '../types';
2
- declare const _default: <TFieldValues>(formState: FormState<TFieldValues>, _proxyFormState: ReadFormState, localProxyFormState?: ReadFormState | undefined, isRoot?: boolean) => FormState<TFieldValues>;
2
+ declare const _default: <TFieldValues>(formState: FormState<TFieldValues>, _proxyFormState: ReadFormState, localProxyFormState?: ReadFormState, isRoot?: boolean) => FormState<TFieldValues>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=getProxyFormState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getProxyFormState.d.ts","sourceRoot":"","sources":["../../src/logic/getProxyFormState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;4FAIjC,aAAa;AAFhC,wBAwBE"}
1
+ {"version":3,"file":"getProxyFormState.d.ts","sourceRoot":"","sources":["../../src/logic/getProxyFormState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;4FAIjC,aAAa,wBACR,aAAa;AAHrC,wBAwBE"}
@@ -2,6 +2,6 @@ declare type RadioFieldResult = {
2
2
  isValid: boolean;
3
3
  value: number | string | null;
4
4
  };
5
- declare const _default: (options?: HTMLInputElement[] | undefined) => RadioFieldResult;
5
+ declare const _default: (options?: HTMLInputElement[]) => RadioFieldResult;
6
6
  export default _default;
7
7
  //# sourceMappingURL=getRadioValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRadioValue.d.ts","sourceRoot":"","sources":["../../src/logic/getRadioValue.ts"],"names":[],"mappings":"AAAA,aAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;sEAO6C,gBAAgB;AAA/D,wBAYoB"}
1
+ {"version":3,"file":"getRadioValue.d.ts","sourceRoot":"","sources":["../../src/logic/getRadioValue.ts"],"names":[],"mappings":"AAAA,aAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;mCAOwB,gBAAgB,EAAE,KAAG,gBAAgB;AAA/D,wBAYoB"}
@@ -1,5 +1,5 @@
1
1
  import { CriteriaMode, FieldName, FieldRefs, InternalFieldName } from '../types';
2
- declare const _default: <TFieldValues>(fieldsNames: Set<InternalFieldName> | InternalFieldName[], _fields: FieldRefs, criteriaMode?: CriteriaMode | undefined, shouldUseNativeValidation?: boolean | undefined) => {
2
+ declare const _default: <TFieldValues>(fieldsNames: Set<InternalFieldName> | InternalFieldName[], _fields: FieldRefs, criteriaMode?: CriteriaMode, shouldUseNativeValidation?: boolean | undefined) => {
3
3
  criteriaMode: CriteriaMode | undefined;
4
4
  names: FieldName<TFieldValues>[];
5
5
  fields: Record<string, {
@@ -1 +1 @@
1
- {"version":3,"file":"getResolverOptions.d.ts","sourceRoot":"","sources":["../../src/logic/getResolverOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;oDAKH,IAAI,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,WAChD,SAAS,uEAEU,OAAO,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJjD,wBAoBE"}
1
+ {"version":3,"file":"getResolverOptions.d.ts","sourceRoot":"","sources":["../../src/logic/getResolverOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,SAAS,EACT,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;oDAKH,IAAI,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,WAChD,SAAS,iBACH,YAAY,8BACC,OAAO,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJjD,wBAoBE"}
@@ -1,4 +1,4 @@
1
- import { ValidationRule, ValidationValue } from '../types';
1
+ import { ValidationRule, ValidationValue, ValidationValueMessage } from '../types';
2
2
  declare const _default: <T extends ValidationValue>(rule?: ValidationRule<T> | undefined) => string | T | undefined;
3
3
  export default _default;
4
4
  //# sourceMappingURL=getRuleValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRuleValue.d.ts","sourceRoot":"","sources":["../../src/logic/getRuleValue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EAEhB,MAAM,UAAU,CAAC;;AAKlB,wBAWW"}
1
+ {"version":3,"file":"getRuleValue.d.ts","sourceRoot":"","sources":["../../src/logic/getRuleValue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,sBAAsB,EACvB,MAAM,UAAU,CAAC;;AAKlB,wBAWW"}
@@ -1,5 +1,5 @@
1
1
  import { ValidationRule } from '../types';
2
- declare const _default: (validationData?: ValidationRule<import("../types").ValidationValue> | undefined) => {
2
+ declare const _default: (validationData?: ValidationRule) => {
3
3
  value: string | number | boolean | RegExp | undefined;
4
4
  message: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getValueAndMessage.d.ts","sourceRoot":"","sources":["../../src/logic/getValueAndMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;;;;;AAI1C,wBAMQ"}
1
+ {"version":3,"file":"getValueAndMessage.d.ts","sourceRoot":"","sources":["../../src/logic/getValueAndMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;0CAIT,cAAc;;;;AAA/C,wBAMQ"}
@@ -1,4 +1,4 @@
1
1
  import { InternalFieldName, Names } from '../types';
2
- declare const _default: (name: InternalFieldName, _names: Names, isBlurEvent?: boolean | undefined) => boolean;
2
+ declare const _default: (name: InternalFieldName, _names: Names, isBlurEvent?: boolean) => boolean;
3
3
  export default _default;
4
4
  //# sourceMappingURL=isWatched.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isWatched.d.ts","sourceRoot":"","sources":["../../src/logic/isWatched.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;+BAG5C,iBAAiB,UACf,KAAK;AAFf,wBAYO"}
1
+ {"version":3,"file":"isWatched.d.ts","sourceRoot":"","sources":["../../src/logic/isWatched.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;+BAG5C,iBAAiB,UACf,KAAK,gBACC,OAAO;AAHvB,wBAYO"}
@@ -1,4 +1,4 @@
1
1
  import { ReadFormState } from '../types';
2
- declare const _default: <T extends Record<string, any>, K extends ReadFormState>(formStateData: T, _proxyFormState: K, isRoot?: boolean | undefined) => string | true | undefined;
2
+ declare const _default: <T extends Record<string, any>, K extends ReadFormState>(formStateData: T, _proxyFormState: K, isRoot?: boolean) => string | true | undefined;
3
3
  export default _default;
4
4
  //# sourceMappingURL=shouldRenderFormState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shouldRenderFormState.d.ts","sourceRoot":"","sources":["../../src/logic/shouldRenderFormState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;;AAGzC,wBAgBE"}
1
+ {"version":3,"file":"shouldRenderFormState.d.ts","sourceRoot":"","sources":["../../src/logic/shouldRenderFormState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;gIAM9B,OAAO;AAHlB,wBAgBE"}
@@ -1,3 +1,3 @@
1
- declare const _default: <T extends string | string[] | undefined>(name?: T | undefined, signalName?: string | undefined, exact?: boolean | undefined) => boolean;
1
+ declare const _default: <T extends string | string[] | undefined>(name?: T | undefined, signalName?: string, exact?: boolean) => boolean;
2
2
  export default _default;
3
3
  //# sourceMappingURL=shouldSubscribeByName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shouldSubscribeByName.d.ts","sourceRoot":"","sources":["../../src/logic/shouldSubscribeByName.ts"],"names":[],"mappings":";AAEA,wBAeQ"}
1
+ {"version":3,"file":"shouldSubscribeByName.d.ts","sourceRoot":"","sources":["../../src/logic/shouldSubscribeByName.ts"],"names":[],"mappings":"qGAIe,MAAM,UACX,OAAO;AAHjB,wBAeQ"}
@@ -1,4 +1,4 @@
1
1
  import { Field, InternalFieldErrors, NativeFieldValue } from '../types';
2
- declare const _default: <T extends NativeFieldValue>(field: Field, inputValue: T, validateAllFieldCriteria: boolean, shouldUseNativeValidation?: boolean | undefined) => Promise<InternalFieldErrors>;
2
+ declare const _default: <T extends NativeFieldValue>(field: Field, inputValue: T, validateAllFieldCriteria: boolean, shouldUseNativeValidation?: boolean) => Promise<InternalFieldErrors>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=validateField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateField.d.ts","sourceRoot":"","sources":["../../src/logic/validateField.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,mBAAmB,EAEnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;4DAoBT,KAAK,2CAEc,OAAO,sDAEhC,QAAQ,mBAAmB,CAAC;AAL/B,wBAmOE"}
1
+ {"version":3,"file":"validateField.d.ts","sourceRoot":"","sources":["../../src/logic/validateField.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,mBAAmB,EAEnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;4DAoBT,KAAK,2CAEc,OAAO,8BACL,OAAO,KAClC,QAAQ,mBAAmB,CAAC;AAL/B,wBAmOE"}
@@ -384,7 +384,7 @@ export declare type UseFormClearErrors<TFieldValues extends FieldValues> = (name
384
384
  * // Update a single field
385
385
  * setValue('name', 'value', {
386
386
  * shouldValidate: true, // trigger validation
387
- * shouldTOuch: true, // update touched fields form state
387
+ * shouldTouch: true, // update touched fields form state
388
388
  * shouldDirty: true, // update dirty and dirty fields form state
389
389
  * });
390
390
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useController.d.ts","sourceRoot":"","sources":["../src/useController.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,SAAS,EAET,WAAW,EAGX,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAKjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC3B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAE/D,KAAK,EAAE,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,GAC7C,mBAAmB,CAAC,YAAY,EAAE,KAAK,CAAC,CA+F1C"}
1
+ {"version":3,"file":"useController.d.ts","sourceRoot":"","sources":["../src/useController.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,SAAS,EAET,WAAW,EAGX,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAKjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC3B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAE/D,KAAK,EAAE,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,GAC7C,mBAAmB,CAAC,YAAY,EAAE,KAAK,CAAC,CA+G1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"cloneObject.d.ts","sourceRoot":"","sources":["../../src/utils/cloneObject.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAkBjD"}
1
+ {"version":3,"file":"cloneObject.d.ts","sourceRoot":"","sources":["../../src/utils/cloneObject.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAqBjD"}
@@ -1,4 +1,5 @@
1
- declare const _default: (mode?: keyof import("../types").ValidationMode | undefined) => {
1
+ import { Mode } from '../types';
2
+ declare const _default: (mode?: Mode) => {
2
3
  isOnSubmit: boolean;
3
4
  isOnBlur: boolean;
4
5
  isOnChange: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getValidationModes.d.ts","sourceRoot":"","sources":["../../src/utils/getValidationModes.ts"],"names":[],"mappings":"wFAKG;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AARD,wBAcG"}
1
+ {"version":3,"file":"getValidationModes.d.ts","sourceRoot":"","sources":["../../src/utils/getValidationModes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;gCAGvB,IAAI,KACV;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AARD,wBAcG"}
@@ -1,3 +1,3 @@
1
- declare const _default: <T>(data: T[], index?: number | number[] | undefined) => T[];
1
+ declare const _default: <T>(data: T[], index?: number | number[]) => T[];
2
2
  export default _default;
3
3
  //# sourceMappingURL=remove.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/utils/remove.ts"],"names":[],"mappings":";AAgBA,wBAMQ"}
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/utils/remove.ts"],"names":[],"mappings":"+CAgBsC,MAAM,GAAG,MAAM,EAAE;AAAvD,wBAMQ"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-hook-form",
3
3
  "description": "Performant, flexible and extensible forms library for React Hooks",
4
- "version": "7.31.0",
4
+ "version": "7.31.3",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.mjs",
7
7
  "umd:main": "dist/index.umd.js",
@@ -18,6 +18,7 @@
18
18
  "exports": {
19
19
  "./package.json": "./package.json",
20
20
  ".": {
21
+ "types": "./dist/index.d.ts",
21
22
  "import": "./dist/index.esm.mjs",
22
23
  "require": "./dist/index.cjs.js"
23
24
  }
@@ -69,45 +70,45 @@
69
70
  "author": "<bluebill1049@hotmail.com>",
70
71
  "license": "MIT",
71
72
  "devDependencies": {
72
- "@microsoft/api-extractor": "^7.19.4",
73
+ "@microsoft/api-extractor": "^7.24.1",
73
74
  "@rollup/plugin-commonjs": "^22.0.0",
74
75
  "@rollup/plugin-node-resolve": "^13.1.3",
75
76
  "@testing-library/jest-dom": "^5.16.4",
76
77
  "@testing-library/react": "^12.1.4",
77
78
  "@testing-library/react-hooks": "^7.0.2",
78
79
  "@testing-library/react-native": "^9.1.0",
79
- "@types/jest": "^27.4.1",
80
+ "@types/jest": "^27.5.1",
80
81
  "@types/react": "^17.0.40",
81
- "@types/react-native": "^0.67.2",
82
- "@typescript-eslint/eslint-plugin": "^5.14.0",
83
- "@typescript-eslint/parser": "^5.14.0",
82
+ "@types/react-native": "^0.67.7",
83
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
84
+ "@typescript-eslint/parser": "^5.26.0",
84
85
  "babel-jest": "^27.5.1",
85
86
  "bundlewatch": "^0.3.3",
86
87
  "cypress": "9.4.1",
87
- "eslint": "^8.11.0",
88
+ "eslint": "^8.16.0",
88
89
  "eslint-config-prettier": "^8.5.0",
89
90
  "eslint-plugin-cypress": "^2.12.1",
90
91
  "eslint-plugin-prettier": "^4.0.0",
91
- "eslint-plugin-react": "^7.29.3",
92
+ "eslint-plugin-react": "^7.30.0",
92
93
  "eslint-plugin-react-hooks": "^4.3.0",
93
94
  "eslint-plugin-simple-import-sort": "^7.0.0",
94
95
  "husky": "^7.0.4",
95
96
  "jest": "^27.5.1",
96
- "lint-staged": "^12.3.5",
97
+ "lint-staged": "^12.4.2",
97
98
  "prettier": "^2.5.1",
98
99
  "react": "^17.0.1",
99
100
  "react-dom": "^17.0.1",
100
101
  "react-native": "^0.67.3",
101
102
  "react-test-renderer": "^17.0.1",
102
103
  "rimraf": "^3.0.2",
103
- "rollup": "^2.70.0",
104
+ "rollup": "^2.74.1",
104
105
  "rollup-plugin-peer-deps-external": "^2.2.4",
105
106
  "rollup-plugin-sourcemaps": "^0.6.2",
106
107
  "rollup-plugin-terser": "^7.0.2",
107
108
  "rollup-plugin-typescript2": "^0.31.2",
108
- "ts-jest": "^27.1.4",
109
- "tsd": "^0.19.1",
110
- "typescript": "^4.6.2"
109
+ "ts-jest": "^28.0.3",
110
+ "tsd": "^0.20.0",
111
+ "typescript": "^4.7.2"
111
112
  },
112
113
  "resolutions": {
113
114
  "async": "^3.2.2"
@@ -1,3 +0,0 @@
1
- declare const _default: (inputRef: HTMLInputElement, shouldUseNativeValidation?: boolean | undefined, message?: string | boolean | undefined) => void;
2
- export default _default;
3
- //# sourceMappingURL=setCustomValidty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setCustomValidty.d.ts","sourceRoot":"","sources":["../../src/logic/setCustomValidty.ts"],"names":[],"mappings":"mCAGY,gBAAgB;AAD5B,wBASE"}