@diagrammo/dgmo 0.64.1 → 0.66.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 (150) hide show
  1. package/LICENSE +1 -1
  2. package/dist/advanced.d.ts +6773 -0
  3. package/dist/advanced.js +71 -71
  4. package/dist/block.d.ts +159 -0
  5. package/dist/block.js +21 -16
  6. package/dist/chart-meta-CpicJ1kj.d.ts +239 -0
  7. package/dist/chart-meta.d.ts +3 -0
  8. package/dist/chart-meta.js +3 -3
  9. package/dist/{charts-d3-ZTXJWEHI.js → charts-d3-I6OE5K3B.js} +9 -9
  10. package/dist/{chunk-C6DMG2V6.js → chunk-27YPE7NO.js} +28 -12
  11. package/dist/{chunk-RBAW7VUG.js → chunk-2EPV7CLY.js} +5 -7
  12. package/dist/{chunk-SCJ7CAJF.js → chunk-3HOCNSPD.js} +2 -2
  13. package/dist/{chunk-VOJOARA6.js → chunk-3OT63FS4.js} +82 -77
  14. package/dist/{chunk-Z2ADWRSW.js → chunk-3PSPUYT5.js} +3 -3
  15. package/dist/{chunk-RBBJIHNL.js → chunk-4IE42ODL.js} +11 -11
  16. package/dist/{chunk-SMCUX42K.js → chunk-4TM7MWU4.js} +7 -6
  17. package/dist/{chunk-H3HFC3SQ.js → chunk-5GM6BZO7.js} +3 -3
  18. package/dist/{chunk-7T3A2UK3.js → chunk-5T7K6QND.js} +15 -16
  19. package/dist/{chunk-NKRCPBTJ.js → chunk-6BOPYGJC.js} +6 -6
  20. package/dist/{chunk-MHI6W6XS.js → chunk-6IUL6LER.js} +10 -7
  21. package/dist/{chunk-S5RWWISJ.js → chunk-7L53J53J.js} +4 -4
  22. package/dist/{chunk-WDJ4HAGO.js → chunk-A6CTYC7O.js} +2 -2
  23. package/dist/{chunk-CDMF7P5A.js → chunk-BBCKUAUR.js} +2 -2
  24. package/dist/{chunk-AA4M6F2P.js → chunk-BBY57XAA.js} +3 -3
  25. package/dist/{chunk-NKRVFQGO.js → chunk-BDI25HWH.js} +18 -6
  26. package/dist/{chunk-SVR3YFM3.js → chunk-C666LP3O.js} +20 -15
  27. package/dist/{chunk-KRTO7NRK.js → chunk-D2WHS23S.js} +2 -2
  28. package/dist/{chunk-LYTEVE2N.js → chunk-DBF4IM4U.js} +20 -15
  29. package/dist/{chunk-PCWPYOT4.js → chunk-ET4R3AU5.js} +4 -4
  30. package/dist/{chunk-2KOBOIB2.js → chunk-FBD5ASMB.js} +2 -2
  31. package/dist/{chunk-ES66QH6J.js → chunk-FG24NXKN.js} +2 -2
  32. package/dist/{chunk-3CIOJ5YJ.js → chunk-FJ57274M.js} +3 -1
  33. package/dist/{chunk-6BVIZW5N.js → chunk-FLFBY5GN.js} +14 -12
  34. package/dist/{chunk-XUN3MIO3.js → chunk-G64OVYUT.js} +2 -2
  35. package/dist/{chunk-RQL25P3U.js → chunk-G7QZF6T3.js} +9 -9
  36. package/dist/{chunk-IGIJZHB6.js → chunk-GC7CBX6C.js} +6 -6
  37. package/dist/{chunk-B6AONGTI.js → chunk-GDQN2TPX.js} +21 -14
  38. package/dist/{chunk-CZUSH6NI.js → chunk-GMLSYNFP.js} +10 -9
  39. package/dist/{chunk-R6HCNSP6.js → chunk-GOW5VO6M.js} +2 -2
  40. package/dist/{chunk-SPHC4RYF.js → chunk-GXOMKWQ5.js} +10 -9
  41. package/dist/{chunk-MQHOKBJ6.js → chunk-IJ4FUFTR.js} +5 -5
  42. package/dist/{chunk-V3UQSKWJ.js → chunk-IJSFEU4J.js} +9 -9
  43. package/dist/{chunk-LSFZDBAP.js → chunk-IKHV5IJB.js} +2 -2
  44. package/dist/{chunk-LMXAB4YM.js → chunk-IZ6RWMBM.js} +9 -9
  45. package/dist/{chunk-6VJCURWU.js → chunk-J2EXBAPZ.js} +4 -5
  46. package/dist/{chunk-IX6N5MCY.js → chunk-JCL4K7AK.js} +12 -11
  47. package/dist/{chunk-OBKM6GIJ.js → chunk-JTUDM7S4.js} +10 -10
  48. package/dist/{chunk-CVVICCSB.js → chunk-L65WI4HO.js} +4 -4
  49. package/dist/{chunk-67D4MN2H.js → chunk-LK6LTSLH.js} +2 -2
  50. package/dist/{chunk-KOHIF4LD.js → chunk-MBODBL7C.js} +6 -5
  51. package/dist/chunk-MTGGOCND.js +638 -0
  52. package/dist/{chunk-VJARCVMH.js → chunk-MU3CJPJF.js} +2 -2
  53. package/dist/{chunk-RKTIIU7Z.js → chunk-N6XI5VTA.js} +4 -4
  54. package/dist/{chunk-ODUT5WMC.js → chunk-NVOU7N6C.js} +2 -2
  55. package/dist/{chunk-DB2KQ5DN.js → chunk-O274UTXH.js} +5 -5
  56. package/dist/{chunk-T4QXHE34.js → chunk-OWUWLZJT.js} +13 -11
  57. package/dist/{chunk-LDVUPGWC.js → chunk-OWVDD5EC.js} +2 -2
  58. package/dist/{chunk-M4HYPDER.js → chunk-P5OCINCI.js} +8 -8
  59. package/dist/{chunk-YLK3JNWP.js → chunk-QNCXONBR.js} +2 -2
  60. package/dist/{chunk-I2ATN25N.js → chunk-R4XM44BW.js} +25 -16
  61. package/dist/{chunk-37EHGTQ2.js → chunk-R7S5542V.js} +4 -4
  62. package/dist/{chunk-DJCZWQ2A.js → chunk-RTTZIX34.js} +4 -4
  63. package/dist/{chunk-OMTBYLKN.js → chunk-TPKNA2U5.js} +9 -7
  64. package/dist/{chunk-DN5HEDE4.js → chunk-TT5B36WO.js} +16 -20
  65. package/dist/{chunk-SF3JAWMY.js → chunk-TWILCDUE.js} +3 -3
  66. package/dist/{chunk-NIZM3LAG.js → chunk-UINRIO77.js} +10 -10
  67. package/dist/{chunk-5H2LIQIH.js → chunk-UJXCDF4E.js} +4 -4
  68. package/dist/{chunk-Z5ID35YP.js → chunk-UTCPNJND.js} +2 -4
  69. package/dist/{chunk-U42ZEK7L.js → chunk-V4BYBIBU.js} +24 -15
  70. package/dist/{chunk-L4IN4OBB.js → chunk-VLI5SYXW.js} +7 -7
  71. package/dist/{chunk-43E26CDA.js → chunk-VS2M72PF.js} +4 -4
  72. package/dist/{chunk-KZ3PCDUJ.js → chunk-VV6HZQ5K.js} +2 -2
  73. package/dist/{chunk-Z5BTSBWW.js → chunk-WF2HDQPG.js} +4 -4
  74. package/dist/{chunk-JU2VMFYC.js → chunk-X26BF4T2.js} +2 -2
  75. package/dist/{chunk-TAJ2XFTT.js → chunk-XKMCL2YJ.js} +19 -16
  76. package/dist/{chunk-7GUYGQR4.js → chunk-XVEPB2UU.js} +4 -4
  77. package/dist/{chunk-YHTKDIF2.js → chunk-YGFNITPC.js} +11 -11
  78. package/dist/{chunk-I24O2RWT.js → chunk-YJOOIOSR.js} +84 -14
  79. package/dist/{chunk-KPX2OWZR.js → chunk-YKWHUPBP.js} +13 -14
  80. package/dist/{chunk-FRC4LDTQ.js → chunk-YMYPFX4O.js} +36 -30
  81. package/dist/cloud-reference.d.ts +96 -0
  82. package/dist/completion-registry.d.ts +129 -0
  83. package/dist/d3-Bfhj-XBX.d.ts +496 -0
  84. package/dist/{dgmo-router-QWRF7ZKM.js → dgmo-router-464FE256.js} +4 -4
  85. package/dist/dgmo-router-EAW7XiBE.d.ts +280 -0
  86. package/dist/{dimensions-ES6O2T4H.js → dimensions-RD3Y7FCF.js} +7 -7
  87. package/dist/{flowchart-renderer-EXMRHFTQ.js → flowchart-renderer-6JKM2FA4.js} +7 -7
  88. package/dist/index.d.ts +210 -0
  89. package/dist/index.js +15 -15
  90. package/dist/{layout-HBWT2G23.js → layout-4LNMXLVK.js} +3 -3
  91. package/dist/{layout-UU4VJTOP.js → layout-62ERBWCM.js} +3 -3
  92. package/dist/{layout-N6X46MWG.js → layout-6SKHNQYO.js} +4 -4
  93. package/dist/{layout-OH4VQ3OI.js → layout-7JULRP4Y.js} +4 -4
  94. package/dist/{layout-QTZO6CW5.js → layout-FA37VP7V.js} +4 -4
  95. package/dist/layout-IN53LAE6.js +9 -0
  96. package/dist/{layout-H4H4OFE4.js → layout-IO6ORC5T.js} +3 -3
  97. package/dist/{layout-54P3DAXY.js → layout-LVMWK4QY.js} +5 -5
  98. package/dist/{layout-WCOEZPOI.js → layout-MNOTDWXW.js} +4 -4
  99. package/dist/{layout-2T2VCCTM.js → layout-RD7GDM4I.js} +5 -5
  100. package/dist/{layout-SKQMIXTG.js → layout-SBQTN2YM.js} +4 -4
  101. package/dist/{layout-5E2NQZNM.js → layout-SGYR6HBX.js} +3 -3
  102. package/dist/{layout-W3ZBJOIK.js → layout-WIMQIHBU.js} +5 -5
  103. package/dist/{layout-search-AJ6VUVUI.js → layout-search-C44CJQOB.js} +5 -5
  104. package/dist/{legend-constants-QQU3QYBF.js → legend-constants-RGINV5SF.js} +3 -3
  105. package/dist/live-link-resolve.d.ts +73 -0
  106. package/dist/{parser-KSIYWKYF.js → parser-CSKF2KNO.js} +8 -4
  107. package/dist/{parser-2BGDJJ2L.js → parser-WLL63XH7.js} +2 -2
  108. package/dist/{renderer-XLEYPLVL.js → renderer-2UIQVKXK.js} +8 -8
  109. package/dist/{renderer-KOWVTTYR.js → renderer-3GG2DEFQ.js} +7 -7
  110. package/dist/{renderer-XLPNUOYA.js → renderer-6NDYVZXQ.js} +10 -10
  111. package/dist/{renderer-2ARNFXSC.js → renderer-6ST44AVP.js} +10 -10
  112. package/dist/{renderer-YLM4CGBG.js → renderer-ALP46W2X.js} +8 -8
  113. package/dist/{renderer-HLWEJQJW.js → renderer-BEVY3UP5.js} +5 -5
  114. package/dist/{renderer-H6AQ4UIR.js → renderer-BXPWSNTJ.js} +13 -13
  115. package/dist/{renderer-BYWLJDT4.js → renderer-EWTETTII.js} +8 -8
  116. package/dist/{renderer-KK2534AF.js → renderer-FHXAWDNI.js} +4 -4
  117. package/dist/{renderer-OB77AT7V.js → renderer-FI4IKF4I.js} +7 -7
  118. package/dist/{renderer-DMVUBKP7.js → renderer-GHYH6DLG.js} +4 -4
  119. package/dist/{renderer-LSBXYOID.js → renderer-GYYJ4APT.js} +10 -10
  120. package/dist/{renderer-M43ROWET.js → renderer-JFOHE3YB.js} +9 -9
  121. package/dist/{renderer-OA7FSZ4A.js → renderer-L5QGQTLV.js} +3 -3
  122. package/dist/{renderer-7OOC2ZO2.js → renderer-L7S6YVM6.js} +4 -4
  123. package/dist/{renderer-YELZR4QT.js → renderer-LCHVBTV4.js} +12 -12
  124. package/dist/{renderer-IN3UPTZS.js → renderer-M4DAYNWC.js} +3 -3
  125. package/dist/{renderer-WN47AMUM.js → renderer-NXIK3LOA.js} +8 -8
  126. package/dist/{renderer-QR5343AR.js → renderer-OWUXQDHM.js} +3 -3
  127. package/dist/{renderer-FCO42JLK.js → renderer-PJNJOCLB.js} +8 -8
  128. package/dist/{renderer-OYTERGAO.js → renderer-QQBUBD66.js} +9 -9
  129. package/dist/{renderer-PM7JPC3J.js → renderer-REFE3YFH.js} +11 -11
  130. package/dist/{renderer-C6KOE774.js → renderer-RL2JGVPC.js} +10 -10
  131. package/dist/{renderer-ZNTLBQ45.js → renderer-RVFPPKWN.js} +9 -9
  132. package/dist/{renderer-QEHUJHRK.js → renderer-SFQHFPC5.js} +10 -10
  133. package/dist/{renderer-LO4FXQHP.js → renderer-T4CMBGA5.js} +8 -8
  134. package/dist/{renderer-NHFRVCDC.js → renderer-T66477EQ.js} +9 -9
  135. package/dist/{renderer-M3PQKXK2.js → renderer-TJD6A3AK.js} +13 -13
  136. package/dist/{renderer-2E7LQC32.js → renderer-URPIVAPI.js} +3 -3
  137. package/dist/{renderer-T5CUGSXP.js → renderer-WENGQEX6.js} +7 -7
  138. package/dist/{renderer-WR3FA3FF.js → renderer-WR6J7NKH.js} +8 -8
  139. package/dist/{renderer-YBEZ5V2H.js → renderer-X3V2G4UL.js} +3 -3
  140. package/dist/{renderer-KPEQ72FY.js → renderer-YAW4VHAI.js} +11 -11
  141. package/dist/{renderer-radial-XWAKJACV.js → renderer-radial-HOUGPUPW.js} +7 -7
  142. package/dist/{state-renderer-LIESKSBO.js → state-renderer-JJSQJZEL.js} +11 -11
  143. package/dist/tag-groups-NUA2F1I5.d.ts +263 -0
  144. package/dist/themes-Dem5xalq.d.ts +139 -0
  145. package/docs/ai-integration.md +1 -1
  146. package/docs/language-reference.md +5 -0
  147. package/gallery/fixtures/er.dgmo +1 -1
  148. package/package.json +5 -3
  149. package/dist/chunk-4ASYQ347.js +0 -185
  150. package/dist/layout-5XGYNYVT.js +0 -9
