From 903b41d3e3cc557d21ecf61a34e326018415ce6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:45:17 +0000 Subject: [PATCH] fix(deps): bump react-dropzone from 12.1.0 to 14.2.3 Bumps [react-dropzone](https://github.com/react-dropzone/react-dropzone) from 12.1.0 to 14.2.3. - [Release notes](https://github.com/react-dropzone/react-dropzone/releases) - [Commits](https://github.com/react-dropzone/react-dropzone/compare/v12.1.0...v14.2.3) --- updated-dependencies: - dependency-name: react-dropzone dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 65 +++++++++---------- packages/frontend/package.json | 2 +- .../file-upload-area/file-upload-area.tsx | 5 +- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index faab25d1d..f6ecda5fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12957,16 +12957,21 @@ } }, "node_modules/file-selector": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.5.0.tgz", - "integrity": "sha512-s8KNnmIDTBoD0p9uJ9uD0XY38SCeBOtj0UMXyQSLg1Ypfrfj8+dAvwsLjYQkQ2GjhVtp2HrnF5cJzMhBjfD8HA==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.6.0.tgz", + "integrity": "sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==", "dependencies": { - "tslib": "^2.0.3" + "tslib": "^2.4.0" }, "engines": { - "node": ">= 10" + "node": ">= 12" } }, + "node_modules/file-selector/node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, "node_modules/file-type": { "version": "16.5.3", "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.3.tgz", @@ -20412,19 +20417,19 @@ } }, "node_modules/react-dropzone": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-12.1.0.tgz", - "integrity": "sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog==", + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.2.3.tgz", + "integrity": "sha512-O3om8I+PkFKbxCukfIR3QAGftYXDZfOE2N1mr/7qebQJHs7U+/RSL/9xomJNpRg9kM5h9soQSdf0Gc7OHF5Fug==", "dependencies": { "attr-accept": "^2.2.2", - "file-selector": "^0.5.0", + "file-selector": "^0.6.0", "prop-types": "^15.8.1" }, "engines": { "node": ">= 10.13" }, "peerDependencies": { - "react": ">= 16.8" + "react": ">= 16.8 || 18.0.0" } }, "node_modules/react-error-boundary": { @@ -24213,12 +24218,6 @@ "vega-lite": "*" } }, - "node_modules/vega-embed/node_modules/yallist": { - "version": "4.0.0", - "extraneous": true, - "inBundle": true, - "license": "ISC" - }, "node_modules/vega-encode": { "version": "4.9.1", "resolved": "https://registry.npmjs.org/vega-encode/-/vega-encode-4.9.1.tgz", @@ -25547,7 +25546,7 @@ "react-dnd": "16.0.1", "react-dnd-html5-backend": "16.0.1", "react-dom": "18.2.0", - "react-dropzone": "12.1.0", + "react-dropzone": "14.2.3", "react-error-boundary": "4.0.3", "react-ga": "3.3.0", "react-helmet": "6.1.0", @@ -31442,7 +31441,7 @@ "react-dnd": "16.0.1", "react-dnd-html5-backend": "16.0.1", "react-dom": "18.2.0", - "react-dropzone": "12.1.0", + "react-dropzone": "14.2.3", "react-error-boundary": "4.0.3", "react-ga": "3.3.0", "react-helmet": "6.1.0", @@ -38395,11 +38394,18 @@ } }, "file-selector": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.5.0.tgz", - "integrity": "sha512-s8KNnmIDTBoD0p9uJ9uD0XY38SCeBOtj0UMXyQSLg1Ypfrfj8+dAvwsLjYQkQ2GjhVtp2HrnF5cJzMhBjfD8HA==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.6.0.tgz", + "integrity": "sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==", "requires": { - "tslib": "^2.0.3" + "tslib": "^2.4.0" + }, + "dependencies": { + "tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + } } }, "file-type": { @@ -43839,12 +43845,12 @@ } }, "react-dropzone": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-12.1.0.tgz", - "integrity": "sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog==", + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.2.3.tgz", + "integrity": "sha512-O3om8I+PkFKbxCukfIR3QAGftYXDZfOE2N1mr/7qebQJHs7U+/RSL/9xomJNpRg9kM5h9soQSdf0Gc7OHF5Fug==", "requires": { "attr-accept": "^2.2.2", - "file-selector": "^0.5.0", + "file-selector": "^0.6.0", "prop-types": "^15.8.1" } }, @@ -46643,13 +46649,6 @@ "vega-schema-url-parser": "^2.2.0", "vega-themes": "^2.10.0", "vega-tooltip": "^0.27.0" - }, - "dependencies": { - "yallist": { - "version": "4.0.0", - "bundled": true, - "extraneous": true - } } }, "vega-encode": { diff --git a/packages/frontend/package.json b/packages/frontend/package.json index b10ba6683..5075bf860 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -39,7 +39,7 @@ "react-dnd": "16.0.1", "react-dnd-html5-backend": "16.0.1", "react-dom": "18.2.0", - "react-dropzone": "12.1.0", + "react-dropzone": "14.2.3", "react-error-boundary": "4.0.3", "react-ga": "3.3.0", "react-helmet": "6.1.0", diff --git a/packages/frontend/src/components/file-upload-area/file-upload-area.tsx b/packages/frontend/src/components/file-upload-area/file-upload-area.tsx index 86e5f8231..d25241b8c 100644 --- a/packages/frontend/src/components/file-upload-area/file-upload-area.tsx +++ b/packages/frontend/src/components/file-upload-area/file-upload-area.tsx @@ -16,15 +16,16 @@ import type { BoxProps } from '@chakra-ui/react'; import { Box, Button, Icon } from '@chakra-ui/react'; +import type { Accept } from 'react-dropzone'; import { useDropzone } from 'react-dropzone'; import { iconFactory } from '../../shared/icon-factory'; -export const DROPZONE_ACCEPT_ALL_FILES = ''; +export const DROPZONE_ACCEPT_ALL_FILES = {}; interface Props { onDrop: any; - accept?: string; + accept?: Accept; element?: any; dragElement?: any; }