-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add onChange
+ various feature parity additions/fixes
#886
Merged
Merged
Changes from all commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
d7c6034
add onSelect to <UploadButton/>
markflorkowski 5e5466d
exhaustive deps
markflorkowski f011e33
solid
markflorkowski 52b616c
svelte
markflorkowski 3f050ec
vue
markflorkowski 27bec4d
optional on svelte
markflorkowski ad23bdb
rm unused import
markflorkowski 89e53bb
Create giant-candles-wash.md
markflorkowski 6e38c3b
fix pkg-pr-new action?
markflorkowski 4e3e915
try again
markflorkowski 4c05d8f
fetch depth
markflorkowski 5f857b2
docs callout about files []
markflorkowski d49ea8f
onDrop -> onChange
markflorkowski ea44ee7
Update dropzone.tsx
markflorkowski 7eef827
Update button.tsx
markflorkowski 683b0f0
Update giant-candles-wash.md
markflorkowski ba82b4b
Update react.mdx
markflorkowski 2ed096c
update docs
markflorkowski 843b35f
svelte
markflorkowski 2dba137
svelte dropzone
markflorkowski 324b034
add paste to solid
markflorkowski b52d2d0
optional chain instead of if check
markflorkowski 1c9db32
optional chain for svelte
markflorkowski 1e893b9
missed a file
markflorkowski 85d3cfa
fix pkg-pr-new templates?
markflorkowski f71ee95
fix paste on solid?
markflorkowski 5634265
useEventListener
markflorkowski 294752d
fix focusing
markflorkowski 5de1491
fix ref
markflorkowski 31e608e
clear button
markflorkowski afe79cb
button text
markflorkowski a4ff731
closer to react impl
markflorkowski 34e4879
signals...
markflorkowski eaed3ed
abort + manual mode upload
markflorkowski ea0e01e
more abort error handling stuff. onUploadAborted()
markflorkowski d80dd87
move onclick
markflorkowski c8069fd
dedupe
markflorkowski 88eb972
that was not deduping
markflorkowski 59543da
rm unused import
markflorkowski 33b25b1
abort for solid dropzone
markflorkowski 3ff1b7a
svelte abort + ref fix
markflorkowski 20dbc5f
bind paste eventListener to document not window
markflorkowski d2e8737
eslint
markflorkowski a3eefc7
manual trigger display logic
markflorkowski 5297047
button content
markflorkowski 7b7c5fe
rm weird import
markflorkowski aeeb44f
fix logic
markflorkowski 0185890
oops
markflorkowski 129b363
apply button content fix to dropzone
markflorkowski a2ae284
rm unused
markflorkowski 1169371
misc fixed - vue
markflorkowski 2ce3c6b
pkg-pr-new nuxt
markflorkowski 214db4d
default loglevel nuxt
markflorkowski a059154
don't run onChange if no acceptedFiles
markflorkowski 6b81b2e
add nuxt IFF not already in list
markflorkowski a3f6def
void -> await
markflorkowski 85b1320
Update docs/src/pages/api-reference/react.mdx
markflorkowski ac4d76d
solid routeConfig + misc async fixes
markflorkowski 8340619
button too
markflorkowski 16c70a1
format
markflorkowski f836be4
svelte wasn't linting on my machine
markflorkowski 6d98167
remove solidjs-use dep
markflorkowski 36ae009
why is document undefined
markflorkowski f45f068
trycatch?
markflorkowski 7dfef14
fix button text logic, unify button/dropzone
markflorkowski e49b947
disabled state on dropzone
markflorkowski efbdcca
add missing styles
markflorkowski 1fd6fec
move styles?
markflorkowski efdae47
vue
markflorkowski e24865e
add disabled prop in vue
markflorkowski 60ca0b1
types
markflorkowski 61f3321
oops
markflorkowski a8ef3e6
dropzone button state fix vue
markflorkowski 94ee085
dropzone type
markflorkowski 051e603
dropzone state fix vue
markflorkowski 0029045
vue button styles
markflorkowski 249a27d
svelte
markflorkowski bed6b2e
lint
markflorkowski 70bc541
svelte dropzone disable logic
markflorkowski 6028a41
svelte dropzone disabled state
markflorkowski 3fb5772
pointer events
markflorkowski fe594c8
|| -> ??
markflorkowski 2d49b1a
dropzone button
markflorkowski 3cb562b
try again?
markflorkowski f8d5a0a
explicitly set dropzone disabled state?
markflorkowski 003204b
why is the button still working
markflorkowski 4283500
svelte dropzone abort
markflorkowski 531ed21
passthrough button events in dropzone if no files selected
markflorkowski fb83080
?
markflorkowski 66c8d80
rm unused import
markflorkowski ebfc5ae
styling
markflorkowski 927e5fa
disabled styling
markflorkowski 39411ed
move cursor style to dropzone root
markflorkowski 8a16458
dropzone button cursor pointer
markflorkowski 97ef7a4
move disabled out of creator - svelte
markflorkowski 41d440f
trivial type infer
markflorkowski d09c2e2
no cursor-pointer on label
markflorkowski 7832cf4
correct cursor state on label
markflorkowski d0f5a9d
run onChange when button is cleared
markflorkowski afe8b8d
adjust dropzoneInput action
markflorkowski c11c8a5
logs
markflorkowski 761cc89
more logs
markflorkowski 1f1397a
log inputref
markflorkowski 7d716b2
use .value on upload progress
markflorkowski 5546dfc
also on dropzone
markflorkowski 0da1aeb
Merge branch 'main' into mark/on-button-select
markflorkowski 02a78dd
review feedback
markflorkowski 885f3e0
update action to use
markflorkowski ee8550c
remove await
markflorkowski 7478a92
refactor renderButton
markflorkowski cf6337f
chore: init some component tests (#898)
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@uploadthing/react": minor | ||
"@uploadthing/solid": minor | ||
"@uploadthing/svelte": minor | ||
"@uploadthing/vue": minor | ||
--- | ||
|
||
feat: Add `onChange` to `<UploadButton/>` and `<UploadDropzone />`. Deprecate dropzone's `onDrop` |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reminder for myself: copy these changes to new docs