Comparing version 0.27.5 to 0.28.0
@@ -62,7 +62,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
_this.locale = _extends({}, defaultLocale, _this.opts.locale); | ||
_this.locale.strings = _extends({}, defaultLocale.strings, _this.opts.locale.strings); | ||
_this.translator = new Translator({ locale: _this.locale }); | ||
// i18n | ||
_this.translator = new Translator([defaultLocale, _this.uppy.locale, _this.opts.locale]); | ||
_this.i18n = _this.translator.translate.bind(_this.translator); | ||
_this.i18nArray = _this.translator.translateArray.bind(_this.translator); | ||
@@ -69,0 +68,0 @@ _this.hostname = _this.opts.serverUrl; |
@@ -56,2 +56,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
type: 'text', | ||
'aria-label': this.props.i18n('enterUrlToImport'), | ||
placeholder: this.props.i18n('enterUrlToImport'), | ||
@@ -67,3 +68,2 @@ onkeyup: this.handleKeyPress, | ||
type: 'button', | ||
'aria-label': this.props.i18n('import'), | ||
onclick: this.handleClick }, | ||
@@ -70,0 +70,0 @@ this.props.i18n('import') |
{ | ||
"name": "@uppy/url", | ||
"description": "The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!", | ||
"version": "0.27.5", | ||
"version": "0.28.0", | ||
"license": "MIT", | ||
@@ -27,12 +27,12 @@ "main": "lib/index.js", | ||
"@uppy/companion-client": "0.27.2", | ||
"@uppy/utils": "0.27.1", | ||
"@uppy/utils": "0.28.0", | ||
"preact": "^8.2.9" | ||
}, | ||
"devDependencies": { | ||
"@uppy/core": "0.27.3" | ||
"@uppy/core": "0.28.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^0.27.0" | ||
"@uppy/core": "^0.28.0" | ||
}, | ||
"gitHead": "113d6f09bbe248ca156af87054244cd9e6ee9d8b" | ||
"gitHead": "47a68a6148a41c7b8a1e10e78b6cd6794a53f7e5" | ||
} |
@@ -38,7 +38,6 @@ const { Plugin } = require('@uppy/core') | ||
this.locale = Object.assign({}, defaultLocale, this.opts.locale) | ||
this.locale.strings = Object.assign({}, defaultLocale.strings, this.opts.locale.strings) | ||
this.translator = new Translator({locale: this.locale}) | ||
// i18n | ||
this.translator = new Translator([ defaultLocale, this.uppy.locale, this.opts.locale ]) | ||
this.i18n = this.translator.translate.bind(this.translator) | ||
this.i18nArray = this.translator.translateArray.bind(this.translator) | ||
@@ -45,0 +44,0 @@ this.hostname = this.opts.serverUrl |
@@ -36,2 +36,3 @@ const { h, Component } = require('preact') | ||
type="text" | ||
aria-label={this.props.i18n('enterUrlToImport')} | ||
placeholder={this.props.i18n('enterUrlToImport')} | ||
@@ -43,3 +44,2 @@ onkeyup={this.handleKeyPress} | ||
type="button" | ||
aria-label={this.props.i18n('import')} | ||
onclick={this.handleClick}> | ||
@@ -46,0 +46,0 @@ {this.props.i18n('import')} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38082
751
+ Added@uppy/core@0.28.0(transitive)
+ Added@uppy/utils@0.28.0(transitive)
- Removed@uppy/core@0.27.3(transitive)
- Removed@uppy/utils@0.27.1(transitive)
Updated@uppy/utils@0.28.0