SEV-329: @switchev/web-shared package (formatters, markdown, waitForImage) #1
Reference in New Issue
Block a user
Delete Branch "sev-329/web-shared-package"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 3 foundation. Stands up the shared browser-helpers package so the three frontends stop copy-pasting these (and drifting — see SEV-310):
format.js—formatLabel/formatStatus/formatTimeline/formatBudgetmarkdown.js—renderMarkdown(marked + strict DOMPurify; both peer deps)wait-image.js—waitForImage(was byte-identical in public + vendor)ESM source package (no build step — Vite consumers import the source directly).
publishConfigtargets the Gitea npm registry.node --testgreen (formatters).Next steps (separate PRs): publish
v0.1.0to the Gitea npm registry, then migrate each site (public → vendor → admin) to consume@switchev/web-sharedand delete the local copies — one site at a time so a registry/CI-auth issue can't break all three builds at once. SEV-330 (shared Tailwind/Vite/partials) and SEV-331 (vendor pane shell) follow.🤖 Generated with Claude Code