@uppy/google-drive
Advanced tools
Comparing version 2.1.1 to 3.0.0-beta
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
var _providerViews = require("@uppy/provider-views"); | ||
class DriveProviderViews extends _providerViews.ProviderViews { | ||
import { ProviderViews } from '@uppy/provider-views'; | ||
export default class DriveProviderViews extends ProviderViews { | ||
toggleCheckbox(e, file) { | ||
@@ -15,4 +12,2 @@ e.stopPropagation(); | ||
} | ||
module.exports = DriveProviderViews; | ||
} |
@@ -1,18 +0,10 @@ | ||
"use strict"; | ||
var _core = require("@uppy/core"); | ||
var _companionClient = require("@uppy/companion-client"); | ||
var _preact = require("preact"); | ||
import { UIPlugin } from '@uppy/core'; | ||
import { Provider } from '@uppy/companion-client'; | ||
import { h } from 'preact'; | ||
const packageJson = { | ||
"version": "2.1.1" | ||
"version": "3.0.0-beta" | ||
}; | ||
const DriveProviderViews = require("./DriveProviderViews.js"); | ||
const locale = require("./locale.js"); | ||
class GoogleDrive extends _core.UIPlugin { | ||
import DriveProviderViews from './DriveProviderViews.js'; | ||
import locale from './locale.js'; | ||
export default class GoogleDrive extends UIPlugin { | ||
constructor(uppy, opts) { | ||
@@ -22,8 +14,6 @@ super(uppy, opts); | ||
this.title = this.opts.title || 'Google Drive'; | ||
_companionClient.Provider.initPlugin(this, opts); | ||
Provider.initPlugin(this, opts); | ||
this.title = this.opts.title || 'Google Drive'; | ||
this.icon = () => (0, _preact.h)("svg", { | ||
this.icon = () => h("svg", { | ||
"aria-hidden": "true", | ||
@@ -34,6 +24,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", | ||
@@ -44,3 +34,3 @@ fill: "#4285F4", | ||
rx: "16" | ||
}), (0, _preact.h)("path", { | ||
}), h("path", { | ||
d: "M25.216 17.736L19.043 7h-6.086l6.175 10.736h6.084zm-11.275.896L10.9 24h11.723l3.04-5.368H13.942zm-1.789-10.29l-5.816 10.29L9.38 24l5.905-10.29-3.132-5.369z", | ||
@@ -50,3 +40,3 @@ fill: "#FFF" | ||
this.provider = new _companionClient.Provider(uppy, { | ||
this.provider = new Provider(uppy, { | ||
companionUrl: this.opts.companionUrl, | ||
@@ -93,4 +83,2 @@ companionHeaders: this.opts.companionHeaders, | ||
} | ||
GoogleDrive.VERSION = packageJson.version; | ||
module.exports = GoogleDrive; | ||
GoogleDrive.VERSION = packageJson.version; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./GoogleDrive.js"); | ||
export { default } from "./GoogleDrive.js"; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
module.exports = { | ||
export default { | ||
strings: { | ||
@@ -5,0 +3,0 @@ pluginNameGoogleDrive: 'Google Drive' |
{ | ||
"name": "@uppy/google-drive", | ||
"description": "The Google Drive plugin for Uppy lets users import files from their Google Drive account", | ||
"version": "2.1.1", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -25,10 +25,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
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
17400
19
195
1
+ Added@transloadit/prettier-bytes@0.3.4(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.0(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