|
@@ -1,29 +1,31 @@
|
|
|
import { Plugin, PluginOptions, Uppy } from '@uppy/core';
|
|
|
|
|
|
-export interface DashboardOptions extends PluginOptions {
|
|
|
- onRequestCloseModal: () => void;
|
|
|
- disablePageScrollWhenModalOpen: boolean;
|
|
|
- closeModalOnClickOutside: boolean;
|
|
|
- trigger: string | HTMLElement;
|
|
|
- inline: boolean;
|
|
|
- defaultTabIcon: string;
|
|
|
- hideUploadButton: boolean;
|
|
|
- width: string | number;
|
|
|
- height: string | number;
|
|
|
- note: string;
|
|
|
- showLinkToFileUploadResult: boolean;
|
|
|
- proudlyDisplayPoweredByUppy: boolean;
|
|
|
- metaFields: string[];
|
|
|
- plugins: string[];
|
|
|
- disableStatusBar: boolean;
|
|
|
- showProgressDetails: boolean;
|
|
|
- hideProgressAfterFinish: boolean;
|
|
|
- disableInformer: boolean;
|
|
|
- disableThumbnailGenerator: boolean;
|
|
|
+declare module Dashboard {
|
|
|
+ interface DashboardOptions extends PluginOptions {
|
|
|
+ onRequestCloseModal: () => void;
|
|
|
+ disablePageScrollWhenModalOpen: boolean;
|
|
|
+ closeModalOnClickOutside: boolean;
|
|
|
+ trigger: string | HTMLElement;
|
|
|
+ inline: boolean;
|
|
|
+ defaultTabIcon: string;
|
|
|
+ hideUploadButton: boolean;
|
|
|
+ width: string | number;
|
|
|
+ height: string | number;
|
|
|
+ note: string;
|
|
|
+ showLinkToFileUploadResult: boolean;
|
|
|
+ proudlyDisplayPoweredByUppy: boolean;
|
|
|
+ metaFields: string[];
|
|
|
+ plugins: string[];
|
|
|
+ disableStatusBar: boolean;
|
|
|
+ showProgressDetails: boolean;
|
|
|
+ hideProgressAfterFinish: boolean;
|
|
|
+ disableInformer: boolean;
|
|
|
+ disableThumbnailGenerator: boolean;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-export default class Dashboard extends Plugin {
|
|
|
- constructor(uppy: Uppy, opts: Partial<DashboardOptions>);
|
|
|
+declare class Dashboard extends Plugin {
|
|
|
+ constructor(uppy: Uppy, opts: Partial<Dashboard.DashboardOptions>);
|
|
|
addTarget(plugin: Plugin): HTMLElement;
|
|
|
hideAllPanels(): void;
|
|
|
openModal(): void;
|
|
@@ -34,8 +36,10 @@ export default class Dashboard extends Plugin {
|
|
|
uninstall(): void;
|
|
|
}
|
|
|
|
|
|
+export = Dashboard;
|
|
|
+
|
|
|
declare module '@uppy/core' {
|
|
|
export interface Uppy {
|
|
|
- use(pluginClass: typeof Dashboard, opts: Partial<DashboardOptions>): Uppy;
|
|
|
+ use(pluginClass: typeof Dashboard, opts: Partial<Dashboard.DashboardOptions>): Uppy;
|
|
|
}
|
|
|
}
|