@uppy/dashboard
Advanced tools
Comparing version 4.0.0-beta.8 to 4.0.0-beta.9
# @uppy/dashboard | ||
## 4.0.0-beta.9 | ||
Released: 2024-06-04 | ||
Included in: Uppy v4.0.0-beta.10 | ||
- @uppy/dashboard: remove unused component props (Antoine du Hamel / #5213) | ||
- @uppy/dashboard: remove deprecated `autoOpenFileEditor` option (Mikael Finstad / #5200) | ||
## 4.0.0-beta.5 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } | ||
/* eslint-disable react/destructuring-assignment, react/jsx-props-no-spreading */ | ||
@@ -3,0 +3,0 @@ import { h } from 'preact'; |
@@ -67,4 +67,2 @@ import { UIPlugin, type UIPluginOptions, type UnknownPlugin, type Uppy, type State } from '@uppy/core'; | ||
autoOpen?: 'metaEditor' | 'imageEditor' | null; | ||
/** @deprecated use option autoOpen instead */ | ||
autoOpenFileEditor?: boolean; | ||
defaultPickerIcon?: typeof defaultPickerIcon; | ||
@@ -142,3 +140,2 @@ disabled?: boolean; | ||
autoOpen: null; | ||
autoOpenFileEditor: false; | ||
disabled: false; | ||
@@ -145,0 +142,0 @@ disableLocalFiles: false; |
@@ -1,4 +0,4 @@ | ||
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; } | ||
var id = 0; | ||
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } | ||
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; } | ||
import { UIPlugin } from '@uppy/core'; | ||
@@ -21,3 +21,3 @@ import StatusBar from '@uppy/status-bar'; | ||
const packageJson = { | ||
"version": "4.0.0-beta.8" | ||
"version": "4.0.0-beta.9" | ||
}; | ||
@@ -71,3 +71,2 @@ import locale from "./locale.js"; | ||
autoOpen: null, | ||
autoOpenFileEditor: false, | ||
disabled: false, | ||
@@ -100,13 +99,4 @@ disableLocalFiles: false, | ||
constructor(uppy, _opts) { | ||
var _this$opts4, _this$opts4$doneButto, _this$opts5, _this$opts5$onRequest; | ||
// support for the legacy `autoOpenFileEditor` option, | ||
// TODO: we can remove this code when we update the Uppy major version | ||
let autoOpen; | ||
if (!_opts) { | ||
autoOpen = null; | ||
} else if (_opts.autoOpen === undefined) { | ||
autoOpen = _opts.autoOpenFileEditor ? 'imageEditor' : null; | ||
} else { | ||
autoOpen = _opts.autoOpen; | ||
} | ||
var _opts$autoOpen, _this$opts4, _this$opts4$doneButto, _this$opts5, _this$opts5$onRequest; | ||
const autoOpen = (_opts$autoOpen = _opts == null ? void 0 : _opts.autoOpen) != null ? _opts$autoOpen : null; | ||
super(uppy, { | ||
@@ -887,3 +877,2 @@ ...defaultOptions, | ||
isAllComplete, | ||
isAllErrored, | ||
isAllPaused | ||
@@ -918,3 +907,2 @@ } = this.uppy.getObjectOfFilesPerState(); | ||
isAllComplete, | ||
isAllErrored, | ||
isAllPaused, | ||
@@ -975,3 +963,2 @@ totalFileCount: Object.keys(files).length, | ||
areInsidesReadyToBeVisible: pluginState.areInsidesReadyToBeVisible, | ||
isTargetDOMEl: this.isTargetDOMEl, | ||
parentElement: this.el, | ||
@@ -978,0 +965,0 @@ allowedFileTypes: this.uppy.opts.restrictions.allowedFileTypes, |
{ | ||
"name": "@uppy/dashboard", | ||
"description": "Universal UI plugin for Uppy.", | ||
"version": "4.0.0-beta.8", | ||
"version": "4.0.0-beta.9", | ||
"license": "MIT", | ||
@@ -27,6 +27,6 @@ "main": "lib/index.js", | ||
"@uppy/informer": "^4.0.0-beta.2", | ||
"@uppy/provider-views": "^4.0.0-beta.6", | ||
"@uppy/status-bar": "^4.0.0-beta.8", | ||
"@uppy/provider-views": "^4.0.0-beta.7", | ||
"@uppy/status-bar": "^4.0.0-beta.9", | ||
"@uppy/thumbnail-generator": "^4.0.0-beta.4", | ||
"@uppy/utils": "^6.0.0-beta.7", | ||
"@uppy/utils": "^6.0.0-beta.8", | ||
"classnames": "^2.2.6", | ||
@@ -40,6 +40,6 @@ "lodash": "^4.17.21", | ||
"devDependencies": { | ||
"@uppy/google-drive": "^4.0.0-beta.5", | ||
"@uppy/status-bar": "^4.0.0-beta.8", | ||
"@uppy/url": "^4.0.0-beta.6", | ||
"@uppy/webcam": "^4.0.0-beta.7", | ||
"@uppy/google-drive": "^4.0.0-beta.6", | ||
"@uppy/status-bar": "^4.0.0-beta.9", | ||
"@uppy/url": "^4.0.0-beta.7", | ||
"@uppy/webcam": "^4.0.0-beta.8", | ||
"resize-observer-polyfill": "^1.5.0", | ||
@@ -49,5 +49,5 @@ "vitest": "^1.2.1" | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.0-beta.8" | ||
"@uppy/core": "^4.0.0-beta.9" | ||
}, | ||
"stableVersion": "3.8.0" | ||
} |
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
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
747744
10702