Commit graph

12 commits

Author SHA1 Message Date
Artur Paikin
f455ea59e8
deprecate multipleResults option (#2996) 2021-07-08 16:12:24 +01:00
Merlijn Vos
ecec3d3213
Split Plugin into BasePlugin and extended UIPlugin (#2944) 2021-06-18 13:23:16 +02:00
Kevin van Zonneveld
764c2ccada
Update Linter (#2796)
* relocate .vscode

* Switch to transloadit linter

* Update .eslintrc.json

* autofix code

* unlink and install eslint-config-transloadit@1.1.1

* Change 0 to "off"

* Don't change 'use strict'

* Do not vertically align

* disable key-spacing

* add import/no-extraneous-dependencies per package

* add more react/a11y warnings

* Revert "autofix code"

This reverts commit 14c8a8cde8.

* add import/no-extraneous-dependencies per example and main package

* autofix code (2)

* Allow devDependencies in ./bin

* Change import/no-extraneous-dependencies to warn again

* upgrade linter

* Set import/no-extraneous-dependencies to warn
2021-03-15 16:25:17 +00:00
Renée Kooi
be66c47deb
Actually check types (#1918)
* types: stronger typings

* Remove remaining `declare module` things for uppy.use

* Format types standard-style-like

* Add `target` properties to plugin typings

* Add type for `replaceTargetContent` option

* xhr-upload: allow lowercase method

* opt in to stricter typechecks

* use the strictly typed version in all typings tests

* endtoend: use strict types in typescript test

* Add some comments to the typings file so IDEs will warn about untyped use()

* informer: remove obsolete option from typings

* react: generate prop types based on actual options types

* react: update types

* react: fix import in typings test

* companion-client: add `pluginId` property to ProviderOptions type

Co-Authored-By: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>

* core: remove some `any` types

* *: add locale string types

* *: generate locale typings

* core: fix LocaleStrings<> type

* dashboard: add locale string type tests

* tus: inherit options typings from tus-js-client

* transloadit: add missing options types

* ci: do the required build steps before testing typings

* Support TokenStorage in types, add `title?: string` options

* form: update typings

* types: put TokenStorage type in dependents

* Document Uppy.StrictTypes

* if we pin at least we should use the latest

* Allow document.querySelector

I think it's a eslint-plugin-compat bug that it's marking querySelector
as not available in Android Chrome 78.

Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
2020-02-12 16:22:09 +01:00
Renée Kooi
aee4dee171
fixes flagged by LGTM.com (#1876)
* aws-s3-multipart: fix typo

This was doing a weird thing and probably causing more cancellation
bugs.

Flagged by lgtm.com

* form: fix comparison

* companion-client: fix use strict directive
2019-10-11 13:42:30 +02:00
Artur Paikin
45567c0b13
Try/catch JSON.parse, since the prev result can be empty or not json; set updatedResult to an empty array if it’s not an array (#1800) 2019-08-30 14:57:41 +03:00
Artur Paikin
ae49cefd93
form: exclude own metadata, append result instead of overwriting (#1686)
* exclude meta the the Form plugin itself has added

* append new result to the previous one, instead of overwriting it

* add `replaceResultInFormWithNew` — replace result input value by default, with option to append

* talk about `replaceResultInFormWithNew`

* replaceResultInFormWithNew --> multipleResults
2019-07-03 18:21:06 +03:00
Renée Kooi
e6c52f7681
Use opts.id as the plugin ID for all plugins, fixes #1674 2019-06-19 09:58:14 +02:00
Renée Kooi
980210f76c
Add VERSION properties to all plugins.
And remove the proposal-object-rest-spread plugin because it is built
into preset-env now.
2019-05-27 16:53:47 +02:00
Renée Kooi
59bfbce94a
form: Disable form submit buttons while upload is in progress with triggerUploadOnSubmit 2018-11-15 13:19:16 +01:00
Renée Kooi
72689d01ac
Export Plugin class from @uppy/core. 2018-06-28 12:20:21 +02:00
Renée Kooi
f5bd557e65
Move Form to @uppy/form. 2018-06-14 16:31:19 +02:00