@diagrammo/dgmo 0.57.0 → 0.58.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 (196) hide show
  1. package/dist/advanced.d.ts +57 -7
  2. package/dist/advanced.js +127 -117
  3. package/dist/auto.css +38 -2
  4. package/dist/auto.js +161 -124
  5. package/dist/auto.mjs +1827 -1431
  6. package/dist/block.css +38 -2
  7. package/dist/block.js +94 -52
  8. package/dist/{chart-meta-CPNVUZ5J.d.ts → chart-meta-C6UaqhTP.d.ts} +1 -1
  9. package/dist/chart-meta.d.ts +2 -2
  10. package/dist/chart-meta.js +44 -42
  11. package/dist/{charts-d3-Z6FOKUAL.js → charts-d3-K5M5J5ZM.js} +5 -5
  12. package/dist/{chunk-VYCV5WKH.js → chunk-2JPEBOUQ.js} +60 -44
  13. package/dist/{chunk-FERE46TP.js → chunk-2UBTPFIF.js} +3 -3
  14. package/dist/{chunk-CXI6X54X.js → chunk-3DY7TNZ7.js} +2 -2
  15. package/dist/{chunk-D5FANMSG.js → chunk-3LMUMAUS.js} +2 -2
  16. package/dist/{chunk-5J2RQGFG.js → chunk-4CE2GOC2.js} +3 -3
  17. package/dist/{chunk-T2VMOWAM.js → chunk-4ESLORPX.js} +3 -3
  18. package/dist/chunk-4UNGFVVY.js +181 -0
  19. package/dist/{chunk-ADKDIWCW.js → chunk-52KLHCXQ.js} +3 -3
  20. package/dist/{chunk-VSFAJUEF.js → chunk-5RPSN32F.js} +3 -3
  21. package/dist/{chunk-PKFW6GJD.js → chunk-5RY4W7J6.js} +3 -3
  22. package/dist/{chunk-FMPYKUKI.js → chunk-6F3MVYUW.js} +3 -3
  23. package/dist/{chunk-ST3ZNEUQ.js → chunk-6JYE3SDK.js} +2 -2
  24. package/dist/{chunk-FZECLCCU.js → chunk-6KTRV3O5.js} +3 -3
  25. package/dist/{chunk-57RE4N22.js → chunk-7Q6HX7ON.js} +2 -2
  26. package/dist/{chunk-ULR3BVNH.js → chunk-7SGR7A5K.js} +4 -4
  27. package/dist/{chunk-J6V3SMR3.js → chunk-7UZFAIKI.js} +7 -7
  28. package/dist/{chunk-XBTJJLAU.js → chunk-ATKB7VEN.js} +4 -4
  29. package/dist/{chunk-5VLUAAAE.js → chunk-AU4AQYOA.js} +3 -3
  30. package/dist/{chunk-4MB4UOT5.js → chunk-B4U7RRQ4.js} +2 -2
  31. package/dist/{chunk-QWUYFUNO.js → chunk-BFYPHZ5M.js} +2 -2
  32. package/dist/{chunk-7YPSFQFA.js → chunk-C7IKQOEQ.js} +6 -6
  33. package/dist/{chunk-X3ON4M5S.js → chunk-CBPFVH3N.js} +4 -4
  34. package/dist/{chunk-3M6MKHIQ.js → chunk-CC6XIQDE.js} +2 -2
  35. package/dist/{chunk-G3L4GWLA.js → chunk-CZIFUXI2.js} +3 -3
  36. package/dist/chunk-D3K4U3ZM.js +232 -0
  37. package/dist/{chunk-RQGNELB3.js → chunk-DWAQXY6T.js} +3 -3
  38. package/dist/{chunk-KRKU6WRS.js → chunk-DWMJLEBT.js} +4 -4
  39. package/dist/{chunk-VS7DGDT3.js → chunk-DZUDSGGQ.js} +5 -5
  40. package/dist/chunk-E55OZDFH.js +65 -0
  41. package/dist/{chunk-SQWWYGPT.js → chunk-E6CCWMTT.js} +5 -5
  42. package/dist/{chunk-3KOPPSUQ.js → chunk-E7HANW62.js} +12 -3
  43. package/dist/{chunk-7Q35X3AL.js → chunk-EDJYIQZM.js} +9 -233
  44. package/dist/{chunk-HBRGNLF5.js → chunk-EEF7BUX7.js} +6 -6
  45. package/dist/{chunk-3ZONSZOX.js → chunk-FWNJ45NW.js} +2 -2
  46. package/dist/{chunk-RB4HOOKP.js → chunk-FXIG472W.js} +2 -2
  47. package/dist/{chunk-ORZQVUGW.js → chunk-GAFNYUNJ.js} +4 -4
  48. package/dist/{chunk-PRKPFRC2.js → chunk-GGKWKNOL.js} +4 -4
  49. package/dist/{chunk-OFEUXZPI.js → chunk-HBIGEWRC.js} +3 -3
  50. package/dist/{chunk-D64FRGKU.js → chunk-HUYAMTCD.js} +2 -2
  51. package/dist/{chunk-NIUE5VWY.js → chunk-HXTS54OV.js} +3 -3
  52. package/dist/{chunk-PUGUOFM6.js → chunk-ILZHMKYQ.js} +3 -3
  53. package/dist/{chunk-LZX3RLRP.js → chunk-IRN5GBBO.js} +6 -6
  54. package/dist/{chunk-OYCIVSL3.js → chunk-JM65HLBZ.js} +6 -6
  55. package/dist/{chunk-DIKIHU52.js → chunk-KAG5JCZV.js} +3 -3
  56. package/dist/{chunk-4MJOBVY7.js → chunk-KNCY7YHC.js} +2 -2
  57. package/dist/{chunk-M3IYDSI7.js → chunk-L5DQB4C7.js} +5 -5
  58. package/dist/{chunk-EEKGMS63.js → chunk-LLDNNANC.js} +3 -3
  59. package/dist/{chunk-7SXTD7L6.js → chunk-LYQMN35H.js} +2 -2
  60. package/dist/{chunk-ES3MUYRX.js → chunk-MF4FDLFG.js} +3 -3
  61. package/dist/{chunk-YNAHUNMA.js → chunk-MPPOQOCF.js} +2 -2
  62. package/dist/{chunk-44GBBTMU.js → chunk-N7PF5IRF.js} +2 -2
  63. package/dist/{chunk-QMOX5I3G.js → chunk-NGGVVTP2.js} +5 -5
  64. package/dist/{chunk-UG4MWUXE.js → chunk-NPBAV3QU.js} +5 -5
  65. package/dist/{chunk-6PRLPGJB.js → chunk-NQGE76NC.js} +3 -3
  66. package/dist/{chunk-5XMDSXZT.js → chunk-NSUAU6JQ.js} +2 -2
  67. package/dist/{chunk-OHBIN74X.js → chunk-NW2K6UU2.js} +3 -3
  68. package/dist/{chunk-WOMXS5R7.js → chunk-NYCBN7YE.js} +3 -3
  69. package/dist/{chunk-MXDT446P.js → chunk-OMOU2V3W.js} +3 -3
  70. package/dist/chunk-ON4MEUC4.js +50 -0
  71. package/dist/{chunk-3D6LDLIH.js → chunk-OXANJRNK.js} +2 -2
  72. package/dist/{chunk-X32RDWT5.js → chunk-PH5WK6G5.js} +3 -3
  73. package/dist/{chunk-U3DGAE7L.js → chunk-PIIORN3Q.js} +3 -3
  74. package/dist/{chunk-Q772PVKH.js → chunk-QDOSCTL5.js} +2 -2
  75. package/dist/{chunk-CY5KE2P5.js → chunk-QS37VUFZ.js} +2 -2
  76. package/dist/{chunk-NFAHDPCG.js → chunk-RB3AFVPT.js} +3 -3
  77. package/dist/{chunk-LV5BFA24.js → chunk-RDHZRHDG.js} +3 -3
  78. package/dist/{chunk-SADYIA5Q.js → chunk-S3AZMBK7.js} +3 -3
  79. package/dist/{chunk-6HSRT6WI.js → chunk-SBQXLX6Y.js} +3 -3
  80. package/dist/{chunk-SFVG4AIG.js → chunk-SQK4EKOW.js} +3 -3
  81. package/dist/{chunk-6DR2GMDM.js → chunk-STYJ6EOV.js} +157 -134
  82. package/dist/{chunk-BQLJAYVB.js → chunk-TQC2SUMJ.js} +2 -2
  83. package/dist/{chunk-TZ72UBOA.js → chunk-TXQXPJTG.js} +2 -2
  84. package/dist/{chunk-RV2N7COG.js → chunk-UFDLQKCR.js} +2 -2
  85. package/dist/{chunk-INU6ANOH.js → chunk-UPTAWSCG.js} +2 -2
  86. package/dist/{chunk-K2GDF2ZR.js → chunk-VBSKNQUO.js} +4 -4
  87. package/dist/{chunk-KH74OWHU.js → chunk-VJYERZ2Q.js} +3 -3
  88. package/dist/{chunk-USFZQPJ2.js → chunk-W22JRLNA.js} +3 -3
  89. package/dist/{chunk-CQJ5SE5T.js → chunk-W2RU24DD.js} +4 -4
  90. package/dist/{chunk-NHZAYL2X.js → chunk-W6T5QRIR.js} +4 -4
  91. package/dist/{chunk-APD52YJV.js → chunk-WQWVLAA5.js} +4 -4
  92. package/dist/{chunk-D76B4DMV.js → chunk-WYG5VJY2.js} +2 -2
  93. package/dist/{chunk-VYEQPPS6.js → chunk-WYGLKR4I.js} +3 -3
  94. package/dist/{chunk-MGLJA5TK.js → chunk-X3YNX4DR.js} +2 -2
  95. package/dist/{chunk-3G7BCZ4J.js → chunk-X4JEAY73.js} +5 -5
  96. package/dist/{chunk-M65UOFJA.js → chunk-XHTRLRZ5.js} +3 -3
  97. package/dist/{chunk-3NSOKT7C.js → chunk-XXAHWYQU.js} +2 -2
  98. package/dist/{chunk-A6XELFU6.js → chunk-YAG7WAQE.js} +8 -8
  99. package/dist/{chunk-KF575IXC.js → chunk-YILSSUEL.js} +3 -3
  100. package/dist/{chunk-U4FSWAOJ.js → chunk-YKMOI6ZG.js} +4 -4
  101. package/dist/{chunk-TGOMHUOV.js → chunk-ZEIYC7XO.js} +12 -1
  102. package/dist/{chunk-PFG3EVRD.js → chunk-ZKNSLC35.js} +3 -3
  103. package/dist/{chunk-5LBCOFA5.js → chunk-ZW7LTYW2.js} +2 -2
  104. package/dist/cli.cjs +143 -142
  105. package/dist/cloud-reference.d.ts +15 -8
  106. package/dist/cloud-reference.js +8 -39
  107. package/dist/completion-registry.js +24 -5
  108. package/dist/dgmo-router-2637N4DY.js +90 -0
  109. package/dist/{dimensions-XRWIPAFO.js → dimensions-HSIQYP5Z.js} +5 -5
  110. package/dist/editor.js +11 -2
  111. package/dist/element.js +164 -127
  112. package/dist/element.mjs +1827 -1431
  113. package/dist/{flowchart-parser-DA3V2SLH.js → flowchart-parser-I2TEUWAP.js} +4 -4
  114. package/dist/{flowchart-renderer-JGLZB5P5.js → flowchart-renderer-ER66DNCI.js} +5 -5
  115. package/dist/highlight.js +11 -2
  116. package/dist/index.d.ts +13 -4
  117. package/dist/index.js +55 -49
  118. package/dist/{layout-5CX27X7I.js → layout-3QMCSW6B.js} +3 -3
  119. package/dist/{layout-NU5LQ4UP.js → layout-DH6GSKAH.js} +2 -2
  120. package/dist/{layout-AO3TPZUS.js → layout-HTDK3DMG.js} +4 -4
  121. package/dist/{layout-EQTOVNEE.js → layout-K4S54TX7.js} +4 -4
  122. package/dist/{layout-WHOOLGPO.js → layout-V5X3U3WB.js} +4 -4
  123. package/dist/{layout-TZKPVXKJ.js → layout-VFUHKLTS.js} +3 -3
  124. package/dist/{layout-AQXLQVAJ.js → layout-VNEBCYPX.js} +4 -4
  125. package/dist/{layout-search-6CVR2MTZ.js → layout-search-N6NQI5OQ.js} +5 -5
  126. package/dist/{parser-5UZWYSIV.js → parser-2RTQF2LA.js} +4 -4
  127. package/dist/{parser-4ZIJDGPG.js → parser-2VTOUMJY.js} +4 -4
  128. package/dist/{parser-HMQZPPOK.js → parser-3M3QQRCZ.js} +4 -4
  129. package/dist/{parser-RBNOWHGM.js → parser-4WSJVVG6.js} +4 -4
  130. package/dist/{parser-Q3KNFXQR.js → parser-67JHR6I6.js} +4 -4
  131. package/dist/{parser-MH62NYKM.js → parser-6GXEHNZD.js} +4 -4
  132. package/dist/{parser-O5XCVGZG.js → parser-6I3NOLKL.js} +3 -3
  133. package/dist/{parser-6CM27UPA.js → parser-7VNCLF77.js} +4 -4
  134. package/dist/{parser-QL2LBPFE.js → parser-AE7RC4IJ.js} +4 -4
  135. package/dist/{parser-DQ2DGDYO.js → parser-BDGMJSZB.js} +3 -3
  136. package/dist/{parser-WT3DSNPQ.js → parser-BVHECXAJ.js} +4 -4
  137. package/dist/{parser-QEWSTNEJ.js → parser-FLCLHHOM.js} +4 -4
  138. package/dist/{parser-LMNFVTIV.js → parser-FSSAJO2M.js} +4 -4
  139. package/dist/{parser-73YUU35J.js → parser-GH2Y6CR4.js} +3 -3
  140. package/dist/{parser-AYZTKZC3.js → parser-GUUNA7WE.js} +3 -3
  141. package/dist/{parser-DTXM5ROT.js → parser-ISJJO7TJ.js} +5 -5
  142. package/dist/parser-J3FUTZAQ.js +12 -0
  143. package/dist/{parser-Q62VR2UJ.js → parser-JY7ZU5PP.js} +5 -5
  144. package/dist/{parser-4TX6U4ZU.js → parser-KKBW25LM.js} +3 -3
  145. package/dist/{parser-XWNSCDY6.js → parser-M74SVSPT.js} +4 -4
  146. package/dist/{parser-CCAUZLYI.js → parser-MKJ52TD7.js} +4 -4
  147. package/dist/{parser-A6M25MLK.js → parser-MPQTXCBQ.js} +3 -3
  148. package/dist/{parser-IQLLBMBQ.js → parser-N3AAAGTA.js} +3 -3
  149. package/dist/{parser-OPOGIKFR.js → parser-N7SSE4SK.js} +4 -4
  150. package/dist/{parser-D7YZX3CH.js → parser-NH6IAVZJ.js} +3 -3
  151. package/dist/{parser-IPBEW2DG.js → parser-NKHBUGAX.js} +4 -4
  152. package/dist/{parser-PQXN6SBB.js → parser-QVX4FR3J.js} +5 -5
  153. package/dist/{parser-XQNM7BGD.js → parser-S6QH3QIK.js} +4 -4
  154. package/dist/{parser-PEBXIOPX.js → parser-UODHU3EP.js} +4 -4
  155. package/dist/{parser-5WMH55UA.js → parser-UVS6OHCO.js} +4 -4
  156. package/dist/{parser-SJ7ECFAP.js → parser-X3TCE7P5.js} +4 -4
  157. package/dist/{parser-QN3GJJ3J.js → parser-XQKSQBOT.js} +3 -3
  158. package/dist/{parser-KTVDCWHG.js → parser-XXYB4TRG.js} +4 -4
  159. package/dist/{registry-CaSw0PSH.d.ts → registry-C0HvobTb.d.ts} +17 -0
  160. package/dist/renderer-2G7Q3L5W.js +77 -0
  161. package/dist/{renderer-2TEGR3RX.js → renderer-2IO3H53I.js} +5 -5
  162. package/dist/{renderer-Q6TJ52B4.js → renderer-2KDW3TWO.js} +5 -5
  163. package/dist/{renderer-W5GF5USI.js → renderer-2SK7UM4O.js} +5 -5
  164. package/dist/{renderer-BNEO5W3E.js → renderer-34GG6RHO.js} +6 -6
  165. package/dist/{renderer-LRQ3OPNJ.js → renderer-44EXXXRC.js} +7 -7
  166. package/dist/{renderer-XKMG3SYD.js → renderer-4SH6U6WF.js} +6 -6
  167. package/dist/{renderer-TIIHLRMM.js → renderer-4WQRF2SK.js} +5 -5
  168. package/dist/{renderer-KXMKAXPQ.js → renderer-7AVFPE3Q.js} +4 -4
  169. package/dist/{renderer-EJ3FETD2.js → renderer-BA6WTWVL.js} +5 -5
  170. package/dist/{renderer-5BFS4NBL.js → renderer-BLPXBLUP.js} +5 -5
  171. package/dist/{renderer-I2P5FTZ2.js → renderer-C7LFE5CB.js} +7 -7
  172. package/dist/{renderer-3WYLLPQL.js → renderer-CUXXNHFU.js} +6 -6
  173. package/dist/{renderer-B6XOO6EE.js → renderer-DRNJJNAE.js} +3 -3
  174. package/dist/{renderer-N4V7XVC3.js → renderer-DVUKHOFB.js} +7 -7
  175. package/dist/{renderer-6OFPEBHG.js → renderer-I7Q5U2TU.js} +5 -5
  176. package/dist/{renderer-ND7YIUHD.js → renderer-JIUVU3PF.js} +3 -3
  177. package/dist/{renderer-HDLM6OY6.js → renderer-LXIIZ3BH.js} +7 -7
  178. package/dist/{renderer-VWBNIZV3.js → renderer-MTX6PLPA.js} +6 -6
  179. package/dist/{renderer-LU4R3BP2.js → renderer-QGZ2BOJG.js} +4 -4
  180. package/dist/{renderer-AK2X3VRY.js → renderer-SL5IQJKB.js} +7 -7
  181. package/dist/{renderer-IAJMS5U5.js → renderer-SL5LE7MU.js} +7 -7
  182. package/dist/{renderer-JHYUK5TN.js → renderer-SXZBGMEH.js} +3 -3
  183. package/dist/{renderer-LNOBG226.js → renderer-UPANX7XK.js} +7 -7
  184. package/dist/{renderer-FQLFE3TQ.js → renderer-VDCGDJ6L.js} +5 -5
  185. package/dist/{renderer-BZZKS7KQ.js → renderer-XJFRVCF6.js} +7 -7
  186. package/dist/{renderer-LMLSA457.js → renderer-XRC5R3OP.js} +5 -5
  187. package/dist/{renderer-PLRNQ6T3.js → renderer-Y64MT4JM.js} +7 -7
  188. package/dist/{renderer-XSZ5MUIF.js → renderer-ZLJ5CCSO.js} +5 -5
  189. package/dist/{renderer-W3JK5YVD.js → renderer-ZY5TXTS5.js} +5 -5
  190. package/dist/{renderer-radial-LZAPQVM5.js → renderer-radial-4YKK4JNW.js} +6 -6
  191. package/dist/{state-parser-NQGVYSM3.js → state-parser-3PFFJO5M.js} +5 -5
  192. package/dist/{state-renderer-KSAKMFQ2.js → state-renderer-2HDVRUNG.js} +7 -7
  193. package/dist/{themes-tbBkIVsn.d.ts → themes-l406Vj2z.d.ts} +1 -1
  194. package/docs/language-reference.md +29 -0
  195. package/package.json +1 -1
  196. package/dist/dgmo-router-PMEKTIJ7.js +0 -88
