@uppy/dashboard
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -78,6 +78,2 @@ "use strict"; | ||
super(uppy, _opts); | ||
Object.defineProperty(this, _openFileEditorWhenFilesAdded, { | ||
writable: true, | ||
value: void 0 | ||
}); | ||
@@ -636,9 +632,12 @@ this.removeTarget = plugin => { | ||
this._openFileEditorWhenFilesAdded = files => { | ||
const firstFile = files[0]; | ||
Object.defineProperty(this, _openFileEditorWhenFilesAdded, { | ||
writable: true, | ||
value: files => { | ||
const firstFile = files[0]; | ||
if (this.canEditFile(firstFile)) { | ||
this.openFileEditor(firstFile); | ||
if (this.canEditFile(firstFile)) { | ||
this.openFileEditor(firstFile); | ||
} | ||
} | ||
}; | ||
}); | ||
@@ -1182,2 +1181,2 @@ this.initEvents = () => { | ||
}), _class.VERSION = "2.0.2", _temp); | ||
}), _class.VERSION = "2.0.3", _temp); |
{ | ||
"name": "@uppy/dashboard", | ||
"description": "Universal UI plugin for Uppy.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"license": "MIT", | ||
@@ -26,7 +26,7 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "0.0.7", | ||
"@uppy/informer": "^2.0.1", | ||
"@uppy/provider-views": "^2.0.1", | ||
"@uppy/status-bar": "^2.0.1", | ||
"@uppy/thumbnail-generator": "^2.0.2", | ||
"@uppy/utils": "^4.0.0", | ||
"@uppy/informer": "^2.0.2", | ||
"@uppy/provider-views": "^2.0.2", | ||
"@uppy/status-bar": "^2.0.2", | ||
"@uppy/thumbnail-generator": "^2.0.3", | ||
"@uppy/utils": "^4.0.1", | ||
"classnames": "^2.2.6", | ||
@@ -40,3 +40,3 @@ "is-shallow-equal": "^1.0.1", | ||
"devDependencies": { | ||
"@uppy/google-drive": "^2.0.1", | ||
"@uppy/google-drive": "^2.0.2", | ||
"@uppy/status-bar": "*", | ||
@@ -48,3 +48,3 @@ "resize-observer-polyfill": "^1.5.0" | ||
}, | ||
"gitHead": "246eafc51a7ed6a1f534629454e1f78cd6f507c1" | ||
"gitHead": "b3b68c07773395d1521c38148cbf87ed88ff2364" | ||
} |
@@ -43,4 +43,2 @@ const { h } = require('preact') | ||
#openFileEditorWhenFilesAdded | ||
constructor (uppy, opts) { | ||
@@ -734,3 +732,3 @@ super(uppy, opts) | ||
_openFileEditorWhenFilesAdded = (files) => { | ||
#openFileEditorWhenFilesAdded = (files) => { | ||
const firstFile = files[0] | ||
@@ -737,0 +735,0 @@ if (this.canEditFile(firstFile)) { |
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
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
612311
9080
Updated@uppy/informer@^2.0.2
Updated@uppy/provider-views@^2.0.2
Updated@uppy/status-bar@^2.0.2
Updated@uppy/utils@^4.0.1