Remove document link and download URL management from frontend components

This commit is contained in:
2025-12-04 00:23:27 +01:00
parent 4b02d1c7d5
commit 9f88823315
4 changed files with 3 additions and 127 deletions
@@ -2,11 +2,6 @@ import { useMemo } from 'react';
import type { WorkspaceSelectionValue } from '../../app/WorkspaceSelectionContext';
import type { Identifier } from '../../types/identifiers';
interface DocumentLinkLike {
url?: string | null;
mimeType?: string | null;
}
export interface Breadcrumb {
id?: Identifier;
name?: string;
@@ -68,8 +63,6 @@ export interface UseDocumentsPanelPropsArgs {
handleBulkSelectionReanalyze?: (...args: unknown[]) => void;
folderOptions?: unknown[];
moveDocumentsToFolder?: (...args: unknown[]) => void;
documentLinks?: Map<Identifier, DocumentLinkLike>;
ensureDownloadUrl?: (documentId: Identifier, options?: { force?: boolean }) => Promise<DocumentLinkLike | null>;
selectionValue: WorkspaceSelectionValue;
currentTenantId?: Identifier | null;
}
@@ -124,8 +117,6 @@ const useDocumentsPanelProps = (props: UseDocumentsPanelPropsArgs) => {
handleBulkSelectionReanalyze,
folderOptions,
moveDocumentsToFolder,
documentLinks,
ensureDownloadUrl,
selectionValue,
currentTenantId,
} = props;
@@ -181,8 +172,6 @@ const useDocumentsPanelProps = (props: UseDocumentsPanelPropsArgs) => {
onBulkReanalyze: handleBulkSelectionReanalyze,
folderOptions,
onMoveDocumentsToFolder: moveDocumentsToFolder,
documentLinks,
ensureDownloadUrl,
selectionValue,
currentTenantId,
}),
@@ -233,8 +222,6 @@ const useDocumentsPanelProps = (props: UseDocumentsPanelPropsArgs) => {
ensureAssetUrl,
getDocumentAsset,
folderOptions,
documentLinks,
ensureDownloadUrl,
selectionValue,
currentTenantId,
],