@uppy/zoom
Advanced tools
Comparing version 3.0.0-beta to 3.0.0-beta.1
# @uppy/zoom | ||
## 3.0.0-beta.1 | ||
Released: 2024-03-28 | ||
Included in: Uppy v4.0.0-beta.1 | ||
- @uppy/zoom: refactor to TypeScript (Murderlon / #4979) | ||
## 2.3.0 | ||
Released: 2024-03-27 | ||
Included in: Uppy v3.24.0 | ||
- @uppy/zoom: refactor to TypeScript (Murderlon / #4979) | ||
## 2.0.1 | ||
Released: 2022-09-25 | ||
Included in: Uppy v3.1.0 | ||
- @uppy/audio,@uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/companion,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/redux-dev-tools,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/store-redux,@uppy/svelte,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: add missing entries to changelog for individual packages (Antoine du Hamel / #4092) | ||
## 2.0.0 | ||
Released: 2022-08-22 | ||
Included in: Uppy v3.0.0 | ||
- Switch to ESM | ||
## 1.1.1 | ||
@@ -4,0 +32,0 @@ |
@@ -1,16 +0,18 @@ | ||
import { h } from 'preact'; | ||
import { Provider, getAllowedHosts, tokenStorage } from '@uppy/companion-client'; | ||
import { UIPlugin } from '@uppy/core'; | ||
import { Provider } from '@uppy/companion-client'; | ||
import { ProviderViews } from '@uppy/provider-views'; | ||
import { h } from 'preact'; | ||
import locale from "./locale.js"; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore We don't want TS to generate types for the package.json | ||
const packageJson = { | ||
"version": "3.0.0-beta" | ||
"version": "3.0.0-beta.1" | ||
}; | ||
import locale from './locale.js'; | ||
export default class Zoom extends UIPlugin { | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
this.type = 'acquirer'; | ||
this.files = []; | ||
this.storage = this.opts.storage || tokenStorage; | ||
this.id = this.opts.id || 'Zoom'; | ||
Provider.initPlugin(this, opts); | ||
this.title = this.opts.title || 'Zoom'; | ||
this.icon = () => h("svg", { | ||
@@ -22,25 +24,8 @@ "aria-hidden": "true", | ||
viewBox: "0 0 32 32" | ||
}, h("rect", { | ||
className: "uppy-ProviderIconBg", | ||
width: "32", | ||
height: "32", | ||
rx: "16", | ||
fill: "#0E71EB" | ||
}), h("g", { | ||
fill: "none", | ||
fillRule: "evenodd" | ||
}, h("path", { | ||
fill: "#fff", | ||
d: "M29,31H14c-1.657,0-3-1.343-3-3V17h15c1.657,0,3,1.343,3,3V31z", | ||
style: { | ||
transform: 'translate(-5px, -5px) scale(0.9)' | ||
} | ||
}), h("polygon", { | ||
fill: "#fff", | ||
points: "37,31 31,27 31,21 37,17", | ||
style: { | ||
transform: 'translate(-5px, -5px) scale(0.9)' | ||
} | ||
}))); | ||
d: "M24.5 11.125l-2.75 2.063c-.473.353-.75.91-.75 1.5v3.124c0 .59.277 1.147.75 1.5l2.75 2.063a.938.938 0 001.5-.75v-8.75a.938.938 0 00-1.5-.75zm-4.75 9.5c0 1.035-.84 1.875-1.875 1.875H9.75A3.75 3.75 0 016 18.75v-6.875C6 10.84 6.84 10 7.875 10H16a3.75 3.75 0 013.75 3.75v6.875z", | ||
fill: "#2E8CFF", | ||
"fill-rule": "evenodd" | ||
})); | ||
this.opts.companionAllowedHosts = getAllowedHosts(this.opts.companionAllowedHosts, this.opts.companionUrl); | ||
this.provider = new Provider(uppy, { | ||
@@ -52,3 +37,4 @@ companionUrl: this.opts.companionUrl, | ||
provider: 'zoom', | ||
pluginId: this.id | ||
pluginId: this.id, | ||
supportsRefreshToken: false | ||
}); | ||
@@ -61,3 +47,2 @@ this.defaultLocale = locale; | ||
} | ||
install() { | ||
@@ -70,3 +55,2 @@ this.view = new ProviderViews(this, { | ||
} = this.opts; | ||
if (target) { | ||
@@ -76,3 +60,2 @@ this.mount(target, this); | ||
} | ||
uninstall() { | ||
@@ -82,12 +65,9 @@ this.view.tearDown(); | ||
} | ||
onFirstRender() { | ||
return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]); | ||
async onFirstRender() { | ||
await Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]); | ||
} | ||
render(state) { | ||
return this.view.render(state); | ||
} | ||
} | ||
Zoom.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/zoom", | ||
"description": "Import files from zoom, into Uppy.", | ||
"version": "3.0.0-beta", | ||
"version": "3.0.0-beta.1", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"types": "types/index.d.ts", | ||
"type": "module", | ||
@@ -24,9 +23,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@uppy/companion-client": "^3.0.0-beta", | ||
"@uppy/provider-views": "^3.0.0-beta", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"@uppy/companion-client": "^4.0.0-beta.1", | ||
"@uppy/provider-views": "^4.0.0-beta.1", | ||
"@uppy/utils": "^6.0.0-beta.1", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.0.0-beta" | ||
"@uppy/core": "^4.0.0-beta.1" | ||
}, | ||
@@ -36,3 +35,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "1.1.1" | ||
"stableVersion": "2.3.0" | ||
} |
# @uppy/zoom | ||
<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right"> | ||
<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right"> | ||
@@ -5,0 +5,0 @@ [![npm version](https://img.shields.io/npm/v/@uppy/zoom.svg?style=flat-square)](https://www.npmjs.com/package/@uppy/zoom) |
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
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
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
20111
19
195
1
1
+ Added@uppy/companion-client@4.1.0(transitive)
+ Added@uppy/core@4.2.0(transitive)
+ Added@uppy/provider-views@4.0.1(transitive)
+ Added@uppy/store-default@4.1.0(transitive)
+ Added@uppy/utils@6.0.2(transitive)
+ Addednanoid@5.0.7(transitive)
+ Addedp-queue@8.0.1(transitive)
+ Addedp-timeout@6.1.2(transitive)
- Removed@uppy/companion-client@3.8.2(transitive)
- Removed@uppy/core@3.13.1(transitive)
- Removed@uppy/provider-views@3.13.0(transitive)
- Removed@uppy/store-default@3.2.2(transitive)
- Removed@uppy/utils@5.9.0(transitive)
- Removednanoid@4.0.2(transitive)
- Removedp-queue@7.4.1(transitive)
- Removedp-timeout@5.1.0(transitive)
Updated@uppy/utils@^6.0.0-beta.1