@uppy/instagram
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -6,3 +6,3 @@ import { h } from 'preact'; | ||
const packageJson = { | ||
"version": "3.1.1" | ||
"version": "3.1.2" | ||
}; | ||
@@ -15,3 +15,2 @@ import locale from './locale.js'; | ||
Provider.initPlugin(this, opts); | ||
this.icon = () => h("svg", { | ||
@@ -42,3 +41,2 @@ "aria-hidden": "true", | ||
}))); | ||
this.defaultLocale = locale; | ||
@@ -58,3 +56,2 @@ this.i18nInit(); | ||
} | ||
install() { | ||
@@ -71,3 +68,2 @@ this.view = new ProviderViews(this, { | ||
} = this.opts; | ||
if (target) { | ||
@@ -77,3 +73,2 @@ this.mount(target, this); | ||
} | ||
uninstall() { | ||
@@ -83,12 +78,9 @@ this.view.tearDown(); | ||
} | ||
onFirstRender() { | ||
return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder('recent')]); | ||
} | ||
render(state) { | ||
return this.view.render(state); | ||
} | ||
} | ||
Instagram.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/instagram", | ||
"description": "Import photos and videos from Instagram, into Uppy.", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -27,10 +27,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^3.1.3", | ||
"@uppy/provider-views": "^3.3.0", | ||
"@uppy/utils": "^5.3.0", | ||
"@uppy/companion-client": "^3.3.0", | ||
"@uppy/provider-views": "^3.5.0", | ||
"@uppy/utils": "^5.4.3", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.2.0" | ||
"@uppy/core": "^3.4.0" | ||
} | ||
} |
@@ -1,5 +0,5 @@ | ||
import type { PluginOptions, UIPlugin, PluginTarget } from '@uppy/core' | ||
import type { PluginTarget, UIPlugin, UIPluginOptions } from '@uppy/core' | ||
import type { PublicProviderOptions, TokenStorage } from '@uppy/companion-client' | ||
export interface InstagramOptions extends PluginOptions, PublicProviderOptions { | ||
export interface InstagramOptions extends UIPluginOptions, PublicProviderOptions { | ||
target?: PluginTarget | ||
@@ -6,0 +6,0 @@ title?: string |
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
34127
Updated@uppy/provider-views@^3.5.0
Updated@uppy/utils@^5.4.3