@diagrammo/dgmo 0.16.0 → 0.17.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 (53) hide show
  1. package/dist/advanced.cjs +133 -280
  2. package/dist/advanced.d.cts +9 -2
  3. package/dist/advanced.d.ts +9 -2
  4. package/dist/advanced.js +133 -280
  5. package/dist/auto.cjs +135 -269
  6. package/dist/auto.js +96 -96
  7. package/dist/auto.mjs +135 -269
  8. package/dist/cli.cjs +125 -125
  9. package/dist/index.cjs +132 -266
  10. package/dist/index.js +132 -266
  11. package/dist/internal.cjs +133 -280
  12. package/dist/internal.d.cts +9 -2
  13. package/dist/internal.d.ts +9 -2
  14. package/dist/internal.js +133 -280
  15. package/docs/language-reference.md +14 -18
  16. package/docs/migration-sequence-color-to-tags.md +1 -1
  17. package/gallery/fixtures/sequence-tags-protocols.dgmo +3 -3
  18. package/gallery/fixtures/sequence-tags.dgmo +3 -3
  19. package/gallery/fixtures/sequence.dgmo +4 -4
  20. package/package.json +7 -3
  21. package/src/auto/index.ts +2 -2
  22. package/src/boxes-and-lines/layout.ts +1 -2
  23. package/src/c4/parser.ts +1 -1
  24. package/src/class/parser.ts +1 -1
  25. package/src/cli.ts +2 -2
  26. package/src/completion.ts +1 -14
  27. package/src/cycle/parser.ts +1 -1
  28. package/src/d3.ts +2 -3
  29. package/src/diagnostics.ts +20 -0
  30. package/src/echarts.ts +2 -2
  31. package/src/editor/dgmo.grammar.d.ts +1 -1
  32. package/src/er/parser.ts +1 -1
  33. package/src/graph/flowchart-renderer.ts +3 -0
  34. package/src/infra/renderer.ts +1 -2
  35. package/src/journey-map/parser.ts +1 -1
  36. package/src/kanban/parser.ts +1 -1
  37. package/src/mindmap/parser.ts +2 -3
  38. package/src/org/parser.ts +1 -1
  39. package/src/pert/analyzer.ts +10 -10
  40. package/src/pert/layout.ts +1 -1
  41. package/src/pert/parser.ts +1 -1
  42. package/src/pyramid/parser.ts +1 -1
  43. package/src/raci/parser.ts +2 -2
  44. package/src/ring/parser.ts +1 -1
  45. package/src/sequence/parser.ts +66 -14
  46. package/src/sequence/participant-inference.ts +18 -181
  47. package/src/sequence/renderer.ts +47 -136
  48. package/src/sitemap/parser.ts +1 -1
  49. package/src/tech-radar/parser.ts +2 -2
  50. package/src/utils/extract-alias.ts +1 -1
  51. package/src/utils/inline-markdown.ts +1 -1
  52. package/src/utils/time-ticks.ts +1 -1
  53. package/src/wireframe/parser.ts +1 -1
@@ -1184,8 +1184,15 @@ declare function computeTimeTicks(domainMin: number, domainMax: number, scale: d
1184
1184
 
1185
1185
  /**
1186
1186
  * Participant types that can be declared via "Name is a type" syntax.
1187
- */
1188
- type ParticipantType = 'default' | 'service' | 'database' | 'actor' | 'queue' | 'cache' | 'gateway' | 'external' | 'networking' | 'frontend';
1187
+ *
1188
+ * The 0.16.0 trim retained only the types whose shapes carry semantic
1189
+ * weight at a glance: stick figure (actor), cylinder (database),
1190
+ * dashed cylinder (cache), horizontal pipe (queue), plus the default
1191
+ * rectangle. The legacy `service`/`frontend`/`networking`/`gateway`/
1192
+ * `external` keywords are rejected at parse time via
1193
+ * `E_PARTICIPANT_TYPE_REMOVED`.
1194
+ */
1195
+ type ParticipantType = 'default' | 'database' | 'actor' | 'queue' | 'cache';
1189
1196
  /**
1190
1197
  * A declared or inferred participant in the sequence diagram.
1191
1198
  */
@@ -1184,8 +1184,15 @@ declare function computeTimeTicks(domainMin: number, domainMax: number, scale: d
1184
1184
 
1185
1185
  /**
1186
1186
  * Participant types that can be declared via "Name is a type" syntax.
1187
- */
1188
- type ParticipantType = 'default' | 'service' | 'database' | 'actor' | 'queue' | 'cache' | 'gateway' | 'external' | 'networking' | 'frontend';
1187
+ *
1188
+ * The 0.16.0 trim retained only the types whose shapes carry semantic
1189
+ * weight at a glance: stick figure (actor), cylinder (database),
1190
+ * dashed cylinder (cache), horizontal pipe (queue), plus the default
1191
+ * rectangle. The legacy `service`/`frontend`/`networking`/`gateway`/
1192
+ * `external` keywords are rejected at parse time via
1193
+ * `E_PARTICIPANT_TYPE_REMOVED`.
1194
+ */
1195
+ type ParticipantType = 'default' | 'database' | 'actor' | 'queue' | 'cache';
1189
1196
  /**
1190
1197
  * A declared or inferred participant in the sequence diagram.
1191
1198
  */