* @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
* '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`
* 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>
* 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>
* Remove IE polyfills and special casing
* dashboard: remove `resize-observer-polyfill`
* deps: remove url-parse to use global `URL` instead
* Update documentation for browser support
* Add a migration guide
* Update e2e test platforms
* Remove polyfills from examples and add those missing in CDN bundle
* Use Node.js v16.x on CI because of `AbortController`
* Update bundle builder to produce two builds: `uppy.js` without polyfills, `uppy.legacy.js` with polyfills.
* Upgrade create-react-app deps
* remove null coalescing operator as it's not supported by the build chain
* disable Safari testing (for now)
Co-authored-by: Renée Kooi <renee@kooi.me>
* temporarily add cheerio-select-tmp to devDependencies to fix tests
* xhr: change default name depending on whether `bundle` is set
Fixes: https://github.com/transloadit/uppy/issues/782
* Update docs
* Expose drag-drop events
* we need to call DragDrop.renderArrowSvg without this, since it’s now static
* Update docs based on feedback
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* add more granular image rotation control
Fixes: https://github.com/transloadit/uppy/issues/2636
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* add input-range-scss dependency
* Modify the rotation slider
- Better visual styles for the slider
- Position a toggle in the center of the slider
- Make it work better on moblile
- 90° rotation: rotate counterclockwise
- 90° rotation: update icon
* Use black background for the canvas when rotating (instead of gray)
* Use smaller range for granular rotation input
* Optimize event listeners
* Fix styles and state unsyncronisation
* Update package-lock.json
Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>