2026-07-08 21:02:06 +02:00
|
|
|
// Public entrypoint for `evidence-anchor` — the full barrel.
|
2026-07-08 20:37:59 +02:00
|
|
|
//
|
2026-07-08 21:02:06 +02:00
|
|
|
// Mirrors the surface the umbrella previously consumed as `@anchor/index`, so
|
|
|
|
|
// consumers (and their `vi.mock(...)` calls) resolve every anchor symbol from a
|
|
|
|
|
// single specifier. Viewer *code* still lives only under `src/pdf/` (enforced
|
|
|
|
|
// by eslint); this barrel merely re-exports it.
|
2026-07-08 20:37:59 +02:00
|
|
|
//
|
2026-07-08 21:02:06 +02:00
|
|
|
// A focused, viewer-free entry is also available at `evidence-anchor/pdf` for
|
|
|
|
|
// consumers that want the PDF surface explicitly — but importing the package
|
|
|
|
|
// root pulls in the PDF adapter, matching the pre-extraction behaviour.
|
2026-07-08 20:41:54 +02:00
|
|
|
|
2026-07-08 21:02:06 +02:00
|
|
|
// Adapter-side types + the viewer contract.
|
2026-07-08 20:41:54 +02:00
|
|
|
export * from "./types";
|
2026-07-08 21:02:06 +02:00
|
|
|
|
|
|
|
|
// Selector creation / resolution (pure core).
|
2026-07-08 20:41:54 +02:00
|
|
|
export {
|
|
|
|
|
createSelectors,
|
|
|
|
|
resolveSelectors,
|
|
|
|
|
DEFAULT_CONTEXT_CHARS,
|
|
|
|
|
type CreateSelectorsOptions,
|
|
|
|
|
} from "./selectors";
|
2026-07-08 21:02:06 +02:00
|
|
|
|
|
|
|
|
// PDF adapter + helpers (re-exported from the src/pdf/ boundary).
|
|
|
|
|
export {
|
2026-07-09 09:18:42 +02:00
|
|
|
PdfViewerAdapter,
|
2026-07-08 21:02:06 +02:00
|
|
|
PdfSpikeViewer,
|
|
|
|
|
getHighlightClientRects,
|
2026-07-09 09:18:42 +02:00
|
|
|
type PdfViewerAdapterProps,
|
|
|
|
|
type PdfViewerDebugOptions,
|
2026-07-08 21:02:06 +02:00
|
|
|
selectorsFromPdfCapture,
|
|
|
|
|
findPdfRectSelector,
|
|
|
|
|
findTextQuoteSelector,
|
|
|
|
|
unionRect,
|
|
|
|
|
runScrollToHighlightJob,
|
|
|
|
|
DEFAULT_SCROLL_ATTEMPTS,
|
|
|
|
|
type PdfSpikeViewerProps,
|
|
|
|
|
type StoredAnnotation,
|
|
|
|
|
type ScrollToHighlightJob,
|
|
|
|
|
type ScrollToHighlightDeps,
|
|
|
|
|
type ScrollToHighlightState,
|
|
|
|
|
} from "./pdf";
|