* 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>
* 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>
* 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)
...
* 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>
* use cors module instead of custom cors logic #2762
- adds support for regex COMPANION_CLIENT_ORIGINS_REGEX
- encapsulate custom cors header merge logic in own middleware
- pull out non cors logic from middleware
- unit test the cors middleware
* fix capitalization
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>