Commit graph

63 commits

Author SHA1 Message Date
Andy Chong
59bfaf0d20
react/drag-drop: add a type test and document shared props (#2003)
* Update react-dragdrop.md

DragDrop component only accept `uppy` and `locale` props according to the type declared.
```
import { Uppy, Locale } from './CommonTypes';

export interface DragDropProps {
  uppy: Uppy;
  locale?: Locale;
}

/**
 * React component that renders an area in which files can be dropped to be
 * uploaded.
 */
declare const DragDrop: React.ComponentType<DragDropProps>;
export default DragDrop;```

* drag-drop: accept a number for width/height

* docs: add back dragdrop props

* docs: use the same option style as previously [skip ci]

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-02-24 15:13:01 +01:00
Artur Paikin
2c98271103 Release 2020-02-14 23:17:48 +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
Artur Paikin
07e9909bfc Release 2020-02-12 12:24:41 +01:00
Artur Paikin
77ef346cb0 Release 2020-02-11 21:17:04 +01:00
Renée Kooi
2b91a96c95
Release 2020-01-15 16:39:45 +01:00
Pankaj Kumar
627b2e4df9 componentWillReceiveProps logic moved to componentDidUpdate (#1999) 2020-01-06 14:48:50 +01:00
Renée Kooi
18180d5778
Release 2019-12-16 12:53:23 +01:00
Renée Kooi
c370dba0b6
Release 2019-11-04 10:56:06 +01:00
Renée Kooi
aea91d00db
Release 2019-10-14 16:49:30 +02:00
Renée Kooi
4e32e61d7c
Release 2019-10-09 21:00:46 +02:00
Artur Paikin
056a7114a1 Release 2019-08-30 15:24:04 +03:00
Renée Kooi
10bc79574e
lerna link convert (#1730)
* lerna link convert

* ci: use npm ci

* update lockfile

* companion: set `bin` to source file

Since typescript doesn't actually transform anything, we can just use
this.

In a next major version we could set `noEmit: true` in the tsconfig and
stop publishing `lib`.

* companion: do chmod +x on start-server.js

* build: remove obsolete lerna config

* build: explicitly install latest versions when building e2e tests for ci

* Remove versions from private packages

* fix regex

* try fix

* ci: force npm to install to endtoend folder

* ci: fold up e2e build output

* Update netlify deploy preview command

* Remove mentions of npm run bootstrap

* Edit .github/CONTRIBUTING.md instead

* companion: add proxy executable

* companion: fix publish

* Downgrade jest to appease create-react-app
2019-07-19 12:16:36 +02:00
Artur Paikin
bd2beedcff Release 2019-07-18 17:21:42 +02: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
Artur Paikin
28d235fe2f Release 2019-06-05 19:07:20 +03: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
Artur Paikin
5c9e1a836d Release 2019-05-17 19:17:03 +03:00
Renée Kooi
1ad322497f
Release 2019-05-08 15:27:15 +02:00
Renée Kooi
4cd5a3be0f
react: add thumbnailWidth prop type for Dashboard components, fixes #1524 2019-05-08 11:02:03 +02:00
Artur Paikin
25d4b3678b Release 2019-04-25 23:03:25 +03:00
Artur Paikin
27424e37c7 update peerDependencies of @uppy/core to ^1.0.0 2019-04-25 22:50:05 +03:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Artur Paikin
7ae8af44ab Release 2019-04-04 19:31:09 +03:00
kokokenada
702b29ecbc add showSelectedFiles which was missing from type definition 2019-03-09 19:28:32 -05:00
Artur Paikin
27899d944f Release 2019-03-08 20:47:42 +03:00
Artyom Bochkarev
6f0e5d7f77
Add trigger field 2019-03-06 12:24:21 +01:00
Renée Kooi
fd6734be4d
docs: update webpack homepage URLs 2019-03-04 13:43:37 +01:00
Artur Paikin
f94bc77deb Publish
- uppy@0.30.2
 - @uppy/aws-s3-multipart@0.30.2
 - @uppy/aws-s3@0.30.2
 - @uppy/companion-client@0.28.2
 - @uppy/companion@0.17.2
 - @uppy/core@0.30.2
 - @uppy/dashboard@0.30.2
 - @uppy/drag-drop@0.30.2
 - @uppy/dropbox@0.30.2
 - @uppy/file-input@0.30.2
 - @uppy/form@0.30.2
 - @uppy/golden-retriever@0.30.2
 - @uppy/google-drive@0.30.2
 - @uppy/informer@0.30.2
 - @uppy/instagram@0.30.2
 - @uppy/progress-bar@0.30.2
 - @uppy/provider-views@0.30.2
 - @uppy/react@0.30.2
 - @uppy/redux-dev-tools@0.30.2
 - @uppy/robodog@0.30.2
 - @uppy/status-bar@0.30.2
 - @uppy/store-default@0.28.2
 - @uppy/store-redux@0.28.2
 - @uppy/thumbnail-generator@0.30.2
 - @uppy/transloadit@0.30.2
 - @uppy/tus@0.30.2
 - @uppy/url@0.30.2
 - @uppy/utils@0.30.2
 - @uppy/webcam@0.30.2
 - @uppy/xhr-upload@0.30.2
2019-02-22 22:43:58 +03:00
Artur Paikin
a5c39e9a35 Release 2019-02-21 19:09:22 +03:00
Artur Paikin
4dcef4c3b9 Release 2019-02-15 23:55:18 +03:00
Artur Paikin
ea0befe4ce update peerDependencies before release 2019-02-15 22:09:12 +03: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
Artur Paikin
3ddf4c7548 Release 2019-01-15 19:21:04 +03: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
Artur Paikin
c68f2c7e68 Release 2018-11-29 23:36:16 +03:00
Artur Paikin
faefe0d5f0 @uppy/core peerDependency --> ^0.29.0 2018-11-29 21:34:56 +03: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
Artur Paikin
47a68a6148 Release 2018-10-31 19:30:39 +03:00
Artur Paikin
09b6ca0c92 update plugin peerDependencies to "@uppy/core": "^0.28.0" before release 2018-10-31 15:47:27 +03:00
Artur Paikin
113d6f09bb Release
- uppy@0.27.5
 - @uppy/aws-s3-multipart@0.27.4
 - @uppy/aws-s3@0.27.4
 - @uppy/core@0.27.3
 - @uppy/dashboard@0.27.5
 - @uppy/drag-drop@0.27.4
 - @uppy/dropbox@0.27.4
 - @uppy/file-input@0.27.4
 - @uppy/form@0.27.4
 - @uppy/golden-retriever@0.27.4
 - @uppy/google-drive@0.27.5
 - @uppy/informer@0.27.4
 - @uppy/instagram@0.27.5
 - @uppy/progress-bar@0.27.4
 - @uppy/provider-views@0.27.4
 - @uppy/react@0.27.5
 - @uppy/redux-dev-tools@0.27.4
 - @uppy/status-bar@0.27.4
 - @uppy/thumbnail-generator@0.27.4
 - @uppy/transloadit@0.27.5
 - @uppy/tus@0.27.5
 - @uppy/url@0.27.5
 - @uppy/webcam@0.27.4
 - @uppy/xhr-upload@0.27.4
2018-09-27 16:31:35 -04:00
Artur Paikin
4819ff33ce Release
- uppy@0.27.4
 - @uppy/aws-s3-multipart@0.27.3
 - @uppy/aws-s3@0.27.3
 - @uppy/companion@0.14.4
 - @uppy/core@0.27.2
 - @uppy/dashboard@0.27.4
 - @uppy/drag-drop@0.27.3
 - @uppy/dropbox@0.27.3
 - @uppy/file-input@0.27.3
 - @uppy/form@0.27.3
 - @uppy/golden-retriever@0.27.3
 - @uppy/google-drive@0.27.4
 - @uppy/informer@0.27.3
 - @uppy/instagram@0.27.4
 - @uppy/progress-bar@0.27.3
 - @uppy/provider-views@0.27.3
 - @uppy/react@0.27.4
 - @uppy/redux-dev-tools@0.27.3
 - @uppy/status-bar@0.27.3
 - @uppy/thumbnail-generator@0.27.3
 - @uppy/transloadit@0.27.4
 - @uppy/tus@0.27.4
 - @uppy/url@0.27.4
 - @uppy/webcam@0.27.3
 - @uppy/xhr-upload@0.27.3
2018-09-18 19:46:24 -04:00
Renée Kooi
b343d8ed9e
Release
- uppy@0.27.3
 - @uppy/aws-s3-multipart@0.27.2
 - @uppy/aws-s3@0.27.2
 - @uppy/companion-client@0.27.2
 - @uppy/companion@0.14.3
 - @uppy/core@0.27.1
 - @uppy/dashboard@0.27.3
 - @uppy/drag-drop@0.27.2
 - @uppy/dropbox@0.27.2
 - @uppy/file-input@0.27.2
 - @uppy/form@0.27.2
 - @uppy/golden-retriever@0.27.2
 - @uppy/google-drive@0.27.3
 - @uppy/informer@0.27.2
 - @uppy/instagram@0.27.3
 - @uppy/progress-bar@0.27.2
 - @uppy/provider-views@0.27.2
 - @uppy/react@0.27.3
 - @uppy/redux-dev-tools@0.27.2
 - @uppy/status-bar@0.27.2
 - @uppy/thumbnail-generator@0.27.2
 - @uppy/transloadit@0.27.3
 - @uppy/tus@0.27.3
 - @uppy/url@0.27.3
 - @uppy/utils@0.27.1
 - @uppy/webcam@0.27.2
 - @uppy/xhr-upload@0.27.2
2018-09-03 16:00:24 +02:00