@uppy/zoom
Advanced tools
Comparing version 1.1.1 to 2.0.0-beta.1
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./Zoom.js"); | ||
export { default } from "./Zoom.js"; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
module.exports = { | ||
export default { | ||
strings: { | ||
@@ -5,0 +3,0 @@ pluginNameZoom: 'Zoom' |
@@ -1,27 +0,17 @@ | ||
"use strict"; | ||
var _preact = require("preact"); | ||
var _core = require("@uppy/core"); | ||
var _companionClient = require("@uppy/companion-client"); | ||
var _providerViews = require("@uppy/provider-views"); | ||
import { h } from 'preact'; | ||
import { UIPlugin } from '@uppy/core'; | ||
import { Provider } from '@uppy/companion-client'; | ||
import { ProviderViews } from '@uppy/provider-views'; | ||
const packageJson = { | ||
"version": "1.1.1" | ||
"version": "2.0.0-beta.1" | ||
}; | ||
const locale = require("./locale.js"); | ||
class Zoom extends _core.UIPlugin { | ||
import locale from './locale.js'; | ||
export default class Zoom extends UIPlugin { | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
this.id = this.opts.id || 'Zoom'; | ||
_companionClient.Provider.initPlugin(this, opts); | ||
Provider.initPlugin(this, opts); | ||
this.title = this.opts.title || 'Zoom'; | ||
this.icon = () => (0, _preact.h)("svg", { | ||
this.icon = () => h("svg", { | ||
"aria-hidden": "true", | ||
@@ -32,3 +22,3 @@ focusable: "false", | ||
viewBox: "0 0 32 32" | ||
}, (0, _preact.h)("rect", { | ||
}, h("rect", { | ||
className: "uppy-ProviderIconBg", | ||
@@ -39,6 +29,6 @@ width: "32", | ||
fill: "#0E71EB" | ||
}), (0, _preact.h)("g", { | ||
}), h("g", { | ||
fill: "none", | ||
fillRule: "evenodd" | ||
}, (0, _preact.h)("path", { | ||
}, h("path", { | ||
fill: "#fff", | ||
@@ -49,3 +39,3 @@ d: "M29,31H14c-1.657,0-3-1.343-3-3V17h15c1.657,0,3,1.343,3,3V31z", | ||
} | ||
}), (0, _preact.h)("polygon", { | ||
}), h("polygon", { | ||
fill: "#fff", | ||
@@ -58,3 +48,3 @@ points: "37,31 31,27 31,21 37,17", | ||
this.provider = new _companionClient.Provider(uppy, { | ||
this.provider = new Provider(uppy, { | ||
companionUrl: this.opts.companionUrl, | ||
@@ -75,3 +65,3 @@ companionHeaders: this.opts.companionHeaders, | ||
install() { | ||
this.view = new _providerViews.ProviderViews(this, { | ||
this.view = new ProviderViews(this, { | ||
provider: this.provider | ||
@@ -102,4 +92,2 @@ }); | ||
} | ||
Zoom.VERSION = packageJson.version; | ||
module.exports = Zoom; | ||
Zoom.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/zoom", | ||
"description": "Import files from zoom, into Uppy.", | ||
"version": "1.1.1", | ||
"version": "2.0.0-beta.1", | ||
"license": "MIT", | ||
@@ -24,13 +24,14 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^2.2.0", | ||
"@uppy/provider-views": "^2.1.1", | ||
"@uppy/utils": "^4.1.0", | ||
"@uppy/companion-client": "^3.0.0-beta.1", | ||
"@uppy/provider-views": "^3.0.0-beta.1", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.3.0" | ||
"@uppy/core": "^3.0.0-beta.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"stableVersion": "1.1.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
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
15186
16
172
1
+ Added@transloadit/prettier-bytes@0.3.5(transitive)
+ Added@types/retry@0.12.2(transitive)
+ Added@uppy/companion-client@3.8.2(transitive)
+ Added@uppy/core@3.13.1(transitive)
+ Added@uppy/provider-views@3.13.0(transitive)
+ Added@uppy/store-default@3.2.2(transitive)
+ Added@uppy/utils@5.9.0(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addedis-network-error@1.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoid@4.0.2(transitive)
+ Addedp-queue@7.4.1(transitive)
+ Addedp-retry@6.2.1(transitive)
+ Addedp-timeout@5.1.0(transitive)
+ Addedretry@0.13.1(transitive)
- Removed@transloadit/prettier-bytes@0.0.7(transitive)
- Removed@uppy/companion-client@2.2.2(transitive)
- Removed@uppy/core@2.3.4(transitive)
- Removed@uppy/provider-views@2.1.3(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