docmedown 0.1.7 → 0.9.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 (304) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +86 -37
  3. package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
  4. package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
  5. package/dist/cli.js +672 -1294
  6. package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
  7. package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
  8. package/dist/docmedown-compiler.js +228 -0
  9. package/dist/docmedown-mermaid.js +3588 -0
  10. package/dist/docmedown.cjs +7264 -80
  11. package/dist/docmedown.iife.js +7624 -424
  12. package/dist/docmedown.mjs +15531 -15009
  13. package/dist/docmedown.web.js +7628 -0
  14. package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
  15. package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
  16. package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
  17. package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
  18. package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
  19. package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
  20. package/dist/mermaid-BvOI3ZSW.js +3334 -0
  21. package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
  22. package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
  23. package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
  24. package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
  25. package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
  26. package/dist/prism-CeBRmKvl.js +2 -0
  27. package/dist/prism-CummdiZX.mjs +1588 -0
  28. package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
  29. package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
  30. package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
  31. package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
  32. package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
  33. package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
  34. package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
  35. package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
  36. package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
  37. package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
  38. package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
  39. package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
  40. package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
  41. package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
  42. package/dist/svelte-runtime-Brc440dp.js +5 -0
  43. package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
  44. package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
  45. package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
  46. package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
  47. package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
  48. package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
  49. package/dist/ts-compiler-U7pTMJjY.js +3 -0
  50. package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
  51. package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
  52. package/dist/types/runtime/bridges/index.d.ts +3 -0
  53. package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
  54. package/dist/types/runtime/compiler-cache.d.ts +18 -0
  55. package/dist/types/runtime/config-schema.d.ts +2 -0
  56. package/dist/types/runtime/favicons.d.ts +28 -0
  57. package/dist/types/runtime/loader/local-loader.d.ts +13 -0
  58. package/dist/types/runtime/markdown/component-body.d.ts +7 -0
  59. package/dist/types/runtime/markdown/escape.d.ts +1 -0
  60. package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
  61. package/dist/types/runtime/markdown/katex.d.ts +5 -0
  62. package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
  63. package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
  64. package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
  65. package/dist/types/runtime/markdown/tables.d.ts +68 -0
  66. package/dist/types/runtime/media.d.ts +30 -0
  67. package/dist/types/runtime/motion.d.ts +134 -0
  68. package/dist/types/runtime/offline-export.d.ts +9 -2
  69. package/dist/types/runtime/router.d.ts +40 -2
  70. package/dist/types/runtime/splash.d.ts +90 -0
  71. package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
  72. package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
  73. package/dist/types/runtime/svelte-runtime.d.ts +29 -0
  74. package/dist/types/runtime/svelte-tag.d.ts +7 -0
  75. package/dist/types/runtime/ts-compiler.d.ts +24 -0
  76. package/dist/types/runtime/types.d.ts +1 -0
  77. package/dist/types/ui/doc-context.svelte.d.ts +198 -0
  78. package/dist/types/ui/index.d.ts +33 -0
  79. package/dist/types/ui/registry.d.ts +52 -0
  80. package/dist/types/ui/theme.svelte.d.ts +32 -0
  81. package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
  82. package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
  83. package/package.json +61 -48
  84. package/schemas/docs.schema.json +186 -181
  85. package/templates/.dmd/CounterWidget.svelte +29 -0
  86. package/templates/README.md +2 -2
  87. package/templates/favicon.svg +12 -0
  88. package/templates/favicons/favicon-book.svg +11 -0
  89. package/templates/favicons/favicon-markdown.svg +11 -0
  90. package/templates/favicons/favicon-minimal.svg +15 -0
  91. package/templates/favicons/favicon-terminal.svg +14 -0
  92. package/templates/favicons/favicon.svg +12 -0
  93. package/templates/guides/custom-components.md +82 -22
  94. package/templates/index.html +6 -3
  95. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
  96. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
  97. package/dist/arc-DgPKXEdT.mjs +0 -82
  98. package/dist/arc-n7TW7Bis.js +0 -1
  99. package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
  100. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
  101. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
  102. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
  103. package/dist/array-CApNbSU9.mjs +0 -6
  104. package/dist/array-DZSRzHA_.js +0 -1
  105. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
  106. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
  107. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
  108. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
  109. package/dist/channel-LgHproiI.mjs +0 -5
  110. package/dist/channel-yqu0m4cl.js +0 -1
  111. package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
  112. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
  113. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
  114. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
  115. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
  116. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
  117. package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
  118. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
  119. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
  120. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
  121. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
  122. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
  123. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
  124. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
  125. package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
  126. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
  127. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
  128. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
  129. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
  130. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
  131. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
  132. package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
  133. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
  134. package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
  135. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
  136. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
  137. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
  138. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
  139. package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
  140. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
  141. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
  142. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
  143. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
  144. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
  145. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
  146. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
  147. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
  148. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
  149. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
  150. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
  151. package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
  152. package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
  153. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
  154. package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
  155. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
  156. package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
  157. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
  158. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
  159. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
  160. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
  161. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
  162. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
  163. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
  164. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
  165. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
  166. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
  167. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
  168. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
  169. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
  170. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
  171. package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
  172. package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
  173. package/dist/dagre-CZ6P9L_h.js +0 -1
  174. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
  175. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
  176. package/dist/dagre-J_1oH0eY.mjs +0 -1934
  177. package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
  178. package/dist/defaultLocale-ybN1Vtvg.js +0 -1
  179. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
  180. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
  181. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
  182. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
  183. package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
  184. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
  185. package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
  186. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
  187. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
  188. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
  189. package/dist/dist-CXWJafG_.js +0 -1
  190. package/dist/dist-DNdLIC8h.mjs +0 -59
  191. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
  192. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
  193. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
  194. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
  195. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
  196. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
  197. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
  198. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
  199. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
  200. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
  201. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
  202. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
  203. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
  204. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
  205. package/dist/graphlib-BaETKKSa.js +0 -1
  206. package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
  207. package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
  208. package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
  209. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
  210. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
  211. package/dist/init-BJdqMO10.js +0 -1
  212. package/dist/init-CsQUQz36.mjs +0 -13
  213. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
  214. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
  215. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
  216. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
  217. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
  218. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
  219. package/dist/line-BEwhHSLl.js +0 -1
  220. package/dist/line-CiXRog8O.mjs +0 -34
  221. package/dist/linear-75tfjrny.js +0 -1
  222. package/dist/linear-Ncx_RuON.mjs +0 -288
  223. package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
  224. package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
  225. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
  226. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
  227. package/dist/ordinal-B1BNQwUR.mjs +0 -65
  228. package/dist/ordinal-B9aFWmF9.js +0 -1
  229. package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
  230. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
  231. package/dist/path-CnWkkRiY.mjs +0 -84
  232. package/dist/path-DIS6ck99.js +0 -1
  233. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
  234. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
  235. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
  236. package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
  237. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
  238. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
  239. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
  240. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
  241. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
  242. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
  243. package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
  244. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
  245. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
  246. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
  247. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
  248. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
  249. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
  250. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
  251. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
  252. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
  253. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
  254. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
  255. package/dist/rough.esm-ChRLLRha.js +0 -1
  256. package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
  257. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
  258. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
  259. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
  260. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
  261. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
  262. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
  263. package/dist/src-B4mN2BMl.js +0 -1
  264. package/dist/src-D_hsMyeP.mjs +0 -2154
  265. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
  266. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
  267. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
  268. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
  269. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
  270. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
  271. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
  272. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
  273. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
  274. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
  275. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
  276. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
  277. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
  278. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
  279. package/dist/types/runtime/app.d.ts +0 -9
  280. package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
  281. package/dist/types/runtime/components/Builtins.d.ts +0 -44
  282. package/dist/types/runtime/components/Content.d.ts +0 -2
  283. package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
  284. package/dist/types/runtime/components/Layout.d.ts +0 -2
  285. package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
  286. package/dist/types/runtime/components/Navbar.d.ts +0 -2
  287. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
  288. package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
  289. package/dist/types/runtime/components/Sidebar.d.ts +0 -2
  290. package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
  291. package/dist/types/runtime/index.d.ts +0 -8
  292. package/dist/types/runtime/markdown/renderer.d.ts +0 -7
  293. package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
  294. package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
  295. package/dist/types/runtime/search/SearchModal.d.ts +0 -11
  296. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
  297. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
  298. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
  299. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
  300. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
  301. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
  302. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
  303. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
  304. package/templates/.dmd/components.js +0 -25
