@uppy/provider-views
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -312,3 +312,7 @@ "use strict"; | ||
listAllFiles(path, files = null) { | ||
listAllFiles(path, files) { | ||
if (files === void 0) { | ||
files = null; | ||
} | ||
files = files || []; | ||
@@ -351,3 +355,9 @@ return new Promise((resolve, reject) => { | ||
render(state, viewOptions = {}) { | ||
render(state, viewOptions) { | ||
var _this = this; | ||
if (viewOptions === void 0) { | ||
viewOptions = {}; | ||
} | ||
const { | ||
@@ -413,3 +423,5 @@ authenticated, | ||
uppyFiles: this.plugin.uppy.getFiles(), | ||
validateRestrictions: (...args) => this.plugin.uppy.validateRestrictions(...args) | ||
validateRestrictions: function () { | ||
return _this.plugin.uppy.validateRestrictions(...arguments); | ||
} | ||
}; | ||
@@ -442,3 +454,3 @@ | ||
}), _class.VERSION = "2.0.4", _temp); | ||
}), _class.VERSION = "2.0.6", _temp); | ||
@@ -445,0 +457,0 @@ function _updateFilesAndFolders2(res, files, folders) { |
@@ -130,3 +130,9 @@ "use strict"; | ||
render(state, viewOptions = {}) { | ||
render(state, viewOptions) { | ||
var _this = this; | ||
if (viewOptions === void 0) { | ||
viewOptions = {}; | ||
} | ||
const { | ||
@@ -178,3 +184,5 @@ didFirstRender, | ||
uppyFiles: this.plugin.uppy.getFiles(), | ||
validateRestrictions: (...args) => this.plugin.uppy.validateRestrictions(...args) | ||
validateRestrictions: function () { | ||
return _this.plugin.uppy.validateRestrictions(...arguments); | ||
} | ||
}; | ||
@@ -204,3 +212,3 @@ | ||
}), _class.VERSION = "2.0.4", _temp); | ||
}), _class.VERSION = "2.0.6", _temp); | ||
@@ -207,0 +215,0 @@ function _updateFilesAndInputMode2(res, files) { |
{ | ||
"name": "@uppy/provider-views", | ||
"description": "View library for Uppy remote provider plugins.", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^4.0.3", | ||
"@uppy/utils": "^4.0.4", | ||
"classnames": "^2.2.6", | ||
@@ -28,4 +28,4 @@ "preact": "^10.5.13" | ||
"peerDependencies": { | ||
"@uppy/core": "^2.1.1" | ||
"@uppy/core": "^2.1.3" | ||
} | ||
} |
@@ -42,3 +42,3 @@ const { h } = require('preact') | ||
'uppy-ProviderBrowser', | ||
`uppy-ProviderBrowser-viewType--${viewType}` | ||
`uppy-ProviderBrowser-viewType--${viewType}`, | ||
)} | ||
@@ -50,3 +50,3 @@ > | ||
'uppy-ProviderBrowser-headerBar', | ||
!showBreadcrumbs && 'uppy-ProviderBrowser-headerBar--simple' | ||
!showBreadcrumbs && 'uppy-ProviderBrowser-headerBar--simple', | ||
)} | ||
@@ -105,3 +105,3 @@ > | ||
remoteFileObjToLocal(file), | ||
[...uppyFiles, ...currentSelection] | ||
[...uppyFiles, ...currentSelection], | ||
) | ||
@@ -108,0 +108,0 @@ |
@@ -15,3 +15,3 @@ const { h } = require('preact') | ||
{ 'uppy-ProviderBrowserItem--disabled': props.isDisabled }, | ||
{ 'uppy-ProviderBrowserItem--noPreview': itemIconString === 'video' } | ||
{ 'uppy-ProviderBrowserItem--noPreview': itemIconString === 'video' }, | ||
) | ||
@@ -18,0 +18,0 @@ |
@@ -106,3 +106,3 @@ const { h } = require('preact') | ||
}, | ||
this.handleError | ||
this.handleError, | ||
) | ||
@@ -109,0 +109,0 @@ } |
@@ -80,3 +80,3 @@ const { h } = require('preact') | ||
}, | ||
this.handleError | ||
this.handleError, | ||
) | ||
@@ -83,0 +83,0 @@ } |
@@ -52,3 +52,3 @@ const remoteFileObjToLocal = require('@uppy/utils/lib/remoteFileObjToLocal') | ||
remoteFileObjToLocal(item), | ||
[...uppy.getFiles(), ...reducedCurrentSelection] | ||
[...uppy.getFiles(), ...reducedCurrentSelection], | ||
) | ||
@@ -55,0 +55,0 @@ if (validatedRestrictions.result) { |
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
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
235381
3410
Updated@uppy/utils@^4.0.4