Commit graph

2393 commits

Author SHA1 Message Date
Lars Fernhomberg
8985283572
Disable drop state for non-files (#2449)
* Only handle drag events with files

* Added modification to drag-drop package as well

* Use some() instead of find() for broader browser support

* `dataTransfer.types` is not a real array in IE10

* introduce canHandleRootDrop, so we can check if dragged items are supported by some plugin

* drag-drop should check for allowNewUpload

* refactor and simplify

* expose events for Dashboard too

* move event handler call to the bottom

Co-authored-by: Renée Kooi <renee@kooi.me>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-10-20 17:01:30 +01:00
Antoine du Hamel
01d7ea13e9
meta: use Yarn v3 instead of npm (#3237)
* meta: use Yarn v3 instead of npm

* Update CONTRIBUTING.md to fix linter errors

* remove remaining npm commands

* Update deps
2021-10-20 15:16:59 +02:00
Artur Paikin
01158d7445
e2e tests: Move transloadit2 test into transloadit, remove the former (#3271)
* move transloadit2 test into transloadit, remove the former

* Update endtoend-build-tests

* Revert "move transloadit2 test into transloadit, remove the former"

This reverts commit ff25d4b8cd.

* Revert "Update endtoend-build-tests"

This reverts commit 723f48fc03.

* rename transloadit2 to transloadit-assembly-options

* timeout option is nested now https://webdriver.io/docs/api/element/waitForExist/
2021-10-19 18:44:35 +01:00
Refik ÖNAL
ecc376e1a1
Update "AWS S3" to rename master branch to main (#3266) 2021-10-18 09:07:03 +02:00
Artur Paikin
b8b4127bd5 Release 2021-10-14 21:58:29 +01:00
Antoine du Hamel
55e0ffd04a
Add retext to markdown linter (#3024)
* remark-lint-uppy: use `retext` to improve doc syntax and grammar

* WIP: start fixing fixing linter errors

* Remove `retext-passive` as I don't see what's wrong with passive voice

* Remove URL plugin, add emphasis/strong marker plugin

* Fix remark settings to avoid conflicts

* WIP: more auto-fixes

* remark-simplify: allow `option`

* zoom.md

* url.md

* vue.md

* tus.md

* webcam.md

* xhrupload.md

* writing-plugins

* thumbnail-generator

* svelte

* react-dragdrop

* stores

* do not over simplify

* statusbar

* robodog

* robodog-upload

* robodog-picker

* robodog-form

* robodog-dashboard

* redux

* privacy

* uppy.md

* transloadit.md

* react-native

* react-initializing

* react-fileinput

* providers

* progressbar

* plugins

* plugin-common-options

* onedrive

* locales

* instagram

* informer

* index

* google-drive

* golden-retriever

* form

* fileinput

* facebook

* dropbox

* drop-target

* dragdrop

* remark-lint-no-unneeded-full-reference-link

* Try to setup unified-message-control

* Upgrade deps

* Fix collapsed link references with inline code

* Revert "remark-lint-no-unneeded-full-reference-link"

This reverts commit ca375f463b771bc81d0868f4d84f5979823cfc0a.

* remark-lint-uppy: add missing `"main"` field

* Update package-lock.json

* add disable comments

* fixup! xhrupload.md

* writing-plugins

* unsplash

* tus

* stores

* migration-guide

* dashboard

* community-projects

* box

* integration_help

* blog posts

* companion

* aws-s3

* aws-s3-multipart

* remark-lint-uppy README

* website/inject

* BUNDLE-README

* READMEs

* architecture

* move Remark settings to the plugin

* add `listItemIndent` setting

* list indent fix

* fix ignored files

* revert changelog changes

* fixup! architecture

* Revert changes in ignored files

* Remove unnecessary HTML tags from READMEs
2021-10-14 16:10:45 +02:00
Antoine du Hamel
4c48e501ee
Revert "Remove broken link in plugin_list.ejs (#3166)" (#3247)
The link doesn't look broken to me.

This reverts commit 44ea88a7ca.
2021-10-07 15:11:21 +01:00
Antoine du Hamel
1eb317ba3a Release 2021-10-06 15:55:29 +02:00
YukeshShr
44ea88a7ca
Remove broken link in plugin_list.ejs (#3166) 2021-10-06 15:31:10 +02:00
Merlijn Vos
1f8a6d66ba
Improve docs on redux store integration (#3227) 2021-10-06 15:29:22 +02:00
Erlan Kotov
6becd1191d
Add info about include in the Dashboard (#3236) 2021-10-06 00:16:51 +01:00
Ikko Ashimine
a3b35f03bd
docs: fix typo in companion.md (#3240)
relevent -> relevant
2021-10-05 16:05:15 +01:00
Merlijn Vos
0ef42d1ff7
Expose @uppy/drop-target events (#3238) 2021-10-05 17:04:43 +02:00
Merlijn Vos
b7559acd7c
Make @uppy/unsplash production ready (#3196)
Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-10-01 16:31:58 +02:00
Merlijn Vos
e435f4a917
Retry prepareUploadParts on fail for @uppy/aws-s3-multipart (#3224)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2021-10-01 16:31:00 +02:00
Mikael Finstad
12705e769f
Default allow headers (#3167)
* refactor cors middleware to avoid duplicates

* Make more ACAH headers default

Add the following headers to access-control-allow-headers by default:
Authorization, Origin, Content-Type, Accept
They are needed for basic operation. See https://github.com/transloadit/uppy/issues/3021
therefore also remove custom middlewares in examples and standalone

* Update outdated readme for S3

AWS now requires JSON instead of XML format

* Update packages/@uppy/companion/src/server/middlewares.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update packages/@uppy/companion/src/server/middlewares.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* fix review comments

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 16:37:23 +07:00
Mikael Finstad
1ae19a28c1
Make uploadUrls recommended (#3182)
* Make uploadUrls recommended

- warn on startup if uploadUrls is not specified as not specifying it is a security risk
- improve docs to make it more clear why uploadUrls should be specified (say that uploadUrls is required even though it is not, due to backward compatibility)
- no longer require_tld (it gives a false security) - fixes #2831

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* remove `example: []`

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 16:31:10 +07:00
Dani Latorre
8b8783baca
Add support for opts.headers as a function in @uppy/tus (#3221) 2021-09-29 13:51:00 +02:00
Antoine du Hamel
d69031524c
@uppy/core: move Uppy class to its own module (#3225)
* @uppy/core: move `Uppy` class to its own module

Fixes: https://github.com/transloadit/uppy/issues/3220

* Rename snapshot file

* Update docs

* Update website/src/_posts/2021-08-2.0.md

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* Update migration guide

* Do not bundle preact with non-UI plugin packages

Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2021-09-28 19:04:33 +02:00
Murderlon
b3b68c0777
Release 2021-09-20 11:51:06 +02:00
YukeshShr
e555ef6a18
Remove broken link in _posts/2016-09-0.10.md (#3161)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-06 12:20:32 +02:00
Merlijn Vos
781eb006e4
Add migration guides to website (#3160) 2021-09-06 11:56:12 +02:00
YukeshShr
b91a846056
Remove broken link in _posts/2019-04-liftoff-23.md (#3164) 2021-09-06 11:28:19 +02:00
YukeshShr
609a0133c9
Fix broken link in _posts/2019-04-liftoff-08.md (#3163) 2021-09-06 11:27:02 +02:00
YukeshShr
c55d10228d
Remove broken link in _posts/2016-08-0.9.0.md (#3162) 2021-09-06 11:25:00 +02:00
Artur Paikin
86cb2294b0
remove resume option from transloadit plugin (#3149) 2021-09-03 01:55:23 +01:00
Murderlon
246eafc51a
Release 2021-09-01 11:30:19 +02:00
anark
b1388d485c
Fix bad link in 2.0 release post (#3151) 2021-08-31 19:52:10 +02:00
Antoine du Hamel
c22a8a0898
meta: fix aduh95 email address 2021-08-31 15:18:11 +02:00
Kevin van Zonneveld
bab91bb5bb
Add social links to 2.0 post 2021-08-31 15:10:45 +02:00
Artur Paikin
974a976cb5 fix website examples 2021-08-31 08:28:06 +01:00
Artur Paikin
c5edb83998 Update 2021-08-2.0.md 2021-08-30 18:25:49 +01:00
Artur Paikin
4770ee0156 New Uppy 2.0 demo video and gif 2021-08-30 18:12:34 +01:00
Artur Paikin
35e4681cab post minor tweaks 2021-08-30 17:06:42 +01:00
Artur Paikin
95fc420091 Update 2021-08-2.0.md 2021-08-30 16:40:45 +01:00
Artur Paikin
9d830b150b rename 2.0 post file 2021-08-30 16:30:25 +01:00
Merlijn Vos
6931ccd5e3
Uppy 2.0.0 release post (#3100)
* WIP

* Write section about TS type changes

* Fix typos

* Ignore some eslint code block warnings

* update authors info

* add margin for PostAuthor

* edit post, add draft cover

* Add section about S3 pre-sign batches

* Give attribution to martin-brennan

* Add links

* Add missing link

* Tiny fixes

* Apply suggestions from code review

* Update 2021-XX-XX.md

* Update image and add table of contents

* Improve sentences, add highlights since 1.0

* Update hightlights since 1.0

* Change file name, update title, fix description and image on /blog

* Update hightlights since 1.0

* Different hr md syntax, just to unbreak syntax highlighting in my vscode

It started treating the remainder of the post as yaml

* Add support notice for 1.0

* Iteration

* Disable disqus comments

* Better post date appearance + better "Continue reading" link

* Add .PostAuthors Wrapper

* Tweak .PostAuthor

* Underline author name on hover

* Nicer Author(s) section

* Not that pale date

* iterate on the 2.0 blog post more

* Remove duplicate sentence

* add cut: <!--more-->

* Fix image placement

* Remove merge conflict

* Remove `lerna` mention as notable upgrade

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update website/src/_posts/2021-08-30.31.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Premature save

Work in progress!

* A round of polish

* Update website/src/_posts/2021-08-30.31.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update website/src/_posts/2021-08-30.31.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: AJvanLoon <ajvanloon@gmail.com>
2021-08-30 16:26:13 +01:00
Murderlon
8e4fae911a
Release 2021-08-26 16:21:37 +02:00
YukeshShr
a1a22b7162
updated naming conventions link (#3135)
https://app.intercom.com/a/apps/qiqpfgjg/inbox/inbox/5079389/conversations/26852700005063, the original naming conventions link had been changed, so updated it with the new one.
2021-08-26 11:44:14 +01:00
YukeshShr
2dbe4647a6
remove clerx link (#3134)
Co-authored-by: Renée Kooi <renee@kooi.me>
2021-08-26 12:09:51 +02:00
Artur Paikin
d69043aacc Release 2021-08-24 20:54:05 +01:00
Artur Paikin
b398248198 Update peerDependencies to ^2.0.0 in all uppy packages 2021-08-24 20:22:13 +01:00
Artur Paikin
becefa7abc Update index.ejs 2021-08-24 16:32:13 +01:00
Artur Paikin
51037514e5 we have to use new keyword before Uppy.Core() now 2021-08-24 16:23:10 +01:00
Murderlon
ab771cbe1c
Release 2021-08-24 16:13:19 +02:00
Artur Paikin
17b361a286
Core: rename allowMultipleUploads to allowMultipleUploadBatches (#3115)
* allowNewUpload  --> allowMultipleUploadBatches

* noNewAlreadyUploading --> noMoreFilesAllowed

* Disallow drag-drop when allowNewUpload: false in Core

* Fix tests

* add deprecation notice to types

* Update Dashboard.js
2021-08-23 13:19:40 +01:00
Antoine du Hamel
ec87b232e9
meta: enforce no-unused-vars linter rule (#3118)
* meta: enforce `no-unused-vars` linter rule

* meta: fix `@typescript-eslint/no-unused-vars` linter warnings

* meta: enforce `no-unused-expressions` lint rule

* @uppy/companion: fix `tsc` build
2021-08-23 13:10:17 +01:00
Antoine du Hamel
2a93874e3e
writing-plugins: update example to use i18nInit (#3122) 2021-08-23 13:03:53 +01:00
Antoine du Hamel
0b801ccbad
@uppy/core: reject empty string as valid value for required meta fields (#3119) 2021-08-20 13:47:31 +01:00
Antoine du Hamel
1f0e7a59c0
@uppy/dashboard: fix metafield form validation (#3113)
* @uppy/dashboard: fix metafield form validation

Browsers without support for the HTML `form` attribute would misbehave,
making it impossible to validate the form at all, and potentially validate an
unrelated upper form if users are embeding Uppy inside a a `<form>`.

Fixes: https://github.com/transloadit/uppy/issues/3111

* Add comments

* Fix docs and types
2021-08-19 15:19:48 +01:00