From c3d25b88cf2b132e2d12758bfb0027120a2c3086 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 15 Feb 2021 15:07:13 -0800 Subject: [PATCH] feat: allow file-drop to accept multiple files (#1945) --- package.json | 2 +- src/routes/_components/compose/ComposeFileDrop.html | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2990ed1f..709e8b13 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "events-light": "^1.0.5", "express": "^4.17.1", "file-api": "^0.10.4", - "file-drop-element": "0.2.0", + "file-drop-element": "^1.0.1", "file-loader": "^6.1.0", "focus-visible": "^5.1.0", "form-data": "^3.0.0", diff --git a/src/routes/_components/compose/ComposeFileDrop.html b/src/routes/_components/compose/ComposeFileDrop.html index 1314c068..1276ea61 100644 --- a/src/routes/_components/compose/ComposeFileDrop.html +++ b/src/routes/_components/compose/ComposeFileDrop.html @@ -1,4 +1,4 @@ - +
{intl.dropToUpload} diff --git a/yarn.lock b/yarn.lock index 2db132d6..15b7a6f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3787,10 +3787,10 @@ file-api@^0.10.4: mime ">= 1.2.11" remedial ">= 1.0.7" -file-drop-element@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/file-drop-element/-/file-drop-element-0.2.0.tgz#c9214515b9d6b11f32c7fcee299f3a671939409e" - integrity sha512-BGDdaJ4U2Cz0qhv6YGLnuhVtKcN8fp7F/4dS7lGSL1Fbe8m4cbGk+8awwHW0xcFqutMojxGchMVuWYQpEpP/Qg== +file-drop-element@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/file-drop-element/-/file-drop-element-1.0.1.tgz#699d9aa47ef314a11f84fb92ef489cc0ce487aa1" + integrity sha512-na2cwntTVgMsR+BZ2YBr/XQk941DKDw2LJKbV7g6TRdGBQ3rx8V53oEviG8zPWoBOySwK9w/SlZ/gb/F/48I8A== file-entry-cache@^5.0.1: version "5.0.1"