Commit graph

1750 commits

Author SHA1 Message Date
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
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
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
Antoine du Hamel
e0b1c04809
@uppy/core: move event emitter to private properties (#3042) 2021-07-28 14:54:50 +01:00
Antoine du Hamel
4017033a32
@uppy/core: do not expose plugins property (#3045)
* @uppy/core: do not expose `plugins` property

* fixup! @uppy/core: do not expose `plugins` property
2021-07-28 14:37:09 +01:00
Antoine du Hamel
3bbddf8ed7
@uppy/core: detach event listeners on close (#3035)
Fixes: https://github.com/transloadit/uppy/issues/3026
2021-07-28 14:36:45 +01:00
Antoine du Hamel
625ba31cd3 meta: fix package.json imports to be inlined by Babel (#3047)
Using `babel-plugin-inline-package-json`.
2021-07-26 10:44:16 +02:00
Antoine du Hamel
a166c462ea
meta: fix package.json imports to be inlined by Babel (#3047)
Using `babel-plugin-inline-package-json`.
2021-07-26 10:39:48 +02:00
Antoine du Hamel
9a46b0d2da
@uppy/transloadit: refactor to use private properties (#3019) 2021-07-21 17:38:24 +02:00
Antoine du Hamel
4d77b29515 @uppy/core: use private fields (#3013)
This mostly reverts commit f2d30420f3.
2021-07-21 17:25:02 +02:00
Artur Paikin
f20330aee9
Dashboard: rename Done to Cancel, add Save to Image Editor (#3033)
* Rename Done button to Cancel everywhere

* Add Save button to the top bar of the FileEditor

* Remove Save button from Image Editor toolbar

* fix locale
2021-07-21 14:07:42 +01:00
Merlijn Vos
277b989316
Tweak breadcrump styling (#3030)
- It's now slightly more obvious the breadcrumps are links
- The active folder looks more active and can't be clicked again
- Fix eslint warnings
2021-07-21 13:48:30 +02:00
Merlijn Vos
f01538ba41
Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
Merlijn Vos
6d2405da12
Call upload-started for every file instead of all at once in xhr-upload (#3005) 2021-07-20 12:47:13 +02:00
Pascal Jufer
03d3cbc45d
Update de_DE.js (#3012)
* Update de_DE.js

* Update de_DE.js
2021-07-19 12:49:17 +01:00
Renée Kooi
34f08cdb5f
Fix lint warnings in bin/locale-packs.js (#3028) 2021-07-19 12:39:08 +02:00