@uppy/unsplash
Advanced tools
Comparing version 2.1.0 to 3.0.0-beta
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./Unsplash.js"); | ||
export { default } from "./Unsplash.js"; |
@@ -1,13 +0,7 @@ | ||
"use strict"; | ||
var _preact = require("preact"); | ||
var _core = require("@uppy/core"); | ||
var _companionClient = require("@uppy/companion-client"); | ||
var _providerViews = require("@uppy/provider-views"); | ||
import { h } from 'preact'; | ||
import { UIPlugin } from '@uppy/core'; | ||
import { SearchProvider, Provider } from '@uppy/companion-client'; | ||
import { SearchProviderViews } from '@uppy/provider-views'; | ||
const packageJson = { | ||
"version": "2.1.0" | ||
"version": "3.0.0-beta" | ||
}; | ||
@@ -19,3 +13,3 @@ /** | ||
class Unsplash extends _core.UIPlugin { | ||
export default class Unsplash extends UIPlugin { | ||
constructor(uppy, opts) { | ||
@@ -25,6 +19,5 @@ super(uppy, opts); | ||
this.title = this.opts.title || 'Unsplash'; | ||
Provider.initPlugin(this, opts, {}); | ||
_companionClient.Provider.initPlugin(this, opts, {}); | ||
this.icon = () => (0, _preact.h)("svg", { | ||
this.icon = () => h("svg", { | ||
viewBox: "0 0 32 32", | ||
@@ -34,6 +27,6 @@ height: "32", | ||
"aria-hidden": "true" | ||
}, (0, _preact.h)("path", { | ||
}, h("path", { | ||
d: "M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z", | ||
fill: "#fff" | ||
}), (0, _preact.h)("rect", { | ||
}), h("rect", { | ||
className: "uppy-ProviderIconBg", | ||
@@ -43,3 +36,3 @@ width: "32", | ||
rx: "16" | ||
}), (0, _preact.h)("path", { | ||
}), h("path", { | ||
d: "M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z", | ||
@@ -54,3 +47,3 @@ fill: "#fff" | ||
this.hostname = this.opts.companionUrl; | ||
this.provider = new _companionClient.SearchProvider(uppy, { | ||
this.provider = new SearchProvider(uppy, { | ||
companionUrl: this.opts.companionUrl, | ||
@@ -65,3 +58,3 @@ companionHeaders: this.opts.companionHeaders, | ||
install() { | ||
this.view = new _providerViews.SearchProviderViews(this, { | ||
this.view = new SearchProviderViews(this, { | ||
provider: this.provider, | ||
@@ -92,4 +85,2 @@ viewType: 'unsplash' | ||
} | ||
Unsplash.VERSION = packageJson.version; | ||
module.exports = Unsplash; | ||
Unsplash.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/unsplash", | ||
"description": "Import files from Unsplash, the free stock photography resource, into Uppy", | ||
"version": "2.1.0", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -24,13 +24,14 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^2.2.0", | ||
"@uppy/provider-views": "^2.1.1", | ||
"@uppy/utils": "^4.1.0", | ||
"@uppy/companion-client": "^3.0.0-beta", | ||
"@uppy/provider-views": "^3.0.0-beta", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.3.0" | ||
"@uppy/core": "^3.0.0-beta" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"stableVersion": "2.1.0" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12838
0
12
143
1
+ Added@transloadit/prettier-bytes@0.3.4(transitive)
+ Added@types/retry@0.12.2(transitive)
+ Added@uppy/companion-client@3.8.2(transitive)
+ Added@uppy/core@3.13.1(transitive)
+ Added@uppy/provider-views@3.13.0(transitive)
+ Added@uppy/store-default@3.2.2(transitive)
+ Added@uppy/utils@5.9.0(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addedis-network-error@1.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoid@4.0.2(transitive)
+ Addedp-queue@7.4.1(transitive)
+ Addedp-retry@6.2.0(transitive)
+ Addedp-timeout@5.1.0(transitive)
+ Addedretry@0.13.1(transitive)
- Removed@transloadit/prettier-bytes@0.0.7(transitive)
- Removed@uppy/companion-client@2.2.2(transitive)
- Removed@uppy/core@2.3.4(transitive)
- Removed@uppy/provider-views@2.1.3(transitive)
- Removed@uppy/store-default@2.1.1(transitive)
- Removed@uppy/utils@4.1.3(transitive)
- Removedlodash.throttle@4.1.1(transitive)
- Removednanoid@3.3.7(transitive)
Updated@uppy/utils@^5.0.0-beta