Commit graph

66 commits

Author SHA1 Message Date
Artur Paikin
bd2beedcff Release 2019-07-18 17:21:42 +02:00
Artur Paikin
4aef626a52
core: Added heic file type, refactor getFileType (#1734)
* add .heic and .heif file types

* refactor getFileType — we don’t need special condition for isRemote anymore
2019-07-17 19:54:06 +02:00
Renée Kooi
b42f904f2b core: adjust ID generation to keep non-latin characters (#1722)
* core: add test for ID generation with non-latin names

* core: adjust ID generation to keep non-latin characters

This shouldn't be bc-breaking!

Now, non-latin characters are encoded as their charcode in base 32, so
files that only differ by name in a non-latin language will generate
different IDs.
2019-07-17 16:12:51 +02:00
Artur Paikin
7873f057ca
utils: prettyBytes 1000 --> 1024 (#1732)
* Replace prettier-bytes with its copy, only use 1024 instead of 1000 to justify KB vs kB

* Add tests

* added License

* pretty-bytes to @uppy/utils/lib/prettyBytes everywhere
2019-07-16 15:21:47 +02:00
Evgenia Karunus
f88b0c5bc1 Add translations for aria labels in provider views (#1696)
* @uppy/provider-views - added translations for aria-labels

* @uppy/locales - added translations for provider views
2019-07-05 15:37:13 +03:00
Artur Paikin
81a45a01ed eslint jsdoc fixes 2019-06-25 18:27:48 +03:00
Renée Kooi
a6d3132848
core: make meta.name not required in addFile() (#1629) 2019-06-19 10:34:58 +02:00
Evgenia Karunus
6bcf2040e9 Feature/accessibility (#1507)
* @uppy/provider-views - added accessibility

* @uppy/provider-views - simplified checkbox css

* @uppy/dashboard - on tab set focus to the current verlay

* @uppy/dashboard - factored out code related to focus into a separate file

* @uppy/dashboard, and connected plugins - made focus travel well, and be managed in a single place in Dashboard

* @uppy/dashboard - made modal opener button focus keep focus on modal close

* @uppy/dashboard - focus management for uploaded-files

* @uppy/dashboard - made informer read messages without interruption

* @uppy/provider-views - removed the bug of focus jumping on safari

* @uppy/dashboard - made focus travel well in instagram in firefox

* @uppy - moved lodash.debounce dependency from / to @uppy/dashboard

* everywhere - made <ul>s not focusable for firefox

* @uppy/provider-views - unnested scss, copypasted alex's :focus changes

* Added JSDoc eslint package and rules, and fixed some JSDoc comments

* .eslintrc - made jsdoc errors warnings instead

* package-lock.json for new package.json

* eslint fix

* @uppy/dashboard - avoid forcing focus when we are inline

* @uppy/dashboard - in firefox, made sure superfocus is not switching back to uppy

* @uppy/dashboard - no focus jump for .info() inline,  fix for firefox

Made focus not interrupt .info() when we are in the inline mode;
Made firefox start superfocusing when we either tab into, or click on some element in Uppy

* @uppy/dashboard - only listen to click/focus on uppy

* @uppy/dashboard - started trapping focus in inline mode too

* @uppy/dashboard - restricted trapFocus() event listener to this.el

* @uppy/core - started throttling progress emits.

1. To fix heat up in firefox
2. To fix focus in firefox

* @uppy/core - fixed tests by adding .flush()-s for progress emits

* @uppy/dashboard - stopped trapping focus in inline mode, made background inert

* @uppy/dashboard - added MutationObserver polyfill

* tests - made locale-packs.js pass

* REVERTED last 3 commits that introduced inert

Inert requires too many polyfills, atm tests fail in IE 10.0, wicg-inert library reportedly has performance issues. We decided to at least wait until _some_ browser introduce inert html property natively.

* @uppy/dashboard - IE11 fix for focusing

* @uppy/dashboard - fix for a bug in Safari for long uploads with checkbox clicking

* RERUN TESTS - tiny commit to rerun tests

* @uppy/dashboard - removed useless touchstart event listener

* Cancel superFocus in recordIfFocusedOnUppyRecently, when focus moves away from Uppy

* @uppy/provider-views - made Filter not swallow letters

* @uppy/dashboard - stopped superfocus from refocusing if we're already in the overlay
2019-06-11 19:10:32 +03:00
Artur Paikin
28d235fe2f Release 2019-06-05 19:07:20 +03:00
Evgenia Karunus
8be2004826 Feature/replace dnd in drag drop package (#1565)
* /examples/dev - added drag-drop plugin dev environment

* @uppy/drag-drop - moved isDragDropSupported() to @uppy/utils

* @uppy/drag-drop - got rid of drag-drop npm library

* examples/dev - made compiled files placed in /output instead of /lib

* ~/examples/dev - made watchify only watch files once

* @uppy/drag-drop - add onPaste

* /examples/dev - readded html css override-attempts

* @uppy/drag-drop - made whole area clickable, and made it accessible

* @uppy/drag-drop - removed excessive outline in firefox

* REVERTED last 2 commits
2019-06-05 17:04:34 +03:00
Evgenia Karunus
450ab8ceb1 @uppy/utils - made getDroppedFiles.js work for IE11 (#1630) 2019-06-04 19:19:39 +03:00
Renée Kooi
a508cf7c44 core: use uploadStarted: null instead of false (#1628)
* core: use `uploadStarted: null` instead of false

Fixes #1615

* Update jest snapshots
2019-06-04 19:16:36 +03:00
Evgenia Karunus
2476e97459 getDroppedFiles.js - made .relativePath of nonfoldered files null (#1602) 2019-05-29 19:37:51 +03:00
Renée Kooi
1407763f5f
Fix more type import cycles 2019-05-20 11:31:21 +02:00
Renée Kooi
007195355a
Fix type import cycles 2019-05-20 11:29:10 +02:00
Renée Kooi
3b1d5b933f
Update eslint-plugin-compat and eslint-plugin-jest 2019-05-20 11:29:10 +02:00
Renée Kooi
f97b3931bb
Upgrade eslint. 2019-05-20 11:28:44 +02:00
Artur Paikin
5c9e1a836d Release 2019-05-17 19:17:03 +03:00
Evgenia Karunus
3fdaaa8bab mimeTypes.js - added pdf&txt mime types 2019-05-16 06:11:02 +05:00
Renée Kooi
1ad322497f
Release 2019-05-08 15:27:15 +02:00
Renée Kooi
3efb5662b9
Commit improved code formatting suggestion
Co-Authored-By: Tiarhai <garyedwardthomas@yahoo.ie>
2019-04-28 13:16:01 +01:00
Tiarhai
b9863c5029 Status Bar: Hide seconds if more than 1 hour 2019-04-27 21:56:42 +01:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Renée Kooi
e55757455d
dashboard,utils: fix import paths 2019-04-18 16:55:39 +02:00
Evgenia Karunus
97ad62b4cc UrlPlugin - made sure url drop/paste is browser-compatible 2019-04-17 21:12:03 +02:00
Evgenia Karunus
bcd9472da5 getDroppedFiles.js - moved into @uppy/utils, refactored 2019-04-17 01:30:32 +02:00
Artur Paikin
7ae8af44ab Release 2019-04-04 19:31:09 +03:00
Ifedapo Olarewaju
62305be8b9 companion-client: remove the use of window.location 2019-04-01 14:44:03 +01:00
Artur Paikin
a0355dbbe8 use stubs instead of removed locales 2019-03-19 14:45:56 +03:00
Artur Paikin
27899d944f Release 2019-03-08 20:47:42 +03: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
Renée Kooi
24ec8f81d5
Merge branch 'master' into feature/tl-preset 2019-01-21 10:55:27 +01:00
Renée Kooi
5800fe9ed6
Merge branch 'master' into feature/tl-preset 2019-01-17 16:54:44 +01:00
Artur Paikin
3ddf4c7548 Release 2019-01-15 19:21:04 +03:00
Artur Paikin
9fce77830b
Remove jsnext:main since it’s been deprecated
https://github.com/stereobooster/package.json#jsnextmain
2019-01-15 18:22:15 +03:00
Renée Kooi
3710b19e1b
Use export = in @uppy/core typings. 2018-12-20 14:51:42 +01:00
Renée Kooi
8c51a8340a
tl-wrapper: Embeddable dashboard part 1 2018-12-20 14:50:31 +01:00
Renée Kooi
dd718ac02e
Merge branch 'master' into feature/tl-preset 2018-12-13 16:10:15 +01:00
Artur Paikin
c68f2c7e68 Release 2018-11-29 23:36:16 +03:00
Renée Kooi
be3838b4ad
Fix typescript errors. 2018-11-29 15:29:51 +01:00
Jonathan Derrough
4633abc143 Fixed getFileType() when passed a file with an upper case extension
Updated the unit tests
2018-11-23 15:13:08 +01:00
Artur Paikin
47a68a6148 Release 2018-10-31 19:30:39 +03:00
Artur Paikin
4efc27675c Allow locale inheritance: defaultLocale, this.uppy.locale, this.opts.locale
Mostly what @goto-bus-stop did in 4f51deaaf7 (diff-989af75a364b65c408abe1fc3e7ac0f4R34)

> This patch allows locale keys passed to the main Uppy instance to override default keys in plugins. It's just one idea to kick things off, I'm not attached to this particular implementation.
>
> If we do this we need to make sure that all keys have unique names and that things specific to eg. a single service are "namespaced" (`transloaditEncoding` instead of `encoding`).
>
> The benefit to this is that there is a central point of configuration for languages, so there could be language packs with strings for eg Czech at `@uppy/lang-cz` (or `@uppy/langs/cz`) that would be very easy to use.
2018-10-20 12:49:06 -04:00
Renée Kooi
626f511ebd
Support mime types with additional data, fixes #1074 2018-10-08 15:26:32 +02:00
Renée Kooi
e9bb066f29
utils: Previews can be generated for image/jpg mime type 2018-10-08 14:23:31 +02: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
Renée Kooi
f958638455 utils: Add fallback to getFileType (#1022)
If we can't determine the file type, use the generic
'application/octet-stream' type. This way `file.type` will always be
defined and uploaders don't have to worry about it being `null` or
whatever.
2018-08-27 14:33:56 +02:00
Artur Paikin
400329e632 Release
- uppy@0.27.0
 - @uppy/aws-s3-multipart@0.27.0
 - @uppy/aws-s3@0.27.0
 - @uppy/companion-client@0.27.0
 - @uppy/companion@0.14.0
 - @uppy/core@0.27.0
 - @uppy/dashboard@0.27.0
 - @uppy/drag-drop@0.27.0
 - @uppy/dropbox@0.27.0
 - @uppy/file-input@0.27.0
 - @uppy/form@0.27.0
 - @uppy/golden-retriever@0.27.0
 - @uppy/google-drive@0.27.0
 - @uppy/informer@0.27.0
 - @uppy/instagram@0.27.0
 - @uppy/progress-bar@0.27.0
 - @uppy/provider-views@0.27.0
 - @uppy/react@0.27.0
 - @uppy/redux-dev-tools@0.27.0
 - @uppy/status-bar@0.27.0
 - @uppy/store-default@0.27.0
 - @uppy/store-redux@0.27.0
 - @uppy/thumbnail-generator@0.27.0
 - @uppy/transloadit@0.27.0
 - @uppy/tus@0.27.0
 - @uppy/url@0.27.0
 - @uppy/utils@0.27.0
 - @uppy/webcam@0.27.0
 - @uppy/xhr-upload@0.27.0
2018-08-11 22:29:46 +01:00