Thanks to all contributers who improved material-ui-dropzone by opening an issue/PR.
This changelog refers to master
branch (currently v3.x
), for v2.x
-specific changelog see v2.x CHANGELOG.md
.
- Update DropzoneDialog to allow for a custom dialog title (PR #234 by @4-Eyes)
- Use binary system instead of decimal for size error (PR #245 by @AntoineGrandchamp)
####Β :label: Typings
- Add disableRejectionFeedback to DropzoneAreaBaseProps type (PR #247 by @Parya-Jafari, related to issue #141 by @PabloCanalSuarez)
- Fix
react-dropzone
props not being passed properly (PR #239 by @panz3r, fixes #235 by @grahamlangford)
- Allow all filetypes by default (PR #226 by @panz3r, fixes #214 by @FilipeCosta06)
- Allow passing a custom Icon to be displayed inside Dropzone area (PR #227 by @panz3r, closes #48 by @N4Design)
- Fix Snackbar icons margins (PR #223 by @Armanio)
- Update PropTypes for
initialFiles
to avoid issues withNextJS
(Fixes #208)
- Make
previewChips
use the grid system as well (PR #173 by @anthonyraymond) - Set
initialFiles
withFile
orURL string
(PR #194 by @isaacbuckman, reported as #192 by @isaacbuckman) - Add
onAlert
callback prop to hook into Snackbar messaging (PR #205 by @mattcorner, reported as #200 by @mattcorner)
- Show remove buttons when they have focus (PR #191 by @MatthijsMud, reported as #190 by @MatthijsMud)
- Change
SnackbarContentWrapper
class names for variants to avoid conflicts with Material UI internals (PR #198 by @panz3r, reported as #183 by @mattcorner) - Fix error message when dropping more than
filesLimit
files (PR #199 by @panz3r, reported as #196 by @edricwu)
- Bump
websocket-extensions
from0.1.3
to0.1.4
- Bump
@babel/*
devDeps to7.10.x
- Add
DropzoneAreaBase
andDropzoneDialogBase
controlled components (PR #175 by @panz3r)
- Add
getPreviewIcon
prop to DropzoneArea component to customize file preview (PR #154 by @max-carroll) - Add support for style with MUI Theme, see docs for more details (PR #158 by @panz3r):
- Add
showAlerts
property to show alerts only on error (PR #170 by @blouin):showAlerts
can be a boolean ("global"true
orfalse
for all alerts).showAlerts
can be an array, with valueserror
,info
,success
:showAlerts={['error']}
for onlyerrors
showAlerts={['error', 'info']}
for botherrors
andinfo
showAlerts={['error', 'success', 'info']}
is same asshowAlerts={true}
showAlerts={[]}
is same asshowAlerts={false}
- Avoid appending extension if present when loading external files (PR #150 by @panz3r, reported as #135 by @mballeng91)
- Prevent control focus rubber band (PR #156 by @max-carroll, reported as #145 by @topninja)
- Upgrade
react-dropzone
to version 10 (PR #120 by @panz3r) - Drop support for React
<16.8
and Material-UIv3
(PR #120 by @panz3r) - After the code refactor of PR #121, the
onChange
handler is invoked also on component mount (with or without files depending on the value of theinitialFiles
prop) - see issue #153 for more details.
- Addition of
previewText
prop toDropzoneArea
component (PR #121 by @panz3r, same as #112 by @charlot567) - Add
disableRejectionFeedback
prop toDropzoneArea
component (PR #142 by @panz3r, reported as #141 by @PabloCanalSuarez) - Add
inputProps
prop toDropzoneArea
component (PR #134 by @panz3r), fixes: - Add
dropzoneProps
prop toDropzoneArea
component (PR #134 by @panz3r), fixes:- Dropzone disable attribute not working (#103 by @stefanstankovic995)
- Add
alertSnackbarProps
prop toDropzoneArea
component (PR #134 by @panz3r), fixes:
- Avoid appending extension if present when loading external files (PR #137 by @panz3r, reported as #135 by @mballeng91)
- onDrop returns each file one at a time (PR #121 by @panz3r, reported as #65 by @AlanOrtega91)
- Fully support setting
acceptedFiles
as.fileending
(PR #121 by @panz3r, reported as #107 by @wirmar)
- Should be using Typography instead of
<p></p>
(PR #121 by @panz3r, reported as #31 by @PolGuixe and @IsabellaRey)
- Code refactor (#121 by @panz3r)
- Improved docs (#128 by @panz3r)
- Add
previewGridClasses
,previewGridProps
props (PR #124 by @loongyh, reported as #85 by @zeckdude) - Add
dialogProps
prop to customizeDropzoneDialog
appearance (PR #105 by @chattling)
- ReferenceError: regeneratorRuntime is not defined (PR #111 by @panz3r, reported as #77 by @rooch84, @Tassfighter and @eluchsinger)
- Added new
dialogProps
prop toREADME
(PR #113 by @chattling) - Fix submit/cancel typo (PR #126 by @Maxim-Mazurok)
- Add
dialogProps
prop to customizeDropzoneDialog
appearance (PR #105 by @chattling)
- initialFiles not shown up (PR #101 by @faupol3, reported as #87 by @ameenazeemiacmedocs)
- Unable to preview png file (PR #101 by @faupol3, reported as #90 by @shailesh-padave)
- remove console logs from Dropzone dialog (PR #102 by @chattling, reported as #96 by @Morteza-Jenabzadeh)
- Improved code quality (PR #94 by @GRcwolf)