Commit graph

22 commits

Author SHA1 Message Date
Renée Kooi
8c826313b6
A few docs things (#2371) 2020-07-29 12:17:27 +02:00
Renée Kooi
ab3d7cb067
react: fix typescript proptypes for DashboardModal, fixes #2124 (#2136) 2020-03-16 15:22:03 +01: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
Pankaj Kumar
627b2e4df9 componentWillReceiveProps logic moved to componentDidUpdate (#1999) 2020-01-06 14:48:50 +01: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
Sagar Jain
1b3d5df5c5 updated PR as per comments from review 2019-05-27 19:46:30 +05:30
Sagar Jain
275bb69f61 dashboard react component prop typings updated 2019-05-25 12:43:09 +05:30
Renée Kooi
4cd5a3be0f
react: add thumbnailWidth prop type for Dashboard components, fixes #1524 2019-05-08 11:02:03 +02:00
kokokenada
702b29ecbc add showSelectedFiles which was missing from type definition 2019-03-09 19:28:32 -05:00
Artyom Bochkarev
6f0e5d7f77
Add trigger field 2019-03-06 12:24:21 +01:00
Renée Kooi
097c6efccc
Merge pull request #1247 from transloadit/feature/react-uppy-change
react: Allow changing instance in `uppy` prop
2019-01-28 10:57:52 +01:00
Matthias Bohlen
d3d86555f0 Make "target" prop optional in Typescript. 2019-01-27 11:17:09 +01:00
Renée Kooi
53a362ecd8
Add back componentWillUnmount 2019-01-21 15:12:30 +01:00
Renée Kooi
50a24ffba4
react: Allow changing instance in uppy prop 2019-01-21 15:05:25 +01:00
Renée Kooi
8a8e00da2f
Formatting for @uppy/react types 2018-12-20 14:52:58 +01:00
Renée Kooi
1a0878a851
Merge pull request #1131 from mattes3/master
Make Uppy's React components usable from Typescript
2018-12-10 15:50:12 +01:00
Renée Kooi
c1594eb0f9
react: Allow Dashboard height to accept a string with unit 2018-11-12 10:54:03 +01:00
Matthias Bohlen
421441824a Add Typescript types for Uppy's React components. 2018-11-04 18:15:29 +01:00
craigcbrunner@gmail.com
fbf2b33c24 Allowing width on dashboard to accept a string for 100% 2018-11-02 20:44:05 -07:00
Renée Kooi
72689d01ac
Export Plugin class from @uppy/core. 2018-06-28 12:20:21 +02:00
Artur Paikin
356585f4af update to status-bar and xhr-upload in: tests, website, dependencies, examples 2018-06-21 16:20:55 -04:00
Renée Kooi
c9b266ade1
Move React components to @uppy/react package. 2018-06-18 10:14:08 +02:00