mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
The matrix mounted every badge's tooltip up front, hidden by CSS, and re-rendered every row on each keystroke. Tooltips now mount while their badge is hovered or has keyboard focus, are named by aria-describedby and close on Escape. Badges and rows are memoized, each row's search text is built once, the filter makes one pass for its rows and its count, and the table follows deferred search and status values, with expand all and collapse all as transitions, so input stays responsive. The tree and filter passes move to src/lib/compatibility-tree.ts, with unit tests that also render the badges on the server (pnpm test:unit, part of pnpm check). Closes #601 Co-authored-by: jonbaldie <8376953+jonbaldie@users.noreply.github.com>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "@scriptc/docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"packageManager": "pnpm@10.23.0",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"postinstall": "fumadocs-mdx",
|
|
"build": "fumadocs-mdx && next build",
|
|
"start": "next start",
|
|
"typecheck": "fumadocs-mdx && next typegen && tsc --noEmit",
|
|
"test:unit": "node --test test/compatibility-matrix.test.mjs",
|
|
"test:routes": "node scripts/test-routes.mjs",
|
|
"compat:check": "pnpm --dir .. node-compat:check",
|
|
"check": "pnpm compat:check && pnpm typecheck && pnpm test:unit && pnpm build && pnpm test:routes"
|
|
},
|
|
"dependencies": {
|
|
"@vercel/geistdocs": "2.7.8",
|
|
"fumadocs-core": "16.2.2",
|
|
"fumadocs-mdx": "14.0.4",
|
|
"geist": "^1.7.0",
|
|
"next": "16.3.8",
|
|
"react": "19.2.7",
|
|
"react-dom": "19.2.7",
|
|
"shiki": "^4.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/mdx": "^2",
|
|
"@types/mdast": "^4",
|
|
"@types/node": "^22",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5",
|
|
"unist-util-visit": "^5.1.0"
|
|
}
|
|
}
|