@@ -1,10 +1,13 @@
1
1
  import {
2
2
  allTasks,
3
3
  parseRaci
4
- } from "./chunk-BQLJAYVB.js";
4
+ } from "./chunk-TQC2SUMJ.js";
5
5
  import {
6
6
  parseBody
7
- } from "./chunk-EEKGMS63.js";
7
+ } from "./chunk-LLDNNANC.js";
8
+ import {
9
+ parseLiveLink
10
+ } from "./chunk-4UNGFVVY.js";
8
11
  import {
9
12
  EXTENDED_CHART_DOORS,
10
13
  parseChart,
@@ -13,111 +16,111 @@ import {
13
16
  parseHeatmap,
14
17
  parseSankey,
15
18
  parseScatter
16
- } from "./chunk-CY5KE2P5.js";
19
+ } from "./chunk-QS37VUFZ.js";
17
20
  import {
18
21
  parsePyramid
19
- } from "./chunk-MGLJA5TK.js";
22
+ } from "./chunk-X3YNX4DR.js";
20
23
  import {
21
24
  parseRing
22
- } from "./chunk-RV2N7COG.js";
25
+ } from "./chunk-UFDLQKCR.js";
23
26
  import {
24
27
  parseTreemap
25
- } from "./chunk-VSFAJUEF.js";
28
+ } from "./chunk-5RPSN32F.js";
26
29
  import {
27
30
  parseBlock
28
- } from "./chunk-5J2RQGFG.js";
31
+ } from "./chunk-4CE2GOC2.js";
29
32
  import {
30
33
  parseGoal
31
- } from "./chunk-5XMDSXZT.js";
34
+ } from "./chunk-NSUAU6JQ.js";
32
35
  import {
33
36
  parseCountdown
34
- } from "./chunk-QWUYFUNO.js";
37
+ } from "./chunk-BFYPHZ5M.js";
35
38
  import {
36
39
  parseClock
37
- } from "./chunk-YNAHUNMA.js";
40
+ } from "./chunk-MPPOQOCF.js";
38
41
  import {
39
42
  parseBracket
40
- } from "./chunk-NFAHDPCG.js";
43
+ } from "./chunk-RB3AFVPT.js";
41
44
  import {
42
45
  parseSketch
43
- } from "./chunk-USFZQPJ2.js";
46
+ } from "./chunk-W22JRLNA.js";
44
47
  import {
45
48
  parseSwimlane
46
- } from "./chunk-5VLUAAAE.js";
49
+ } from "./chunk-AU4AQYOA.js";
47
50
  import {
48
51
  parseFamily
49
- } from "./chunk-ES3MUYRX.js";
52
+ } from "./chunk-MF4FDLFG.js";
50
53
  import {
51
54
  parseMindmap
52
- } from "./chunk-KF575IXC.js";
55
+ } from "./chunk-YILSSUEL.js";
53
56
  import {
54
57
  parseTechRadar
55
- } from "./chunk-CXI6X54X.js";
58
+ } from "./chunk-3DY7TNZ7.js";
56
59
  import {
57
60
  parseCycle
58
- } from "./chunk-4MB4UOT5.js";
61
+ } from "./chunk-B4U7RRQ4.js";
59
62
  import {
60
63
  parseJourneyMap
61
- } from "./chunk-RQGNELB3.js";
64
+ } from "./chunk-DWAQXY6T.js";
62
65
  import {
63
66
  parseEventLine
64
- } from "./chunk-XBTJJLAU.js";
67
+ } from "./chunk-ATKB7VEN.js";
65
68
  import {
66
69
  parseTimelineEventLine
67
- } from "./chunk-4MJOBVY7.js";
70
+ } from "./chunk-KNCY7YHC.js";
68
71
  import {
69
72
  parseVersionControl
70
- } from "./chunk-D64FRGKU.js";
73
+ } from "./chunk-HUYAMTCD.js";
71
74
  import {
72
75
  parseKanban
73
- } from "./chunk-X32RDWT5.js";
76
+ } from "./chunk-PH5WK6G5.js";
74
77
  import {
75
78
  parseC4
76
- } from "./chunk-NIUE5VWY.js";
79
+ } from "./chunk-HXTS54OV.js";
77
80
  import {
78
81
  parseInfra
79
- } from "./chunk-MXDT446P.js";
82
+ } from "./chunk-OMOU2V3W.js";
80
83
  import {
81
84
  parseGantt
82
- } from "./chunk-ADKDIWCW.js";
85
+ } from "./chunk-52KLHCXQ.js";
83
86
  import {
84
87
  parseMap
85
- } from "./chunk-WOMXS5R7.js";
88
+ } from "./chunk-NYCBN7YE.js";
86
89
  import {
87
90
  parseBoxesAndLines
88
- } from "./chunk-NHZAYL2X.js";
91
+ } from "./chunk-W6T5QRIR.js";
89
92
  import {
90
93
  looksLikeSequence,
91
94
  parseSequenceDgmo
92
- } from "./chunk-FERE46TP.js";
95
+ } from "./chunk-2UBTPFIF.js";
93
96
  import {
94
97
  looksLikeFlowchart,
95
98
  parseFlowchart
96
- } from "./chunk-LV5BFA24.js";
99
+ } from "./chunk-RDHZRHDG.js";
97
100
  import {
98
101
  looksLikeState,
99
102
  parseState
100
- } from "./chunk-APD52YJV.js";
103
+ } from "./chunk-WQWVLAA5.js";
101
104
  import {
102
105
  looksLikeClassDiagram,
103
106
  parseClassDiagram
104
- } from "./chunk-VYEQPPS6.js";
107
+ } from "./chunk-WYGLKR4I.js";
105
108
  import {
106
109
  looksLikeERDiagram,
107
110
  parseERDiagram
108
- } from "./chunk-ULR3BVNH.js";
111
+ } from "./chunk-7SGR7A5K.js";
109
112
  import {
110
113
  looksLikeOrg,
111
114
  parseOrg
112
- } from "./chunk-PFG3EVRD.js";
115
+ } from "./chunk-ZKNSLC35.js";
113
116
  import {
114
117
  looksLikeSitemap,
115
118
  parseSitemap
116
- } from "./chunk-OHBIN74X.js";
119
+ } from "./chunk-NW2K6UU2.js";
117
120
  import {
118
121
  looksLikePert,
119
122
  parsePert
120
- } from "./chunk-DIKIHU52.js";
123
+ } from "./chunk-KAG5JCZV.js";
121
124
  import {
122
125
  makeYearContext,
123
126
  parseDateToken,
@@ -126,17 +129,17 @@ import {
126
129
  } from "./chunk-DAOFNU6J.js";
127
130
  import {
128
131
  chartTypes
129
- } from "./chunk-TGOMHUOV.js";
132
+ } from "./chunk-ZEIYC7XO.js";
130
133
  import {
131
134
  parseWireframe
132
- } from "./chunk-FZECLCCU.js";
135
+ } from "./chunk-6KTRV3O5.js";
133
136
  import {
134
137
  matchTagBlockHeading,
135
138
  stripDefaultModifier,
136
139
  tagAttrKey,
137
140
  validateTagGroupNames,
138
141
  validateTagValues
139
- } from "./chunk-D5FANMSG.js";
142
+ } from "./chunk-3LMUMAUS.js";
140
143
  import {
141
144
  TIMELINE_REGISTRY,
142
145
  collectIndentedValues,
@@ -148,7 +151,7 @@ import {
148
151
  peelTrailingColorName,
149
152
  splitNameAndMeta,
150
153
  withTagAliases
151
- } from "./chunk-3KOPPSUQ.js";
154
+ } from "./chunk-E7HANW62.js";
152
155
  import {
153
156
  resolveColorWithDiagnostic
154
157
  } from "./chunk-EXNKNJ65.js";
