docmedown 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,3 @@
1
+ import "./chunk-FOHPRMQF-LRqOLsSw.mjs";
2
+ import { c as e } from "./mermaid-parser.core-BRHibdUE.mjs";
3
+ export { e as createTreeViewServices };
@@ -0,0 +1 @@
1
+ require("./chunk-FOHPRMQF-tmTlwTeH.js");const e=require("./mermaid-parser.core-BBApyu_y.js");exports.createTreeViewServices=e.c;
@@ -0,0 +1,3 @@
1
+ import "./chunk-FOHPRMQF-LRqOLsSw.mjs";
2
+ import { o as e } from "./mermaid-parser.core-BRHibdUE.mjs";
3
+ export { e as createTreemapServices };
@@ -0,0 +1 @@
1
+ require("./chunk-FOHPRMQF-tmTlwTeH.js");const e=require("./mermaid-parser.core-BBApyu_y.js");exports.createTreemapServices=e.o;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { DocConfig } from './types';
3
- import './styles/main.css';
1
+ import type React from "react";
2
+ import type { DocConfig } from "./types";
3
+ import "./styles/main.css";
4
4
  interface DocMeDownAppProps {
5
5
  config: DocConfig;
6
6
  basePath?: string;
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare const AppearanceMenu: React.FC;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export interface TabsProps {
3
3
  children?: React.ReactNode;
4
4
  defaultIndex?: number;
@@ -18,7 +18,7 @@ export interface CardProps {
18
18
  href?: string;
19
19
  icon?: React.ReactNode | string;
20
20
  badge?: string;
21
- badgeType?: 'info' | 'success' | 'warning' | 'new';
21
+ badgeType?: "info" | "success" | "warning" | "new";
22
22
  children?: React.ReactNode;
23
23
  }
24
24
  export declare const Card: React.FC<CardProps>;
@@ -28,7 +28,7 @@ export interface CardGridProps {
28
28
  }
29
29
  export declare const CardGrid: React.FC<CardGridProps>;
30
30
  export interface BadgeProps {
31
- type?: 'info' | 'success' | 'warning' | 'danger' | 'new';
31
+ type?: "info" | "success" | "warning" | "danger" | "new";
32
32
  children: React.ReactNode;
33
33
  }
34
34
  export declare const Badge: React.FC<BadgeProps>;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export declare const Content: React.FC;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from "react";
2
2
  export type ComponentMap = Record<string, React.ComponentType<any>>;
3
3
  export declare class ComponentRegistry {
4
4
  private static instance;
@@ -11,7 +11,9 @@ export declare class ComponentRegistry {
11
11
  get(name: string): React.ComponentType<any> | undefined;
12
12
  getAll(): ComponentMap;
13
13
  /**
14
- * Dynamically loads custom components from .dmd/components.js if available
14
+ * Registers embedded components after the runtime has published `window.React`.
15
+ * Offline sources are bundled at build time because Blob modules cannot resolve
16
+ * relative imports against the original `.dmd` directory.
15
17
  */
16
18
  loadDmdDirectory(basePath?: string): Promise<void>;
17
19
  }
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from "react";
2
2
  export declare const Layout: React.FC;
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ interface MermaidDiagramProps {
3
+ /** Raw Mermaid diagram definition (already decoded from the placeholder). */
4
+ source: string;
5
+ }
6
+ /**
7
+ * Interactive diagram viewer mounted onto every `mermaid` fence placeholder.
8
+ *
9
+ * - Renders through the locally bundled Mermaid with DocMeDown family tokens,
10
+ * so palettes match the active theme online and under file:///.
11
+ * - Re-renders automatically when the theme family or color mode changes.
12
+ * - Provides zoom controls, SVG download, fullscreen mode, and readable
13
+ * syntax-error reporting instead of Mermaid's injected error markup.
14
+ */
15
+ export declare const MermaidDiagram: React.FC<MermaidDiagramProps>;
16
+ export {};
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from "react";
2
2
  export declare const Navbar: React.FC;
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare const OfflineDownloadButton: React.FC;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from "react";
2
2
  export declare const Sidebar: React.FC;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { DocHeading } from '../types';
1
+ import type React from "react";
2
+ import type { DocHeading } from "../types";
3
3
  interface TOCProps {
4
4
  headings: DocHeading[];
5
5
  currentSlug: string;
@@ -0,0 +1,386 @@
1
+ import { z } from "zod";
2
+ /** Legacy accent presets accepted for one compatibility cycle. */
3
+ export declare const themePresetSchema: z.ZodEnum<{
4
+ indigo: "indigo";
5
+ emerald: "emerald";
6
+ sunset: "sunset";
7
+ violet: "violet";
8
+ rose: "rose";
9
+ slate: "slate";
10
+ cyberpunk: "cyberpunk";
11
+ }>;
12
+ /** Complete visual systems, not merely accent-color variations. */
13
+ export declare const themeFamilySchema: z.ZodEnum<{
14
+ atlas: "atlas";
15
+ blueprint: "blueprint";
16
+ terminal: "terminal";
17
+ editorial: "editorial";
18
+ }>;
19
+ export declare const themeDensitySchema: z.ZodEnum<{
20
+ comfortable: "comfortable";
21
+ compact: "compact";
22
+ }>;
23
+ export declare const colorModeSchema: z.ZodEnum<{
24
+ light: "light";
25
+ dark: "dark";
26
+ auto: "auto";
27
+ }>;
28
+ export declare const socialTypeSchema: z.ZodEnum<{
29
+ github: "github";
30
+ gitlab: "gitlab";
31
+ twitter: "twitter";
32
+ x: "x";
33
+ discord: "discord";
34
+ custom: "custom";
35
+ }>;
36
+ export declare const badgeTypeSchema: z.ZodEnum<{
37
+ info: "info";
38
+ success: "success";
39
+ warning: "warning";
40
+ new: "new";
41
+ }>;
42
+ export declare const navLinkSchema: z.ZodObject<{
43
+ label: z.ZodString;
44
+ href: z.ZodString;
45
+ external: z.ZodOptional<z.ZodBoolean>;
46
+ icon: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strict>;
48
+ export declare const socialLinkSchema: z.ZodObject<{
49
+ type: z.ZodEnum<{
50
+ github: "github";
51
+ gitlab: "gitlab";
52
+ twitter: "twitter";
53
+ x: "x";
54
+ discord: "discord";
55
+ custom: "custom";
56
+ }>;
57
+ url: z.ZodString;
58
+ label: z.ZodOptional<z.ZodString>;
59
+ icon: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strict>;
61
+ export declare const remoteSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ type: z.ZodLiteral<"github">;
63
+ repo: z.ZodString;
64
+ branch: z.ZodOptional<z.ZodString>;
65
+ docsDir: z.ZodOptional<z.ZodString>;
66
+ token: z.ZodOptional<z.ZodString>;
67
+ baseUrl: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ type: z.ZodLiteral<"gitlab">;
70
+ repo: z.ZodString;
71
+ branch: z.ZodOptional<z.ZodString>;
72
+ docsDir: z.ZodOptional<z.ZodString>;
73
+ token: z.ZodOptional<z.ZodString>;
74
+ baseUrl: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ type: z.ZodLiteral<"raw">;
77
+ baseUrl: z.ZodString;
78
+ branch: z.ZodOptional<z.ZodString>;
79
+ docsDir: z.ZodOptional<z.ZodString>;
80
+ token: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strict>], "type">;
82
+ export interface SidebarItemConfigShape {
83
+ title?: string;
84
+ path?: string;
85
+ slug?: string;
86
+ icon?: string;
87
+ badge?: string;
88
+ badgeType?: z.infer<typeof badgeTypeSchema>;
89
+ collapsed?: boolean;
90
+ children?: SidebarItemConfigShape[];
91
+ }
92
+ export declare const sidebarItemSchema: z.ZodType<SidebarItemConfigShape>;
93
+ export declare const docThemeConfigSchema: z.ZodObject<{
94
+ family: z.ZodOptional<z.ZodEnum<{
95
+ atlas: "atlas";
96
+ blueprint: "blueprint";
97
+ terminal: "terminal";
98
+ editorial: "editorial";
99
+ }>>;
100
+ density: z.ZodOptional<z.ZodEnum<{
101
+ comfortable: "comfortable";
102
+ compact: "compact";
103
+ }>>;
104
+ preset: z.ZodOptional<z.ZodEnum<{
105
+ indigo: "indigo";
106
+ emerald: "emerald";
107
+ sunset: "sunset";
108
+ violet: "violet";
109
+ rose: "rose";
110
+ slate: "slate";
111
+ cyberpunk: "cyberpunk";
112
+ }>>;
113
+ defaultMode: z.ZodOptional<z.ZodEnum<{
114
+ light: "light";
115
+ dark: "dark";
116
+ auto: "auto";
117
+ }>>;
118
+ accentColor: z.ZodOptional<z.ZodString>;
119
+ accentColorDark: z.ZodOptional<z.ZodString>;
120
+ fontFamily: z.ZodOptional<z.ZodString>;
121
+ codeTheme: z.ZodOptional<z.ZodEnum<{
122
+ github: "github";
123
+ dracula: "dracula";
124
+ "one-dark": "one-dark";
125
+ synthwave: "synthwave";
126
+ }>>;
127
+ logo: z.ZodOptional<z.ZodObject<{
128
+ light: z.ZodOptional<z.ZodString>;
129
+ dark: z.ZodOptional<z.ZodString>;
130
+ alt: z.ZodOptional<z.ZodString>;
131
+ text: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strict>>;
133
+ favicon: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strict>;
135
+ export declare const docSearchConfigSchema: z.ZodObject<{
136
+ enabled: z.ZodOptional<z.ZodBoolean>;
137
+ placeholder: z.ZodOptional<z.ZodString>;
138
+ maxResults: z.ZodOptional<z.ZodNumber>;
139
+ }, z.core.$strict>;
140
+ /**
141
+ * Schema for unmerged user configuration. It intentionally keeps `name` optional
142
+ * because callers may provide a partial override that inherits the default name.
143
+ */
144
+ export declare const docConfigSchema: z.ZodObject<{
145
+ $schema: z.ZodOptional<z.ZodString>;
146
+ name: z.ZodOptional<z.ZodString>;
147
+ tagline: z.ZodOptional<z.ZodString>;
148
+ description: z.ZodOptional<z.ZodString>;
149
+ version: z.ZodOptional<z.ZodString>;
150
+ rootDoc: z.ZodOptional<z.ZodString>;
151
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ type: z.ZodLiteral<"github">;
153
+ repo: z.ZodString;
154
+ branch: z.ZodOptional<z.ZodString>;
155
+ docsDir: z.ZodOptional<z.ZodString>;
156
+ token: z.ZodOptional<z.ZodString>;
157
+ baseUrl: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strict>, z.ZodObject<{
159
+ type: z.ZodLiteral<"gitlab">;
160
+ repo: z.ZodString;
161
+ branch: z.ZodOptional<z.ZodString>;
162
+ docsDir: z.ZodOptional<z.ZodString>;
163
+ token: z.ZodOptional<z.ZodString>;
164
+ baseUrl: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strict>, z.ZodObject<{
166
+ type: z.ZodLiteral<"raw">;
167
+ baseUrl: z.ZodString;
168
+ branch: z.ZodOptional<z.ZodString>;
169
+ docsDir: z.ZodOptional<z.ZodString>;
170
+ token: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strict>], "type">>;
172
+ theme: z.ZodOptional<z.ZodObject<{
173
+ family: z.ZodOptional<z.ZodEnum<{
174
+ atlas: "atlas";
175
+ blueprint: "blueprint";
176
+ terminal: "terminal";
177
+ editorial: "editorial";
178
+ }>>;
179
+ density: z.ZodOptional<z.ZodEnum<{
180
+ comfortable: "comfortable";
181
+ compact: "compact";
182
+ }>>;
183
+ preset: z.ZodOptional<z.ZodEnum<{
184
+ indigo: "indigo";
185
+ emerald: "emerald";
186
+ sunset: "sunset";
187
+ violet: "violet";
188
+ rose: "rose";
189
+ slate: "slate";
190
+ cyberpunk: "cyberpunk";
191
+ }>>;
192
+ defaultMode: z.ZodOptional<z.ZodEnum<{
193
+ light: "light";
194
+ dark: "dark";
195
+ auto: "auto";
196
+ }>>;
197
+ accentColor: z.ZodOptional<z.ZodString>;
198
+ accentColorDark: z.ZodOptional<z.ZodString>;
199
+ fontFamily: z.ZodOptional<z.ZodString>;
200
+ codeTheme: z.ZodOptional<z.ZodEnum<{
201
+ github: "github";
202
+ dracula: "dracula";
203
+ "one-dark": "one-dark";
204
+ synthwave: "synthwave";
205
+ }>>;
206
+ logo: z.ZodOptional<z.ZodObject<{
207
+ light: z.ZodOptional<z.ZodString>;
208
+ dark: z.ZodOptional<z.ZodString>;
209
+ alt: z.ZodOptional<z.ZodString>;
210
+ text: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$strict>>;
212
+ favicon: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>>;
214
+ nav: z.ZodOptional<z.ZodArray<z.ZodObject<{
215
+ label: z.ZodString;
216
+ href: z.ZodString;
217
+ external: z.ZodOptional<z.ZodBoolean>;
218
+ icon: z.ZodOptional<z.ZodString>;
219
+ }, z.core.$strict>>>;
220
+ socials: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ type: z.ZodEnum<{
222
+ github: "github";
223
+ gitlab: "gitlab";
224
+ twitter: "twitter";
225
+ x: "x";
226
+ discord: "discord";
227
+ custom: "custom";
228
+ }>;
229
+ url: z.ZodString;
230
+ label: z.ZodOptional<z.ZodString>;
231
+ icon: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>>>;
233
+ sidebar: z.ZodOptional<z.ZodArray<z.ZodType<SidebarItemConfigShape, unknown, z.core.$ZodTypeInternals<SidebarItemConfigShape, unknown>>>>;
234
+ autoIndex: z.ZodOptional<z.ZodObject<{
235
+ enabled: z.ZodOptional<z.ZodBoolean>;
236
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ sort: z.ZodOptional<z.ZodEnum<{
238
+ alphabetical: "alphabetical";
239
+ frontmatter: "frontmatter";
240
+ natural: "natural";
241
+ }>>;
242
+ defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
243
+ }, z.core.$strict>>;
244
+ search: z.ZodOptional<z.ZodObject<{
245
+ enabled: z.ZodOptional<z.ZodBoolean>;
246
+ placeholder: z.ZodOptional<z.ZodString>;
247
+ maxResults: z.ZodOptional<z.ZodNumber>;
248
+ }, z.core.$strict>>;
249
+ footer: z.ZodOptional<z.ZodObject<{
250
+ copyright: z.ZodOptional<z.ZodString>;
251
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
252
+ label: z.ZodString;
253
+ href: z.ZodString;
254
+ external: z.ZodOptional<z.ZodBoolean>;
255
+ icon: z.ZodOptional<z.ZodString>;
256
+ }, z.core.$strict>>>;
257
+ showBuiltWith: z.ZodOptional<z.ZodBoolean>;
258
+ }, z.core.$strict>>;
259
+ componentsUrl: z.ZodOptional<z.ZodString>;
260
+ editUrl: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strict>;
262
+ /** Schema for a final configuration after defaults have been applied. */
263
+ export declare const normalizedDocConfigSchema: z.ZodObject<{
264
+ $schema: z.ZodOptional<z.ZodString>;
265
+ tagline: z.ZodOptional<z.ZodString>;
266
+ description: z.ZodOptional<z.ZodString>;
267
+ version: z.ZodOptional<z.ZodString>;
268
+ rootDoc: z.ZodOptional<z.ZodString>;
269
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
270
+ type: z.ZodLiteral<"github">;
271
+ repo: z.ZodString;
272
+ branch: z.ZodOptional<z.ZodString>;
273
+ docsDir: z.ZodOptional<z.ZodString>;
274
+ token: z.ZodOptional<z.ZodString>;
275
+ baseUrl: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ type: z.ZodLiteral<"gitlab">;
278
+ repo: z.ZodString;
279
+ branch: z.ZodOptional<z.ZodString>;
280
+ docsDir: z.ZodOptional<z.ZodString>;
281
+ token: z.ZodOptional<z.ZodString>;
282
+ baseUrl: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ type: z.ZodLiteral<"raw">;
285
+ baseUrl: z.ZodString;
286
+ branch: z.ZodOptional<z.ZodString>;
287
+ docsDir: z.ZodOptional<z.ZodString>;
288
+ token: z.ZodOptional<z.ZodString>;
289
+ }, z.core.$strict>], "type">>;
290
+ theme: z.ZodOptional<z.ZodObject<{
291
+ family: z.ZodOptional<z.ZodEnum<{
292
+ atlas: "atlas";
293
+ blueprint: "blueprint";
294
+ terminal: "terminal";
295
+ editorial: "editorial";
296
+ }>>;
297
+ density: z.ZodOptional<z.ZodEnum<{
298
+ comfortable: "comfortable";
299
+ compact: "compact";
300
+ }>>;
301
+ preset: z.ZodOptional<z.ZodEnum<{
302
+ indigo: "indigo";
303
+ emerald: "emerald";
304
+ sunset: "sunset";
305
+ violet: "violet";
306
+ rose: "rose";
307
+ slate: "slate";
308
+ cyberpunk: "cyberpunk";
309
+ }>>;
310
+ defaultMode: z.ZodOptional<z.ZodEnum<{
311
+ light: "light";
312
+ dark: "dark";
313
+ auto: "auto";
314
+ }>>;
315
+ accentColor: z.ZodOptional<z.ZodString>;
316
+ accentColorDark: z.ZodOptional<z.ZodString>;
317
+ fontFamily: z.ZodOptional<z.ZodString>;
318
+ codeTheme: z.ZodOptional<z.ZodEnum<{
319
+ github: "github";
320
+ dracula: "dracula";
321
+ "one-dark": "one-dark";
322
+ synthwave: "synthwave";
323
+ }>>;
324
+ logo: z.ZodOptional<z.ZodObject<{
325
+ light: z.ZodOptional<z.ZodString>;
326
+ dark: z.ZodOptional<z.ZodString>;
327
+ alt: z.ZodOptional<z.ZodString>;
328
+ text: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strict>>;
330
+ favicon: z.ZodOptional<z.ZodString>;
331
+ }, z.core.$strict>>;
332
+ nav: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ label: z.ZodString;
334
+ href: z.ZodString;
335
+ external: z.ZodOptional<z.ZodBoolean>;
336
+ icon: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>>>;
338
+ socials: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ type: z.ZodEnum<{
340
+ github: "github";
341
+ gitlab: "gitlab";
342
+ twitter: "twitter";
343
+ x: "x";
344
+ discord: "discord";
345
+ custom: "custom";
346
+ }>;
347
+ url: z.ZodString;
348
+ label: z.ZodOptional<z.ZodString>;
349
+ icon: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>>>;
351
+ sidebar: z.ZodOptional<z.ZodArray<z.ZodType<SidebarItemConfigShape, unknown, z.core.$ZodTypeInternals<SidebarItemConfigShape, unknown>>>>;
352
+ autoIndex: z.ZodOptional<z.ZodObject<{
353
+ enabled: z.ZodOptional<z.ZodBoolean>;
354
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ sort: z.ZodOptional<z.ZodEnum<{
356
+ alphabetical: "alphabetical";
357
+ frontmatter: "frontmatter";
358
+ natural: "natural";
359
+ }>>;
360
+ defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
361
+ }, z.core.$strict>>;
362
+ search: z.ZodOptional<z.ZodObject<{
363
+ enabled: z.ZodOptional<z.ZodBoolean>;
364
+ placeholder: z.ZodOptional<z.ZodString>;
365
+ maxResults: z.ZodOptional<z.ZodNumber>;
366
+ }, z.core.$strict>>;
367
+ footer: z.ZodOptional<z.ZodObject<{
368
+ copyright: z.ZodOptional<z.ZodString>;
369
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ label: z.ZodString;
371
+ href: z.ZodString;
372
+ external: z.ZodOptional<z.ZodBoolean>;
373
+ icon: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strict>>>;
375
+ showBuiltWith: z.ZodOptional<z.ZodBoolean>;
376
+ }, z.core.$strict>>;
377
+ componentsUrl: z.ZodOptional<z.ZodString>;
378
+ editUrl: z.ZodOptional<z.ZodString>;
379
+ name: z.ZodString;
380
+ }, z.core.$strict>;
381
+ export type DocConfigInput = z.input<typeof docConfigSchema>;
382
+ export type DocConfigOutput = z.output<typeof normalizedDocConfigSchema>;
383
+ /** Formats Zod issues as stable dotted paths suitable for CLI and browser diagnostics. */
384
+ export declare function formatConfigIssues(error: z.ZodError): string;
385
+ /** Validates an unknown configuration value before it enters the runtime. */
386
+ export declare function parseDocConfig(input: unknown): DocConfigInput;
@@ -1,14 +1,21 @@
1
- import { DocConfig } from './types';
1
+ import type { DocConfig, PartialDocConfig } from "./types";
2
2
  export declare const DEFAULT_CONFIG: DocConfig;
3
3
  /**
4
- * Normalizes and merges user config with defaults
4
+ * Validates user-provided configuration, then deep-merges supported nested settings
5
+ * with runtime defaults. Keep validation before merging so misspelled or unsupported
6
+ * fields never become part of the effective runtime configuration.
5
7
  */
6
- export declare function normalizeConfig(userConfig?: Partial<DocConfig>): DocConfig;
8
+ export declare function normalizeConfig(userConfig?: unknown): DocConfig;
9
+ /** Parses JSON configuration and prefixes syntax or schema errors with its source. */
10
+ export declare function parseDocConfigJson(json: string, source: string): PartialDocConfig;
7
11
  /**
8
12
  * Attempts to load config from:
9
13
  * 1. window.__DOCMEDOWN_CONFIG__
10
14
  * 2. <script id="dmd-config" type="application/json">
11
15
  * 3. Fetching docs.json / dmd.json relative to the base
12
16
  * 4. Falling back to intelligent defaults
17
+ *
18
+ * Each source is independently validated. An invalid higher-precedence source is
19
+ * reported and skipped, allowing a lower-precedence valid source to take over.
13
20
  */
14
21
  export declare function loadDocConfig(basePath?: string): Promise<DocConfig>;
@@ -1,6 +1,8 @@
1
- import { DocMeDownInitOptions, DocMeDownInstance } from './types';
2
- export { DocMeDownApp } from './app';
3
- export { loadDocConfig } from './config';
4
- export * from './types';
5
- export * from './components/Builtins';
1
+ import type { DocMeDownInitOptions, DocMeDownInstance } from "./types";
2
+ export { DocMeDownApp } from "./app";
3
+ export * from "./components/Builtins";
4
+ export { loadDocConfig } from "./config";
5
+ export { docConfigSchema, docSearchConfigSchema, docThemeConfigSchema, formatConfigIssues, navLinkSchema, normalizedDocConfigSchema, parseDocConfig, remoteSourceSchema, sidebarItemSchema, socialLinkSchema, } from "./config-schema";
6
+ export { createOfflineDownload, downloadOfflineCopy, isOfflineDocumentation, sanitizeDownloadName, } from "./offline-export";
7
+ export * from "./types";
6
8
  export declare function initDocMeDown(options?: DocMeDownInitOptions): Promise<DocMeDownInstance | null>;
@@ -1,3 +1,3 @@
1
- import { SidebarTreeNode, SidebarItemConfig, DocFrontmatter } from '../types';
1
+ import type { DocFrontmatter, SidebarItemConfig, SidebarTreeNode } from "../types";
2
2
  export declare function formatTitleFromFilename(name: string): string;
3
3
  export declare function buildSidebarTree(files: string[], frontmatters?: Record<string, DocFrontmatter>, manualSidebar?: SidebarItemConfig[]): SidebarTreeNode[];
@@ -1,4 +1,4 @@
1
- import { DocManifest } from '../types';
1
+ import type { DocManifest } from "../types";
2
2
  export declare class LocalDocLoader {
3
3
  private embeddedManifest;
4
4
  private cache;
@@ -1,9 +1,9 @@
1
- import { RemoteSourceConfig } from '../types';
1
+ import type { GithubSourceConfig } from "../types";
2
2
  export declare class RemoteGithubLoader {
3
3
  private config;
4
4
  private cache;
5
5
  private treeCache;
6
- constructor(config: RemoteSourceConfig);
6
+ constructor(config: GithubSourceConfig);
7
7
  private getHeaders;
8
8
  discoverFiles(): Promise<string[]>;
9
9
  fetchDocContent(slug: string): Promise<string | null>;
@@ -1,8 +1,8 @@
1
- import { RemoteSourceConfig } from '../types';
1
+ import type { GitlabSourceConfig } from "../types";
2
2
  export declare class RemoteGitlabLoader {
3
3
  private config;
4
4
  private cache;
5
- constructor(config: RemoteSourceConfig);
5
+ constructor(config: GitlabSourceConfig);
6
6
  private getHeaders;
7
7
  discoverFiles(): Promise<string[]>;
8
8
  fetchDocContent(slug: string): Promise<string | null>;
@@ -1,5 +1,5 @@
1
1
  export interface CalloutInfo {
2
- type: 'note' | 'tip' | 'important' | 'warning' | 'caution';
2
+ type: "note" | "tip" | "important" | "warning" | "caution";
3
3
  title: string;
4
4
  content: string;
5
5
  }
@@ -1,19 +1,19 @@
1
- import 'prismjs/components/prism-clike';
2
- import 'prismjs/components/prism-javascript';
3
- import 'prismjs/components/prism-typescript';
4
- import 'prismjs/components/prism-jsx';
5
- import 'prismjs/components/prism-tsx';
6
- import 'prismjs/components/prism-bash';
7
- import 'prismjs/components/prism-json';
8
- import 'prismjs/components/prism-yaml';
9
- import 'prismjs/components/prism-css';
10
- import 'prismjs/components/prism-markdown';
11
- import 'prismjs/components/prism-python';
12
- import 'prismjs/components/prism-rust';
13
- import 'prismjs/components/prism-go';
14
- import 'prismjs/components/prism-sql';
15
- import 'prismjs/components/prism-docker';
16
- import 'prismjs/components/prism-diff';
1
+ import "prismjs/components/prism-clike";
2
+ import "prismjs/components/prism-javascript";
3
+ import "prismjs/components/prism-typescript";
4
+ import "prismjs/components/prism-jsx";
5
+ import "prismjs/components/prism-tsx";
6
+ import "prismjs/components/prism-bash";
7
+ import "prismjs/components/prism-json";
8
+ import "prismjs/components/prism-yaml";
9
+ import "prismjs/components/prism-css";
10
+ import "prismjs/components/prism-markdown";
11
+ import "prismjs/components/prism-python";
12
+ import "prismjs/components/prism-rust";
13
+ import "prismjs/components/prism-go";
14
+ import "prismjs/components/prism-sql";
15
+ import "prismjs/components/prism-docker";
16
+ import "prismjs/components/prism-diff";
17
17
  export declare function highlightCode(code: string, lang?: string): string;
18
18
  export declare function escapeHtml(str: string): string;
19
19
  export declare function renderCodeBlock(code: string, infoString?: string): string;