feat: Implement tag drag-and-drop functionality

This commit is contained in:
2025-12-08 23:49:50 +01:00
parent 757913cf00
commit c38d88c209
9 changed files with 54 additions and 77 deletions
@@ -48,8 +48,11 @@ interface DocumentsPanelProps extends DocumentsPanelInnerProps {
selectionValue: WorkspaceSelectionValue;
}
import type { TagDragHandlers } from '../interactions/useTagInteractions';
export interface DocumentsViewProps {
entries: DocumentsListEntry[];
tagDragHandlers?: TagDragHandlers;
}
const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
@@ -85,6 +88,7 @@ const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
assetContextValue,
viewStateContextValue,
commandContextValue,
tagDragHandlers,
scrollRef,
hasDocumentEntries,
} = useDocumentsContextValues(props);
@@ -242,6 +246,7 @@ const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
const viewProps = {
entries,
viewId: currentFolderId,
tagDragHandlers,
};
const [iconSizes] = useState({