package/dist/advanced.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  layoutBracket,
3
3
  renderBracket,
4
4
  renderBracketForExport
5
- } from "./chunk-B6AONGTI.js";
5
+ } from "./chunk-GDQN2TPX.js";
6
6
  import {
7
7
  renderRaci,
8
8
  renderRaciForExport
9
- } from "./chunk-I24O2RWT.js";
9
+ } from "./chunk-YJOOIOSR.js";
10
10
  import {
11
11
  applyCollapseProjection,
12
12
  applyGroupOrdering,
@@ -16,43 +16,43 @@ import {
16
16
  computeActivations,
17
17
  groupMessagesBySection,
18
18
  renderSequenceDiagram
19
- } from "./chunk-MHI6W6XS.js";
19
+ } from "./chunk-6IUL6LER.js";
20
20
  import {
21
21
  renderRing,
22
22
  renderRingForExport
23
- } from "./chunk-NKRCPBTJ.js";
23
+ } from "./chunk-6BOPYGJC.js";
24
24
  import {
25
25
  layoutTreemapRadial,
26
26
  renderTreemapRadial,
27
27
  renderTreemapRadialForExport
28
- } from "./chunk-SPHC4RYF.js";
28
+ } from "./chunk-GXOMKWQ5.js";
29
29
  import {
30
30
  layoutTreemap,
31
31
  renderTreemap,
32
32
  renderTreemapForExport
33
- } from "./chunk-IX6N5MCY.js";
33
+ } from "./chunk-JCL4K7AK.js";
34
34
  import {
35
35
  renderLiveLinkCard
36
- } from "./chunk-MQHOKBJ6.js";
36
+ } from "./chunk-IJ4FUFTR.js";
37
37
  import {
38
38
  authoredCollapsedIds,
39
39
  layoutBlock,
40
40
  renderBlock,
41
41
  renderBlockForExport
42
- } from "./chunk-CZUSH6NI.js";
42
+ } from "./chunk-GMLSYNFP.js";
43
43
  import {
44
44
  renderGoal,
45
45
  renderGoalForExport
46
- } from "./chunk-WDJ4HAGO.js";
46
+ } from "./chunk-A6CTYC7O.js";
47
47
  import "./chunk-3A7KMF33.js";
