* @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
* 'main' of https://github.com/transloadit/uppy:
Changelog for 1.31.0 and patches
Strictly type uppy events (#3085)
Create `onUnmount` in `UIPlugin` for plugins that require clean up (#3093)
Companion improve logging (#3103)
Fix `editFile` locale usage (#3108)
- 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
* Add first basic test for aws-s3-multipart
* Add another test for GH actions run
* Add whatwg-fetch to aws-s3-multipart package.json
This is to satisfy linter errors, and the other s3 plugin
does this as well
* Adding more tests
* More test progress
* Tests working with nock
* Add another test, for part uploaded event
* Remove spec and refactor to beforeEach
* S3 multipart batch presign working...in theory
* Working batching and tests
* Min needed for presign batch functionality
* Fix lint issues
* Fix syntax error in companion
* Add companion batch presign endpoint
* Improve tests
* Fix each -> forEach
* Remove .prettierrc
* Adding docs and allow for headers with batch prepare
* Review fixes
* Rename prepareUploadPart to prepareUploadParts and use breaking changes
to batch presign URLs there.
* Get rid of unnecessary batchPartPresign and minNeededForPresignBatch
options. Use Math.ceil(limit / 2) for min needed instead.
* Fix up tests.
* Fix up type tests.
* Update documentation.
* Review fixes
* Change _ private methods to use # syntax
* Minor code and docs improvements
* Change Promise.resolve() microtasks to async/await
* 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>
* 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`
We can now use `Object.fromEntries`, `Object.values`, and `Symbol`.
Also changes polyfill suggestion for legacy browsers to use `core-js`
which includes almost all we need and more.
* Force Uppy initialization with new keyword, remove run()
* update some types
* update docs and examples
* Update packages/@uppy/core/src/index.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update packages/@uppy/core/types/index.d.ts
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* add new in tests
* Move all types to ESM syntax and fix all issues
* Add back e2e build script and revert uppy docs commit
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
* remove deprecated serverHeaders in favour of companionHeaders
* remove TL_UPPY_SERVER and exports.UPPY_SERVER
@kvz @goto-bus-stop ok to do this already, right?
* master: (23 commits)
A bit of polish (#2986)
Companion: Fix typescript error
Companion: Fix invalid referrer crashing the process
Publish 1.30 blog post
Release
Build: Companion needs to be built before locale-pack
Release
Fix build: locale-pack first, integrations second
changelog for 1.30
Release
Update package.json
Only log info if debug is true (#2855)
build(deps): bump prismjs from 1.23.0 to 1.24.0 (#2971)
Angular Integration (#2871)
ci: don't run markdown tests in type tests
Add types for `uppy.once` method (#2965)
build: lint fixes in build scripts
Fix typo in docs/progressbar.md (#2962)
Document `uppy.once` in `docs/uppy.md` (#2960)
Add `props` example to docs/vue.md (#2959)
...
* Only log info if debug is true
* Add option logClientVersion
defaults to true
* Update companion.md
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>