@uppy/drop-target
Version:
Lets your users drag and drop files on a DOM element
187 lines (113 loc) • 6.35 kB
Markdown
# /drop-target
## 4.1.0
### Minor Changes
- 79e6460: - Add PluginTypeRegistry and typed getPlugin overload in /core
- Register plugin ids across packages so uppy.getPlugin('Dashboard' | 'Webcam') returns the concrete plugin type and removes the need to pass generics in getPlugin()
### Patch Changes
- Updated dependencies [79e6460]
- Updated dependencies [ac12f35]
- Updated dependencies [4817585]
- /core@5.2.0
- /utils@7.1.4
## 4.0.1
### Patch Changes
- 975317d: Removed "main" from package.json, since export maps serve as the contract for the public API.
- Updated dependencies [4b6a76c]
- Updated dependencies [975317d]
- Updated dependencies [9bac4c8]
- /core@5.0.2
- /utils@7.0.2
## 4.0.0
### Major Changes
- c5b51f6: ### Export maps for all packages
All packages now have export maps. This is a breaking change in two cases:
1. The css imports have changed from `[package]/dist/styles.min.css` to `[package]/css/styles.min.css`
2. You were importing something that wasn't exported from the root, for instance `/core/lib/foo.js`. You can now only import things we explicitly exported.
#### Changed imports for `/react`, `@uppy/vue`, and `/svelte`
Some components, like Dashboard, require a peer dependency to work but since all components were exported from a single file you were forced to install all peer dependencies. Even if you never imported, for instance, the status bar component.
Every component that requires a peer dependency has now been moved to a subpath, such as `/react/dashboard`, so you only need to install the peer dependencies you need.
**Example for `/react`:**
**Before:**
```javascript
import { Dashboard, StatusBar } from "@uppy/react";
```
**Now:**
```javascript
import Dashboard from "@uppy/react/dashboard";
import StatusBar from "@uppy/react/status-bar";
```
### Patch Changes
- Updated dependencies [d301c01]
- Updated dependencies [c5b51f6]
- /utils@7.0.0
- /core@5.0.0
## 3.2.2
### Patch Changes
- 1b1a9e3: Define "files" in package.json
- Updated dependencies [1b1a9e3]
- /utils@6.2.2
- /core@4.5.2
## 3.2.0
### Minor Changes
- 0c24c5a: Use TypeScript compiler instead of Babel
### Patch Changes
- Updated dependencies [0c24c5a]
- Updated dependencies [0c24c5a]
- /core@4.5.0
- /utils@6.2.0
## 3.1.0
Released: 2025-01-06
Included in: Uppy v4.11.0
- /angular,@uppy/audio,/aws-s3,@uppy/box,/companion-client,@uppy/compressor,/core,@uppy/dashboard,/drag-drop,@uppy/drop-target,/dropbox,@uppy/facebook,/file-input,@uppy/form,/golden-retriever,@uppy/google-drive-picker,/google-drive,@uppy/google-photos-picker,/google-photos,@uppy/image-editor,/informer,@uppy/instagram,/locales,@uppy/onedrive,/progress-bar,@uppy/provider-views,/react,@uppy/remote-sources,/screen-capture,@uppy/status-bar,/thumbnail-generator,@uppy/transloadit,/tus,@uppy/unsplash,/url,@uppy/vue,/webcam,@uppy/webdav,/xhr-upload,@uppy/zoom: Remove "paths" from all tsconfig's (Merlijn Vos / #5572)
## 3.0.2
Released: 2024-12-05
Included in: Uppy v4.8.0
- /audio,@uppy/aws-s3,/box,@uppy/companion-client,/compressor,@uppy/core,/dashboard,@uppy/drag-drop,/drop-target,@uppy/dropbox,/facebook,@uppy/file-input,/form,@uppy/golden-retriever,/google-drive,@uppy/google-photos,/image-editor,@uppy/informer,/instagram,@uppy/locales,/onedrive,@uppy/progress-bar,/provider-views,@uppy/react,/remote-sources,@uppy/screen-capture,/status-bar,@uppy/store-default,/thumbnail-generator,@uppy/transloadit,/tus,@uppy/unsplash,/url,@uppy/utils,/vue,@uppy/webcam,/xhr-upload,@uppy/zoom: cleanup tsconfig (Mikael Finstad / #5520)
## 3.0.1
Released: 2024-07-15
Included in: Uppy v4.0.1
- /dashboard,@uppy/drag-drop,/drop-target: `<Dashboard/>`, `<DragDrop/>`, `drop-target` - new anti-flickering solution (Evgenia Karunus / #5326)
## 3.0.0-beta.5
Released: 2024-06-04
Included in: Uppy v4.0.0-beta.10
- /drop-target: remove `title` property (Mikael Finstad / #5200)
## 3.0.0-beta.4
Released: 2024-04-29
Included in: Uppy v4.0.0-beta.4
- /drop-target: change drop event type to DragEvent (Alireza Heydari / #5107)
## 3.0.0-beta.1
Released: 2024-03-28
Included in: Uppy v4.0.0-beta.1
- /audio,@uppy/dashboard,/drop-target,@uppy/webcam: add missing exports (Antoine du Hamel / #5014)
## 2.1.0
Released: 2024-04-29
Included in: Uppy v3.25.0
- /drop-target: change drop event type to DragEvent (Alireza Heydari / #5107)
## 2.0.5
Released: 2024-03-27
Included in: Uppy v3.24.0
- /audio,@uppy/dashboard,/drop-target,@uppy/webcam: add missing exports (Antoine du Hamel / #5014)
## 2.0.3
Released: 2024-02-19
Included in: Uppy v3.22.0
- /drop-target: refactor to typescript (artur paikin / #4863)
## 2.0.1
Released: 2022-09-25
Included in: Uppy v3.1.0
- /audio,@uppy/aws-s3-multipart,/aws-s3,@uppy/box,/companion-client,@uppy/companion,/compressor,@uppy/core,/dashboard,@uppy/drag-drop,/drop-target,@uppy/dropbox,/facebook,@uppy/file-input,/form,@uppy/golden-retriever,/google-drive,@uppy/image-editor,/informer,@uppy/instagram,/locales,@uppy/onedrive,/progress-bar,@uppy/provider-views,/react,@uppy/redux-dev-tools,/remote-sources,@uppy/screen-capture,/status-bar,@uppy/store-default,/store-redux,@uppy/svelte,/thumbnail-generator,@uppy/transloadit,/tus,@uppy/unsplash,/url,@uppy/utils,/vue,@uppy/webcam,/xhr-upload,@uppy/zoom: add missing entries to changelog for individual packages (Antoine du Hamel / #4092)
## 2.0.0
Released: 2022-08-22
Included in: Uppy v3.0.0
- Switch to ESM
## 2.0.0-beta.2
Released: 2022-08-03
Included in: Uppy v3.0.0-beta.4
- /drop-target: remove `isFileTransfer` from the public API (Antoine du Hamel / #3932)
## 1.1.3
Released: 2022-04-27
Included in: Uppy v2.9.4
- /drop-target: refactor to ESM (Antoine du Hamel / #3648)
## 1.1.2
Released: 2022-03-16
Included in: Uppy v2.8.0
- /drop-target: ignore if dropped elements aren't files (Penar Musaraj / #3563)