@diagrammo/dgmo 0.70.0 → 0.71.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 (187) hide show
  1. package/README.md +2 -0
  2. package/dist/advanced.d.ts +3 -4
  3. package/dist/advanced.js +90 -90
  4. package/dist/block.js +46 -46
  5. package/dist/{calculator-GU4NVYE2.js → calculator-4CNL2GKU.js} +3 -3
  6. package/dist/{chart-meta-DNsYpNbh.d.ts → chart-meta-6JaOudSs.d.ts} +8 -1
  7. package/dist/chart-meta.d.ts +2 -2
  8. package/dist/chart-meta.js +42 -42
  9. package/dist/{charts-d3-HWKV46CS.js → charts-d3-6IHGTXBR.js} +5 -5
  10. package/dist/{chunk-LK35AH5V.js → chunk-2JY7KE7C.js} +5 -5
  11. package/dist/{chunk-6WI76LHG.js → chunk-376ATV2Q.js} +19 -5
  12. package/dist/{chunk-PMDE3I53.js → chunk-3HN32MEK.js} +2 -2
  13. package/dist/{chunk-EHRME74D.js → chunk-3SNE4CLI.js} +3 -3
  14. package/dist/{chunk-V5VCGTS4.js → chunk-4VUFJ7UA.js} +3 -3
  15. package/dist/{chunk-7YCHRBD3.js → chunk-5DYDPP7K.js} +2 -2
  16. package/dist/{chunk-R2UUKZ6R.js → chunk-5GTYY2XV.js} +3 -3
  17. package/dist/{chunk-ZCWEJ3VB.js → chunk-6EDBUKC7.js} +2 -2
  18. package/dist/{chunk-IODPKTRZ.js → chunk-6PA32CUB.js} +2 -2
  19. package/dist/{chunk-VSZRPDIZ.js → chunk-6S53NO3M.js} +5 -2
  20. package/dist/{chunk-IOVJT4PE.js → chunk-722TKHMS.js} +4 -4
  21. package/dist/{chunk-PP75ABA4.js → chunk-7BHM774H.js} +6 -6
  22. package/dist/{chunk-B6MHT3A7.js → chunk-7REARI5N.js} +2 -2
  23. package/dist/{chunk-YXW2ZYS3.js → chunk-7SEQPFBX.js} +38 -7
  24. package/dist/{chunk-VALNMR2Y.js → chunk-7TSBM4BV.js} +3 -3
  25. package/dist/{chunk-3QLXP6QZ.js → chunk-AEYRSPVV.js} +2 -2
  26. package/dist/{chunk-BNJC5KVG.js → chunk-BYSRXYRW.js} +4 -4
  27. package/dist/{chunk-R2VVBC52.js → chunk-C3MVZ7EW.js} +3 -3
  28. package/dist/{chunk-J3XFVPEU.js → chunk-CH4WODSG.js} +3 -3
  29. package/dist/{chunk-4CTCOHDS.js → chunk-CR5WIA6I.js} +2 -2
  30. package/dist/{chunk-EC5USK74.js → chunk-DEVZWCD5.js} +17 -5
  31. package/dist/{chunk-PBXMUXBW.js → chunk-DPGI742S.js} +20 -2
  32. package/dist/{chunk-ASUFSCVV.js → chunk-E36Q5ABQ.js} +4 -4
  33. package/dist/{chunk-TJ5PDNGU.js → chunk-EETUTZ5C.js} +2 -2
  34. package/dist/{chunk-KVM4POFR.js → chunk-ELIGVSLE.js} +10 -3
  35. package/dist/{chunk-5ECGBM5S.js → chunk-ENJWB5LU.js} +6 -6
  36. package/dist/{chunk-7LIDBQDO.js → chunk-FAJS2N4O.js} +5 -5
  37. package/dist/{chunk-KSK6B35D.js → chunk-FFD6A3B2.js} +22 -5
  38. package/dist/{chunk-K3MUWASA.js → chunk-FLXDMH7B.js} +3 -3
  39. package/dist/{chunk-UJ4FJLBF.js → chunk-FX2USYOU.js} +13 -1
  40. package/dist/{chunk-Z6G367CM.js → chunk-HTGYAMOK.js} +3 -3
  41. package/dist/{chunk-Z4KRDDZC.js → chunk-HWNF22ZZ.js} +20 -15
  42. package/dist/{chunk-Y37EDBPR.js → chunk-IFJIYUI6.js} +2 -2
  43. package/dist/{chunk-QQI4JTJB.js → chunk-IQ4W4Q2R.js} +2 -2
  44. package/dist/{chunk-FH3S7FDS.js → chunk-ISKO4MQ5.js} +4 -4
  45. package/dist/{chunk-EDFUVEO6.js → chunk-IWNHEK5K.js} +6 -6
  46. package/dist/{chunk-BQVCENFX.js → chunk-JIWDWOYA.js} +3 -3
  47. package/dist/{chunk-HAGHVHR7.js → chunk-K6MQJ5IV.js} +2 -2
  48. package/dist/{chunk-MOMPLSQI.js → chunk-KJWIU5AM.js} +2 -2
  49. package/dist/{chunk-65KNPZCC.js → chunk-KOVRFBGR.js} +25 -4
  50. package/dist/{chunk-SHS3O7ZZ.js → chunk-LJS4Z326.js} +3 -3
  51. package/dist/{chunk-NZ2Z4ZEN.js → chunk-LSHROB27.js} +3 -3
  52. package/dist/{chunk-Q7UM3R3Y.js → chunk-LTGOPJUV.js} +2 -2
  53. package/dist/{chunk-WBPWR2CX.js → chunk-LUI425JB.js} +3 -3
  54. package/dist/{chunk-USOLDMYO.js → chunk-LXGUK56B.js} +5 -5
  55. package/dist/{chunk-MMYRNZRQ.js → chunk-MC2H32SM.js} +3 -3
  56. package/dist/{chunk-CE2Z3OXR.js → chunk-MFSTE3YG.js} +18 -4
  57. package/dist/{chunk-4FEPSBUH.js → chunk-MKNWMFZU.js} +15 -5
  58. package/dist/{chunk-6NWCQCJV.js → chunk-MWWRIOEN.js} +2 -2
  59. package/dist/{chunk-HK3JTWG3.js → chunk-MX3BYU7V.js} +2 -2
  60. package/dist/{chunk-76XAJN7L.js → chunk-NEC7R2CB.js} +2 -2
  61. package/dist/{chunk-56TCBKXP.js → chunk-NJKUTY4M.js} +3 -3
  62. package/dist/{chunk-D62K46CW.js → chunk-NNMNHE3J.js} +2 -2
  63. package/dist/{chunk-XDEVAAY4.js → chunk-NTBHGUXY.js} +13 -3
  64. package/dist/{chunk-YYFIZ3AO.js → chunk-NUF7YTHA.js} +2 -2
  65. package/dist/{chunk-AA6LBVBN.js → chunk-PBV2C3BW.js} +27 -6
  66. package/dist/{chunk-2QLYLYLN.js → chunk-PLSTP7P4.js} +40 -40
  67. package/dist/{chunk-CVMD5UWI.js → chunk-QAJFIXJE.js} +19 -5
  68. package/dist/{chunk-YA464EGR.js → chunk-QPG55HGH.js} +3 -3
  69. package/dist/{chunk-MUXI4Y6U.js → chunk-REBTZP3W.js} +2 -2
  70. package/dist/{chunk-H7LQGRM3.js → chunk-RJI6MHHK.js} +3 -3
  71. package/dist/{chunk-TSY25V7W.js → chunk-RNSGPTOZ.js} +3 -3
  72. package/dist/{chunk-UFKFABSP.js → chunk-T3LNWU7B.js} +6 -6
  73. package/dist/{chunk-G5UTJZFR.js → chunk-T7W5LM4N.js} +11 -3
  74. package/dist/{chunk-GAK5UOKL.js → chunk-TF7CFAZ5.js} +3 -3
  75. package/dist/{chunk-H4VRTBMS.js → chunk-TGGKBY22.js} +58 -15
  76. package/dist/{chunk-FQ7OYKOS.js → chunk-UIBPFSIT.js} +6 -6
  77. package/dist/{chunk-ZLPNK7U2.js → chunk-UNM2PX5D.js} +3 -3
  78. package/dist/{chunk-JR6H5MEF.js → chunk-UNTFANSM.js} +3 -3
  79. package/dist/{chunk-UG3MRJL6.js → chunk-UTVKOGFF.js} +2 -2
  80. package/dist/{chunk-JCAINYVG.js → chunk-UVAOL2EO.js} +5 -5
  81. package/dist/{chunk-MGAWLZQE.js → chunk-UY77QQWU.js} +2 -2
  82. package/dist/{chunk-7LMDJ3U7.js → chunk-VE7PPEU3.js} +105 -18
  83. package/dist/{chunk-MZBEPHFY.js → chunk-VGLSKDDI.js} +2 -2
  84. package/dist/{chunk-5FBSYKPQ.js → chunk-VMXV2CL5.js} +4 -4
  85. package/dist/{chunk-FFI25S5O.js → chunk-W27BULCB.js} +4 -4
  86. package/dist/{chunk-NTXNVS47.js → chunk-W7SZKJR6.js} +3 -3
  87. package/dist/{chunk-MACY4WJ4.js → chunk-WEC3JPTN.js} +4 -4
  88. package/dist/{chunk-LQB3NKEA.js → chunk-WPXHTYET.js} +16 -11
  89. package/dist/{chunk-HQBY3N3S.js → chunk-X2NX2SK6.js} +2 -2
  90. package/dist/{chunk-QQFO63AA.js → chunk-XIZCHGP7.js} +3 -3
  91. package/dist/{chunk-QRLNO6C7.js → chunk-XJZSN42P.js} +188 -120
  92. package/dist/{chunk-6KJMPC6H.js → chunk-XQW4KFJ4.js} +8 -8
  93. package/dist/{chunk-XAPHRRQ4.js → chunk-YCOGUPHL.js} +4 -4
  94. package/dist/{chunk-PYL2K5CE.js → chunk-YG35ZCNW.js} +20 -5
  95. package/dist/{chunk-6NEFSIL3.js → chunk-YH5KJIO5.js} +4 -4
  96. package/dist/{chunk-N5XT3OWL.js → chunk-YTFA4VTW.js} +2 -2
  97. package/dist/{chunk-SW36YNNE.js → chunk-YYBQ55V2.js} +35 -74
  98. package/dist/{chunk-M2QQQWM3.js → chunk-ZJJWON5O.js} +15 -5
  99. package/dist/{chunk-WN6V4ILM.js → chunk-ZNHPCITV.js} +4 -4
  100. package/dist/collapse-JRGPUE67.js +13 -0
  101. package/dist/completion-registry.js +14 -9
  102. package/dist/dgmo-router-J6OWNMEJ.js +89 -0
  103. package/dist/{dgmo-router-EAW7XiBE.d.ts → dgmo-router-Lya7cs3R.d.ts} +28 -0
  104. package/dist/{dimensions-RIZPH26J.js → dimensions-EFEBIRS6.js} +5 -5
  105. package/dist/editor.js +6 -3
  106. package/dist/{flowchart-parser-A64T3OEL.js → flowchart-parser-LZF2GW2P.js} +4 -4
  107. package/dist/{flowchart-renderer-F6PDPKK7.js → flowchart-renderer-HB277GNE.js} +5 -5
  108. package/dist/highlight.js +6 -3
  109. package/dist/index.d.ts +1 -1
  110. package/dist/index.js +55 -46
  111. package/dist/{layout-2D6VKW6G.js → layout-2DVT24YY.js} +3 -3
  112. package/dist/{layout-FFCYSTW7.js → layout-AWPST2S3.js} +3 -3
  113. package/dist/{layout-CYNBG5EP.js → layout-BGXLVSXL.js} +4 -4
  114. package/dist/{layout-COGPMCW5.js → layout-BNR6ZDB6.js} +4 -4
  115. package/dist/{layout-36Z4NU4W.js → layout-N6ZOOAYT.js} +4 -4
  116. package/dist/{layout-2DUQIJOI.js → layout-PBB2RQJ4.js} +4 -4
  117. package/dist/{parser-LGDW543A.js → parser-2CXA7K5C.js} +4 -4
  118. package/dist/{parser-6OWUGHKY.js → parser-4E2TVMOK.js} +4 -4
  119. package/dist/{parser-2PN2WRYX.js → parser-52AZJ3BA.js} +4 -4
  120. package/dist/{parser-A3B5KVPK.js → parser-52BOCAVQ.js} +4 -4
  121. package/dist/{parser-FNOWLKC4.js → parser-5IPCYVXY.js} +4 -4
  122. package/dist/{parser-U3T76HY2.js → parser-6BF5TJQH.js} +4 -4
  123. package/dist/{parser-SEFSLUXW.js → parser-6VZISXFY.js} +3 -3
  124. package/dist/{parser-VDD3N5SC.js → parser-6Y5BMNNJ.js} +5 -5
  125. package/dist/{parser-LJZIQJRA.js → parser-7HUZBXKW.js} +3 -3
  126. package/dist/{parser-PXI5UCVR.js → parser-AEJ73QJS.js} +3 -3
  127. package/dist/{parser-M7HBD7V2.js → parser-AWNEAGMJ.js} +4 -4
  128. package/dist/{parser-53ALMRAE.js → parser-C2QRTZPJ.js} +4 -4
  129. package/dist/{parser-DLIBNGNQ.js → parser-CBSYFN6U.js} +3 -3
  130. package/dist/{parser-IL4T3HCM.js → parser-CDMP3UVH.js} +4 -4
  131. package/dist/{parser-CDA5DGXA.js → parser-CNKHKQKZ.js} +4 -4
  132. package/dist/{parser-VQKLDBS7.js → parser-EX3AGFT5.js} +4 -4
  133. package/dist/{parser-SOOR27MC.js → parser-GK3JWVHY.js} +5 -5
  134. package/dist/{parser-4VIMOING.js → parser-GZKR6BFA.js} +4 -4
  135. package/dist/{parser-YCRATNR6.js → parser-K26KDCZN.js} +3 -3
  136. package/dist/{parser-SZXKUTVE.js → parser-LTJ5AKY4.js} +4 -4
  137. package/dist/{parser-Q2K7TDEA.js → parser-NIGB4EYX.js} +3 -3
  138. package/dist/{parser-DAMYSBVY.js → parser-O7GTECFP.js} +3 -3
  139. package/dist/{parser-3QXKYLDG.js → parser-OHWDJGCP.js} +3 -3
  140. package/dist/{parser-RZIIZ3EW.js → parser-QCVEWLCO.js} +3 -3
  141. package/dist/{parser-E33LTBYE.js → parser-SUAOF72Y.js} +4 -4
  142. package/dist/{parser-CLDLYMDI.js → parser-TJ3SP2MJ.js} +4 -4
  143. package/dist/{parser-GEELVJ4X.js → parser-W2HXBHNC.js} +3 -3
  144. package/dist/{parser-2QQJFTMD.js → parser-WF4R7225.js} +4 -4
  145. package/dist/{parser-5ETIIQIM.js → parser-XM6JC3UK.js} +4 -4
  146. package/dist/{parser-D5EZ6Y5I.js → parser-XRZQ7SC7.js} +4 -4
  147. package/dist/{parser-ZXI4IQ5Y.js → parser-YRJAGBV7.js} +4 -4
  148. package/dist/{parser-4CEHZFZG.js → parser-Z3LN7P6G.js} +5 -5
  149. package/dist/{parser-52SRJNP4.js → parser-ZIEEBJMU.js} +4 -4
  150. package/dist/{renderer-PR3AGJ37.js → renderer-2MEPYGAP.js} +7 -7
  151. package/dist/{renderer-SDCMF5AF.js → renderer-35HBBPIQ.js} +5 -5
  152. package/dist/{renderer-WA5K5VWA.js → renderer-3DSU72CP.js} +7 -7
  153. package/dist/{renderer-WPGW6FTW.js → renderer-4CUV63GT.js} +7 -7
  154. package/dist/{renderer-3VPTEQBU.js → renderer-4ORE7HJ3.js} +5 -5
  155. package/dist/{renderer-AF6DVUZH.js → renderer-5FQFMCBZ.js} +7 -7
  156. package/dist/{renderer-YZMFPZGC.js → renderer-5YV6KP4U.js} +7 -7
  157. package/dist/{renderer-Q24E7LBF.js → renderer-7BGC4KPZ.js} +5 -5
  158. package/dist/{renderer-P2MICJH5.js → renderer-7VPABTMS.js} +7 -7
  159. package/dist/{renderer-VTP3QCCP.js → renderer-ANWAX5QO.js} +6 -6
  160. package/dist/{renderer-U7INHN4J.js → renderer-BQWAUDEF.js} +4 -4
  161. package/dist/renderer-DGZDRRJW.js +76 -0
  162. package/dist/{renderer-PUYQ5CDE.js → renderer-E3UQ24DE.js} +5 -5
  163. package/dist/{renderer-UC2ZZISO.js → renderer-FCIOD2QK.js} +5 -5
  164. package/dist/{renderer-VK6KVXFB.js → renderer-H5QR3LC3.js} +4 -4
  165. package/dist/{renderer-KVRTLE2D.js → renderer-JFZVWH2G.js} +3 -3
  166. package/dist/{renderer-EVHFS3PP.js → renderer-JHWGW4Q7.js} +5 -5
  167. package/dist/{renderer-RY7RQQ37.js → renderer-JWSO5O2L.js} +3 -3
  168. package/dist/{renderer-REULT7UI.js → renderer-KFWZPVYT.js} +7 -7
  169. package/dist/{renderer-MGYWZFFR.js → renderer-KQIJV5WD.js} +5 -5
  170. package/dist/{renderer-4LLJHGIQ.js → renderer-LVAUI6T6.js} +6 -6
  171. package/dist/{renderer-52YQ3EYR.js → renderer-MZ4N2SVV.js} +5 -5
  172. package/dist/{renderer-KLRBL45Z.js → renderer-QMSFXMAL.js} +5 -5
  173. package/dist/{renderer-SFYFVKVN.js → renderer-QOWN3XDI.js} +8 -6
  174. package/dist/{renderer-3EN7ZSXI.js → renderer-S5MGQHRQ.js} +6 -6
  175. package/dist/{renderer-F75AZ6HF.js → renderer-V3PN5ZQS.js} +5 -5
  176. package/dist/{renderer-QOI2SEEA.js → renderer-VOXE7V6L.js} +7 -7
  177. package/dist/{renderer-XOPHJWNZ.js → renderer-WBG576LB.js} +5 -5
  178. package/dist/{renderer-RJLAM6G5.js → renderer-YXYEP46H.js} +6 -6
  179. package/dist/{renderer-BT6TOWBE.js → renderer-ZEPPPA3W.js} +3 -3
  180. package/dist/{renderer-radial-AVHNPO2N.js → renderer-radial-KZ3W4WXI.js} +6 -6
  181. package/dist/{state-parser-GSU2ZDVR.js → state-parser-HJNCGIFT.js} +5 -5
  182. package/dist/{state-renderer-Q6XQDK3W.js → state-renderer-776LP3NE.js} +7 -7
  183. package/docs/language-reference.md +22 -1
  184. package/package.json +2 -1
  185. package/dist/collapse-CLPJD2RL.js +0 -11
  186. package/dist/dgmo-router-YFNEFJST.js +0 -89
  187. package/dist/renderer-BQORZPWF.js +0 -76
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-A4GOY3PE.js";
29
29
  import {
30
30
  renderIntegratedLegend
31
- } from "./chunk-VSZRPDIZ.js";
31
+ } from "./chunk-6S53NO3M.js";
32
32
  import {
33
33
  getLegendExtent,
34
34
  getMaxLegendReservedHeight
@@ -54,17 +54,17 @@ import {
54
54
  } from "./chunk-MTGGOCND.js";
55
55
  import {
56
56
  parseInfra
57
- } from "./chunk-CE2Z3OXR.js";
57
+ } from "./chunk-MFSTE3YG.js";
58
58
  import {
59
59
  preprocessDescriptionLine
60
60
  } from "./chunk-IYULMRBE.js";
61
61
  import {
62
62
  tagAttrKey
63
- } from "./chunk-PBXMUXBW.js";
63
+ } from "./chunk-DPGI742S.js";
64
64
  import {
65
65
  legendInlineRequested,
66
66
  legendSuppressed
67
- } from "./chunk-M2QQQWM3.js";
67
+ } from "./chunk-ZJJWON5O.js";
68
68
  import {
69
69
  contrastText,
70
70
  mix,
@@ -962,7 +962,7 @@ function resolveActiveTagStroke(node, activeGroup, tagGroups, palette) {
962
962
  (t) => t.name.toLowerCase() === activeGroup.toLowerCase()
963
963
  );
964
964
  if (!tg) return null;
965
- const tagKey = tagAttrKey(tg.alias ?? tg.name);
965
+ const tagKey = tagAttrKey(tg.name);
966
966
  const tagVal = node.tags[tagKey];
967
967
  if (!tagVal) return null;
968
968
  const tv = tg.values.find(
@@ -1003,7 +1003,7 @@ function renderNodes(svg, nodes, palette, isDark, animate, expandedNodeIds, acti
1003
1003
  g.attr("data-node-toggle", node.id);
1004
1004
  }
1005
1005
  for (const [tagKey, tagVal] of Object.entries(node.tags)) {
1006
- g.attr(`data-tag-${tagKey.toLowerCase()}`, tagVal.toLowerCase());
1006
+ g.attr(`data-tag-${tagAttrKey(tagKey)}`, tagVal.toLowerCase());
1007
1007
  }
1008
1008
  if (!node.isEdge) {
1009
1009
  const roles = inferRoles(node.properties);
@@ -1295,7 +1295,7 @@ function computeInfraLegendGroups(nodes, tagGroups, palette, edges) {
1295
1295
  groups.push({
1296
1296
  name: tg.name,
1297
1297
  type: "tag",
1298
- tagKey: tagAttrKey(tg.alias ?? tg.name),
1298
+ tagKey: tagAttrKey(tg.name),
1299
1299
  entries,
1300
1300
  width: LEGEND_CAPSULE_PAD * 2 + pillWidth + 4 + entriesWidth,
1301
1301
  minifiedWidth: pillWidth
@@ -1613,4 +1613,4 @@ export {
1613
1613
  renderInfra,
1614
1614
  parseAndLayoutInfra
1615
1615
  };
1616
- //# sourceMappingURL=chunk-6KJMPC6H.js.map
1616
+ //# sourceMappingURL=chunk-XQW4KFJ4.js.map
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-A4GOY3PE.js";
31
31
  import {
32
32
  renderIntegratedLegend
33
- } from "./chunk-VSZRPDIZ.js";
33
+ } from "./chunk-6S53NO3M.js";
34
34
  import {
35
35
  getLegendExtent,
36
36
  getMaxLegendReservedHeight
@@ -45,12 +45,12 @@ import {
45
45
  } from "./chunk-MTGGOCND.js";
46
46
  import {
47
47
  resolveTagColor
48
- } from "./chunk-PBXMUXBW.js";
48
+ } from "./chunk-DPGI742S.js";
49
49
  import {
50
50
  fillModeFromOptions,
51
51
  legendInlineRequested,
52
52
  legendSuppressed
53
- } from "./chunk-M2QQQWM3.js";
53
+ } from "./chunk-ZJJWON5O.js";
54
54
  import {
55
55
  contrastText,
56
56
  mix,
@@ -838,4 +838,4 @@ export {
838
838
  renderBoxesAndLines,
839
839
  renderBoxesAndLinesForExport
840
840
  };
841
- //# sourceMappingURL=chunk-XAPHRRQ4.js.map
841
+ //# sourceMappingURL=chunk-YCOGUPHL.js.map
@@ -12,12 +12,13 @@ import {
12
12
  } from "./chunk-NOTA6TEI.js";
13
13
  import {
14
14
  AUTO_TAG_COLOR_SENTINEL,
15
+ activeTagNoMatchMessage,
15
16
  finalizeAutoTagColors,
16
17
  matchTagBlockHeading,
17
18
  stripDefaultModifier,
18
19
  tagAttrKey,
19
20
  validateTagGroupNames
20
- } from "./chunk-PBXMUXBW.js";
21
+ } from "./chunk-DPGI742S.js";
21
22
  import {
22
23
  C4_REGISTRY,
23
24
  OPTION_NOCOLON_RE,
@@ -28,7 +29,7 @@ import {
28
29
  splitNameAndMeta,
29
30
  warnUnknownMetaKeys,
30
31
  withTagAliases
31
- } from "./chunk-M2QQQWM3.js";
32
+ } from "./chunk-ZJJWON5O.js";
32
33
  import {
33
34
  formatDgmoError,
34
35
  makeDgmoError,
@@ -164,8 +165,8 @@ function parseC4(content, palette) {
164
165
  diagnostics: [],
165
166
  error: null
166
167
  };
167
- const pushError = (line, message, severity = "error") => {
168
- const diag = makeDgmoError(line, message, severity);
168
+ const pushError = (line, message, severity = "error", code) => {
169
+ const diag = makeDgmoError(line, message, severity, code);
169
170
  result.diagnostics.push(diag);
170
171
  if (!result.error && severity === "error")
171
172
  result.error = formatDgmoError(diag);
@@ -176,6 +177,7 @@ function parseC4(content, palette) {
176
177
  }
177
178
  const lines = content.split("\n");
178
179
  let contentStarted = false;
180
+ let activeTagOptionLine = 0;
179
181
  let sawChartType = false;
180
182
  let inDeployment = false;
181
183
  let currentTagGroup = null;
@@ -265,6 +267,7 @@ function parseC4(content, palette) {
265
267
  }
266
268
  if (KNOWN_C4_OPTIONS.has(key)) {
267
269
  options[key] = optMatch[2].trim();
270
+ if (key === "active-tag") activeTagOptionLine = lineNumber;
268
271
  continue;
269
272
  }
270
273
  }
@@ -735,6 +738,18 @@ function parseC4(content, palette) {
735
738
  (line, msg) => pushError(line, msg, "warning")
736
739
  );
737
740
  result.direction = options["direction-lr"] ? "LR" : "TB";
741
+ const activeTagWarning = activeTagNoMatchMessage(
742
+ options["active-tag"],
743
+ result.tagGroups
744
+ );
745
+ if (activeTagWarning) {
746
+ pushError(
747
+ activeTagOptionLine || 1,
748
+ activeTagWarning,
749
+ "warning",
750
+ "W_ACTIVE_TAG_NO_MATCH"
751
+ );
752
+ }
738
753
  return result;
739
754
  }
740
755
  function findParentElement(indent, stack) {
@@ -830,4 +845,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
830
845
  export {
831
846
  parseC4
832
847
  };
833
- //# sourceMappingURL=chunk-PYL2K5CE.js.map
848
+ //# sourceMappingURL=chunk-YG35ZCNW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryCollectNote
3
- } from "./chunk-HK3JTWG3.js";
3
+ } from "./chunk-MX3BYU7V.js";
4
4
  import {
5
5
  resolveNotes
6
6
  } from "./chunk-7NK42OIB.js";
@@ -19,7 +19,7 @@ import {
19
19
  tagAttrKey,
20
20
  validateTagGroupNames,
21
21
  validateTagValues
22
- } from "./chunk-PBXMUXBW.js";
22
+ } from "./chunk-DPGI742S.js";
23
23
  import {
24
24
  ALL_CHART_TYPES,
25
25
  FILL_FAMILY_TOKENS,
@@ -32,7 +32,7 @@ import {
32
32
  parseMetadataRegion,
33
33
  tryParseSharedOption,
34
34
  withTagAliases
35
- } from "./chunk-M2QQQWM3.js";
35
+ } from "./chunk-ZJJWON5O.js";
36
36
  import {
37
37
  resolveColorWithDiagnostic
38
38
  } from "./chunk-EXNKNJ65.js";
@@ -543,4 +543,4 @@ export {
543
543
  parseState,
544
544
  looksLikeState
545
545
  };
546
- //# sourceMappingURL=chunk-6NEFSIL3.js.map
546
+ //# sourceMappingURL=chunk-YH5KJIO5.js.map
@@ -5,7 +5,7 @@ import {
5
5
  parseFirstLine,
6
6
  splitNameAndMeta,
7
7
  warnUnknownMetaKeys
8
- } from "./chunk-M2QQQWM3.js";
8
+ } from "./chunk-ZJJWON5O.js";
9
9
  import {
10
10
  makeDgmoError,
11
11
  makeFail,
@@ -338,4 +338,4 @@ function assignGlobalNumbers(result) {
338
338
  export {
339
339
  parseTechRadar
340
340
  };
341
- //# sourceMappingURL=chunk-N5XT3OWL.js.map
341
+ //# sourceMappingURL=chunk-YTFA4VTW.js.map
@@ -1,25 +1,23 @@
1
1
  import {
2
- AUTO_TAG_COLOR_SENTINEL,
3
- finalizeAutoTagColors,
4
- isTagBlockHeading,
5
- matchTagBlockHeading,
6
- stripDefaultModifier,
7
- validateTagGroupNames
8
- } from "./chunk-PBXMUXBW.js";
2
+ isTagBlockHeading
3
+ } from "./chunk-DPGI742S.js";
9
4
  import {
10
5
  OPTION_NOCOLON_RE,
11
- extractColor,
12
6
  measureIndent,
13
7
  parseFirstLine,
14
8
  tryParseSharedOption
15
- } from "./chunk-M2QQQWM3.js";
9
+ } from "./chunk-ZJJWON5O.js";
16
10
  import {
17
11
  formatDgmoError,
18
12
  makeDgmoError
19
13
  } from "./chunk-OLMWTJVU.js";
20
14
 
21
15
  // src/wireframe/parser.ts
22
- var KNOWN_OPTIONS = /* @__PURE__ */ new Set(["palette", "theme", "active-tag"]);
16
+ var KNOWN_OPTIONS = /* @__PURE__ */ new Set(["palette", "theme"]);
17
+ var INERT_OPTIONS = {
18
+ "active-tag": '"active-tag" does nothing on a wireframe \u2014 it has no tag groups. Element appearance comes from the trailing state keywords (primary, disabled, selected, \u2026).'
19
+ };
20
+ var NO_TAG_GROUPS_MESSAGE = "A wireframe has no tag groups \u2014 this block is ignored. Element appearance comes from the trailing state keywords (primary, disabled, selected, \u2026).";
23
21
  var GROUP_ONLY_METADATA = /* @__PURE__ */ new Set([
24
22
  "horizontal",
25
23
  "scrollable",
@@ -411,22 +409,15 @@ function parseWireframe(content) {
411
409
  let formFactor = "desktop";
412
410
  const roots = [];
413
411
  const modals = [];
414
- const tagGroups = [];
415
412
  const options = {};
416
413
  let phase = "header";
417
- let currentTagGroup = null;
414
+ let swallowingTagBlock = false;
418
415
  function pushWarning(line, msg) {
419
416
  diagnostics.push(makeDgmoError(line, msg, "warning"));
420
417
  }
421
- function makeTagGroup(trimmed, lineNumber) {
422
- const match = matchTagBlockHeading(trimmed);
423
- if (!match) return null;
424
- return {
425
- name: match.name,
426
- ...match.alias !== void 0 && { alias: match.alias },
427
- entries: [],
428
- lineNumber
429
- };
418
+ function refuseTagBlock(lineNumber) {
419
+ pushWarning(lineNumber, NO_TAG_GROUPS_MESSAGE);
420
+ swallowingTagBlock = true;
430
421
  }
431
422
  const indentStack = [];
432
423
  function findParent(indent) {
@@ -500,6 +491,10 @@ function parseWireframe(content) {
500
491
  const trimmed = line.trim();
501
492
  if (!trimmed || trimmed.startsWith("//")) continue;
502
493
  const indent = measureIndent(line);
494
+ if (swallowingTagBlock) {
495
+ if (indent > 0) continue;
496
+ swallowingTagBlock = false;
497
+ }
503
498
  if (phase === "header") {
504
499
  const firstLineResult = parseFirstLine(trimmed);
505
500
  if (firstLineResult?.chartType === "wireframe") {
@@ -515,52 +510,23 @@ function parseWireframe(content) {
515
510
  continue;
516
511
  }
517
512
  const optMatch = trimmed.match(OPTION_NOCOLON_RE);
518
- if (optMatch && KNOWN_OPTIONS.has(optMatch[1].toLowerCase())) {
519
- options[optMatch[1]] = optMatch[2] || "";
520
- continue;
521
- }
522
- if (isTagBlockHeading(trimmed)) {
523
- const tg = makeTagGroup(trimmed, lineNumber);
524
- if (tg) {
525
- currentTagGroup = tg;
526
- tagGroups.push(tg);
527
- phase = "tags";
513
+ if (optMatch) {
514
+ const key = optMatch[1].toLowerCase();
515
+ const inertMsg = INERT_OPTIONS[key];
516
+ if (inertMsg) {
517
+ pushWarning(lineNumber, inertMsg);
528
518
  continue;
529
519
  }
530
- }
531
- phase = "content";
532
- }
533
- if (phase === "tags") {
534
- if (isTagBlockHeading(trimmed)) {
535
- const tg = makeTagGroup(trimmed, lineNumber);
536
- if (tg) {
537
- currentTagGroup = tg;
538
- tagGroups.push(tg);
520
+ if (KNOWN_OPTIONS.has(key)) {
521
+ options[key] = optMatch[2] || "";
539
522
  continue;
540
523
  }
541
524
  }
542
- if (indent > 0 && currentTagGroup) {
543
- const { text: cleanEntry, isDefault } = stripDefaultModifier(trimmed);
544
- const { label, color } = extractColor(
545
- cleanEntry,
546
- void 0,
547
- diagnostics,
548
- lineNumber
549
- );
550
- currentTagGroup.entries.push({
551
- value: label,
552
- color: color ?? AUTO_TAG_COLOR_SENTINEL,
553
- lineNumber
554
- });
555
- if (isDefault) {
556
- currentTagGroup.defaultValue = label;
557
- } else if (currentTagGroup.entries.length === 1) {
558
- currentTagGroup.defaultValue = label;
559
- }
525
+ if (isTagBlockHeading(trimmed)) {
526
+ refuseTagBlock(lineNumber);
560
527
  continue;
561
528
  }
562
529
  phase = "content";
563
- currentTagGroup = null;
564
530
  }
565
531
  if (phase !== "content") {
566
532
  phase = "content";
@@ -572,21 +538,21 @@ function parseWireframe(content) {
572
538
  if (indent === 0) {
573
539
  const optMatch = trimmed.match(OPTION_NOCOLON_RE);
574
540
  if (optMatch && !trimmed.startsWith("#") && !trimmed.startsWith("[") && !trimmed.startsWith("(")) {
575
- const key = optMatch[1];
576
- if (["palette", "theme", "active-tag"].includes(key)) {
541
+ const key = optMatch[1].toLowerCase();
542
+ const inertMsg = INERT_OPTIONS[key];
543
+ if (inertMsg) {
544
+ pushWarning(lineNumber, inertMsg);
545
+ continue;
546
+ }
547
+ if (KNOWN_OPTIONS.has(key)) {
577
548
  options[key] = optMatch[2] || "";
578
549
  continue;
579
550
  }
580
551
  }
581
552
  }
582
553
  if (isTagBlockHeading(trimmed)) {
583
- const tg = makeTagGroup(trimmed, lineNumber);
584
- if (tg) {
585
- currentTagGroup = tg;
586
- tagGroups.push(tg);
587
- phase = "tags";
588
- continue;
589
- }
554
+ refuseTagBlock(lineNumber);
555
+ continue;
590
556
  }
591
557
  if (indentStack.length > 0) {
592
558
  const topNode = indentStack[indentStack.length - 1].node;
@@ -663,10 +629,6 @@ function parseWireframe(content) {
663
629
  }
664
630
  }
665
631
  }
666
- finalizeAutoTagColors(tagGroups);
667
- validateTagGroupNames(tagGroups, pushWarning, (line, msg) => {
668
- diagnostics.push(makeDgmoError(line, msg));
669
- });
670
632
  const error = diagnostics.find((d) => d.severity === "error") ? formatDgmoError(diagnostics.find((d) => d.severity === "error")) : null;
671
633
  return {
672
634
  title,
@@ -674,7 +636,6 @@ function parseWireframe(content) {
674
636
  formFactor,
675
637
  roots,
676
638
  modals,
677
- tagGroups,
678
639
  options,
679
640
  diagnostics,
680
641
  error
@@ -729,4 +690,4 @@ export {
729
690
  resetWireframeIds,
730
691
  parseWireframe
731
692
  };
732
- //# sourceMappingURL=chunk-SW36YNNE.js.map
693
+ //# sourceMappingURL=chunk-YYBQ55V2.js.map
@@ -436,7 +436,8 @@ var chartTypesData = [
436
436
  },
437
437
  {
438
438
  id: "c4",
439
- description: "System architecture (context, container, component, deployment)"
439
+ description: "System architecture (context, container, component, deployment)",
440
+ beta: true
440
441
  },
441
442
  {
442
443
  id: "er",
@@ -546,7 +547,8 @@ var chartTypesData = [
546
547
  },
547
548
  {
548
549
  id: "sketch",
549
- description: "GUI-first constrained canvas: uniformly-sized shapes placed freely on a snap grid, arrows between them, meaning through tags \u2014 the markup is generated by the canvas editor"
550
+ description: "GUI-first constrained canvas: uniformly-sized shapes placed freely on a snap grid, arrows between them, meaning through tags \u2014 the markup is generated by the canvas editor",
551
+ beta: true
550
552
  },
551
553
  {
552
554
  id: "goal",
@@ -571,7 +573,8 @@ var chartTypesData = [
571
573
  },
572
574
  {
573
575
  id: "venn",
574
- description: "Set overlaps"
576
+ description: "Set overlaps",
577
+ beta: true
575
578
  },
576
579
  {
577
580
  id: "funnel",
@@ -707,7 +710,14 @@ var ORG_REGISTRY = staticRegistry([
707
710
  "role",
708
711
  "location",
709
712
  "email",
710
- "phone"
713
+ "phone",
714
+ // The collapse view-state marker, in the COLON form only (`collapsed: true`).
715
+ // Org deliberately has no bare trailing-token form the way mindmap and gantt
716
+ // do: an org label is a person's name and `split.color` is already restored
717
+ // into it (see `createOrgNode`), so a trailing bare word cannot be told from
718
+ // part of a name. `key: value` has no such ambiguity. C4 reserves this same
719
+ // key.
720
+ "collapsed"
711
721
  ]);
712
722
  var C4_REGISTRY = staticRegistry([
713
723
  "color",
@@ -1374,4 +1384,4 @@ export {
1374
1384
  splitNameAndMeta,
1375
1385
  warnUnknownMetaKeys
1376
1386
  };
1377
- //# sourceMappingURL=chunk-M2QQQWM3.js.map
1387
+ //# sourceMappingURL=chunk-ZJJWON5O.js.map
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-SPA7DCB3.js";
14
14
  import {
15
15
  renderIntegratedLegend
16
- } from "./chunk-VSZRPDIZ.js";
16
+ } from "./chunk-6S53NO3M.js";
17
17
  import {
18
18
  FONT_FAMILY
19
19
  } from "./chunk-UTCPNJND.js";
@@ -32,11 +32,11 @@ import {
32
32
  } from "./chunk-QX53GOI7.js";
33
33
  import {
34
34
  parseTimelineDate
35
- } from "./chunk-D62K46CW.js";
35
+ } from "./chunk-NNMNHE3J.js";
36
36
  import {
37
37
  resolveTagColor,
38
38
  tagAttrKey
39
- } from "./chunk-PBXMUXBW.js";
39
+ } from "./chunk-DPGI742S.js";
40
40
  import {
41
41
  getSeriesColors,
42
42
  mix,
@@ -1672,4 +1672,4 @@ export {
1672
1672
  formatDateLabel,
1673
1673
  renderTimeline
1674
1674
  };
1675
- //# sourceMappingURL=chunk-WN6V4ILM.js.map
1675
+ //# sourceMappingURL=chunk-ZNHPCITV.js.map
@@ -0,0 +1,13 @@
1
+ import {
2
+ collapseOrgTree,
3
+ focusOrgTree,
4
+ unionCollapsedOrgNodes
5
+ } from "./chunk-FX2USYOU.js";
6
+ import "./chunk-BS7SV7C3.js";
7
+ import "./chunk-5WRI5ZAA.js";
8
+ export {
9
+ collapseOrgTree,
10
+ focusOrgTree,
11
+ unionCollapsedOrgNodes
12
+ };
13
+ //# sourceMappingURL=collapse-JRGPUE67.js.map
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  GROUP_ONLY_METADATA,
6
6
  STATE_KEYWORDS
7
- } from "./chunk-SW36YNNE.js";
8
- import "./chunk-PBXMUXBW.js";
7
+ } from "./chunk-YYBQ55V2.js";
8
+ import "./chunk-DPGI742S.js";
9
9
  import {
10
10
  ALL_CHART_TYPES,
11
11
  chartTypes
12
- } from "./chunk-M2QQQWM3.js";
12
+ } from "./chunk-ZJJWON5O.js";
13
13
  import "./chunk-EXNKNJ65.js";
14
14
  import "./chunk-OLMWTJVU.js";
15
15
  import "./chunk-5WRI5ZAA.js";
@@ -21,6 +21,9 @@ var INTERNAL_CHART_TYPE_IDS = new Set(
21
21
  function withoutInternalChartTypes(ids) {
22
22
  return ids.filter((id) => !INTERNAL_CHART_TYPE_IDS.has(id));
23
23
  }
24
+ var BETA_CHART_TYPE_IDS = new Set(
25
+ chartTypes.filter((c) => c.beta).map((c) => c.id)
26
+ );
24
27
 
25
28
  // src/completion-registry.ts
26
29
  var GLOBAL_DIRECTIVES = {
@@ -338,8 +341,8 @@ var COMPLETION_REGISTRY = /* @__PURE__ */ new Map([
338
341
  "no-legend": { description: "Hide the legend" },
339
342
  roles: {
340
343
  description: "Declare role column order (inline `roles A, B, C` or indented block with per-role pipe metadata)"
341
- },
342
- "active-tag": { description: "Active tag group name" }
344
+ }
345
+ // No `active-tag`: raci has no tag groups at all (#251).
343
346
  })
344
347
  ],
345
348
  [
@@ -512,9 +515,10 @@ var COMPLETION_REGISTRY = /* @__PURE__ */ new Map([
512
515
  ],
513
516
  [
514
517
  "wireframe",
518
+ // No `active-tag`: a wireframe has no tag groups, and the parser now
519
+ // refuses both it and `tag` blocks (#251).
515
520
  withGlobals({
516
- mobile: { description: "Use mobile (narrow vertical) layout" },
517
- "active-tag": { description: "Active tag group name" }
521
+ mobile: { description: "Use mobile (narrow vertical) layout" }
518
522
  })
519
523
  ],
520
524
  [
@@ -915,8 +919,9 @@ var STRUCTURAL_KEYWORDS = /* @__PURE__ */ new Map([
915
919
  "alert",
916
920
  "progress",
917
921
  "chart",
918
- "mobile",
919
- "tag"
922
+ "mobile"
923
+ // No `tag`: wireframe has no tag groups, and dropping it here also
924
+ // drops wireframe from the derived TAG_SUPPORTING_TYPES below (#251).
920
925
  ]
921
926
  ],
922
927
  ["class", ["abstract", "interface", "enum", "extends", "implements"]]
@@ -0,0 +1,89 @@
1
+ import {
2
+ CHART_TYPE_DESCRIPTIONS,
3
+ chartTypeParsers,
4
+ getAllChartTypes,
5
+ getRenderCategory,
6
+ isExtendedChartType,
7
+ knownChartTypeIds,
8
+ looksLikeC4,
9
+ looksLikeGantt,
10
+ parseDgmo,
11
+ parseDgmoChartType
12
+ } from "./chunk-PLSTP7P4.js";
13
+ import "./chunk-NEC7R2CB.js";
14
+ import "./chunk-A2RUBBVT.js";
15
+ import "./chunk-MC2H32SM.js";
16
+ import "./chunk-T7W5LM4N.js";
17
+ import "./chunk-UNM2PX5D.js";
18
+ import "./chunk-UY77QQWU.js";
19
+ import "./chunk-2CW5ZTNH.js";
20
+ import "./chunk-BDXC7MDK.js";
21
+ import "./chunk-NUF7YTHA.js";
22
+ import "./chunk-376ATV2Q.js";
23
+ import "./chunk-KJWIU5AM.js";
24
+ import "./chunk-6PA32CUB.js";
25
+ import "./chunk-WPXHTYET.js";
26
+ import "./chunk-JIWDWOYA.js";
27
+ import "./chunk-XSVWUOUZ.js";
28
+ import "./chunk-LTGOPJUV.js";
29
+ import "./chunk-5DYDPP7K.js";
30
+ import "./chunk-OQKP2X3D.js";
31
+ import "./chunk-HWNF22ZZ.js";
32
+ import "./chunk-PBV2C3BW.js";
33
+ import "./chunk-NJKUTY4M.js";
34
+ import "./chunk-RT7ACF77.js";
35
+ import "./chunk-TF7CFAZ5.js";
36
+ import "./chunk-QPG55HGH.js";
37
+ import "./chunk-QQJUTGQH.js";
38
+ import "./chunk-QAJFIXJE.js";
39
+ import "./chunk-YTFA4VTW.js";
40
+ import "./chunk-NTBHGUXY.js";
41
+ import "./chunk-3TYUXC7D.js";
42
+ import "./chunk-K6MQJ5IV.js";
43
+ import "./chunk-VMXV2CL5.js";
44
+ import "./chunk-NNMNHE3J.js";
45
+ import "./chunk-AEYRSPVV.js";
46
+ import "./chunk-MKNWMFZU.js";
47
+ import "./chunk-YG35ZCNW.js";
48
+ import "./chunk-MFSTE3YG.js";
49
+ import "./chunk-DEVZWCD5.js";
50
+ import "./chunk-EQW6HOP4.js";
51
+ import "./chunk-DAOFNU6J.js";
52
+ import "./chunk-FFD6A3B2.js";
53
+ import "./chunk-C3Z4DX3V.js";
54
+ import "./chunk-RJI6MHHK.js";
55
+ import "./chunk-7TF3QOOD.js";
56
+ import "./chunk-YH5KJIO5.js";
57
+ import "./chunk-NXMESY4J.js";
58
+ import "./chunk-UNTFANSM.js";
59
+ import "./chunk-KOVRFBGR.js";
60
+ import "./chunk-MX3BYU7V.js";
61
+ import "./chunk-7NK42OIB.js";
62
+ import "./chunk-RRX4Z4TH.js";
63
+ import "./chunk-7SEQPFBX.js";
64
+ import "./chunk-FLXDMH7B.js";
65
+ import "./chunk-IYULMRBE.js";
66
+ import "./chunk-NOTA6TEI.js";
67
+ import "./chunk-I55PVEIX.js";
68
+ import "./chunk-YYBQ55V2.js";
69
+ import "./chunk-DPGI742S.js";
70
+ import "./chunk-ZJJWON5O.js";
71
+ import "./chunk-23RWHHI5.js";
72
+ import "./chunk-R3XI2VC7.js";
73
+ import "./chunk-KWRW6BLG.js";
74
+ import "./chunk-EXNKNJ65.js";
75
+ import "./chunk-OLMWTJVU.js";
76
+ import "./chunk-5WRI5ZAA.js";
77
+ export {
78
+ CHART_TYPE_DESCRIPTIONS,
79
+ chartTypeParsers,
80
+ getAllChartTypes,
81
+ getRenderCategory,
82
+ isExtendedChartType,
83
+ knownChartTypeIds,
84
+ looksLikeC4,
85
+ looksLikeGantt,
86
+ parseDgmo,
87
+ parseDgmoChartType
88
+ };
89
+ //# sourceMappingURL=dgmo-router-J6OWNMEJ.js.map