Socket
Socket
Sign inDemoInstall

@uppy/dashboard

Package Overview
Dependencies
Maintainers
8
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 2.1.4 to 2.2.0

10

lib/components/Dashboard.js

@@ -37,5 +37,2 @@ function _extends() { _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; }; return _extends.apply(this, arguments); }

const isSizeMD = props.containerWidth > WIDTH_MD;
const wrapperClassName = classNames({
'uppy-Root': props.isTargetDOMEl
});
const dashboardClassName = classNames({

@@ -164,8 +161,3 @@ 'uppy-Dashboard': true,

})))));
return (// Wrap it for RTL language support
h("div", {
className: wrapperClassName,
dir: props.direction
}, dashboard)
);
return dashboard;
};

@@ -29,4 +29,2 @@ var _class, _openFileEditorWhenFilesAdded, _attachRenderFunctionToTarget, _isTargetSupported, _getAcquirers, _getProgressIndicators, _getEditors, _temp;

const getTextDirection = require('@uppy/utils/lib/getTextDirection');
const {

@@ -1167,12 +1165,2 @@ nanoid

onMount() {
// Set the text direction if the page has not defined one.
const element = this.el;
const direction = getTextDirection(element);
if (!direction) {
element.dir = 'ltr';
}
}
}), _class.VERSION = "2.1.4", _temp);
}), _class.VERSION = "2.2.0", _temp);

16

package.json
{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "2.1.4",
"version": "2.2.0",
"license": "MIT",

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

"@uppy/informer": "^2.0.5",
"@uppy/provider-views": "^2.0.7",
"@uppy/status-bar": "^2.1.2",
"@uppy/thumbnail-generator": "^2.1.0",
"@uppy/utils": "^4.0.5",
"@uppy/provider-views": "^2.1.0",
"@uppy/status-bar": "^2.2.0",
"@uppy/thumbnail-generator": "^2.1.1",
"@uppy/utils": "^4.0.7",
"classnames": "^2.2.6",

@@ -40,9 +40,9 @@ "is-shallow-equal": "^1.0.1",

"devDependencies": {
"@uppy/google-drive": "^2.0.5",
"@uppy/status-bar": "^2.1.2",
"@uppy/google-drive": "^2.1.0",
"@uppy/status-bar": "^2.2.0",
"resize-observer-polyfill": "^1.5.0"
},
"peerDependencies": {
"@uppy/core": "^2.1.5"
"@uppy/core": "^2.2.0"
}
}

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

const wrapperClassName = classNames({
'uppy-Root': props.isTargetDOMEl,
})
const dashboardClassName = classNames({

@@ -173,8 +169,3 @@ 'uppy-Dashboard': true,

return (
// Wrap it for RTL language support
<div className={wrapperClassName} dir={props.direction}>
{dashboard}
</div>
)
return dashboard
}

@@ -9,3 +9,2 @@ const { h } = require('preact')

const getDroppedFiles = require('@uppy/utils/lib/getDroppedFiles')
const getTextDirection = require('@uppy/utils/lib/getTextDirection')
const { nanoid } = require('nanoid/non-secure')

@@ -988,11 +987,2 @@ const trapFocus = require('./utils/trapFocus')

onMount () {
// Set the text direction if the page has not defined one.
const element = this.el
const direction = getTextDirection(element)
if (!direction) {
element.dir = 'ltr'
}
}
install = () => {

@@ -999,0 +989,0 @@ // Set default state for Dashboard

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

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