@toimc/markdown 0.0.1 → 0.0.3

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 (284) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/{bash-Cm4CVo6v.js → bash-CB7IBf-7.js} +0 -1
  4. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  5. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  6. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  7. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  8. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  9. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  10. package/dist/css-BNAk6GUm.js +1 -0
  11. package/dist/css-CSuiabBd.cjs +1 -0
  12. package/dist/css-XGfOcSWP.js +2 -0
  13. package/dist/css-hISgu-gn.cjs +1 -0
  14. package/dist/{github-dark-C85MA6EW.js → github-dark-HjHQSF6c.js} +1 -2
  15. package/dist/{github-light-Dzg0sEwI.js → github-light-BS4bTP_A.js} +1 -2
  16. package/dist/{go-BEdBk4fh.js → go-DM5FkVJr.js} +0 -1
  17. package/dist/{html-CptZ4PZn.cjs → html-B74xNLl7.cjs} +1 -1
  18. package/dist/html-BfvIZbOy.cjs +1 -0
  19. package/dist/{html-Ctxsat8s.js → html-CPRPPrI5.js} +4 -5
  20. package/dist/html-CicqKfTr.js +1 -0
  21. package/dist/index.cjs +63 -61
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.mjs +6136 -5530
  25. package/dist/{javascript-Bk0bJ4nQ.js → javascript-BA7R0ZzU.js} +0 -1
  26. package/dist/javascript-D3uiIYXW.js +1 -0
  27. package/dist/json-BxN5JlXF.js +1 -0
  28. package/dist/{json-DFt_0dbD.js → json-DzGpsm5O.js} +0 -1
  29. package/dist/{jsx-BHkwOr0x.js → jsx-OQctj7OM.js} +0 -1
  30. package/dist/katex.css +1 -1
  31. package/dist/{markdown-nUtTZkU8.js → markdown-CNVZ8ok-.js} +0 -1
  32. package/dist/markdown.css +1 -1
  33. package/dist/{python-D0AaDoWC.js → python-BHaXfePs.js} +0 -1
  34. package/dist/rust-CbGaYpW0.js +2 -0
  35. package/dist/rust-rQqn7k8G.cjs +1 -0
  36. package/dist/{scss-CoGT9c_3.js → scss-C-hhxfjO.js} +2 -3
  37. package/dist/{scss-BY5CCWQ_.cjs → scss-t_1qNxqd.cjs} +1 -1
  38. package/dist/sql-DbsWPbnd.js +2 -0
  39. package/dist/sql-Dz4D2KVE.cjs +1 -0
  40. package/dist/{tsx-Cb6KMAZH.js → tsx-6akVe_f1.js} +0 -1
  41. package/dist/typescript-BV-txBTG.js +1 -0
  42. package/dist/{typescript-C4BXhs_3.js → typescript-DB3hlC91.js} +0 -1
  43. package/dist/utils/formula-guard.d.ts +13 -0
  44. package/dist/utils/formula-guard.d.ts.map +1 -0
  45. package/dist/utils/split-lines.d.ts +10 -0
  46. package/dist/utils/split-lines.d.ts.map +1 -0
  47. package/dist/{vue-DG6ivzcc.cjs → vue-Dsb5eNKu.cjs} +1 -1
  48. package/dist/{vue-DcTnNxpt.js → vue-wUrCEfyQ.js} +9 -10
  49. package/dist/{yaml-DXmkPuRD.js → yaml-CcAIbj8h.js} +0 -1
  50. package/package.json +21 -17
  51. package/dist/CodeBlock.test.d.ts +0 -2
  52. package/dist/CodeBlock.test.d.ts.map +0 -1
  53. package/dist/CodeBlock.vue.d.ts.map +0 -1
  54. package/dist/LatexBlock.test.d.ts +0 -2
  55. package/dist/LatexBlock.test.d.ts.map +0 -1
  56. package/dist/LatexBlock.vue.d.ts.map +0 -1
  57. package/dist/MarkdownRenderer.test.d.ts +0 -2
  58. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  59. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  60. package/dist/MermaidBlock.test.d.ts +0 -2
  61. package/dist/MermaidBlock.test.d.ts.map +0 -1
  62. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  63. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  64. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  65. package/dist/arc-CFxpoaLu.js +0 -82
  66. package/dist/arc-Dh2Zrypi.cjs +0 -1
  67. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  68. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  69. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  70. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  71. package/dist/array-CApNbSU9.js +0 -6
  72. package/dist/array-DZSRzHA_.cjs +0 -1
  73. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  74. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  75. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  76. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  77. package/dist/channel-CNZiSge7.cjs +0 -1
  78. package/dist/channel-CqlbSsMQ.js +0 -5
  79. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  80. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  81. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  82. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  83. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  84. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  85. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  86. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  87. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  88. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  89. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  90. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  91. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  92. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  93. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  94. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  95. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  96. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  97. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  98. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  99. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  100. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  101. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  102. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  103. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  104. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  105. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  106. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  107. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  108. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  109. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  110. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  111. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  112. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  113. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  114. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  115. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  116. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  117. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  118. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  119. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  120. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  121. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  122. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  123. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  124. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  125. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  126. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  127. package/dist/composables/useHighlighter.test.d.ts +0 -2
  128. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  129. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  130. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  131. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  132. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  133. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  134. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  135. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  136. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  137. package/dist/css-BbwcBM_4.js +0 -2
  138. package/dist/css-CEHhC-OC.cjs +0 -1
  139. package/dist/css-Ca3W2DHx.cjs +0 -1
  140. package/dist/css-HuzvwXs-.js +0 -3
  141. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  142. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  143. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  144. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  145. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  146. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  147. package/dist/dagre-DarAkhy1.cjs +0 -1
  148. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  149. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  150. package/dist/dagre-x4cMb6gU.js +0 -1699
  151. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  152. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  153. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  154. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  155. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  156. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  157. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  158. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  159. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  160. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  161. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  162. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  163. package/dist/dist-BP2me-br.js +0 -59
  164. package/dist/dist-Dwv2VYAL.cjs +0 -1
  165. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  166. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  167. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  168. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  169. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  170. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  171. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  172. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  173. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  174. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  175. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  176. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  177. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  178. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  179. package/dist/graphlib-BaETKKSa.cjs +0 -1
  180. package/dist/graphlib-DoD0LnUK.js +0 -1267
  181. package/dist/html-BH9giSUA.js +0 -2
  182. package/dist/html-DtqQp8LO.cjs +0 -1
  183. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  184. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  185. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  186. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  187. package/dist/init-BJdqMO10.cjs +0 -1
  188. package/dist/init-sjaVZO3f.js +0 -13
  189. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  190. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  191. package/dist/javascript--0qAxhnA.js +0 -2
  192. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  193. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  194. package/dist/json-DVwBUiza.js +0 -2
  195. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  196. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  197. package/dist/katex-BfeHGk4M.js +0 -21977
  198. package/dist/katex-CEF6MvLx.cjs +0 -257
  199. package/dist/line-8EHPtDZA.cjs +0 -1
  200. package/dist/line-BifI9Y7j.js +0 -34
  201. package/dist/linear-Nt9BuHfn.cjs +0 -1
  202. package/dist/linear-l8AD1ib_.js +0 -288
  203. package/dist/map-CCpPjiU9.cjs +0 -1
  204. package/dist/map-DUk1uXZC.js +0 -241
  205. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  206. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  207. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  208. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  209. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  210. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  211. package/dist/ordinal-Bm_chml2.cjs +0 -1
  212. package/dist/ordinal-CNQzPcrr.js +0 -65
  213. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  214. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  215. package/dist/path-DIS6ck99.cjs +0 -1
  216. package/dist/path-DVvH25eQ.js +0 -84
  217. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  218. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  219. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  220. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  221. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  222. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  223. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  224. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  225. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  226. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  227. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  228. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  229. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  230. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  231. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  232. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  233. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  234. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  235. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  236. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  237. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  238. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  239. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  240. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  241. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  242. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  243. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  244. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  245. package/dist/rust-BrRMzTsN.js +0 -3
  246. package/dist/rust-DWYDZl_E.cjs +0 -1
  247. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  248. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  249. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  250. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  251. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  252. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  253. package/dist/sql-CF-HzF4U.cjs +0 -1
  254. package/dist/sql-DvCCsF21.js +0 -3
  255. package/dist/src-C7bjHtAI.js +0 -2139
  256. package/dist/src-D9o9TOtH.cjs +0 -1
  257. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  258. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  259. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  260. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  261. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  262. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  263. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  264. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  265. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  266. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  267. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  268. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  269. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  270. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  271. package/dist/typescript-DFf19o_s.js +0 -2
  272. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  273. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  274. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  275. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  276. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  277. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  278. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  279. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  280. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  281. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  282. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  283. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  284. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
