Socket
Socket
Sign inDemoInstall

@uppy/provider-views

Package Overview
Dependencies
Maintainers
5
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/provider-views - npm Package Compare versions

Comparing version 0.30.4 to 0.30.5

10

lib/Filter.js

@@ -38,7 +38,2 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

{ "class": "uppy-ProviderBrowser-search" },
h(
"svg",
{ "aria-hidden": "true", "class": "UppyIcon uppy-ProviderBrowser-searchIcon", viewBox: "0 0 100 100" },
h("path", { d: "M87.533 80.03L62.942 55.439c3.324-4.587 5.312-10.207 5.312-16.295 0-.312-.043-.611-.092-.908.05-.301.093-.605.093-.922 0-15.36-12.497-27.857-27.857-27.857-.273 0-.536.043-.799.08-.265-.037-.526-.08-.799-.08-15.361 0-27.858 12.497-27.858 27.857 0 .312.042.611.092.909a5.466 5.466 0 0 0-.093.921c0 15.36 12.496 27.858 27.857 27.858.273 0 .535-.043.8-.081.263.038.524.081.798.081 5.208 0 10.071-1.464 14.245-3.963L79.582 87.98a5.603 5.603 0 0 0 3.976 1.647 5.621 5.621 0 0 0 3.975-9.597zM39.598 55.838c-.265-.038-.526-.081-.8-.081-9.16 0-16.612-7.452-16.612-16.612 0-.312-.042-.611-.092-.908.051-.301.093-.605.093-.922 0-9.16 7.453-16.612 16.613-16.612.272 0 .534-.042.799-.079.263.037.525.079.799.079 9.16 0 16.612 7.452 16.612 16.612 0 .312.043.611.092.909-.05.301-.094.604-.094.921 0 9.16-7.452 16.612-16.612 16.612-.274 0-.536.043-.798.081z" })
),
h("input", {

@@ -56,2 +51,7 @@ "class": "uppy-u-reset uppy-ProviderBrowser-searchInput",

} }),
h(
"svg",
{ "aria-hidden": "true", "class": "UppyIcon uppy-ProviderBrowser-searchIcon", width: "12", height: "12", viewBox: "0 0 12 12" },
h("path", { d: "M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z" })
),
this.props.filterInput && h(

@@ -58,0 +58,0 @@ "button",

@@ -187,3 +187,3 @@ 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; };