48
48
  import {
49
49
  renderCountdown,
50
50
  renderCountdownForExport
51
- } from "./chunk-2KOBOIB2.js";
51
+ } from "./chunk-FBD5ASMB.js";
52
52
  import {
53
53
  renderClock,
54
54
  renderClockForExport
55
- } from "./chunk-CDMF7P5A.js";
55
+ } from "./chunk-BBCKUAUR.js";
56
56
  import {
57
57
  computeRadarLayout,
58
58
  getRadarGeometry,
@@ -60,37 +60,37 @@ import {
60
60
  renderQuadrantFocusForExport,
61
61
  renderTechRadar,
62
62
  renderTechRadarForExport
63
- } from "./chunk-L4IN4OBB.js";
63
+ } from "./chunk-VLI5SYXW.js";
64
64
  import {
65
65
  renderJourneyMap,
66
66
  renderJourneyMapForExport
67
- } from "./chunk-FRC4LDTQ.js";
67
+ } from "./chunk-YMYPFX4O.js";
68
68
  import {
69
69
  layoutJourneyMap
70
- } from "./chunk-KRTO7NRK.js";
70
+ } from "./chunk-D2WHS23S.js";
71
71
  import {
72
72
  computeCycleLayout,
73
73
  renderCycle,
74
74
  renderCycleForExport
75
- } from "./chunk-C6DMG2V6.js";
75
+ } from "./chunk-27YPE7NO.js";
76
76
  import {
77
77
  resolveMap
78
78
  } from "./chunk-WMHHNK44.js";
