Skip to content

Commit

Permalink
Merge pull request #339 from Skarvion/master
Browse files Browse the repository at this point in the history
Fix incorrect RHF dependency by removing references to `../dist/..`
  • Loading branch information
dohomi authored Jan 6, 2025
2 parents 9757ea7 + 5706a1d commit 87efa44
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"next": "14.2.10",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "7.48.2",
"react-hook-form": "7.54.2",
"react-hook-form-mui": "portal:../../packages/rhf-mui"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"date-fns": "3.6.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "7.48.2",
"react-hook-form": "7.54.2",
"storybook": "8.0.10",
"typescript": "5.5.3",
"vite": "^5.2.14"
Expand Down
2 changes: 1 addition & 1 deletion packages/rhf-mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"react": "18.3.1",
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "18.3.1",
"react-hook-form": "7.48.2",
"react-hook-form": "7.54.2",
"release": "^6.3.1",
"tsup": "^6.1.2",
"typescript": "5.5.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/rhf-mui/src/DateTimePickerElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import {
Control,
FieldError,
FieldPath,
FieldValues,
PathValue,
useController,
UseControllerProps,
} from 'react-hook-form'
import {TextFieldProps, useForkRef} from '@mui/material'
import {FieldValues} from 'react-hook-form/dist/types/fields'
import {useFormError} from './FormErrorProvider'
import {forwardRef, ReactNode, Ref, RefAttributes} from 'react'
import {defaultErrorMessages} from './messages/DateTimePicker'
Expand Down
2 changes: 1 addition & 1 deletion packages/rhf-mui/src/FormContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {FormEventHandler, FormHTMLAttributes, PropsWithChildren} from 'react'
import {
FieldValues,
FormProvider,
SubmitErrorHandler,
SubmitHandler,
useForm,
UseFormProps,
UseFormReturn,
} from 'react-hook-form'
import {FieldValues} from 'react-hook-form/dist/types/fields'

export type FormContainerProps<T extends FieldValues = FieldValues> =
PropsWithChildren<
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9707,7 +9707,7 @@ __metadata:
next: "npm:14.2.10"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-hook-form: "npm:7.48.2"
react-hook-form: "npm:7.54.2"
react-hook-form-mui: "portal:../../packages/rhf-mui"
typescript: "npm:5.5.3"
languageName: unknown
Expand Down Expand Up @@ -10835,7 +10835,7 @@ __metadata:
react: "npm:18.3.1"
react-docgen-typescript-loader: "npm:^3.7.2"
react-dom: "npm:18.3.1"
react-hook-form: "npm:7.48.2"
react-hook-form: "npm:7.54.2"
release: "npm:^6.3.1"
tsup: "npm:^6.1.2"
typescript: "npm:5.5.3"
Expand All @@ -10853,12 +10853,12 @@ __metadata:
languageName: unknown
linkType: soft

"react-hook-form@npm:7.48.2":
version: 7.48.2
resolution: "react-hook-form@npm:7.48.2"
"react-hook-form@npm:7.54.2":
version: 7.54.2
resolution: "react-hook-form@npm:7.54.2"
peerDependencies:
react: ^16.8.0 || ^17 || ^18
checksum: 10/6cb494f359675e78c14c49a33d1c568df1a03db4c750eab18d6554e622fd64e04195c57efa138db03f8988587d132c57d2a7f5f3dd9157be996cc9acd4362170
react: ^16.8.0 || ^17 || ^18 || ^19
checksum: 10/b156d15b6246c76d0275e5722d9056014693e014d0e3dec06e44bf2672ee549aaba4366de5144d18c4cab29e631f3b2b84269d4fd5727ca17aad9b970fde6960
languageName: node
linkType: hard

Expand Down Expand Up @@ -11316,7 +11316,7 @@ __metadata:
date-fns: "npm:3.6.0"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-hook-form: "npm:7.48.2"
react-hook-form: "npm:7.54.2"
react-hook-form-mui: "portal:../../packages/rhf-mui"
storybook: "npm:8.0.10"
typescript: "npm:5.5.3"
Expand Down

0 comments on commit 87efa44

Please sign in to comment.