* 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)
* Dashboard: add `required` option to `metaFields`
Fixes: https://github.com/transloadit/uppy/issues/2892
* use `<form>` element to allow users to use all built-in form features
from the web browser.
* remove `saveOnEnter` hack
The fields are now inside a form, saving on Enter is the default
behavior – and it doesn't short-circuit form validation checks.
* restrictions.requiredMetaFields
* fix documentation of restrictions.requiredMetaFields
* check for required meta fields on upload
* Use detached `<form>` element to avoid nesting `<form>` elements
* fixup! Use detached `<form>` element to avoid nesting `<form>` elements
* Use `cuid` to generate `<form>` `id`
* core: set file size from progress data when null
* core: improve size condition
Co-authored-by: Renée Kooi <renee@kooi.me>
* Move remote file size calculation to uppload success
* Fix file size in test now that we set the size in upload success
* Send bytesUploaded in upload success
* Prioritize bytesUploaded coming from companion
* Format
* Update index.js
Co-authored-by: Renée Kooi <renee@kooi.me>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* Rename Done button to Cancel everywhere
* Add Save button to the top bar of the FileEditor
* Remove Save button from Image Editor toolbar
* fix locale