@@ -1867,7 +1870,12 @@ var CHART_TYPE_REGISTRY = [
1867
1870
  // no measure/minDims — it sizes to content and scales to fit its rectangle.
1868
1871
  { id: "bracket", category: "diagram", parse: parseBracket },
1869
1872
  // ── Geographic map (own parser → resolver → layout → renderer) ──
1870
- { id: "map", category: "visualization", parse: parseMap }
1873
+ { id: "map", category: "visualization", parse: parseMap },
1874
+ // Live link: a pointer to a diagram published at Diagrammo Cloud, rendered
1875
+ // as a reference card. `diagram` like every other card-shaped type, so the
1876
+ // export-handler cross-check covers it rather than being relaxed for it. No
1877
+ // measure/minDims — the card sizes to its own text and scales to fit.
1878
+ { id: "live-link", category: "diagram", parse: parseLiveLink }
1871
1879
  ];
1872
1880
  var REGISTRY_BY_ID = new Map(
1873
1881
  CHART_TYPE_REGISTRY.map((d) => [d.id, d])
@@ -1964,13 +1972,19 @@ function parseDgmoUndeduped(content) {
1964
1972
  if (parser) {
1965
1973
  const result2 = parser(content);
1966
1974
  return {
1967
- diagnostics: [...result2.diagnostics, ...detectEmptyContent(content)],
1975
+ diagnostics: [
1976
+ ...result2.diagnostics,
1977
+ ...detectEmptyContent(content, chartType)
1978
+ ],
1968
1979
  chartType
1969
1980
  };
1970
1981
  }
1971
1982
  const result = parseVisualization(content);
1972
1983
  return {
1973
- diagnostics: [...result.diagnostics, ...detectEmptyContent(content)],
1984
+ diagnostics: [
1985
+ ...result.diagnostics,
1986
+ ...detectEmptyContent(content, chartType)
1987
+ ],
1974
1988
  chartType
1975
1989
  };
1976
1990
  }
@@ -2002,7 +2016,9 @@ function detectColonChartType(content) {
2002
2016
  }
2003
2017
  return null;
2004
2018
  }
