@diagrammo/dgmo 0.83.0 → 0.85.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 (293) hide show
  1. package/dist/advanced.d.ts +19 -8
  2. package/dist/advanced.js +8 -9
  3. package/dist/analyzer-R5UBTRO2.js +0 -1
  4. package/dist/block.d.ts +2 -2
  5. package/dist/block.js +10 -8
  6. package/dist/calculator-35YVW4QO.js +0 -1
  7. package/dist/{chart-meta-BnVwoPaA.d.ts → chart-meta-PbgpGwYo.d.ts} +2 -2
  8. package/dist/chart-meta.d.ts +3 -3
  9. package/dist/chart-meta.js +3 -4
  10. package/dist/{chart-types-CsUlmuiY.d.ts → chart-types-Db_EGf1o.d.ts} +1 -1
  11. package/dist/charts-d3-3BZRSZV6.js +0 -1
  12. package/dist/chunk-23RWHHI5.js +0 -1
  13. package/dist/chunk-24YPR5EH.js +0 -1
  14. package/dist/chunk-26EVL454.js +0 -1
  15. package/dist/chunk-2CW5ZTNH.js +0 -1
  16. package/dist/chunk-2M4IGSCY.js +0 -1
  17. package/dist/chunk-2QIGN7KL.js +0 -1
  18. package/dist/chunk-3AX6MCI6.js +0 -1
  19. package/dist/chunk-3C2FWS2J.js +0 -1
  20. package/dist/chunk-3DOQOXXI.js +0 -1
  21. package/dist/chunk-3DPOIW3W.js +0 -1
  22. package/dist/chunk-3FCSOYN4.js +0 -1
  23. package/dist/chunk-3MXJMZAN.js +0 -1
  24. package/dist/chunk-3RYBTEF5.js +0 -1
  25. package/dist/chunk-3TYUXC7D.js +0 -1
  26. package/dist/chunk-44GP7PD5.js +0 -1
  27. package/dist/chunk-47E5UTXE.js +0 -1
  28. package/dist/chunk-4QV26TEG.js +0 -1
  29. package/dist/chunk-4WW3SGMH.js +0 -1
  30. package/dist/chunk-5DH3KYFH.js +0 -1
  31. package/dist/chunk-5JO443MB.js +0 -1
  32. package/dist/chunk-5WRI5ZAA.js +0 -1
  33. package/dist/chunk-66YFDTT6.js +0 -1
  34. package/dist/chunk-67USWFFE.js +0 -1
  35. package/dist/chunk-6EK55ART.js +0 -1
  36. package/dist/chunk-6HOVLE3H.js +0 -1
  37. package/dist/chunk-6K7RODXG.js +0 -1
  38. package/dist/chunk-7256EOAE.js +0 -1
  39. package/dist/chunk-7HWY4QAJ.js +0 -1
  40. package/dist/chunk-7TF3QOOD.js +0 -1
  41. package/dist/chunk-7UDAIP6W.js +0 -1
  42. package/dist/chunk-A2RUBBVT.js +0 -1
  43. package/dist/chunk-A4PHPKNR.js +0 -1
  44. package/dist/chunk-A4XPI4YN.js +0 -1
  45. package/dist/chunk-A6YINTY6.js +0 -1
  46. package/dist/{chunk-D7T2K5WT.js → chunk-ADAGWVWJ.js} +6 -7
  47. package/dist/chunk-AYOVY75O.js +0 -1
  48. package/dist/chunk-BAZT6CIF.js +0 -1
  49. package/dist/chunk-BDXC7MDK.js +0 -1
  50. package/dist/chunk-BIQYWWJ2.js +0 -1
  51. package/dist/chunk-BOO24UMJ.js +0 -1
  52. package/dist/chunk-BP4BT5TH.js +0 -1
  53. package/dist/chunk-BS7SV7C3.js +0 -1
  54. package/dist/chunk-BYU54C3S.js +0 -1
  55. package/dist/chunk-C3Z4DX3V.js +0 -1
  56. package/dist/chunk-C5FEPGSJ.js +0 -1
  57. package/dist/chunk-C7QRRTAW.js +0 -1
  58. package/dist/chunk-D3K4U3ZM.js +0 -1
  59. package/dist/chunk-D7D5YK4J.js +0 -1
  60. package/dist/chunk-DAOFNU6J.js +0 -1
  61. package/dist/chunk-DOXBS7F5.js +0 -1
  62. package/dist/chunk-DV2VEJCC.js +0 -1
  63. package/dist/chunk-EOYPX6SF.js +0 -1
  64. package/dist/chunk-EPDBWATV.js +0 -1
  65. package/dist/chunk-EQW6HOP4.js +0 -1
  66. package/dist/chunk-ERNCPKD4.js +0 -1
  67. package/dist/chunk-ETBXIKK6.js +0 -1
  68. package/dist/chunk-FAV4RDVT.js +0 -1
  69. package/dist/chunk-FJNXXGTR.js +0 -1
  70. package/dist/chunk-FKZ2Y3Q5.js +0 -1
  71. package/dist/chunk-FM3WAVB6.js +0 -1
  72. package/dist/chunk-FPXMCGS5.js +0 -1
  73. package/dist/chunk-FWNJDD4U.js +0 -1
  74. package/dist/chunk-FX2USYOU.js +0 -1
  75. package/dist/chunk-GDJW64XE.js +0 -1
  76. package/dist/chunk-GSYZZFI5.js +0 -1
  77. package/dist/chunk-GUTZCRBT.js +0 -1
  78. package/dist/chunk-GUYVKGFN.js +0 -1
  79. package/dist/chunk-H2GEIFUF.js +0 -1
  80. package/dist/chunk-HATTVAWX.js +0 -1
  81. package/dist/chunk-HBCAY3KR.js +0 -1
  82. package/dist/chunk-HEYGGSNQ.js +0 -1
  83. package/dist/chunk-HMWZQ53A.js +0 -1
  84. package/dist/chunk-HSRQDWV7.js +0 -1
  85. package/dist/chunk-HTWH2XQL.js +0 -1
  86. package/dist/chunk-ICLB27PZ.js +0 -1
  87. package/dist/chunk-ICZ7M6IZ.js +0 -1
  88. package/dist/chunk-IDJGV6VM.js +0 -1
  89. package/dist/chunk-IIEI7VK5.js +0 -1
  90. package/dist/chunk-ITLPDLBH.js +0 -1
  91. package/dist/chunk-IVKC4GID.js +0 -1
  92. package/dist/chunk-IYULMRBE.js +0 -1
  93. package/dist/chunk-J2ICADUM.js +0 -1
  94. package/dist/chunk-J64NZ6NF.js +0 -1
  95. package/dist/chunk-JIPUBFAM.js +0 -1
  96. package/dist/chunk-JLGN6S4B.js +0 -1
  97. package/dist/chunk-JQ57AWDL.js +0 -1
  98. package/dist/chunk-JRUEIRJB.js +0 -1
  99. package/dist/{chunk-ECIXBEG2.js → chunk-JVRDKR5R.js} +1 -2
  100. package/dist/chunk-KAO7JL4I.js +0 -1
  101. package/dist/chunk-KMU65FYM.js +0 -1
  102. package/dist/chunk-L5AFONQU.js +0 -1
  103. package/dist/chunk-LCJURK7L.js +0 -1
  104. package/dist/chunk-LD2JSKU3.js +0 -1
  105. package/dist/chunk-LHL6HDUL.js +0 -1
  106. package/dist/chunk-LNO3ASX5.js +0 -1
  107. package/dist/chunk-LQSNWE3W.js +0 -1
  108. package/dist/chunk-LRNIYQ6Y.js +0 -1
  109. package/dist/chunk-LYRDIVSY.js +0 -1
  110. package/dist/chunk-MGBV4JEI.js +0 -1
  111. package/dist/chunk-MHAYUS65.js +0 -1
  112. package/dist/chunk-MIZ46MOF.js +0 -1
  113. package/dist/chunk-MY6GUH26.js +0 -1
  114. package/dist/chunk-N4XHXBDQ.js +0 -1
  115. package/dist/chunk-N7VMGZCU.js +0 -1
  116. package/dist/chunk-NF5YKFRH.js +0 -1
  117. package/dist/chunk-NGC3IZRY.js +0 -1
  118. package/dist/{chunk-AYA6C64M.js → chunk-NJS62BAG.js} +83 -27
  119. package/dist/chunk-NOTA6TEI.js +0 -1
  120. package/dist/chunk-NSS2EF5B.js +0 -1
  121. package/dist/chunk-NXMESY4J.js +0 -1
  122. package/dist/chunk-NZCSVD4M.js +0 -1
  123. package/dist/chunk-O753JUEZ.js +0 -1
  124. package/dist/chunk-OGKP2XGJ.js +0 -1
  125. package/dist/{chunk-RKBF2SKK.js → chunk-OZTDXMRQ.js} +2 -3
  126. package/dist/chunk-P3SKSKJI.js +0 -1
  127. package/dist/chunk-PBEH52A2.js +0 -1
  128. package/dist/chunk-PEFPTQ3Z.js +0 -1
  129. package/dist/chunk-PIXJL77H.js +0 -1
  130. package/dist/chunk-PLE2432T.js +0 -1
  131. package/dist/chunk-PPH6ILHL.js +0 -1
  132. package/dist/chunk-PSH5DT26.js +0 -1
  133. package/dist/chunk-QFHWYWQL.js +0 -1
  134. package/dist/chunk-QFIXL3OK.js +0 -1
  135. package/dist/chunk-QJ2JOLFN.js +0 -1
  136. package/dist/chunk-QNKHJ5CK.js +0 -1
  137. package/dist/chunk-QQJUTGQH.js +0 -1
  138. package/dist/{chunk-U7VO6JAA.js → chunk-RE27AX7O.js} +3 -1
  139. package/dist/chunk-RE6TVIAV.js +0 -1
  140. package/dist/chunk-REUEU5PU.js +0 -1
  141. package/dist/chunk-RH2PROYG.js +0 -1
  142. package/dist/chunk-RMAJIB6S.js +0 -1
  143. package/dist/chunk-RU725VCJ.js +0 -1
  144. package/dist/chunk-RYZNNXUV.js +0 -1
  145. package/dist/chunk-SLMAAJPE.js +0 -1
  146. package/dist/chunk-SQ7IY53Q.js +0 -1
  147. package/dist/chunk-SQAG3UXH.js +0 -1
  148. package/dist/{chunk-KABGWUND.js → chunk-T327J6CE.js} +4 -3
  149. package/dist/chunk-UG2XG57E.js +0 -1
  150. package/dist/chunk-UGYZ5Q5Y.js +0 -1
  151. package/dist/chunk-UJRMARNX.js +0 -1
  152. package/dist/chunk-ULCB4BLF.js +0 -1
  153. package/dist/chunk-UNAP6O26.js +0 -1
  154. package/dist/chunk-UNCCZ3NU.js +0 -1
  155. package/dist/chunk-UNNJCSSQ.js +0 -1
  156. package/dist/chunk-UNSN56OJ.js +0 -1
  157. package/dist/chunk-UZ7EZW3B.js +0 -1
  158. package/dist/chunk-V3LJIPS4.js +0 -1
  159. package/dist/chunk-VDMG3MM4.js +0 -1
  160. package/dist/chunk-VEPIAUSK.js +0 -1
  161. package/dist/chunk-VLC6WNRD.js +0 -1
  162. package/dist/{chunk-6EV2F6W7.js → chunk-VPASQOR3.js} +68 -47
  163. package/dist/chunk-WFA6IULY.js +0 -1
  164. package/dist/chunk-WMIKC5XO.js +0 -1
  165. package/dist/chunk-WP2RLGDI.js +0 -1
  166. package/dist/chunk-WPL5PFXE.js +0 -1
  167. package/dist/chunk-WQ6G6FFM.js +0 -1
  168. package/dist/chunk-WTTIODDV.js +0 -1
  169. package/dist/chunk-X2VEJ5NT.js +0 -1
  170. package/dist/chunk-XBJJP2HN.js +0 -1
  171. package/dist/chunk-XD7XL3SF.js +0 -1
  172. package/dist/chunk-XIYVGO24.js +0 -1
  173. package/dist/chunk-XSVWUOUZ.js +0 -1
  174. package/dist/chunk-XXAZ5C4K.js +0 -1
  175. package/dist/{chunk-4NYXQB7Y.js → chunk-Y7FTHOMD.js} +1 -2
  176. package/dist/chunk-YRYKTYMQ.js +0 -1
  177. package/dist/chunk-YWHGWLY6.js +0 -1
  178. package/dist/chunk-ZGHV4QLK.js +0 -1
  179. package/dist/chunk-ZUCXFXLD.js +0 -1
  180. package/dist/chunk-ZUUNTOMG.js +0 -1
  181. package/dist/clock.js +0 -1
  182. package/dist/cloud-reference.js +0 -1
  183. package/dist/collapse-JRGPUE67.js +0 -1
  184. package/dist/collapse-SLINJQW6.js +0 -1
  185. package/dist/collapse-ZWUFFCK2.js +0 -1
  186. package/dist/completion-registry.js +0 -1
  187. package/dist/compute-JAP5E2E4.js +0 -1
  188. package/dist/countdown.js +0 -1
  189. package/dist/{d3-CTGUvjsH.d.ts → d3-B6524aaP.d.ts} +1 -1
  190. package/dist/{dgmo-router-YW4SBNYB.js → dgmo-router-VILEOWQ2.js} +3 -4
  191. package/dist/dimensions-F3Y5T54V.js +0 -1
  192. package/dist/editor.js +0 -1
  193. package/dist/flowchart-parser-GG7XBLQH.js +0 -1
  194. package/dist/flowchart-renderer-TGQL4S4L.js +0 -1
  195. package/dist/highlight.js +0 -1
  196. package/dist/index.d.ts +7 -7
  197. package/dist/index.js +6 -7
  198. package/dist/layout-6JARW64V.js +0 -1
  199. package/dist/layout-AM57TGN5.js +0 -1
  200. package/dist/{layout-JLUGD4WH.js → layout-CFTB7GKV.js} +1 -2
  201. package/dist/layout-FMKSENGL.js +0 -1
  202. package/dist/layout-JQ3IPJYR.js +0 -1
  203. package/dist/layout-K6NI4VCS.js +0 -1
  204. package/dist/layout-MSSHF45T.js +0 -1
  205. package/dist/layout-NB7TKAWN.js +0 -1
  206. package/dist/layout-PT7IKVCV.js +0 -1
  207. package/dist/layout-SOPAVXIH.js +0 -1
  208. package/dist/layout-SW3XWYKC.js +0 -1
  209. package/dist/layout-UIV56NUA.js +0 -1
  210. package/dist/layout-WXVGMSI3.js +0 -1
  211. package/dist/layout-WZCXK7DF.js +0 -1
  212. package/dist/layout-YELNBVPC.js +0 -1
  213. package/dist/{layout-search-RODROCT4.js → layout-search-GRJEBAUF.js} +22 -4
  214. package/dist/legend-constants-ZVO4FLAK.js +0 -1
  215. package/dist/live-link-resolve.js +0 -1
  216. package/dist/palettes-BIV54XLS.js +0 -1
  217. package/dist/parser-256EIWB2.js +0 -1
  218. package/dist/parser-5655XSOR.js +0 -1
  219. package/dist/parser-6TXNMXNB.js +0 -1
  220. package/dist/parser-7OEE7QT6.js +0 -1
  221. package/dist/parser-ACW6C6OY.js +0 -1
  222. package/dist/parser-AKBVJHMK.js +0 -1
  223. package/dist/parser-AN3MGHRL.js +0 -1
  224. package/dist/parser-C327BBE3.js +0 -1
  225. package/dist/parser-DGF3ZEO6.js +0 -1
  226. package/dist/parser-DHSFIUPU.js +0 -1
  227. package/dist/parser-GEKPWSSK.js +0 -1
  228. package/dist/parser-GPW4ZHPQ.js +0 -1
  229. package/dist/parser-GZ3LVF72.js +0 -1
  230. package/dist/parser-HCGXNHHL.js +0 -1
  231. package/dist/parser-J4DVNL4W.js +0 -1
  232. package/dist/parser-JOOAVBJI.js +0 -1
  233. package/dist/parser-JXS4426S.js +0 -1
  234. package/dist/parser-KFYRTGTC.js +0 -1
  235. package/dist/parser-KYPP2DX6.js +0 -1
  236. package/dist/parser-KZMALSB2.js +0 -1
  237. package/dist/parser-KZMJNKDW.js +0 -1
  238. package/dist/parser-LANGKWRG.js +0 -1
  239. package/dist/parser-LGS65QPN.js +0 -1
  240. package/dist/parser-NGHQQGD2.js +0 -1
  241. package/dist/parser-NOANDFJ4.js +0 -1
  242. package/dist/parser-NPXPJHWN.js +0 -1
  243. package/dist/parser-OKB64MMN.js +0 -1
  244. package/dist/parser-OVQTTTUJ.js +0 -1
  245. package/dist/{parser-6PHQJO42.js → parser-PVIWHVGY.js} +1 -2
  246. package/dist/parser-SA3RAJFS.js +0 -1
  247. package/dist/parser-WEVTMBJ5.js +0 -1
  248. package/dist/parser-WUK6CP5X.js +0 -1
  249. package/dist/parser-ZLKYDFI5.js +0 -1
  250. package/dist/pert.js +0 -1
  251. package/dist/renderer-3AOOLHJU.js +0 -1
  252. package/dist/renderer-3F4K2X57.js +0 -1
  253. package/dist/renderer-3XRDFNYF.js +0 -1
  254. package/dist/{renderer-QSRJGBH6.js → renderer-5A6VWIVX.js} +5 -6
  255. package/dist/renderer-5YOF2AHJ.js +0 -1
  256. package/dist/renderer-6BUUTWVS.js +0 -1
  257. package/dist/renderer-ADX4DWRJ.js +0 -1
  258. package/dist/{renderer-GWNSV76V.js → renderer-DRLLZZ6P.js} +2 -3
  259. package/dist/renderer-E5EKGIX2.js +0 -1
  260. package/dist/renderer-EU27D4S6.js +0 -1
  261. package/dist/renderer-FBAFYSIQ.js +0 -1
  262. package/dist/renderer-FQAZ3KNU.js +0 -1
  263. package/dist/renderer-FXX3XSNW.js +0 -1
  264. package/dist/renderer-G72GMBKA.js +0 -1
  265. package/dist/renderer-HV6ZYJMC.js +0 -1
  266. package/dist/renderer-HWEGM72C.js +0 -1
  267. package/dist/renderer-J3O2KVTL.js +0 -1
  268. package/dist/renderer-JKV2DBYP.js +0 -1
  269. package/dist/renderer-ML2CLU25.js +0 -1
  270. package/dist/renderer-OV3GUJRR.js +0 -1
  271. package/dist/renderer-OVDVFPAI.js +0 -1
  272. package/dist/renderer-OXSLLQQC.js +0 -1
  273. package/dist/renderer-P7LQBDU2.js +0 -1
  274. package/dist/renderer-PQYO2HCE.js +0 -1
  275. package/dist/renderer-R6VJDZFO.js +0 -1
  276. package/dist/renderer-RWJ45DWH.js +0 -1
  277. package/dist/renderer-TF3NTKP3.js +0 -1
  278. package/dist/renderer-UGA5DGKR.js +0 -1
  279. package/dist/renderer-WRWVFEX7.js +0 -1
  280. package/dist/renderer-WUDVV363.js +0 -1
  281. package/dist/renderer-X4KFEKUK.js +0 -1
  282. package/dist/renderer-XS42HEXW.js +0 -1
  283. package/dist/renderer-YSH5EX54.js +0 -1
  284. package/dist/renderer-radial-XZ5TKUT4.js +0 -1
  285. package/dist/resolver-XSXE2TRX.js +0 -1
  286. package/dist/state-collapse-HCGD6IVJ.js +0 -1
  287. package/dist/state-parser-FE3RF6XY.js +0 -1
  288. package/dist/state-renderer-B4ZF6ESS.js +0 -1
  289. package/dist/{tag-groups-CFxENdtP.d.ts → tag-groups-fgxWTyyB.d.ts} +16 -0
  290. package/dist/{themes-WjudZgda.d.ts → themes-CzuBdx1T.d.ts} +2 -2
  291. package/docs/language-reference.md +12 -0
  292. package/gallery/fixtures/sequence-groups-nested.dgmo +50 -0
  293. package/package.json +2 -1
