UNPKG

@uppy/remote-sources

Version:

Uppy plugin that includes all remote sources that Uppy+Companion offer, like Instagram, Google Drive, Dropox, Box, Unsplash, Url etc

25 lines 1.14 kB
import { BasePlugin } from '@uppy/core'; import type { Uppy, DefinePluginOpts, Body, Meta } from '@uppy/core'; import type { CompanionPluginOptions } from '@uppy/companion-client'; type AvailablePluginsKeys = 'Box' | 'Dropbox' | 'Facebook' | 'GoogleDrive' | 'GooglePhotos' | 'Instagram' | 'OneDrive' | 'Unsplash' | 'Url' | 'Zoom'; type NestedCompanionKeysParams = { [key in AvailablePluginsKeys]?: CompanionPluginOptions['companionKeysParams']; }; export interface RemoteSourcesOptions extends Omit<CompanionPluginOptions, 'companionKeysParams'> { sources?: Array<AvailablePluginsKeys>; companionKeysParams?: NestedCompanionKeysParams; } declare const defaultOptions: { sources: AvailablePluginsKeys[]; }; type Opts = DefinePluginOpts<RemoteSourcesOptions, keyof typeof defaultOptions>; export default class RemoteSources<M extends Meta, B extends Body> extends BasePlugin<Opts, M, B> { #private; static VERSION: any; constructor(uppy: Uppy<M, B>, opts: RemoteSourcesOptions); setOptions(newOpts: Partial<Opts>): void; install(): void; uninstall(): void; } export {}; //# sourceMappingURL=index.d.ts.map