Commit graph

160 commits

Author SHA1 Message Date
Antoine du Hamel
a047f991be
meta: fix require path in upload-to-cdn (#5343) 2024-07-15 15:45:46 +02:00
Antoine du Hamel
1b372b29f1
meta: mark @uppy-dev/upload-to-cdn as private (#5341) 2024-07-15 15:28:54 +02:00
Evgenia Karunus
0291c631c5
<Dashboard/>, <DragDrop/>, drop-target - new anti-flickering solution (#5326)
* `<Dashboard/>`, `drag-drop`, `drop-target` - switch from `setTimeout()` to `css { pointer-events: none }`

* <DragDrop/> - remove leftover `return`

* http://localhost:5173 - remove padding-right in { inline: true } mode

Because it makes working with drops confusing, dropping behaviour thinks uppy spans 100% of the page

* `<DragDrop/>` - remove `{ pointer-events: none }`

`<DragDrop/> flickers in Chrome when we DO have `{ pointer-events: none }`, because it doesn't have any child elements.
2024-07-15 11:54:02 +02:00
Antoine du Hamel
a2f1472907
meta: update manual-cdn workflow (#5329) 2024-07-11 10:40:41 +02:00
Antoine du Hamel
431460d401
Revert "meta: prepare release workflow for beta versions"
This reverts commit cb829d8c2a.
2024-07-10 17:01:53 +02:00
Antoine du Hamel
a42b150639
Merge stable branch 2024-06-18 17:22:02 +02:00
Mikael Finstad
e6674a1eee
@uppy/google-photos: add plugin (#5061) 2024-06-18 11:13:23 +02:00
Antoine du Hamel
1831991c54
docs: add 4.x migration guide (#5206)
Co-authored-by: Murderlon <merlijn@soverin.net>
2024-06-12 17:48:30 +02:00
Antoine du Hamel
4298dd67ab
Merge branch 'main' of https://github.com/transloadit/uppy 2024-05-22 13:46:33 +02:00
Antoine du Hamel
3cc8df8c4f
meta: improve changelog generator (#5190)
We are regularly using `e2e`, `examples`, or `docs` as subsystems. We
are no longer using `website`.
2024-05-22 11:28:22 +02:00
Antoine du Hamel
55f621c13c
Merge stable branch 2024-05-03 14:46:04 +02:00
Antoine du Hamel
93d1c71b8c
meta: fix bullet setting for ReMark 2024-05-02 20:30:01 +02:00
Murderlon
233dc8d6ab
Format 2024-05-02 15:22:30 +02:00
Murderlon
9d8fb57a74
Merge branch 'main' into 4.x
* main:
  meta: enable prettier for markdown (#5133)
  @uppy/xhr-upload: do not throw when res is missing url (#5132)
  @uppy/companion: coerce `requestUrl` to a string (#5128)
  Release: uppy@3.25.0 (#5127)
  meta: enforce use of `.js` extension in `import type` declarations (#5126)
  @uppy/core: add instance ID to generated IDs (#5080)
  @uppy/core: reference updated i18n in Restricter (#5118)
2024-05-02 12:26:16 +02:00
Merlijn Vos
7d6937300a
meta: enable prettier for markdown (#5133)
* meta: enable prettier for markdown

* Ignore changelogs

* revert CHANGELOG changes

* More formatting

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-05-02 11:35:55 +02:00
Merlijn Vos
3393b537d3
Upgrade Yarn to 4.x (#4849)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-29 18:49:02 +02:00
Murderlon
a787a6496f
Merge branch 'main' into 4.x
* main: (90 commits)
  crash if trying to set path to / (#5003)
  fix `super.toggleCheckbox` bug (#5004)
  @uppy/aws-s3-multipart: fix escaping issue with client signed request (#5006)
  add missing exports (#5009)
  @uppy/transloadit: migrate to TS (#4987)
  @uppy/utils: fix `RateLimitedQueue#wrapPromiseFunction` types (#5007)
  @uppy/golden-retriever: migrate to TS (#4989)
  Bump follow-redirects from 1.15.4 to 1.15.6 (#5002)
  meta: fix `resize-observer-polyfill` types (#4994)
  @uppy/core: various type fixes (#4995)
  @uppy/utils: fix `findAllDOMElements` type (#4997)
  @uppy/status-bar: fix `recoveredState` type (#4996)
  @uppy/utils: fix `AbortablePromise` type (#4988)
  Fix breadcrumbs (#4986)
  @uppy/drag-drop: refactor to TypeScript (#4983)
  @uppy/webcam: refactor to TypeScript (#4870)
  @uppy/url: migrate to TS (#4980)
  @uppy/zoom: refactor to TypeScript (#4979)
  @uppy/unsplash: refactor to TypeScript (#4979)
  @uppy/onedrive: refactor to TypeScript (#4979)
  ...
2024-03-19 17:52:15 +01:00
Evgenia Karunus
3c0140aa13
Image editor: make compressor work after the image editor, too (#4918)
* Editor.tsx - clean up post typescriptofication

* dev - finally add favicons to avoid errors in the console

* ImageEditor.tsx - reinsert filename after image editor
2024-02-14 15:59:59 +04:00
Antoine du Hamel
d85caf6c51
meta: exclude tsconfig files from npm bundles (#4916) 2024-02-13 23:21:08 +01:00
Antoine du Hamel
2454d85a44
meta: fix missing line return in JS2TS script 2024-01-25 10:25:00 +01:00
Antoine du Hamel
588bfb515e
meta: prettier 3.0.3 -> 3.2.4 (#4889)
Notable change: https://prettier.io/blog/2023/11/13/curious-ternaries
2024-01-24 11:37:01 +01:00
Antoine du Hamel
2a9cd56e6f
Merge branch 'main' of https://github.com/transloadit/uppy 2024-01-23 15:23:31 +01:00
Antoine du Hamel
975038cf4c
meta: upgrade Vite and Vitest (#4881) 2024-01-22 15:56:40 +01:00
Antoine du Hamel
cecd68f9c8
meta: generate locale pack from output file (#4867) 2024-01-17 10:45:10 +01:00
Antoine du Hamel
f62ae48d8e
Merge branch 'main' 2024-01-03 19:14:50 +01:00
Antoine du Hamel
2c05594511
meta: fix js2ts script (#4846) 2024-01-03 14:52:26 +01:00
Antoine du Hamel
df6043da0c
meta: fix js2ts script (#4844) 2023-12-30 12:42:59 +01:00
Antoine du Hamel
fc27c005d9
Merge branch 'main' of https://github.com/transloadit/uppy 2023-12-29 11:53:27 +01:00
Antoine du Hamel
c7bb57b7f8
dev: remove extensions from Vite aliases
This started causing issues as we are transitioning to TS. By removing the file extension, Vite is able to pick up the correct file.
2023-12-18 15:18:33 +01:00
Murderlon
39c841bc4e
Remove generate types from locale-pack 2023-12-08 10:23:51 +01:00
Antoine du Hamel
995d7e00c4
Merge branch main 2023-12-05 15:33:03 +01:00
Merlijn Vos
0bea173c2a
meta: fix js2ts script on Node.js 20+ (#4802)
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-12-05 12:51:57 +01:00
Antoine du Hamel
cb829d8c2a meta: prepare release workflow for beta versions 2023-11-23 14:33:59 +01:00
Antoine du Hamel
73fdcaf4a6
meta: improve js2ts script (#4786)
* meta: improve js2ts script

- add `@ts-ignore` comment on `package.json` imports.
- better detect imports of local `.js` files.
- do not remove non-JS files from the source.

* fixup! meta: improve js2ts script

* fixup! fixup! meta: improve js2ts script

* fixup! meta: improve js2ts script

* Update index.mjs
2023-11-21 13:47:40 +01:00
Antoine du Hamel
1431d52e0f
meta: fix JS2TS script (#4778) 2023-11-09 11:41:01 +01:00
Antoine du Hamel
222b427ec3
meta: fix TS integration (#4741) 2023-10-20 14:15:46 +02:00
Antoine du Hamel
ab0c656536
meta: fix js2ts check 2023-10-17 16:11:35 +02:00
Antoine du Hamel
773c8cb9a1
meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00
Antoine du Hamel
34c78e9093
meta: run Prettier on existing files (#4713) 2023-09-29 11:11:28 +02:00
Antoine du Hamel
2c432b12cd
test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
Mikael Finstad
b910f84fe2
add test endpoint for dynamic oauth creds (#4667)
* add test endpoint for dynamic oauth creds

this allows us to test it on uppy.io (we can enable it for one provider like google drive for example)

* add to env.example
2023-09-20 18:09:47 +08:00
Mikael Finstad
a16e22eb6b
fix VITE_COMPANION_ALLOWED_HOSTS (#4690)
it was broken
2023-09-20 17:53:22 +08:00
Merlijn Vos
ef613e6a9f
Move remote file upload logic into companion-client (#4573) 2023-08-24 14:27:28 +02:00
Artur Paikin
1ab4db5e7c
Readme improvements (#4622)
* Make logo fit on the right of the table on laptop screens+

* Move table

* Update README.md

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

* No need to make logo smaller on all packages after all

* Accidental change

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-08-15 14:39:04 +01:00
Dominik Schmidt
79ff451a4d
@uppy/companion-client,@uppy/provider-views: make authentication optional (#4556)
* @uppy/companion-client,@uppy/provider-views: make authentication optional in ProviderView

* try different approach

* Move authAborted translation to companion-client

* @uppy/companion-client: do not reject login promise on events from incorrect source, but always return after rejections

While these events should be ignored they might be unrelated and should not reject the whole login

* Revert "Move authAborted translation to companion-client"

This reverts commit ce7f90e455.

* Check unused core locale strings in companion-client

---------

Co-authored-by: Murderlon <merlijn@soverin.net>
2023-08-06 23:05:39 +02:00
Mikael Finstad
90f7fb9197
@uppy/core: improve performance of validating & uploading files (#4402)
* show how many files are added when loading

remake of https://github.com/transloadit/uppy/pull/4388

* add french (cherry pick)

* implement concurrent file listing

* refactor / fix lint

* refactor/reduce duplication

* pull out totals validation

don't do it for every file added, as it's very slow
instead do the check at the end when all files are added.
this allows us to easily work with 10k+ files
fixes #4389

* Update packages/@uppy/core/src/Uppy.js

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

* make restricter.validate validate everything

instead make more specific methods for sub-validation
also rename validateTotals to validateAggregateRestrictions

* improve errors and user feedback

- handle errors centrally so that we can limit the amount of toasts (informers) sent to the users (prevent flooding hundreds/thousands of them)
- introduce FileRestrictionError which is a restriction error for a specific file
- introduce isUserFacing field for RestrictionError

* fix performance issue reintroduced

* improvements

- show "%{count} additional restrictions were not fulfilled" for any restriction errors more than 4
- refactor/rename methods
- improve ghost logic/comments

* improve performance when uploading

- introduce new event "upload-start"  that can contain multiple files
- make a new patchFilesState method to allow updating more files
- unify "upload-start" logic in all plugins (send it before files start uploading)
- defer slicing buffer until we need the data
- refactor to reuse code

* fix e2e build issue

* try to upgrade cypress

maybe it fixes the error

* Revert "fix e2e build issue"

This reverts commit ff3e580c0f.

* upgrade parcel

* move mutation logic to end

* remove FileRestrictionError

merge it with RestrictionError

* fix silly bug

looks like the e2e tests are doing its job 👏

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-15 23:50:19 +08:00
Mikael Finstad
3dd1e5e68c
@uppy/provider-views: fix race condition when adding folders (#4384)
* fix race condtion when adding files

don't call addFolder from listAllFiles
because that would call addFile before all folders were loaded

also remove unused selectedFolders state

* fix also the case of adding multiple folders

* fix todo: remove SharedHandler

* remove loaderWrapper

* fix logic

* fix the last race condition

* fix broken duplicate file check

* fix logic

* prettiyfy loop

* add user feedback

so they know that something is happening

* run corepack yarn run build:locale-pack

* Revert "run corepack yarn run build:locale-pack"

This reverts commit 85548ce2fc.

* Revert "add user feedback"

This reverts commit 4060019c35.

* use async generator instead of p-map

* re-fix race-condition

* remove providerFileToId

as suggested by @arturi

* use addFiles instead of addFile

* rename function

* use provider-supplied file ID

instead of generating an ID, for providers that we whitelsit
this allows adding the same time many times (with a different path)

* call core directly

* improve dev dashboard

* disable experimental getAsFileSystemHandle

it seems to be causing problems when dropping folders with subfolders in newest chrome
e.g a folder with 50 files and a subfolder which in turn has another 50 files

also refactor and document the code more

* Update packages/@uppy/provider-views/src/ProviderView/ProviderView.jsx

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

* mov eto utils

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-04 12:13:39 +09:00
Merlijn Vos
6430a00aa9
Remove the website (#4369) 2023-03-24 00:33:46 +08:00
Mikael Finstad
ef1a945f79
@uppy/companion: add connection keep-alive to dropbox (#4365)
* add connection: keep-alive to dropbox

fixes #4357

* update a todo

* dont clear screen by vite

i want to also see companion's output
2023-03-20 20:59:03 +08:00
Antoine du Hamel
2ef662140b
@uppy/transloadit: fix assemblyOptions option (#4316) 2023-02-13 18:33:42 +01:00