Comparing version 3.0.0-beta.5 to 3.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: BoxOptions); | ||
install(): void; | ||
uninstall(): void; | ||
onFirstRender(): Promise<void>; | ||
render(state: unknown): ComponentChild; | ||
} | ||
//# sourceMappingURL=Box.d.ts.map |
@@ -9,3 +9,3 @@ import { Provider, getAllowedHosts, tokenStorage } from '@uppy/companion-client'; | ||
const packageJson = { | ||
"version": "3.0.0-beta.5" | ||
"version": "3.0.0-beta.6" | ||
}; | ||
@@ -15,2 +15,3 @@ export default class Box extends UIPlugin { | ||
super(uppy, opts); | ||
this.rootFolderId = null; | ||
this.id = this.opts.id || 'Box'; | ||
@@ -48,3 +49,2 @@ this.type = 'acquirer'; | ||
this.title = this.i18n('pluginNameBox'); | ||
this.onFirstRender = this.onFirstRender.bind(this); | ||
this.render = this.render.bind(this); | ||
@@ -68,5 +68,2 @@ } | ||
} | ||
async onFirstRender() { | ||
await Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]); | ||
} | ||
render(state) { | ||
@@ -73,0 +70,0 @@ return this.view.render(state); |
{ | ||
"name": "@uppy/box", | ||
"description": "Import files from Box, into Uppy.", | ||
"version": "3.0.0-beta.5", | ||
"version": "3.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -23,9 +23,9 @@ "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" | ||
}, | ||
@@ -32,0 +32,0 @@ "publishConfig": { |
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
21345
193