@@ -1134,4 +1134,3 @@ export {
1134
1134
  renderC4Deployment,
1135
1135
  renderC4DeploymentForExport
1136
1136
  };
1137
- //# sourceMappingURL=chunk-PSH5DT26.js.map
@@ -503,4 +503,3 @@ export {
503
503
  VERSION_CONTROL_DIAGNOSTICS,
504
504
  parseVersionControl
505
505
  };
506
- //# sourceMappingURL=chunk-QFHWYWQL.js.map
@@ -65,4 +65,3 @@ export {
65
65
  paintRootBackground,
66
66
  extractExportSvg
67
67
  };
68
- //# sourceMappingURL=chunk-QFIXL3OK.js.map
@@ -296,4 +296,3 @@ export {
296
296
  renderRing,
297
297
  renderRingForExport
298
298
  };
299
- //# sourceMappingURL=chunk-QJ2JOLFN.js.map
@@ -1624,4 +1624,3 @@ export {
1624
1624
  renderTechRadar,
1625
1625
  renderTechRadarForExport
1626
1626
  };
1627
- //# sourceMappingURL=chunk-QNKHJ5CK.js.map
@@ -132,4 +132,3 @@ export {
132
132
  buildCoupleQuotient,
133
133
  rankClasses
134
134
  };
