react-dropzone 14.2.6 → 14.2.7
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.
- package/examples/previews/README.md +1 -1
- package/package.json +10 -2
|
@@ -67,7 +67,7 @@ function Previews(props) {
|
|
|
67
67
|
useEffect(() => {
|
|
68
68
|
// Make sure to revoke the data uris to avoid memory leaks, will run on unmount
|
|
69
69
|
return () => files.forEach(file => URL.revokeObjectURL(file.preview));
|
|
70
|
-
}, []);
|
|
70
|
+
}, [files]);
|
|
71
71
|
|
|
72
72
|
return (
|
|
73
73
|
<section className="container">
|
package/package.json
CHANGED
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"import": "./dist/es/index.js",
|
|
9
|
-
"require": "./dist/index.js"
|
|
9
|
+
"require": "./dist/index.js",
|
|
10
|
+
"types": "./typings/react-dropzone.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"typesVersions": {
|
|
14
|
+
"*": {
|
|
15
|
+
".": [
|
|
16
|
+
"./typings/react-dropzone.d.ts"
|
|
17
|
+
]
|
|
10
18
|
}
|
|
11
19
|
},
|
|
12
20
|
"sideEffects": false,
|
|
@@ -177,7 +185,7 @@
|
|
|
177
185
|
"webpack-blocks": "^2.1.0"
|
|
178
186
|
},
|
|
179
187
|
"typings": "typings/react-dropzone.d.ts",
|
|
180
|
-
"version": "14.2.
|
|
188
|
+
"version": "14.2.7",
|
|
181
189
|
"engines": {
|
|
182
190
|
"node": ">= 20.17"
|
|
183
191
|
},
|