79
79
  import {
80
80
  renderMap,
81
81
  renderMapForExport
82
- } from "./chunk-DB2KQ5DN.js";
82
+ } from "./chunk-O274UTXH.js";
83
83
  import "./chunk-FWVKPEG3.js";
84
84
  import {
85
85
  mapContentAspect,
86
86
  mapExportDimensions
87
- } from "./chunk-JU2VMFYC.js";
87
+ } from "./chunk-X26BF4T2.js";
88
88
  import {
89
89
  albersSkewFallback,
90
90
  layoutMap,
91
91
  mapBackgroundColor,
92
92
  mapNeutralLandColor
93
- } from "./chunk-37EHGTQ2.js";
93
+ } from "./chunk-R7S5542V.js";
94
94
  import {
95
95
  decodeFeatures,
96
96
  regionAt
@@ -98,20 +98,20 @@ import {
98
98
  import {
99
99
  renderPyramid,
100
100
  renderPyramidForExport
101
- } from "./chunk-7GUYGQR4.js";
101
+ } from "./chunk-XVEPB2UU.js";
102
102
  import {
103
103
  collectDiagramRoles,
104
104
  computeInfraLegendGroups,
105
105
  inferRoles,
106
106
  parseAndLayoutInfra,
107
107
  renderInfra
108
- } from "./chunk-SVR3YFM3.js";
108
+ } from "./chunk-C666LP3O.js";
109
109
  import {
110
110
  measurePertAnalysisBlock,
111
111
  renderPert,
112
112
  renderPertAnalysisBlock,
113
113
  renderPertForExport
114
- } from "./chunk-TAJ2XFTT.js";
114
+ } from "./chunk-XKMCL2YJ.js";
115
115
  import {
116
116
  analyzePert,
117
117
  buildSimulationContext,
@@ -123,7 +123,7 @@ import {
123
123
  import {
124
124
  layoutPert,
125
125
  relayoutPert
126
- } from "./chunk-R6HCNSP6.js";
126
+ } from "./chunk-GOW5VO6M.js";
127
127
  import {
128
128
  calculateSchedule,
129
129
  collectTasks,
@@ -132,20 +132,20 @@ import {
132
132
  import {
133
133
  buildTagLaneRowList,
134
134
  renderGantt
135
- } from "./chunk-I2ATN25N.js";
135
+ } from "./chunk-R4XM44BW.js";
136
136
  import {
137
137
  renderState,
138
138
  renderStateForExport
139
- } from "./chunk-M4HYPDER.js";
139
+ } from "./chunk-P5OCINCI.js";
140
140
  import {
141
141
  collapseStateGroups
142
142
  } from "./chunk-SQ7IY53Q.js";
143
143
  import {
144
144
  layoutWireframe
145
- } from "./chunk-ODUT5WMC.js";
145
+ } from "./chunk-NVOU7N6C.js";
146
146
  import {
147
147
  renderWireframe
148
- } from "./chunk-IGIJZHB6.js";
148
+ } from "./chunk-GC7CBX6C.js";
149
149
  import {
150
150
  renderC4ComponentsForExport,
151
151
  renderC4Containers,
@@ -154,42 +154,42 @@ import {
154
154
  renderC4ContextForExport,
155
155
  renderC4Deployment,
156
156
  renderC4DeploymentForExport
157
- } from "./chunk-LMXAB4YM.js";
157
+ } from "./chunk-IZ6RWMBM.js";
158
158
  import {
159
159
  layoutC4Components,
160
160
  layoutC4Containers,
161
161
  layoutC4Context,
162
162
  layoutC4Deployment,
163
163
  rollUpContextRelationships
164
- } from "./chunk-SF3JAWMY.js";
164
+ } from "./chunk-TWILCDUE.js";
165
165
  import {
166
166
  renderFlowchart,
167
167
  renderFlowchartForExport
168
- } from "./chunk-SMCUX42K.js";
168
+ } from "./chunk-4TM7MWU4.js";
169
169
  import "./chunk-PDKUANDZ.js";
170
170
  import {
171
171
  layoutGraph
172
- } from "./chunk-LSFZDBAP.js";
172
+ } from "./chunk-IKHV5IJB.js";
173
173
  import {
174
174
  computeInfra
175
175
  } from "./chunk-ICZ7M6IZ.js";
176
176
  import {
177
177
  layoutInfra
178
- } from "./chunk-43E26CDA.js";
178
+ } from "./chunk-VS2M72PF.js";
179
179
  import {
180
180
  layoutSwimlane
181
181
  } from "./chunk-S6QDCFEU.js";
