* Pass createDocumentFragment instead of the targetElement to Preact, so it doesn’t destroy the contents of targetElement
* remove replaceTargetContent
* also remove replaceTargetContent from docs and website
* Add `croppedCanvasOptions` & fix types
* Update website/src/docs/image-editor.md
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update website/src/docs/image-editor.md
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update website/src/docs/image-editor.md
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* What is happening "*"
* Instead of re-creating i18nInit, we could just make it part of the BasePlugin
* set plugin title and allow changing it from locale
* remove i18nInit method, since we now include it in BasePlugin
* All provider titles should come from locale
* Update en_US.js
* make translator private
//cc @aduh95
* init locale after calling setOptions
* Update en_US.js
* Update packages/@uppy/core/src/BasePlugin.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update packages/@uppy/core/src/index.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Bind `i18n` functions
* Remove duplicate i18nInit — it’s in BasePlugin already
* fix formatting
* fix name
* Update en_US.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* @uppy/companion: remove `lodash` dependency
* @uppy/companion: test the transpiled files instead of source
* @uppy/companion: rollback to using `lodash.merge`
* Revert "@uppy/companion: test the transpiled files instead of source"
This reverts commit 5ffd5786f1.
* @uppy/companion: remove Node.js v10 and v12 from the CI, add v16
* @uppy/companion: remove Node.js v16.x from the CI
* Revert "@uppy/companion: remove Node.js v10 and v12 from the CI, add v16"
This reverts commit 9dca738f2a.
* Remove optional chaining to keep Node.js v12 support
* @uppy/informer: remove dependency to `preact-transition-group`
This module was breaking `create-react-app`. Instead, it vendors in the
original package revelevant code.
* Remove `prop-types` (we don't actually use prop types)