😸 A File Browser component for React.
Bug fixes:
.chonky-root
class.New features:
Batcher ...
warnings.New features:
.chonky-file-entry-has-thumbnail
class. See #29 for details.Bug fixes:
faAdobe
icon issue with FontAwesome v5.15.New features:
clearSelectionOnOutsideClick
boolean prop. By default, Chonky will clear the file selection whenever user clicks anywhere outside of the file browser, unless the click target is a button. Users can override this behaviour by setting the new prop to false
.Bug fixes:
source-map-loader
errors.New features:
ChonkyActions.EnableListView
and ChonkyActions.EnableGridView
. Also added defaultFileViewActionId
prop to FileBrowser
, which can be used to specify the file view that Chonky will activate upon loading (see documentation for more info).isEncrypted
field to FileData
type.Bug fixes:
fillParentContainer
prop. It was in leftover copy-paste code from v0.x
, but it wasn't actually used anywhere in v1.x
. In Chonky v1.x, fillParentContainer
is always enabled, and users can wrap FileBrowser
into a custom div
to get finer control over file browser height.Breaking changes:
FileBrowser
component. This involved wrapping it into React.forwardRef
, which might have changed the way FileBrowser
refs behave.New features:
ChangeSelection
action which is dispatched any time user changes the file selection.getFileSelection
and setFileSelection
methods to the FileBrowser
ref.Bug fixes:
Bug fixes:
type="button"
to button tags and event.preventDefault()
to the search input field to prevent submitting the form when Chonky is used inside of a form.Features: