zombie-mermaid 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -0
  2. package/dist/cli.js +1363 -127
  3. package/dist/index.cjs +1363 -127
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +60 -2
  6. package/dist/index.d.ts +60 -2
  7. package/dist/index.js +1363 -127
  8. package/dist/index.js.map +1 -1
  9. package/package.json +5 -3
  10. package/src/__tests__/ascii-cjk-width.test.ts +6 -41
  11. package/src/__tests__/ascii-multibox-cjk-width.test.ts +184 -0
  12. package/src/__tests__/ascii-shapes-special.test.ts +48 -0
  13. package/src/__tests__/edge-bundling-node-clearance.test.ts +179 -0
  14. package/src/__tests__/expanded-shapes.test.ts +229 -0
  15. package/src/__tests__/flowchart-syntax-gaps.test.ts +371 -0
  16. package/src/__tests__/guides-examples.test.ts +181 -0
  17. package/src/__tests__/helpers/terminal-display-width.ts +46 -0
  18. package/src/__tests__/integration.test.ts +107 -0
  19. package/src/__tests__/interactivity-config.test.ts +559 -0
  20. package/src/__tests__/nested-subgraph-direction-crossing.test.ts +7 -7
  21. package/src/__tests__/sequence-integration.test.ts +28 -0
  22. package/src/__tests__/statements.test.ts +247 -0
  23. package/src/__tests__/theme.test.ts +24 -0
  24. package/src/ascii/class-diagram.ts +17 -20
  25. package/src/ascii/converter.ts +17 -1
  26. package/src/ascii/draw-arrows.ts +17 -4
  27. package/src/ascii/draw-boxes.ts +47 -20
  28. package/src/ascii/draw-lines.ts +9 -0
  29. package/src/ascii/draw.ts +1 -0
  30. package/src/ascii/er-diagram.ts +19 -21
  31. package/src/ascii/sequence.ts +2 -4
  32. package/src/ascii/shapes/corners.ts +143 -0
  33. package/src/ascii/shapes/index.ts +4 -0
  34. package/src/ascii/shapes/special.ts +42 -0
  35. package/src/ascii/types.ts +1 -1
  36. package/src/ascii/xychart.ts +2 -4
  37. package/src/browser.ts +11 -0
  38. package/src/class/renderer.ts +11 -1
  39. package/src/diagram-type.ts +7 -4
  40. package/src/edge-curves.ts +205 -0
  41. package/src/er/renderer.ts +11 -1
  42. package/src/expanded-shapes.ts +376 -0
  43. package/src/index.ts +54 -9
  44. package/src/init-directive.ts +248 -0
  45. package/src/layout-engine/edge-bundling.ts +96 -4
  46. package/src/layout-engine/from-elk.ts +21 -3
  47. package/src/layout-engine/to-elk.ts +8 -1
  48. package/src/multiline-utils.ts +13 -1
  49. package/src/parser.ts +347 -53
  50. package/src/renderer.ts +682 -19
  51. package/src/sequence/renderer.ts +11 -1
  52. package/src/statements.ts +161 -0
  53. package/src/theme.ts +49 -1
  54. package/src/types.ts +82 -1
  55. package/src/xychart/renderer.ts +13 -6
package/README.md CHANGED
@@ -117,10 +117,12 @@ zombie-mermaid --help # Show all options
117
117
 
118
118
  ## Docs
119
119
 
120
+ - [Guides](docs/guides/) — task-oriented walkthroughs: [browsing the samples](docs/guides/samples.md), [choosing a theme](docs/guides/theming.md)
120
121
  - [Theming](docs/theming.md) — the two-color foundation, enriched mode, built-in themes, custom themes, Shiki compatibility
121
122
  - [Supported Diagrams](docs/diagrams.md) — syntax for every diagram type, XY chart styling, and ASCII rendering options
122
123
  - [React Integration](docs/react-integration.md) — zero-flash rendering with `useMemo()`
123
124
  - [API Reference](docs/api-reference.md) — full function and options reference
125
+ - [Migrating from `beautiful-mermaid`](docs/migrating-from-beautiful-mermaid.md) — what's drop-in, which fixes change rendered output, and how to audit your own diagrams before upgrading
124
126
 
125
127
  More design write-ups and reference material live in [docs/](docs/).
126
128