refactor: use new documents interfaces

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-09 19:36:16 -04:00
parent dfdeb30a8b
commit 70903d48a8
14 changed files with 146 additions and 425 deletions
-20
View File
@@ -28,23 +28,3 @@ export interface ContextMenuAction {
disabled?: boolean
divider?: boolean
}
/**
* Shape of an item registered at the `documents_file_viewer` integration point.
* Stored under `meta` so it fits inside a standard `ModuleIntegrationItem`.
*/
export interface DocumentViewerMeta {
/** Exact MIME type matches, e.g. ['application/pdf'] */
mimeTypes?: string[]
/** Glob-style patterns, e.g. ['image/*', 'video/*'] */
mimePatterns?: string[]
}
export interface DocumentViewerItem {
id: string
label?: string
priority?: number
meta: DocumentViewerMeta
/** Async factory returning the Vue viewer component */
component: () => Promise<unknown>
}