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,884 +0,0 @@
1
- import { p as e } from "./src-D_hsMyeP.mjs";
2
- import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { H as n, K as r, U as i, a, c as o, v as s, w as c, x as l, y as u } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { t as d } from "./arc-DgPKXEdT.mjs";
5
- import { t as f } from "./chunk-5VM5RSS4-TqxtqrwE.mjs";
6
- import { a as p, n as m, o as h, s as g } from "./chunk-F27PBJKO-DFH3sRZG.mjs";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-3NMN7TZE.mjs
8
- var _ = (function() {
9
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
10
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
- return n;
12
- }, "o"), n = [
13
- 6,
14
- 8,
15
- 10,
16
- 11,
17
- 12,
18
- 14,
19
- 16,
20
- 17,
21
- 18
22
- ], r = [1, 9], i = [1, 10], a = [1, 11], o = [1, 12], s = [1, 13], c = [1, 14], l = {
23
- trace: /* @__PURE__ */ t(function() {}, "trace"),
24
- yy: {},
25
- symbols_: {
26
- error: 2,
27
- start: 3,
28
- journey: 4,
29
- document: 5,
30
- EOF: 6,
31
- line: 7,
32
- SPACE: 8,
33
- statement: 9,
34
- NEWLINE: 10,
35
- title: 11,
36
- acc_title: 12,
37
- acc_title_value: 13,
38
- acc_descr: 14,
39
- acc_descr_value: 15,
40
- acc_descr_multiline_value: 16,
41
- section: 17,
42
- taskName: 18,
43
- taskData: 19,
44
- $accept: 0,
45
- $end: 1
46
- },
47
- terminals_: {
48
- 2: "error",
49
- 4: "journey",
50
- 6: "EOF",
51
- 8: "SPACE",
52
- 10: "NEWLINE",
53
- 11: "title",
54
- 12: "acc_title",
55
- 13: "acc_title_value",
56
- 14: "acc_descr",
57
- 15: "acc_descr_value",
58
- 16: "acc_descr_multiline_value",
59
- 17: "section",
60
- 18: "taskName",
61
- 19: "taskData"
62
- },
63
- productions_: [
64
- 0,
65
- [3, 3],
66
- [5, 0],
67
- [5, 2],
68
- [7, 2],
69
- [7, 1],
70
- [7, 1],
71
- [7, 1],
72
- [9, 1],
73
- [9, 2],
74
- [9, 2],
75
- [9, 1],
76
- [9, 1],
77
- [9, 2]
78
- ],
79
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
80
- var s = a.length - 1;
81
- switch (i) {
82
- case 1: return a[s - 1];
83
- case 2:
84
- this.$ = [];
85
- break;
86
- case 3:
87
- a[s - 1].push(a[s]), this.$ = a[s - 1];
88
- break;
89
- case 4:
90
- case 5:
91
- this.$ = a[s];
92
- break;
93
- case 6:
94
- case 7:
95
- this.$ = [];
96
- break;
97
- case 8:
98
- r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
99
- break;
100
- case 9:
101
- this.$ = a[s].trim(), r.setAccTitle(this.$);
102
- break;
103
- case 10:
104
- case 11:
105
- this.$ = a[s].trim(), r.setAccDescription(this.$);
106
- break;
107
- case 12:
108
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
109
- break;
110
- case 13: r.addTask(a[s - 1], a[s]), this.$ = "task";
111
- }
112
- }, "anonymous"),
113
- table: [
114
- {
115
- 3: 1,
116
- 4: [1, 2]
117
- },
118
- { 1: [3] },
119
- e(n, [2, 2], { 5: 3 }),
120
- {
121
- 6: [1, 4],
122
- 7: 5,
123
- 8: [1, 6],
124
- 9: 7,
125
- 10: [1, 8],
126
- 11: r,
127
- 12: i,
128
- 14: a,
129
- 16: o,
130
- 17: s,
131
- 18: c
132
- },
133
- e(n, [2, 7], { 1: [2, 1] }),
134
- e(n, [2, 3]),
135
- {
136
- 9: 15,
137
- 11: r,
138
- 12: i,
139
- 14: a,
140
- 16: o,
141
- 17: s,
142
- 18: c
143
- },
144
- e(n, [2, 5]),
145
- e(n, [2, 6]),
146
- e(n, [2, 8]),
147
- { 13: [1, 16] },
148
- { 15: [1, 17] },
149
- e(n, [2, 11]),
150
- e(n, [2, 12]),
151
- { 19: [1, 18] },
152
- e(n, [2, 4]),
153
- e(n, [2, 9]),
154
- e(n, [2, 10]),
155
- e(n, [2, 13])
156
- ],
157
- defaultActions: {},
158
- parseError: /* @__PURE__ */ t(function(e, t) {
159
- if (t.recoverable) this.trace(e);
160
- else {
161
- var n = Error(e);
162
- throw n.hash = t, n;
163
- }
164
- }, "parseError"),
165
- parse: /* @__PURE__ */ t(function(e) {
166
- 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: {} };
167
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
168
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
169
- var v = h.yylloc;
170
- o.push(v);
171
- var y = h.options && h.options.ranges;
172
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
173
- function b(e) {
174
- r.length -= 2 * e, a.length -= e, o.length -= e;
175
- }
176
- t(b, "popStack");
177
- function x() {
178
- var e = i.pop() || h.lex() || p;
179
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
180
- }
181
- t(x, "lex");
182
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
183
- 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]) {
184
- var M = "";
185
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
186
- 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, {
187
- text: h.match,
188
- token: this.terminals_[S] || S,
189
- line: h.yylineno,
190
- loc: v,
191
- expected: j
192
- });
193
- }
194
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
195
- switch (T[0]) {
196
- case 1:
197
- 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--);
198
- break;
199
- case 2:
200
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
201
- first_line: o[o.length - (k || 1)].first_line,
202
- last_line: o[o.length - 1].last_line,
203
- first_column: o[o.length - (k || 1)].first_column,
204
- last_column: o[o.length - 1].last_column
205
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
206
- c,
207
- u,
208
- l,
209
- g.yy,
210
- T[1],
211
- a,
212
- o
213
- ].concat(m)), E !== void 0) return E;
214
- 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);
215
- break;
216
- case 3: return !0;
217
- }
218
- }
219
- return !0;
220
- }, "parse")
221
- };
222
- l.lexer = /* @__PURE__ */ (function() {
223
- return {
224
- EOF: 1,
225
- parseError: /* @__PURE__ */ t(function(e, t) {
226
- if (this.yy.parser) this.yy.parser.parseError(e, t);
227
- else throw Error(e);
228
- }, "parseError"),
229
- setInput: /* @__PURE__ */ t(function(e, t) {
230
- 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 = {
231
- first_line: 1,
232
- first_column: 0,
233
- last_line: 1,
234
- last_column: 0
235
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
236
- }, "setInput"),
237
- input: /* @__PURE__ */ t(function() {
238
- var e = this._input[0];
239
- 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;
240
- }, "input"),
241
- unput: /* @__PURE__ */ t(function(e) {
242
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
243
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
244
- var r = this.match.split(/(?:\r\n?|\n)/g);
245
- 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);
246
- var i = this.yylloc.range;
247
- return this.yylloc = {
248
- first_line: this.yylloc.first_line,
249
- last_line: this.yylineno + 1,
250
- first_column: this.yylloc.first_column,
251
- 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
252
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
253
- }, "unput"),
254
- more: /* @__PURE__ */ t(function() {
255
- return this._more = !0, this;
256
- }, "more"),
257
- reject: /* @__PURE__ */ t(function() {
258
- if (this.options.backtrack_lexer) this._backtrack = !0;
259
- 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(), {
260
- text: "",
261
- token: null,
262
- line: this.yylineno
263
- });
264
- return this;
265
- }, "reject"),
266
- less: /* @__PURE__ */ t(function(e) {
267
- this.unput(this.match.slice(e));
268
- }, "less"),
269
- pastInput: /* @__PURE__ */ t(function() {
270
- var e = this.matched.substr(0, this.matched.length - this.match.length);
271
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
272
- }, "pastInput"),
273
- upcomingInput: /* @__PURE__ */ t(function() {
274
- var e = this.match;
275
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
276
- }, "upcomingInput"),
277
- showPosition: /* @__PURE__ */ t(function() {
278
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
279
- return e + this.upcomingInput() + "\n" + t + "^";
280
- }, "showPosition"),
281
- test_match: /* @__PURE__ */ t(function(e, t) {
282
- var n, r, i;
283
- if (this.options.backtrack_lexer && (i = {
284
- yylineno: this.yylineno,
285
- yylloc: {
286
- first_line: this.yylloc.first_line,
287
- last_line: this.last_line,
288
- first_column: this.yylloc.first_column,
289
- last_column: this.yylloc.last_column
290
- },
291
- yytext: this.yytext,
292
- match: this.match,
293
- matches: this.matches,
294
- matched: this.matched,
295
- yyleng: this.yyleng,
296
- offset: this.offset,
297
- _more: this._more,
298
- _input: this._input,
299
- yy: this.yy,
300
- conditionStack: this.conditionStack.slice(0),
301
- done: this.done
302
- }, 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 = {
303
- first_line: this.yylloc.last_line,
304
- last_line: this.yylineno + 1,
305
- first_column: this.yylloc.last_column,
306
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
307
- }, 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;
308
- if (this._backtrack) {
309
- for (var a in i) this[a] = i[a];
310
- return !1;
311
- }
312
- return !1;
313
- }, "test_match"),
314
- next: /* @__PURE__ */ t(function() {
315
- if (this.done) return this.EOF;
316
- this._input || (this.done = !0);
317
- var e, t, n, r;
318
- this._more || (this.yytext = "", this.match = "");
319
- 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)) {
320
- if (t = n, r = a, this.options.backtrack_lexer) {
321
- if (e = this.test_match(n, i[a]), e !== !1) return e;
322
- if (this._backtrack) {
323
- t = !1;
324
- continue;
325
- }
326
- return !1;
327
- }
328
- if (!this.options.flex) break;
329
- }
330
- 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(), {
331
- text: "",
332
- token: null,
333
- line: this.yylineno
334
- });
335
- }, "next"),
336
- lex: /* @__PURE__ */ t(function() {
337
- return this.next() || this.lex();
338
- }, "lex"),
339
- begin: /* @__PURE__ */ t(function(e) {
340
- this.conditionStack.push(e);
341
- }, "begin"),
342
- popState: /* @__PURE__ */ t(function() {
343
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
344
- }, "popState"),
345
- _currentRules: /* @__PURE__ */ t(function() {
346
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
347
- }, "_currentRules"),
348
- topState: /* @__PURE__ */ t(function(e) {
349
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
350
- }, "topState"),
351
- pushState: /* @__PURE__ */ t(function(e) {
352
- this.begin(e);
353
- }, "pushState"),
354
- stateStackSize: /* @__PURE__ */ t(function() {
355
- return this.conditionStack.length;
356
- }, "stateStackSize"),
357
- options: { "case-insensitive": !0 },
358
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
359
- switch (n) {
360
- case 0: break;
361
- case 1: break;
362
- case 2: return 10;
363
- case 3: break;
364
- case 4: break;
365
- case 5: return 4;
366
- case 6: return 11;
367
- case 7: return this.begin("acc_title"), 12;
368
- case 8: return this.popState(), "acc_title_value";
369
- case 9: return this.begin("acc_descr"), 14;
370
- case 10: return this.popState(), "acc_descr_value";
371
- case 11:
372
- this.begin("acc_descr_multiline");
373
- break;
374
- case 12:
375
- this.popState();
376
- break;
377
- case 13: return "acc_descr_multiline_value";
378
- case 14: return 17;
379
- case 15: return 18;
380
- case 16: return 19;
381
- case 17: return ":";
382
- case 18: return 6;
383
- case 19: return "INVALID";
384
- }
385
- }, "anonymous"),
386
- rules: [
387
- /^(?:%(?!\{)[^\n]*)/i,
388
- /^(?:[^\}]%%[^\n]*)/i,
389
- /^(?:[\n]+)/i,
390
- /^(?:\s+)/i,
391
- /^(?:#[^\n]*)/i,
392
- /^(?:journey\b)/i,
393
- /^(?:title\s[^#\n;]+)/i,
394
- /^(?:accTitle\s*:\s*)/i,
395
- /^(?:(?!\n||)*[^\n]*)/i,
396
- /^(?:accDescr\s*:\s*)/i,
397
- /^(?:(?!\n||)*[^\n]*)/i,
398
- /^(?:accDescr\s*\{\s*)/i,
399
- /^(?:[\}])/i,
400
- /^(?:[^\}]*)/i,
401
- /^(?:section\s[^#:\n;]+)/i,
402
- /^(?:[^#:\n;]+)/i,
403
- /^(?::[^#\n;]+)/i,
404
- /^(?::)/i,
405
- /^(?:$)/i,
406
- /^(?:.)/i
407
- ],
408
- conditions: {
409
- acc_descr_multiline: {
410
- rules: [12, 13],
411
- inclusive: !1
412
- },
413
- acc_descr: {
414
- rules: [10],
415
- inclusive: !1
416
- },
417
- acc_title: {
418
- rules: [8],
419
- inclusive: !1
420
- },
421
- INITIAL: {
422
- rules: [
423
- 0,
424
- 1,
425
- 2,
426
- 3,
427
- 4,
428
- 5,
429
- 6,
430
- 7,
431
- 9,
432
- 11,
433
- 14,
434
- 15,
435
- 16,
436
- 17,
437
- 18,
438
- 19
439
- ],
440
- inclusive: !0
441
- }
442
- }
443
- };
444
- })();
445
- function u() {
446
- this.yy = {};
447
- }
448
- return t(u, "Parser"), u.prototype = l, l.Parser = u, new u();
449
- })();
450
- _.parser = _;
451
- var v = _, y = "", b = [], x = [], S = [], C = /* @__PURE__ */ t(function() {
452
- b.length = 0, x.length = 0, y = "", S.length = 0, a();
453
- }, "clear"), w = /* @__PURE__ */ t(function(e) {
454
- y = e, b.push(e);
455
- }, "addSection"), T = /* @__PURE__ */ t(function() {
456
- return b;
457
- }, "getSections"), E = /* @__PURE__ */ t(function() {
458
- let e = A(), t = 0;
459
- for (; !e && t < 100;) e = A(), t++;
460
- return x.push(...S), x;
461
- }, "getTasks"), D = /* @__PURE__ */ t(function() {
462
- let e = [];
463
- return x.forEach((t) => {
464
- t.people && e.push(...t.people);
465
- }), [...new Set(e)].sort();
466
- }, "updateActors"), O = /* @__PURE__ */ t(function(e, t) {
467
- let n = t.substr(1).split(":"), r = 0, i = [];
468
- n.length === 1 ? (r = Number(n[0]), i = []) : (r = Number(n[0]), i = n[1].split(","));
469
- let a = i.map((e) => e.trim()), o = {
470
- section: y,
471
- type: y,
472
- people: a,
473
- task: e,
474
- score: r
475
- };
476
- S.push(o);
477
- }, "addTask"), k = /* @__PURE__ */ t(function(e) {
478
- let t = {
479
- section: y,
480
- type: y,
481
- description: e,
482
- task: e,
483
- classes: []
484
- };
485
- x.push(t);
486
- }, "addTaskOrg"), A = /* @__PURE__ */ t(function() {
487
- let e = /* @__PURE__ */ t(function(e) {
488
- return S[e].processed;
489
- }, "compileTask"), n = !0;
490
- for (let [t, r] of S.entries()) e(t), n &&= r.processed;
491
- return n;
492
- }, "compileTasks"), j = {
493
- getConfig: /* @__PURE__ */ t(() => l().journey, "getConfig"),
494
- clear: C,
495
- setDiagramTitle: r,
496
- getDiagramTitle: c,
497
- setAccTitle: i,
498
- getAccTitle: u,
499
- setAccDescription: n,
500
- getAccDescription: s,
501
- addSection: w,
502
- getSections: T,
503
- getTasks: E,
504
- addTask: O,
505
- addTaskOrg: k,
506
- getActors: /* @__PURE__ */ t(function() {
507
- return D();
508
- }, "getActors")
509
- }, M = /* @__PURE__ */ t((e) => `.label {
510
- font-family: ${e.fontFamily};
511
- color: ${e.textColor};
512
- }
513
- .mouth {
514
- stroke: #666;
515
- }
516
-
517
- line {
518
- stroke: ${e.textColor}
519
- }
520
-
521
- .legend {
522
- fill: ${e.textColor};
523
- font-family: ${e.fontFamily};
524
- }
525
-
526
- .label text {
527
- fill: #333;
528
- }
529
- .label {
530
- color: ${e.textColor}
531
- }
532
-
533
- .face {
534
- ${e.faceColor ? `fill: ${e.faceColor}` : "fill: #FFF8DC"};
535
- stroke: #999;
536
- }
537
-
538
- .node rect,
539
- .node circle,
540
- .node ellipse,
541
- .node polygon,
542
- .node path {
543
- fill: ${e.mainBkg};
544
- stroke: ${e.nodeBorder};
545
- stroke-width: 1px;
546
- }
547
-
548
- .node .label {
549
- text-align: center;
550
- }
551
- .node.clickable {
552
- cursor: pointer;
553
- }
554
-
555
- .arrowheadPath {
556
- fill: ${e.arrowheadColor};
557
- }
558
-
559
- .edgePaths .path {
560
- stroke: ${e.lineColor};
561
- stroke-width: 1.5px;
562
- }
563
-
564
- .flowchart-link {
565
- stroke: ${e.lineColor};
566
- fill: none;
567
- }
568
-
569
- .edgeLabel {
570
- background-color: ${e.edgeLabelBackground};
571
- rect {
572
- opacity: 0.5;
573
- }
574
- text-align: center;
575
- }
576
-
577
- .cluster rect {
578
- }
579
-
580
- .cluster text {
581
- fill: ${e.titleColor};
582
- }
583
-
584
- div.mermaidTooltip {
585
- position: absolute;
586
- text-align: center;
587
- max-width: 200px;
588
- padding: 2px;
589
- font-family: ${e.fontFamily};
590
- font-size: 12px;
591
- background: ${e.tertiaryColor};
592
- border: 1px solid ${e.border2};
593
- border-radius: 2px;
594
- pointer-events: none;
595
- z-index: 100;
596
- }
597
-
598
- .task-type-0, .section-type-0 {
599
- ${e.fillType0 ? `fill: ${e.fillType0}` : ""};
600
- }
601
- .task-type-1, .section-type-1 {
602
- ${e.fillType0 ? `fill: ${e.fillType1}` : ""};
603
- }
604
- .task-type-2, .section-type-2 {
605
- ${e.fillType0 ? `fill: ${e.fillType2}` : ""};
606
- }
607
- .task-type-3, .section-type-3 {
608
- ${e.fillType0 ? `fill: ${e.fillType3}` : ""};
609
- }
610
- .task-type-4, .section-type-4 {
611
- ${e.fillType0 ? `fill: ${e.fillType4}` : ""};
612
- }
613
- .task-type-5, .section-type-5 {
614
- ${e.fillType0 ? `fill: ${e.fillType5}` : ""};
615
- }
616
- .task-type-6, .section-type-6 {
617
- ${e.fillType0 ? `fill: ${e.fillType6}` : ""};
618
- }
619
- .task-type-7, .section-type-7 {
620
- ${e.fillType0 ? `fill: ${e.fillType7}` : ""};
621
- }
622
-
623
- .actor-0 {
624
- ${e.actor0 ? `fill: ${e.actor0}` : ""};
625
- }
626
- .actor-1 {
627
- ${e.actor1 ? `fill: ${e.actor1}` : ""};
628
- }
629
- .actor-2 {
630
- ${e.actor2 ? `fill: ${e.actor2}` : ""};
631
- }
632
- .actor-3 {
633
- ${e.actor3 ? `fill: ${e.actor3}` : ""};
634
- }
635
- .actor-4 {
636
- ${e.actor4 ? `fill: ${e.actor4}` : ""};
637
- }
638
- .actor-5 {
639
- ${e.actor5 ? `fill: ${e.actor5}` : ""};
640
- }
641
- ${f()}
642
- `, "getStyles"), N = /* @__PURE__ */ t(function(e, t) {
643
- return p(e, t);
644
- }, "drawRect"), P = /* @__PURE__ */ t(function(e, n) {
645
- let r = e.append("circle").attr("cx", n.cx).attr("cy", n.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = e.append("g");
646
- i.append("circle").attr("cx", n.cx - 5).attr("cy", n.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", n.cx + 5).attr("cy", n.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
647
- function a(e) {
648
- let t = d().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
649
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
650
- }
651
- t(a, "smile");
652
- function o(e) {
653
- let t = d().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
654
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
655
- }
656
- t(o, "sad");
657
- function s(e) {
658
- e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", n.cx - 5).attr("y1", n.cy + 7).attr("x2", n.cx + 5).attr("y2", n.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
659
- }
660
- return t(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
661
- }, "drawFace"), F = /* @__PURE__ */ t(function(e, t) {
662
- let n = e.append("circle");
663
- return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
664
- }, "drawCircle"), I = /* @__PURE__ */ t(function(e, t) {
665
- return h(e, t);
666
- }, "drawText"), L = /* @__PURE__ */ t(function(e, n) {
667
- function r(e, t, n, r, i) {
668
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
669
- }
670
- t(r, "genPoints");
671
- let i = e.append("polygon");
672
- i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, I(e, n);
673
- }, "drawLabel"), R = /* @__PURE__ */ t(function(e, t, n) {
674
- let r = e.append("g"), i = g();
675
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width * t.taskCount + n.diagramMarginX * (t.taskCount - 1), i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, N(r, i), H(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
676
- }, "drawSection"), z = -1, B = /* @__PURE__ */ t(function(e, t, n, r) {
677
- let i = t.x + n.width / 2, a = e.append("g");
678
- z++, a.append("line").attr("id", r + "-task" + z).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), P(a, {
679
- cx: i,
680
- cy: 300 + (5 - t.score) * 30,
681
- score: t.score
682
- });
683
- let o = g();
684
- o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, N(a, o);
685
- let s = t.x + 14;
686
- t.people.forEach((e) => {
687
- let n = t.actors[e].color, r = {
688
- cx: s,
689
- cy: t.y,
690
- r: 7,
691
- fill: n,
692
- stroke: "#000",
693
- title: e,
694
- pos: t.actors[e].position
695
- };
696
- F(a, r), s += 10;
697
- }), H(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
698
- }, "drawTask"), V = /* @__PURE__ */ t(function(e, t) {
699
- m(e, t);
700
- }, "drawBackgroundRect"), H = /* @__PURE__ */ (function() {
701
- function e(e, t, n, r, a, o, s, c) {
702
- i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
703
- }
704
- t(e, "byText");
705
- function n(e, t, n, r, a, o, s, c, l) {
706
- let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
707
- for (let e = 0; e < f.length; e++) {
708
- let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
709
- p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
710
- }
711
- }
712
- t(n, "byTspan");
713
- function r(e, t, r, a, o, s, c, l) {
714
- let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
715
- d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
716
- }
717
- t(r, "byFo");
718
- function i(e, t) {
719
- for (let n in t) n in t && e.attr(n, t[n]);
720
- }
721
- return t(i, "_setTextAttrs"), function(t) {
722
- return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
723
- };
724
- })(), U = {
725
- drawRect: N,
726
- drawCircle: F,
727
- drawSection: R,
728
- drawText: I,
729
- drawLabel: L,
730
- drawTask: B,
731
- drawBackgroundRect: V,
732
- initGraphics: /* @__PURE__ */ t(function(e, t) {
733
- z = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
734
- }, "initGraphics")
735
- }, W = /* @__PURE__ */ t(function(e) {
736
- Object.keys(e).forEach(function(t) {
737
- J[t] = e[t];
738
- });
739
- }, "setConf"), G = {}, K = 0;
740
- function q(e) {
741
- let t = l().journey, n = t.maxLabelWidth;
742
- K = 0;
743
- let r = 60;
744
- Object.keys(G).forEach((i) => {
745
- let a = G[i].color, o = {
746
- cx: 20,
747
- cy: r,
748
- r: 7,
749
- fill: a,
750
- stroke: "#000",
751
- pos: G[i].position
752
- };
753
- U.drawCircle(e, o);
754
- let s = e.append("text").attr("visibility", "hidden").text(i), c = s.node().getBoundingClientRect().width;
755
- s.remove();
756
- let l = [];
757
- if (c <= n) l = [i];
758
- else {
759
- let t = i.split(" "), r = "";
760
- s = e.append("text").attr("visibility", "hidden"), t.forEach((e) => {
761
- let t = r ? `${r} ${e}` : e;
762
- if (s.text(t), s.node().getBoundingClientRect().width > n) {
763
- if (r && l.push(r), r = e, s.text(e), s.node().getBoundingClientRect().width > n) {
764
- let t = "";
765
- for (let r of e) t += r, s.text(t + "-"), s.node().getBoundingClientRect().width > n && (l.push(t.slice(0, -1) + "-"), t = r);
766
- r = t;
767
- }
768
- } else r = t;
769
- }), r && l.push(r), s.remove();
770
- }
771
- l.forEach((n, i) => {
772
- let a = {
773
- x: 40,
774
- y: r + 7 + i * 20,
775
- fill: "#666",
776
- text: n,
777
- textMargin: t.boxTextMargin ?? 5
778
- }, o = U.drawText(e, a).node().getBoundingClientRect().width;
779
- o > K && o > t.leftMargin - o && (K = o);
780
- }), r += Math.max(20, l.length * 20);
781
- });
782
- }
783
- t(q, "drawActorLegend");
784
- var J = l().journey, Y = 0, ee = /* @__PURE__ */ t(function(t, n, r, i) {
785
- let a = l(), s = a.journey.titleColor, c = a.journey.titleFontSize, u = a.journey.titleFontFamily, d = a.securityLevel, f;
786
- d === "sandbox" && (f = e("#i" + n));
787
- let p = e(d === "sandbox" ? f.nodes()[0].contentDocument.body : "body");
788
- X.init();
789
- let m = p.select("#" + n);
790
- U.initGraphics(m, n);
791
- let h = i.db.getTasks(), g = i.db.getDiagramTitle(), _ = i.db.getActors();
792
- for (let e in G) delete G[e];
793
- let v = 0;
794
- _.forEach((e) => {
795
- G[e] = {
796
- color: J.actorColours[v % J.actorColours.length],
797
- position: v
798
- }, v++;
799
- }), q(m), Y = J.leftMargin + K, X.insert(0, 0, Y, Object.keys(G).length * 50), te(m, h, 0, n);
800
- let y = X.getBounds();
801
- g && m.append("text").text(g).attr("x", Y).attr("font-size", c).attr("font-weight", "bold").attr("y", 25).attr("fill", s).attr("font-family", u);
802
- let b = y.stopy - y.starty + 2 * J.diagramMarginY, x = Y + y.stopx + 2 * J.diagramMarginX;
803
- o(m, b, x, J.useMaxWidth), m.append("line").attr("x1", Y).attr("y1", J.height * 4).attr("x2", x - Y - 4).attr("y2", J.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + n + "-arrowhead)");
804
- let S = g ? 70 : 0;
805
- m.attr("viewBox", `${y.startx} -25 ${x} ${b + S}`), m.attr("preserveAspectRatio", "xMinYMin meet"), m.attr("height", b + S + 25);
806
- }, "draw"), X = {
807
- data: {
808
- startx: void 0,
809
- stopx: void 0,
810
- starty: void 0,
811
- stopy: void 0
812
- },
813
- verticalPos: 0,
814
- sequenceItems: [],
815
- init: /* @__PURE__ */ t(function() {
816
- this.sequenceItems = [], this.data = {
817
- startx: void 0,
818
- stopx: void 0,
819
- starty: void 0,
820
- stopy: void 0
821
- }, this.verticalPos = 0;
822
- }, "init"),
823
- updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
824
- e[t] = e[t] === void 0 ? n : r(n, e[t]);
825
- }, "updateVal"),
826
- updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
827
- let a = l().journey, o = this, s = 0;
828
- function c(c) {
829
- return /* @__PURE__ */ t(function(t) {
830
- s++;
831
- let l = o.sequenceItems.length - s + 1;
832
- o.updateVal(t, "starty", n - l * a.boxMargin, Math.min), o.updateVal(t, "stopy", i + l * a.boxMargin, Math.max), o.updateVal(X.data, "startx", e - l * a.boxMargin, Math.min), o.updateVal(X.data, "stopx", r + l * a.boxMargin, Math.max), c !== "activation" && (o.updateVal(t, "startx", e - l * a.boxMargin, Math.min), o.updateVal(t, "stopx", r + l * a.boxMargin, Math.max), o.updateVal(X.data, "starty", n - l * a.boxMargin, Math.min), o.updateVal(X.data, "stopy", i + l * a.boxMargin, Math.max));
833
- }, "updateItemBounds");
834
- }
835
- t(c, "updateFn"), this.sequenceItems.forEach(c());
836
- }, "updateBounds"),
837
- insert: /* @__PURE__ */ t(function(e, t, n, r) {
838
- let i = Math.min(e, n), a = Math.max(e, n), o = Math.min(t, r), s = Math.max(t, r);
839
- this.updateVal(X.data, "startx", i, Math.min), this.updateVal(X.data, "starty", o, Math.min), this.updateVal(X.data, "stopx", a, Math.max), this.updateVal(X.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
840
- }, "insert"),
841
- bumpVerticalPos: /* @__PURE__ */ t(function(e) {
842
- this.verticalPos += e, this.data.stopy = this.verticalPos;
843
- }, "bumpVerticalPos"),
844
- getVerticalPos: /* @__PURE__ */ t(function() {
845
- return this.verticalPos;
846
- }, "getVerticalPos"),
847
- getBounds: /* @__PURE__ */ t(function() {
848
- return this.data;
849
- }, "getBounds")
850
- }, Z = J.sectionFills, Q = J.sectionColours, te = /* @__PURE__ */ t(function(e, t, n, r) {
851
- let i = l().journey, a = "", o = n + (i.height * 2 + i.diagramMarginY), s = 0, c = "#CCC", u = "black", d = 0;
852
- for (let [n, l] of t.entries()) {
853
- if (a !== l.section) {
854
- c = Z[s % Z.length], d = s % Z.length, u = Q[s % Q.length];
855
- let r = 0, o = l.section;
856
- for (let e = n; e < t.length && t[e].section == o; e++) r += 1;
857
- let f = {
858
- x: n * i.taskMargin + n * i.width + Y,
859
- y: 50,
860
- text: l.section,
861
- fill: c,
862
- num: d,
863
- colour: u,
864
- taskCount: r
865
- };
866
- U.drawSection(e, f, i), a = l.section, s++;
867
- }
868
- let f = l.people.reduce((e, t) => (G[t] && (e[t] = G[t]), e), {});
869
- l.x = n * i.taskMargin + n * i.width + Y, l.y = o, l.width = i.diagramMarginX, l.height = i.diagramMarginY, l.colour = u, l.fill = c, l.num = d, l.actors = f, U.drawTask(e, l, i, r), X.insert(l.x, l.y, l.x + l.width + i.taskMargin, 450);
870
- }
871
- }, "drawTasks"), $ = {
872
- setConf: W,
873
- draw: ee
874
- }, ne = {
875
- parser: v,
876
- db: j,
877
- renderer: $,
878
- styles: M,
879
- init: /* @__PURE__ */ t((e) => {
880
- $.setConf(e.journey), j.clear();
881
- }, "init")
882
- };
883
- //#endregion
884
- export { ne as diagram };