Releases: uptick/react-keyed-file-browser
Releases · uptick/react-keyed-file-browser
1.14.0
1.13.0
1.12.1
1.11.0
Core Changes
- Updated Dependency versions:
date-fns
,react-dnd-html5-backend
,react-dnd
| #178
Breaking: If you are using an older version of react-dnd or is using your own dnd provider. We would suggest updating to a newer version of react-dnd
or using react-keyed-file-browser <= 0.10.0
DragDropContextProvider
is removed.DragDropContext Decorator
is removed.import HTML5Backend from 'react-dnd-html5-backend
has been renamed toimport { HTML5Backend } from 'react-dnd-html5-backend'
Documentation Changes
- Added new example using your own custom React Drag & Drop Provider.
Example Changes
- Added new story using external React Drag & Drop Provider.
1.10.0
- Fixed a bug when trying to repeatedly add a folder within a subfolder #114 (thanks @ziaulrehman40)
- Added a flag to display all folders when filtering for items #112 (thanks @eliasor96)
- Replaced Moment with date-fns #103 (thanks @ivesdebruycker)
- Fixed rename icon to use the free version #132 (thanks @oliverfoster)
- Improvements to the build process #137, #140 (thanks @oliverfoster)
- Added
onDownloadFolder
, which is called with the current selection #141 (thanks @oliverfoster) - Removed unnecessary internal refs #142 (thanks @scaredcat)
- Fixed
onSelect
andonSelectFolder
to always return the selected folder #148 (thanks @harsh-tamr) Previously you had to explicitly list each folder:
<FileBrowser
files={[
{
key: 'media/',
modified: 0,
size: 0,
},
{
key: 'media/images/',
modified: 0,
size: 0,
},
{
key: 'media/images/giraffe.png',
modified: 1601254906660,
size: 20204,
},
Now you can just specify the resulting file, and onSelect
& onSelectFolder
will return the media/
and media/images/
folders when selected:
<FileBrowser
files={[
{
key: 'media/images/giraffe.png',
modified: 1601254906660,
size: 20204,
},