2005
- function detectEmptyContent(content) {
2019
+ var EMPTY_CONTENT_EXEMPT = /* @__PURE__ */ new Set(["live-link"]);
2020
+ function detectEmptyContent(content, chartType) {
2021
+ if (chartType && EMPTY_CONTENT_EXEMPT.has(chartType)) return [];
2006
2022
  const lines = content.split("\n");
2007
2023
  const nonEmpty = lines.filter(
2008
2024
  (l) => l.trim() && !l.trim().startsWith("#") && !l.trim().startsWith("//")
@@ -2035,4 +2051,4 @@ export {
2035
2051
  knownChartTypeIds,
2036
2052
  parseDgmo
2037
2053
  };
2038
- //# sourceMappingURL=chunk-VYCV5WKH.js.map
2054
+ //# sourceMappingURL=chunk-2JPEBOUQ.js.map
@@ -16,7 +16,7 @@ import {
16
16
  stripDefaultModifier,
17
17
  validateTagGroupNames,
18
18
  validateTagValues
19
- } from "./chunk-D5FANMSG.js";
19
+ } from "./chunk-3LMUMAUS.js";
20
20
  import {
21
21
  FILL_FAMILY_TOKENS,
22
22
  OPTION_NOCOLON_RE,
@@ -28,7 +28,7 @@ import {
28
28
  splitNameAndMeta,
29
29
  warnUnknownMetaKeys,
30
30
  withTagAliases
31
- } from "./chunk-3KOPPSUQ.js";
31
+ } from "./chunk-E7HANW62.js";
32
32
  import {
33
33
  NAME_DIAGNOSTIC_CODES,
34
34
  formatDgmoError,
@@ -1040,4 +1040,4 @@ export {
1040
1040
  parseSequenceDgmo,
1041
1041
  looksLikeSequence
1042
1042
  };
1043
- //# sourceMappingURL=chunk-FERE46TP.js.map
1043
+ //# sourceMappingURL=chunk-2UBTPFIF.js.map
@@ -5,7 +5,7 @@ import {
5
5
  parseFirstLine,
6
6
  splitNameAndMeta,
7
7
  warnUnknownMetaKeys
8
- } from "./chunk-3KOPPSUQ.js";
8
+ } from "./chunk-E7HANW62.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-CXI6X54X.js.map
341
+ //# sourceMappingURL=chunk-3DY7TNZ7.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  stripQuotes,
3
3
  tokenizeQuoteAware
4
- } from "./chunk-3KOPPSUQ.js";
4
+ } from "./chunk-E7HANW62.js";
5
5
  import {
6
6
  CATEGORICAL_COLOR_ORDER,
7
7
  RECOGNIZED_COLOR_NAMES,
@@ -250,4 +250,4 @@ export {
250
250
  resolveActiveTagGroup,
251
251
  matchTagBlockHeading
252
252
  };
253
- //# sourceMappingURL=chunk-D5FANMSG.js.map
253
+ //# sourceMappingURL=chunk-3LMUMAUS.js.map
@@ -9,13 +9,13 @@ import {
9
9
  tagAttrKey,
10
10
  validateTagGroupNames,
11
11
  validateTagValues
12
- } from "./chunk-D5FANMSG.js";
12
+ } from "./chunk-3LMUMAUS.js";
13
13
  import {
14
14
  extractColor,
15
15
  fillModeFromToken,
16
16
  measureIndent,
17
17
  parseFirstLine
18
- } from "./chunk-3KOPPSUQ.js";
18
+ } from "./chunk-E7HANW62.js";
19
19
  import {
20
20
  formatDgmoError,
21
21
  makeDgmoError,
@@ -342,4 +342,4 @@ function parseBlockTail(tail, aliasMap) {
342
342
  export {
343
343
  parseBlock
344
344
  };
345
- //# sourceMappingURL=chunk-5J2RQGFG.js.map
345
+ //# sourceMappingURL=chunk-4CE2GOC2.js.map
@@ -35,10 +35,10 @@ import {
35
35
  } from "./chunk-6KFWC4CO.js";
36
36
  import {
37
37
  parseFlowchart
38
- } from "./chunk-LV5BFA24.js";
38
+ } from "./chunk-RDHZRHDG.js";
39
39
  import {
40
40
  fillModeFromOptions
41
- } from "./chunk-3KOPPSUQ.js";
41
+ } from "./chunk-E7HANW62.js";
42
42
  import {
43
43
  measureText
44
44
  } from "./chunk-4ASYQ347.js";
