Fix 3146 by implementing useFileWidgetProps hook#4818
Merged
heath-freenome merged 3 commits intorjsf-team:mainfrom Oct 28, 2025
Merged
Fix 3146 by implementing useFileWidgetProps hook#4818heath-freenome merged 3 commits intorjsf-team:mainfrom
heath-freenome merged 3 commits intorjsf-team:mainfrom
Conversation
nickgros
approved these changes
Oct 28, 2025
Fixes rjsf-team#3146 by refactoring `FileWidget` in `core` to make the `useFileWidgetProps()` hook Fixed rjsf-team#4803 by deleting the `FileWidget` in `daisyui`, moving the key "type-file" elements into `BaseInputTemplate` - In `@rjsf/core` refactored the file extraction and callbacks into the new `useFileWidgetProps()` hook in `@rjsf/utils` - In `@rjsf/daisyui` refactored the key `type=file` elements from `FileWidget` into `BaseInputTemplate`, deleting the `FileWidget` entirely in favor of the `core` one - In `@rjsf/mantine` updated the `FileWidget` to use the `useFileWidgetProps()` hook - In `@rjsf/utils` exported the `useFileWidgetProps()` hook and its associates types - Also added 100% unit tests for the new hook - Updated the `utility-functions.md` and `v6.x upgrade guide.md` to document the new hook - Updated the `CHANGELOG.md` accordingly # Conflicts: # CHANGELOG.md
293f5c4 to
00ba1a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reasons for making this change
Fixes #3146 by refactoring
FileWidgetincoreto make theuseFileWidgetProps()hookFixed #4803 by deleting the
FileWidgetindaisyui, moving the key "type-file" elements intoBaseInputTemplate@rjsf/corerefactored theFileWidgetfile extraction and callbacks into the newuseFileWidgetProps()hook in@rjsf/utils@rjsf/daisyuirefactored the keytype=fileelements fromFileWidgetintoBaseInputTemplate, deleting theFileWidgetentirely in favor of thecoreone@rjsf/mantineupdated theFileWidgetto use theuseFileWidgetProps()hook@rjsf/utilsexported theuseFileWidgetProps()hook and its associates typesutility-functions.mdandv6.x upgrade guide.mdto document the new hookCHANGELOG.mdaccordinglyChecklist
npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:updateto update snapshots, if needed.