Wire HtmlViewerAdapter into ViewerShell for HTML/Markdown documents
UploadDropzone accepts HTML/MD files; ViewerShell routes by representationType; PendingSelection uses SelectionCapture union.
This commit is contained in:
parent
0cd2ca5d04
commit
589b8356b4
5 changed files with 208 additions and 95 deletions
|
|
@ -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[];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue