Comparing version 1.3.0 to 1.3.1
@@ -23,2 +23,16 @@ var _class, _temp; | ||
var forEachDroppedOrPastedUrl = require('./utils/forEachDroppedOrPastedUrl'); | ||
function UrlIcon() { | ||
return h("svg", { | ||
"aria-hidden": "true", | ||
focusable: "false", | ||
width: "23", | ||
height: "23", | ||
viewBox: "0 0 23 23" | ||
}, h("path", { | ||
d: "M20.485 11.236l-2.748 2.737c-.184.182-.367.365-.642.547-1.007.73-2.107 1.095-3.298 1.095-1.65 0-3.298-.73-4.398-2.19-.275-.365-.183-1.003.183-1.277.367-.273 1.008-.182 1.283.183 1.191 1.642 3.482 1.915 5.13.73a.714.714 0 0 0 .367-.365l2.75-2.737c1.373-1.46 1.373-3.74-.093-5.108a3.72 3.72 0 0 0-5.13 0L12.33 6.4a.888.888 0 0 1-1.283 0 .88.88 0 0 1 0-1.277l1.558-1.55a5.38 5.38 0 0 1 7.605 0c2.29 2.006 2.382 5.564.274 7.662zm-8.979 6.294L9.95 19.081a3.72 3.72 0 0 1-5.13 0c-1.467-1.368-1.467-3.74-.093-5.108l2.75-2.737.366-.365c.824-.547 1.74-.82 2.748-.73 1.008.183 1.833.639 2.382 1.46.275.365.917.456 1.283.182.367-.273.458-.912.183-1.277-.916-1.186-2.199-1.915-3.573-2.098-1.374-.273-2.84.091-4.031 1.004l-.55.547-2.749 2.737c-2.107 2.189-2.015 5.655.092 7.753C4.727 21.453 6.101 22 7.475 22c1.374 0 2.749-.547 3.848-1.55l1.558-1.551a.88.88 0 0 0 0-1.278c-.367-.364-1.008-.456-1.375-.09z", | ||
fill: "#FF814F", | ||
"fill-rule": "nonzero" | ||
})); | ||
} | ||
/** | ||
@@ -44,13 +58,3 @@ * Url | ||
_this.icon = function () { | ||
return h("svg", { | ||
"aria-hidden": "true", | ||
focusable: "false", | ||
width: "23", | ||
height: "23", | ||
viewBox: "0 0 23 23" | ||
}, h("path", { | ||
d: "M20.485 11.236l-2.748 2.737c-.184.182-.367.365-.642.547-1.007.73-2.107 1.095-3.298 1.095-1.65 0-3.298-.73-4.398-2.19-.275-.365-.183-1.003.183-1.277.367-.273 1.008-.182 1.283.183 1.191 1.642 3.482 1.915 5.13.73a.714.714 0 0 0 .367-.365l2.75-2.737c1.373-1.46 1.373-3.74-.093-5.108a3.72 3.72 0 0 0-5.13 0L12.33 6.4a.888.888 0 0 1-1.283 0 .88.88 0 0 1 0-1.277l1.558-1.55a5.38 5.38 0 0 1 7.605 0c2.29 2.006 2.382 5.564.274 7.662zm-8.979 6.294L9.95 19.081a3.72 3.72 0 0 1-5.13 0c-1.467-1.368-1.467-3.74-.093-5.108l2.75-2.737.366-.365c.824-.547 1.74-.82 2.748-.73 1.008.183 1.833.639 2.382 1.46.275.365.917.456 1.283.182.367-.273.458-.912.183-1.277-.916-1.186-2.199-1.915-3.573-2.098-1.374-.273-2.84.091-4.031 1.004l-.55.547-2.749 2.737c-2.107 2.189-2.015 5.655.092 7.753C4.727 21.453 6.101 22 7.475 22c1.374 0 2.749-.547 3.848-1.55l1.558-1.551a.88.88 0 0 0 0-1.278c-.367-.364-1.008-.456-1.375-.09z", | ||
fill: "#FF814F", | ||
"fill-rule": "nonzero" | ||
})); | ||
return h(UrlIcon, null); | ||
}; // Set default options and locale | ||
@@ -86,3 +90,3 @@ | ||
companionUrl: _this.opts.companionUrl, | ||
serverHeaders: _this.opts.serverHeaders | ||
companionHeaders: _this.opts.companionHeaders || _this.opts.serverHeaders | ||
}); | ||
@@ -232,2 +236,2 @@ return _this; | ||
return Url; | ||
}(Plugin), _class.VERSION = "1.3.0", _temp); | ||
}(Plugin), _class.VERSION = "1.3.1", _temp); |
{ | ||
"name": "@uppy/url", | ||
"description": "The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
@@ -25,4 +25,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^1.3.0", | ||
"@uppy/utils": "^1.3.0", | ||
"@uppy/companion-client": "^1.4.0", | ||
"@uppy/utils": "^2.0.0", | ||
"preact": "8.2.9" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "056a7114a15fc7480a4014342d7f2c19305dc96c" | ||
"gitHead": "4e32e61d7c7821ca5d8641a3df741487ea27f0bb" | ||
} |
@@ -8,2 +8,10 @@ const { Plugin } = require('@uppy/core') | ||
function UrlIcon () { | ||
return ( | ||
<svg aria-hidden="true" focusable="false" width="23" height="23" viewBox="0 0 23 23"> | ||
<path d="M20.485 11.236l-2.748 2.737c-.184.182-.367.365-.642.547-1.007.73-2.107 1.095-3.298 1.095-1.65 0-3.298-.73-4.398-2.19-.275-.365-.183-1.003.183-1.277.367-.273 1.008-.182 1.283.183 1.191 1.642 3.482 1.915 5.13.73a.714.714 0 0 0 .367-.365l2.75-2.737c1.373-1.46 1.373-3.74-.093-5.108a3.72 3.72 0 0 0-5.13 0L12.33 6.4a.888.888 0 0 1-1.283 0 .88.88 0 0 1 0-1.277l1.558-1.55a5.38 5.38 0 0 1 7.605 0c2.29 2.006 2.382 5.564.274 7.662zm-8.979 6.294L9.95 19.081a3.72 3.72 0 0 1-5.13 0c-1.467-1.368-1.467-3.74-.093-5.108l2.75-2.737.366-.365c.824-.547 1.74-.82 2.748-.73 1.008.183 1.833.639 2.382 1.46.275.365.917.456 1.283.182.367-.273.458-.912.183-1.277-.916-1.186-2.199-1.915-3.573-2.098-1.374-.273-2.84.091-4.031 1.004l-.55.547-2.749 2.737c-2.107 2.189-2.015 5.655.092 7.753C4.727 21.453 6.101 22 7.475 22c1.374 0 2.749-.547 3.848-1.55l1.558-1.551a.88.88 0 0 0 0-1.278c-.367-.364-1.008-.456-1.375-.09z" fill="#FF814F" fill-rule="nonzero" /> | ||
</svg> | ||
) | ||
} | ||
/** | ||
@@ -21,5 +29,3 @@ * Url | ||
this.type = 'acquirer' | ||
this.icon = () => <svg aria-hidden="true" focusable="false" width="23" height="23" viewBox="0 0 23 23"> | ||
<path d="M20.485 11.236l-2.748 2.737c-.184.182-.367.365-.642.547-1.007.73-2.107 1.095-3.298 1.095-1.65 0-3.298-.73-4.398-2.19-.275-.365-.183-1.003.183-1.277.367-.273 1.008-.182 1.283.183 1.191 1.642 3.482 1.915 5.13.73a.714.714 0 0 0 .367-.365l2.75-2.737c1.373-1.46 1.373-3.74-.093-5.108a3.72 3.72 0 0 0-5.13 0L12.33 6.4a.888.888 0 0 1-1.283 0 .88.88 0 0 1 0-1.277l1.558-1.55a5.38 5.38 0 0 1 7.605 0c2.29 2.006 2.382 5.564.274 7.662zm-8.979 6.294L9.95 19.081a3.72 3.72 0 0 1-5.13 0c-1.467-1.368-1.467-3.74-.093-5.108l2.75-2.737.366-.365c.824-.547 1.74-.82 2.748-.73 1.008.183 1.833.639 2.382 1.46.275.365.917.456 1.283.182.367-.273.458-.912.183-1.277-.916-1.186-2.199-1.915-3.573-2.098-1.374-.273-2.84.091-4.031 1.004l-.55.547-2.749 2.737c-2.107 2.189-2.015 5.655.092 7.753C4.727 21.453 6.101 22 7.475 22c1.374 0 2.749-.547 3.848-1.55l1.558-1.551a.88.88 0 0 0 0-1.278c-.367-.364-1.008-.456-1.375-.09z" fill="#FF814F" fill-rule="nonzero" /> | ||
</svg> | ||
this.icon = () => <UrlIcon /> | ||
@@ -59,3 +65,3 @@ // Set default options and locale | ||
companionUrl: this.opts.companionUrl, | ||
serverHeaders: this.opts.serverHeaders | ||
companionHeaders: this.opts.companionHeaders || this.opts.serverHeaders | ||
}) | ||
@@ -168,5 +174,3 @@ } | ||
render (state) { | ||
return <UrlUI | ||
i18n={this.i18n} | ||
addFile={this.addFile} /> | ||
return <UrlUI i18n={this.i18n} addFile={this.addFile} /> | ||
} | ||
@@ -173,0 +177,0 @@ |
@@ -25,18 +25,22 @@ const { h, Component } = require('preact') | ||
render () { | ||
return <div class="uppy-Url"> | ||
<input | ||
class="uppy-u-reset uppy-c-textInput uppy-Url-input" | ||
type="text" | ||
aria-label={this.props.i18n('enterUrlToImport')} | ||
placeholder={this.props.i18n('enterUrlToImport')} | ||
onkeyup={this.handleKeyPress} | ||
ref={(input) => { this.input = input }} | ||
data-uppy-super-focusable /> | ||
<button | ||
class="uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton" | ||
type="button" | ||
onclick={this.handleClick}> | ||
{this.props.i18n('import')} | ||
</button> | ||
</div> | ||
return ( | ||
<div class="uppy-Url"> | ||
<input | ||
class="uppy-u-reset uppy-c-textInput uppy-Url-input" | ||
type="text" | ||
aria-label={this.props.i18n('enterUrlToImport')} | ||
placeholder={this.props.i18n('enterUrlToImport')} | ||
onkeyup={this.handleKeyPress} | ||
ref={(input) => { this.input = input }} | ||
data-uppy-super-focusable | ||
/> | ||
<button | ||
class="uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton" | ||
type="button" | ||
onclick={this.handleClick} | ||
> | ||
{this.props.i18n('import')} | ||
</button> | ||
</div> | ||
) | ||
} | ||
@@ -43,0 +47,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28266
642
+ Added@uppy/utils@2.4.4(transitive)
- Removed@uppy/utils@1.3.0(transitive)
Updated@uppy/utils@^2.0.0