@@ -585,4 +585,4 @@ export {
585
585
  renderFlowchart,
586
586
  renderFlowchartForExport
587
587
  };
588
- //# sourceMappingURL=chunk-T2VMOWAM.js.map
588
+ //# sourceMappingURL=chunk-4ESLORPX.js.map
@@ -0,0 +1,181 @@
1
+ import {
2
+ parseFirstLine
3
+ } from "./chunk-E7HANW62.js";
4
+ import {
5
+ parseCloudReference,
6
+ parseCloudReferenceUrl
7
+ } from "./chunk-ON4MEUC4.js";
8
+ import {
9
+ formatDgmoError,
10
+ makeDgmoError
11
+ } from "./chunk-OLMWTJVU.js";
12
+
13
+ // src/live-link/parser.ts
14
+ var GLOBAL_DIRECTIVES = /* @__PURE__ */ new Set([
15
+ "palette",
16
+ "theme",
17
+ "no-title",
18
+ "legend-inline"
19
+ ]);
20
+ var EXAMPLE_URL = "https://online.diagrammo.app/d/dgm_7f2a91";
21
+ function resolveTarget(value) {
22
+ const trimmed = value.trim();
23
+ const asUrl = parseCloudReferenceUrl(trimmed)?.id;
24
+ if (asUrl) return asUrl;
25
+ if (!/^[^\s[\]]+$/.test(trimmed)) return null;
26
+ return parseCloudReference(`live-link ${trimmed}`)?.id ?? null;
27
+ }
28
+ function pinnedRevision(value) {
29
+ const trimmed = value.trim();
30
+ if (resolveTarget(trimmed) !== null) return null;
31
+ try {
32
+ const url = new URL(trimmed);
33
+ const at2 = url.searchParams.get("at");
34
+ if (at2 !== null) {
35
+ url.searchParams.delete("at");
36
+ if (resolveTarget(url.toString()) !== null) return `?at=${at2}`;
37
+ }
38
+ } catch {
39
+ }
40
+ const at = trimmed.indexOf("@");
41
+ if (at > 0) {
42
+ const pin = trimmed.slice(at);
43
+ if (resolveTarget(trimmed.slice(0, at)) !== null) return pin;
44
+ }
45
+ return null;
46
+ }
47
+ function parseLiveLink(content) {
48
+ const diagnostics = [];
49
+ let error = null;
50
+ const fail = (line, message) => {
51
+ const diag = makeDgmoError(line, message);
52
+ diagnostics.push(diag);
53
+ error ??= formatDgmoError(diag);
54
+ };
55
+ const warn = (line, message) => {
56
+ diagnostics.push(makeDgmoError(line, message, "warning"));
57
+ };
58
+ const lines = content.split("\n");
59
+ const isSkippable = (line) => !line || line.startsWith("//");
60
+ let titleSlot = null;
61
+ let titleLineNumber = 1;
62
+ let bodyStart = lines.length;
63
+ for (let i = 0; i < lines.length; i++) {
64
+ const trimmed = lines[i].trim();
65
+ if (isSkippable(trimmed)) continue;
66
+ const first = parseFirstLine(trimmed);
67
+ titleLineNumber = i + 1;
68
+ titleSlot = first?.title ?? null;
69
+ bodyStart = first ? i + 1 : i;
70
+ break;
71
+ }
72
+ let sawUrlLine = false;
73
+ const urls = [];
74
+ for (let i = bodyStart; i < lines.length; i++) {
75
+ const trimmed = lines[i].trim();
76
+ if (isSkippable(trimmed)) continue;
77
+ const spaceIdx = trimmed.search(/\s/);
78
+ const key = (spaceIdx === -1 ? trimmed : trimmed.slice(0, spaceIdx)).toLowerCase();
79
+ const value = spaceIdx === -1 ? "" : trimmed.slice(spaceIdx + 1).trim();
80
+ if (key === "url") {
81
+ sawUrlLine = true;
82
+ if (!value) {
83
+ fail(
84
+ i + 1,
85
+ `"url" needs a diagram \u2014 a link like ${EXAMPLE_URL}, or a bare diagram id.`
86
+ );
87
+ continue;
88
+ }
89
+ urls.push({ value, line: i + 1 });
90
+ continue;
91
+ }
92
+ if (GLOBAL_DIRECTIVES.has(key)) continue;
93
+ warn(
94
+ i + 1,
95
+ `Unrecognized directive "${key}" \u2014 a live link takes only "url".`
96
+ );
97
+ }
98
+ const titleIsPhrase = titleSlot !== null && /\s/.test(titleSlot);
99
+ const done = (title, id2) => ({
100
+ type: "live-link",
101
+ title,
102
+ titleLineNumber,
103
+ id: id2,
104
+ diagnostics,
105
+ error
106
+ });
107
+ if (!sawUrlLine && titleSlot === null) {
108
+ fail(
109
+ titleLineNumber,
110
+ "A live link needs a diagram \u2014 add `url <link>`, or write `live-link <id>`."
111
+ );
112
+ return done(null, null);
113
+ }
114
+ if (sawUrlLine && urls.length === 0) {
115
+ return done(titleIsPhrase ? titleSlot : null, null);
116
+ }
117
+ if (urls.length > 1) {
118
+ const [a, b] = [urls[0], urls[1]];
119
+ fail(
120
+ b.line,
121
+ `Two targets: "${a.value}" on line ${a.line} and "${b.value}" on line ${b.line}. A live link points at one diagram \u2014 delete one.`
122
+ );
123
+ return done(titleIsPhrase ? titleSlot : null, null);
124
+ }
125
+ const url = urls[0];
126
+ if (url && titleSlot !== null && !titleIsPhrase) {
127
+ fail(
128
+ titleLineNumber,
129
+ `Two targets: "${titleSlot}" on line ${titleLineNumber} and "${url.value}" on line ${url.line}. A live link points at one diagram \u2014 keep the \`url\` line and give line ${titleLineNumber} a title, or delete the \`url\` line.`
130
+ );
131
+ return done(null, null);
132
+ }
133
+ if (url) {
134
+ const pin = pinnedRevision(url.value);
135
+ if (pin !== null) {
136
+ fail(
137
+ url.line,
138
+ `A pinned revision cannot be served \u2014 a live link always shows the publisher's current version. Remove the "${pin}" from the link.`
139
+ );
140
+ return done(titleSlot, null);
141
+ }
142
+ const id2 = resolveTarget(url.value);
143
+ if (id2 === null) {
144
+ fail(
145
+ url.line,
146
+ `"${url.value}" is not a Diagrammo diagram \u2014 use a link like ${EXAMPLE_URL}, or a bare diagram id.`
147
+ );
148
+ return done(titleSlot, null);
149
+ }
150
+ return done(titleSlot, id2);
151
+ }
152
+ if (titleIsPhrase) {
153
+ fail(
154
+ titleLineNumber,
155
+ `"${titleSlot}" is a title, not a diagram id \u2014 add a \`url <link>\` line naming the diagram this points at.`
156
+ );
157
+ return done(titleSlot, null);
158
+ }
159
+ const shorthandPin = pinnedRevision(titleSlot);
160
+ if (shorthandPin !== null) {
161
+ fail(
162
+ titleLineNumber,
163
+ `A pinned revision cannot be served \u2014 a live link always shows the publisher's current version. Remove the "${shorthandPin}" from the id.`
164
+ );
165
+ return done(null, null);
166
+ }
167
+ const id = resolveTarget(titleSlot);
168
+ if (id === null) {
169
+ fail(
170
+ titleLineNumber,
171
+ `"${titleSlot}" is not a diagram id \u2014 use a bare id, or add a \`url <link>\` line.`
172
+ );
173
+ return done(null, null);
174
+ }
175
+ return done(null, id);
176
+ }
177
+
178
+ export {
179
+ parseLiveLink
180
+ };
181
+ //# sourceMappingURL=chunk-4UNGFVVY.js.map
@@ -15,7 +15,7 @@ import {
15
15
  stripDefaultModifier,
16
16
  tagAttrKey,
17
17
  validateTagGroupNames
18
- } from "./chunk-D5FANMSG.js";
18
+ } from "./chunk-3LMUMAUS.js";
19
19
  import {
20
20
  GANTT_BOOLEAN_SET,
21
21
  GANTT_OPTION_SET,
@@ -28,7 +28,7 @@ import {
28
28
  splitNameAndMeta,
29
29
  warnUnknownMetaKeys,
30
30
  withTagAliases
31
- } from "./chunk-3KOPPSUQ.js";
31
+ } from "./chunk-E7HANW62.js";
32
32
  import {
33
33
  getSeriesColors
34
34
  } from "./chunk-42IT4BG2.js";
