WP-0002: stale vs unresolved resolution, orphaned flag/helper, bounded fuzzy quote recovery, and PdfViewerAdapter promotion with resolveSelectors integration. WP-0003: DomSelectionCapture, DOM create/resolve ladder, HtmlViewerAdapter under evidence-anchor/dom, and finished workplans. Verification: 42 anchor tests, citation-evidence typecheck + 51 tests green.
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
{
|
|
"name": "@citation-evidence/evidence-anchor",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Selector creation, resolution, re-anchoring, and highlight/scroll contracts for the citation-evidence ecosystem.",
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"packageManager": "pnpm@9.15.0",
|
|
"engines": {
|
|
"node": ">=20.10.0"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"README.md",
|
|
"SCOPE.md",
|
|
"INTENT.md",
|
|
"LICENSE"
|
|
],
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./selectors": "./src/selectors/index.ts",
|
|
"./types": "./src/types.ts",
|
|
"./pdf": "./src/pdf/index.ts",
|
|
"./dom": "./src/dom/index.ts"
|
|
},
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc -b --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@citation-evidence/engine": "link:../citation-engine"
|
|
},
|
|
"peerDependencies": {
|
|
"pdfjs-dist": "^4.4.168",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-pdf-highlighter-plus": "^1.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/node": "^20.14.0",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"eslint": "^9.7.0",
|
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
"eslint-plugin-import": "^2.30.0",
|
|
"globals": "^15.9.0",
|
|
"happy-dom": "^20.9.0",
|
|
"pdfjs-dist": "^4.4.168",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-pdf-highlighter-plus": "^1.1.4",
|
|
"typescript": "^5.5.4",
|
|
"typescript-eslint": "^8.0.0",
|
|
"vitest": "^2.0.5"
|
|
}
|
|
}
|