@uppy/progress-bar
Advanced tools
Comparing version 2.1.1 to 3.0.0-beta
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./ProgressBar.js"); | ||
export { default } from "./ProgressBar.js"; |
@@ -1,9 +0,5 @@ | ||
"use strict"; | ||
var _preact = require("preact"); | ||
var _core = require("@uppy/core"); | ||
import { h } from 'preact'; | ||
import { UIPlugin } from '@uppy/core'; | ||
const packageJson = { | ||
"version": "2.1.1" | ||
"version": "3.0.0-beta" | ||
}; | ||
@@ -15,3 +11,3 @@ /** | ||
class ProgressBar extends _core.UIPlugin { | ||
export default class ProgressBar extends UIPlugin { | ||
constructor(uppy, opts) { | ||
@@ -21,3 +17,3 @@ super(uppy, opts); | ||
this.title = 'Progress Bar'; | ||
this.type = 'progressindicator'; // set default options | ||
this.type = 'progressindicator'; // set default options, must kept in sync with @uppy/react/src/ProgressBar.js | ||
@@ -40,3 +36,3 @@ const defaultOptions = { | ||
const isHidden = (progress === 0 || progress === 100) && this.opts.hideAfterFinish; | ||
return (0, _preact.h)("div", { | ||
return h("div", { | ||
className: "uppy uppy-ProgressBar", | ||
@@ -47,3 +43,3 @@ style: { | ||
"aria-hidden": isHidden | ||
}, (0, _preact.h)("div", { | ||
}, h("div", { | ||
className: "uppy-ProgressBar-inner", | ||
@@ -53,3 +49,3 @@ style: { | ||
} | ||
}), (0, _preact.h)("div", { | ||
}), h("div", { | ||
className: "uppy-ProgressBar-percentage" | ||
@@ -74,4 +70,2 @@ }, progress)); | ||
} | ||
ProgressBar.VERSION = packageJson.version; | ||
module.exports = ProgressBar; | ||
ProgressBar.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/progress-bar", | ||
"description": "A progress bar UI for Uppy", | ||
"version": "2.1.1", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -27,8 +27,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^4.1.0", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.3.0" | ||
} | ||
"@uppy/core": "^3.0.0-beta" | ||
}, | ||
"stableVersion": "2.1.1" | ||
} |
@@ -19,3 +19,3 @@ import { h } from 'preact' | ||
// set default options | ||
// set default options, must kept in sync with @uppy/react/src/ProgressBar.js | ||
const defaultOptions = { | ||
@@ -22,0 +22,0 @@ target: 'body', |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
12829
15
154
1
+ Added@transloadit/prettier-bytes@0.3.4(transitive)
+ Added@uppy/core@3.13.1(transitive)
+ Added@uppy/store-default@3.2.2(transitive)
+ Added@uppy/utils@5.9.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoid@4.0.2(transitive)
- Removed@transloadit/prettier-bytes@0.0.7(transitive)
- Removed@uppy/core@2.3.4(transitive)
- Removed@uppy/store-default@2.1.1(transitive)
- Removed@uppy/utils@4.1.3(transitive)
- Removedlodash.throttle@4.1.1(transitive)
- Removednanoid@3.3.7(transitive)
Updated@uppy/utils@^5.0.0-beta