182
182
  import {
183
183
  renderSwimlaneForExport
184
- } from "./chunk-XUN3MIO3.js";
184
+ } from "./chunk-G64OVYUT.js";
185
185
  import "./chunk-LP7EC4MI.js";
186
186
  import {
187
187
  layoutFamily
188
- } from "./chunk-DJCZWQ2A.js";
188
+ } from "./chunk-RTTZIX34.js";
189
189
  import {
190
190
  renderFamily,
191
191
  renderFamilyForExport
192
- } from "./chunk-V3UQSKWJ.js";
192
+ } from "./chunk-IJSFEU4J.js";
193
193
  import "./chunk-IVKC4GID.js";
194
194
  import {
195
195
  collapseMindmapTree
@@ -197,24 +197,24 @@ import {
197
197
  import {
198
198
  renderMindmap,
199
199
  renderMindmapForExport
200
- } from "./chunk-RQL25P3U.js";
200
+ } from "./chunk-G7QZF6T3.js";
201
201
  import {
202
202
  layoutMindmap
203
- } from "./chunk-U42ZEK7L.js";
203
+ } from "./chunk-V4BYBIBU.js";
204
204
  import {
205
205
  renderClassDiagram,
206
206
  renderClassDiagramForExport
207
- } from "./chunk-NIZM3LAG.js";
207
+ } from "./chunk-UINRIO77.js";
208
208
  import {
209
209
  layoutClassDiagram
210
- } from "./chunk-PCWPYOT4.js";
210
+ } from "./chunk-ET4R3AU5.js";
211
211
  import {
212
212
  renderERDiagram,
213
213
  renderERDiagramForExport
214
- } from "./chunk-OBKM6GIJ.js";
214
+ } from "./chunk-JTUDM7S4.js";
215
215
  import {
216
216
  layoutERDiagram
217
- } from "./chunk-5H2LIQIH.js";
217
+ } from "./chunk-UJXCDF4E.js";
218
218
  import {
219
219
  SKETCH_FOOT_H,
220
220
  SKETCH_FOOT_W,
@@ -232,25 +232,25 @@ import {
232
232
  renderSketch,
233
233
  renderSketchForExport,
234
234
  sketchEdgeGeometry
235
- } from "./chunk-KPX2OWZR.js";
235
+ } from "./chunk-YKWHUPBP.js";
236
236
  import {
237
237
  renderBoxesAndLines,
238
238
  renderBoxesAndLinesForExport
239
- } from "./chunk-LYTEVE2N.js";
239
+ } from "./chunk-DBF4IM4U.js";
240
240
  import "./chunk-H52HJ26L.js";
241
241
  import {
242
242
  layoutBoxesAndLines
243
- } from "./chunk-Z5BTSBWW.js";
243
+ } from "./chunk-WF2HDQPG.js";
244
244
  import "./chunk-W4EKQ2P6.js";
245
245
  import "./chunk-WTTIODDV.js";
246
- import "./chunk-LDVUPGWC.js";
246
+ import "./chunk-OWVDD5EC.js";
247
247
  import "./chunk-6EK55ART.js";
248
- import "./chunk-VJARCVMH.js";
248
+ import "./chunk-MU3CJPJF.js";
249
249
  import "./chunk-5DH3KYFH.js";
250
250
  import {
251
251
  renderVersionControl,
252
252
  renderVersionControlForExport
253
- } from "./chunk-YLK3JNWP.js";
253
+ } from "./chunk-QNCXONBR.js";
254
254
  import {
255
255
  collapseOrgTree,
256
256
  focusOrgTree
@@ -258,14 +258,14 @@ import {
258
258
  import {
259
259
  renderOrg,
260
260
  renderOrgForExport
261
- } from "./chunk-RBBJIHNL.js";
262
- import "./chunk-KZ3PCDUJ.js";
261
+ } from "./chunk-4IE42ODL.js";
262
+ import "./chunk-VV6HZQ5K.js";
263
263
  import {
264
264
  layoutOrg
265
- } from "./chunk-RKTIIU7Z.js";
265
+ } from "./chunk-N6XI5VTA.js";
266
266
  import {
267
267
  layoutSitemap
268
- } from "./chunk-KOHIF4LD.js";
268
+ } from "./chunk-MBODBL7C.js";
269
269
  import {
270
270
  collapseSitemapTree
271
271
  } from "./chunk-UNCCZ3NU.js";
@@ -273,31 +273,31 @@ import "./chunk-BS7SV7C3.js";
273
273
  import {
274
274
  renderSitemap,
275
275
  renderSitemapForExport
276
- } from "./chunk-YHTKDIF2.js";
276
+ } from "./chunk-YGFNITPC.js";
277
277
  import {
278
278
  computeCardArchive,
279
279
  computeCardMove,
280
280
  isArchiveColumn,
281
281
  renderKanban,
282
282
  renderKanbanForExport
283
- } from "./chunk-DN5HEDE4.js";
283
+ } from "./chunk-TT5B36WO.js";
284
284
  import {
285
285
  clearEventLineMuted,
286
286
  focusEventLine,
287
287
  renderEventLine,
288
288
  renderEventLineForExport
289
- } from "./chunk-T4QXHE34.js";
289
+ } from "./chunk-OWUWLZJT.js";
290
290
  import "./chunk-NCT22MOD.js";
291
- import "./chunk-H3HFC3SQ.js";
291
+ import "./chunk-5GM6BZO7.js";
292
292
  import {
293
293
  parseInlineMarkdown,
294
294
  truncateBareUrl
295
295
  } from "./chunk-WGC42WJU.js";
