@uppy/onedrive
Advanced tools
Comparing version 2.1.1 to 3.0.0-beta
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./OneDrive.js"); | ||
export { default } from "./OneDrive.js"; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
module.exports = { | ||
export default { | ||
strings: { | ||
@@ -5,0 +3,0 @@ pluginNameOneDrive: 'OneDrive' |
@@ -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": "2.1.1" | ||
"version": "3.0.0-beta" | ||
}; | ||
const locale = require("./locale.js"); | ||
class OneDrive extends _core.UIPlugin { | ||
import locale from './locale.js'; | ||
export default class OneDrive extends UIPlugin { | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
this.id = this.opts.id || 'OneDrive'; | ||
_companionClient.Provider.initPlugin(this, opts); | ||
Provider.initPlugin(this, opts); | ||
this.title = this.opts.title || 'OneDrive'; | ||
this.icon = () => (0, _preact.h)("svg", { | ||
this.icon = () => h("svg", { | ||
"aria-hidden": "true", | ||
@@ -32,6 +22,6 @@ focusable: "false", | ||
viewBox: "0 0 32 32" | ||
}, (0, _preact.h)("g", { | ||
}, h("g", { | ||
fill: "none", | ||
fillRule: "evenodd" | ||
}, (0, _preact.h)("rect", { | ||
}, h("rect", { | ||
className: "uppy-ProviderIconBg", | ||
@@ -42,12 +32,12 @@ width: "32", | ||
fill: "#0262C0" | ||
}), (0, _preact.h)("g", { | ||
}), h("g", { | ||
fill: "#FFF", | ||
fillRule: "nonzero" | ||
}, (0, _preact.h)("path", { | ||
}, h("path", { | ||
d: "M24.157 22s1.492-.205 1.79-1.655a2.624 2.624 0 0 0 .03-.878c-.22-1.64-1.988-2.01-1.988-2.01s.307-1.765-1.312-2.69c-1.62-.925-3.1 0-3.1 0S18.711 13 16.366 13c-3.016 0-3.519 3.448-3.519 3.448S10 16.618 10 19.14c0 2.523 2.597 2.86 2.597 2.86h11.56z" | ||
}), (0, _preact.h)("path", { | ||
}), h("path", { | ||
d: "M9.421 19.246c0-2.197 1.606-3.159 2.871-3.472.44-1.477 1.654-3.439 4.135-3.439H16.445c1.721 0 2.79.823 3.368 1.476a3.99 3.99 0 0 1 1.147-.171h.01l.03.002C21.017 13.5 20.691 10 16.757 10c-2.69 0-3.639 2.345-3.639 2.345s-1.95-1.482-3.955.567c-1.028 1.052-.79 2.669-.79 2.669S6 15.824 6 18.412C6 20.757 8.452 21 8.452 21h1.372a3.77 3.77 0 0 1-.403-1.754z" | ||
})))); | ||
this.provider = new _companionClient.Provider(uppy, { | ||
this.provider = new Provider(uppy, { | ||
companionUrl: this.opts.companionUrl, | ||
@@ -67,3 +57,3 @@ companionHeaders: this.opts.companionHeaders, | ||
install() { | ||
this.view = new _providerViews.ProviderViews(this, { | ||
this.view = new ProviderViews(this, { | ||
provider: this.provider | ||
@@ -94,4 +84,2 @@ }); | ||
} | ||
OneDrive.VERSION = packageJson.version; | ||
module.exports = OneDrive; | ||
OneDrive.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/onedrive", | ||
"description": "Import files from OneDrive, into Uppy.", | ||
"version": "2.1.1", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -24,10 +24,11 @@ "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", | ||
"@uppy/provider-views": "^3.0.0-beta", | ||
"@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" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
16305
16
169
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.8(transitive)
Updated@uppy/utils@^5.0.0-beta