@uppy/unsplash
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -6,3 +6,3 @@ import { h } from 'preact'; | ||
const packageJson = { | ||
"version": "3.2.1" | ||
"version": "3.2.2" | ||
}; | ||
@@ -13,3 +13,2 @@ /** | ||
*/ | ||
export default class Unsplash extends UIPlugin { | ||
@@ -21,3 +20,2 @@ constructor(uppy, opts) { | ||
Provider.initPlugin(this, opts, {}); | ||
this.icon = () => h("svg", { | ||
@@ -36,7 +34,5 @@ className: "uppy-DashboardTab-iconUnsplash", | ||
}))); | ||
if (!this.opts.companionUrl) { | ||
throw new Error('Companion hostname is required, please consult https://uppy.io/docs/companion'); | ||
} | ||
this.hostname = this.opts.companionUrl; | ||
@@ -51,3 +47,2 @@ this.provider = new SearchProvider(uppy, { | ||
} | ||
install() { | ||
@@ -62,21 +57,18 @@ this.view = new SearchProviderViews(this, { | ||
} = this.opts; | ||
if (target) { | ||
this.mount(target, this); | ||
} | ||
} // eslint-disable-next-line class-methods-use-this | ||
} | ||
onFirstRender() {// do nothing | ||
// eslint-disable-next-line class-methods-use-this | ||
onFirstRender() { | ||
// do nothing | ||
} | ||
render(state) { | ||
return this.view.render(state); | ||
} | ||
uninstall() { | ||
this.unmount(); | ||
} | ||
} | ||
Unsplash.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/unsplash", | ||
"description": "Import files from Unsplash, the free stock photography resource, into Uppy", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"license": "MIT", | ||
@@ -24,9 +24,9 @@ "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" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
@@ -1,5 +0,5 @@ | ||
import type { PluginOptions, UIPlugin, PluginTarget } from '@uppy/core' | ||
import type { RequestClientOptions } from '@uppy/companion-client' | ||
import type { PluginTarget, UIPlugin, UIPluginOptions } from '@uppy/core' | ||
interface UnsplashOptions extends PluginOptions, RequestClientOptions { | ||
interface UnsplashOptions extends UIPluginOptions, RequestClientOptions { | ||
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
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
13695
144
Updated@uppy/provider-views@^3.5.0
Updated@uppy/utils@^5.4.3