|
@@ -1,9 +1,4 @@
|
|
|
-import {
|
|
|
- BasePlugin,
|
|
|
- Uppy,
|
|
|
- type UIPluginOptions,
|
|
|
- type UnknownProviderPlugin,
|
|
|
-} from '@uppy/core'
|
|
|
+import { BasePlugin, Uppy, type UnknownProviderPlugin } from '@uppy/core'
|
|
|
import Dropbox from '@uppy/dropbox'
|
|
|
import GoogleDrive from '@uppy/google-drive'
|
|
|
import GooglePhotos from '@uppy/google-photos'
|
|
@@ -17,6 +12,7 @@ import Zoom from '@uppy/zoom'
|
|
|
|
|
|
import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
|
|
|
import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
|
|
|
+import type { CompanionPluginOptions } from '@uppy/companion-client'
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
|
// @ts-ignore We don't want TS to generate types for the package.json
|
|
|
import packageJson from '../package.json'
|
|
@@ -36,9 +32,8 @@ const availablePlugins = {
|
|
|
Zoom,
|
|
|
}
|
|
|
|
|
|
-export interface RemoteSourcesOptions extends UIPluginOptions {
|
|
|
+export interface RemoteSourcesOptions extends CompanionPluginOptions {
|
|
|
sources?: Array<keyof Omit<typeof availablePlugins, '__proto__'>>
|
|
|
- companionUrl: string
|
|
|
}
|
|
|
|
|
|
const defaultOptions = {
|