Dashboard.d.ts 856 B

123456789101112131415161718192021222324252627282930313233
  1. import { Uppy, Locale } from './CommonTypes';
  2. interface MetaField {
  3. id: string;
  4. name: string;
  5. placeholder?: string;
  6. }
  7. export interface DashboardProps {
  8. uppy: Uppy;
  9. inline?: boolean;
  10. plugins?: Array<string>;
  11. width?: number;
  12. height?: number;
  13. showProgressDetails?: boolean;
  14. showLinkToFileUploadResult?: boolean;
  15. hideUploadButton?: boolean;
  16. hideProgressAfterFinish?: boolean;
  17. note?: string;
  18. metaFields?: Array<MetaField>;
  19. proudlyDisplayPoweredByUppy?: boolean;
  20. disableStatusBar?: boolean;
  21. disableInformer?: boolean;
  22. disableThumbnailGenerator?: boolean;
  23. locale?: Locale;
  24. }
  25. /**
  26. * React Component that renders a Dashboard for an Uppy instance. This component
  27. * renders the Dashboard inline; so you can put it anywhere you want.
  28. */
  29. declare const Dashboard: React.ComponentType<DashboardProps>;
  30. export default Dashboard;