docs(35): CodeMirror decision note and STACK.md row for the admin code editor
- Document seven exact pins, integrity values, and the too-new flag on @codemirror/view - Add Admin SPA STACK.md rows linking the decision note before any npm install Plan 35-03, task 2 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -81,6 +81,18 @@ Added 2026-10-12 (quick task 261012-s3g). Exact pins in `admin/package.json`, co
|
||||
| @vitest/browser | 3.2.7 (dev) | Vitest browser mode for tests that need a real engine (`npm --prefix admin run test:browser`) | Must match vitest 3.2.7 exactly. See the decision note. |
|
||||
| playwright | 1.60.0 (dev) | Chromium provider for Vitest browser mode | Not the deferred Phase 10 e2e suite (D-23). Needs the chromium build on the machine. See the decision note. |
|
||||
|
||||
Added 2026-11-06 (Phase 35 mail editor). Exact pins in `admin/package.json` after the human legitimacy checkpoint; committed lockfile; installed with `npm ci`. Lazy-loaded from `admin/src/components/form/codeeditor/editor.ts` only.
|
||||
|
||||
| Library | Version | Purpose | Notes |
|
||||
|---------|---------|---------|-------|
|
||||
| @codemirror/state | 6.7.6 | codeeditor field (Phase 35) | Runtime. See `.planning/notes/2026-11-06-admin-code-editor-codemirror.md`. |
|
||||
| @codemirror/view | 6.43.15 | codeeditor field (Phase 35) | Runtime. [SUS] too-new on 2026-11-06 audit (past 7-day cooldown); same maintainer. Checkpoint before install. |
|
||||
| @codemirror/language | 6.13.1 | codeeditor field (Phase 35) | Runtime. See the decision note. |
|
||||
| @codemirror/commands | 6.11.1 | codeeditor field (Phase 35) | Runtime. defaultKeymap without Mod-Enter; no indentWithTab. |
|
||||
| @codemirror/lang-html | 6.4.12 | codeeditor field (Phase 35) | Runtime. `language: html`. |
|
||||
| @codemirror/lang-css | 6.3.1 | codeeditor field (Phase 35) | Runtime. `language: css`. |
|
||||
| @lezer/highlight | 1.2.5 | codeeditor field (Phase 35) | Runtime. Direct pin for HighlightStyle tags. |
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user