remix-hook-form
Advanced tools
Comparing version 3.0.4 to 3.1.0
import * as react_hook_form from 'react-hook-form'; | ||
import { FieldValues, Resolver, FieldErrors, UseFormProps, SubmitHandler, SubmitErrorHandler, DeepPartial, Path, RegisterOptions, UseFormReturn } from 'react-hook-form'; | ||
import { FieldValues, Resolver, FieldErrors, UseFormProps, SubmitHandler, SubmitErrorHandler, DefaultValues, Path, RegisterOptions, UseFormReturn } from 'react-hook-form'; | ||
import React from 'react'; | ||
@@ -68,3 +68,3 @@ import { SubmitFunction, FetcherWithComponents } from '@remix-run/react'; | ||
handleSubmit: (e?: React.BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>; | ||
reset: (values?: T | DeepPartial<T> | undefined) => void; | ||
reset: (values?: T | DefaultValues<T> | undefined) => void; | ||
register: (name: Path<T>, options?: (RegisterOptions<T> & { | ||
@@ -87,3 +87,4 @@ disableProgressiveEnhancement?: boolean | undefined; | ||
formState: { | ||
dirtyFields: Partial<Readonly<react_hook_form.DeepMap<DeepPartial<T>, boolean>>>; | ||
disabled: boolean; | ||
dirtyFields: Partial<Readonly<react_hook_form.DeepMap<react_hook_form.DeepPartial<T>, boolean>>>; | ||
isDirty: boolean; | ||
@@ -95,3 +96,3 @@ isSubmitSuccessful: boolean; | ||
isValidating: boolean; | ||
touchedFields: Partial<Readonly<react_hook_form.DeepMap<DeepPartial<T>, boolean>>>; | ||
touchedFields: Partial<Readonly<react_hook_form.DeepMap<react_hook_form.DeepPartial<T>, boolean>>>; | ||
submitCount: number; | ||
@@ -98,0 +99,0 @@ isLoading: boolean; |
@@ -170,3 +170,4 @@ // src/utilities/index.ts | ||
errors, | ||
isLoading | ||
isLoading, | ||
disabled | ||
} = formState; | ||
@@ -198,2 +199,3 @@ const formErrors = mergeErrors( | ||
formState: { | ||
disabled, | ||
dirtyFields, | ||
@@ -200,0 +202,0 @@ isDirty, |
{ | ||
"name": "remix-hook-form", | ||
"version": "3.0.4", | ||
"version": "3.1.0", | ||
"description": "Utility wrapper around react-hook-form for use with Remix.run", | ||
@@ -71,3 +71,3 @@ "type": "module", | ||
"react-dom": "^18.2.0", | ||
"react-hook-form": "^7.43.9" | ||
"react-hook-form": "^7.48.2" | ||
}, | ||
@@ -91,3 +91,3 @@ "readme": "https://github.com/Code-Forge-Net/remix-hook-form#readme", | ||
"react-dom": "^18.2.0", | ||
"react-hook-form": "^7.43.9", | ||
"react-hook-form": "^7.48.2", | ||
"remix-development-tools": "^3.1.1", | ||
@@ -94,0 +94,0 @@ "rollup": "^3.20.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48932
637