@@ -1,1006 +0,0 @@
1
- import { m as e } from "./src-D_hsMyeP.mjs";
2
- import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { b as n, et as r, f as i, k as a, rt as o, tt as s, x as c, z as l } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
5
- import "./chunk-P2QGCYS3-6q3AXPt5.mjs";
6
- import "./chunk-PWAF6VOD-BYG76tEe.mjs";
7
- import "./chunk-GMAD6QVW-BZeZ4fdb.mjs";
8
- import "./chunk-4HAMMTFA-VgWPe1ng.mjs";
9
- import "./chunk-GVQU2GXP-B1D3J05J.mjs";
10
- import "./chunk-L3NEJ4N5-lal8wUID.mjs";
11
- import "./chunk-OSK3NFVY-9AWK88m1.mjs";
12
- import { r as u, t as d } from "./chunk-TLUHSLCS-CUrWaKDG.mjs";
13
- import { t as f } from "./chunk-XXDRQBXY-DpR8eYzz.mjs";
14
- import { t as p } from "./chunk-POPQ4Y6H-Dd7J9tx3.mjs";
15
- //#region node_modules/uuid/dist/stringify.js
16
- var m = [];
17
- for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
18
- function h(e, t = 0) {
19
- return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
20
- }
21
- //#endregion
22
- //#region node_modules/uuid/dist/rng.js
23
- var g = /* @__PURE__ */ new Uint8Array(16);
24
- function _() {
25
- return crypto.getRandomValues(g);
26
- }
27
- //#endregion
28
- //#region node_modules/uuid/dist/v4.js
29
- function v(e, t, n) {
30
- return !t && !e && crypto.randomUUID ? crypto.randomUUID() : y(e, t, n);
31
- }
32
- function y(e, t, n) {
33
- e ||= {};
34
- let r = e.random ?? e.rng?.() ?? _();
35
- if (r.length < 16) throw Error("Random bytes length must be >= 16");
36
- if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
37
- if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
38
- for (let e = 0; e < 16; ++e) t[n + e] = r[e];
39
- return t;
40
- }
41
- return h(r);
42
- }
43
- //#endregion
44
- //#region node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-YA3MSWOX.mjs
45
- var b = (function() {
46
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
47
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
48
- return n;
49
- }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
50
- 6,
51
- 7,
52
- 8
53
- ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
54
- 6,
55
- 7,
56
- 11
57
- ], m = [
58
- 1,
59
- 6,
60
- 13,
61
- 15,
62
- 16,
63
- 19,
64
- 22
65
- ], h = [1, 33], g = [1, 34], _ = [
66
- 1,
67
- 6,
68
- 7,
69
- 11,
70
- 13,
71
- 15,
72
- 16,
73
- 19,
74
- 22
75
- ], v = {
76
- trace: /* @__PURE__ */ t(function() {}, "trace"),
77
- yy: {},
78
- symbols_: {
79
- error: 2,
80
- start: 3,
81
- mindMap: 4,
82
- spaceLines: 5,
83
- SPACELINE: 6,
84
- NL: 7,
85
- MINDMAP: 8,
86
- document: 9,
87
- stop: 10,
88
- EOF: 11,
89
- statement: 12,
90
- SPACELIST: 13,
91
- node: 14,
92
- ICON: 15,
93
- CLASS: 16,
94
- nodeWithId: 17,
95
- nodeWithoutId: 18,
96
- NODE_DSTART: 19,
97
- NODE_DESCR: 20,
98
- NODE_DEND: 21,
99
- NODE_ID: 22,
100
- $accept: 0,
101
- $end: 1
102
- },
103
- terminals_: {
104
- 2: "error",
105
- 6: "SPACELINE",
106
- 7: "NL",
107
- 8: "MINDMAP",
108
- 11: "EOF",
109
- 13: "SPACELIST",
110
- 15: "ICON",
111
- 16: "CLASS",
112
- 19: "NODE_DSTART",
113
- 20: "NODE_DESCR",
114
- 21: "NODE_DEND",
115
- 22: "NODE_ID"
116
- },
117
- productions_: [
118
- 0,
119
- [3, 1],
120
- [3, 2],
121
- [5, 1],
122
- [5, 2],
123
- [5, 2],
124
- [4, 2],
125
- [4, 3],
126
- [10, 1],
127
- [10, 1],
128
- [10, 1],
129
- [10, 2],
130
- [10, 2],
131
- [9, 3],
132
- [9, 2],
133
- [12, 2],
134
- [12, 2],
135
- [12, 2],
136
- [12, 1],
137
- [12, 1],
138
- [12, 1],
139
- [12, 1],
140
- [12, 1],
141
- [14, 1],
142
- [14, 1],
143
- [18, 3],
144
- [17, 1],
145
- [17, 4]
146
- ],
147
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
148
- var s = a.length - 1;
149
- switch (i) {
150
- case 6:
151
- case 7: return r;
152
- case 8:
153
- r.getLogger().trace("Stop NL ");
154
- break;
155
- case 9:
156
- r.getLogger().trace("Stop EOF ");
157
- break;
158
- case 11:
159
- r.getLogger().trace("Stop NL2 ");
160
- break;
161
- case 12:
162
- r.getLogger().trace("Stop EOF2 ");
163
- break;
164
- case 15:
165
- r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
166
- break;
167
- case 16:
168
- r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
169
- break;
170
- case 17:
171
- case 21:
172
- r.decorateNode({ class: a[s] });
173
- break;
174
- case 18:
175
- r.getLogger().trace("SPACELIST");
176
- break;
177
- case 19:
178
- r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
179
- break;
180
- case 20:
181
- r.decorateNode({ icon: a[s] });
182
- break;
183
- case 25:
184
- r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
185
- id: a[s - 1],
186
- descr: a[s - 1],
187
- type: r.getType(a[s - 2], a[s])
188
- };
189
- break;
190
- case 26:
191
- this.$ = {
192
- id: a[s],
193
- descr: a[s],
194
- type: r.nodeType.DEFAULT
195
- };
196
- break;
197
- case 27: r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
198
- id: a[s - 3],
199
- descr: a[s - 1],
200
- type: r.getType(a[s - 2], a[s])
201
- };
202
- }
203
- }, "anonymous"),
204
- table: [
205
- {
206
- 3: 1,
207
- 4: 2,
208
- 5: 3,
209
- 6: [1, 5],
210
- 8: n
211
- },
212
- { 1: [3] },
213
- { 1: [2, 1] },
214
- {
215
- 4: 6,
216
- 6: [1, 7],
217
- 7: [1, 8],
218
- 8: n
219
- },
220
- {
221
- 6: r,
222
- 7: [1, 10],
223
- 9: 9,
224
- 12: 11,
225
- 13: i,
226
- 14: 14,
227
- 15: a,
228
- 16: o,
229
- 17: 17,
230
- 18: 18,
231
- 19: s,
232
- 22: c
233
- },
234
- e(l, [2, 3]),
235
- { 1: [2, 2] },
236
- e(l, [2, 4]),
237
- e(l, [2, 5]),
238
- {
239
- 1: [2, 6],
240
- 6: r,
241
- 12: 21,
242
- 13: i,
243
- 14: 14,
244
- 15: a,
245
- 16: o,
246
- 17: 17,
247
- 18: 18,
248
- 19: s,
249
- 22: c
250
- },
251
- {
252
- 6: r,
253
- 9: 22,
254
- 12: 11,
255
- 13: i,
256
- 14: 14,
257
- 15: a,
258
- 16: o,
259
- 17: 17,
260
- 18: 18,
261
- 19: s,
262
- 22: c
263
- },
264
- {
265
- 6: u,
266
- 7: d,
267
- 10: 23,
268
- 11: f
269
- },
270
- e(p, [2, 22], {
271
- 17: 17,
272
- 18: 18,
273
- 14: 27,
274
- 15: [1, 28],
275
- 16: [1, 29],
276
- 19: s,
277
- 22: c
278
- }),
279
- e(p, [2, 18]),
280
- e(p, [2, 19]),
281
- e(p, [2, 20]),
282
- e(p, [2, 21]),
283
- e(p, [2, 23]),
284
- e(p, [2, 24]),
285
- e(p, [2, 26], { 19: [1, 30] }),
286
- { 20: [1, 31] },
287
- {
288
- 6: u,
289
- 7: d,
290
- 10: 32,
291
- 11: f
292
- },
293
- {
294
- 1: [2, 7],
295
- 6: r,
296
- 12: 21,
297
- 13: i,
298
- 14: 14,
299
- 15: a,
300
- 16: o,
301
- 17: 17,
302
- 18: 18,
303
- 19: s,
304
- 22: c
305
- },
306
- e(m, [2, 14], {
307
- 7: h,
308
- 11: g
309
- }),
310
- e(_, [2, 8]),
311
- e(_, [2, 9]),
312
- e(_, [2, 10]),
313
- e(p, [2, 15]),
314
- e(p, [2, 16]),
315
- e(p, [2, 17]),
316
- { 20: [1, 35] },
317
- { 21: [1, 36] },
318
- e(m, [2, 13], {
319
- 7: h,
320
- 11: g
321
- }),
322
- e(_, [2, 11]),
323
- e(_, [2, 12]),
324
- { 21: [1, 37] },
325
- e(p, [2, 25]),
326
- e(p, [2, 27])
327
- ],
328
- defaultActions: {
329
- 2: [2, 1],
330
- 6: [2, 2]
331
- },
332
- parseError: /* @__PURE__ */ t(function(e, t) {
333
- if (t.recoverable) this.trace(e);
334
- else {
335
- var n = Error(e);
336
- throw n.hash = t, n;
337
- }
338
- }, "parseError"),
339
- parse: /* @__PURE__ */ t(function(e) {
340
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
341
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
342
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
343
- var v = h.yylloc;
344
- o.push(v);
345
- var y = h.options && h.options.ranges;
346
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
347
- function b(e) {
348
- r.length -= 2 * e, a.length -= e, o.length -= e;
349
- }
350
- t(b, "popStack");
351
- function x() {
352
- var e = i.pop() || h.lex() || p;
353
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
354
- }
355
- t(x, "lex");
356
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
357
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
358
- var M = "";
359
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
360
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
361
- text: h.match,
362
- token: this.terminals_[S] || S,
363
- line: h.yylineno,
364
- loc: v,
365
- expected: j
366
- });
367
- }
368
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
369
- switch (T[0]) {
370
- case 1:
371
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
372
- break;
373
- case 2:
374
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
375
- first_line: o[o.length - (k || 1)].first_line,
376
- last_line: o[o.length - 1].last_line,
377
- first_column: o[o.length - (k || 1)].first_column,
378
- last_column: o[o.length - 1].last_column
379
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
380
- c,
381
- u,
382
- l,
383
- g.yy,
384
- T[1],
385
- a,
386
- o
387
- ].concat(m)), E !== void 0) return E;
388
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
389
- break;
390
- case 3: return !0;
391
- }
392
- }
393
- return !0;
394
- }, "parse")
395
- };
396
- v.lexer = /* @__PURE__ */ (function() {
397
- return {
398
- EOF: 1,
399
- parseError: /* @__PURE__ */ t(function(e, t) {
400
- if (this.yy.parser) this.yy.parser.parseError(e, t);
401
- else throw Error(e);
402
- }, "parseError"),
403
- setInput: /* @__PURE__ */ t(function(e, t) {
404
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
405
- first_line: 1,
406
- first_column: 0,
407
- last_line: 1,
408
- last_column: 0
409
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
410
- }, "setInput"),
411
- input: /* @__PURE__ */ t(function() {
412
- var e = this._input[0];
413
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
414
- }, "input"),
415
- unput: /* @__PURE__ */ t(function(e) {
416
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
417
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
418
- var r = this.match.split(/(?:\r\n?|\n)/g);
419
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
420
- var i = this.yylloc.range;
421
- return this.yylloc = {
422
- first_line: this.yylloc.first_line,
423
- last_line: this.yylineno + 1,
424
- first_column: this.yylloc.first_column,
425
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
426
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
427
- }, "unput"),
428
- more: /* @__PURE__ */ t(function() {
429
- return this._more = !0, this;
430
- }, "more"),
431
- reject: /* @__PURE__ */ t(function() {
432
- if (this.options.backtrack_lexer) this._backtrack = !0;
433
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
434
- text: "",
435
- token: null,
436
- line: this.yylineno
437
- });
438
- return this;
439
- }, "reject"),
440
- less: /* @__PURE__ */ t(function(e) {
441
- this.unput(this.match.slice(e));
442
- }, "less"),
443
- pastInput: /* @__PURE__ */ t(function() {
444
- var e = this.matched.substr(0, this.matched.length - this.match.length);
445
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
446
- }, "pastInput"),
447
- upcomingInput: /* @__PURE__ */ t(function() {
448
- var e = this.match;
449
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
450
- }, "upcomingInput"),
451
- showPosition: /* @__PURE__ */ t(function() {
452
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
453
- return e + this.upcomingInput() + "\n" + t + "^";
454
- }, "showPosition"),
455
- test_match: /* @__PURE__ */ t(function(e, t) {
456
- var n, r, i;
457
- if (this.options.backtrack_lexer && (i = {
458
- yylineno: this.yylineno,
459
- yylloc: {
460
- first_line: this.yylloc.first_line,
461
- last_line: this.last_line,
462
- first_column: this.yylloc.first_column,
463
- last_column: this.yylloc.last_column
464
- },
465
- yytext: this.yytext,
466
- match: this.match,
467
- matches: this.matches,
468
- matched: this.matched,
469
- yyleng: this.yyleng,
470
- offset: this.offset,
471
- _more: this._more,
472
- _input: this._input,
473
- yy: this.yy,
474
- conditionStack: this.conditionStack.slice(0),
475
- done: this.done
476
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
477
- first_line: this.yylloc.last_line,
478
- last_line: this.yylineno + 1,
479
- first_column: this.yylloc.last_column,
480
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
481
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
482
- if (this._backtrack) {
483
- for (var a in i) this[a] = i[a];
484
- return !1;
485
- }
486
- return !1;
487
- }, "test_match"),
488
- next: /* @__PURE__ */ t(function() {
489
- if (this.done) return this.EOF;
490
- this._input || (this.done = !0);
491
- var e, t, n, r;
492
- this._more || (this.yytext = "", this.match = "");
493
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
494
- if (t = n, r = a, this.options.backtrack_lexer) {
495
- if (e = this.test_match(n, i[a]), e !== !1) return e;
496
- if (this._backtrack) {
497
- t = !1;
498
- continue;
499
- }
500
- return !1;
501
- }
502
- if (!this.options.flex) break;
503
- }
504
- return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
505
- text: "",
506
- token: null,
507
- line: this.yylineno
508
- });
509
- }, "next"),
510
- lex: /* @__PURE__ */ t(function() {
511
- return this.next() || this.lex();
512
- }, "lex"),
513
- begin: /* @__PURE__ */ t(function(e) {
514
- this.conditionStack.push(e);
515
- }, "begin"),
516
- popState: /* @__PURE__ */ t(function() {
517
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
518
- }, "popState"),
519
- _currentRules: /* @__PURE__ */ t(function() {
520
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
521
- }, "_currentRules"),
522
- topState: /* @__PURE__ */ t(function(e) {
523
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
524
- }, "topState"),
525
- pushState: /* @__PURE__ */ t(function(e) {
526
- this.begin(e);
527
- }, "pushState"),
528
- stateStackSize: /* @__PURE__ */ t(function() {
529
- return this.conditionStack.length;
530
- }, "stateStackSize"),
531
- options: { "case-insensitive": !0 },
532
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
533
- switch (n) {
534
- case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
535
- case 1: return 8;
536
- case 2:
537
- this.begin("CLASS");
538
- break;
539
- case 3: return this.popState(), 16;
540
- case 4:
541
- this.popState();
542
- break;
543
- case 5:
544
- e.getLogger().trace("Begin icon"), this.begin("ICON");
545
- break;
546
- case 6: return e.getLogger().trace("SPACELINE"), 6;
547
- case 7: return 7;
548
- case 8: return 15;
549
- case 9:
550
- e.getLogger().trace("end icon"), this.popState();
551
- break;
552
- case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
553
- case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
554
- case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
555
- case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
556
- case 14: return this.begin("NODE"), 19;
557
- case 15: return this.begin("NODE"), 19;
558
- case 16: return this.begin("NODE"), 19;
559
- case 17: return this.begin("NODE"), 19;
560
- case 18: return 13;
561
- case 19: return 22;
562
- case 20: return 11;
563
- case 21:
564
- this.begin("NSTR2");
565
- break;
566
- case 22: return "NODE_DESCR";
567
- case 23:
568
- this.popState();
569
- break;
570
- case 24:
571
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
572
- break;
573
- case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
574
- case 26:
575
- this.popState();
576
- break;
577
- case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
578
- case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
579
- case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
580
- case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
581
- case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
582
- case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
- case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
584
- case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
- case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
586
- case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
587
- }
588
- }, "anonymous"),
589
- rules: [
590
- /^(?:\s*%%.*)/i,
591
- /^(?:mindmap\b)/i,
592
- /^(?::::)/i,
593
- /^(?:.+)/i,
594
- /^(?:\n)/i,
595
- /^(?:::icon\()/i,
596
- /^(?:[\s]+[\n])/i,
597
- /^(?:[\n]+)/i,
598
- /^(?:[^\)]+)/i,
599
- /^(?:\))/i,
600
- /^(?:-\))/i,
601
- /^(?:\(-)/i,
602
- /^(?:\)\))/i,
603
- /^(?:\))/i,
604
- /^(?:\(\()/i,
605
- /^(?:\{\{)/i,
606
- /^(?:\()/i,
607
- /^(?:\[)/i,
608
- /^(?:[\s]+)/i,
609
- /^(?:[^\(\[\n\)\{\}]+)/i,
610
- /^(?:$)/i,
611
- /^(?:["][`])/i,
612
- /^(?:[^`"]+)/i,
613
- /^(?:[`]["])/i,
614
- /^(?:["])/i,
615
- /^(?:[^"]+)/i,
616
- /^(?:["])/i,
617
- /^(?:[\)]\))/i,
618
- /^(?:[\)])/i,
619
- /^(?:[\]])/i,
620
- /^(?:\}\})/i,
621
- /^(?:\(-)/i,
622
- /^(?:-\))/i,
623
- /^(?:\(\()/i,
624
- /^(?:\()/i,
625
- /^(?:[^\)\]\(\}]+)/i,
626
- /^(?:.+(?!\(\())/i
627
- ],
628
- conditions: {
629
- CLASS: {
630
- rules: [3, 4],
631
- inclusive: !1
632
- },
633
- ICON: {
634
- rules: [8, 9],
635
- inclusive: !1
636
- },
637
- NSTR2: {
638
- rules: [22, 23],
639
- inclusive: !1
640
- },
641
- NSTR: {
642
- rules: [25, 26],
643
- inclusive: !1
644
- },
645
- NODE: {
646
- rules: [
647
- 21,
648
- 24,
649
- 27,
650
- 28,
651
- 29,
652
- 30,
653
- 31,
654
- 32,
655
- 33,
656
- 34,
657
- 35,
658
- 36
659
- ],
660
- inclusive: !1
661
- },
662
- INITIAL: {
663
- rules: [
664
- 0,
665
- 1,
666
- 2,
667
- 5,
668
- 6,
669
- 7,
670
- 10,
671
- 11,
672
- 12,
673
- 13,
674
- 14,
675
- 15,
676
- 16,
677
- 17,
678
- 18,
679
- 19,
680
- 20
681
- ],
682
- inclusive: !0
683
- }
684
- }
685
- };
686
- })();
687
- function y() {
688
- this.yy = {};
689
- }
690
- return t(y, "Parser"), y.prototype = v, v.Parser = y, new y();
691
- })();
692
- b.parser = b;
693
- var x = b, S = 12, C = {
694
- DEFAULT: 0,
695
- NO_BORDER: 0,
696
- ROUNDED_RECT: 1,
697
- RECT: 2,
698
- CIRCLE: 3,
699
- CLOUD: 4,
700
- BANG: 5,
701
- HEXAGON: 6
702
- }, w = class {
703
- constructor() {
704
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = C, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
705
- }
706
- static {
707
- t(this, "MindmapDB");
708
- }
709
- clear() {
710
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
711
- }
712
- getParent(e) {
713
- for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
714
- return null;
715
- }
716
- getMindmap() {
717
- return this.nodes.length > 0 ? this.nodes[0] : null;
718
- }
719
- addNode(t, n, r, a) {
720
- e.info("addNode", t, n, r, a);
721
- let o = !1;
722
- this.nodes.length === 0 ? (this.baseLevel = t, t = 0, o = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, o = !1);
723
- let s = c(), u = s.mindmap?.padding ?? i.mindmap.padding;
724
- switch (a) {
725
- case this.nodeType.ROUNDED_RECT:
726
- case this.nodeType.RECT:
727
- case this.nodeType.HEXAGON: u *= 2;
728
- }
729
- let d = {
730
- id: this.count++,
731
- nodeId: l(n, s),
732
- level: t,
733
- descr: l(r, s),
734
- type: a,
735
- children: [],
736
- width: s.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
737
- padding: u,
738
- isRoot: o
739
- }, f = this.getParent(t);
740
- if (f) f.children.push(d), this.nodes.push(d);
741
- else if (o) this.nodes.push(d);
742
- else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
743
- }
744
- getType(t, n) {
745
- switch (e.debug("In get type", t, n), t) {
746
- case "[": return this.nodeType.RECT;
747
- case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
748
- case "((": return this.nodeType.CIRCLE;
749
- case ")": return this.nodeType.CLOUD;
750
- case "))": return this.nodeType.BANG;
751
- case "{{": return this.nodeType.HEXAGON;
752
- default: return this.nodeType.DEFAULT;
753
- }
754
- }
755
- setElementForId(e, t) {
756
- this.elements[e] = t;
757
- }
758
- getElementById(e) {
759
- return this.elements[e];
760
- }
761
- decorateNode(e) {
762
- if (!e) return;
763
- let t = c(), n = this.nodes[this.nodes.length - 1];
764
- e.icon && (n.icon = l(e.icon, t)), e.class && (n.class = l(e.class, t));
765
- }
766
- type2Str(e) {
767
- switch (e) {
768
- case this.nodeType.DEFAULT: return "no-border";
769
- case this.nodeType.RECT: return "rect";
770
- case this.nodeType.ROUNDED_RECT: return "rounded-rect";
771
- case this.nodeType.CIRCLE: return "circle";
772
- case this.nodeType.CLOUD: return "cloud";
773
- case this.nodeType.BANG: return "bang";
774
- case this.nodeType.HEXAGON: return "hexgon";
775
- default: return "no-border";
776
- }
777
- }
778
- assignSections(e, t) {
779
- if (e.section = e.level === 0 ? void 0 : t, e.children) for (let [n, r] of e.children.entries()) {
780
- let i = e.level === 0 ? n % (S - 1) : t;
781
- this.assignSections(r, i);
782
- }
783
- }
784
- flattenNodes(e, n) {
785
- let r = c(), i = ["mindmap-node"];
786
- e.isRoot === !0 ? i.push("section-root", "section--1") : e.section !== void 0 && i.push(`section-${e.section}`), e.class && i.push(e.class);
787
- let a = i.join(" "), o = /* @__PURE__ */ t((e) => {
788
- let t = (r.theme?.toLowerCase() ?? "").includes("redux");
789
- switch (e) {
790
- case C.CIRCLE: return "mindmapCircle";
791
- case C.RECT: return "rect";
792
- case C.ROUNDED_RECT: return "rounded";
793
- case C.CLOUD: return "cloud";
794
- case C.BANG: return "bang";
795
- case C.HEXAGON: return "hexagon";
796
- case C.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
797
- case C.NO_BORDER:
798
- default: return "rect";
799
- }
800
- }, "getShapeFromType"), s = {
801
- id: e.id.toString(),
802
- domId: "node_" + e.id.toString(),
803
- label: e.descr,
804
- labelType: "markdown",
805
- isGroup: !1,
806
- shape: o(e.type),
807
- width: e.width,
808
- height: e.height ?? 0,
809
- padding: e.padding,
810
- cssClasses: a,
811
- cssStyles: [],
812
- look: r.look,
813
- icon: e.icon,
814
- x: e.x,
815
- y: e.y,
816
- level: e.level,
817
- nodeId: e.nodeId,
818
- type: e.type,
819
- section: e.section
820
- };
821
- if (n.push(s), e.children) for (let t of e.children) this.flattenNodes(t, n);
822
- }
823
- generateEdges(e, t) {
824
- if (!e.children) return;
825
- let n = c();
826
- for (let r of e.children) {
827
- let i = "edge";
828
- r.section !== void 0 && (i += ` section-edge-${r.section}`);
829
- let a = e.level + 1;
830
- i += ` edge-depth-${a}`;
831
- let o = {
832
- id: `edge_${e.id}_${r.id}`,
833
- start: e.id.toString(),
834
- end: r.id.toString(),
835
- type: "normal",
836
- curve: "basis",
837
- thickness: "normal",
838
- look: n.look,
839
- classes: i,
840
- depth: e.level,
841
- section: r.section
842
- };
843
- t.push(o), this.generateEdges(r, t);
844
- }
845
- }
846
- getData() {
847
- let t = this.getMindmap(), n = c(), r = a().layout !== void 0, i = n;
848
- if (r || (i.layout = "cose-bilkent"), !t) return {
849
- nodes: [],
850
- edges: [],
851
- config: i
852
- };
853
- e.debug("getData: mindmapRoot", t, n), this.assignSections(t);
854
- let o = [], s = [];
855
- this.flattenNodes(t, o), this.generateEdges(t, s), e.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);
856
- let l = /* @__PURE__ */ new Map();
857
- for (let e of o) l.set(e.id, {
858
- shape: e.shape,
859
- width: e.width,
860
- height: e.height,
861
- padding: e.padding
862
- });
863
- return {
864
- nodes: o,
865
- edges: s,
866
- config: i,
867
- rootNode: t,
868
- markers: ["point"],
869
- direction: "TB",
870
- nodeSpacing: 50,
871
- rankSpacing: 50,
872
- shapes: Object.fromEntries(l),
873
- type: "mindmap",
874
- diagramId: "mindmap-" + v()
875
- };
876
- }
877
- getLogger() {
878
- return e;
879
- }
880
- }, T = { draw: /* @__PURE__ */ t(async (t, r, a, o) => {
881
- e.debug("Rendering mindmap diagram\n" + t);
882
- let s = o.db, c = s.getData(), l = f(r, c.config.securityLevel);
883
- if (c.type = o.type, c.layoutAlgorithm = d(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = r, !s.getMindmap()) return;
884
- c.nodes.forEach((e) => {
885
- e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
886
- }), await u(c, l);
887
- let { themeVariables: m } = n(), { useGradient: h, gradientStart: g, gradientStop: _ } = m;
888
- if (h && g && _) {
889
- let e = l.attr("id"), t = l.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
890
- t.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", _).attr("stop-opacity", 1);
891
- }
892
- p(l, c.config.mindmap?.padding ?? i.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? i.mindmap.useMaxWidth);
893
- }, "draw") }, E = /* @__PURE__ */ t((e) => {
894
- let { theme: t, look: n } = e, i = "";
895
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], o(e["lineColor" + t]) ? e["lineColor" + t] = s(e["lineColor" + t], 20) : e["lineColor" + t] = r(e["lineColor" + t], 20);
896
- for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
897
- let a = "" + (n === "neo" ? Math.max(10 - (r - 1) * 2, 2) : 17 - 3 * r);
898
- i += `
899
- .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
900
- fill: ${e["cScale" + r]};
901
- }
902
- .section-${r - 1} text {
903
- fill: ${e["cScaleLabel" + r]};
904
- }
905
- .section-${r - 1} span {
906
- color: ${e["cScaleLabel" + r]};
907
- }
908
- .node-icon-${r - 1} {
909
- font-size: 40px;
910
- color: ${e["cScaleLabel" + r]};
911
- }
912
- .section-edge-${r - 1}{
913
- stroke: ${e["cScale" + r]};
914
- }
915
- .edge-depth-${r - 1}{
916
- stroke-width: ${a};
917
- }
918
- .section-${r - 1} line {
919
- stroke: ${e["cScaleInv" + r]} ;
920
- stroke-width: 3;
921
- }
922
-
923
- .disabled, .disabled circle, .disabled text {
924
- fill: lightgray;
925
- }
926
- .disabled text {
927
- fill: #efefef;
928
- }
929
- [data-look="neo"].mindmap-node.section-${r - 1} rect, [data-look="neo"].mindmap-node.section-${r - 1} path, [data-look="neo"].mindmap-node.section-${r - 1} circle, [data-look="neo"].mindmap-node.section-${r - 1} polygon {
930
- fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + r]};
931
- stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + r]};
932
- stroke-width: ${e.strokeWidth ?? 2}px;
933
- }
934
- [data-look="neo"].section-edge-${r - 1}{
935
- stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + r]};
936
- }
937
- [data-look="neo"].mindmap-node.section-${r - 1} text {
938
- fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : r)]};
939
- }
940
- `;
941
- }
942
- return i;
943
- }, "genSections"), D = /* @__PURE__ */ t((e, t, n) => {
944
- let r = "";
945
- for (let i = 0; i < e; i++) r += `
946
- [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
947
- stroke: url(${t}-gradient);
948
- fill: ${n};
949
- }
950
- .section-${i - 1} line {
951
- stroke-width: 0;
952
- }`;
953
- return r;
954
- }, "genGradient"), O = {
955
- get db() {
956
- return new w();
957
- },
958
- renderer: T,
959
- parser: x,
960
- styles: /* @__PURE__ */ t((e) => {
961
- let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
962
- return `
963
- .edge {
964
- stroke-width: 3;
965
- }
966
- ${E(e)}
967
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
968
- fill: ${e.git0};
969
- }
970
- .section-root text {
971
- fill: ${e.gitBranchLabel0};
972
- }
973
- .section-root span {
974
- color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
975
- }
976
- .icon-container {
977
- height:100%;
978
- display: flex;
979
- justify-content: center;
980
- align-items: center;
981
- }
982
- .edge {
983
- fill: none;
984
- }
985
- .mindmap-node-label {
986
- dy: 1em;
987
- alignment-baseline: middle;
988
- text-anchor: middle;
989
- dominant-baseline: middle;
990
- text-align: center;
991
- }
992
- [data-look="neo"].mindmap-node {
993
- filter: ${r};
994
- }
995
- [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
996
- fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
997
- }
998
- [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
999
- fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1000
- }
1001
- ${e.useGradient && n && e.mainBkg ? D(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1002
- `;
1003
- }, "getStyles")
1004
- };
1005
- //#endregion
1006
- export { O as diagram };