- Fix upload by calling `Provider.initPlugin` in the `@uppy/unsplash` class
- Tweak styling for author and file size in dashboard.
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Only handle drag events with files
* Added modification to drag-drop package as well
* Use some() instead of find() for broader browser support
* `dataTransfer.types` is not a real array in IE10
* introduce canHandleRootDrop, so we can check if dragged items are supported by some plugin
* drag-drop should check for allowNewUpload
* refactor and simplify
* expose events for Dashboard too
* move event handler call to the bottom
Co-authored-by: Renée Kooi <renee@kooi.me>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* add stylelint with stylelint-config-standard
* autofix style issues
* fix more linting issues
* add stylelint-scss
* fix two more
* add stylelint-config-rational-order and autofix order
https://github.com/constverum/stylelint-config-rational-order
* @uppy/dashboard: fix metafield form validation
Browsers without support for the HTML `form` attribute would misbehave,
making it impossible to validate the form at all, and potentially validate an
unrelated upper form if users are embeding Uppy inside a a `<form>`.
Fixes: https://github.com/transloadit/uppy/issues/3111
* Add comments
* Fix docs and types
* enforce some eslint rules
* enforce accessibility linter rules
* harden lint rules with only 1 or 2 warnings
* fix remaining rules with less than 3 warnings
* fix e2e tests
* fix remaining rules with less than 4 warnings
* fix remaining rules with less than 6 warnings
* fix `shuffleTaglines`
* fix companion build
- Create and call `onUnmount` in `UIPlugin` for plugins that require clean up
- Update webcam `stop` to clean up when already recording
- Update "Writing plugins" docs
- Move `onMount` and `onUnmount` from `BasePlugin` into `UIPlugin`
- Update types
* 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
* 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
* 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`
* 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