@spark-web/dropzone
Version:
--- title: Drop Zone isExperimentalPackage: true ---
396 lines (322 loc) • 15.4 kB
Markdown
# @spark-web/dropzone
## 4.0.0
### Major Changes
- [#464](https://github.com/brighte-labs/spark-web/pull/464)
[`3cf60ed`](https://github.com/brighte-labs/spark-web/commit/3cf60ed86ff7d8f05f723c287fdf4f64bd016b97)
Thanks [@selmer-dr](https://github.com/selmer-dr)! - Update react-dropzone to
14, to fix the isDragReject bug, that shows file are invalid even though
they're not
## 3.0.2
### Patch Changes
- [#446](https://github.com/brighte-labs/spark-web/pull/446)
[`3725f9b`](https://github.com/brighte-labs/spark-web/commit/3725f9ba77a3a6c30a0213152b8f6a4d3eb38882)
Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Bug Fix:
Dropzone accepting files more than max files specified
## 3.0.1
### Patch Changes
- [#424](https://github.com/brighte-labs/spark-web/pull/424)
[`f36e832`](https://github.com/brighte-labs/spark-web/commit/f36e832c6976a8beaf3c59bd1c4f681c3aced2eb)
Thanks [@yaminibrighte](https://github.com/yaminibrighte)! - modified the
function to copy properties from one object to another
## 3.0.0
### Minor Changes
- [#382](https://github.com/brighte-labs/spark-web/pull/382)
[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)
Thanks [@dilipt-brighte](https://github.com/dilipt-brighte)! - Updates React
version to latest (18.2.0)
### Patch Changes
- Updated dependencies
[[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)]:
- @spark-web/a11y@1.4.0
- @spark-web/alert@2.3.0
- @spark-web/box@1.2.0
- @spark-web/button@1.5.0
- @spark-web/field@3.1.0
- @spark-web/icon@1.3.0
- @spark-web/stack@1.1.0
- @spark-web/text@1.2.0
- @spark-web/text-list@2.1.0
- @spark-web/theme@3.2.0
- @spark-web/utils@1.3.0
## 2.0.8
### Patch Changes
- [#222](https://github.com/brighte-labs/spark-web/pull/222)
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
dependencies
- [#242](https://github.com/brighte-labs/spark-web/pull/242)
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage
and repository keys to package.json
- Add CHANGELOG and README to files key in package.json
- Updated dependencies
[[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b),
[`21c6e08`](https://github.com/brighte-labs/spark-web/commit/21c6e08e821ada32feea7c34f1bf451573b5023d),
[`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c),
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5),
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b),
[`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe),
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]:
- @spark-web/box@1.1.0
- @spark-web/button@1.4.4
- @spark-web/field@3.0.6
- @spark-web/icon@1.2.2
- @spark-web/text@1.1.2
- @spark-web/text-list@2.0.5
- @spark-web/a11y@1.3.2
- @spark-web/alert@2.2.3
- @spark-web/stack@1.0.10
- @spark-web/theme@3.1.0
- @spark-web/utils@1.2.3
## 2.0.7
### Patch Changes
- [#207](https://github.com/brighte-labs/spark-web/pull/207)
[`f0901b9`](https://github.com/brighte-labs/spark-web/commit/f0901b98738220e6439babd72ba01a613d501592)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Fix typo in
Dropzone displayName
- Updated dependencies
[[`76522bd`](https://github.com/brighte-labs/spark-web/commit/76522bd266e8d07f0a2c003c0f78314ab002cf40),
[`94dd0ac`](https://github.com/brighte-labs/spark-web/commit/94dd0ac3fcb11868ccedf3637b6f91b52700bd6a),
[`35e4fb7`](https://github.com/brighte-labs/spark-web/commit/35e4fb734f334a1ae297e488ba824eeeb6848b38)]:
- @spark-web/button@1.4.3
- @spark-web/alert@2.2.2
## 2.0.6
### Patch Changes
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
node version
- Updated dependencies
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
- @spark-web/a11y@1.3.1
- @spark-web/alert@2.2.1
- @spark-web/box@1.0.9
- @spark-web/button@1.4.2
- @spark-web/field@3.0.5
- @spark-web/icon@1.2.1
- @spark-web/stack@1.0.9
- @spark-web/text@1.1.1
- @spark-web/text-list@2.0.4
- @spark-web/theme@3.0.6
- @spark-web/utils@1.2.2
## 2.0.5
### Patch Changes
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
- Updated dependencies
[[`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f),
[`51b6c7a`](https://github.com/brighte-labs/spark-web/commit/51b6c7a43f441e02b90403b13af9cfa11e5438ef),
[`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
[`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f),
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
- @spark-web/alert@2.2.0
- @spark-web/a11y@1.3.0
- @spark-web/text@1.1.0
- @spark-web/icon@1.2.0
- @spark-web/box@1.0.8
- @spark-web/button@1.4.1
- @spark-web/field@3.0.4
- @spark-web/stack@1.0.8
- @spark-web/text-list@2.0.3
- @spark-web/theme@3.0.5
- @spark-web/utils@1.2.1
## 2.0.4
### Patch Changes
- [#173](https://github.com/brighte-labs/spark-web/pull/173)
[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update babel
dependency
* [#180](https://github.com/brighte-labs/spark-web/pull/180)
[`010f6e3`](https://github.com/brighte-labs/spark-web/commit/010f6e33d87097e0beba17815bc2d66750e22f65)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add `closeLabel`
to Alert inside of Dropzone
* Updated dependencies
[[`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b),
[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25),
[`754a664`](https://github.com/brighte-labs/spark-web/commit/754a664b639c66cf121c28eb9883d62015711a59),
[`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b),
[`010f6e3`](https://github.com/brighte-labs/spark-web/commit/010f6e33d87097e0beba17815bc2d66750e22f65),
[`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62),
[`d935c57`](https://github.com/brighte-labs/spark-web/commit/d935c57c2302700e8a2332b757d38220b9c47f84)]:
- @spark-web/button@1.3.0
- @spark-web/a11y@1.2.0
- @spark-web/alert@2.0.0
- @spark-web/box@1.0.7
- @spark-web/field@3.0.3
- @spark-web/icon@1.1.5
- @spark-web/stack@1.0.7
- @spark-web/text-list@2.0.2
- @spark-web/text@1.0.7
- @spark-web/theme@3.0.3
- @spark-web/utils@1.2.0
## 2.0.3
### Patch Changes
- [#148](https://github.com/brighte-labs/spark-web/pull/148)
[`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Make Field a peer
dep to avoid context bug
* [#167](https://github.com/brighte-labs/spark-web/pull/167)
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
* Updated dependencies
[[`e17ddb6`](https://github.com/brighte-labs/spark-web/commit/e17ddb6328a792bd5905cff20ced5907ca055f82),
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459),
[`f524009`](https://github.com/brighte-labs/spark-web/commit/f5240098cf731b0a2e351b7b585711e893a33736),
[`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]:
- @spark-web/button@1.2.0
- @spark-web/a11y@1.1.0
- @spark-web/alert@1.0.7
- @spark-web/box@1.0.6
- @spark-web/field@3.0.1
- @spark-web/icon@1.1.4
- @spark-web/stack@1.0.6
- @spark-web/text@1.0.6
- @spark-web/text-list@2.0.1
- @spark-web/theme@3.0.2
- @spark-web/utils@1.1.5
## 2.0.2
### Patch Changes
- Updated dependencies
[[`949001a`](https://github.com/brighte-labs/spark-web/commit/949001aca3304a4f13750885575de8ec9e8503b3),
[`3db131b`](https://github.com/brighte-labs/spark-web/commit/3db131bfadbc4149d05b7c74be1a3e68cdd5b18f)]:
- @spark-web/button@1.1.2
- @spark-web/field@3.0.0
- @spark-web/text-list@2.0.0
- @spark-web/alert@1.0.6
## 2.0.1
### Patch Changes
- [#113](https://github.com/brighte-labs/spark-web/pull/113)
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
dependencies
* [#108](https://github.com/brighte-labs/spark-web/pull/108)
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work
with updated field context
* Updated dependencies
[[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33),
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d),
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)]:
- @spark-web/a11y@1.0.5
- @spark-web/field@2.0.0
- @spark-web/alert@1.0.5
- @spark-web/box@1.0.5
- @spark-web/button@1.1.1
- @spark-web/icon@1.1.3
- @spark-web/stack@1.0.5
- @spark-web/text@1.0.5
- @spark-web/text-list@1.0.5
- @spark-web/theme@3.0.1
- @spark-web/utils@1.1.3
## 2.0.0
### Major Changes
- [#66](https://github.com/brighte-labs/spark-web/pull/66)
[`db258ac`](https://github.com/brighte-labs/spark-web/commit/db258ac725dfdb03ddcb5795ca8266b238e59034)
Thanks [@ChristopherMitchell242](https://github.com/ChristopherMitchell242)! -
WHAT dropzone component updated to receive min/max filesize in kb
WHY currently component is doing incorrect calculation to convert kilobytes to
bytes
HOW all max and min file size values should be added in kilobytes
### Patch Changes
- [#52](https://github.com/brighte-labs/spark-web/pull/52)
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add files array
to package.json files
- Updated dependencies
[[`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70),
[`7a91941`](https://github.com/brighte-labs/spark-web/commit/7a91941385dcb4744384818bb5c4866c24c357f5),
[`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5),
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff),
[`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27),
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e),
[`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b),
[`8ff39aa`](https://github.com/brighte-labs/spark-web/commit/8ff39aa7e51d8d3f17dcbd87ebe60502a8d8d260)]:
- @spark-web/field@1.1.0
- @spark-web/button@1.1.0
- @spark-web/text@1.0.4
- @spark-web/theme@3.0.0
- @spark-web/alert@1.0.4
- @spark-web/stack@1.0.4
- @spark-web/text-list@1.0.4
- @spark-web/a11y@1.0.4
- @spark-web/box@1.0.4
- @spark-web/icon@1.1.2
- @spark-web/utils@1.1.2
## 1.0.3
### Patch Changes
- [#42](https://github.com/brighte-labs/spark-web/pull/42)
[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Prevent multiple
versions of React
- Updated dependencies
[[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)]:
- @spark-web/a11y@1.0.3
- @spark-web/alert@1.0.3
- @spark-web/box@1.0.3
- @spark-web/button@1.0.3
- @spark-web/field@1.0.3
- @spark-web/icon@1.1.1
- @spark-web/stack@1.0.3
- @spark-web/text@1.0.3
- @spark-web/text-list@1.0.3
- @spark-web/theme@2.0.2
- @spark-web/utils@1.1.1
## 1.0.2
### Patch Changes
- [#40](https://github.com/brighte-labs/spark-web/pull/40)
[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add
@babel/transform-runtime
- Updated dependencies
[[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)]:
- @spark-web/a11y@1.0.2
- @spark-web/alert@1.0.2
- @spark-web/box@1.0.2
- @spark-web/button@1.0.2
- @spark-web/field@1.0.2
- @spark-web/icon@1.0.2
- @spark-web/stack@1.0.2
- @spark-web/text@1.0.2
- @spark-web/text-list@1.0.2
- @spark-web/theme@2.0.1
- @spark-web/utils@1.0.2
## 1.0.1
### Patch Changes
- [#36](https://github.com/brighte-labs/spark-web/pull/36)
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
config
- Updated dependencies
[[`aebff30`](https://github.com/brighte-labs/spark-web/commit/aebff30c86cb0a9db22b545c46159ce0d1c14afb),
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)]:
- @spark-web/theme@2.0.0
- @spark-web/a11y@1.0.1
- @spark-web/alert@1.0.1
- @spark-web/box@1.0.1
- @spark-web/button@1.0.1
- @spark-web/field@1.0.1
- @spark-web/icon@1.0.1
- @spark-web/stack@1.0.1
- @spark-web/text@1.0.1
- @spark-web/text-list@1.0.1
- @spark-web/utils@1.0.1
## 1.0.0
### Major Changes
- [#27](https://github.com/brighte-labs/spark-web/pull/27)
[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)
Thanks [@JedWatson](https://github.com/JedWatson)! - Initial Version
### Patch Changes
- Updated dependencies
[[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)]:
- @spark-web/a11y@1.0.0
- @spark-web/alert@1.0.0
- @spark-web/box@1.0.0
- @spark-web/button@1.0.0
- @spark-web/field@1.0.0
- @spark-web/icon@1.0.0
- @spark-web/stack@1.0.0
- @spark-web/text@1.0.0
- @spark-web/text-list@1.0.0
- @spark-web/theme@1.0.0
- @spark-web/utils@1.0.0