296
- import "./chunk-3CIOJ5YJ.js";
296
+ import "./chunk-FJ57274M.js";
297
297
  import {
298
298
  renderBody,
299
299
  renderBodyForExport
300
- } from "./chunk-Z2ADWRSW.js";
300
+ } from "./chunk-3PSPUYT5.js";
301
301
  import {
302
302
  completeMapPlaces,
303
303
  completeMapRegions,
@@ -313,42 +313,42 @@ import {
313
313
  renderSlopeChart,
314
314
  renderVenn,
315
315
  renderWordCloud
316
- } from "./chunk-VOJOARA6.js";
317
- import "./chunk-S5RWWISJ.js";
316
+ } from "./chunk-3OT63FS4.js";
317
+ import "./chunk-7L53J53J.js";
318
318
  import "./chunk-EOYPX6SF.js";
319
319
  import {
320
320
  renderLegendSvg,
321
321
  renderLegendSvgFromConfig
322
- } from "./chunk-7T3A2UK3.js";
323
- import "./chunk-CVVICCSB.js";
322
+ } from "./chunk-5T7K6QND.js";
323
+ import "./chunk-L65WI4HO.js";
324
324
  import {
325
325
  formatDateLabel,
326
326
  renderTimeline
327
- } from "./chunk-OMTBYLKN.js";
327
+ } from "./chunk-TPKNA2U5.js";
328
328
  import {
329
329
  computeTimeTicks
330
330
  } from "./chunk-YRYKTYMQ.js";
331
331
  import {
332
332
  ScaleContext
333
333
  } from "./chunk-YYVTBZZC.js";
334
- import "./chunk-67D4MN2H.js";
335
- import "./chunk-6VJCURWU.js";
334
+ import "./chunk-LK6LTSLH.js";
335
+ import "./chunk-J2EXBAPZ.js";
336
336
  import "./chunk-RU2HHHYA.js";
337
337
  import "./chunk-A4GOY3PE.js";
338
338
  import {
339
339
  renderLegendD3
340
- } from "./chunk-RBAW7VUG.js";
340
+ } from "./chunk-2EPV7CLY.js";
341
341
  import {
342
342
  computeLegendLayout,
343
343
  controlsGroupCapsuleWidth,
344
344
  getLegendReservedHeight
345
- } from "./chunk-ES66QH6J.js";
346
- import "./chunk-Z5ID35YP.js";
345
+ } from "./chunk-FG24NXKN.js";
346
+ import "./chunk-UTCPNJND.js";
347
347
  import {
348
348
  LEGEND_GEAR_PILL_W,
349
349
  LEGEND_HEIGHT
350
- } from "./chunk-SCJ7CAJF.js";
351
- import "./chunk-4ASYQ347.js";
350
+ } from "./chunk-3HOCNSPD.js";
351
+ import "./chunk-MTGGOCND.js";
352
352
  import {
353
353
  normalizePertSourceForShare,
354
354
  resolveOrgImports
@@ -369,7 +369,7 @@ import {
369
369
  parseDgmo,
370
370
  parseDgmoChartType,
371
371
  parseVisualization
372
- } from "./chunk-AA4M6F2P.js";
372
+ } from "./chunk-BBY57XAA.js";
373
373
  import {
374
374
  normalizePlace,
375
375
  parseClock,
@@ -482,7 +482,7 @@ import {
482
482
  import "./chunk-3TYUXC7D.js";
483
483
  import {
484
484
  parseLiveLink
485
- } from "./chunk-6BVIZW5N.js";
485
+ } from "./chunk-FLFBY5GN.js";
486
486
  import {
487
487
  parseEventLine
488
488
  } from "./chunk-QMYJO4EL.js";
@@ -539,7 +539,7 @@ import {
539
539
  extractSymbols as extractSymbols3,
540
540
  looksLikeERDiagram,
541
541
  parseERDiagram
542
- } from "./chunk-NKRVFQGO.js";
542
+ } from "./chunk-BDI25HWH.js";
543
543
  import "./chunk-QE4GTFZS.js";
544
544
  import "./chunk-7NK42OIB.js";
