Commit graph

1770 commits

Author SHA1 Message Date
Antoine du Hamel
0cccb686fd @uppy/utils: improve support of data URI in dataURItoBlob (#3080) 2021-08-09 16:13:04 +02:00
Antoine du Hamel
6cd5309544 @uppy/utils: simplify canvasToBlob (#3080)
The built-in `HTMLCanvasElement#toBlob` is supported everywhere.
2021-08-09 16:12:59 +02:00
Antoine du Hamel
c8606ae5fe @uppy/utils: use private fields in EventTracker (#3080) 2021-08-09 16:12:54 +02:00
Antoine du Hamel
9866fc1f5c @uppy/utils: remove ponyfill for Array#findIndex (#3080)
The built-in method is supported everywhere.
2021-08-09 16:12:51 +02:00
Antoine du Hamel
2c1287fc52 @uppy/utils: simplify getTimeStamp (#3080) 2021-08-09 16:12:47 +02:00
Antoine du Hamel
126984ece3 @uppy/utils: avoid creating throw-away <div> in isDragDropSupported (#3080) 2021-08-09 16:12:47 +02:00
Antoine du Hamel
2178f531a4 @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
Antoine du Hamel
dc5cab4922 @uppy/utils: use private fields in ProgressTimeout (#3080) 2021-08-09 16:12:33 +02:00
Antoine du Hamel
059870a80b @uppy/utils: refactor prettyETA (#3080) 2021-08-09 16:12:23 +02:00
Antoine du Hamel
3626172b0c @uppy/utils: use private fields in RateLimitedQueue (#3080) 2021-08-09 16:12:18 +02:00
Antoine du Hamel
2cdb19a8c5 @uppy/utils: use Array.from insterad of custom utils (#3080) 2021-08-09 16:12:13 +02:00
Antoine du Hamel
65ffbed1a2 @uppy/utils: refactor truncateString (#3080) 2021-08-09 16:12:08 +02:00
Antoine du Hamel
037b6fe8b5 @uppy/xhr-upload: fix import path (#3080) 2021-08-09 16:12:00 +02:00
Antoine du Hamel
0f9709bb10
@uppy/aws-s3: refactor to private fields (#3076) 2021-08-09 15:54:03 +02:00
Antoine du Hamel
b5411ff78c
deps: remove qs-stringify from dependencies (#3077) 2021-08-06 11:03:47 +01:00
Merlijn Vos
1d5ea81efa
Sort Google Drive list by name (#3069) 2021-08-06 11:03:25 +01:00
Merlijn Vos
b7210b1375
Fix webcam mirror option (#3074) 2021-08-06 11:29:23 +02:00
Artur Paikin
472766e48b
UIPlugin fix: prevent Preact replacing contents of body element by using createDocumentFragment (#3072)
* 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
2021-08-06 10:02:11 +01:00
Antoine du Hamel
7f37c60eaa
@uppy/core: use privater properties in UIPlugin (#3073) 2021-08-05 15:42:55 +01:00
Pascal Jufer
281f797d63
Sync and enhance locale de_DE (#3071) 2021-08-04 22:16:57 +01:00
Artur Paikin
f19f885a37 Roll back the CDN urls — v2.0.0-alpha.0 is not on CDN 2021-08-03 13:47:25 +01:00
Artur Paikin
113b627dd0 Release 2021-08-02 22:38:11 +01:00
Artur Paikin
8bcf1c6897 Merge branch 'master' into 2.0 2021-08-02 21:53:05 +01:00
Artur Paikin
1c7ac56d84 validateRestrictions was failing due to being unbound, fixed with arrow function 2021-08-02 21:49:24 +01:00
Artur Paikin
2b52d9f9ab fileSource string is unused 2021-08-02 21:48:36 +01:00
Antoine du Hamel
1d62071b92
@uppy/transloadit: upgrade socket.io-client version (#3065)
* @uppy/transloadit: upgrade `socket.io-client` version

Fixes: https://github.com/transloadit/uppy/issues/2875

* Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files

* fixup! Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files

* fixup! Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files
2021-08-02 20:42:18 +01:00
Antoine du Hamel
d1289d6b9a @uppy/angular: fix uppy dependencies 2021-08-02 16:12:14 +02:00
Antoine du Hamel
86a5572900 @uppy/transloadit: fix tests on v16.x 2021-08-02 16:12:14 +02:00
Antoine du Hamel
d9ff0030a9 @uppy/robodog: fix types 2021-08-02 16:12:14 +02:00
Artur Paikin
2fce581063 Release 2021-08-02 15:11:38 +01:00
Artur Paikin
2f791c1747 @uppy/dashboard,@uppy/status-bar: call core methods directly (#3062)
Instead of passing props with x = uppy.x, pass uppy and call methods on
it directly (no need to use `.bind`).
2021-08-02 16:11:28 +02:00
Artur Paikin
90104e7695
don’t show informer for individual required meta fields errors (#3060) 2021-08-02 12:40:27 +01:00
Antoine du Hamel
9b0d25068d
build: fix building on Node.js v14.x LTS (#3061) 2021-08-02 12:36:25 +01:00
Mikael Finstad
da6d2b93a3
Send sameSite and secure for https cookies (#3063) 2021-08-02 11:59:40 +01:00
Artur Paikin
3b42d0ce8d #showOrLogErrorAndThrow 2021-07-30 15:35:20 +01:00
Antoine du Hamel
05d8234d26 fixup! @uppy/informer: remove dependency to preact-transition-group (#3055) 2021-07-30 16:33:40 +02:00
Antoine du Hamel
4ab06907c3 @uppy/core: fix i18n binding 2021-07-30 15:48:58 +02:00
Artur Paikin
bb1c615dc4 Merge conflict, Editor.js 2021-07-30 14:31:21 +01:00
Artur Paikin
172cc77f63 Merge master 2021-07-30 14:27:21 +01:00
Merlijn Vos
7db4ced76e
Add croppedCanvasOptions to image editor opts (#3037)
* 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>
2021-07-30 14:27:56 +02:00
Antoine du Hamel
2b5b5e18a8
@uppy/companion-client: migrate to private properties (#3057)
* @uppy/companion-client: migrate to private properties

* remove duplicate i18nInit — it’s in BasePlugin

* Revert "remove duplicate i18nInit — it’s in BasePlugin"

This reverts commit 93fb080926.

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-07-30 13:18:57 +01:00
Antoine du Hamel
4ac8c9d39c @uppy/core: move more internals to private properties (#3041) 2021-07-30 14:16:01 +02:00
Artur Paikin
4ca78ab543
Set plugin titles from locale (#3023)
* 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>
2021-07-30 13:02:32 +01:00
Antoine du Hamel
396ebd6f73
@uppy/companion: remove lodash dependency (#3036)
* @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
2021-07-30 12:23:02 +01:00
Antoine du Hamel
defc7b40f8
deps: replace cuid with nanoid (#3053)
Refs: https://github.com/transloadit/uppy/pull/3040#issuecomment-886468554
2021-07-29 17:29:52 +02:00
Artur Paikin
28997bc5c7 Release 2021-07-29 16:14:55 +01:00
Antoine du Hamel
98fd749b62
@uppy/informer: remove dependency to preact-transition-group (#3055)
* @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)
2021-07-29 17:13:13 +02:00
Artur Paikin
2e9fbad24d Update en_US.js 2021-07-29 16:04:20 +01:00
Artur Paikin
16730c8f4b remove window reference — failing in Node.js 2021-07-29 16:04:08 +01:00
Renée Kooi
dd55949b79
Remove backwards compatibility hacks in locales (#2969)
* Remove poweredBy2 hack

* Remove exceedsSize2 hack

* tick off poweredBy/exceedsSize task

* do not lint generated files

* fix tests
2021-07-29 15:09:25 +02:00