@uppy/drag-drop
Advanced tools
Comparing version 4.0.1 to 4.0.2
# @uppy/drag-drop | ||
## 4.0.2 | ||
Released: 2024-08-15 | ||
Included in: Uppy v4.1.1 | ||
- @uppy/dashboard,@uppy/drag-drop,@uppy/file-input: Transform the `accept` prop into a string everywhere (Evgenia Karunus / #5380) | ||
## 4.0.1 | ||
@@ -4,0 +11,0 @@ |
@@ -10,3 +10,3 @@ import { UIPlugin } from '@uppy/core'; | ||
const packageJson = { | ||
"version": "4.0.1" | ||
"version": "4.0.2" | ||
}; | ||
@@ -134,2 +134,3 @@ import locale from "./locale.js"; | ||
renderHiddenFileInput() { | ||
var _restrictions$allowed; | ||
const { | ||
@@ -146,6 +147,4 @@ restrictions | ||
name: this.opts.inputName, | ||
multiple: restrictions.maxNumberOfFiles !== 1 | ||
// @ts-expect-error We actually want to coerce the array to a string (or keep it as null/undefined) | ||
, | ||
accept: restrictions.allowedFileTypes, | ||
multiple: restrictions.maxNumberOfFiles !== 1, | ||
accept: (_restrictions$allowed = restrictions.allowedFileTypes) == null ? void 0 : _restrictions$allowed.join(', '), | ||
onChange: this.onInputChange | ||
@@ -152,0 +151,0 @@ }); |
{ | ||
"name": "@uppy/drag-drop", | ||
"description": "Droppable zone UI for Uppy. Drag and drop files into it to upload.", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"license": "MIT", | ||
@@ -28,8 +28,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^6.0.0", | ||
"@uppy/utils": "^6.0.2", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.1" | ||
"@uppy/core": "^4.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42287
544
Updated@uppy/utils@^6.0.2