135
- //# sourceMappingURL=chunk-QQJUTGQH.js.map
@@ -509,6 +509,9 @@ function encodeDiagramUrl(dsl, options) {
509
509
  if (options?.filename) {
510
510
  hash += `&fn=${encodeURIComponent(options.filename)}`;
511
511
  }
512
+ if (options?.via) {
513
+ hash += `&via=${encodeURIComponent(options.via)}`;
514
+ }
512
515
  return { url: `${baseUrl}?${hash}#${hash}` };
513
516
  }
514
517
  function decodeDiagramUrl(hash) {
@@ -563,4 +566,3 @@ export {
563
566
  encodeDiagramUrl,
564
567
  decodeDiagramUrl
565
568
  };
566
- //# sourceMappingURL=chunk-U7VO6JAA.js.map
@@ -135,4 +135,3 @@ export {
135
135
  createExportContainer,
136
136
  finalizeSvgExport
137
137
  };
138
- //# sourceMappingURL=chunk-RE6TVIAV.js.map
@@ -426,4 +426,3 @@ export {
426
426
  renderMindmap,
427
427
  renderMindmapForExport
428
428
  };
429
- //# sourceMappingURL=chunk-REUEU5PU.js.map
@@ -59,4 +59,3 @@ export {
59
59
  LEGEND_TOGGLE_OFF_OPACITY,
60
60
  LEGEND_GEAR_PILL_W
61
61
  };
62
- //# sourceMappingURL=chunk-RH2PROYG.js.map
@@ -508,4 +508,3 @@ export {
508
508
  renderSitemap,
509
509
  renderSitemapForExport
510
510
  };
511
- //# sourceMappingURL=chunk-RMAJIB6S.js.map
@@ -662,4 +662,3 @@ export {
662
662
  isSketchShapeKind,
663
663
  parseSketch
664
664
  };
665
- //# sourceMappingURL=chunk-RU725VCJ.js.map
@@ -419,4 +419,3 @@ function layoutSwimlane(parsed) {
419
419
  export {
420
420
  layoutSwimlane
421
421
  };
422
- //# sourceMappingURL=chunk-RYZNNXUV.js.map
@@ -400,4 +400,3 @@ export {
400
400
  renderBlock,
401
401
  authoredCollapsedIds
402
402
  };
403
- //# sourceMappingURL=chunk-SLMAAJPE.js.map
@@ -41,4 +41,3 @@ function collapseStateGroups(parsed, collapsedGroups) {
41
41
  export {
42
42
  collapseStateGroups
43
43
  };
44
- //# sourceMappingURL=chunk-SQ7IY53Q.js.map
@@ -158,4 +158,3 @@ export {
158
158
  searchMapLocations,
159
159
  completeMapRegions
160
160
  };
161
- //# sourceMappingURL=chunk-SQAG3UXH.js.map
@@ -96,7 +96,7 @@ import {
96
96
  } from "./chunk-BAZT6CIF.js";
97
97
  import {
98
98
  parseDgmoChartType
99
- } from "./chunk-ECIXBEG2.js";
99
+ } from "./chunk-JVRDKR5R.js";
100
100
  import {
101
101
  parseRaci
102
102
  } from "./chunk-3RYBTEF5.js";
@@ -114,8 +114,9 @@ import {
114
114
  toInternal
115
115
  } from "./chunk-DAOFNU6J.js";
116
116
  import {
117
+ SEQUENCE_DIAGNOSTICS,
117
118
  parseSequenceDgmo
118
- } from "./chunk-6EV2F6W7.js";
119
+ } from "./chunk-VPASQOR3.js";
119
120
  import {
120
121
  parseFlowchart
121
122
  } from "./chunk-JRUEIRJB.js";
@@ -1608,6 +1609,7 @@ var REGISTRY = [
1608
1609
  ...PERT_DIAGNOSTICS,
1609
1610
  ...GRAPH_DIAGNOSTICS,
1610
1611
  ...COLOR_DIAGNOSTICS,
1612
+ ...SEQUENCE_DIAGNOSTICS,
1611
1613
  ...SKETCH_DIAGNOSTICS,
1612
1614
  ...FAMILY_DIAGNOSTICS,
1613
1615
  ...ALIAS_DIAGNOSTICS
@@ -1884,4 +1886,3 @@ export {
1884
1886
  knownChartTypeIds,
1885
1887
  parseDgmo
1886
1888
  };
1887
- //# sourceMappingURL=chunk-KABGWUND.js.map
@@ -527,4 +527,3 @@ export {
527
527
  looksLikeSitemap,
528
528
  parseSitemap
529
529
  };
530
- //# sourceMappingURL=chunk-UG2XG57E.js.map
@@ -51,4 +51,3 @@ export {
51
51
  mapContentAspect,
52
52
  mapExportDimensions
53
53
  };
54
- //# sourceMappingURL=chunk-UGYZ5Q5Y.js.map
@@ -781,4 +781,3 @@ export {
781
781
  renderMap,
782
782
  renderMapForExport
783
783
  };
784
- //# sourceMappingURL=chunk-UJRMARNX.js.map
@@ -1675,4 +1675,3 @@ export {
1675
1675
  formatDateLabel,
1676
1676
  renderTimeline
1677
1677
  };
1678
- //# sourceMappingURL=chunk-ULCB4BLF.js.map
@@ -441,4 +441,3 @@ export {
441
441
  renderTreemapForExport,
442
442
  renderTreemap
443
443
  };
444
- //# sourceMappingURL=chunk-UNAP6O26.js.map
@@ -124,4 +124,3 @@ function collapseSitemapTree(original, collapsedIds) {
124
124
  export {
125
125
  collapseSitemapTree
126
126
  };
127
- //# sourceMappingURL=chunk-UNCCZ3NU.js.map
@@ -1268,4 +1268,3 @@ export {
1268
1268
  extractPertSymbols,
1269
1269
  looksLikePert
1270
1270
  };
1271
- //# sourceMappingURL=chunk-UNNJCSSQ.js.map
@@ -47,4 +47,3 @@ export {
47
47
  renderNodeCard,
48
48
  renderCollapseBar
49
49
  };
50
- //# sourceMappingURL=chunk-UNSN56OJ.js.map
@@ -37,4 +37,3 @@ function collapseMindmapTree(roots, collapsedIds) {
37
37
  export {
38
38
  collapseMindmapTree
39
39
  };
40
- //# sourceMappingURL=chunk-UZ7EZW3B.js.map
@@ -878,4 +878,3 @@ export {
878
878
  renderJourneyMap,
879
879
  renderJourneyMapForExport
880
880
  };
881
- //# sourceMappingURL=chunk-V3LJIPS4.js.map
@@ -859,4 +859,3 @@ export {
859
859
  renderRaci,
860
860
  renderRaciForExport
861
861
  };
862
- //# sourceMappingURL=chunk-VDMG3MM4.js.map
@@ -736,4 +736,3 @@ export {
736
736
  SKETCH_AUTO_LAYOUT_DEFAULTS,
737
737
  layoutSketch
738
738
  };
739
- //# sourceMappingURL=chunk-VEPIAUSK.js.map
@@ -22,4 +22,3 @@ export {
22
22
  CAPTION_BOX_PADDING_X,
23
23
  CAPTION_BOX_PADDING_Y
24
24
  };
25
- //# sourceMappingURL=chunk-VLC6WNRD.js.map
@@ -41,6 +41,22 @@ import {
41
41
  suggest
42
42
  } from "./chunk-BYU54C3S.js";
43
43
 
44
+ // src/sequence/diagnostics.ts
45
+ var SEQUENCE_DIAGNOSTIC_CODES = {
46
+ GROUP_DEPTH: "E_SEQ_GROUP_DEPTH"
47
+ };
48
+ var SEQUENCE_DIAGNOSTICS = [
49
+ {
50
+ code: SEQUENCE_DIAGNOSTIC_CODES.GROUP_DEPTH,
51
+ severity: "error",
52
+ chartType: "sequence",
53
+ title: "Group nested too deep",
54
+ message: (p) => `Group "${String(p.label ?? "?")}" is nested ${String(p.depth ?? "?")} levels deep \u2014 participant groups nest to depth ${String(p.max ?? "?")}; its participants join the group above it`,
55
+ hint: "Move the inner [Group] up a level \u2014 two levels of bracket is the bound.",
56
+ example: "sequence\n[Monolith]\n [Linux]\n [Container]\n App"
57
+ }
58
+ ];
59
+
44
60
  // src/sequence/parser.ts
45
61
  var KNOWN_SEQ_OPTIONS = /* @__PURE__ */ new Set(["active-tag"]);
46
62
  var KNOWN_SEQ_BOOLEANS = /* @__PURE__ */ new Set([
@@ -70,6 +86,7 @@ function isSequenceNote(el) {
70
86
  }
71
87
  var IS_A_PATTERN = /^([^:]+?)\s+is\s+an?\s+(\w+)(?:\s+(.+))?$/i;
72
88
  var COLORED_PARTICIPANT_PATTERN = /^(\S+?)\((red|orange|yellow|green|blue|purple|teal|cyan|gray|black|white)\)\s*$/;
89
+ var MAX_GROUP_DEPTH = 2;
73
90
  var GROUP_HEADING_PATTERN = /^\[([^\]|]+?)(?:\(([^)]+)\))?\]\s*(.*)$/;
74
91
  var GROUP_HEADING_FALLBACK = /^\[([^\]]+)\]\s*(.*)$/;
75
92
  var SECTION_PATTERN = /^==\s+(.+?)(?:\s*==)?\s*$/;
@@ -218,8 +235,8 @@ function parseSequenceDgmo(content, palette) {
218
235
  return nameAliasMap.resolve(trimmed) ?? trimmed;
219
236
  };
220
237
  const fail = makeFail(result);
221
- const pushError = (line, message) => {
222
- const diag = makeDgmoError(line, message);
238
+ const pushError = (line, message, code) => {
239
+ const diag = makeDgmoError(line, message, "error", code);
223
240
  result.diagnostics.push(diag);
224
241
  if (!result.error) result.error = formatDgmoError(diag);
225
242
  };
@@ -249,7 +266,31 @@ function parseSequenceDgmo(content, palette) {
249
266
  }
250
267
  break;
251
268
  }
252
- let activeGroup = null;
269
+ const groupStack = [];
270
+ const activeGroup = () => groupStack.length > 0 ? groupStack[groupStack.length - 1].group : null;
271
+ const closeGroupsTo = (indent) => {
272
+ while (groupStack.length > 0 && groupStack[groupStack.length - 1].indent >= indent) {
273
+ groupStack.pop();
274
+ }
275
+ };
276
+ const joinActiveGroup = (key, id, lineNumber) => {
277
+ const innermost = activeGroup();
278
+ if (!innermost || innermost.participantIds.includes(key)) return;
279
+ const existingGroup = participantGroupMap.get(key);
280
+ if (existingGroup) {
281
+ pushError(
282
+ lineNumber,
283
+ `Participant '${id}' is already in group '${existingGroup}' \u2014 participants can only belong to one group`
284
+ );
285
+ return;
286
+ }
287
+ for (const frame of groupStack) {
288
+ if (!frame.group.participantIds.includes(key)) {
289
+ frame.group.participantIds.push(key);
290
+ }
291
+ }
292
+ participantGroupMap.set(key, innermost.name);
293
+ };
253
294
  const participantIds = /* @__PURE__ */ new Set();
254
295
  const idByKey = /* @__PURE__ */ new Map();
255
296
  const addParticipant = (name, lineNumber, extras) => {
@@ -364,7 +405,7 @@ function parseSequenceDgmo(content, palette) {
364
405
  const lineNumber = i + 1;
365
406
  nameAliasMap.at(lineNumber);
366
407
  if (!trimmed) {
367
- activeGroup = null;
408
+ closeGroupsTo(0);
368
409
  currentTagGroup = null;
369
410
  continue;
370
411
  }
@@ -407,14 +448,29 @@ function parseSequenceDgmo(content, palette) {
407
448
  );
408
449
  }
409
450
  contentStarted = true;
410
- activeGroup = {
451
+ const headingIndent = measureIndent(raw);
452
+ closeGroupsTo(headingIndent);
453
+ const depth = groupStack.length;
454
+ if (depth >= MAX_GROUP_DEPTH) {
455
+ pushError(
456
+ lineNumber,
457
+ `Group '${groupName}' is nested ${String(depth + 1)} levels deep \u2014 participant groups nest to depth ${String(MAX_GROUP_DEPTH)}; its participants join the group above it`,
458
+ SEQUENCE_DIAGNOSTIC_CODES.GROUP_DEPTH
459
+ );
460
+ continue;
461
+ }
462
+ const parentGroup = activeGroup();
463
+ const group = {
411
464
  name: groupName,
412
465
  participantIds: [],
413
466
  lineNumber,
467
+ depth,
468
+ ...parentGroup ? { parent: parentGroup.name } : {},
414
469
  ...groupMeta ? { metadata: groupMeta } : {},
415
470
  ...isCollapsed ? { collapsed: true } : {}
416
471
  };
417
- result.groups.push(activeGroup);
472
+ result.groups.push(group);
473
+ groupStack.push({ group, indent: headingIndent });
418
474
  continue;
419
475
  }
420
476
  if (trimmed.startsWith("[")) {
@@ -431,9 +487,7 @@ function parseSequenceDgmo(content, palette) {
431
487
  continue;
432
488
  }
433
489
  }
434
- if (activeGroup && measureIndent(raw) === 0) {
435
- activeGroup = null;
436
- }
490
+ closeGroupsTo(measureIndent(raw));
437
491
  if (trimmed.startsWith("//")) continue;
438
492
  if (trimmed.startsWith("#")) {
439
493
  pushError(lineNumber, "Use // for comments");
@@ -623,18 +677,7 @@ function parseSequenceDgmo(content, palette) {
623
677
  ...position !== void 0 && { position },
624
678
  ...isAMeta !== void 0 && { metadata: isAMeta }
625
679
  });
626
- if (activeGroup && !activeGroup.participantIds.includes(key)) {
627
- const existingGroup = participantGroupMap.get(key);
628
- if (existingGroup) {
629
- pushError(
630
- lineNumber,
631
- `Participant '${id}' is already in group '${existingGroup}' \u2014 participants can only belong to one group`
632
- );
633
- } else {
634
- activeGroup.participantIds.push(key);
635
- participantGroupMap.set(key, activeGroup.name);
636
- }
637
- }
680
+ joinActiveGroup(key, id, lineNumber);
638
681
  continue;
639
682
  }
640
683
  const { core: colorCore, meta: colorMeta } = splitPipe(trimmed, lineNumber);
@@ -650,18 +693,7 @@ function parseSequenceDgmo(content, palette) {
650
693
  const key = addParticipant(id, lineNumber, {
651
694
  ...colorMeta !== void 0 && { metadata: colorMeta }
652
695
  });
653
- if (activeGroup && !activeGroup.participantIds.includes(key)) {
654
- const existingGroup = participantGroupMap.get(key);
655
- if (existingGroup) {
656
- pushError(
657
- lineNumber,
658
- `Participant '${id}' is already in group '${existingGroup}' \u2014 participants can only belong to one group`
659
- );
660
- } else {
661
- activeGroup.participantIds.push(key);
662
- participantGroupMap.set(key, activeGroup.name);
663
- }
664
- }
696
+ joinActiveGroup(key, id, lineNumber);
665
697
  continue;
666
698
  }
667
699
  {
@@ -670,7 +702,7 @@ function parseSequenceDgmo(content, palette) {
670
702
  meta: bareMeta,
671
703
  alias: bareAlias
672
704
  } = splitPipe(trimmed, lineNumber);
673
- const inGroup = activeGroup && measureIndent(raw) > 0;
705
+ const inGroup = activeGroup() !== null && measureIndent(raw) > 0;
674
706
  if (/^\S+$/.test(bareCore) && !ARROW_PATTERN.test(bareCore) && (inGroup || !bodyStarted || bareMeta)) {
675
707
  contentStarted = true;
676
708
  const id = bareCore;
@@ -682,18 +714,7 @@ function parseSequenceDgmo(content, palette) {
682
714
  ...position !== void 0 && { position },
683
715
  ...bareMeta !== void 0 && { metadata: bareMeta }
684
716
  });
685
- if (activeGroup && !activeGroup.participantIds.includes(key)) {
686
- const existingGroup = participantGroupMap.get(key);
687
- if (existingGroup) {
688
- pushError(
689
- lineNumber,
690
- `Participant '${id}' is already in group '${existingGroup}' \u2014 participants can only belong to one group`
691
- );
692
- } else {
693
- activeGroup.participantIds.push(key);
694
- participantGroupMap.set(key, activeGroup.name);
695
- }
696
- }
717
+ joinActiveGroup(key, id, lineNumber);
697
718
  continue;
698
719
  }
699
720
  }
@@ -1066,10 +1087,10 @@ function looksLikeSequence(content) {
1066
1087
  }
1067
1088
 
1068
1089
  export {
1090
+ SEQUENCE_DIAGNOSTICS,
1069
1091
  isSequenceBlock,
1070
1092
  isSequenceSection,
1071
1093
  isSequenceNote,
1072
1094
  parseSequenceDgmo,
1073
1095
  looksLikeSequence
1074
1096
  };
1075
- //# sourceMappingURL=chunk-6EV2F6W7.js.map
@@ -465,4 +465,3 @@ export {
465
465
  formatDateShort,
466
466
  formatFooter
467
467
  };
468
- //# sourceMappingURL=chunk-WFA6IULY.js.map
@@ -90,4 +90,3 @@ function wrapPlainLine(line, charsPerLine, lengthFn) {
90
90
  export {
91
91
  wrapDescriptionLines
92
92
  };
93
- //# sourceMappingURL=chunk-WMIKC5XO.js.map
@@ -675,4 +675,3 @@ export {
675
675
  searchZones,
676
676
  parseClock
677
677
  };
678
- //# sourceMappingURL=chunk-WP2RLGDI.js.map
@@ -559,4 +559,3 @@ export {
559
559
  looksLikeERDiagram,
560
560
  extractSymbols
561
561
  };
562
- //# sourceMappingURL=chunk-WPL5PFXE.js.map
@@ -274,4 +274,3 @@ function parseCycle(content) {
274
274
  export {
275
275
  parseCycle
276
276
  };
277
- //# sourceMappingURL=chunk-WQ6G6FFM.js.map
@@ -7,4 +7,3 @@ export {
7
7
  NODE_HEIGHT,
8
8
  NODE_WIDTH
9
9
  };
10
- //# sourceMappingURL=chunk-WTTIODDV.js.map
@@ -428,4 +428,3 @@ export {
428
428
  renderPyramid,
429
429
  renderPyramidForExport
430
430
  };
431
- //# sourceMappingURL=chunk-X2VEJ5NT.js.map
@@ -34,4 +34,3 @@ export {
34
34
  appendArrowheadMarkers,
35
35
  appendReverseArrowheadMarkers
36
36
  };
37
- //# sourceMappingURL=chunk-XBJJP2HN.js.map
@@ -2159,4 +2159,3 @@ export {
2159
2159
  renderGantt,
2160
2160
  buildTagLaneRowList
2161
2161
  };
2162
- //# sourceMappingURL=chunk-XD7XL3SF.js.map
@@ -490,4 +490,3 @@ export {
490
490
  renderOrg,
491
491
  renderOrgForExport
492
492
  };
493
- //# sourceMappingURL=chunk-XIYVGO24.js.map
@@ -6,4 +6,3 @@ function isBlockNode(cell) {
6
6
  export {
7
7
  isBlockNode
8
8
  };
9
- //# sourceMappingURL=chunk-XSVWUOUZ.js.map
@@ -489,4 +489,3 @@ export {
489
489
  focusFamily,
490
490
  layoutFamily
491
491
  };
492
- //# sourceMappingURL=chunk-XXAZ5C4K.js.map
@@ -312,7 +312,7 @@ function computeNodeSize(node, reserveValueRow) {
312
312
  return { width: w, height: Math.max(NODE_HEIGHT, totalHeight) };
313
313
  }
314
314
  async function layoutBoxesAndLines(parsed, collapseInfo, layoutOptions) {
315
- const { layoutBoxesAndLinesSearch } = await import("./layout-search-RODROCT4.js");
315
+ const { layoutBoxesAndLinesSearch } = await import("./layout-search-GRJEBAUF.js");
316
316
  const searchOpts = {
317
317
  ...layoutOptions?.hideDescriptions !== void 0 && {
318
318
  hideDescriptions: layoutOptions.hideDescriptions
@@ -522,4 +522,3 @@ export {
522
522
  computeNodeSize,
523
523
  layoutBoxesAndLines
524
524
  };
525
- //# sourceMappingURL=chunk-4NYXQB7Y.js.map
@@ -183,4 +183,3 @@ export {
183
183
  MONTH_ABBR,
184
184
  computeTimeTicks
185
185
  };
186
- //# sourceMappingURL=chunk-YRYKTYMQ.js.map
@@ -1163,4 +1163,3 @@ export {
1163
1163
  focusEventLine,
1164
1164
  renderEventLineForExport
1165
1165
  };
1166
- //# sourceMappingURL=chunk-YWHGWLY6.js.map
@@ -49,4 +49,3 @@ export {
49
49
  wrapNoteBody,
50
50
  noteBoxSize
51
51
  };
52
- //# sourceMappingURL=chunk-ZGHV4QLK.js.map
@@ -392,4 +392,3 @@ function parseBracket(content, palette) {
392
392
  export {
393
393
  parseBracket
394
394
  };
395
- //# sourceMappingURL=chunk-ZUCXFXLD.js.map
@@ -558,4 +558,3 @@ export {
558
558
  computeNodeText,
559
559
  layoutMindmap
560
560
  };
561
- //# sourceMappingURL=chunk-ZUUNTOMG.js.map
package/dist/clock.js CHANGED
@@ -359,4 +359,3 @@ export {
359
359
  startClocks,
360
360
  tickClocks
361
361
  };
362
- //# sourceMappingURL=clock.js.map
@@ -19,4 +19,3 @@ export {
19
19
  referenceShareUrl,
20
20
  referenceSourceUrl
21
21
  };
22
- //# sourceMappingURL=cloud-reference.js.map
@@ -10,4 +10,3 @@ export {
10
10
  focusOrgTree,
11
11
  unionCollapsedOrgNodes
12
12
  };
13
- //# sourceMappingURL=collapse-JRGPUE67.js.map
@@ -6,4 +6,3 @@ import "./chunk-5WRI5ZAA.js";
6
6
  export {
7
7
  collapseMindmapTree
8
8
  };
9
- //# sourceMappingURL=collapse-SLINJQW6.js.map
@@ -6,4 +6,3 @@ import "./chunk-5WRI5ZAA.js";
6
6
  export {
7
7
  collapseSitemapTree
8
8
  };
9
- //# sourceMappingURL=collapse-ZWUFFCK2.js.map
@@ -1304,4 +1304,3 @@ export {
1304
1304
  WIREFRAME_FLAGS,
1305
1305
  WIREFRAME_GROUP_ONLY_FLAGS
1306
1306
  };
1307
- //# sourceMappingURL=completion-registry.js.map
@@ -5,4 +5,3 @@ import "./chunk-5WRI5ZAA.js";
5
5
  export {
6
6
  computeInfra
7
7
  };
8
- //# sourceMappingURL=compute-JAP5E2E4.js.map
package/dist/countdown.js CHANGED
@@ -600,4 +600,3 @@ export {
600
600
  startCountdowns,
601
601
  tickCountdowns
602
602
  };
603
- //# sourceMappingURL=countdown.js.map
@@ -1,4 +1,4 @@
1
- import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-CFxENdtP.js';
1
+ import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-fgxWTyyB.js';
2
2
 
3
3
  /** A POI / route-stop position: gazetteer name (+ optional ISO scope) or coords. */
4
4
  type PoiPos = {
@@ -6,7 +6,7 @@ import {
6
6
  isExtendedChartType,
7
7
  knownChartTypeIds,
8
8
  parseDgmo
9
- } from "./chunk-KABGWUND.js";
9
+ } from "./chunk-T327J6CE.js";
10
10
  import "./chunk-EOYPX6SF.js";
11
11
  import "./chunk-WP2RLGDI.js";
12
12
  import "./chunk-A2RUBBVT.js";
@@ -46,14 +46,14 @@ import {
46
46
  looksLikeC4,
47
47
  looksLikeGantt,
48
48
  parseDgmoChartType
49
- } from "./chunk-ECIXBEG2.js";
49
+ } from "./chunk-JVRDKR5R.js";
50
50
  import "./chunk-3RYBTEF5.js";
51
51
  import "./chunk-UNNJCSSQ.js";
52
52
  import "./chunk-3TYUXC7D.js";
53
53
  import "./chunk-HMWZQ53A.js";
54
54
  import "./chunk-EQW6HOP4.js";
55
55
  import "./chunk-DAOFNU6J.js";
56
- import "./chunk-6EV2F6W7.js";
56
+ import "./chunk-VPASQOR3.js";
57
57
  import "./chunk-C3Z4DX3V.js";
58
58
  import "./chunk-JRUEIRJB.js";
59
59
  import "./chunk-7TF3QOOD.js";
@@ -90,4 +90,3 @@ export {
90
90
  parseDgmo,
91
91
  parseDgmoChartType
92
92
  };
93
- //# sourceMappingURL=dgmo-router-YW4SBNYB.js.map
@@ -19,4 +19,3 @@ export {
19
19
  mapContentAspect,
20
20
  mapExportDimensions
21
21
  };
22
- //# sourceMappingURL=dimensions-F3Y5T54V.js.map
package/dist/editor.js CHANGED
@@ -792,4 +792,3 @@ export {
792
792
  dgmoLanguageSupport,
793
793
  dgmoParser
794
794
  };
795
- //# sourceMappingURL=editor.js.map