react-dropzone 15.0.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +3 -3
  2. package/dist/index.cjs +1077 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.js +1046 -2
  5. package/dist/index.js.map +1 -0
  6. package/package.json +62 -161
  7. package/typings/tests/tsconfig.json +12 -11
  8. package/.babelrc.js +0 -28
  9. package/.codeclimate.yml +0 -15
  10. package/.editorconfig +0 -13
  11. package/.eslintignore +0 -3
  12. package/.eslintrc +0 -37
  13. package/.gitpod.yml +0 -6
  14. package/.husky/commit-msg +0 -5
  15. package/.husky/pre-commit +0 -5
  16. package/.nvmrc +0 -1
  17. package/.releaserc.json +0 -27
  18. package/CHANGELOG.md +0 -9
  19. package/commitlint.config.js +0 -1
  20. package/dist/es/index.js +0 -1051
  21. package/dist/es/package.json +0 -1
  22. package/dist/es/utils/index.js +0 -366
  23. package/examples/.eslintrc +0 -5
  24. package/examples/accept/README.md +0 -144
  25. package/examples/basic/README.md +0 -70
  26. package/examples/class-component/README.md +0 -45
  27. package/examples/drag-overlay/README.md +0 -132
  28. package/examples/events/README.md +0 -164
  29. package/examples/file-dialog/README.md +0 -90
  30. package/examples/forms/README.md +0 -69
  31. package/examples/maxFiles/README.md +0 -58
  32. package/examples/no-jsx/README.md +0 -32
  33. package/examples/pintura/README.md +0 -146
  34. package/examples/plugins/README.md +0 -55
  35. package/examples/previews/README.md +0 -86
  36. package/examples/styling/README.md +0 -126
  37. package/examples/theme.css +0 -37
  38. package/examples/validator/README.md +0 -68
  39. package/rollup.config.js +0 -33
  40. package/src/.eslintrc +0 -37
  41. package/src/__snapshots__/index.spec.js.snap +0 -3
  42. package/src/index.spec.js +0 -3838
  43. package/src/utils/index.spec.js +0 -625
  44. package/styleguide.config.js +0 -107
  45. package/testSetup.js +0 -8
  46. package/typings/.eslintrc +0 -28
  47. /package/src/{index.js → index.jsx} +0 -0
package/README.md CHANGED
@@ -15,10 +15,10 @@ Documentation and examples at https://react-dropzone.js.org. Source code at http
15
15
 
16
16
 
17
17
  ## Installation
18
- Install it from npm and include it in your React build process (using [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/), etc).
18
+ Install it from npm. `react-dropzone` ships as ESM and CommonJS with TypeScript types included, and works with any modern bundler ([Vite](https://vite.dev/), [webpack](https://webpack.js.org/), [Rspack](https://rspack.rs/), etc.).
19
19
 
20
20
  ```bash
21
- npm install --save react-dropzone
21
+ npm install react-dropzone
22
22
  ```
23
23
  or:
24
24
  ```bash
@@ -276,7 +276,7 @@ function mockData(files) {
276
276
 
277
277
  **NOTE**: using [Enzyme](https://airbnb.io/enzyme) for testing is not supported at the moment, see [#2011](https://github.com/airbnb/enzyme/issues/2011).
278
278
 
279
- More examples for this can be found in `react-dropzone`'s own [test suites](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.spec.js).
279
+ More examples for this can be found in `react-dropzone`'s own [test suites](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.spec.jsx).
280
280
 
281
281
  ## Caveats
282
282
  ### Required React Version