@@ -1347,4 +1347,4 @@ export {
1347
1347
  GANTT_KNOWN_OPTIONS,
1348
1348
  GANTT_KNOWN_BOOLEANS
1349
1349
  };
1350
- //# sourceMappingURL=chunk-ADKDIWCW.js.map
1350
+ //# sourceMappingURL=chunk-52KLHCXQ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  tagAttrKey,
8
8
  validateTagGroupNames,
9
9
  validateTagValues
10
- } from "./chunk-D5FANMSG.js";
10
+ } from "./chunk-3LMUMAUS.js";
11
11
  import {
12
12
  TREEMAP_REGISTRY,
13
13
  extractColor,
@@ -20,7 +20,7 @@ import {
20
20
  stripQuotes,
21
21
  warnUnknownMetaKeys,
22
22
  withTagAliases
23
- } from "./chunk-3KOPPSUQ.js";
23
+ } from "./chunk-E7HANW62.js";
24
24
  import {
25
25
  emit,
26
26
  formatDgmoError,
@@ -440,4 +440,4 @@ export {
440
440
  TREEMAP_DIAGNOSTICS,
441
441
  parseTreemap
442
442
  };
443
- //# sourceMappingURL=chunk-VSFAJUEF.js.map
443
+ //# sourceMappingURL=chunk-5RPSN32F.js.map
@@ -2,10 +2,10 @@ import {
2
2
  injectDefaultTagMetadata,
3
3
  resolveTagColor,
4
4
  tagAttrKey
5
- } from "./chunk-D5FANMSG.js";
5
+ } from "./chunk-3LMUMAUS.js";
6
6
  import {
7
7
  legendSuppressed
8
- } from "./chunk-3KOPPSUQ.js";
8
+ } from "./chunk-E7HANW62.js";
9
9
  import {
10
10
  LEGEND_CAPSULE_PAD,
11
11
  LEGEND_DOT_R,
@@ -870,4 +870,4 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
870
870
  export {
871
871
  layoutOrg
872
872
  };
873
- //# sourceMappingURL=chunk-PKFW6GJD.js.map
873
+ //# sourceMappingURL=chunk-5RY4W7J6.js.map
@@ -14,14 +14,14 @@ import {
14
14
  } from "./chunk-6KFWC4CO.js";
15
15
  import {
16
16
  allTasks
17
- } from "./chunk-BQLJAYVB.js";
17
+ } from "./chunk-TQC2SUMJ.js";
18
18
  import {
19
19
  VARIANTS
20
20
  } from "./chunk-I55PVEIX.js";