545
545
  import {
@@ -0,0 +1,159 @@
1
+ import { M as MapDataSource } from './d3-Bfhj-XBX.js';
2
+ import './tag-groups-NUA2F1I5.js';
3
+
4
+ /**
5
+ * Canonical stylesheet for the standard DGMO embed block (BL-114).
6
+ *
7
+ * Shipped two ways: `dist/block.css` (extracted at build time by
8
+ * tsup.config.ts, same regex mechanism as auto.css) for `<link>`/import
9
+ * consumers, and the `BLOCK_CSS` string export for embedders that inject a
10
+ * `<style>` tag.
11
+ *
12
+ * Dark mode keys off `[data-theme="dark"]`. Hosts with a different signal
13
+ * (`html.dark`, `body.theme-dark`) rewrite the selector at their build step —
14
+ * fumadocs-dgmo/nextra-dgmo's build-css.mjs is the reference adapter.
15
+ *
16
+ * The `.dgmo-tok-*` role colors mirror LIGHT_ROLE_STYLES (light) and
17
+ * NORD_ROLE_STYLES (dark) from editor/highlight-api.ts. A parity test
18
+ * (tests/block.test.ts) guards against drift — update both when either
19
+ * changes.
20
+ *
21
+ * IMPORTANT: keep this a single pure template literal — the build extracts it
22
+ * with a regex, so no interpolation or computed values.
23
+ */
24
+ declare const BLOCK_CSS: string;
25
+
26
+ /**
27
+ * Standard DGMO embed block (BL-114) — the ONE canonical
28
+ * "diagram + source chrome" HTML builder shared by every embed surface:
29
+ * remark-dgmo (and through it the astro/docusaurus/fumadocs/nextra/vitepress
30
+ * wrappers), the `/auto` script-tag drop-in, `<dgmo-diagram>`, dgmo-mcp HTML
31
+ * reports, the marketing site, and the Obsidian plugin.
32
+ *
33
+ * Chrome contract (user-approved 2026-07-05): the diagram is the star. A slim
34
+ * icon toolbar sits in a reserved row below the SVG, invisible until the
35
+ * block is hovered/focused or the source is open. Four wordless icon
36
+ * buttons — `</>` toggles the hidden source panel, expand (full-screen),
37
+ * copy, open-in-editor. No disclosure triangle, no text labels. The toolbar
38
+ * IS the <summary> of a native <details>, so show/hide works with zero
39
+ * JavaScript; copy and expand need a small delegated click handler
40
+ * (remark-dgmo's `bindDgmo` is the reference — expand's lightbox helper is
41
+ * mirrored across every client surface, same as copy).
42
+ *
43
+ * Markup vocabulary: `figure.dgmo` (`--diagram`/`--showcase`/`--error`),
44
+ * `.dgmo-light`/`.dgmo-dark` (dual color-mode) or `.dgmo-svg` (single),
45
+ * `details.dgmo-source-wrap > summary.dgmo-toolbar`, `.dgmo-source-inner`,
46
+ * `pre.dgmo-pre > span.dgmo-code` with `.dgmo-tok-<role>` token spans. While
47
+ * the source is open the wrapper gets one shared frame (`:has()` rule) so
48
+ * diagram + code read as a single unit. No visible caption — `title` becomes
49
+ * the wrapper's aria-label. Styles ship as `BLOCK_CSS` / `dist/block.css`.
50
+ */
51
+
52
+ /** Default hosted editor used by "Open in editor" links. */
53
+ declare const EDITOR_BASE_URL = "https://online.diagrammo.app";
54
+ type BlockMode = 'diagram' | 'showcase';
55
+ /**
56
+ * Color-mode strategy for the emitted SVG(s).
57
+ * - `auto` — render twice (light + dark) and let CSS flip visibility.
58
+ * - `light` / `dark` / `transparent` — single render with that theme.
59
+ */
60
+ type BlockColorMode = 'auto' | 'light' | 'dark' | 'transparent';
61
+ interface DgmoBlockOptions {
62
+ /** `diagram` (default): SVG only. `showcase`: SVG + source chrome. */
63
+ mode?: BlockMode;
64
+ /** Palette name. Default `slate`; unknown names warn + fall back. */
65
+ palette?: string;
66
+ /** Default `auto` (dual light/dark render). */
67
+ colorMode?: BlockColorMode;
68
+ /**
69
+ * Embed background. `auto` (default) strips the theme's opaque root
70
+ * background so the diagram blends into the host page — except for
71
+ * background-meaningful types like `map`, which stay opaque. `transparent` /
72
+ * `opaque` force the choice regardless of type (the embedder opt-out).
73
+ */
74
+ background?: 'auto' | 'transparent' | 'opaque';
75
+ /** Default: true in showcase mode, false in diagram mode. */
76
+ showSource?: boolean;
77
+ /** Default: true in showcase mode, false in diagram mode. */
78
+ showCopy?: boolean;
79
+ /**
80
+ * Show the expand (full-screen) toolbar button. Default: true in showcase
81
+ * mode, false in diagram mode. Needs the client lightbox handler to do
82
+ * anything (mirrored across surfaces); markup-only surfaces can omit it.
83
+ */
84
+ showExpand?: boolean;
85
+ /** Default: true in showcase mode, false in diagram mode. */
86
+ showOpenInEditor?: boolean;
87
+ /** Base URL for the open-in-editor link. Default: online.diagrammo.app. */
88
+ editorBaseUrl?: string;
89
+ /** Outer wrapper element. Default `figure`. */
90
+ wrapper?: 'figure' | 'div';
91
+ /** Base class for the wrapper (styling hook). Default `dgmo`. */
92
+ className?: string;
93
+ /** Extra classes appended to every emitted wrapper (compat shims). */
94
+ legacyClassNames?: string[];
95
+ /**
96
+ * Accessible name for the block (`aria-label` on the wrapper). NOT rendered
97
+ * visually — the chart's visible title belongs in the DGMO source itself.
98
+ */
99
+ title?: string;
100
+ /**
101
+ * Extra `data-*` attributes for the outer wrapper, as bare names → values
102
+ * (`{ 'dgmo-ref': 'dgm_01H…' }` emits `data-dgmo-ref="dgm_01H…"`).
103
+ *
104
+ * Exists so a surface can mark a block for its own client code without
105
+ * string-patching the emitted HTML — remark-dgmo's cloud references stamp the
106
+ * diagram id and the revision they were baked from here, and its client script
107
+ * reads them back to decide whether a refresh is even worth a fetch. Values are
108
+ * attribute-escaped; a key that isn't a plain identifier is dropped rather than
109
+ * trusted, since these end up in markup verbatim.
110
+ */
111
+ dataAttributes?: Record<string, string>;
112
+ /**
113
+ * Map basemap assets, forwarded to `render()`. Without them a ` ```dgmo `
114
+ * fence containing a map emits the error card ("This map has no basemap
115
+ * data") — this module reads nothing from disk or the network on its own,
116
+ * and it has no environment default, because it runs in browsers as much as
117
+ * in build scripts.
118
+ *
119
+ * A Node host (a remark build, a static-site generator, a report writer)
120
+ * passes `loadMapData` from `@diagrammo/dgmo/advanced` — as the FUNCTION, so
121
+ * the eleven basemap JSON files are read only for a fence that turns out to
122
+ * be a map. A browser host supplies the data itself, or a loader that
123
+ * fetches it.
124
+ */
125
+ mapData?: MapDataSource;
126
+ /** Receives palette-fallback warnings. Default: console.warn. */
127
+ onWarn?: (message: string) => void;
128
+ }
129
+ interface DgmoBlockResult {
130
+ html: string;
131
+ diagnostics: Array<{
132
+ message: string;
133
+ line?: number;
134
+ severity?: string;
135
+ }>;
136
+ }
137
+ /**
138
+ * Render one ```dgmo source block to the standard embed HTML. Async because
139
+ * it runs the full dgmo render pipeline (once per color mode).
140
+ *
141
+ * Render errors are NOT caught here — callers decide between throwing,
142
+ * `errorBlockHtml()`, or their own fallback.
143
+ */
144
+ declare function renderDgmoBlock(source: string, options?: DgmoBlockOptions): Promise<DgmoBlockResult>;
145
+ /**
146
+ * Assemble the standard block around already-rendered SVG markup. Exposed for
147
+ * surfaces that render through their own pipeline (e.g. dgmo-mcp's
148
+ * renderPipeline) but must emit the canonical chrome. `svgsHtml` must be the
149
+ * `.dgmo-light`+`.dgmo-dark` (or `.dgmo-svg`) wrapper divs.
150
+ */
151
+ declare function buildDgmoBlockHtml(source: string, svgsHtml: string, options?: DgmoBlockOptions): string;
152
+ /**
153
+ * Standard error card for a block that failed to parse/render. Same shape on
154
+ * every surface: `.dgmo--error` with `role="alert"`, message + offending
155
+ * source.
156
+ */
157
+ declare function errorBlockHtml(err: unknown, source: string, options?: Pick<DgmoBlockOptions, 'className' | 'legacyClassNames'>): string;
158
+
159
+ export { BLOCK_CSS, type BlockColorMode, type BlockMode, type DgmoBlockOptions, type DgmoBlockResult, EDITOR_BASE_URL, MapDataSource, buildDgmoBlockHtml, errorBlockHtml, renderDgmoBlock };
package/dist/block.js CHANGED
@@ -4,30 +4,30 @@ import {
4
4
  } from "./chunk-D3K4U3ZM.js";
5
5
  import {
6
6
  render
7
- } from "./chunk-VOJOARA6.js";
7
+ } from "./chunk-3OT63FS4.js";
8
8
  import {
9
9
  docsLink,
10
10
  renderErrorCard
11
- } from "./chunk-S5RWWISJ.js";
11
+ } from "./chunk-7L53J53J.js";
12
12
  import "./chunk-EOYPX6SF.js";
