@uppy/google-drive
Advanced tools
Comparing version 4.0.0-beta.5 to 4.0.0-beta.6
@@ -15,8 +15,8 @@ import { Provider, tokenStorage, type CompanionPluginOptions } from '@uppy/companion-client'; | ||
files: UppyFile<M, B>[]; | ||
rootFolderId: string | null; | ||
constructor(uppy: Uppy<M, B>, opts: GoogleDriveOptions); | ||
install(): void; | ||
uninstall(): void; | ||
onFirstRender(): Promise<void>; | ||
render(state: unknown): ComponentChild; | ||
} | ||
//# sourceMappingURL=GoogleDrive.d.ts.map |
@@ -9,3 +9,3 @@ import { Provider, getAllowedHosts, tokenStorage } from '@uppy/companion-client'; | ||
const packageJson = { | ||
"version": "4.0.0-beta.5" | ||
"version": "4.0.0-beta.6" | ||
}; | ||
@@ -15,2 +15,3 @@ export default class GoogleDrive extends UIPlugin { | ||
super(uppy, opts); | ||
this.rootFolderId = 'root'; | ||
this.type = 'acquirer'; | ||
@@ -61,3 +62,2 @@ this.storage = this.opts.storage || tokenStorage; | ||
this.title = this.i18n('pluginNameGoogleDrive'); | ||
this.onFirstRender = this.onFirstRender.bind(this); | ||
this.render = this.render.bind(this); | ||
@@ -81,5 +81,2 @@ } | ||
} | ||
async onFirstRender() { | ||
await Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder('root')]); | ||
} | ||
render(state) { | ||
@@ -86,0 +83,0 @@ return this.view.render(state); |
{ | ||
"name": "@uppy/google-drive", | ||
"description": "The Google Drive plugin for Uppy lets users import files from their Google Drive account", | ||
"version": "4.0.0-beta.5", | ||
"version": "4.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -24,11 +24,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^4.0.0-beta.5", | ||
"@uppy/provider-views": "^4.0.0-beta.5", | ||
"@uppy/utils": "^6.0.0-beta.5", | ||
"@uppy/companion-client": "^4.0.0-beta.7", | ||
"@uppy/provider-views": "^4.0.0-beta.7", | ||
"@uppy/utils": "^6.0.0-beta.8", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^4.0.0-beta.5" | ||
"@uppy/core": "^4.0.0-beta.9" | ||
}, | ||
"stableVersion": "3.5.0" | ||
} |
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
25809
256