* Only log info if debug is true
* Add option logClientVersion
defaults to true
* Update companion.md
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* #2920 fixed standalone server to initiate itself on explicit function call
* refactored standalone server module export
* fixed unit tests related to new companion standalone export, set the jest timeout slightly higher
Co-authored-by: Thomas Benndorf <thomas@br24.com>
* Allowed HTML Attributes to be passed via props
This fix still needs some work, as certain attributes could be passed to Uppy or as an HTML attribute, such as target
When this is fixed, this will resolve#2403
* Removed shared attributes
I removed the ability to use certain attributes ('width', 'height', and 'target') and pass them down as Props to the div due to that fact that Uppy relies on them
* Add typescript types for the HTML attributes
* Moved common.js to getHTMLProps.js
* Fixed import
* Converted `possibleStandardNames` to an Array
* Fix import
* Fix tests
* Expose drag-drop events
* we need to call DragDrop.renderArrowSvg without this, since it’s now static
* Update docs based on feedback
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* add more granular image rotation control
Fixes: https://github.com/transloadit/uppy/issues/2636
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* add input-range-scss dependency
* Modify the rotation slider
- Better visual styles for the slider
- Position a toggle in the center of the slider
- Make it work better on moblile
- 90° rotation: rotate counterclockwise
- 90° rotation: update icon
* Use black background for the canvas when rotating (instead of gray)
* Use smaller range for granular rotation input
* Optimize event listeners
* Fix styles and state unsyncronisation
* Update package-lock.json
Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* Translator: refactor interpolate
Fixes types and small code edits:
`<regex>[Symbol.split](<string>)` is equivalent to
`String.prototype.split.call(<string>, <regex>)` and potentially more
readable (the downside it's not compatible with IE, which may be why we
currently use the latter).
Refs: https://github.com/transloadit/uppy/pull/2899
* Update packages/@uppy/utils/src/Translator.js
* Revert RegExp Symbol for IE compat
In the case of an invalid URL, this is no proper way to handle an error. `uppy.state.info` only show the error without any info that due to which URL error was thrown.
So returning the error or file so it can be handled as need. throwing the error will not be backward compatible