13
- import "./chunk-7T3A2UK3.js";
14
- import "./chunk-CVVICCSB.js";
15
- import "./chunk-OMTBYLKN.js";
13
+ import "./chunk-5T7K6QND.js";
14
+ import "./chunk-L65WI4HO.js";
15
+ import "./chunk-TPKNA2U5.js";
16
16
  import "./chunk-YRYKTYMQ.js";
17
17
  import "./chunk-YYVTBZZC.js";
18
- import "./chunk-67D4MN2H.js";
19
- import "./chunk-6VJCURWU.js";
18
+ import "./chunk-LK6LTSLH.js";
19
+ import "./chunk-J2EXBAPZ.js";
20
20
  import "./chunk-RU2HHHYA.js";
21
21
  import "./chunk-A4GOY3PE.js";
22
- import "./chunk-RBAW7VUG.js";
23
- import "./chunk-ES66QH6J.js";
24
- import "./chunk-Z5ID35YP.js";
25
- import "./chunk-SCJ7CAJF.js";
26
- import "./chunk-4ASYQ347.js";
22
+ import "./chunk-2EPV7CLY.js";
23
+ import "./chunk-FG24NXKN.js";
24
+ import "./chunk-UTCPNJND.js";
25
+ import "./chunk-3HOCNSPD.js";
26
+ import "./chunk-MTGGOCND.js";
27
27
  import {
28
28
  encodeDiagramUrl
29
29
  } from "./chunk-U7VO6JAA.js";
30
- import "./chunk-AA4M6F2P.js";
30
+ import "./chunk-BBY57XAA.js";
31
31
  import "./chunk-2CMM36O7.js";
32
32
  import "./chunk-A2RUBBVT.js";
33
33
  import "./chunk-JWJBWNQL.js";
@@ -60,7 +60,7 @@ import "./chunk-OLPWKS5L.js";
60
60
  import "./chunk-NMIWEUIG.js";
61
61
  import "./chunk-VXBEG3IB.js";
62
62
  import "./chunk-3TYUXC7D.js";
63
- import "./chunk-6BVIZW5N.js";
63
+ import "./chunk-FLFBY5GN.js";
64
64
  import "./chunk-QMYJO4EL.js";
65
65
  import "./chunk-4GQ6I46C.js";
66
66
  import "./chunk-INLEOJIX.js";
@@ -79,7 +79,7 @@ import "./chunk-7TF3QOOD.js";
79
79
  import "./chunk-SR7NGZNM.js";
80
80
  import "./chunk-NXMESY4J.js";
81
81
  import "./chunk-EK4QX7NQ.js";
82
- import "./chunk-NKRVFQGO.js";
82
+ import "./chunk-BDI25HWH.js";
83
83
  import "./chunk-QE4GTFZS.js";
84
84
  import "./chunk-7NK42OIB.js";
85
85
  import "./chunk-RRX4Z4TH.js";
@@ -1052,6 +1052,7 @@ function resolveBlockOptions(opts) {
1052
1052
  legacyClassNames: opts.legacyClassNames ?? [],
1053
1053
  dataAttributes: opts.dataAttributes ?? {},
1054
1054
  title: opts.title,
1055
+ mapData: opts.mapData,
1055
1056
  onWarn: opts.onWarn ?? ((message) => console.warn(message))
1056
1057
  };
1057
1058
  }
@@ -1062,7 +1063,11 @@ async function renderDgmoBlock(source, options = {}) {
1062
1063
  const diagnostics = [];
1063
1064
  let chartType;
1064
1065
  const renderTheme = async (theme) => {
1065
- const r = await render(trimmed, { palette: palette.id, theme });
1066
+ const r = await render(trimmed, {
1067
+ palette: palette.id,
1068
+ theme,
1069
+ ...opts.mapData !== void 0 ? { mapData: opts.mapData } : {}
1070
+ });
1066
1071
  chartType = r.chartType;
1067
1072
  diagnostics.push(...r.diagnostics);
1068
1073
  const errors = r.diagnostics.filter((d) => d.severity === "error");