@uppy/status-bar
Advanced tools
Comparing version 4.0.0-beta.8 to 4.0.0-beta.9
# @uppy/status-bar | ||
## 4.0.0-beta.9 | ||
Released: 2024-06-04 | ||
Included in: Uppy v4.0.0-beta.10 | ||
- @uppy/status-bar: remove unused component props (Antoine du Hamel / #5211) | ||
- @uppy/status-bar: rename `StatusBar` to `StatusBarUI` (Mikael Finstad / #5200) | ||
## 4.0.0-beta.1 | ||
@@ -4,0 +12,0 @@ |
@@ -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'; | ||
@@ -12,3 +12,3 @@ import emaFilter from '@uppy/utils/lib/emaFilter'; | ||
const packageJson = { | ||
"version": "4.0.0-beta.8" | ||
"version": "4.0.0-beta.9" | ||
}; | ||
@@ -150,3 +150,2 @@ import locale from "./locale.js"; | ||
isAllComplete, | ||
isAllErrored, | ||
isAllPaused, | ||
@@ -183,4 +182,2 @@ isUploadInProgress, | ||
isAllPaused, | ||
// @ts-expect-error TODO: remove this in 4.x branch | ||
isAllErrored, | ||
isUploadStarted, | ||
@@ -206,5 +203,3 @@ isUploadInProgress, | ||
hideCancelButton: this.opts.hideCancelButton, | ||
hideAfterFinish: this.opts.hideAfterFinish, | ||
// ts-expect-error TODO: remove this in 4.x branch | ||
isTargetDOMEl: this.isTargetDOMEl | ||
hideAfterFinish: this.opts.hideAfterFinish | ||
}); | ||
@@ -211,0 +206,0 @@ } |
@@ -37,15 +37,3 @@ import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'; | ||
} | ||
declare function StatusBar<M extends Meta, B extends Body>(props: StatusBarUIProps<M, B>): h.JSX.Element; | ||
declare namespace StatusBar { | ||
var defaultProps: { | ||
doneButtonHandler: undefined; | ||
hideAfterFinish: boolean; | ||
hideCancelButton: boolean; | ||
hidePauseResumeButton: boolean; | ||
hideRetryButton: boolean; | ||
hideUploadButton: undefined; | ||
showProgressDetails: undefined; | ||
}; | ||
} | ||
export default StatusBar; | ||
export default function StatusBarUI<M extends Meta, B extends Body>({ newFiles, allowNewUpload, isUploadInProgress, isAllPaused, resumableUploads, error, hideUploadButton, hidePauseResumeButton, hideCancelButton, hideRetryButton, recoveredState, uploadState, totalProgress, files, supportsUploadProgress, hideAfterFinish, isSomeGhost, doneButtonHandler, isUploadStarted, i18n, startUpload, uppy, isAllComplete, showProgressDetails, numUploads, complete, totalSize, totalETA, totalUploadedSize, }: StatusBarUIProps<M, B>): h.JSX.Element; | ||
//# sourceMappingURL=StatusBarUI.d.ts.map |
@@ -14,5 +14,4 @@ import { h } from 'preact'; | ||
} = statusBarStates; | ||
// TODO: rename the function to StatusBarUI on the next major. | ||
export default function StatusBar(props) { | ||
const { | ||
export default function StatusBarUI(_ref) { | ||
let { | ||
newFiles, | ||
@@ -24,6 +23,6 @@ allowNewUpload, | ||
error, | ||
hideUploadButton, | ||
hidePauseResumeButton, | ||
hideCancelButton, | ||
hideRetryButton, | ||
hideUploadButton = undefined, | ||
hidePauseResumeButton = false, | ||
hideCancelButton = false, | ||
hideRetryButton = false, | ||
recoveredState, | ||
@@ -34,5 +33,5 @@ uploadState, | ||
supportsUploadProgress, | ||
hideAfterFinish, | ||
hideAfterFinish = false, | ||
isSomeGhost, | ||
doneButtonHandler, | ||
doneButtonHandler = undefined, | ||
isUploadStarted, | ||
@@ -43,3 +42,3 @@ i18n, | ||
isAllComplete, | ||
showProgressDetails, | ||
showProgressDetails = undefined, | ||
numUploads, | ||
@@ -50,3 +49,3 @@ complete, | ||
totalUploadedSize | ||
} = props; | ||
} = _ref; | ||
function getProgressValue() { | ||
@@ -204,11 +203,2 @@ switch (uploadState) { | ||
}) : null)); | ||
} | ||
StatusBar.defaultProps = { | ||
doneButtonHandler: undefined, | ||
hideAfterFinish: false, | ||
hideCancelButton: false, | ||
hidePauseResumeButton: false, | ||
hideRetryButton: false, | ||
hideUploadButton: undefined, | ||
showProgressDetails: undefined | ||
}; | ||
} |
{ | ||
"name": "@uppy/status-bar", | ||
"description": "A progress bar for Uppy, with many bells and whistles.", | ||
"version": "4.0.0-beta.8", | ||
"version": "4.0.0-beta.9", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "^0.3.4", | ||
"@uppy/utils": "^6.0.0-beta.7", | ||
"@uppy/utils": "^6.0.0-beta.8", | ||
"classnames": "^2.2.6", | ||
@@ -36,5 +36,5 @@ "preact": "^10.5.13" | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.0-beta.8" | ||
"@uppy/core": "^4.0.0-beta.9" | ||
}, | ||
"stableVersion": "3.3.1" | ||
} |
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
193306
2859
Updated@uppy/utils@^6.0.0-beta.8