diff --git a/package-lock.json b/package-lock.json index 17b94a8..f308da8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@bytescale/upload-widget-react", - "version": "4.5.0", + "version": "4.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@bytescale/upload-widget-react", - "version": "4.5.0", + "version": "4.6.0", "license": "MIT", "dependencies": { - "@bytescale/upload-widget": "^4.10.0", + "@bytescale/upload-widget": "^4.11.0", "lodash.isequal": "^4.5.0" }, "devDependencies": { @@ -1842,9 +1842,9 @@ "integrity": "sha512-8FqAPp1NCffd05aAvKY72A/8/hoVfhTW7nEMccSfngxGCfCnYJBwoZTv4/Qp5jh5XUVAN08vjNKI1LXTt1G1Xw==" }, "node_modules/@bytescale/upload-widget": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.10.0.tgz", - "integrity": "sha512-U+wdPcPegbfezvq991HzDeuFH/wMraBKn9O9mIwapVlkHCcbkDyq/XDYusvD1oCGgoMierlEElHrMCP2GhGr5A==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.11.0.tgz", + "integrity": "sha512-pc7BT2udT90ZqWCp+09zo8rfzpX2HQQGPza8WMHty4/ZZu8FFnpikptABRM/F4v+cLWwQXIWO1zsq9rweYBtZw==", "dependencies": { "@bytescale/sdk": "^3.2.0", "classnames": "^2.2.6", @@ -14301,9 +14301,9 @@ "integrity": "sha512-8FqAPp1NCffd05aAvKY72A/8/hoVfhTW7nEMccSfngxGCfCnYJBwoZTv4/Qp5jh5XUVAN08vjNKI1LXTt1G1Xw==" }, "@bytescale/upload-widget": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.10.0.tgz", - "integrity": "sha512-U+wdPcPegbfezvq991HzDeuFH/wMraBKn9O9mIwapVlkHCcbkDyq/XDYusvD1oCGgoMierlEElHrMCP2GhGr5A==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.11.0.tgz", + "integrity": "sha512-pc7BT2udT90ZqWCp+09zo8rfzpX2HQQGPza8WMHty4/ZZu8FFnpikptABRM/F4v+cLWwQXIWO1zsq9rweYBtZw==", "requires": { "@bytescale/sdk": "^3.2.0", "classnames": "^2.2.6", diff --git a/package.json b/package.json index cc9fe9a..10747ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bytescale/upload-widget-react", - "version": "4.6.0", + "version": "4.7.0", "author": "Bytescale (https://www.bytescale.com)", "description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐", "license": "MIT", @@ -74,7 +74,7 @@ "react": ">=16.3.0" }, "dependencies": { - "@bytescale/upload-widget": "^4.10.0", + "@bytescale/upload-widget": "^4.11.0", "lodash.isequal": "^4.5.0" }, "devDependencies": { diff --git a/src/UploadDropzone.tsx b/src/UploadDropzone.tsx index a2b62f2..42e63b4 100644 --- a/src/UploadDropzone.tsx +++ b/src/UploadDropzone.tsx @@ -1,8 +1,12 @@ import React, { useLayoutEffect } from "react"; import { useElementRef } from "./hooks/UseElementRef"; import { useAutoUpdatingOptions } from "@bytescale/upload-widget-react/hooks/UseAutoUpdatingOptions"; -import { UploadWidget, UploadWidgetConfig, UploadWidgetResult } from "@bytescale/upload-widget"; -import { UploadWidgetOnUpdateEvent } from "@bytescale/upload-widget/dist/config/UploadWidgetOnUpdateEvent"; +import { + UploadWidget, + UploadWidgetConfig, + UploadWidgetResult, + UploadWidgetOnUpdateEvent +} from "@bytescale/upload-widget"; interface Props { className?: string;