Adds docs paths for agentflow, cynefin, eventmodeling, ishikawa, radar,
the four railroad variants, swimlane, treeView, usecase, venn and
wardley, taken from packages/mermaid/src/docs/syntax in the mermaid repo
and checked against the published pages (config anchors included).
A new test parses every @mermaid-js/examples sample and fails when a
detected diagram type has no docs entry, so the next new type is caught
on the dependency bump instead of silently linking to the docs home.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Resolve the docs base so a bare mermaid.ai origin maps to
mermaid.ai/open-source instead of a missing page.
- Add a diagram-type catalog (diagramTypes.ts) keyed by mermaid's
detector ids that owns docs paths, visual-edit support and
external-service support. Replaces standardizeDiagramType, the
component-local docMap and the visual-edit set.
- Fixes class diagrams falling back to the docs home page (the detector
id was normalized to 'classDiagram', which the docMap didn't have) and
sequence diagrams never offering visual edit ('sequence' vs
'sequenceDiagram').
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>