Releases: Yuvaleros/material-ui-dropzone
Releases · Yuvaleros/material-ui-dropzone
v3.5.0
September 20, 2020
✨ Features
🐛 Bugfixes
- Use binary system instead of decimal for size error (PR #245 by @AntoineGrandchamp)
🏷️ Typings
- Add disableRejectionFeedback to DropzoneAreaBaseProps type (PR #247 by @Parya-Jafari, related to issue #141 by @PabloCanalSuarez)
v3.4.1
v3.4.0
v3.3.1
v3.3.0
June 20, 2020
✨ New Features
- 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)
v3.2.0
v3.1.0
May 27, 2020
✨ New Features
- 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):
- Closes issue #73 by @sirsaeta
- Closes issue #80 by @mikiasmohamed
- Closes issue #125 by @suiaing
- Closes issue #146 by @mattcorner
- 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}
🐛 Bugfixes
v3.0.0
April 25, 2020
💥 BREAKING
- Upgrade
react-dropzone
to version 10 (PR #120 by @panz3r) - Drop support for React
<16.8
and Material-UIv3
(PR #120 by @panz3r)
✨ New Features
- 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:- set name for
<input>
element (#92 by @mnlbox) - Upload Directory/folder (#122 by @antares-va-tech)
- set name for
- 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:- Ability to override snackbard background colours (#45 by @IsabellaRey)
- Allow the abillity of change anchorOrigin of snackbar (#64 by @widomin)
🐛 Bugfixes
- 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)
💄 UI
- Should be using Typography instead of
<p></p>
(PR #121 by @panz3r, reported as #31 by @PolGuixe and @IsabellaRey)
♻️ Refactoring
📝 Docs
v2.5.0
April 15, 2020
✨ New Features
- Add
previewGridClasses
,previewGridProps
props (PR #124 by @loongyh, reported as #85 by @zeckdude) - Add
dialogProps
prop to customizeDropzoneDialog
appearance (PR #105 by @chattling)
🐛 Bugfixes
- ReferenceError: regeneratorRuntime is not defined (PR #111 by @panz3r, reported as #77 by @rooch84, @Tassfighter and @eluchsinger)
⚡ Improvements
📝 Docs
- Added new
dialogProps
prop toREADME
(PR #113 by @chattling) - Fix submit/cancel typo (PR #126 by @Maxim-Mazurok)