remote: {
serverUrl: this.plugin.opts.serverUrl,
companionUrl: this.plugin.opts.companionUrl,
url: '' + this.provider.fileUrl(file.requestPath),

@@ -260,3 +260,3 @@ body: {

var state = this.plugin.getPluginState();
if (state.filterInput === '') {
if (!state.filterInput || state.filterInput === '') {
return items;

@@ -495,4 +495,4 @@ }

var handleToken = function handleToken(e) {
if (!_this5._isOriginAllowed(e.origin, _this5.plugin.opts.serverPattern) || e.source !== authWindow) {
_this5.plugin.uppy.log('rejecting event from ' + e.origin + ' vs allowed pattern ' + _this5.plugin.opts.serverPattern);
if (!_this5._isOriginAllowed(e.origin, _this5.plugin.opts.companionAllowedHosts) || e.source !== authWindow) {
_this5.plugin.uppy.log('rejecting event from ' + e.origin + ' vs allowed pattern ' + _this5.plugin.opts.companionAllowedHosts);
return;

@@ -614,3 +614,3 @@ }

{ onUnmount: this.clearSelection },
h(LoaderView, null)
h(LoaderView, { i18n: this.plugin.uppy.i18n })
);

@@ -617,0 +617,0 @@ }

@@ -6,10 +6,10 @@ var _require = require('preact'),

return h(
"div",
{ "class": "uppy-Provider-loading" },
'div',
{ 'class': 'uppy-Provider-loading' },
h(
"span",
'span',
null,
"Loading..."
props.i18n('loading')
)
);
};
{
"name": "@uppy/provider-views",
"description": "View library for Uppy remote provider plugins.",
"version": "0.30.4",
"version": "0.30.5",
"license": "MIT",

@@ -22,3 +22,3 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/utils": "0.30.4",
"@uppy/utils": "0.30.5",
"classnames": "^2.2.6",

@@ -28,3 +28,3 @@ "preact": "^8.2.9"

"devDependencies": {
"@uppy/core": "0.30.4"
"@uppy/core": "0.30.5"
},

@@ -34,3 +34,3 @@ "peerDependencies": {

},
"gitHead": "7ae8af44abdd42eef71c46b831b2e3dadb00237f"
"gitHead": "0f95529cc56175c017e149dd3a122a3bcf9325b7"
}

@@ -20,5 +20,2 @@ const { h, Component } = require('preact')

return <div class="uppy-ProviderBrowser-search">
<svg aria-hidden="true" class="UppyIcon uppy-ProviderBrowser-searchIcon" viewBox="0 0 100 100">
<path d="M87.533 80.03L62.942 55.439c3.324-4.587 5.312-10.207 5.312-16.295 0-.312-.043-.611-.092-.908.05-.301.093-.605.093-.922 0-15.36-12.497-27.857-27.857-27.857-.273 0-.536.043-.799.08-.265-.037-.526-.08-.799-.08-15.361 0-27.858 12.497-27.858 27.857 0 .312.042.611.092.909a5.466 5.466 0 0 0-.093.921c0 15.36 12.496 27.858 27.857 27.858.273 0 .535-.043.8-.081.263.038.524.081.798.081 5.208 0 10.071-1.464 14.245-3.963L79.582 87.98a5.603 5.603 0 0 0 3.976 1.647 5.621 5.621 0 0 0 3.975-9.597zM39.598 55.838c-.265-.038-.526-.081-.8-.081-9.16 0-16.612-7.452-16.612-16.612 0-.312-.042-.611-.092-.908.051-.301.093-.605.093-.922 0-9.16 7.453-16.612 16.613-16.612.272 0 .534-.042.799-.079.263.037.525.079.799.079 9.16 0 16.612 7.452 16.612 16.612 0 .312.043.611.092.909-.05.301-.094.604-.094.921 0 9.16-7.452 16.612-16.612 16.612-.274 0-.536.043-.798.081z" />
</svg>
<input

@@ -34,2 +31,5 @@ class="uppy-u-reset uppy-ProviderBrowser-searchInput"

ref={(input) => { this.input = input }} />
<svg aria-hidden="true" class="UppyIcon uppy-ProviderBrowser-searchIcon" width="12" height="12" viewBox="0 0 12 12">
<path d="M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z" />
</svg>
{ this.props.filterInput &&

@@ -36,0 +36,0 @@ <button

@@ -156,3 +156,3 @@ const { h, Component } = require('preact')

remote: {
serverUrl: this.plugin.opts.serverUrl,
companionUrl: this.plugin.opts.companionUrl,
url: `${this.provider.fileUrl(file.requestPath)}`,

@@ -222,3 +222,3 @@ body: {

const state = this.plugin.getPluginState()
if (state.filterInput === '') {
if (!state.filterInput || state.filterInput === '') {
return items

@@ -428,4 +428,4 @@ }

const handleToken = (e) => {
if (!this._isOriginAllowed(e.origin, this.plugin.opts.serverPattern) || e.source !== authWindow) {
this.plugin.uppy.log(`rejecting event from ${e.origin} vs allowed pattern ${this.plugin.opts.serverPattern}`)
if (!this._isOriginAllowed(e.origin, this.plugin.opts.companionAllowedHosts) || e.source !== authWindow) {
this.plugin.uppy.log(`rejecting event from ${e.origin} vs allowed pattern ${this.plugin.opts.companionAllowedHosts}`)
return

@@ -529,3 +529,3 @@ }

<CloseWrapper onUnmount={this.clearSelection}>
<LoaderView />
<LoaderView i18n={this.plugin.uppy.i18n} />
</CloseWrapper>

@@ -532,0 +532,0 @@ )

@@ -5,4 +5,4 @@ const { h } = require('preact')

return <div class="uppy-Provider-loading">
<span>Loading...</span>
<span>{props.i18n('loading')}</span>
</div>
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc