@diagrammo/dgmo 0.52.0 → 0.53.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 (329) hide show
  1. package/.cursorrules +59 -58
  2. package/.github/copilot-instructions.md +59 -58
  3. package/.windsurfrules +59 -58
  4. package/SKILL.md +59 -58
  5. package/dist/advanced.d.ts +65 -230
  6. package/dist/advanced.js +278 -611
  7. package/dist/analyzer-TDN5KJFP.js +15 -0
  8. package/dist/auto.css +14 -6
  9. package/dist/auto.js +142 -132
  10. package/dist/auto.mjs +1117 -452
  11. package/dist/block.css +14 -6
  12. package/dist/block.js +85 -72
  13. package/dist/calculator-VBIT6GQF.js +11 -0
  14. package/dist/chart-meta-CPNVUZ5J.d.ts +232 -0
  15. package/dist/chart-meta.d.ts +2 -0
  16. package/dist/chart-meta.js +105 -0
  17. package/dist/charts-d3-DH2XA45I.js +26 -0
  18. package/dist/{chunk-QJMKPUYK.js → chunk-22OQWBWD.js} +14 -7
  19. package/dist/{chunk-5NGAO4QK.js → chunk-27STWBOK.js} +10 -8
  20. package/dist/{chunk-QGATPIPX.js → chunk-2QC4HXCY.js} +31 -17
  21. package/dist/{chunk-HFMYN6N2.js → chunk-3B2GXZCX.js} +4 -3
  22. package/dist/{chunk-6HQH6JZE.js → chunk-3BEKKRH5.js} +10 -10
  23. package/dist/{chunk-AL672HNE.js → chunk-3CZLWOCI.js} +17 -7
  24. package/dist/{chunk-J7TLCB2Q.js → chunk-3IUHKMJI.js} +2 -2
  25. package/dist/{chunk-7L4UJOY6.js → chunk-3TYUXC7D.js} +2 -2
  26. package/dist/{chunk-Y2ZE3MSG.js → chunk-43E26CDA.js} +2 -2
  27. package/dist/{chunk-YTMTPUH4.js → chunk-4ASVFYB2.js} +6 -6
  28. package/dist/{chunk-WCT3NYCV.js → chunk-4ASYQ347.js} +33 -8
  29. package/dist/{chunk-ZNWAYU6N.js → chunk-4K42RUGC.js} +33 -9
  30. package/dist/{chunk-I5IGB56C.js → chunk-4QV26TEG.js} +41 -1
  31. package/dist/{chunk-QOOUC2J5.js → chunk-4RGZFA7H.js} +2 -2
  32. package/dist/{chunk-CXK4DZH3.js → chunk-4W2PE66Q.js} +12 -2
  33. package/dist/{chunk-CIRFIL4M.js → chunk-4WGMGKCZ.js} +13 -13
  34. package/dist/{chunk-JED6ZDEE.js → chunk-5HWPEYWB.js} +2 -2
  35. package/dist/{chunk-VQOCMUWI.js → chunk-65V6IRFN.js} +16 -14
  36. package/dist/{chunk-R3YSD62R.js → chunk-6AUZPPAV.js} +3 -3
  37. package/dist/{chunk-FQ7HTV52.js → chunk-6DCOIN4W.js} +33 -5
  38. package/dist/{chunk-MUE65OTD.js → chunk-6HTRCTAS.js} +4 -4
  39. package/dist/{chunk-TJVLKNGR.js → chunk-6KY7OCZC.js} +5 -5
  40. package/dist/{chunk-YAA6IID3.js → chunk-774C2FF3.js} +2 -2
  41. package/dist/{chunk-UBLHQTLV.js → chunk-7GUF6SDR.js} +15 -14
  42. package/dist/{chunk-5HILBT7X.js → chunk-7JDTNFAK.js} +3 -3
  43. package/dist/{chunk-QBZYACOG.js → chunk-ADYKAKE3.js} +3 -3
  44. package/dist/{chunk-H7KENAZO.js → chunk-AHXIMHDQ.js} +74 -14
  45. package/dist/chunk-AIMLCDAO.js +404 -0
  46. package/dist/{chunk-4IHAV6O7.js → chunk-ALYZ3MAA.js} +4 -4
  47. package/dist/{chunk-ROOE4R4Y.js → chunk-AN2DQB3G.js} +146 -18
  48. package/dist/{chunk-GCYTI3DE.js → chunk-AZNXGWDC.js} +56 -10
  49. package/dist/{chunk-3LK5DNED.js → chunk-B4XS2AF2.js} +3 -3
  50. package/dist/{chunk-3HF5YEFJ.js → chunk-BD3WGY4T.js} +4 -4
  51. package/dist/{chunk-4AQRFDXL.js → chunk-BFDVEO5R.js} +2 -2
  52. package/dist/{chunk-REJAIQ5S.js → chunk-BR7AYN76.js} +8 -8
  53. package/dist/{chunk-P3NRSSUU.js → chunk-BULHGPHK.js} +3 -3
  54. package/dist/{chunk-VILVLS7P.js → chunk-CK2GMDXD.js} +8 -4
  55. package/dist/{chunk-HHKO6SKY.js → chunk-CMVZWP32.js} +3 -3
  56. package/dist/{chunk-GJFAMOGK.js → chunk-CQFNIIQN.js} +7 -7
  57. package/dist/{chunk-FT3ZYWET.js → chunk-DWUMPMV2.js} +11 -10
  58. package/dist/{chunk-USZW2HHU.js → chunk-EQW6HOP4.js} +4 -3
  59. package/dist/{chunk-Z5QVYKR7.js → chunk-FFXCKZOU.js} +4 -4
  60. package/dist/{chunk-WRNFDFPU.js → chunk-FGDSTT3F.js} +2 -2
  61. package/dist/{chunk-FY5MSZAP.js → chunk-FLDC7ZAK.js} +21 -6
  62. package/dist/{chunk-AAXZDUOV.js → chunk-FT7TPPZ5.js} +17 -16
  63. package/dist/{chunk-3QD7VP3U.js → chunk-FUKNRLIJ.js} +14 -7
  64. package/dist/{chunk-3YRPZ7ZZ.js → chunk-FXCB7H5O.js} +4 -4
  65. package/dist/{chunk-SMRFPVLQ.js → chunk-GABSL6TH.js} +4 -4
  66. package/dist/{chunk-BKVOYV6I.js → chunk-GAWKIIPO.js} +17 -17
  67. package/dist/{chunk-HWX6ZHF3.js → chunk-GMAH572Z.js} +6 -6
  68. package/dist/{chunk-MUVJ57EP.js → chunk-GMIJ35PW.js} +23 -20
  69. package/dist/{chunk-7QE3XMRK.js → chunk-GQ644SPD.js} +18 -18
  70. package/dist/{chunk-5QKQSSPO.js → chunk-GRM2A4BG.js} +4 -4
  71. package/dist/{chunk-J7KJR3R6.js → chunk-GWQJKTFS.js} +133 -696
  72. package/dist/{chunk-OTOHI4JO.js → chunk-H3HFC3SQ.js} +2 -2
  73. package/dist/{chunk-SWSIKFEB.js → chunk-HE5J53SZ.js} +4 -4
  74. package/dist/{chunk-7BIZCTAX.js → chunk-HNBY6CNV.js} +3 -3
  75. package/dist/{chunk-J76PIKAT.js → chunk-HO3RCNF6.js} +3 -3
  76. package/dist/{chunk-44VCIPHF.js → chunk-HORZ5H2L.js} +26 -23
  77. package/dist/{chunk-MX2EY5Y7.js → chunk-HOXKNRON.js} +2 -2
  78. package/dist/{chunk-LTXOLDUZ.js → chunk-I64ECJX3.js} +12 -5
  79. package/dist/{chunk-4YFKQ5WT.js → chunk-IQJCVREL.js} +8 -8
  80. package/dist/{chunk-YIBAWQGJ.js → chunk-J7HI6G3G.js} +7 -7
  81. package/dist/{chunk-ICPJPQ5C.js → chunk-JHOAH4TI.js} +3 -3
  82. package/dist/{chunk-6EJITS44.js → chunk-JTMSWEIW.js} +6 -6
  83. package/dist/{chunk-WBM7ZNDI.js → chunk-JYDMBWRP.js} +35 -18
  84. package/dist/{chunk-7DF4J4RL.js → chunk-KKHCNSKK.js} +17 -11
  85. package/dist/{chunk-4UNQ6X24.js → chunk-KUSAVOWZ.js} +4 -4
  86. package/dist/{chunk-77FGAVZC.js → chunk-LC3FFD43.js} +21 -19
  87. package/dist/{chunk-INE5YJBZ.js → chunk-LHILKFDP.js} +10 -10
  88. package/dist/{chunk-ONU3U4GL.js → chunk-LQHVDZYC.js} +52 -16
  89. package/dist/{chunk-75G3Q4DK.js → chunk-MA3HJZHB.js} +5 -5
  90. package/dist/{chunk-QVENJMNX.js → chunk-MEQYZZFR.js} +2 -2
  91. package/dist/{chunk-IM6PDDCE.js → chunk-NNUMX6WX.js} +42 -12
  92. package/dist/{chunk-FQMUHRVC.js → chunk-NNYFQOTK.js} +14 -13
  93. package/dist/{chunk-H6PI3KJT.js → chunk-ODUT5WMC.js} +2 -2
  94. package/dist/{chunk-K4EOKJA6.js → chunk-P3H7QVDH.js} +42 -15
  95. package/dist/{chunk-FUPF2UYQ.js → chunk-PIXZTCKH.js} +51 -108
  96. package/dist/{chunk-BPY242XU.js → chunk-PKNNHU7H.js} +19 -8
  97. package/dist/{chunk-BPIZNB5O.js → chunk-PT4SW76W.js} +11 -11
  98. package/dist/{chunk-UNURMIQO.js → chunk-PV2QO7QL.js} +4 -4
  99. package/dist/{chunk-LGT3PZCJ.js → chunk-PYO4TJJ3.js} +17 -17
  100. package/dist/{chunk-EMLPOL77.js → chunk-Q7AH665U.js} +15 -8
  101. package/dist/{chunk-LBMS4AW6.js → chunk-QAALSCKI.js} +14 -14
  102. package/dist/{chunk-JRCOYRRH.js → chunk-QI3BOLQB.js} +8 -8
  103. package/dist/{chunk-CCNDLW7Z.js → chunk-QWIBT6DS.js} +13 -13
  104. package/dist/{chunk-GU46PPT3.js → chunk-QXGACPS2.js} +5 -5
  105. package/dist/{chunk-FMDSF3OV.js → chunk-QZAW5SFH.js} +2 -2
  106. package/dist/{chunk-QHXCAEMX.js → chunk-R5NH5BZG.js} +8 -8
  107. package/dist/{chunk-5223KXFD.js → chunk-RJ5LBZ5U.js} +7 -7
  108. package/dist/{chunk-PRI2OD4E.js → chunk-RW5PEJ7D.js} +11 -6
  109. package/dist/{chunk-DYWQFQJP.js → chunk-SG4PRYO3.js} +22 -20
  110. package/dist/{chunk-NNS4E7CW.js → chunk-SGPFVDUL.js} +15 -6
  111. package/dist/{chunk-ZEF5M5MB.js → chunk-SQCBSFT5.js} +72 -74
  112. package/dist/{chunk-3HGU63UY.js → chunk-U7NKYLX2.js} +14 -13
  113. package/dist/chunk-U7VO6JAA.js +566 -0
  114. package/dist/{chunk-ZJV7GYR4.js → chunk-UFQJMOVZ.js} +10 -10
  115. package/dist/{chunk-Z72XRXD4.js → chunk-UJRTPOHH.js} +3 -3
  116. package/dist/{chunk-J6QROYDA.js → chunk-UK6DKJLD.js} +26 -10
  117. package/dist/{chunk-QZX5S6R3.js → chunk-UKP5HWB5.js} +149 -89
  118. package/dist/{chunk-T4A4TSTJ.js → chunk-UQRIKAMH.js} +21 -19
  119. package/dist/{chunk-TYS6CSS5.js → chunk-UU6LUYUH.js} +2 -2
  120. package/dist/{chunk-5BHJZH62.js → chunk-UVDCHR4E.js} +18 -6
  121. package/dist/{chunk-HQQNCY7W.js → chunk-VAO6ANGC.js} +5 -5
  122. package/dist/{chunk-6NYWYNBI.js → chunk-VGNIDAPQ.js} +4 -4
  123. package/dist/{chunk-VL2O2F3W.js → chunk-VHO3YBTB.js} +2 -2
  124. package/dist/{chunk-FHGVORFO.js → chunk-VIRANCNY.js} +14 -14
  125. package/dist/{chunk-XD6ZYURY.js → chunk-VJHBSPGF.js} +7 -14
  126. package/dist/{chunk-5RP7JRVP.js → chunk-VKNCC2GX.js} +12 -8
  127. package/dist/{chunk-TPFKKXCB.js → chunk-VRRDUYOK.js} +7 -7
  128. package/dist/{chunk-K2I2XOZD.js → chunk-W2DINCHL.js} +11 -11
  129. package/dist/{chunk-AUIM2NVH.js → chunk-W5KMNC5U.js} +8 -8
  130. package/dist/{chunk-FFUN5D66.js → chunk-WF64MW5G.js} +2 -2
  131. package/dist/{chunk-6LBQ7ELG.js → chunk-X3RXGSCZ.js} +40 -21
  132. package/dist/{chunk-HBPDFCQY.js → chunk-XEAQDIMF.js} +7 -6
  133. package/dist/{chunk-TTIM6YTT.js → chunk-XG4NWFPY.js} +17 -16
  134. package/dist/{chunk-7KINELPI.js → chunk-XQ4KN6JQ.js} +23 -23
  135. package/dist/{chunk-WBRZJOEC.js → chunk-XY3UDKKH.js} +4 -4
  136. package/dist/{chunk-5SEVICBT.js → chunk-YG2BEIQU.js} +14 -13
  137. package/dist/{chunk-BRENJ2BQ.js → chunk-YJVA3QUU.js} +24 -4
  138. package/dist/{chunk-KGVZ5VGH.js → chunk-YR43LJT5.js} +16 -15
  139. package/dist/{chunk-TLVIHFRO.js → chunk-ZKPPI6BF.js} +2 -2
  140. package/dist/{chunk-ARGMQ3H4.js → chunk-ZXUAPTCK.js} +3 -3
  141. package/dist/cli.cjs +156 -154
  142. package/dist/clock.js +9 -1
  143. package/dist/countdown.js +4 -3
  144. package/dist/dgmo-router-B4S23EBH.js +86 -0
  145. package/dist/dimensions-K6PGYYGT.js +22 -0
  146. package/dist/editor.js +33 -5
  147. package/dist/element.js +142 -132
  148. package/dist/element.mjs +1117 -452
  149. package/dist/flowchart-parser-LALR6J6F.js +21 -0
  150. package/dist/{flowchart-renderer-MNCDS7MV.js → flowchart-renderer-DXYB5YRF.js} +14 -14
  151. package/dist/highlight.js +37 -6
  152. package/dist/index.d.ts +4 -2
  153. package/dist/index.js +78 -73
  154. package/dist/layout-3BVDMKXI.js +15 -0
  155. package/dist/layout-3M5UYJHY.js +14 -0
  156. package/dist/{layout-2L3WMRYU.js → layout-3V2A4MUE.js} +8 -8
  157. package/dist/layout-4IHCMWZN.js +19 -0
  158. package/dist/layout-5XGYNYVT.js +9 -0
  159. package/dist/layout-AZUPXWSK.js +15 -0
  160. package/dist/{layout-F4WO357A.js → layout-CAAKQX4W.js} +3 -3
  161. package/dist/{layout-A5UHRWVH.js → layout-CB3XWCOI.js} +3 -3
  162. package/dist/{layout-OAC4PEAC.js → layout-E6HR6PXH.js} +7 -7
  163. package/dist/{layout-7QXCNOVS.js → layout-HBWT2G23.js} +3 -3
  164. package/dist/layout-KPQWJNAG.js +14 -0
  165. package/dist/layout-OL2XFJXA.js +17 -0
  166. package/dist/layout-WCAIKGZG.js +19 -0
  167. package/dist/layout-WSMPBQ4Q.js +17 -0
  168. package/dist/layout-ZE5DRJWX.js +20 -0
  169. package/dist/{layout-search-55FU6HD3.js → layout-search-34DPZD43.js} +51 -35
  170. package/dist/legend-constants-P5EQWRQQ.js +49 -0
  171. package/dist/{palettes-UDLZ2SA4.js → palettes-FGTNFARW.js} +4 -4
  172. package/dist/{parser-EYCKNKQA.js → parser-275KP7JO.js} +8 -8
  173. package/dist/parser-27Z76SN3.js +22 -0
  174. package/dist/parser-3CODK6RG.js +15 -0
  175. package/dist/{parser-YKYMQG3B.js → parser-3KIGEEJM.js} +6 -6
  176. package/dist/parser-3VSWEKBF.js +15 -0
  177. package/dist/parser-4E4I3GNT.js +13 -0
  178. package/dist/parser-5FGJSQNS.js +12 -0
  179. package/dist/parser-5HQXCNOS.js +12 -0
  180. package/dist/parser-5QPFOB5F.js +12 -0
  181. package/dist/parser-6B6SSZT7.js +11 -0
  182. package/dist/parser-6PPHAXXH.js +14 -0
  183. package/dist/parser-7JHWEWXM.js +13 -0
  184. package/dist/{parser-DQAFLUJB.js → parser-7JVIDLLR.js} +7 -7
  185. package/dist/parser-CKA3QMAG.js +18 -0
  186. package/dist/parser-CRKLXGW7.js +13 -0
  187. package/dist/parser-EXNBDNGY.js +11 -0
  188. package/dist/parser-FF4BMRSB.js +16 -0
  189. package/dist/parser-FOOFEJQU.js +13 -0
  190. package/dist/parser-G26MTBFS.js +11 -0
  191. package/dist/parser-GKP2MHHL.js +11 -0
  192. package/dist/parser-GN2MM5CC.js +11 -0
  193. package/dist/parser-IKWK2ZU3.js +18 -0
  194. package/dist/parser-IVGHXLZP.js +14 -0
  195. package/dist/parser-NNIL3HXU.js +11 -0
  196. package/dist/parser-RNLTBIJ6.js +19 -0
  197. package/dist/parser-UWRX52PC.js +16 -0
  198. package/dist/parser-VOERD6XR.js +14 -0
  199. package/dist/parser-XNKJCMMA.js +13 -0
  200. package/dist/parser-XVPTRWZ4.js +15 -0
  201. package/dist/parser-YSLNDFLV.js +22 -0
  202. package/dist/{parser-ZL5QUFVH.js → parser-ZGNXYFPS.js} +5 -5
  203. package/dist/parser-ZQDQTB4X.js +20 -0
  204. package/dist/pert.d.ts +2 -0
  205. package/dist/registry-CaSw0PSH.d.ts +350 -0
  206. package/dist/renderer-2C6DJRYN.js +24 -0
  207. package/dist/renderer-5MPN7CXZ.js +19 -0
  208. package/dist/renderer-6EN5XXJZ.js +27 -0
  209. package/dist/renderer-6WRYVM5R.js +24 -0
  210. package/dist/renderer-7NQSTQMQ.js +16 -0
  211. package/dist/renderer-7ZNVOVFG.js +16 -0
  212. package/dist/{renderer-DT4XRFEP.js → renderer-AK2WO4EI.js} +7 -7
  213. package/dist/renderer-COLQFSFV.js +26 -0
  214. package/dist/{renderer-3F7OS2AX.js → renderer-CWEFGEIC.js} +15 -15
  215. package/dist/renderer-D3BRNOMV.js +29 -0
  216. package/dist/renderer-HIFQVEJA.js +22 -0
  217. package/dist/renderer-JCZG6AYU.js +28 -0
  218. package/dist/{renderer-ZWIH4WDW.js → renderer-JTCX6PCG.js} +13 -13
  219. package/dist/renderer-JWGQSTMR.js +37 -0
  220. package/dist/{renderer-NHO46CT2.js → renderer-K7XLVPH5.js} +6 -6
  221. package/dist/renderer-KARQF3F3.js +22 -0
  222. package/dist/renderer-LVZAHRP6.js +34 -0
  223. package/dist/{renderer-CQY6ATOS.js → renderer-NE5W7CQP.js} +8 -8
  224. package/dist/renderer-QD2SJF2I.js +34 -0
  225. package/dist/renderer-RLMOTXZ6.js +37 -0
  226. package/dist/renderer-SQ54MDSA.js +26 -0
  227. package/dist/{renderer-HSHHVYWF.js → renderer-TYHGXAVT.js} +7 -7
  228. package/dist/renderer-UKXW2QPE.js +23 -0
  229. package/dist/renderer-UPF7NRTI.js +28 -0
  230. package/dist/renderer-VMH6L6CP.js +24 -0
  231. package/dist/{renderer-5DAKMIU2.js → renderer-WCWI4I6A.js} +5 -5
  232. package/dist/renderer-WFSUBKUL.js +25 -0
  233. package/dist/renderer-WNFXYYGL.js +21 -0
  234. package/dist/{renderer-KNFTTOBL.js → renderer-XTXSOK3L.js} +14 -14
  235. package/dist/renderer-YUKPS27O.js +24 -0
  236. package/dist/renderer-YUXGXGSW.js +27 -0
  237. package/dist/renderer-ZBTEX2JK.js +16 -0
  238. package/dist/renderer-radial-WF6VOUOD.js +21 -0
  239. package/dist/{resolver-EMTGNR3D.js → resolver-WFKZYBJ2.js} +4 -4
  240. package/dist/state-parser-L7DHZIQO.js +19 -0
  241. package/dist/state-renderer-TFEUOP4H.js +38 -0
  242. package/dist/{themes-32xj5ZTW.d.ts → themes-tbBkIVsn.d.ts} +2 -349
  243. package/docs/ai-integration.md +59 -58
  244. package/docs/language-reference.md +323 -286
  245. package/fonts/Inter-Bold.woff2 +0 -0
  246. package/fonts/Inter-Regular.woff2 +0 -0
  247. package/gallery/fixtures/boxes-and-lines-diverging.dgmo +1 -2
  248. package/gallery/fixtures/boxes-and-lines.dgmo +1 -1
  249. package/gallery/fixtures/clock.dgmo +1 -1
  250. package/gallery/fixtures/event-line.dgmo +1 -1
  251. package/gallery/fixtures/gantt-full.dgmo +1 -1
  252. package/gallery/fixtures/gantt-sprints.dgmo +9 -9
  253. package/gallery/fixtures/gantt.dgmo +1 -1
  254. package/gallery/fixtures/legacy-syntax-backcompat.dgmo +16 -0
  255. package/gallery/fixtures/state-tags.dgmo +40 -0
  256. package/gallery/fixtures/swimlane.dgmo +1 -1
  257. package/gallery/fixtures/timeline-intraday.dgmo +1 -1
  258. package/package.json +5 -1
  259. package/dist/analyzer-BJ54GIFB.js +0 -15
  260. package/dist/calculator-LDYQCDDY.js +0 -11
  261. package/dist/charts-d3-MXEP6BNP.js +0 -26
  262. package/dist/dgmo-router-X7ZGAPIE.js +0 -86
  263. package/dist/dimensions-45H6JQEY.js +0 -22
  264. package/dist/flowchart-parser-UKELHBSB.js +0 -21
  265. package/dist/layout-46N4JJYK.js +0 -17
  266. package/dist/layout-A4XWNVID.js +0 -14
  267. package/dist/layout-AM2JWW3X.js +0 -15
  268. package/dist/layout-EE6GE46Y.js +0 -17
  269. package/dist/layout-G23F7LDH.js +0 -9
  270. package/dist/layout-GM4UGR7B.js +0 -19
  271. package/dist/layout-GQQJXNYH.js +0 -15
  272. package/dist/layout-IIE2S5FK.js +0 -20
  273. package/dist/layout-VMCRX66I.js +0 -14
  274. package/dist/layout-ZDOSXL5G.js +0 -19
  275. package/dist/parser-2ECN6JA2.js +0 -16
  276. package/dist/parser-4WTIHM5J.js +0 -11
  277. package/dist/parser-5H2BTSJQ.js +0 -11
  278. package/dist/parser-75KVXUNS.js +0 -16
  279. package/dist/parser-774AC53T.js +0 -13
  280. package/dist/parser-BE4YCSRU.js +0 -11
  281. package/dist/parser-CNGUQUQI.js +0 -11
  282. package/dist/parser-DEUUSQIN.js +0 -22
  283. package/dist/parser-FXISIU6A.js +0 -14
  284. package/dist/parser-GTB4XC7P.js +0 -18
  285. package/dist/parser-GVEPAUSD.js +0 -12
  286. package/dist/parser-HSQGTY4G.js +0 -19
  287. package/dist/parser-HVKRINUS.js +0 -11
  288. package/dist/parser-J5MIEYO4.js +0 -15
  289. package/dist/parser-KMZIXLDZ.js +0 -13
  290. package/dist/parser-LJHXWSXU.js +0 -14
  291. package/dist/parser-PT3W72G5.js +0 -15
  292. package/dist/parser-SBJQDPHL.js +0 -15
  293. package/dist/parser-SUWWWCMX.js +0 -12
  294. package/dist/parser-SXDRNZOA.js +0 -13
  295. package/dist/parser-UMILOW3M.js +0 -14
  296. package/dist/parser-UP3AZ367.js +0 -13
  297. package/dist/parser-WHPRV3X5.js +0 -20
  298. package/dist/parser-WX3UODSJ.js +0 -12
  299. package/dist/parser-XCIEN3KN.js +0 -13
  300. package/dist/parser-XIRTUMVN.js +0 -18
  301. package/dist/parser-YKCGIG45.js +0 -11
  302. package/dist/parser-ZGM2OJ6Y.js +0 -22
  303. package/dist/renderer-4QB4K7Q3.js +0 -24
  304. package/dist/renderer-5H4SY7YY.js +0 -22
  305. package/dist/renderer-5PIQPFOX.js +0 -16
  306. package/dist/renderer-6MU37QF5.js +0 -19
  307. package/dist/renderer-AQVMWJ4M.js +0 -27
  308. package/dist/renderer-BDDW6K7N.js +0 -24
  309. package/dist/renderer-BNB3VIDY.js +0 -26
  310. package/dist/renderer-CVW75CXL.js +0 -37
  311. package/dist/renderer-ERHBSTQT.js +0 -25
  312. package/dist/renderer-IDPVUFNB.js +0 -28
  313. package/dist/renderer-ILX6BGKR.js +0 -21
  314. package/dist/renderer-JP663HKG.js +0 -22
  315. package/dist/renderer-MVUZBESR.js +0 -16
  316. package/dist/renderer-N4EBR2FV.js +0 -28
  317. package/dist/renderer-NO2QJ5LZ.js +0 -27
  318. package/dist/renderer-OGFV5RXX.js +0 -34
  319. package/dist/renderer-PDLESJMS.js +0 -37
  320. package/dist/renderer-T4MTNINC.js +0 -24
  321. package/dist/renderer-TOUGFGTM.js +0 -24
  322. package/dist/renderer-U3KPD43Y.js +0 -34
  323. package/dist/renderer-X334IJU2.js +0 -26
  324. package/dist/renderer-Y5OAMOCR.js +0 -23
  325. package/dist/renderer-YONAKAJU.js +0 -16
  326. package/dist/renderer-YWMI6Y2U.js +0 -29
  327. package/dist/renderer-radial-7CGZMVMS.js +0 -21
  328. package/dist/state-parser-BATWAID2.js +0 -18
  329. package/dist/state-renderer-3FKZJ3LP.js +0 -34
@@ -0,0 +1,21 @@
1
+ import {
2
+ renderBody,
3
+ renderBodyForExport
4
+ } from "./chunk-QI3BOLQB.js";
5
+ import "./chunk-W5KMNC5U.js";
6
+ import "./chunk-774C2FF3.js";
7
+ import "./chunk-6KFWC4CO.js";
8
+ import "./chunk-BDXC7MDK.js";
9
+ import "./chunk-JYDMBWRP.js";
10
+ import "./chunk-4RGZFA7H.js";
11
+ import "./chunk-4ASYQ347.js";
12
+ import "./chunk-CMVZWP32.js";
13
+ import "./chunk-YJVA3QUU.js";
14
+ import "./chunk-ZKPPI6BF.js";
15
+ import "./chunk-4W2PE66Q.js";
16
+ import "./chunk-5WRI5ZAA.js";
17
+ export {
18
+ renderBody,
19
+ renderBodyForExport
20
+ };
21
+ //# sourceMappingURL=renderer-WNFXYYGL.js.map
@@ -6,26 +6,26 @@ import {
6
6
  renderC4ContextForExport,
7
7
  renderC4Deployment,
8
8
  renderC4DeploymentForExport
9
- } from "./chunk-LBMS4AW6.js";
10
- import "./chunk-ONU3U4GL.js";
9
+ } from "./chunk-QAALSCKI.js";
10
+ import "./chunk-LQHVDZYC.js";
11
11
  import "./chunk-3HDBAXF5.js";
12
12
  import "./chunk-3CIOJ5YJ.js";
13
- import "./chunk-AUIM2NVH.js";
14
- import "./chunk-YAA6IID3.js";
13
+ import "./chunk-W5KMNC5U.js";
14
+ import "./chunk-774C2FF3.js";
15
15
  import "./chunk-A4GOY3PE.js";
16
16
  import "./chunk-6KFWC4CO.js";
17
- import "./chunk-QOOUC2J5.js";
18
- import "./chunk-WCT3NYCV.js";
19
- import "./chunk-BPY242XU.js";
17
+ import "./chunk-PKNNHU7H.js";
20
18
  import "./chunk-IYULMRBE.js";
21
- import "./chunk-WBM7ZNDI.js";
19
+ import "./chunk-JYDMBWRP.js";
20
+ import "./chunk-4RGZFA7H.js";
21
+ import "./chunk-4ASYQ347.js";
22
22
  import "./chunk-C3Z4DX3V.js";
23
- import "./chunk-HHKO6SKY.js";
24
- import "./chunk-FFUN5D66.js";
23
+ import "./chunk-CMVZWP32.js";
24
+ import "./chunk-WF64MW5G.js";
25
25
  import "./chunk-NOTA6TEI.js";
26
- import "./chunk-BRENJ2BQ.js";
27
- import "./chunk-TLVIHFRO.js";
28
- import "./chunk-CXK4DZH3.js";
26
+ import "./chunk-YJVA3QUU.js";
27
+ import "./chunk-ZKPPI6BF.js";
28
+ import "./chunk-4W2PE66Q.js";
29
29
  import "./chunk-5WRI5ZAA.js";
30
30
  export {
31
31
  renderC4ComponentsForExport,
@@ -36,4 +36,4 @@ export {
36
36
  renderC4Deployment,
37
37
  renderC4DeploymentForExport
38
38
  };
39
- //# sourceMappingURL=renderer-KNFTTOBL.js.map
39
+ //# sourceMappingURL=renderer-XTXSOK3L.js.map
@@ -0,0 +1,24 @@
1
+ import {
2
+ renderSketch,
3
+ renderSketchForExport,
4
+ sketchEdgeGeometry
5
+ } from "./chunk-3BEKKRH5.js";
6
+ import "./chunk-H3HFC3SQ.js";
7
+ import "./chunk-3CIOJ5YJ.js";
8
+ import "./chunk-W5KMNC5U.js";
9
+ import "./chunk-774C2FF3.js";
10
+ import "./chunk-6KFWC4CO.js";
11
+ import "./chunk-JYDMBWRP.js";
12
+ import "./chunk-4RGZFA7H.js";
13
+ import "./chunk-4ASYQ347.js";
14
+ import "./chunk-CMVZWP32.js";
15
+ import "./chunk-YJVA3QUU.js";
16
+ import "./chunk-ZKPPI6BF.js";
17
+ import "./chunk-4W2PE66Q.js";
18
+ import "./chunk-5WRI5ZAA.js";
19
+ export {
20
+ renderSketch,
21
+ renderSketchForExport,
22
+ sketchEdgeGeometry
23
+ };
24
+ //# sourceMappingURL=renderer-YUKPS27O.js.map
@@ -0,0 +1,27 @@
1
+ import {
2
+ renderBoxesAndLines,
3
+ renderBoxesAndLinesForExport
4
+ } from "./chunk-UQRIKAMH.js";
5
+ import "./chunk-3IUHKMJI.js";
6
+ import "./chunk-5DH3KYFH.js";
7
+ import "./chunk-3HDBAXF5.js";
8
+ import "./chunk-BMR4CIEO.js";
9
+ import "./chunk-3CIOJ5YJ.js";
10
+ import "./chunk-YYVTBZZC.js";
11
+ import "./chunk-W5KMNC5U.js";
12
+ import "./chunk-774C2FF3.js";
13
+ import "./chunk-A4GOY3PE.js";
14
+ import "./chunk-6KFWC4CO.js";
15
+ import "./chunk-JYDMBWRP.js";
16
+ import "./chunk-4RGZFA7H.js";
17
+ import "./chunk-4ASYQ347.js";
18
+ import "./chunk-CMVZWP32.js";
19
+ import "./chunk-YJVA3QUU.js";
20
+ import "./chunk-ZKPPI6BF.js";
21
+ import "./chunk-4W2PE66Q.js";
22
+ import "./chunk-5WRI5ZAA.js";
23
+ export {
24
+ renderBoxesAndLines,
25
+ renderBoxesAndLinesForExport
26
+ };
27
+ //# sourceMappingURL=renderer-YUXGXGSW.js.map
@@ -0,0 +1,16 @@
1
+ import {
2
+ renderSwimlaneForExport
3
+ } from "./chunk-6KY7OCZC.js";
4
+ import "./chunk-LP7EC4MI.js";
5
+ import "./chunk-A4GOY3PE.js";
6
+ import "./chunk-6KFWC4CO.js";
7
+ import "./chunk-JYDMBWRP.js";
8
+ import "./chunk-CMVZWP32.js";
9
+ import "./chunk-YJVA3QUU.js";
10
+ import "./chunk-ZKPPI6BF.js";
11
+ import "./chunk-4W2PE66Q.js";
12
+ import "./chunk-5WRI5ZAA.js";
13
+ export {
14
+ renderSwimlaneForExport
15
+ };
16
+ //# sourceMappingURL=renderer-ZBTEX2JK.js.map
@@ -0,0 +1,21 @@
1
+ import {
2
+ renderTreemapRadial,
3
+ renderTreemapRadialForExport
4
+ } from "./chunk-YG2BEIQU.js";
5
+ import "./chunk-UVDCHR4E.js";
6
+ import "./chunk-W5KMNC5U.js";
7
+ import "./chunk-774C2FF3.js";
8
+ import "./chunk-6KFWC4CO.js";
9
+ import "./chunk-JYDMBWRP.js";
10
+ import "./chunk-4RGZFA7H.js";
11
+ import "./chunk-4ASYQ347.js";
12
+ import "./chunk-CMVZWP32.js";
13
+ import "./chunk-YJVA3QUU.js";
14
+ import "./chunk-ZKPPI6BF.js";
15
+ import "./chunk-4W2PE66Q.js";
16
+ import "./chunk-5WRI5ZAA.js";
17
+ export {
18
+ renderTreemapRadial,
19
+ renderTreemapRadialForExport
20
+ };
21
+ //# sourceMappingURL=renderer-radial-WF6VOUOD.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  isSubNationalUsExtent,
3
3
  resolveMap
4
- } from "./chunk-P3NRSSUU.js";
5
- import "./chunk-I5IGB56C.js";
4
+ } from "./chunk-BULHGPHK.js";
5
+ import "./chunk-4QV26TEG.js";
6
6
  import "./chunk-4B5YISOR.js";
7
7
  import "./chunk-APKUAJ2L.js";
8
- import "./chunk-CXK4DZH3.js";
8
+ import "./chunk-4W2PE66Q.js";
9
9
  import "./chunk-5WRI5ZAA.js";
10
10
  export {
11
11
  isSubNationalUsExtent,
12
12
  resolveMap
13
13
  };
14
- //# sourceMappingURL=resolver-EMTGNR3D.js.map
14
+ //# sourceMappingURL=resolver-WFKZYBJ2.js.map
@@ -0,0 +1,19 @@
1
+ import {
2
+ looksLikeState,
3
+ parseState
4
+ } from "./chunk-AN2DQB3G.js";
5
+ import "./chunk-CMVZWP32.js";
6
+ import "./chunk-NXMESY4J.js";
7
+ import "./chunk-ZXUAPTCK.js";
8
+ import "./chunk-QZAW5SFH.js";
9
+ import "./chunk-WF64MW5G.js";
10
+ import "./chunk-NOTA6TEI.js";
11
+ import "./chunk-YJVA3QUU.js";
12
+ import "./chunk-ZKPPI6BF.js";
13
+ import "./chunk-4W2PE66Q.js";
14
+ import "./chunk-5WRI5ZAA.js";
15
+ export {
16
+ looksLikeState,
17
+ parseState
18
+ };
19
+ //# sourceMappingURL=state-parser-L7DHZIQO.js.map
@@ -0,0 +1,38 @@
1
+ import {
2
+ renderState,
3
+ renderStateForExport
4
+ } from "./chunk-AHXIMHDQ.js";
5
+ import "./chunk-PDKUANDZ.js";
6
+ import "./chunk-3B2GXZCX.js";
7
+ import "./chunk-LP7EC4MI.js";
8
+ import "./chunk-3IUHKMJI.js";
9
+ import "./chunk-6EK55ART.js";
10
+ import "./chunk-UU6LUYUH.js";
11
+ import "./chunk-5DH3KYFH.js";
12
+ import "./chunk-3HDBAXF5.js";
13
+ import "./chunk-BMR4CIEO.js";
14
+ import "./chunk-3CIOJ5YJ.js";
15
+ import "./chunk-YYVTBZZC.js";
16
+ import "./chunk-W5KMNC5U.js";
17
+ import "./chunk-774C2FF3.js";
18
+ import "./chunk-A4GOY3PE.js";
19
+ import "./chunk-6KFWC4CO.js";
20
+ import "./chunk-AN2DQB3G.js";
21
+ import "./chunk-JYDMBWRP.js";
22
+ import "./chunk-4RGZFA7H.js";
23
+ import "./chunk-4ASYQ347.js";
24
+ import "./chunk-CMVZWP32.js";
25
+ import "./chunk-NXMESY4J.js";
26
+ import "./chunk-ZXUAPTCK.js";
27
+ import "./chunk-QZAW5SFH.js";
28
+ import "./chunk-WF64MW5G.js";
29
+ import "./chunk-NOTA6TEI.js";
30
+ import "./chunk-YJVA3QUU.js";
31
+ import "./chunk-ZKPPI6BF.js";
32
+ import "./chunk-4W2PE66Q.js";
33
+ import "./chunk-5WRI5ZAA.js";
34
+ export {
35
+ renderState,
36
+ renderStateForExport
37
+ };
38
+ //# sourceMappingURL=state-renderer-TFEUOP4H.js.map
@@ -1,184 +1,4 @@
1
- type DgmoSeverity = 'error' | 'warning';
2
- interface DgmoError {
3
- line: number;
4
- column?: number;
5
- message: string;
6
- severity: DgmoSeverity;
7
- /**
8
- * Optional stable diagnostic code (e.g. 'E_ARROW_SUBSTRING_IN_LABEL').
9
- * Additive; pre-existing diagnostics omit this field and existing
10
- * substring-on-`.message` assertions keep working unchanged.
11
- */
12
- code?: string;
13
- }
14
- declare function makeDgmoError(line: number, message: string, severity?: DgmoSeverity, code?: string): DgmoError;
15
- /** Runtime params passed to `emit()` and forwarded to a message builder. */
16
- type DiagnosticParams = Record<string, unknown>;
17
- /**
18
- * Parameter type for a `DiagnosticSpec.message` builder body. Typed loosely
19
- * (`any`) on purpose: builders are hand-authored interpolation bags keyed by
20
- * ad-hoc names, and dgmo's tsconfig enables `noPropertyAccessFromIndexSignature`
21
- * (which forbids `p.name` dot-access on a `Record<string, unknown>`). Using
22
- * `any` here keeps builder bodies readable (`p.name`) instead of forcing
23
- * `p['name']` bracket access at every interpolation site.
24
- */
25
- type DiagnosticMessageParams = any;
26
- interface DiagnosticSpec {
27
- /** Stable diagnostic code, e.g. `'E_MAP_UNKNOWN_PLACE'`. */
28
- code: string;
29
- /** Severity — must agree with the `E_`/`W_`/`I_` code prefix. */
30
- severity: DgmoSeverity;
31
- /** Owning chart type (`'map'`, `'swimlane'`, …) or `null` for universal/global codes. */
32
- chartType: string | null;
33
- /** Short human label for the catalog UI. */
34
- title: string;
35
- /**
36
- * Canonical message wording. A plain string for static messages, or a
37
- * builder `(params) => string` when the message interpolates runtime
38
- * values. The builder must tolerate being called with `{}` so the
39
- * catalog can show a representative message without live params.
40
- */
41
- message: string | ((params: DiagnosticMessageParams) => string);
42
- /** Optional fix guidance shown alongside the message. */
43
- hint?: string;
44
- /** Minimal `.dgmo` source that triggers this diagnostic (for docs/console). */
45
- example?: string;
46
- }
47
- /** Optional extras when emitting (currently just an explicit column). */
48
- interface EmitOptions {
49
- column?: number;
50
- }
51
- /**
52
- * Emit a diagnostic from its `DiagnosticSpec`. The code, severity, and
53
- * canonical wording all come from the spec — call sites supply only the
54
- * line and the interpolation params, so the code/severity can never drift
55
- * out of sync with the declared spec. Replaces the per-parser
56
- * `push`/`err`/`fail` wrappers that each re-declared this shape.
57
- */
58
- declare function emit(spec: DiagnosticSpec, line: number, params?: DiagnosticParams, opts?: EmitOptions): DgmoError;
59
- declare function formatDgmoError(err: DgmoError): string;
60
-
61
- /**
62
- * Color definitions for a single mode (light or dark).
63
- * 10 semantic UI colors + 9 named accent colors = 19 total.
64
- *
65
- * `readonly` on every field (and the nested `colors` map) by design —
66
- * palettes flow from the registry into every renderer; nothing in the
67
- * pipeline should ever mutate a palette in place.
68
- */
69
- interface PaletteColors {
70
- /** Main background (#eceff4 light / #2e3440 dark for Nord) */
71
- readonly bg: string;
72
- /** Cards, panels (#e5e9f0 / #3b4252) */
73
- readonly surface: string;
74
- /** Popovers, dropdowns (#e5e9f0 / #434c5e) */
75
- readonly overlay: string;
76
- /** Borders, dividers, muted (#d8dee9 / #4c566a) */
77
- readonly border: string;
78
- /** Primary text (#2e3440 / #eceff4) */
79
- readonly text: string;
80
- /** Secondary/diminished text (#4c566a / #d8dee9) */
81
- readonly textMuted: string;
82
- /**
83
- * Light-mode arg for `contrastText()` when text is rendered on a
84
- * tinted shape fill (e.g. `shapeFill()` output). Must guarantee
85
- * ≥ 4.5:1 WCAG AA against any `shapeFill()` the palette can produce.
86
- * Distinct from `colors.white` because palette-aesthetic anchors don't
87
- * always meet contrast requirements (TD-5).
88
- */
89
- readonly textOnFillLight: string;
90
- /** Dark-mode counterpart to `textOnFillLight`. */
91
- readonly textOnFillDark: string;
92
- /** Primary accent — buttons, links */
93
- readonly primary: string;
94
- /** Secondary accent */
95
- readonly secondary: string;
96
- /** Tertiary accent */
97
- readonly accent: string;
98
- /** Error/danger */
99
- readonly destructive: string;
100
- /**
101
- * Used for: inline annotations (red), pie charts, cScale,
102
- * series rotation, journey actors, Gantt tasks.
103
- */
104
- readonly colors: {
105
- readonly red: string;
106
- readonly orange: string;
107
- readonly yellow: string;
108
- readonly green: string;
109
- readonly blue: string;
110
- readonly purple: string;
111
- readonly teal: string;
112
- readonly cyan: string;
113
- readonly gray: string;
114
- readonly black: string;
115
- readonly white: string;
116
- };
117
- }
118
- /**
119
- * Complete palette definition. One object per color scheme.
120
- * This is what palette authors create — the single artifact for NFR1.
121
- *
122
- * Palettes are immutable from the consumer's perspective; the registry
123
- * hands out the same frozen-shape object on every `getPalette(id)`.
124
- */
125
- interface PaletteConfig {
126
- /** Registry key: 'nord', 'slate', 'catppuccin' */
127
- readonly id: string;
128
- /** Display name: 'Nord', 'Slate', 'Catppuccin' */
129
- readonly name: string;
130
- /** Light mode color definitions */
131
- readonly light: PaletteColors;
132
- /** Dark mode color definitions */
133
- readonly dark: PaletteColors;
134
- }
135
-
136
- /** A single entry inside a tag group: `Value color` */
137
- interface TagEntry {
138
- readonly value: string;
139
- readonly color: string;
140
- /**
141
- * The color NAME the author wrote (one of the recognized palette names),
142
- * when the entry declared an explicit color. Absent for bare/auto-colored
143
- * entries. `color` above is always the RESOLVED hex (auto and explicit are
144
- * indistinguishable there); this preserves the authored-vs-auto distinction
145
- * so a GUI editor can round-trip an explicit color through a reparse.
146
- */
147
- readonly authoredColor?: string;
148
- readonly lineNumber: number;
149
- }
150
- /**
151
- * A tag group block: heading + entries.
152
- *
153
- * Parser internals build via `Writable<TagGroup>` from `utils/brand.ts`;
154
- * once returned to a chart-type parser, consumers see the readonly view.
155
- */
156
- interface TagGroup {
157
- readonly name: string;
158
- readonly alias?: string;
159
- readonly entries: readonly TagEntry[];
160
- /** Default value for nodes without explicit metadata. First entry unless another is marked `default`. */
161
- readonly defaultValue?: string;
162
- readonly lineNumber: number;
163
- }
164
- /**
165
- * DOM-safe key for a tag group — used wherever the group name becomes a
166
- * `data-tag-*` attribute suffix, an entity metadata key, or an `active-tag`
167
- * match target. For a single-identifier name (the only form the parser used to
168
- * accept) this is exactly `name.toLowerCase()`, so swapping it in for existing
169
- * diagrams is byte-identical. A quoted multi-word name (`tag "Trust Zone" as tz`)
170
- * slugs to a hyphenated identifier (`trust-zone`) so it never produces an
171
- * invalid DOM attribute name; the original `name` is kept for the legend label.
172
- */
173
- declare function tagAttrKey(name: string): string;
174
- /**
175
- * The categorical name cycle used to auto-assign colors to bare tag values,
176
- * in deterministic order. Aliased to the shared {@link CATEGORICAL_COLOR_ORDER}
177
- * (RGB-seeded, max-contrast, neutrals excluded) so tag swatches and data-chart
178
- * series colors share one canonical rotation. If a group has more colorless
179
- * entries than free categorical names, the cycle wraps.
180
- */
181
- declare const autoTagColorCycle: readonly string[];
1
+ import { T as TagGroup, D as DgmoError, P as PaletteConfig } from './registry-CaSw0PSH.js';
182
2
 
183
3
  /** A POI / route-stop position: gazetteer name (+ optional ISO scope) or coords. */
184
4
  type PoiPos = {
@@ -638,173 +458,6 @@ interface ResolvedMap {
638
458
  readonly error: string | null;
639
459
  }
640
460
 
641
- /**
642
- * Compact view state schema (ADR-6).
643
- * All fields optional. Only non-default values are encoded.
644
- * `tag: null` means "user chose none"; absent `tag` means "use DSL default" (ADR-5).
645
- */
646
- interface CompactViewState {
647
- tag?: string | null;
648
- cs?: number[];
649
- cg?: string[];
650
- swim?: string | null;
651
- cl?: string[];
652
- cc?: string[];
653
- rm?: string;
654
- htv?: Record<string, string[]>;
655
- ha?: string[];
656
- sem?: boolean;
657
- cm?: boolean;
658
- c4l?: string;
659
- c4s?: string;
660
- c4c?: string;
661
- rps?: number;
662
- spd?: number;
663
- io?: Record<string, number>;
664
- hd?: boolean;
665
- cbd?: boolean;
666
- rq?: string;
667
- an?: boolean;
668
- fl?: boolean;
669
- }
670
- interface DecodedDiagramUrl {
671
- dsl: string;
672
- viewState: CompactViewState;
673
- palette?: string;
674
- theme?: 'light' | 'dark';
675
- filename?: string;
676
- }
677
- interface EncodeDiagramUrlOptions {
678
- baseUrl?: string;
679
- viewState?: CompactViewState;
680
- palette?: string;
681
- theme?: 'light' | 'dark';
682
- filename?: string;
683
- }
684
- type EncodeDiagramUrlResult = {
685
- url: string;
686
- error?: undefined;
687
- } | {
688
- url?: undefined;
689
- error: 'too-large';
690
- compressedSize: number;
691
- limit: number;
692
- };
693
- /**
694
- * Encode a CompactViewState to a compressed string for URL embedding.
695
- * Returns empty string if state has no keys (ADR-4).
696
- */
697
- declare function encodeViewState(state: CompactViewState): string;
698
- /**
699
- * Decode a compressed view state string back to CompactViewState.
700
- * Returns empty object on failure (no crash).
701
- */
702
- declare function decodeViewState(encoded: string): CompactViewState;
703
- /**
704
- * Compress a DGMO DSL string into a shareable URL.
705
- * Returns `{ url }` on success, or `{ error: 'too-large', compressedSize, limit }` if the
706
- * compressed payload exceeds the 8 KB limit.
707
- */
708
- declare function encodeDiagramUrl(dsl: string, options?: EncodeDiagramUrlOptions): EncodeDiagramUrlResult;
709
- /**
710
- * Decode a DGMO DSL string and view state from a URL query string or hash.
711
- * Accepts any of:
712
- * - `?dgmo=<payload>&vs=<state>`
713
- * - `#dgmo=<payload>&vs=<state>` (backwards compat)
714
- * - `dgmo=<payload>`
715
- * - `<bare payload>`
716
- *
717
- * Returns `{ dsl, viewState }`. The DSL is empty string on invalid input.
718
- */
719
- declare function decodeDiagramUrl(hash: string): DecodedDiagramUrl;
720
-
721
- interface ChartTypeMeta {
722
- readonly id: string;
723
- readonly description: string;
724
- readonly fallback?: true;
725
- }
726
- declare const chartTypes: readonly ChartTypeMeta[];
727
-
728
- /** User-visible rendering category for dispatch and routing. */
729
- type RenderCategory = 'data-chart' | 'visualization' | 'diagram';
730
-
731
- /**
732
- * Extracts the chart type from raw file content.
733
- * First tries the first non-empty, non-comment line as a bare chart type name
734
- * (e.g., `gantt Product Launch`).
735
- * Falls back to inference when no explicit chart type is found.
736
- */
737
- declare function parseDgmoChartType(content: string): string | null;
738
-
739
- /**
740
- * Returns the render category for a given chart type, or `null` if unknown.
741
- * Use this instead of the internal framework map for dispatch in consumers.
742
- */
743
- declare function getRenderCategory(chartType: string): RenderCategory | null;
744
- /**
745
- * Returns true if the chart type is an extended chart type
746
- * handled by parseExtendedChart (scatter, sankey, function, heatmap, funnel).
747
- * Returns false for standard chart types and all other types.
748
- */
749
- declare function isExtendedChartType(chartType: string): boolean;
750
- /**
751
- * Returns all supported chart type identifiers in canonical (tier) order,
752
- * derived from `chartTypes`. Consumers that need alphabetical order should
753
- * call `.sort()` explicitly.
754
- */
755
- declare function getAllChartTypes(): string[];
756
- /**
757
- * Canonical descriptions for every supported chart type. Derived from
758
- * `chartTypes` so there is exactly one place to update when adding a new
759
- * type. Consumed by the CLI `dgmo types` command, the editor autocomplete
760
- * popup, and the MCP `list_chart_types` tool.
761
- */
762
- declare const CHART_TYPE_DESCRIPTIONS: Record<string, string>;
763
- type ParseResult = {
764
- diagnostics: readonly DgmoError[];
765
- };
766
- type ParseFn = (content: string) => ParseResult;
767
- /**
768
- * Maps every chart-type id to the parser that handles it, DERIVED from
769
- * `CHART_TYPE_REGISTRY` (src/chart-type-registry.ts). Adding a new chart type
770
- * means adding ONE descriptor there plus its `chartTypes` metadata entry; the
771
- * `chart-type-registry.test.ts` cross-check asserts the registry, `chartTypes`,
772
- * the render-category sites, and the export handlers all stay in sync.
773
- */
774
- declare const chartTypeParsers: ReadonlyArray<readonly [string, ParseFn]>;
775
- /** Ids in the same order as `chartTypeParsers`; used for cross-checks. */
776
- declare const knownChartTypeIds: readonly string[];
777
- /**
778
- * Parse DGMO content and return diagnostics without rendering.
779
- * Useful for the CLI and editor to surface all errors before attempting render.
780
- */
781
- declare function parseDgmo(content: string): {
782
- diagnostics: DgmoError[];
783
- chartType: string | null;
784
- };
785
-
786
- /** Validate that a hex string is well-formed (#RGB or #RRGGBB). */
787
- declare function isValidHex(value: string): boolean;
788
- /**
789
- * Register a palette. Called at module initialization.
790
- * Validates that all 19 color fields per mode are present and valid hex.
791
- * Throws on malformed palettes to catch errors at startup, not at render time.
792
- */
793
- declare function registerPalette(palette: PaletteConfig): void;
794
- /** Get palette by id. Silently returns the default palette if id is unrecognized. */
795
- declare function getPalette(id: string): PaletteConfig;
796
- /**
797
- * Resolve a palette by id, falling back to the default palette when the id is
798
- * unregistered. If a `warn` callback is supplied, it is invoked once with a
799
- * human-readable fallback message on a miss — the single place the "resolve,
800
- * fall back, warn" policy lives, so each host can surface it its own way
801
- * (console.warn, Obsidian Notice, MCP response). Silent when the id resolves or
802
- * when no callback is passed.
803
- */
804
- declare function resolvePaletteOrFallback(id: string, warn?: (message: string) => void): PaletteConfig;
805
- /** List all registered palettes alphabetically (for the selector UI). */
806
- declare function getAvailablePalettes(): PaletteConfig[];
807
-
808
461
  /**
809
462
  * All built-in palettes, keyed by camelCase id. Use directly with render():
810
463
  *
@@ -940,4 +593,4 @@ declare const themes: {
940
593
  readonly transparent: "transparent";
941
594
  };
942
595
 
943
- export { getRenderCategory as $, type AirportData as A, type BoundaryTopology as B, type CompactViewState as C, type DgmoError as D, type EncodeDiagramUrlOptions as E, type ResolvedPoi as F, type GeoExtent as G, type ResolvedRegion as H, type ResolvedRoute as I, type Theme as J, autoTagColorCycle as K, chartTypeParsers as L, type MapData as M, chartTypes as N, completeMapPlaces as O, type PaletteColors as P, completeMapRegions as Q, type ResolvedMap as R, decodeDiagramUrl as S, type TagGroup as T, decodeViewState as U, encodeDiagramUrl as V, encodeViewState as W, formatDgmoError as X, getAllChartTypes as Y, getAvailablePalettes as Z, getPalette as _, type PaletteConfig as a, isExtendedChartType as a0, isValidHex as a1, knownChartTypeIds as a2, makeDgmoError as a3, palettes as a4, parseDgmo as a5, parseDgmoChartType as a6, registerPalette as a7, searchMapLocations as a8, tagAttrKey as a9, themes as aa, type DiagnosticSpec as ab, type DiagnosticParams as ac, type EmitOptions as ad, emit as ae, resolvePaletteOrFallback as af, type TagEntry as b, type ParsedMap as c, type MapLayoutLegend as d, CHART_TYPE_DESCRIPTIONS as e, type ChartTypeMeta as f, type DecodedDiagramUrl as g, type DgmoSeverity as h, type EncodeDiagramUrlResult as i, type Gazetteer as j, type GazetteerEntry as k, type MapCompletionOptions as l, type MapDirectives as m, type MapEdge as n, type MapLocationMatch as o, type MapPlaceCompletion as p, type MapPoi as q, type MapRegion as r, type MapRegionCompletion as s, type MapRoute as t, type PoiPos as u, type ProjectionFamily as v, type RegionName as w, type RegionNames as x, type RenderCategory as y, type ResolvedEdge as z };
596
+ export { type AirportData as A, type BoundaryTopology as B, type Gazetteer as G, type MapCompletionOptions as M, type ParsedMap as P, type RegionName as R, type Theme as T, type GazetteerEntry as a, type MapData as b, type MapLocationMatch as c, type MapPlaceCompletion as d, type MapRegionCompletion as e, type RegionNames as f, completeMapPlaces as g, completeMapRegions as h, type ResolvedMap as i, type MapLayoutLegend as j, type GeoExtent as k, type MapDirectives as l, type MapEdge as m, type MapPoi as n, type MapRegion as o, palettes as p, type MapRoute as q, type PoiPos as r, searchMapLocations as s, themes as t, type ProjectionFamily as u, type ResolvedEdge as v, type ResolvedPoi as w, type ResolvedRegion as x, type ResolvedRoute as y };