Socket
Socket
Sign inDemoInstall

@uppy/dashboard

Package Overview
Dependencies
Maintainers
5
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/dashboard - npm Package Compare versions

Comparing version 0.27.4 to 0.27.5

1

lib/components/FileItem.js

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

} else {
console.log('ЗДЕСЬ Я');
return props.i18n('cancelUpload');

@@ -105,0 +104,0 @@ }

4

lib/components/PanelTopBar.js

@@ -11,2 +11,4 @@ var _require = require('preact'),

function PanelTopBar(props) {
var notOverFileLimit = props.maxNumberOfFiles ? props.totalFileCount < props.maxNumberOfFiles : true;
return h(

@@ -27,3 +29,3 @@ 'div',

),
h(
notOverFileLimit && h(
'button',

@@ -30,0 +32,0 @@ { 'class': 'uppy-DashboardContent-addMore',

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

var prettyBytes = require('prettier-bytes');
var ResizeObserver = require('resize-observer-polyfill');
var ResizeObserver = require('resize-observer-polyfill').default || require('resize-observer-polyfill');

@@ -502,3 +502,4 @@ var _require2 = require('./components/icons'),

this.uppy.on('file-added', function (ev) {
return _this6.toggleAddFilesPanel(false);
_this6.toggleAddFilesPanel(false);
_this6.hideAllPanels();
});

@@ -720,3 +721,5 @@ };

var plugin = _this11.uppy.getPlugin(pluginID);
if (plugin) plugin.mount(_this11, plugin);
if (plugin) {
plugin.mount(_this11, plugin);
}
});

@@ -723,0 +726,0 @@

{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "0.27.4",
"version": "0.27.5",
"license": "MIT",

@@ -26,6 +26,6 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/informer": "0.27.3",
"@uppy/provider-views": "0.27.3",
"@uppy/status-bar": "0.27.3",
"@uppy/thumbnail-generator": "0.27.3",
"@uppy/informer": "0.27.4",
"@uppy/provider-views": "0.27.4",
"@uppy/status-bar": "0.27.4",
"@uppy/thumbnail-generator": "0.27.4",
"@uppy/utils": "0.27.1",

@@ -41,4 +41,4 @@ "classnames": "^2.2.6",

"devDependencies": {
"@uppy/core": "0.27.2",
"@uppy/google-drive": "0.27.4"
"@uppy/core": "0.27.3",
"@uppy/google-drive": "0.27.5"
},

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

},
"gitHead": "4819ff33ce676cdc4ad8208b616829b15fc059c6"
"gitHead": "113d6f09bbe248ca156af87054244cd9e6ee9d8b"
}

@@ -95,3 +95,2 @@ const getFileNameAndExtension = require('@uppy/utils/lib/getFileNameAndExtension')

} else {
console.log('ЗДЕСЬ Я')
return props.i18n('cancelUpload')

@@ -98,0 +97,0 @@ }

@@ -10,2 +10,6 @@ const { h } = require('preact')

function PanelTopBar (props) {
const notOverFileLimit = props.maxNumberOfFiles
? props.totalFileCount < props.maxNumberOfFiles
: true
return (

@@ -19,11 +23,14 @@ <div class="uppy-DashboardContent-bar">

</div>
<button class="uppy-DashboardContent-addMore"
type="button"
aria-label={props.i18n('addMoreFiles')}
title={props.i18n('addMoreFiles')}
onclick={() => props.toggleAddFilesPanel(true)}>
<svg class="UppyIcon" width="15" height="15" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M7,6 L13,6 L13,7 L7,7 L7,13 L6,13 L6,7 L0,7 L0,6 L6,6 L6,0 L7,0 L7,6 Z" />
</svg>
</button>
{ notOverFileLimit &&
<button class="uppy-DashboardContent-addMore"
type="button"
aria-label={props.i18n('addMoreFiles')}
title={props.i18n('addMoreFiles')}
onclick={() => props.toggleAddFilesPanel(true)}>
<svg class="UppyIcon" width="15" height="15" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path d="M7,6 L13,6 L13,7 L7,7 L7,13 L6,13 L6,7 L0,7 L0,6 L6,6 L6,0 L7,0 L7,6 Z" />
</svg>
</button>
}
</div>

@@ -30,0 +37,0 @@ )

@@ -11,3 +11,3 @@ const { Plugin } = require('@uppy/core')

const prettyBytes = require('prettier-bytes')
const ResizeObserver = require('resize-observer-polyfill')
const ResizeObserver = require('resize-observer-polyfill').default || require('resize-observer-polyfill')
const { defaultTabIcon } = require('./components/icons')

@@ -460,3 +460,6 @@

this.uppy.on('plugin-remove', this.removeTarget)
this.uppy.on('file-added', (ev) => this.toggleAddFilesPanel(false))
this.uppy.on('file-added', (ev) => {
this.toggleAddFilesPanel(false)
this.hideAllPanels()
})
}

@@ -663,3 +666,5 @@

const plugin = this.uppy.getPlugin(pluginID)
if (plugin) plugin.mount(this, plugin)
if (plugin) {
plugin.mount(this, plugin)
}
})

@@ -666,0 +671,0 @@

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