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,976 +0,0 @@
1
- import { m as e } from "./src-D_hsMyeP.mjs";
2
- import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { J as n, et as r, f as i, rt as a, tt as o, x as s, z as c } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
5
- import { t as l } from "./chunk-CLGD4ZFX-DBkwyMMv.mjs";
6
- import "./chunk-P2QGCYS3-6q3AXPt5.mjs";
7
- import "./chunk-PWAF6VOD-BYG76tEe.mjs";
8
- import "./chunk-GMAD6QVW-BZeZ4fdb.mjs";
9
- import "./chunk-4HAMMTFA-VgWPe1ng.mjs";
10
- import { i as u, r as d } from "./chunk-GVQU2GXP-B1D3J05J.mjs";
11
- import { n as f } from "./chunk-L3NEJ4N5-lal8wUID.mjs";
12
- import { n as p, t as m } from "./chunk-LNGE3PJU-DJ9JuXV6.mjs";
13
- import { t as h } from "./chunk-5VM5RSS4-TqxtqrwE.mjs";
14
- //#region node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UXKFOSKX.mjs
15
- var g = (function() {
16
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
17
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
18
- return n;
19
- }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
20
- 6,
21
- 7,
22
- 8
23
- ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
24
- 6,
25
- 7,
26
- 11
27
- ], m = [1, 31], h = [
28
- 6,
29
- 7,
30
- 11,
31
- 24
32
- ], g = [
33
- 1,
34
- 6,
35
- 13,
36
- 16,
37
- 17,
38
- 20,
39
- 23
40
- ], _ = [1, 35], v = [1, 36], y = [
41
- 1,
42
- 6,
43
- 7,
44
- 11,
45
- 13,
46
- 16,
47
- 17,
48
- 20,
49
- 23
50
- ], b = [1, 38], x = {
51
- trace: /* @__PURE__ */ t(function() {}, "trace"),
52
- yy: {},
53
- symbols_: {
54
- error: 2,
55
- start: 3,
56
- mindMap: 4,
57
- spaceLines: 5,
58
- SPACELINE: 6,
59
- NL: 7,
60
- KANBAN: 8,
61
- document: 9,
62
- stop: 10,
63
- EOF: 11,
64
- statement: 12,
65
- SPACELIST: 13,
66
- node: 14,
67
- shapeData: 15,
68
- ICON: 16,
69
- CLASS: 17,
70
- nodeWithId: 18,
71
- nodeWithoutId: 19,
72
- NODE_DSTART: 20,
73
- NODE_DESCR: 21,
74
- NODE_DEND: 22,
75
- NODE_ID: 23,
76
- SHAPE_DATA: 24,
77
- $accept: 0,
78
- $end: 1
79
- },
80
- terminals_: {
81
- 2: "error",
82
- 6: "SPACELINE",
83
- 7: "NL",
84
- 8: "KANBAN",
85
- 11: "EOF",
86
- 13: "SPACELIST",
87
- 16: "ICON",
88
- 17: "CLASS",
89
- 20: "NODE_DSTART",
90
- 21: "NODE_DESCR",
91
- 22: "NODE_DEND",
92
- 23: "NODE_ID",
93
- 24: "SHAPE_DATA"
94
- },
95
- productions_: [
96
- 0,
97
- [3, 1],
98
- [3, 2],
99
- [5, 1],
100
- [5, 2],
101
- [5, 2],
102
- [4, 2],
103
- [4, 3],
104
- [10, 1],
105
- [10, 1],
106
- [10, 1],
107
- [10, 2],
108
- [10, 2],
109
- [9, 3],
110
- [9, 2],
111
- [12, 3],
112
- [12, 2],
113
- [12, 2],
114
- [12, 2],
115
- [12, 1],
116
- [12, 2],
117
- [12, 1],
118
- [12, 1],
119
- [12, 1],
120
- [12, 1],
121
- [14, 1],
122
- [14, 1],
123
- [19, 3],
124
- [18, 1],
125
- [18, 4],
126
- [15, 2],
127
- [15, 1]
128
- ],
129
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
130
- var s = a.length - 1;
131
- switch (i) {
132
- case 6:
133
- case 7: return r;
134
- case 8:
135
- r.getLogger().trace("Stop NL ");
136
- break;
137
- case 9:
138
- r.getLogger().trace("Stop EOF ");
139
- break;
140
- case 11:
141
- r.getLogger().trace("Stop NL2 ");
142
- break;
143
- case 12:
144
- r.getLogger().trace("Stop EOF2 ");
145
- break;
146
- case 15:
147
- r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
148
- break;
149
- case 16:
150
- r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
151
- break;
152
- case 17:
153
- r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
154
- break;
155
- case 18:
156
- case 23:
157
- r.decorateNode({ class: a[s] });
158
- break;
159
- case 19:
160
- r.getLogger().trace("SPACELIST");
161
- break;
162
- case 20:
163
- r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
164
- break;
165
- case 21:
166
- r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
167
- break;
168
- case 22:
169
- r.decorateNode({ icon: a[s] });
170
- break;
171
- case 27:
172
- r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
173
- id: a[s - 1],
174
- descr: a[s - 1],
175
- type: r.getType(a[s - 2], a[s])
176
- };
177
- break;
178
- case 28:
179
- this.$ = {
180
- id: a[s],
181
- descr: a[s],
182
- type: 0
183
- };
184
- break;
185
- case 29:
186
- r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
187
- id: a[s - 3],
188
- descr: a[s - 1],
189
- type: r.getType(a[s - 2], a[s])
190
- };
191
- break;
192
- case 30:
193
- this.$ = a[s - 1] + a[s];
194
- break;
195
- case 31: this.$ = a[s];
196
- }
197
- }, "anonymous"),
198
- table: [
199
- {
200
- 3: 1,
201
- 4: 2,
202
- 5: 3,
203
- 6: [1, 5],
204
- 8: n
205
- },
206
- { 1: [3] },
207
- { 1: [2, 1] },
208
- {
209
- 4: 6,
210
- 6: [1, 7],
211
- 7: [1, 8],
212
- 8: n
213
- },
214
- {
215
- 6: r,
216
- 7: [1, 10],
217
- 9: 9,
218
- 12: 11,
219
- 13: i,
220
- 14: 14,
221
- 16: a,
222
- 17: o,
223
- 18: 17,
224
- 19: 18,
225
- 20: s,
226
- 23: c
227
- },
228
- e(l, [2, 3]),
229
- { 1: [2, 2] },
230
- e(l, [2, 4]),
231
- e(l, [2, 5]),
232
- {
233
- 1: [2, 6],
234
- 6: r,
235
- 12: 21,
236
- 13: i,
237
- 14: 14,
238
- 16: a,
239
- 17: o,
240
- 18: 17,
241
- 19: 18,
242
- 20: s,
243
- 23: c
244
- },
245
- {
246
- 6: r,
247
- 9: 22,
248
- 12: 11,
249
- 13: i,
250
- 14: 14,
251
- 16: a,
252
- 17: o,
253
- 18: 17,
254
- 19: 18,
255
- 20: s,
256
- 23: c
257
- },
258
- {
259
- 6: u,
260
- 7: d,
261
- 10: 23,
262
- 11: f
263
- },
264
- e(p, [2, 24], {
265
- 18: 17,
266
- 19: 18,
267
- 14: 27,
268
- 16: [1, 28],
269
- 17: [1, 29],
270
- 20: s,
271
- 23: c
272
- }),
273
- e(p, [2, 19]),
274
- e(p, [2, 21], {
275
- 15: 30,
276
- 24: m
277
- }),
278
- e(p, [2, 22]),
279
- e(p, [2, 23]),
280
- e(h, [2, 25]),
281
- e(h, [2, 26]),
282
- e(h, [2, 28], { 20: [1, 32] }),
283
- { 21: [1, 33] },
284
- {
285
- 6: u,
286
- 7: d,
287
- 10: 34,
288
- 11: f
289
- },
290
- {
291
- 1: [2, 7],
292
- 6: r,
293
- 12: 21,
294
- 13: i,
295
- 14: 14,
296
- 16: a,
297
- 17: o,
298
- 18: 17,
299
- 19: 18,
300
- 20: s,
301
- 23: c
302
- },
303
- e(g, [2, 14], {
304
- 7: _,
305
- 11: v
306
- }),
307
- e(y, [2, 8]),
308
- e(y, [2, 9]),
309
- e(y, [2, 10]),
310
- e(p, [2, 16], {
311
- 15: 37,
312
- 24: m
313
- }),
314
- e(p, [2, 17]),
315
- e(p, [2, 18]),
316
- e(p, [2, 20], { 24: b }),
317
- e(h, [2, 31]),
318
- { 21: [1, 39] },
319
- { 22: [1, 40] },
320
- e(g, [2, 13], {
321
- 7: _,
322
- 11: v
323
- }),
324
- e(y, [2, 11]),
325
- e(y, [2, 12]),
326
- e(p, [2, 15], { 24: b }),
327
- e(h, [2, 30]),
328
- { 22: [1, 41] },
329
- e(h, [2, 27]),
330
- e(h, [2, 29])
331
- ],
332
- defaultActions: {
333
- 2: [2, 1],
334
- 6: [2, 2]
335
- },
336
- parseError: /* @__PURE__ */ t(function(e, t) {
337
- if (t.recoverable) this.trace(e);
338
- else {
339
- var n = Error(e);
340
- throw n.hash = t, n;
341
- }
342
- }, "parseError"),
343
- parse: /* @__PURE__ */ t(function(e) {
344
- 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: {} };
345
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
346
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
347
- var v = h.yylloc;
348
- o.push(v);
349
- var y = h.options && h.options.ranges;
350
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
351
- function b(e) {
352
- r.length -= 2 * e, a.length -= e, o.length -= e;
353
- }
354
- t(b, "popStack");
355
- function x() {
356
- var e = i.pop() || h.lex() || p;
357
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
358
- }
359
- t(x, "lex");
360
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
361
- 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]) {
362
- var M = "";
363
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
364
- 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, {
365
- text: h.match,
366
- token: this.terminals_[S] || S,
367
- line: h.yylineno,
368
- loc: v,
369
- expected: j
370
- });
371
- }
372
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
373
- switch (T[0]) {
374
- case 1:
375
- 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--);
376
- break;
377
- case 2:
378
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
379
- first_line: o[o.length - (k || 1)].first_line,
380
- last_line: o[o.length - 1].last_line,
381
- first_column: o[o.length - (k || 1)].first_column,
382
- last_column: o[o.length - 1].last_column
383
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
384
- c,
385
- u,
386
- l,
387
- g.yy,
388
- T[1],
389
- a,
390
- o
391
- ].concat(m)), E !== void 0) return E;
392
- 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);
393
- break;
394
- case 3: return !0;
395
- }
396
- }
397
- return !0;
398
- }, "parse")
399
- };
400
- x.lexer = /* @__PURE__ */ (function() {
401
- return {
402
- EOF: 1,
403
- parseError: /* @__PURE__ */ t(function(e, t) {
404
- if (this.yy.parser) this.yy.parser.parseError(e, t);
405
- else throw Error(e);
406
- }, "parseError"),
407
- setInput: /* @__PURE__ */ t(function(e, t) {
408
- 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 = {
409
- first_line: 1,
410
- first_column: 0,
411
- last_line: 1,
412
- last_column: 0
413
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
414
- }, "setInput"),
415
- input: /* @__PURE__ */ t(function() {
416
- var e = this._input[0];
417
- 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;
418
- }, "input"),
419
- unput: /* @__PURE__ */ t(function(e) {
420
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
421
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
422
- var r = this.match.split(/(?:\r\n?|\n)/g);
423
- 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);
424
- var i = this.yylloc.range;
425
- return this.yylloc = {
426
- first_line: this.yylloc.first_line,
427
- last_line: this.yylineno + 1,
428
- first_column: this.yylloc.first_column,
429
- 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
430
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
431
- }, "unput"),
432
- more: /* @__PURE__ */ t(function() {
433
- return this._more = !0, this;
434
- }, "more"),
435
- reject: /* @__PURE__ */ t(function() {
436
- if (this.options.backtrack_lexer) this._backtrack = !0;
437
- 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(), {
438
- text: "",
439
- token: null,
440
- line: this.yylineno
441
- });
442
- return this;
443
- }, "reject"),
444
- less: /* @__PURE__ */ t(function(e) {
445
- this.unput(this.match.slice(e));
446
- }, "less"),
447
- pastInput: /* @__PURE__ */ t(function() {
448
- var e = this.matched.substr(0, this.matched.length - this.match.length);
449
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
450
- }, "pastInput"),
451
- upcomingInput: /* @__PURE__ */ t(function() {
452
- var e = this.match;
453
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
454
- }, "upcomingInput"),
455
- showPosition: /* @__PURE__ */ t(function() {
456
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
457
- return e + this.upcomingInput() + "\n" + t + "^";
458
- }, "showPosition"),
459
- test_match: /* @__PURE__ */ t(function(e, t) {
460
- var n, r, i;
461
- if (this.options.backtrack_lexer && (i = {
462
- yylineno: this.yylineno,
463
- yylloc: {
464
- first_line: this.yylloc.first_line,
465
- last_line: this.last_line,
466
- first_column: this.yylloc.first_column,
467
- last_column: this.yylloc.last_column
468
- },
469
- yytext: this.yytext,
470
- match: this.match,
471
- matches: this.matches,
472
- matched: this.matched,
473
- yyleng: this.yyleng,
474
- offset: this.offset,
475
- _more: this._more,
476
- _input: this._input,
477
- yy: this.yy,
478
- conditionStack: this.conditionStack.slice(0),
479
- done: this.done
480
- }, 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 = {
481
- first_line: this.yylloc.last_line,
482
- last_line: this.yylineno + 1,
483
- first_column: this.yylloc.last_column,
484
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
485
- }, 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;
486
- if (this._backtrack) {
487
- for (var a in i) this[a] = i[a];
488
- return !1;
489
- }
490
- return !1;
491
- }, "test_match"),
492
- next: /* @__PURE__ */ t(function() {
493
- if (this.done) return this.EOF;
494
- this._input || (this.done = !0);
495
- var e, t, n, r;
496
- this._more || (this.yytext = "", this.match = "");
497
- 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)) {
498
- if (t = n, r = a, this.options.backtrack_lexer) {
499
- if (e = this.test_match(n, i[a]), e !== !1) return e;
500
- if (this._backtrack) {
501
- t = !1;
502
- continue;
503
- }
504
- return !1;
505
- }
506
- if (!this.options.flex) break;
507
- }
508
- 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(), {
509
- text: "",
510
- token: null,
511
- line: this.yylineno
512
- });
513
- }, "next"),
514
- lex: /* @__PURE__ */ t(function() {
515
- return this.next() || this.lex();
516
- }, "lex"),
517
- begin: /* @__PURE__ */ t(function(e) {
518
- this.conditionStack.push(e);
519
- }, "begin"),
520
- popState: /* @__PURE__ */ t(function() {
521
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
522
- }, "popState"),
523
- _currentRules: /* @__PURE__ */ t(function() {
524
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
525
- }, "_currentRules"),
526
- topState: /* @__PURE__ */ t(function(e) {
527
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
528
- }, "topState"),
529
- pushState: /* @__PURE__ */ t(function(e) {
530
- this.begin(e);
531
- }, "pushState"),
532
- stateStackSize: /* @__PURE__ */ t(function() {
533
- return this.conditionStack.length;
534
- }, "stateStackSize"),
535
- options: { "case-insensitive": !0 },
536
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
537
- switch (n) {
538
- case 0: return this.pushState("shapeData"), t.yytext = "", 24;
539
- case 1: return this.pushState("shapeDataStr"), 24;
540
- case 2: return this.popState(), 24;
541
- case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
542
- case 4: return 24;
543
- case 5:
544
- this.popState();
545
- break;
546
- case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
547
- case 7: return 8;
548
- case 8:
549
- this.begin("CLASS");
550
- break;
551
- case 9: return this.popState(), 17;
552
- case 10:
553
- this.popState();
554
- break;
555
- case 11:
556
- e.getLogger().trace("Begin icon"), this.begin("ICON");
557
- break;
558
- case 12: return e.getLogger().trace("SPACELINE"), 6;
559
- case 13: return 7;
560
- case 14: return 16;
561
- case 15:
562
- e.getLogger().trace("end icon"), this.popState();
563
- break;
564
- case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
565
- case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
566
- case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
567
- case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
568
- case 20: return this.begin("NODE"), 20;
569
- case 21: return this.begin("NODE"), 20;
570
- case 22: return this.begin("NODE"), 20;
571
- case 23: return this.begin("NODE"), 20;
572
- case 24: return 13;
573
- case 25: return 23;
574
- case 26: return 11;
575
- case 27:
576
- this.begin("NSTR2");
577
- break;
578
- case 28: return "NODE_DESCR";
579
- case 29:
580
- this.popState();
581
- break;
582
- case 30:
583
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
584
- break;
585
- case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
586
- case 32:
587
- this.popState();
588
- break;
589
- case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
590
- case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
591
- case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
592
- case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
593
- case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
594
- case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
595
- case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
596
- case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
597
- case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
598
- case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
599
- }
600
- }, "anonymous"),
601
- rules: [
602
- /^(?:@\{)/i,
603
- /^(?:["])/i,
604
- /^(?:["])/i,
605
- /^(?:[^\"]+)/i,
606
- /^(?:[^}^"]+)/i,
607
- /^(?:\})/i,
608
- /^(?:\s*%%.*)/i,
609
- /^(?:kanban\b)/i,
610
- /^(?::::)/i,
611
- /^(?:.+)/i,
612
- /^(?:\n)/i,
613
- /^(?:::icon\()/i,
614
- /^(?:[\s]+[\n])/i,
615
- /^(?:[\n]+)/i,
616
- /^(?:[^\)]+)/i,
617
- /^(?:\))/i,
618
- /^(?:-\))/i,
619
- /^(?:\(-)/i,
620
- /^(?:\)\))/i,
621
- /^(?:\))/i,
622
- /^(?:\(\()/i,
623
- /^(?:\{\{)/i,
624
- /^(?:\()/i,
625
- /^(?:\[)/i,
626
- /^(?:[\s]+)/i,
627
- /^(?:[^\(\[\n\)\{\}@]+)/i,
628
- /^(?:$)/i,
629
- /^(?:["][`])/i,
630
- /^(?:[^`"]+)/i,
631
- /^(?:[`]["])/i,
632
- /^(?:["])/i,
633
- /^(?:[^"]+)/i,
634
- /^(?:["])/i,
635
- /^(?:[\)]\))/i,
636
- /^(?:[\)])/i,
637
- /^(?:[\]])/i,
638
- /^(?:\}\})/i,
639
- /^(?:\(-)/i,
640
- /^(?:-\))/i,
641
- /^(?:\(\()/i,
642
- /^(?:\()/i,
643
- /^(?:[^\)\]\(\}]+)/i,
644
- /^(?:.+(?!\(\())/i
645
- ],
646
- conditions: {
647
- shapeDataEndBracket: {
648
- rules: [],
649
- inclusive: !1
650
- },
651
- shapeDataStr: {
652
- rules: [2, 3],
653
- inclusive: !1
654
- },
655
- shapeData: {
656
- rules: [
657
- 1,
658
- 4,
659
- 5
660
- ],
661
- inclusive: !1
662
- },
663
- CLASS: {
664
- rules: [9, 10],
665
- inclusive: !1
666
- },
667
- ICON: {
668
- rules: [14, 15],
669
- inclusive: !1
670
- },
671
- NSTR2: {
672
- rules: [28, 29],
673
- inclusive: !1
674
- },
675
- NSTR: {
676
- rules: [31, 32],
677
- inclusive: !1
678
- },
679
- NODE: {
680
- rules: [
681
- 27,
682
- 30,
683
- 33,
684
- 34,
685
- 35,
686
- 36,
687
- 37,
688
- 38,
689
- 39,
690
- 40,
691
- 41,
692
- 42
693
- ],
694
- inclusive: !1
695
- },
696
- INITIAL: {
697
- rules: [
698
- 0,
699
- 6,
700
- 7,
701
- 8,
702
- 11,
703
- 12,
704
- 13,
705
- 16,
706
- 17,
707
- 18,
708
- 19,
709
- 20,
710
- 21,
711
- 22,
712
- 23,
713
- 24,
714
- 25,
715
- 26
716
- ],
717
- inclusive: !0
718
- }
719
- }
720
- };
721
- })();
722
- function S() {
723
- this.yy = {};
724
- }
725
- return t(S, "Parser"), S.prototype = x, x.Parser = S, new S();
726
- })();
727
- g.parser = g;
728
- var _ = g, v = [], y = [], b = 0, x = {}, S = /* @__PURE__ */ t(() => {
729
- v = [], y = [], b = 0, x = {};
730
- }, "clear"), C = /* @__PURE__ */ t((e) => {
731
- if (v.length === 0) return null;
732
- let t = v[0].level, n = null;
733
- for (let e = v.length - 1; e >= 0; e--) if (v[e].level === t && !n && (n = v[e]), v[e].level < t) throw Error("Items without section detected, found section (\"" + v[e].label + "\")");
734
- return e === n?.level ? null : n;
735
- }, "getSection"), w = /* @__PURE__ */ t(function() {
736
- return y;
737
- }, "getSections"), T = /* @__PURE__ */ t(function() {
738
- let e = [], t = [], n = w(), r = s();
739
- for (let e of n) {
740
- let n = {
741
- id: e.id,
742
- label: c(e.label ?? "", r),
743
- labelType: "markdown",
744
- isGroup: !0,
745
- ticket: e.ticket,
746
- shape: "kanbanSection",
747
- level: e.level,
748
- look: r.look
749
- };
750
- t.push(n);
751
- let i = v.filter((t) => t.parentId === e.id);
752
- for (let n of i) {
753
- let i = {
754
- id: n.id,
755
- parentId: e.id,
756
- label: c(n.label ?? "", r),
757
- labelType: "markdown",
758
- isGroup: !1,
759
- ticket: n?.ticket,
760
- priority: n?.priority,
761
- assigned: n?.assigned,
762
- icon: n?.icon,
763
- shape: "kanbanItem",
764
- level: n.level,
765
- rx: 5,
766
- ry: 5,
767
- cssStyles: ["text-align: left"]
768
- };
769
- t.push(i);
770
- }
771
- }
772
- return {
773
- nodes: t,
774
- edges: e,
775
- other: {},
776
- config: s()
777
- };
778
- }, "getData"), E = /* @__PURE__ */ t((e, t, n, r, a) => {
779
- let o = s(), l = o.mindmap?.padding ?? i.mindmap.padding;
780
- switch (r) {
781
- case D.ROUNDED_RECT:
782
- case D.RECT:
783
- case D.HEXAGON: l *= 2;
784
- }
785
- let u = {
786
- id: c(t, o) || "kbn" + b++,
787
- level: e,
788
- label: c(n, o),
789
- width: o.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
790
- padding: l,
791
- isGroup: !1
792
- };
793
- if (a !== void 0) {
794
- let e;
795
- e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
796
- let t = p(e, { schema: m });
797
- if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
798
- t?.shape && t.shape === "kanbanItem" && (u.shape = t?.shape), t?.label && (u.label = t?.label), t?.icon && (u.icon = t?.icon.toString()), t?.assigned && (u.assigned = t?.assigned.toString()), t?.ticket && (u.ticket = t?.ticket.toString()), t?.priority && (u.priority = t?.priority);
799
- }
800
- let d = C(e);
801
- d ? u.parentId = d.id || "kbn" + b++ : y.push(u), v.push(u);
802
- }, "addNode"), D = {
803
- DEFAULT: 0,
804
- NO_BORDER: 0,
805
- ROUNDED_RECT: 1,
806
- RECT: 2,
807
- CIRCLE: 3,
808
- CLOUD: 4,
809
- BANG: 5,
810
- HEXAGON: 6
811
- }, O = {
812
- clear: S,
813
- addNode: E,
814
- getSections: w,
815
- getData: T,
816
- nodeType: D,
817
- getType: /* @__PURE__ */ t((t, n) => {
818
- switch (e.debug("In get type", t, n), t) {
819
- case "[": return D.RECT;
820
- case "(": return n === ")" ? D.ROUNDED_RECT : D.CLOUD;
821
- case "((": return D.CIRCLE;
822
- case ")": return D.CLOUD;
823
- case "))": return D.BANG;
824
- case "{{": return D.HEXAGON;
825
- default: return D.DEFAULT;
826
- }
827
- }, "getType"),
828
- setElementForId: /* @__PURE__ */ t((e, t) => {
829
- x[e] = t;
830
- }, "setElementForId"),
831
- decorateNode: /* @__PURE__ */ t((e) => {
832
- if (!e) return;
833
- let t = s(), n = v[v.length - 1];
834
- e.icon && (n.icon = c(e.icon, t)), e.class && (n.cssClasses = c(e.class, t));
835
- }, "decorateNode"),
836
- type2Str: /* @__PURE__ */ t((e) => {
837
- switch (e) {
838
- case D.DEFAULT: return "no-border";
839
- case D.RECT: return "rect";
840
- case D.ROUNDED_RECT: return "rounded-rect";
841
- case D.CIRCLE: return "circle";
842
- case D.CLOUD: return "cloud";
843
- case D.BANG: return "bang";
844
- case D.HEXAGON: return "hexgon";
845
- default: return "no-border";
846
- }
847
- }, "type2Str"),
848
- getLogger: /* @__PURE__ */ t(() => e, "getLogger"),
849
- getElementById: /* @__PURE__ */ t((e) => x[e], "getElementById")
850
- }, k = { draw: /* @__PURE__ */ t(async (t, r, a, o) => {
851
- e.debug("Rendering kanban diagram\n" + t);
852
- let c = o.db.getData(), p = s();
853
- p.htmlLabels = !1;
854
- let m = l(r);
855
- for (let e of c.nodes) e.domId = `${r}-${e.id}`;
856
- let h = m.append("g");
857
- h.attr("class", "sections");
858
- let g = m.append("g");
859
- g.attr("class", "items");
860
- let _ = c.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
861
- for (let e of _) {
862
- let t = p?.kanban?.sectionWidth || 200;
863
- v += 1, e.x = t * v + (v - 1) * 10 / 2, e.width = t, e.y = 0, e.height = t * 3, e.rx = 5, e.ry = 5, e.cssClasses = e.cssClasses + " section-" + v;
864
- let n = await f(h, e);
865
- b = Math.max(b, n?.labelBBox?.height), y.push(n);
866
- }
867
- let x = 0;
868
- for (let e of _) {
869
- let t = y[x];
870
- x += 1;
871
- let n = p?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = c.nodes.filter((t) => t.parentId === e.id);
872
- for (let t of a) {
873
- if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
874
- t.x = e.x, t.width = n - 15;
875
- let r = (await d(g, t, { config: p })).node().getBBox();
876
- t.y = i + r.height / 2, await u(t), i = t.y + r.height / 2 + 5;
877
- }
878
- let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (b - 25);
879
- o.attr("height", s);
880
- }
881
- n(void 0, m, p.mindmap?.padding ?? i.kanban.padding, p.mindmap?.useMaxWidth ?? i.kanban.useMaxWidth);
882
- }, "draw") }, A = /* @__PURE__ */ t((e) => {
883
- let n = "";
884
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], a(e["lineColor" + t]) ? e["lineColor" + t] = o(e["lineColor" + t], 20) : e["lineColor" + t] = r(e["lineColor" + t], 20);
885
- let i = /* @__PURE__ */ t((t, n) => e.darkMode ? r(t, n) : o(t, n), "adjuster");
886
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
887
- let r = "" + (17 - 3 * t);
888
- n += `
889
- .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
890
- fill: ${i(e["cScale" + t], 10)};
891
- stroke: ${i(e["cScale" + t], 10)};
892
-
893
- }
894
- .section-${t - 1} text {
895
- fill: ${e["cScaleLabel" + t]};
896
- }
897
- .node-icon-${t - 1} {
898
- font-size: 40px;
899
- color: ${e["cScaleLabel" + t]};
900
- }
901
- .section-edge-${t - 1}{
902
- stroke: ${e["cScale" + t]};
903
- }
904
- .edge-depth-${t - 1}{
905
- stroke-width: ${r};
906
- }
907
- .section-${t - 1} line {
908
- stroke: ${e["cScaleInv" + t]} ;
909
- stroke-width: 3;
910
- }
911
-
912
- .disabled, .disabled circle, .disabled text {
913
- fill: lightgray;
914
- }
915
- .disabled text {
916
- fill: #efefef;
917
- }
918
-
919
- .node rect,
920
- .node circle,
921
- .node ellipse,
922
- .node polygon,
923
- .node path {
924
- fill: ${e.background};
925
- stroke: ${e.nodeBorder};
926
- stroke-width: 1px;
927
- }
928
-
929
- .kanban-ticket-link {
930
- fill: ${e.background};
931
- stroke: ${e.nodeBorder};
932
- text-decoration: underline;
933
- }
934
- `;
935
- }
936
- return n;
937
- }, "genSections"), j = {
938
- db: O,
939
- renderer: k,
940
- parser: _,
941
- styles: /* @__PURE__ */ t((e) => `
942
- .edge {
943
- stroke-width: 3;
944
- }
945
- ${A(e)}
946
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
947
- fill: ${e.git0};
948
- }
949
- .section-root text {
950
- fill: ${e.gitBranchLabel0};
951
- }
952
- .icon-container {
953
- height:100%;
954
- display: flex;
955
- justify-content: center;
956
- align-items: center;
957
- }
958
- .edge {
959
- fill: none;
960
- }
961
- .cluster-label, .label {
962
- color: ${e.textColor};
963
- fill: ${e.textColor};
964
- }
965
- .kanban-label {
966
- dy: 1em;
967
- alignment-baseline: middle;
968
- text-anchor: middle;
969
- dominant-baseline: middle;
970
- text-align: center;
971
- }
972
- ${h()}
973
- `, "getStyles")
974
- };
975
- //#endregion
976
- export { j as diagram };