@uppy/instagram
Advanced tools
Comparing version 2.1.1 to 3.0.0-beta
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./Instagram.js"); | ||
export { default } from "./Instagram.js"; |
@@ -1,25 +0,16 @@ | ||
"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 { Provider } from '@uppy/companion-client'; | ||
import { ProviderViews } from '@uppy/provider-views'; | ||
const packageJson = { | ||
"version": "2.1.1" | ||
"version": "3.0.0-beta" | ||
}; | ||
const locale = require("./locale.js"); | ||
class Instagram extends _core.UIPlugin { | ||
import locale from './locale.js'; | ||
export default class Instagram extends UIPlugin { | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
this.id = this.opts.id || 'Instagram'; | ||
Provider.initPlugin(this, opts); | ||
_companionClient.Provider.initPlugin(this, opts); | ||
this.icon = () => (0, _preact.h)("svg", { | ||
this.icon = () => h("svg", { | ||
"aria-hidden": "true", | ||
@@ -30,6 +21,6 @@ focusable: "false", | ||
viewBox: "0 0 32 32" | ||
}, (0, _preact.h)("g", { | ||
}, h("g", { | ||
fill: "none", | ||
fillRule: "evenodd" | ||
}, (0, _preact.h)("rect", { | ||
}, h("rect", { | ||
className: "uppy-ProviderIconBg", | ||
@@ -40,3 +31,3 @@ fill: "#E1306C", | ||
rx: "16" | ||
}), (0, _preact.h)("path", { | ||
}), h("path", { | ||
d: "M16 8.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.67.31.392.144.745.374 1.036.673.299.29.529.644.673 1.035.123.317.27.794.31 1.671.043.95.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671a2.98 2.98 0 0 1-1.708 1.708c-.317.123-.794.27-1.671.31-.95.043-1.234.053-3.637.053s-2.688-.01-3.637-.053c-.877-.04-1.354-.187-1.671-.31a2.788 2.788 0 0 1-1.035-.673 2.788 2.788 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.67.144-.392.374-.745.673-1.036.29-.299.644-.529 1.035-.673.317-.123.794-.27 1.671-.31.95-.043 1.234-.052 3.637-.052zM16 7c-2.444 0-2.75.01-3.71.054-.959.044-1.613.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.813.993-1.039 1.594-.222.572-.374 1.226-.418 2.184C7.01 13.25 7 13.556 7 16s.01 2.75.054 3.71c.044.959.196 1.613.419 2.185.226.6.58 1.145 1.038 1.594.45.458.993.813 1.594 1.038.572.223 1.227.375 2.184.419.96.044 1.267.054 3.711.054s2.75-.01 3.71-.054c.959-.044 1.613-.196 2.185-.419a4.602 4.602 0 0 0 2.632-2.632c.223-.572.375-1.226.419-2.184.044-.96.054-1.267.054-3.711s-.01-2.75-.054-3.71c-.044-.959-.196-1.613-.419-2.185A4.412 4.412 0 0 0 23.49 8.51a4.412 4.412 0 0 0-1.594-1.039c-.572-.222-1.226-.374-2.184-.418C18.75 7.01 18.444 7 16 7zm0 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.421a2.921 2.921 0 1 1 0-5.842 2.921 2.921 0 0 1 0 5.842zm4.875-6.671a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25z", | ||
@@ -49,3 +40,3 @@ fill: "#FFF" | ||
this.title = this.i18n('pluginNameInstagram'); | ||
this.provider = new _companionClient.Provider(uppy, { | ||
this.provider = new Provider(uppy, { | ||
companionUrl: this.opts.companionUrl, | ||
@@ -63,3 +54,3 @@ companionHeaders: this.opts.companionHeaders, | ||
install() { | ||
this.view = new _providerViews.ProviderViews(this, { | ||
this.view = new ProviderViews(this, { | ||
provider: this.provider, | ||
@@ -94,4 +85,2 @@ viewType: 'grid', | ||
} | ||
Instagram.VERSION = packageJson.version; | ||
module.exports = Instagram; | ||
Instagram.VERSION = packageJson.version; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
module.exports = { | ||
export default { | ||
strings: { | ||
@@ -5,0 +3,0 @@ pluginNameInstagram: 'Instagram' |
{ | ||
"name": "@uppy/instagram", | ||
"description": "Import photos and videos from Instagram, into Uppy.", | ||
"version": "2.1.1", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -27,10 +27,11 @@ "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" | ||
}, | ||
"stableVersion": "2.1.1" | ||
} |
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
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
19102
16
178
1
+ Added@transloadit/prettier-bytes@0.3.5(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.1(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.8(transitive)
Updated@uppy/utils@^5.0.0-beta