|
@@ -1,5 +1,6 @@
|
|
import type { PluginOptions, UIPlugin, PluginTarget, UppyFile, GenericEventCallback } from '@uppy/core'
|
|
import type { PluginOptions, UIPlugin, PluginTarget, UppyFile, GenericEventCallback } from '@uppy/core'
|
|
import type { StatusBarLocale } from '@uppy/status-bar'
|
|
import type { StatusBarLocale } from '@uppy/status-bar'
|
|
|
|
+import type { ThumbnailOptions } from '@uppy/thumbnail-generator'
|
|
import DashboardLocale from './generatedLocale'
|
|
import DashboardLocale from './generatedLocale'
|
|
|
|
|
|
type FieldRenderOptions = {
|
|
type FieldRenderOptions = {
|
|
@@ -19,7 +20,9 @@ interface MetaField {
|
|
render?: (field: FieldRenderOptions, h: PreactRender) => any
|
|
render?: (field: FieldRenderOptions, h: PreactRender) => any
|
|
}
|
|
}
|
|
|
|
|
|
-export interface DashboardOptions extends PluginOptions {
|
|
|
|
|
|
+type Options = PluginOptions & ThumbnailOptions
|
|
|
|
+
|
|
|
|
+export interface DashboardOptions extends Options {
|
|
animateOpenClose?: boolean
|
|
animateOpenClose?: boolean
|
|
browserBackButtonClose?: boolean
|
|
browserBackButtonClose?: boolean
|
|
closeAfterFinish?: boolean
|
|
closeAfterFinish?: boolean
|
|
@@ -47,7 +50,6 @@ export interface DashboardOptions extends PluginOptions {
|
|
showRemoveButtonAfterComplete?: boolean
|
|
showRemoveButtonAfterComplete?: boolean
|
|
target?: PluginTarget
|
|
target?: PluginTarget
|
|
theme?: 'auto' | 'dark' | 'light'
|
|
theme?: 'auto' | 'dark' | 'light'
|
|
- thumbnailWidth?: number
|
|
|
|
trigger?: string
|
|
trigger?: string
|
|
width?: string | number
|
|
width?: string | number
|
|
autoOpenFileEditor?: boolean
|
|
autoOpenFileEditor?: boolean
|