@@ -1,974 +0,0 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
- import { m as t } from "./src-C7bjHtAI.js";
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-I66GZJ75-xmbkwRyp.js";
4
- import "./chunk-NSK5VX7P-BO1SrWAL.js";
5
- import "./chunk-4I5QYGJK-Bs8S-Wfu.js";
6
- import "./chunk-WRU74C26-UGtU6H2a.js";
7
- import { t as l } from "./chunk-5VM5RSS4-BsUXY5k9.js";
8
- import "./chunk-UBXNYLIW-fOGkdEwd.js";
9
- import "./chunk-W5SLKNZC-C2SYjJjL.js";
10
- import { a as u, c as d, i as f } from "./chunk-QR6OTTB3-CGxJcV-X.js";
11
- import { a as p, n as m, t as h } from "./mermaid.core-CxM-VhZd.js";
12
- //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-27J2QSJJ.mjs
13
- var g = (function() {
14
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
15
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
16
- return n;
17
- }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
18
- 6,
19
- 7,
20
- 8
21
- ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
22
- 6,
23
- 7,
24
- 11
25
- ], m = [1, 31], h = [
26
- 6,
27
- 7,
28
- 11,
29
- 24
30
- ], g = [
31
- 1,
32
- 6,
33
- 13,
34
- 16,
35
- 17,
36
- 20,
37
- 23
38
- ], _ = [1, 35], v = [1, 36], y = [
39
- 1,
40
- 6,
41
- 7,
42
- 11,
43
- 13,
44
- 16,
45
- 17,
46
- 20,
47
- 23
48
- ], b = [1, 38], x = {
49
- trace: /* @__PURE__ */ e(function() {}, "trace"),
50
- yy: {},
51
- symbols_: {
52
- error: 2,
53
- start: 3,
54
- mindMap: 4,
55
- spaceLines: 5,
56
- SPACELINE: 6,
57
- NL: 7,
58
- KANBAN: 8,
59
- document: 9,
60
- stop: 10,
61
- EOF: 11,
62
- statement: 12,
63
- SPACELIST: 13,
64
- node: 14,
65
- shapeData: 15,
66
- ICON: 16,
67
- CLASS: 17,
68
- nodeWithId: 18,
69
- nodeWithoutId: 19,
70
- NODE_DSTART: 20,
71
- NODE_DESCR: 21,
72
- NODE_DEND: 22,
73
- NODE_ID: 23,
74
- SHAPE_DATA: 24,
75
- $accept: 0,
76
- $end: 1
77
- },
78
- terminals_: {
79
- 2: "error",
80
- 6: "SPACELINE",
81
- 7: "NL",
82
- 8: "KANBAN",
83
- 11: "EOF",
84
- 13: "SPACELIST",
85
- 16: "ICON",
86
- 17: "CLASS",
87
- 20: "NODE_DSTART",
88
- 21: "NODE_DESCR",
89
- 22: "NODE_DEND",
90
- 23: "NODE_ID",
91
- 24: "SHAPE_DATA"
92
- },
93
- productions_: [
94
- 0,
95
- [3, 1],
96
- [3, 2],
97
- [5, 1],
98
- [5, 2],
99
- [5, 2],
100
- [4, 2],
101
- [4, 3],
102
- [10, 1],
103
- [10, 1],
104
- [10, 1],
105
- [10, 2],
106
- [10, 2],
107
- [9, 3],
108
- [9, 2],
109
- [12, 3],
110
- [12, 2],
111
- [12, 2],
112
- [12, 2],
113
- [12, 1],
114
- [12, 2],
115
- [12, 1],
116
- [12, 1],
117
- [12, 1],
118
- [12, 1],
119
- [14, 1],
120
- [14, 1],
121
- [19, 3],
122
- [18, 1],
123
- [18, 4],
124
- [15, 2],
125
- [15, 1]
126
- ],
127
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
128
- var s = a.length - 1;
129
- switch (i) {
130
- case 6:
131
- case 7: return r;
132
- case 8:
133
- r.getLogger().trace("Stop NL ");
134
- break;
135
- case 9:
136
- r.getLogger().trace("Stop EOF ");
137
- break;
138
- case 11:
139
- r.getLogger().trace("Stop NL2 ");
140
- break;
141
- case 12:
142
- r.getLogger().trace("Stop EOF2 ");
143
- break;
144
- case 15:
145
- 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]);
146
- break;
147
- case 16:
148
- r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
149
- break;
150
- case 17:
151
- r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
152
- break;
153
- case 18:
154
- case 23:
155
- r.decorateNode({ class: a[s] });
156
- break;
157
- case 19:
158
- r.getLogger().trace("SPACELIST");
159
- break;
160
- case 20:
161
- 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]);
162
- break;
163
- case 21:
164
- r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
165
- break;
166
- case 22:
167
- r.decorateNode({ icon: a[s] });
168
- break;
169
- case 27:
170
- r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
171
- id: a[s - 1],
172
- descr: a[s - 1],
173
- type: r.getType(a[s - 2], a[s])
174
- };
175
- break;
176
- case 28:
177
- this.$ = {
178
- id: a[s],
179
- descr: a[s],
180
- type: 0
181
- };
182
- break;
183
- case 29:
184
- r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
185
- id: a[s - 3],
186
- descr: a[s - 1],
187
- type: r.getType(a[s - 2], a[s])
188
- };
189
- break;
190
- case 30:
191
- this.$ = a[s - 1] + a[s];
192
- break;
193
- case 31: this.$ = a[s];
194
- }
195
- }, "anonymous"),
196
- table: [
197
- {
198
- 3: 1,
199
- 4: 2,
200
- 5: 3,
201
- 6: [1, 5],
202
- 8: n
203
- },
204
- { 1: [3] },
205
- { 1: [2, 1] },
206
- {
207
- 4: 6,
208
- 6: [1, 7],
209
- 7: [1, 8],
210
- 8: n
211
- },
212
- {
213
- 6: r,
214
- 7: [1, 10],
215
- 9: 9,
216
- 12: 11,
217
- 13: i,
218
- 14: 14,
219
- 16: a,
220
- 17: o,
221
- 18: 17,
222
- 19: 18,
223
- 20: s,
224
- 23: c
225
- },
226
- t(l, [2, 3]),
227
- { 1: [2, 2] },
228
- t(l, [2, 4]),
229
- t(l, [2, 5]),
230
- {
231
- 1: [2, 6],
232
- 6: r,
233
- 12: 21,
234
- 13: i,
235
- 14: 14,
236
- 16: a,
237
- 17: o,
238
- 18: 17,
239
- 19: 18,
240
- 20: s,
241
- 23: c
242
- },
243
- {
244
- 6: r,
245
- 9: 22,
246
- 12: 11,
247
- 13: i,
248
- 14: 14,
249
- 16: a,
250
- 17: o,
251
- 18: 17,
252
- 19: 18,
253
- 20: s,
254
- 23: c
255
- },
256
- {
257
- 6: u,
258
- 7: d,
259
- 10: 23,
260
- 11: f
261
- },
262
- t(p, [2, 24], {
263
- 18: 17,
264
- 19: 18,
265
- 14: 27,
266
- 16: [1, 28],
267
- 17: [1, 29],
268
- 20: s,
269
- 23: c
270
- }),
271
- t(p, [2, 19]),
272
- t(p, [2, 21], {
273
- 15: 30,
274
- 24: m
275
- }),
276
- t(p, [2, 22]),
277
- t(p, [2, 23]),
278
- t(h, [2, 25]),
279
- t(h, [2, 26]),
280
- t(h, [2, 28], { 20: [1, 32] }),
281
- { 21: [1, 33] },
282
- {
283
- 6: u,
284
- 7: d,
285
- 10: 34,
286
- 11: f
287
- },
288
- {
289
- 1: [2, 7],
290
- 6: r,
291
- 12: 21,
292
- 13: i,
293
- 14: 14,
294
- 16: a,
295
- 17: o,
296
- 18: 17,
297
- 19: 18,
298
- 20: s,
299
- 23: c
300
- },
301
- t(g, [2, 14], {
302
- 7: _,
303
- 11: v
304
- }),
305
- t(y, [2, 8]),
306
- t(y, [2, 9]),
307
- t(y, [2, 10]),
308
- t(p, [2, 16], {
309
- 15: 37,
310
- 24: m
311
- }),
312
- t(p, [2, 17]),
313
- t(p, [2, 18]),
314
- t(p, [2, 20], { 24: b }),
315
- t(h, [2, 31]),
316
- { 21: [1, 39] },
317
- { 22: [1, 40] },
318
- t(g, [2, 13], {
319
- 7: _,
320
- 11: v
321
- }),
322
- t(y, [2, 11]),
323
- t(y, [2, 12]),
324
- t(p, [2, 15], { 24: b }),
325
- t(h, [2, 30]),
326
- { 22: [1, 41] },
327
- t(h, [2, 27]),
328
- t(h, [2, 29])
329
- ],
330
- defaultActions: {
331
- 2: [2, 1],
332
- 6: [2, 2]
333
- },
334
- parseError: /* @__PURE__ */ e(function(e, t) {
335
- if (t.recoverable) this.trace(e);
336
- else {
337
- var n = Error(e);
338
- throw n.hash = t, n;
339
- }
340
- }, "parseError"),
341
- parse: /* @__PURE__ */ e(function(t) {
342
- 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: {} };
343
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
344
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
345
- var v = h.yylloc;
346
- o.push(v);
347
- var y = h.options && h.options.ranges;
348
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
349
- function b(e) {
350
- r.length -= 2 * e, a.length -= e, o.length -= e;
351
- }
352
- e(b, "popStack");
353
- function x() {
354
- var e = i.pop() || h.lex() || p;
355
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
356
- }
357
- e(x, "lex");
358
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
359
- 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]) {
360
- var M = "";
361
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
362
- 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, {
363
- text: h.match,
364
- token: this.terminals_[S] || S,
365
- line: h.yylineno,
366
- loc: v,
367
- expected: j
368
- });
369
- }
370
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
371
- switch (T[0]) {
372
- case 1:
373
- 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--);
374
- break;
375
- case 2:
376
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
377
- first_line: o[o.length - (k || 1)].first_line,
378
- last_line: o[o.length - 1].last_line,
379
- first_column: o[o.length - (k || 1)].first_column,
380
- last_column: o[o.length - 1].last_column
381
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
382
- c,
383
- u,
384
- l,
385
- g.yy,
386
- T[1],
387
- a,
388
- o
389
- ].concat(m)), E !== void 0) return E;
390
- 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);
391
- break;
392
- case 3: return !0;
393
- }
394
- }
395
- return !0;
396
- }, "parse")
397
- };
398
- x.lexer = /* @__PURE__ */ (function() {
399
- return {
400
- EOF: 1,
401
- parseError: /* @__PURE__ */ e(function(e, t) {
402
- if (this.yy.parser) this.yy.parser.parseError(e, t);
403
- else throw Error(e);
404
- }, "parseError"),
405
- setInput: /* @__PURE__ */ e(function(e, t) {
406
- 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 = {
407
- first_line: 1,
408
- first_column: 0,
409
- last_line: 1,
410
- last_column: 0
411
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
412
- }, "setInput"),
413
- input: /* @__PURE__ */ e(function() {
414
- var e = this._input[0];
415
- 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;
416
- }, "input"),
417
- unput: /* @__PURE__ */ e(function(e) {
418
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
419
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
420
- var r = this.match.split(/(?:\r\n?|\n)/g);
421
- 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);
422
- var i = this.yylloc.range;
423
- return this.yylloc = {
424
- first_line: this.yylloc.first_line,
425
- last_line: this.yylineno + 1,
426
- first_column: this.yylloc.first_column,
427
- 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
428
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
429
- }, "unput"),
430
- more: /* @__PURE__ */ e(function() {
431
- return this._more = !0, this;
432
- }, "more"),
433
- reject: /* @__PURE__ */ e(function() {
434
- if (this.options.backtrack_lexer) this._backtrack = !0;
435
- 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(), {
436
- text: "",
437
- token: null,
438
- line: this.yylineno
439
- });
440
- return this;
441
- }, "reject"),
442
- less: /* @__PURE__ */ e(function(e) {
443
- this.unput(this.match.slice(e));
444
- }, "less"),
445
- pastInput: /* @__PURE__ */ e(function() {
446
- var e = this.matched.substr(0, this.matched.length - this.match.length);
447
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
448
- }, "pastInput"),
449
- upcomingInput: /* @__PURE__ */ e(function() {
450
- var e = this.match;
451
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
452
- }, "upcomingInput"),
453
- showPosition: /* @__PURE__ */ e(function() {
454
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
455
- return e + this.upcomingInput() + "\n" + t + "^";
456
- }, "showPosition"),
457
- test_match: /* @__PURE__ */ e(function(e, t) {
458
- var n, r, i;
459
- if (this.options.backtrack_lexer && (i = {
460
- yylineno: this.yylineno,
461
- yylloc: {
462
- first_line: this.yylloc.first_line,
463
- last_line: this.last_line,
464
- first_column: this.yylloc.first_column,
465
- last_column: this.yylloc.last_column
466
- },
467
- yytext: this.yytext,
468
- match: this.match,
469
- matches: this.matches,
470
- matched: this.matched,
471
- yyleng: this.yyleng,
472
- offset: this.offset,
473
- _more: this._more,
474
- _input: this._input,
475
- yy: this.yy,
476
- conditionStack: this.conditionStack.slice(0),
477
- done: this.done
478
- }, 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 = {
479
- first_line: this.yylloc.last_line,
480
- last_line: this.yylineno + 1,
481
- first_column: this.yylloc.last_column,
482
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
483
- }, 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;
484
- if (this._backtrack) {
485
- for (var a in i) this[a] = i[a];
486
- return !1;
487
- }
488
- return !1;
489
- }, "test_match"),
490
- next: /* @__PURE__ */ e(function() {
491
- if (this.done) return this.EOF;
492
- this._input || (this.done = !0);
493
- var e, t, n, r;
494
- this._more || (this.yytext = "", this.match = "");
495
- 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)) {
496
- if (t = n, r = a, this.options.backtrack_lexer) {
497
- if (e = this.test_match(n, i[a]), e !== !1) return e;
498
- if (this._backtrack) {
499
- t = !1;
500
- continue;
501
- }
502
- return !1;
503
- }
504
- if (!this.options.flex) break;
505
- }
506
- 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(), {
507
- text: "",
508
- token: null,
509
- line: this.yylineno
510
- });
511
- }, "next"),
512
- lex: /* @__PURE__ */ e(function() {
513
- return this.next() || this.lex();
514
- }, "lex"),
515
- begin: /* @__PURE__ */ e(function(e) {
516
- this.conditionStack.push(e);
517
- }, "begin"),
518
- popState: /* @__PURE__ */ e(function() {
519
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
520
- }, "popState"),
521
- _currentRules: /* @__PURE__ */ e(function() {
522
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
523
- }, "_currentRules"),
524
- topState: /* @__PURE__ */ e(function(e) {
525
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
526
- }, "topState"),
527
- pushState: /* @__PURE__ */ e(function(e) {
528
- this.begin(e);
529
- }, "pushState"),
530
- stateStackSize: /* @__PURE__ */ e(function() {
531
- return this.conditionStack.length;
532
- }, "stateStackSize"),
533
- options: { "case-insensitive": !0 },
534
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
535
- switch (n) {
536
- case 0: return this.pushState("shapeData"), t.yytext = "", 24;
537
- case 1: return this.pushState("shapeDataStr"), 24;
538
- case 2: return this.popState(), 24;
539
- case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
540
- case 4: return 24;
541
- case 5:
542
- this.popState();
543
- break;
544
- case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
545
- case 7: return 8;
546
- case 8:
547
- this.begin("CLASS");
548
- break;
549
- case 9: return this.popState(), 17;
550
- case 10:
551
- this.popState();
552
- break;
553
- case 11:
554
- e.getLogger().trace("Begin icon"), this.begin("ICON");
555
- break;
556
- case 12: return e.getLogger().trace("SPACELINE"), 6;
557
- case 13: return 7;
558
- case 14: return 16;
559
- case 15:
560
- e.getLogger().trace("end icon"), this.popState();
561
- break;
562
- case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
563
- case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
564
- case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
565
- case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
566
- case 20: return this.begin("NODE"), 20;
567
- case 21: return this.begin("NODE"), 20;
568
- case 22: return this.begin("NODE"), 20;
569
- case 23: return this.begin("NODE"), 20;
570
- case 24: return 13;
571
- case 25: return 23;
572
- case 26: return 11;
573
- case 27:
574
- this.begin("NSTR2");
575
- break;
576
- case 28: return "NODE_DESCR";
577
- case 29:
578
- this.popState();
579
- break;
580
- case 30:
581
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
582
- break;
583
- case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
584
- case 32:
585
- this.popState();
586
- break;
587
- case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
588
- case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
589
- case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
590
- case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
591
- case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
592
- case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
593
- case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
594
- case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
595
- case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
596
- case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
597
- }
598
- }, "anonymous"),
599
- rules: [
600
- /^(?:@\{)/i,
601
- /^(?:["])/i,
602
- /^(?:["])/i,
603
- /^(?:[^\"]+)/i,
604
- /^(?:[^}^"]+)/i,
605
- /^(?:\})/i,
606
- /^(?:\s*%%.*)/i,
607
- /^(?:kanban\b)/i,
608
- /^(?::::)/i,
609
- /^(?:.+)/i,
610
- /^(?:\n)/i,
611
- /^(?:::icon\()/i,
612
- /^(?:[\s]+[\n])/i,
613
- /^(?:[\n]+)/i,
614
- /^(?:[^\)]+)/i,
615
- /^(?:\))/i,
616
- /^(?:-\))/i,
617
- /^(?:\(-)/i,
618
- /^(?:\)\))/i,
619
- /^(?:\))/i,
620
- /^(?:\(\()/i,
621
- /^(?:\{\{)/i,
622
- /^(?:\()/i,
623
- /^(?:\[)/i,
624
- /^(?:[\s]+)/i,
625
- /^(?:[^\(\[\n\)\{\}@]+)/i,
626
- /^(?:$)/i,
627
- /^(?:["][`])/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
- ],
644
- conditions: {
645
- shapeDataEndBracket: {
646
- rules: [],
647
- inclusive: !1
648
- },
649
- shapeDataStr: {
650
- rules: [2, 3],
651
- inclusive: !1
652
- },
653
- shapeData: {
654
- rules: [
655
- 1,
656
- 4,
657
- 5
658
- ],
659
- inclusive: !1
660
- },
661
- CLASS: {
662
- rules: [9, 10],
663
- inclusive: !1
664
- },
665
- ICON: {
666
- rules: [14, 15],
667
- inclusive: !1
668
- },
669
- NSTR2: {
670
- rules: [28, 29],
671
- inclusive: !1
672
- },
673
- NSTR: {
674
- rules: [31, 32],
675
- inclusive: !1
676
- },
677
- NODE: {
678
- rules: [
679
- 27,
680
- 30,
681
- 33,
682
- 34,
683
- 35,
684
- 36,
685
- 37,
686
- 38,
687
- 39,
688
- 40,
689
- 41,
690
- 42
691
- ],
692
- inclusive: !1
693
- },
694
- INITIAL: {
695
- rules: [
696
- 0,
697
- 6,
698
- 7,
699
- 8,
700
- 11,
701
- 12,
702
- 13,
703
- 16,
704
- 17,
705
- 18,
706
- 19,
707
- 20,
708
- 21,
709
- 22,
710
- 23,
711
- 24,
712
- 25,
713
- 26
714
- ],
715
- inclusive: !0
716
- }
717
- }
718
- };
719
- })();
720
- function S() {
721
- this.yy = {};
722
- }
723
- return e(S, "Parser"), S.prototype = x, x.Parser = S, new S();
724
- })();
725
- g.parser = g;
726
- var _ = g, v = [], y = [], b = 0, x = {}, S = /* @__PURE__ */ e(() => {
727
- v = [], y = [], b = 0, x = {};
728
- }, "clear"), C = /* @__PURE__ */ e((e) => {
729
- if (v.length === 0) return null;
730
- let t = v[0].level, n = null;
731
- 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 + "\")");
732
- return e === n?.level ? null : n;
733
- }, "getSection"), w = /* @__PURE__ */ e(function() {
734
- return y;
735
- }, "getSections"), T = /* @__PURE__ */ e(function() {
736
- let e = [], t = [], n = w(), r = s();
737
- for (let e of n) {
738
- let n = {
739
- id: e.id,
740
- label: c(e.label ?? "", r),
741
- labelType: "markdown",
742
- isGroup: !0,
743
- ticket: e.ticket,
744
- shape: "kanbanSection",
745
- level: e.level,
746
- look: r.look
747
- };
748
- t.push(n);
749
- let i = v.filter((t) => t.parentId === e.id);
750
- for (let n of i) {
751
- let i = {
752
- id: n.id,
753
- parentId: e.id,
754
- label: c(n.label ?? "", r),
755
- labelType: "markdown",
756
- isGroup: !1,
757
- ticket: n?.ticket,
758
- priority: n?.priority,
759
- assigned: n?.assigned,
760
- icon: n?.icon,
761
- shape: "kanbanItem",
762
- level: n.level,
763
- rx: 5,
764
- ry: 5,
765
- cssStyles: ["text-align: left"]
766
- };
767
- t.push(i);
768
- }
769
- }
770
- return {
771
- nodes: t,
772
- edges: e,
773
- other: {},
774
- config: s()
775
- };
776
- }, "getData"), E = /* @__PURE__ */ e((e, t, n, r, a) => {
777
- let o = s(), l = o.mindmap?.padding ?? i.mindmap.padding;
778
- switch (r) {
779
- case D.ROUNDED_RECT:
780
- case D.RECT:
781
- case D.HEXAGON: l *= 2;
782
- }
783
- let u = {
784
- id: c(t, o) || "kbn" + b++,
785
- level: e,
786
- label: c(n, o),
787
- width: o.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
788
- padding: l,
789
- isGroup: !1
790
- };
791
- if (a !== void 0) {
792
- let e;
793
- e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
794
- let t = m(e, { schema: h });
795
- if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
796
- 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);
797
- }
798
- let d = C(e);
799
- d ? u.parentId = d.id || "kbn" + b++ : y.push(u), v.push(u);
800
- }, "addNode"), D = {
801
- DEFAULT: 0,
802
- NO_BORDER: 0,
803
- ROUNDED_RECT: 1,
804
- RECT: 2,
805
- CIRCLE: 3,
806
- CLOUD: 4,
807
- BANG: 5,
808
- HEXAGON: 6
809
- }, O = {
810
- clear: S,
811
- addNode: E,
812
- getSections: w,
813
- getData: T,
814
- nodeType: D,
815
- getType: /* @__PURE__ */ e((e, n) => {
816
- switch (t.debug("In get type", e, n), e) {
817
- case "[": return D.RECT;
818
- case "(": return n === ")" ? D.ROUNDED_RECT : D.CLOUD;
819
- case "((": return D.CIRCLE;
820
- case ")": return D.CLOUD;
821
- case "))": return D.BANG;
822
- case "{{": return D.HEXAGON;
823
- default: return D.DEFAULT;
824
- }
825
- }, "getType"),
826
- setElementForId: /* @__PURE__ */ e((e, t) => {
827
- x[e] = t;
828
- }, "setElementForId"),
829
- decorateNode: /* @__PURE__ */ e((e) => {
830
- if (!e) return;
831
- let t = s(), n = v[v.length - 1];
832
- e.icon && (n.icon = c(e.icon, t)), e.class && (n.cssClasses = c(e.class, t));
833
- }, "decorateNode"),
834
- type2Str: /* @__PURE__ */ e((e) => {
835
- switch (e) {
836
- case D.DEFAULT: return "no-border";
837
- case D.RECT: return "rect";
838
- case D.ROUNDED_RECT: return "rounded-rect";
839
- case D.CIRCLE: return "circle";
840
- case D.CLOUD: return "cloud";
841
- case D.BANG: return "bang";
842
- case D.HEXAGON: return "hexgon";
843
- default: return "no-border";
844
- }
845
- }, "type2Str"),
846
- getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
847
- getElementById: /* @__PURE__ */ e((e) => x[e], "getElementById")
848
- }, k = { draw: /* @__PURE__ */ e(async (e, r, a, o) => {
849
- t.debug("Rendering kanban diagram\n" + e);
850
- let c = o.db.getData(), l = s();
851
- l.htmlLabels = !1;
852
- let m = p(r);
853
- for (let e of c.nodes) e.domId = `${r}-${e.id}`;
854
- let h = m.append("g");
855
- h.attr("class", "sections");
856
- let g = m.append("g");
857
- g.attr("class", "items");
858
- let _ = c.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
859
- for (let e of _) {
860
- let t = l?.kanban?.sectionWidth || 200;
861
- 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;
862
- let n = await f(h, e);
863
- b = Math.max(b, n?.labelBBox?.height), y.push(n);
864
- }
865
- let x = 0;
866
- for (let e of _) {
867
- let t = y[x];
868
- x += 1;
869
- let n = l?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = c.nodes.filter((t) => t.parentId === e.id);
870
- for (let t of a) {
871
- if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
872
- t.x = e.x, t.width = n - 15;
873
- let r = (await u(g, t, { config: l })).node().getBBox();
874
- t.y = i + r.height / 2, await d(t), i = t.y + r.height / 2 + 5;
875
- }
876
- let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (b - 25);
877
- o.attr("height", s);
878
- }
879
- n(void 0, m, l.mindmap?.padding ?? i.kanban.padding, l.mindmap?.useMaxWidth ?? i.kanban.useMaxWidth);
880
- }, "draw") }, A = /* @__PURE__ */ e((t) => {
881
- let n = "";
882
- for (let e = 0; e < t.THEME_COLOR_LIMIT; e++) t["lineColor" + e] = t["lineColor" + e] || t["cScaleInv" + e], a(t["lineColor" + e]) ? t["lineColor" + e] = o(t["lineColor" + e], 20) : t["lineColor" + e] = r(t["lineColor" + e], 20);
883
- let i = /* @__PURE__ */ e((e, n) => t.darkMode ? r(e, n) : o(e, n), "adjuster");
884
- for (let e = 0; e < t.THEME_COLOR_LIMIT; e++) {
885
- let r = "" + (17 - 3 * e);
886
- n += `
887
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} polygon, .section-${e - 1} path {
888
- fill: ${i(t["cScale" + e], 10)};
889
- stroke: ${i(t["cScale" + e], 10)};
890
-
891
- }
892
- .section-${e - 1} text {
893
- fill: ${t["cScaleLabel" + e]};
894
- }
895
- .node-icon-${e - 1} {
896
- font-size: 40px;
897
- color: ${t["cScaleLabel" + e]};
898
- }
899
- .section-edge-${e - 1}{
900
- stroke: ${t["cScale" + e]};
901
- }
902
- .edge-depth-${e - 1}{
903
- stroke-width: ${r};
904
- }
905
- .section-${e - 1} line {
906
- stroke: ${t["cScaleInv" + e]} ;
907
- stroke-width: 3;
908
- }
909
-
910
- .disabled, .disabled circle, .disabled text {
911
- fill: lightgray;
912
- }
913
- .disabled text {
914
- fill: #efefef;
915
- }
916
-
917
- .node rect,
918
- .node circle,
919
- .node ellipse,
920
- .node polygon,
921
- .node path {
922
- fill: ${t.background};
923
- stroke: ${t.nodeBorder};
924
- stroke-width: 1px;
925
- }
926
-
927
- .kanban-ticket-link {
928
- fill: ${t.background};
929
- stroke: ${t.nodeBorder};
930
- text-decoration: underline;
931
- }
932
- `;
933
- }
934
- return n;
935
- }, "genSections"), j = {
936
- db: O,
937
- renderer: k,
938
- parser: _,
939
- styles: /* @__PURE__ */ e((e) => `
940
- .edge {
941
- stroke-width: 3;
942
- }
943
- ${A(e)}
944
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
945
- fill: ${e.git0};
946
- }
947
- .section-root text {
948
- fill: ${e.gitBranchLabel0};
949
- }
950
- .icon-container {
951
- height:100%;
952
- display: flex;
953
- justify-content: center;
954
- align-items: center;
955
- }
956
- .edge {
957
- fill: none;
958
- }
959
- .cluster-label, .label {
960
- color: ${e.textColor};
961
- fill: ${e.textColor};
962
- }
963
- .kanban-label {
964
- dy: 1em;
965
- alignment-baseline: middle;
966
- text-anchor: middle;
967
- dominant-baseline: middle;
968
- text-align: center;
969
- }
970
- ${l()}
971
- `, "getStyles")
972
- };
973
- //#endregion
974
- export { j as diagram };