Commit graph

8322 commits

Author SHA1 Message Date
Artur Paikin
08cac3bebc master --> main 2021-08-03 15:34:24 +01:00
Artur Paikin
60828b8246
Update README.md 2021-08-03 13:56:08 +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
Antoine du Hamel
4bfa5e9d26 fixup! Merge branch 'master' into 2.0 2021-08-02 23:12:00 +02: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
1666f89180 endtoend: remove npm warning on Node.js v14.x 2021-08-02 22:11:25 +02:00
Antoine du Hamel
4497557a3c deps: update package-lock.json 2021-08-02 22:02:36 +02: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
Artur Paikin
e8f903e78a Merge branch 'master' of https://github.com/transloadit/uppy into master 2021-08-02 15:19:20 +01:00
Antoine du Hamel
4bbd3b97b6 build: Add @babel/plugin-proposal-nullish-coalescing-operator babel plugin
Forces Babel to transplile `??` to ES6 syntax.
2021-08-02 16:12:14 +02:00
Artur Paikin
0760be8cc4 end2end: upgrade create-react-app to 4.0.3 2021-08-02 16:12:14 +02: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
0b90925276 hide Box from examples for now 2021-08-02 14:58:00 +01:00
Artur Paikin
f26511ab29
Update app.html 2021-08-02 13:26:34 +01:00
Artur Paikin
72810525f5
Update app.es6 2021-08-02 13:26:02 +01: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
c2df2b6032
Update app.es6
//cc @aduh95
2021-07-30 17:00:10 +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
Artur Paikin
d8190fa6d3 Update locale: remove unused strings 2021-07-29 13:31:14 +01:00
Antoine du Hamel
56b84dfec7
Dashboard: add required option to metaFields (#2896)
* 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`
2021-07-29 13:15:36 +01:00
Antoine du Hamel
8ac63d43e0
@uppy/core: mark state as deprecated (#3044) 2021-07-29 10:50:00 +01:00
Enrique Mejia
d9431fc035
core: set file size from progress data when null (#2778)
* core: set file size from progress data when null

* core: improve size condition

Co-authored-by: Renée Kooi <renee@kooi.me>

* Move remote file size calculation to uppload success

* Fix file size in test now that we set the size in upload success

* Send bytesUploaded in upload success

* Prioritize bytesUploaded coming from companion

* Format

* Update index.js

Co-authored-by: Renée Kooi <renee@kooi.me>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-07-28 23:40:01 +01:00
Mikael Finstad
605fb53653
Add Box (#3004)
* Add Box

to companion, uppy examples and webpage

* update box dev notes
2021-07-28 23:39:23 +01:00
Antoine du Hamel
836a731d73
@uppy/core: avoid binding methods to instance in constructor (#3043)
Core classes methods are not suited to be used as eventHandlers, I don't
think it makes sense to have them bound.
2021-07-28 23:38:58 +01:00
Antoine du Hamel
2d6b8053e4 @uppy/core: fix conflicts 2021-07-28 17:31:28 +02:00
Merlijn Vos
112cdb1f49
Support multiple messages in informer (#3017)
* Support multiple messages in informer

* Fix informer duplicate file messages for folders

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-07-28 14:59:51 +01:00