From 53cb32f5d9e3a87cf7213621e81113155727afae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 15:14:15 +0000 Subject: [PATCH] Release: uppy@4.0.0-beta.7 (#5162) | Package | Version | Package | Version | | ---------------------- | ------------ | ---------------------- | ------------ | | @uppy/companion | 5.0.0-beta.6 | @uppy/status-bar | 4.0.0-beta.7 | | @uppy/companion-client | 4.0.0-beta.6 | @uppy/unsplash | 4.0.0-beta.6 | | @uppy/compressor | 2.0.0-beta.7 | @uppy/url | 4.0.0-beta.6 | | @uppy/core | 4.0.0-beta.7 | @uppy/utils | 6.0.0-beta.6 | | @uppy/dashboard | 4.0.0-beta.7 | @uppy/webcam | 4.0.0-beta.6 | | @uppy/dropbox | 4.0.0-beta.6 | @uppy/xhr-upload | 4.0.0-beta.4 | | @uppy/image-editor | 3.0.0-beta.4 | uppy | 4.0.0-beta.7 | | @uppy/screen-capture | 4.0.0-beta.5 | | | - @uppy/companion: switch from `node-redis` to `ioredis` (Dominik Schmidt / #4623) - meta: Fix headings in xhr.mdx (Merlijn Vos) - @uppy/xhr-upload: introduce hooks similar to tus (Merlijn Vos / #5094) - @uppy/core: close->destroy, clearUploadedFiles->clear (Merlijn Vos / #5154) - @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) | Package | Version | Package | Version | | ------------------ | ------- | ------------------ | ------- | | @uppy/core | 3.11.3 | uppy | 3.25.3 | | @uppy/image-editor | 2.4.6 | | | - @uppy/image-editor: fix tooltips (Avneet Singh Malhotra / #5156) - meta: Remove redundant `plugins` prop from examples (Merlijn Vos / #5145) - @uppy/image-editor: Remove `target` option from examples and document consistently (Merlijn Vos / #5146) - @uppy/core: make getObjectOfFilesPerState more efficient (Merlijn Vos / #5155) --- BUNDLE-README.md | 2 +- CHANGELOG.md | 37 +++ README.md | 81 +++-- docs/framework-integrations/react.mdx | 4 +- docs/framework-integrations/svelte.mdx | 4 +- docs/framework-integrations/vue.mdx | 2 +- docs/guides/migration-guides.md | 6 +- docs/presets/remote-sources.mdx | 3 +- docs/sources/audio.mdx | 11 +- docs/sources/companion-plugins/box.mdx | 10 +- docs/sources/companion-plugins/dropbox.mdx | 10 +- docs/sources/companion-plugins/facebook.mdx | 8 +- .../companion-plugins/google-drive.mdx | 8 +- docs/sources/companion-plugins/instagram.mdx | 8 +- docs/sources/companion-plugins/onedrive.mdx | 8 +- docs/sources/companion-plugins/unsplash.mdx | 8 +- docs/sources/companion-plugins/url.mdx | 10 +- docs/sources/companion-plugins/zoom.mdx | 10 +- docs/sources/screen-capture.mdx | 11 +- docs/sources/webcam.mdx | 11 +- .../user-interfaces/elements/image-editor.mdx | 4 +- docs/user-interfaces/elements/status-bar.mdx | 5 +- examples/aws-nodejs/public/drag.html | 4 +- examples/aws-nodejs/public/index.html | 4 +- examples/cdn-example/index.html | 4 +- .../uppy-with-companion/client/index.html | 4 +- packages/@uppy/companion-client/CHANGELOG.md | 7 + packages/@uppy/companion-client/package.json | 2 +- packages/@uppy/companion/CHANGELOG.md | 7 + packages/@uppy/companion/package.json | 2 +- packages/@uppy/compressor/package.json | 4 +- packages/@uppy/core/CHANGELOG.md | 14 + packages/@uppy/core/package.json | 4 +- packages/@uppy/core/src/Uppy.ts | 69 ++-- packages/@uppy/dashboard/package.json | 4 +- packages/@uppy/dropbox/CHANGELOG.md | 7 + packages/@uppy/dropbox/package.json | 2 +- packages/@uppy/image-editor/CHANGELOG.md | 8 + packages/@uppy/image-editor/README.md | 5 +- packages/@uppy/image-editor/package.json | 2 +- packages/@uppy/image-editor/src/Editor.tsx | 306 +++++++++--------- packages/@uppy/screen-capture/CHANGELOG.md | 7 + packages/@uppy/screen-capture/package.json | 2 +- packages/@uppy/status-bar/package.json | 4 +- packages/@uppy/unsplash/CHANGELOG.md | 7 + packages/@uppy/unsplash/package.json | 2 +- packages/@uppy/url/CHANGELOG.md | 7 + packages/@uppy/url/package.json | 2 +- packages/@uppy/utils/package.json | 2 +- packages/@uppy/webcam/CHANGELOG.md | 7 + packages/@uppy/webcam/package.json | 2 +- packages/@uppy/xhr-upload/CHANGELOG.md | 7 + packages/@uppy/xhr-upload/package.json | 2 +- packages/uppy/package.json | 2 +- yarn.lock | 16 +- 55 files changed, 476 insertions(+), 313 deletions(-) diff --git a/BUNDLE-README.md b/BUNDLE-README.md index a8c4479c92..6e2865f88b 100644 --- a/BUNDLE-README.md +++ b/BUNDLE-README.md @@ -2,7 +2,7 @@ Hi, thanks for trying out the bundled version of the Uppy File Uploader. You can use this from a CDN -(``) +(``) or bundle it with your webapp. Note that the recommended way to use Uppy is to install it with yarn/npm and use diff --git a/CHANGELOG.md b/CHANGELOG.md index 78a170c5d9..65e0203a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,28 @@ Please add your entries in this format: In the current stage we aim to release a new version at least every month. +## 4.0.0-beta.7 + +Released: 2024-05-14 + +| Package | Version | Package | Version | +| ---------------------- | ------------ | ---------------------- | ------------ | +| @uppy/companion | 5.0.0-beta.6 | @uppy/status-bar | 4.0.0-beta.7 | +| @uppy/companion-client | 4.0.0-beta.6 | @uppy/unsplash | 4.0.0-beta.6 | +| @uppy/compressor | 2.0.0-beta.7 | @uppy/url | 4.0.0-beta.6 | +| @uppy/core | 4.0.0-beta.7 | @uppy/utils | 6.0.0-beta.6 | +| @uppy/dashboard | 4.0.0-beta.7 | @uppy/webcam | 4.0.0-beta.6 | +| @uppy/dropbox | 4.0.0-beta.6 | @uppy/xhr-upload | 4.0.0-beta.4 | +| @uppy/image-editor | 3.0.0-beta.4 | uppy | 4.0.0-beta.7 | +| @uppy/screen-capture | 4.0.0-beta.5 | | | + +- @uppy/companion: switch from `node-redis` to `ioredis` (Dominik Schmidt / #4623) +- meta: Fix headings in xhr.mdx (Merlijn Vos) +- @uppy/xhr-upload: introduce hooks similar to tus (Merlijn Vos / #5094) +- @uppy/core: close->destroy, clearUploadedFiles->clear (Merlijn Vos / #5154) +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + + ## 4.0.0-beta.6 Released: 2024-05-08 @@ -287,6 +309,21 @@ Released: 2024-03-28 - @uppy/vue: [v4.x] remove manual types (Antoine du Hamel / #4803) - meta: prepare release workflow for beta versions (Antoine du Hamel) +## 3.25.3 + +Released: 2024-05-14 + +| Package | Version | Package | Version | +| ------------------ | ------- | ------------------ | ------- | +| @uppy/core | 3.11.3 | uppy | 3.25.3 | +| @uppy/image-editor | 2.4.6 | | | + +- @uppy/image-editor: fix tooltips (Avneet Singh Malhotra / #5156) +- meta: Remove redundant `plugins` prop from examples (Merlijn Vos / #5145) +- @uppy/image-editor: Remove `target` option from examples and document consistently (Merlijn Vos / #5146) +- @uppy/core: make getObjectOfFilesPerState more efficient (Merlijn Vos / #5155) + + ## 3.25.2 Released: 2024-05-07 diff --git a/README.md b/README.md index b9327d499a..6ee7c50689 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ import Tus from '@uppy/tus' const uppy = new Uppy() .use(Dashboard, { trigger: '#select-files' }) .use(RemoteSources, { companionUrl: 'https://companion.uppy.io' }) - .use(Webcam, { target: Dashboard }) - .use(ImageEditor, { target: Dashboard }) + .use(Webcam) + .use(ImageEditor) .use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' }) .on('complete', (result) => { console.log('Upload result:', result) @@ -79,7 +79,7 @@ npm install @uppy/core @uppy/dashboard @uppy/tus ``` Add CSS -[uppy.min.css](https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.css), +[uppy.min.css](https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.css), either to your HTML page’s `` or include in JS, if your bundler of choice supports it. @@ -94,7 +94,7 @@ object. ```html @@ -105,7 +105,7 @@ object. Uppy, Dashboard, Tus, - } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.mjs' + } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.mjs' const uppy = new Uppy() uppy.use(Dashboard, { target: '#files-drag-drop' }) @@ -203,7 +203,48 @@ server-side component, is needed for a plugin to work. ## Browser Support -We aim to support recent versions of Chrome, Firefox, and Safari. +<<<<<<< HEAD We aim to support recent versions of Chrome, Firefox, and Safari. +\======= We aim to support recent versions of Chrome, Firefox, Safari and Edge. + +We still provide a bundle which should work on IE11, but we are not running +tests on it. + +### Polyfills + +Here’s a list of polyfills you’ll need to include to make Uppy work in older +browsers, such as IE11: + +- [abortcontroller-polyfill](https://github.com/mo/abortcontroller-polyfill) +- [core-js](https://github.com/zloirock/core-js) +- [md-gum-polyfill](https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill) +- [resize-observer-polyfill](https://github.com/que-etc/resize-observer-polyfill) +- [whatwg-fetch](https://github.com/github/fetch) + +If you’re using a bundler, you need to import them before Uppy: + +```js +import 'core-js' +import 'whatwg-fetch' +import 'abortcontroller-polyfill/dist/polyfill-patch-fetch' +// Order matters: AbortController needs fetch which needs Promise (provided by core-js). + +import 'md-gum-polyfill' +import ResizeObserver from 'resize-observer-polyfill' + +window.ResizeObserver ??= ResizeObserver + +export { default } from '@uppy/core' +export * from '@uppy/core' +``` + +If you’re using Uppy from CDN, those polyfills are already included in the +legacy bundle, so no need to include anything additionally: + +```html + +``` + +> > > > > > > 86e2e6750192055bfba24abf62e227976be5e085 ## FAQ @@ -320,7 +361,7 @@ Use Uppy in your project? samuelcolburnfortunto2GNURubrartrossngmkopinsky mhulethrshmauricioribeiromatthewhartstongemjesuelemattfik mateuscruzmasumulu28masaokmartin-brennanmarcusforsbergmarcosthejew -mperrandoonhatemarc-mabesercraigcryptic022Ozodbek1405 +mperrandoonhatemarc-mabeLucklj521cryptic022Ozodbek1405 leftdevelnil1511coreprocessnicojonestrungcva10a6tnnaveed-ahmad pleasespammelatermarton-laszlo-attilanavruzmmogzolshahimcltmnafees boudraachmiralken-kuroneuronet77mosi-khamaddy-jo @@ -338,27 +379,27 @@ Use Uppy in your project? yafkariYehudaKremerardeoisCommanderRootczjcbush06 Aarbelcfracspranceprattcmpsubvertallchrischarlybillaud Cretezychaocellvinchungcartfiskcyubryanjswift -functinoeliOcsyoldarefbautistaemuellEdgarSantiago93 +bedgerottofunctinoyoldarefbautistaemuellEdgarSantiago93 sweetrojeetissDennisKofflardhoangsvitdavilima6akizor KaminskiDaniellCantabarmrboomerdanilatdanschalowdanmichaelo -CruaieramitporttekacsDogfaloalirezahiaalepis -alexnjasmt3ahmadissaadritasharmaAdrreiadityapatadia -adamvigneaultajh-sradamdottvabannachsuperhawk610ajschmidt8 -bedgerottowbaaronQuorafindbducharmeazizkazeemba -ayhankesiciogluatsawinash-jc-allenapuyouarthurdennerAbourass -tyndriaanthony0030andychongyzandrii-bodnarsuperandrew213radarhere -kergekacsafiresharkstudioskaspermeinematykaroljveltenmellow-fellow +CruaiersercraigamitporttekacsDogfaloalirezahi +aalepisalexnjasmt3ahmadissaadritasharmaAdrrei +adityapatadiaadamvigneaultajh-sradamdottvabannachsuperhawk610 +ajschmidt8wbaaronQuorafindbducharmeazizkazeemba +ayhankesiciogluavneetmalhotraatsawinash-jc-allenapuyouarthurdenner +Abourasstyndriaanthony0030andychongyzandrii-bodnarsuperandrew213 +radarherefiresharkstudioskaspermeinematykaroljveltenmellow-fellow jmontoyaajcalonsojbelejjszobodyjorgeepcjondewoo -jonathanarbelyjsanchez034JokcychromacomaprofsmallpineIanVS -Lucklj521lucax88xlucaperretombrlouimdolphinigle +jonathanarbelyjsanchez034JokcychromacomaprofsmallpinetheJoeBiz +huydodlucax88xlucaperretombrlouimdolphinigle leomelzerleods92galli-leodvirylarowlanleaanthony hoangbitslabohkip81kyleparisielkebabkidonngkevin-west-10x -huydodHussainAlkhalifahHughbertDhiromi2424giacomocerquoneroenschg +kergekacsaHussainAlkhalifahHughbertDhiromi2424giacomocerquoneroenschg gjungbgeoffapplefordgabiganamfuadscodesdtrucsferdiusa -fgallinariGkleinerevaepexaEnricoSottileelliotdickisontheJoeBiz +fgallinariGkleinerevaepexaEnricoSottileelliotdickisoneliOcs Jmalesjessica-courseravithjanwiltsjanklimojamestiotio jcjmccleanJbithellJakubHaladejjakemcallistergaejabongJacobMGEvans -mazorussGreenJimmyintenziveNaxYoishendyweb +mazorussGreenJimmyintenziveNaxYoishendywebIanVS diff --git a/docs/framework-integrations/react.mdx b/docs/framework-integrations/react.mdx index e04684f242..c4b0e04990 100644 --- a/docs/framework-integrations/react.mdx +++ b/docs/framework-integrations/react.mdx @@ -117,7 +117,7 @@ function Component() { // IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render. const [uppy] = useState(() => new Uppy().use(Webcam)); - return ; + return ; } ``` @@ -175,7 +175,7 @@ function Component(props) { uppy.getPlugin('Webcam').setOptions({ modes: props.webcamModes }); }, [props.webcamModes]); - return ; + return ; } ``` diff --git a/docs/framework-integrations/svelte.mdx b/docs/framework-integrations/svelte.mdx index 4bb490b4c0..a0735f7cac 100644 --- a/docs/framework-integrations/svelte.mdx +++ b/docs/framework-integrations/svelte.mdx @@ -50,7 +50,7 @@ instance can be passed into components as an `uppy` prop. Due to the way Svelte handles reactivity, you can initialize Uppy the same way you would with vanilla JavaScript. -```html +```svelte -
+
``` [svelte]: https://svelte.dev diff --git a/docs/framework-integrations/vue.mdx b/docs/framework-integrations/vue.mdx index 4564e5d83b..2d348f8022 100644 --- a/docs/framework-integrations/vue.mdx +++ b/docs/framework-integrations/vue.mdx @@ -66,7 +66,7 @@ JavaScript. ``` diff --git a/docs/guides/migration-guides.md b/docs/guides/migration-guides.md index ca09b5f75f..4413da8fea 100644 --- a/docs/guides/migration-guides.md +++ b/docs/guides/migration-guides.md @@ -60,16 +60,14 @@ new Uppy() companionAllowedHosts: COMPANION_ALLOWED_HOSTS, }) .use(Webcam, { - target: Dashboard, showVideoSourceDropdown: true, showRecordingLength: true, }) .use(Audio, { - target: Dashboard, showRecordingLength: true, }) - .use(ScreenCapture, { target: Dashboard }) - .use(ImageEditor, { target: Dashboard }) + .use(ScreenCapture) + .use(ImageEditor) .use(Transloadit, { service: 'https://api2.transloadit.com', async getAssemblyOptions(file) { diff --git a/docs/presets/remote-sources.mdx b/docs/presets/remote-sources.mdx index 8c7655621c..1169bf90ab 100644 --- a/docs/presets/remote-sources.mdx +++ b/docs/presets/remote-sources.mdx @@ -135,7 +135,8 @@ default: `same-origin`). #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string`, `Element`, `Function`, or `UIPlugin`, default: `Dashboard`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). [`request.credentials` value]: https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials diff --git a/docs/sources/audio.mdx b/docs/sources/audio.mdx index 0a612cfcc4..c9528d3f22 100644 --- a/docs/sources/audio.mdx +++ b/docs/sources/audio.mdx @@ -50,7 +50,7 @@ yarn add @uppy/audio import { Uppy, Dashboard, Audio } from "{{UPPY_JS_URL}}" const uppy = new Uppy() uppy.use(Dashboard, { inline: true, target: 'body' }) - uppy.use(Audio, { target: Uppy.Dashboard }) + uppy.use(Audio) `} @@ -67,9 +67,7 @@ import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; import '@uppy/audio/dist/style.min.css'; -new Uppy() - .use(Dashboard, { inline: true, target: 'body' }) - .use(Audio, { target: Dashboard }); +new Uppy().use(Dashboard, { inline: true, target: 'body' }).use(Audio); ``` ### API @@ -87,8 +85,9 @@ Configures the title / name shown in the UI, for instance, on Dashboard tabs #### `target` -DOM element, CSS selector, or plugin to place the audio into (`string` or -`Element`, default: `null`). +DOM element, CSS selector, or plugin to place the drag and drop area into +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `showAudioSourceDropdown` diff --git a/docs/sources/companion-plugins/box.mdx b/docs/sources/companion-plugins/box.mdx index 695a0579cd..df35317e58 100644 --- a/docs/sources/companion-plugins/box.mdx +++ b/docs/sources/companion-plugins/box.mdx @@ -76,10 +76,9 @@ import Box from '@uppy/box'; import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; -new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Box, { - target: Dashboard, - companionUrl: 'https://your-companion.com', -}); +new Uppy() + .use(Dashboard, { inline: true, target: '#dashboard' }) + .use(Box, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -150,7 +149,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/dropbox.mdx b/docs/sources/companion-plugins/dropbox.mdx index 4ac6b712ec..b5c52dd86c 100644 --- a/docs/sources/companion-plugins/dropbox.mdx +++ b/docs/sources/companion-plugins/dropbox.mdx @@ -76,10 +76,9 @@ import Dropbox from '@uppy/dropbox'; import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; -new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Dropbox, { - target: Dashboard, - companionUrl: 'https://your-companion.com', -}); +new Uppy() + .use(Dashboard, { inline: true, target: '#dashboard' }) + .use(Dropbox, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -149,7 +148,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/facebook.mdx b/docs/sources/companion-plugins/facebook.mdx index 40927d7c66..059f68c45e 100644 --- a/docs/sources/companion-plugins/facebook.mdx +++ b/docs/sources/companion-plugins/facebook.mdx @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(Facebook, { - target: Dashboard, - companionUrl: 'https://your-companion.com', - }); + .use(Facebook, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -148,7 +145,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/google-drive.mdx b/docs/sources/companion-plugins/google-drive.mdx index 0c58b86e8f..3685c7ddc9 100644 --- a/docs/sources/companion-plugins/google-drive.mdx +++ b/docs/sources/companion-plugins/google-drive.mdx @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(GoogleDrive, { - target: Dashboard, - companionUrl: 'https://your-companion.com', - }); + .use(GoogleDrive, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -152,7 +149,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/instagram.mdx b/docs/sources/companion-plugins/instagram.mdx index 8a032ed615..358f184940 100644 --- a/docs/sources/companion-plugins/instagram.mdx +++ b/docs/sources/companion-plugins/instagram.mdx @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(Instagram, { - target: Dashboard, - companionUrl: 'https://your-companion.com', - }); + .use(Instagram, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -142,7 +139,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/onedrive.mdx b/docs/sources/companion-plugins/onedrive.mdx index e88397f6bd..499cddb3de 100644 --- a/docs/sources/companion-plugins/onedrive.mdx +++ b/docs/sources/companion-plugins/onedrive.mdx @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(OneDrive, { - target: Dashboard, - companionUrl: 'https://your-companion.com', - }); + .use(OneDrive, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -142,7 +139,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/unsplash.mdx b/docs/sources/companion-plugins/unsplash.mdx index 6e8da0d745..7bb1f59d14 100644 --- a/docs/sources/companion-plugins/unsplash.mdx +++ b/docs/sources/companion-plugins/unsplash.mdx @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(Unsplash, { - target: Dashboard, - companionUrl: 'https://your-companion.com', - }); + .use(Unsplash, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -127,7 +124,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/url.mdx b/docs/sources/companion-plugins/url.mdx index 8ad4d207da..000ecebf38 100644 --- a/docs/sources/companion-plugins/url.mdx +++ b/docs/sources/companion-plugins/url.mdx @@ -83,10 +83,9 @@ import Url from '@uppy/url'; import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; -new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Url, { - target: Dashboard, - companionUrl: 'https://your-companion.com', -}); +new Uppy() + .use(Dashboard, { inline: true, target: '#dashboard' }) + .use(Url, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -110,7 +109,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/companion-plugins/zoom.mdx b/docs/sources/companion-plugins/zoom.mdx index 141bf151b6..2b38c6f5ac 100644 --- a/docs/sources/companion-plugins/zoom.mdx +++ b/docs/sources/companion-plugins/zoom.mdx @@ -76,10 +76,9 @@ import Zoom from '@uppy/zoom'; import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; -new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Zoom, { - target: Dashboard, - companionUrl: 'https://your-companion.com', -}); +new Uppy() + .use(Dashboard, { inline: true, target: '#dashboard' }) + .use(Zoom, { companionUrl: 'https://your-companion.com' }); ``` ### Use in Companion @@ -121,7 +120,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default: #### `target` DOM element, CSS selector, or plugin to place the drag and drop area into -(`string` or `Element`, default: `null`). +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `companionUrl` diff --git a/docs/sources/screen-capture.mdx b/docs/sources/screen-capture.mdx index 131ae50278..a2329f7336 100644 --- a/docs/sources/screen-capture.mdx +++ b/docs/sources/screen-capture.mdx @@ -62,7 +62,7 @@ yarn add @uppy/screen-capture import { Uppy, Dashboard, ScreenCapture } from "{{UPPY_JS_URL}}" const uppy = new Uppy() uppy.use(Dashboard, { inline: true, target: 'body' }) - uppy.use(ScreenCapture, { target: Uppy.Dashboard }) + uppy.use(ScreenCapture) `} @@ -79,9 +79,7 @@ import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; import '@uppy/screen-capture/dist/style.min.css'; -new Uppy() - .use(Dashboard, { inline: true, target: 'body' }) - .use(ScreenCapture, { target: Dashboard }); +new Uppy().use(Dashboard, { inline: true, target: 'body' }).use(ScreenCapture); ``` ### API @@ -99,8 +97,9 @@ Configures the title / name shown in the UI, for instance, on Dashboard tabs #### `target` -DOM element, CSS selector, or plugin to place the screen capture into (`string` -or `Element`, default: `null`). +DOM element, CSS selector, or plugin to place the drag and drop area into +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `displayMediaConstraints` diff --git a/docs/sources/webcam.mdx b/docs/sources/webcam.mdx index 8df2bf2234..08cf5e3bf4 100644 --- a/docs/sources/webcam.mdx +++ b/docs/sources/webcam.mdx @@ -51,7 +51,7 @@ yarn add @uppy/webcam import { Uppy, Dashboard, Webcam } from "{{UPPY_JS_URL}}" const uppy = new Uppy() uppy.use(Dashboard, { inline: true, target: 'body' }) - uppy.use(Webcam, { target: Uppy.Dashboard }) + uppy.use(Webcam) `} @@ -77,9 +77,7 @@ import '@uppy/core/dist/style.min.css'; import '@uppy/dashboard/dist/style.min.css'; import '@uppy/webcam/dist/style.min.css'; -new Uppy() - .use(Dashboard, { inline: true, target: 'body' }) - .use(Webcam, { target: Dashboard }); +new Uppy().use(Dashboard, { inline: true, target: 'body' }).use(Webcam); ``` ## API @@ -92,8 +90,9 @@ A unique identifier for this plugin (`string`, default: `'Webcam'`). #### `target` -DOM element, CSS selector, or plugin to place the webcam into (`string` or -`Element`, default: `null`). +DOM element, CSS selector, or plugin to place the drag and drop area into +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `countdown` diff --git a/docs/user-interfaces/elements/image-editor.mdx b/docs/user-interfaces/elements/image-editor.mdx index 255038693e..033dd635ee 100644 --- a/docs/user-interfaces/elements/image-editor.mdx +++ b/docs/user-interfaces/elements/image-editor.mdx @@ -48,7 +48,7 @@ yarn add @uppy/core @uppy/dashboard @uppy/image-editor import { Uppy, Dashboard, ImageEditor } from "{{UPPY_JS_URL}}" const uppy = new Uppy() uppy.use(Dashboard, { target: '#uppy', inline: true }) - uppy.use(ImageEditor, { target: Uppy.Dashboard }) + uppy.use(ImageEditor) `} @@ -67,7 +67,7 @@ import '@uppy/image-editor/dist/style.min.css'; new Uppy() .use(Dashboard, { inline: true, target: '#dashboard' }) - .use(ImageEditor, { target: Dashboard }); + .use(ImageEditor); ``` ## API diff --git a/docs/user-interfaces/elements/status-bar.mdx b/docs/user-interfaces/elements/status-bar.mdx index 663414f22b..b740672feb 100644 --- a/docs/user-interfaces/elements/status-bar.mdx +++ b/docs/user-interfaces/elements/status-bar.mdx @@ -82,8 +82,9 @@ Use this if you need to add several StatusBar instances. #### `target` -DOM element, CSS selector, or plugin to mount the Status Bar into (`Element`, -`string`, `UIPlugin`, default: `'body'`). +DOM element, CSS selector, or plugin to place the drag and drop area into +(`string`, `Element`, `Function`, or `UIPlugin`, default: +[`Dashboard`](/docs/dashboard)). #### `hideAfterFinish` diff --git a/examples/aws-nodejs/public/drag.html b/examples/aws-nodejs/public/drag.html index 9843b79b02..66d5c8e476 100644 --- a/examples/aws-nodejs/public/drag.html +++ b/examples/aws-nodejs/public/drag.html @@ -4,7 +4,7 @@ Uppy @@ -22,7 +22,7 @@
Uploaded files:
DragDrop, ProgressBar, AwsS3, - } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.mjs' + } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.mjs' // Function for displaying uploaded files const onUploadSuccess = (elForUploadedFiles) => (file, response) => { diff --git a/examples/aws-nodejs/public/index.html b/examples/aws-nodejs/public/index.html index 01381747c2..0082a87c60 100644 --- a/examples/aws-nodejs/public/index.html +++ b/examples/aws-nodejs/public/index.html @@ -4,7 +4,7 @@ Uppy – AWS upload example @@ -16,7 +16,7 @@

AWS upload example

Uppy, Dashboard, AwsS3, - } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.mjs' + } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.mjs' /** * This generator transforms a deep object into URL-encodable pairs * to work with `URLSearchParams` on the client and `body-parser` on the server. diff --git a/examples/cdn-example/index.html b/examples/cdn-example/index.html index 2a11fc1a60..a046244dc6 100644 --- a/examples/cdn-example/index.html +++ b/examples/cdn-example/index.html @@ -5,7 +5,7 @@ @@ -19,7 +19,7 @@ Dashboard, Webcam, Tus, - } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.mjs' + } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.mjs' const uppy = new Uppy({ debug: true, autoProceed: false }) .use(Dashboard, { trigger: '#uppyModalOpener' }) diff --git a/examples/uppy-with-companion/client/index.html b/examples/uppy-with-companion/client/index.html index 65091d18f4..9e30400f72 100644 --- a/examples/uppy-with-companion/client/index.html +++ b/examples/uppy-with-companion/client/index.html @@ -5,7 +5,7 @@ @@ -19,7 +19,7 @@ Instagram, GoogleDrive, Tus, - } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.mjs' + } from 'https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.mjs' const uppy = new Uppy({ debug: true, autoProceed: false }) .use(Dashboard, { trigger: '#uppyModalOpener' }) diff --git a/packages/@uppy/companion-client/CHANGELOG.md b/packages/@uppy/companion-client/CHANGELOG.md index 69b88d1d68..3ba528c697 100644 --- a/packages/@uppy/companion-client/CHANGELOG.md +++ b/packages/@uppy/companion-client/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/companion-client +## 4.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/companion-client/package.json b/packages/@uppy/companion-client/package.json index 67761dc51c..c5be5f0d51 100644 --- a/packages/@uppy/companion-client/package.json +++ b/packages/@uppy/companion-client/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/companion-client", "description": "Client library for communication with Companion. Intended for use in Uppy plugins.", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "license": "MIT", "main": "lib/index.js", "type": "module", diff --git a/packages/@uppy/companion/CHANGELOG.md b/packages/@uppy/companion/CHANGELOG.md index fc68e117be..e22ae3067e 100644 --- a/packages/@uppy/companion/CHANGELOG.md +++ b/packages/@uppy/companion/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/companion +## 5.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion: switch from `node-redis` to `ioredis` (Dominik Schmidt / #4623) + ## 5.0.0-beta.5 Released: 2024-05-03 diff --git a/packages/@uppy/companion/package.json b/packages/@uppy/companion/package.json index d2f3d4a16a..5fe22b060e 100644 --- a/packages/@uppy/companion/package.json +++ b/packages/@uppy/companion/package.json @@ -1,6 +1,6 @@ { "name": "@uppy/companion", - "version": "5.0.0-beta.5", + "version": "5.0.0-beta.6", "description": "OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:", "main": "lib/companion.js", "types": "lib/companion.d.ts", diff --git a/packages/@uppy/compressor/package.json b/packages/@uppy/compressor/package.json index 78f083348b..819b97931f 100644 --- a/packages/@uppy/compressor/package.json +++ b/packages/@uppy/compressor/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/compressor", "description": "Uppy plugin that compresses images before upload, saving up to 60% in size", - "version": "2.0.0-beta.6", + "version": "2.0.0-beta.7", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", @@ -22,7 +22,7 @@ "url": "git+https://github.com/transloadit/uppy.git" }, "dependencies": { - "@transloadit/prettier-bytes": "^0.3.0", + "@transloadit/prettier-bytes": "^0.3.4", "@uppy/utils": "workspace:^", "compressorjs": "^1.2.1", "preact": "^10.5.13", diff --git a/packages/@uppy/core/CHANGELOG.md b/packages/@uppy/core/CHANGELOG.md index f220d351f5..6da6888a89 100644 --- a/packages/@uppy/core/CHANGELOG.md +++ b/packages/@uppy/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/core +## 4.0.0-beta.7 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/core: close->destroy, clearUploadedFiles->clear (Merlijn Vos / #5154) + ## 4.0.0-beta.5 Released: 2024-05-03 @@ -42,6 +49,13 @@ Included in: Uppy v4.0.0-beta.1 - @uppy/core: various type fixes (Antoine du Hamel / #4995) - @uppy/core,@uppy/provider-views: Fix breadcrumbs (Evgenia Karunus / #4986) +## 3.11.3 + +Released: 2024-05-14 +Included in: Uppy v3.25.3 + +- @uppy/core: make getObjectOfFilesPerState more efficient (Merlijn Vos / #5155) + ## 3.11.2 Released: 2024-05-07 diff --git a/packages/@uppy/core/package.json b/packages/@uppy/core/package.json index 1e4ebeb9a6..6dcd51326e 100644 --- a/packages/@uppy/core/package.json +++ b/packages/@uppy/core/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/core", "description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:", - "version": "4.0.0-beta.6", + "version": "4.0.0-beta.7", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", @@ -23,7 +23,7 @@ "url": "git+https://github.com/transloadit/uppy.git" }, "dependencies": { - "@transloadit/prettier-bytes": "^0.3.0", + "@transloadit/prettier-bytes": "^0.3.4", "@uppy/store-default": "workspace:^", "@uppy/utils": "workspace:^", "lodash": "^4.17.21", diff --git a/packages/@uppy/core/src/Uppy.ts b/packages/@uppy/core/src/Uppy.ts index 69da0fcef9..76fed05a45 100644 --- a/packages/@uppy/core/src/Uppy.ts +++ b/packages/@uppy/core/src/Uppy.ts @@ -677,7 +677,6 @@ export class Uppy { return ids.map((id) => this.getFile(id)) } - // TODO: remove or refactor this method. It's very inefficient getObjectOfFilesPerState(): { newFiles: UppyFile[] startedFiles: UppyFile[] @@ -697,28 +696,52 @@ export class Uppy { } { const { files: filesObject, totalProgress, error } = this.getState() const files = Object.values(filesObject) - const inProgressFiles = files.filter( - ({ progress }) => !progress.uploadComplete && progress.uploadStarted, - ) - const newFiles = files.filter((file) => !file.progress.uploadStarted) - const startedFiles = files.filter( - (file) => - file.progress.uploadStarted || - file.progress.preprocess || - file.progress.postprocess, - ) - const uploadStartedFiles = files.filter( - (file) => file.progress.uploadStarted, - ) - const pausedFiles = files.filter((file) => file.isPaused) - const completeFiles = files.filter((file) => file.progress.uploadComplete) - const erroredFiles = files.filter((file) => file.error) - const inProgressNotPausedFiles = inProgressFiles.filter( - (file) => !file.isPaused, - ) - const processingFiles = files.filter( - (file) => file.progress.preprocess || file.progress.postprocess, - ) + + const inProgressFiles: UppyFile[] = [] + const newFiles: UppyFile[] = [] + const startedFiles: UppyFile[] = [] + const uploadStartedFiles: UppyFile[] = [] + const pausedFiles: UppyFile[] = [] + const completeFiles: UppyFile[] = [] + const erroredFiles: UppyFile[] = [] + const inProgressNotPausedFiles: UppyFile[] = [] + const processingFiles: UppyFile[] = [] + + for (const file of files) { + const { progress } = file + + if (!progress.uploadComplete && progress.uploadStarted) { + inProgressFiles.push(file) + if (!file.isPaused) { + inProgressNotPausedFiles.push(file) + } + } + if (!progress.uploadStarted) { + newFiles.push(file) + } + if ( + progress.uploadStarted || + progress.preprocess || + progress.postprocess + ) { + startedFiles.push(file) + } + if (progress.uploadStarted) { + uploadStartedFiles.push(file) + } + if (file.isPaused) { + pausedFiles.push(file) + } + if (progress.uploadComplete) { + completeFiles.push(file) + } + if (file.error) { + erroredFiles.push(file) + } + if (progress.preprocess || progress.postprocess) { + processingFiles.push(file) + } + } return { newFiles, diff --git a/packages/@uppy/dashboard/package.json b/packages/@uppy/dashboard/package.json index f54e289e4d..92b9816d0b 100644 --- a/packages/@uppy/dashboard/package.json +++ b/packages/@uppy/dashboard/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/dashboard", "description": "Universal UI plugin for Uppy.", - "version": "4.0.0-beta.6", + "version": "4.0.0-beta.7", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", @@ -22,7 +22,7 @@ "url": "git+https://github.com/transloadit/uppy.git" }, "dependencies": { - "@transloadit/prettier-bytes": "^0.3.0", + "@transloadit/prettier-bytes": "^0.3.4", "@uppy/informer": "workspace:^", "@uppy/provider-views": "workspace:^", "@uppy/status-bar": "workspace:^", diff --git a/packages/@uppy/dropbox/CHANGELOG.md b/packages/@uppy/dropbox/CHANGELOG.md index 8214e46473..768ea4a0ae 100644 --- a/packages/@uppy/dropbox/CHANGELOG.md +++ b/packages/@uppy/dropbox/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/dropbox +## 4.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/dropbox/package.json b/packages/@uppy/dropbox/package.json index ec0aac0242..05542fabef 100644 --- a/packages/@uppy/dropbox/package.json +++ b/packages/@uppy/dropbox/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/dropbox", "description": "Import files from Dropbox, into Uppy.", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "license": "MIT", "main": "lib/index.js", "type": "module", diff --git a/packages/@uppy/image-editor/CHANGELOG.md b/packages/@uppy/image-editor/CHANGELOG.md index 6f3b5db635..a65dd5040b 100644 --- a/packages/@uppy/image-editor/CHANGELOG.md +++ b/packages/@uppy/image-editor/CHANGELOG.md @@ -7,6 +7,14 @@ Included in: Uppy v4.0.0-beta.4 - @uppy/image-editor: fix label definitions (Antoine du Hamel / #5111) +## 2.4.6 + +Released: 2024-05-14 +Included in: Uppy v3.25.3 + +- @uppy/image-editor: fix tooltips (Avneet Singh Malhotra / #5156) +- @uppy/image-editor: Remove `target` option from examples and document consistently (Merlijn Vos / #5146) + ## 2.4.5 Released: 2024-04-29 diff --git a/packages/@uppy/image-editor/README.md b/packages/@uppy/image-editor/README.md index 38185b2a2a..56628466d0 100644 --- a/packages/@uppy/image-editor/README.md +++ b/packages/@uppy/image-editor/README.md @@ -27,10 +27,7 @@ import ImageEditor from '@uppy/image-editor' const uppy = new Uppy() uppy.use(Dashboard) -uppy.use(ImageEditor, { - target: Dashboard, - quality: 0.7, -}) +uppy.use(ImageEditor, { quality: 0.7 }) ``` ## Installation diff --git a/packages/@uppy/image-editor/package.json b/packages/@uppy/image-editor/package.json index 3de5a4c855..fa4adf4df1 100644 --- a/packages/@uppy/image-editor/package.json +++ b/packages/@uppy/image-editor/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/image-editor", "description": "Image editor and cropping UI", - "version": "3.0.0-beta.3", + "version": "3.0.0-beta.4", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", diff --git a/packages/@uppy/image-editor/src/Editor.tsx b/packages/@uppy/image-editor/src/Editor.tsx index b636d102b4..d8ccb242bf 100644 --- a/packages/@uppy/image-editor/src/Editor.tsx +++ b/packages/@uppy/image-editor/src/Editor.tsx @@ -170,31 +170,31 @@ export default class Editor extends Component< const { i18n, opts } = this.props return ( - + + + + ) } @@ -202,25 +202,25 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } @@ -228,27 +228,27 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } @@ -256,26 +256,26 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + + ) } @@ -283,25 +283,25 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } @@ -309,25 +309,25 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } @@ -335,25 +335,25 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } @@ -361,25 +361,25 @@ export default class Editor extends Component< const { i18n } = this.props return ( - + + + + ) } diff --git a/packages/@uppy/screen-capture/CHANGELOG.md b/packages/@uppy/screen-capture/CHANGELOG.md index fdc012dd2c..aa2ee1d053 100644 --- a/packages/@uppy/screen-capture/CHANGELOG.md +++ b/packages/@uppy/screen-capture/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/screen-capture +## 4.0.0-beta.5 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/screen-capture/package.json b/packages/@uppy/screen-capture/package.json index e2ec589861..1e41ec8903 100644 --- a/packages/@uppy/screen-capture/package.json +++ b/packages/@uppy/screen-capture/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/screen-capture", "description": "Uppy plugin that captures video from display or application.", - "version": "4.0.0-beta.4", + "version": "4.0.0-beta.5", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", diff --git a/packages/@uppy/status-bar/package.json b/packages/@uppy/status-bar/package.json index 80ad101918..ea58c2de97 100644 --- a/packages/@uppy/status-bar/package.json +++ b/packages/@uppy/status-bar/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/status-bar", "description": "A progress bar for Uppy, with many bells and whistles.", - "version": "4.0.0-beta.6", + "version": "4.0.0-beta.7", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", @@ -26,7 +26,7 @@ "url": "git+https://github.com/transloadit/uppy.git" }, "dependencies": { - "@transloadit/prettier-bytes": "^0.3.0", + "@transloadit/prettier-bytes": "^0.3.4", "@uppy/utils": "workspace:^", "classnames": "^2.2.6", "preact": "^10.5.13" diff --git a/packages/@uppy/unsplash/CHANGELOG.md b/packages/@uppy/unsplash/CHANGELOG.md index 10175dd013..3b4fd8d1d8 100644 --- a/packages/@uppy/unsplash/CHANGELOG.md +++ b/packages/@uppy/unsplash/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/unsplash +## 4.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/unsplash/package.json b/packages/@uppy/unsplash/package.json index 0f804527f4..9e1fea9cde 100644 --- a/packages/@uppy/unsplash/package.json +++ b/packages/@uppy/unsplash/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/unsplash", "description": "Import files from Unsplash, the free stock photography resource, into Uppy", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "license": "MIT", "main": "lib/index.js", "type": "module", diff --git a/packages/@uppy/url/CHANGELOG.md b/packages/@uppy/url/CHANGELOG.md index db698894af..a18bcad926 100644 --- a/packages/@uppy/url/CHANGELOG.md +++ b/packages/@uppy/url/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/url +## 4.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/url/package.json b/packages/@uppy/url/package.json index 99ffdd8d82..9eba0c0bc0 100644 --- a/packages/@uppy/url/package.json +++ b/packages/@uppy/url/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/url", "description": "The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", diff --git a/packages/@uppy/utils/package.json b/packages/@uppy/utils/package.json index 92a6286e15..51d2548ce7 100644 --- a/packages/@uppy/utils/package.json +++ b/packages/@uppy/utils/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/utils", "description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.", - "version": "6.0.0-beta.5", + "version": "6.0.0-beta.6", "license": "MIT", "type": "module", "keywords": [ diff --git a/packages/@uppy/webcam/CHANGELOG.md b/packages/@uppy/webcam/CHANGELOG.md index 8474f695d8..f480413f07 100644 --- a/packages/@uppy/webcam/CHANGELOG.md +++ b/packages/@uppy/webcam/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/webcam +## 4.0.0-beta.6 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134) + ## 4.0.0-beta.1 Released: 2024-03-28 diff --git a/packages/@uppy/webcam/package.json b/packages/@uppy/webcam/package.json index 3c7d30b513..0cef293b7f 100644 --- a/packages/@uppy/webcam/package.json +++ b/packages/@uppy/webcam/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/webcam", "description": "Uppy plugin that takes photos or records videos using the device's camera.", - "version": "4.0.0-beta.5", + "version": "4.0.0-beta.6", "license": "MIT", "main": "lib/index.js", "style": "dist/style.min.css", diff --git a/packages/@uppy/xhr-upload/CHANGELOG.md b/packages/@uppy/xhr-upload/CHANGELOG.md index a5cefb6dad..9b8c1de0b2 100644 --- a/packages/@uppy/xhr-upload/CHANGELOG.md +++ b/packages/@uppy/xhr-upload/CHANGELOG.md @@ -1,5 +1,12 @@ # @uppy/xhr-upload +## 4.0.0-beta.4 + +Released: 2024-05-14 +Included in: Uppy v4.0.0-beta.7 + +- @uppy/xhr-upload: introduce hooks similar to tus (Merlijn Vos / #5094) + ## 4.0.0-beta.3 Released: 2024-05-03 diff --git a/packages/@uppy/xhr-upload/package.json b/packages/@uppy/xhr-upload/package.json index 811cea218f..df66e76de0 100644 --- a/packages/@uppy/xhr-upload/package.json +++ b/packages/@uppy/xhr-upload/package.json @@ -1,7 +1,7 @@ { "name": "@uppy/xhr-upload", "description": "Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.", - "version": "4.0.0-beta.3", + "version": "4.0.0-beta.4", "license": "MIT", "main": "lib/index.js", "type": "module", diff --git a/packages/uppy/package.json b/packages/uppy/package.json index 0621271628..d795c8afd3 100644 --- a/packages/uppy/package.json +++ b/packages/uppy/package.json @@ -1,7 +1,7 @@ { "name": "uppy", "description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:", - "version": "4.0.0-beta.6", + "version": "4.0.0-beta.7", "license": "MIT", "main": "index.mjs", "module": "index.mjs", diff --git a/yarn.lock b/yarn.lock index f1d48416da..5ce2c4be3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8369,10 +8369,10 @@ __metadata: languageName: node linkType: hard -"@transloadit/prettier-bytes@npm:^0.3.0": - version: 0.3.2 - resolution: "@transloadit/prettier-bytes@npm:0.3.2" - checksum: 10/63019adce868a821ef87e5676a058a3616aa51933de44e9775ac7d369ef46032a54163e8927837fd9bb64a4b9f410c3d31147f40c756e601d96c18c461aa1030 +"@transloadit/prettier-bytes@npm:^0.3.4": + version: 0.3.4 + resolution: "@transloadit/prettier-bytes@npm:0.3.4" + checksum: 10/abd6b7a12f57d5db3e744cbfa793e1fbb2aa15943b55901882eed8f32fd95cb72a2805db4e8251862192d8ebaa889a696657f46c9cd41347538d377dea731d58 languageName: node linkType: hard @@ -10110,7 +10110,7 @@ __metadata: version: 0.0.0-use.local resolution: "@uppy/compressor@workspace:packages/@uppy/compressor" dependencies: - "@transloadit/prettier-bytes": "npm:^0.3.0" + "@transloadit/prettier-bytes": "npm:^0.3.4" "@uppy/utils": "workspace:^" compressorjs: "npm:^1.2.1" preact: "npm:^10.5.13" @@ -10125,7 +10125,7 @@ __metadata: version: 0.0.0-use.local resolution: "@uppy/core@workspace:packages/@uppy/core" dependencies: - "@transloadit/prettier-bytes": "npm:^0.3.0" + "@transloadit/prettier-bytes": "npm:^0.3.4" "@uppy/store-default": "workspace:^" "@uppy/utils": "workspace:^" lodash: "npm:^4.17.21" @@ -10141,7 +10141,7 @@ __metadata: version: 0.0.0-use.local resolution: "@uppy/dashboard@workspace:packages/@uppy/dashboard" dependencies: - "@transloadit/prettier-bytes": "npm:^0.3.0" + "@transloadit/prettier-bytes": "npm:^0.3.4" "@uppy/google-drive": "workspace:^" "@uppy/informer": "workspace:^" "@uppy/provider-views": "workspace:^" @@ -10433,7 +10433,7 @@ __metadata: version: 0.0.0-use.local resolution: "@uppy/status-bar@workspace:packages/@uppy/status-bar" dependencies: - "@transloadit/prettier-bytes": "npm:^0.3.0" + "@transloadit/prettier-bytes": "npm:^0.3.4" "@uppy/utils": "workspace:^" classnames: "npm:^2.2.6" preact: "npm:^10.5.13"