21
21
  import {
22
22
  fillModeFromOptions,
23
23
  legendSuppressed
24
- } from "./chunk-3KOPPSUQ.js";
24
+ } from "./chunk-E7HANW62.js";
25
25
  import {
26
26
  measureText,
27
27
  truncateText,
@@ -789,4 +789,4 @@ export {
789
789
  renderRaci,
790
790
  renderRaciForExport
791
791
  };
792
- //# sourceMappingURL=chunk-FMPYKUKI.js.map
792
+ //# sourceMappingURL=chunk-6F3MVYUW.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  extractColor,
3
3
  measureIndent
4
- } from "./chunk-3KOPPSUQ.js";
4
+ } from "./chunk-E7HANW62.js";
5
5
  import {
6
6
  makeDgmoError
7
7
  } from "./chunk-OLMWTJVU.js";
@@ -73,4 +73,4 @@ function tryCollectNote(lines, index, indent, palette, diagnostics) {
73
73
  export {
74
74
  tryCollectNote
75
75
  };
76
- //# sourceMappingURL=chunk-ST3ZNEUQ.js.map
76
+ //# sourceMappingURL=chunk-6JYE3SDK.js.map
@@ -5,14 +5,14 @@ import {
5
5
  matchTagBlockHeading,
6
6
  stripDefaultModifier,
7
7
  validateTagGroupNames
8
- } from "./chunk-D5FANMSG.js";
8
+ } from "./chunk-3LMUMAUS.js";
9
9
  import {
10
10
  OPTION_NOCOLON_RE,
11
11
  extractColor,
12
12
  measureIndent,
13
13
  parseFirstLine,
14
14
  tryParseSharedOption
15
- } from "./chunk-3KOPPSUQ.js";
15
+ } from "./chunk-E7HANW62.js";
16
16
  import {
17
17
  formatDgmoError,
18
18
  makeDgmoError
@@ -729,4 +729,4 @@ export {
729
729
  resetWireframeIds,
730
730
  parseWireframe
731
731
  };
732
- //# sourceMappingURL=chunk-FZECLCCU.js.map
732
+ //# sourceMappingURL=chunk-6KTRV3O5.js.map
@@ -2,7 +2,7 @@ import {
2
2
  injectDefaultTagMetadata,
3
3
  resolveTagColor,
4
4
  tagAttrKey
5
- } from "./chunk-D5FANMSG.js";
5
+ } from "./chunk-3LMUMAUS.js";
6
6
  import {
7
7
  LEGEND_CAPSULE_PAD,
8
8
  LEGEND_DOT_R,
@@ -617,4 +617,4 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
617
617
  export {
618
618
  layoutSitemap
619
619
  };
620
- //# sourceMappingURL=chunk-57RE4N22.js.map
620
+ //# sourceMappingURL=chunk-7Q6HX7ON.js.map