@uppy/instagram
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: InstagramOptions); | ||
install(): void; | ||
uninstall(): void; | ||
onFirstRender(): Promise<void>; | ||
render(state: unknown): ComponentChild; | ||
} | ||
//# sourceMappingURL=Instagram.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 Instagram extends UIPlugin { | ||
super(uppy, opts); | ||
this.rootFolderId = 'recent'; | ||
this.type = 'acquirer'; | ||
@@ -58,3 +59,2 @@ this.files = []; | ||
}); | ||
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('recent')]); | ||
} | ||
render(state) { | ||
@@ -86,0 +83,0 @@ return this.view.render(state); |
{ | ||
"name": "@uppy/instagram", | ||
"description": "Import photos and videos from Instagram, into Uppy.", | ||
"version": "4.0.0-beta.5", | ||
"version": "4.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -26,11 +26,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.3.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
38559
265