Wire HtmlViewerAdapter into ViewerShell for HTML/Markdown documents
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

UploadDropzone accepts HTML/MD files; ViewerShell routes by
representationType; PendingSelection uses SelectionCapture union.
This commit is contained in:
tegwick 2026-07-09 09:58:41 +02:00
parent 0cd2ca5d04
commit 589b8356b4
5 changed files with 208 additions and 95 deletions

View file

@ -30,7 +30,7 @@ import {
restoreFromStorage,
type Engine,
} from "@engine/index";
import type { PdfSelectionCapture } from "@citation-evidence/evidence-anchor";
import type { SelectionCapture } from "@citation-evidence/evidence-anchor";
import { createPdfByteStore, type PdfByteStore } from "@source/index";
import { useContext as useReactContext } from "react";
import { SessionInternalContext } from "./SessionContextInternal";
@ -60,7 +60,7 @@ function activeDocumentKeyFor(sessionId: SessionId | null): string {
* `null` means "no selection waiting for a comment".
*/
export interface PendingSelection {
readonly capture: PdfSelectionCapture;
readonly capture: SelectionCapture;
readonly selectors: readonly Selector[];
}