@ashwin_droid/notion-stream 1.0.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 (730) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +418 -0
  3. package/dist/_baseUniq-CT-tc-CG.mjs +477 -0
  4. package/dist/_baseUniq-DSwfPiGC.js +1 -0
  5. package/dist/abap-DV7Q1lGP.js +1 -0
  6. package/dist/abap-Y8Dl9g_6.mjs +6 -0
  7. package/dist/actionscript-3-DXOxkRa2.js +1 -0
  8. package/dist/actionscript-3-DZzbMeqX.mjs +6 -0
  9. package/dist/ada-D46EKCNf.js +1 -0
  10. package/dist/ada-vP6ak0IW.mjs +6 -0
  11. package/dist/andromeeda-BIpZ7gaU.mjs +4 -0
  12. package/dist/andromeeda-DVDxRwp5.js +1 -0
  13. package/dist/angular-html-DxvPVw44.mjs +32 -0
  14. package/dist/angular-html-JXV_E8IE.js +1 -0
  15. package/dist/angular-ts-CV6bdmcc.mjs +21 -0
  16. package/dist/angular-ts-ul8EvQZm.js +1 -0
  17. package/dist/apache-BUjz-sD2.mjs +6 -0
  18. package/dist/apache-DL1xuH1f.js +1 -0
  19. package/dist/apex-6AM9YZbQ.js +1 -0
  20. package/dist/apex-OyTfjCYK.mjs +6 -0
  21. package/dist/apl-BdW4yp7x.js +1 -0
  22. package/dist/apl-Cl3ewf1P.mjs +16 -0
  23. package/dist/applescript-BPx7YFFu.mjs +6 -0
  24. package/dist/applescript-COilsSrZ.js +1 -0
  25. package/dist/ara-B6Lpq1YJ.js +1 -0
  26. package/dist/ara-Z2fSOxSw.mjs +6 -0
  27. package/dist/arc-BBnIBs2j.js +1 -0
  28. package/dist/arc-DmoYXidQ.mjs +83 -0
  29. package/dist/architecture-U656AL7Q-C0ZB2O9M.js +1 -0
  30. package/dist/architecture-U656AL7Q-CMPtJMZ-.mjs +5 -0
  31. package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +36 -0
  32. package/dist/architectureDiagram-VXUJARFQ-BYzpbF40.mjs +4665 -0
  33. package/dist/asciidoc-B-pCoB3G.mjs +6 -0
  34. package/dist/asciidoc-DcKqW72n.js +1 -0
  35. package/dist/asm-BTWLY5ym.mjs +6 -0
  36. package/dist/asm-DYMFy-sD.js +1 -0
  37. package/dist/astro-BAqad-WM.js +1 -0
  38. package/dist/astro-CMhPddqn.mjs +18 -0
  39. package/dist/aurora-x-BwoVEUWZ.mjs +4 -0
  40. package/dist/aurora-x-C5IpmIOG.js +1 -0
  41. package/dist/awk-Fb0P9dkn.mjs +6 -0
  42. package/dist/awk-IEszImW6.js +1 -0
  43. package/dist/ayu-dark-CDpQIJw4.js +1 -0
  44. package/dist/ayu-dark-DG7aLdHp.mjs +4 -0
  45. package/dist/ballerina-Dr6dU4hP.js +1 -0
  46. package/dist/ballerina-oZK-YekG.mjs +6 -0
  47. package/dist/bat-0FvbqU9S.mjs +6 -0
  48. package/dist/bat-DGkUhhn2.js +1 -0
  49. package/dist/beancount-Bv1Sweoy.js +1 -0
  50. package/dist/beancount-DqJEb89h.mjs +6 -0
  51. package/dist/berry-DEMs4LK_.js +1 -0
  52. package/dist/berry-DODBq_Ff.mjs +6 -0
  53. package/dist/bibtex-BgA36Z3k.js +1 -0
  54. package/dist/bibtex-EULQRLY5.mjs +6 -0
  55. package/dist/bicep-BorU73w0.mjs +6 -0
  56. package/dist/bicep-DL0zb-7W.js +1 -0
  57. package/dist/blade-Cg1_QHbH.mjs +20 -0
  58. package/dist/blade-CgjUlvXO.js +1 -0
  59. package/dist/blockDiagram-VD42YOAC-DPVTCHn5.mjs +2265 -0
  60. package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +122 -0
  61. package/dist/bsl-Dy8wYKq-.mjs +8 -0
  62. package/dist/bsl-MeEzPwnu.js +1 -0
  63. package/dist/c-CtlmKnPF.js +1 -0
  64. package/dist/c-eeMepfLm.mjs +6 -0
  65. package/dist/c3-Bt581sCe.mjs +6 -0
  66. package/dist/c3-DtfRRWXN.js +1 -0
  67. package/dist/c4Diagram-YG6GDRKO-C2Y4q08p.mjs +1581 -0
  68. package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +10 -0
  69. package/dist/cadence-02UX7mW8.mjs +6 -0
  70. package/dist/cadence-DcbmM5v3.js +1 -0
  71. package/dist/cairo-Bl3vCTfQ.js +1 -0
  72. package/dist/cairo-DRXAUnCM.mjs +8 -0
  73. package/dist/catppuccin-frappe-Bn4lgmUk.js +1 -0
  74. package/dist/catppuccin-frappe-D3cH2rXe.mjs +4 -0
  75. package/dist/catppuccin-latte-BPtsb8jD.js +1 -0
  76. package/dist/catppuccin-latte-C0LRGUW4.mjs +4 -0
  77. package/dist/catppuccin-macchiato-BLfpQWhT.js +1 -0
  78. package/dist/catppuccin-macchiato-c5wQ11TT.mjs +4 -0
  79. package/dist/catppuccin-mocha-COMta283.js +1 -0
  80. package/dist/catppuccin-mocha-WMD6Qvya.mjs +4 -0
  81. package/dist/channel-6dUO0MQi.js +1 -0
  82. package/dist/channel-DVpqhnow.mjs +5 -0
  83. package/dist/chunk-4BX2VUAB-BwubFldI.js +1 -0
  84. package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +9 -0
  85. package/dist/chunk-55IACEB6-Du1Simcj.mjs +8 -0
  86. package/dist/chunk-55IACEB6-P_FVKIbW.js +1 -0
  87. package/dist/chunk-B4BG7PRW-BUKsa2yH.mjs +1376 -0
  88. package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +165 -0
  89. package/dist/chunk-DI55MBZ5-C9h0qLVI.mjs +1382 -0
  90. package/dist/chunk-DI55MBZ5-CMq-O8k2.js +220 -0
  91. package/dist/chunk-FMBD7UC4-48-zdz-1.js +15 -0
  92. package/dist/chunk-FMBD7UC4-C08-zA06.mjs +19 -0
  93. package/dist/chunk-QN33PNHL-B0sO38bZ.js +1 -0
  94. package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +20 -0
  95. package/dist/chunk-QZHKN3VN-DbO6TJSK.mjs +15 -0
  96. package/dist/chunk-QZHKN3VN-Dy2264ui.js +1 -0
  97. package/dist/chunk-TZMSLE5B-BPmI9i6R.mjs +64 -0
  98. package/dist/chunk-TZMSLE5B-COENnLAZ.js +1 -0
  99. package/dist/clarity-PKm5CwqM.mjs +6 -0
  100. package/dist/clarity-gPuvqtpF.js +1 -0
  101. package/dist/classDiagram-2ON5EDUG-CFFwYK87.js +1 -0
  102. package/dist/classDiagram-2ON5EDUG-mzvV1Ifg.mjs +16 -0
  103. package/dist/classDiagram-v2-WZHVMYZB-CFFwYK87.js +1 -0
  104. package/dist/classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs +16 -0
  105. package/dist/clojure-CXJfHrL3.mjs +6 -0
  106. package/dist/clojure-OUsr1SUl.js +1 -0
  107. package/dist/clone-B0UaPT2Z.js +1 -0
  108. package/dist/clone-KtLCwiKH.mjs +8 -0
  109. package/dist/cmake-BJz8BOTU.mjs +6 -0
  110. package/dist/cmake-jM6P58qY.js +1 -0
  111. package/dist/cobol-C86Guwll.mjs +10 -0
  112. package/dist/cobol-DReJOyN2.js +1 -0
  113. package/dist/code-block-37QAKDTI-CmykMxjQ.mjs +27 -0
  114. package/dist/code-block-37QAKDTI-sxlq94xm.js +2 -0
  115. package/dist/codeowners-Bt9yU6NX.mjs +6 -0
  116. package/dist/codeowners-QhPK6lIJ.js +1 -0
  117. package/dist/codeql-D9-TdUN8.js +1 -0
  118. package/dist/codeql-DHkodjjI.mjs +6 -0
  119. package/dist/coffee-CUyQUc3M.js +1 -0
  120. package/dist/coffee-Q-gFdR7e.mjs +8 -0
  121. package/dist/common-lisp-C77gR-8i.js +1 -0
  122. package/dist/common-lisp-EVqT9Zhp.mjs +6 -0
  123. package/dist/components/Block.d.ts +16 -0
  124. package/dist/components/FloatingToolbar.d.ts +8 -0
  125. package/dist/components/LinkModal.d.ts +8 -0
  126. package/dist/components/NotionStream.d.ts +3 -0
  127. package/dist/components/SlashMenu.d.ts +17 -0
  128. package/dist/components/blocks/BlockquoteBlock.d.ts +13 -0
  129. package/dist/components/blocks/CodeBlock.d.ts +14 -0
  130. package/dist/components/blocks/DividerBlock.d.ts +13 -0
  131. package/dist/components/blocks/HeadingBlock.d.ts +13 -0
  132. package/dist/components/blocks/ImageBlock.d.ts +13 -0
  133. package/dist/components/blocks/InlineEditableBlock.d.ts +18 -0
  134. package/dist/components/blocks/ListBlock.d.ts +13 -0
  135. package/dist/components/blocks/MathBlock.d.ts +14 -0
  136. package/dist/components/blocks/MermaidBlock.d.ts +14 -0
  137. package/dist/components/blocks/ParagraphBlock.d.ts +13 -0
  138. package/dist/components/blocks/TableBlock.d.ts +14 -0
  139. package/dist/components/blocks/index.d.ts +10 -0
  140. package/dist/coq-B0L9upzn.mjs +6 -0
  141. package/dist/coq-vlPdR5hP.js +1 -0
  142. package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +1 -0
  143. package/dist/cose-bilkent-S5V4N54A-BXcldnso.mjs +2605 -0
  144. package/dist/cpp-CGueNrnV.mjs +18 -0
  145. package/dist/cpp-ChNdME6I.js +1 -0
  146. package/dist/crystal-CVTji_sR.js +1 -0
  147. package/dist/crystal-CrVA7iLE.mjs +18 -0
  148. package/dist/csharp-BUkAIRXW.js +1 -0
  149. package/dist/csharp-C7yUs7-w.mjs +6 -0
  150. package/dist/css-CECN5uSL.mjs +6 -0
  151. package/dist/css-Do0mp2lm.js +1 -0
  152. package/dist/csv-CmYOceLb.mjs +6 -0
  153. package/dist/csv-DiEdJzSJ.js +1 -0
  154. package/dist/cue-D1vJRJEx.js +1 -0
  155. package/dist/cue-ZzumE7IT.mjs +6 -0
  156. package/dist/cypher-atSM3NsM.js +1 -0
  157. package/dist/cypher-jpdmjtA6.mjs +6 -0
  158. package/dist/cytoscape.esm-DkGgpG6d.js +331 -0
  159. package/dist/cytoscape.esm-ZmItrg9y.mjs +18731 -0
  160. package/dist/d-2qe3NhmZ.js +1 -0
  161. package/dist/d-CBagWSwH.mjs +6 -0
  162. package/dist/dagre-6UL2VRFP-By42zbLA.mjs +446 -0
  163. package/dist/dagre-6UL2VRFP-DCwfkcWi.js +4 -0
  164. package/dist/dark-plus-Cd5emcYO.js +1 -0
  165. package/dist/dark-plus-pUHDTVV0.mjs +4 -0
  166. package/dist/dart-6ObCrKr9.mjs +6 -0
  167. package/dist/dart-Ds0_0fwe.js +1 -0
  168. package/dist/dax-CcDT-8dH.mjs +6 -0
  169. package/dist/dax-DbkQa40E.js +1 -0
  170. package/dist/defaultLocale-BgPVtth8.mjs +171 -0
  171. package/dist/defaultLocale-C4wbwF1n.js +1 -0
  172. package/dist/desktop-B93p9R9O.mjs +6 -0
  173. package/dist/desktop-tn3MFXCZ.js +1 -0
  174. package/dist/diagram-PSM6KHXK-DIV3jw9d.mjs +534 -0
  175. package/dist/diagram-PSM6KHXK-hjXN9n1N.js +24 -0
  176. package/dist/diagram-QEK2KX5R-B04ODMim.js +43 -0
  177. package/dist/diagram-QEK2KX5R-Q0M2_YtR.mjs +221 -0
  178. package/dist/diagram-S2PKOQOG-BmCs4MZE.js +24 -0
  179. package/dist/diagram-S2PKOQOG-_WGA6s2-.mjs +143 -0
  180. package/dist/diff-BxzP2J8R.mjs +6 -0
  181. package/dist/diff-CA31fCOg.js +1 -0
  182. package/dist/docker-CsHqm9tx.mjs +6 -0
  183. package/dist/docker-zJpMwmYa.js +1 -0
  184. package/dist/dotenv-BMjVjUL1.mjs +6 -0
  185. package/dist/dotenv-DpcNCNek.js +1 -0
  186. package/dist/dracula-BNgwAJ-d.js +1 -0
  187. package/dist/dracula-BtZx2Kac.mjs +4 -0
  188. package/dist/dracula-soft-BHZ7sHFu.js +1 -0
  189. package/dist/dracula-soft-BKa-aqBv.mjs +4 -0
  190. package/dist/dream-maker-BkijXDkm.js +1 -0
  191. package/dist/dream-maker-PAx17jaB.mjs +6 -0
  192. package/dist/edge-B28yp_Zk.js +1 -0
  193. package/dist/edge-CBKv6mfK.mjs +12 -0
  194. package/dist/elixir-D7-1KNL2.js +1 -0
  195. package/dist/elixir-rttMGqaI.mjs +8 -0
  196. package/dist/elm-BkJa-nJb.js +1 -0
  197. package/dist/elm-DCe9MkDR.mjs +8 -0
  198. package/dist/emacs-lisp-C1UCIjUO.js +1 -0
  199. package/dist/emacs-lisp-Cfxdx5D-.mjs +6 -0
  200. package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +60 -0
  201. package/dist/erDiagram-Q2GNP2WA-CW0D_QGb.mjs +842 -0
  202. package/dist/erb-BTG3NMrz.mjs +10 -0
  203. package/dist/erb-DJ1tHjRo.js +1 -0
  204. package/dist/erlang-CxyQpgjh.mjs +8 -0
  205. package/dist/erlang-DztDLzIS.js +1 -0
  206. package/dist/everforest-dark-DMCBqXCK.mjs +4 -0
  207. package/dist/everforest-dark-_sBMomR1.js +1 -0
  208. package/dist/everforest-light-BbXl82Em.mjs +4 -0
  209. package/dist/everforest-light-H0xoYxl0.js +1 -0
  210. package/dist/fennel-Bz9-EMMc.js +1 -0
  211. package/dist/fennel-N4WcXuKx.mjs +6 -0
  212. package/dist/fish-BTDEUgqH.mjs +6 -0
  213. package/dist/fish-DwmQKRZi.js +1 -0
  214. package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +162 -0
  215. package/dist/flowDiagram-NV44I4VS-DVQ8Ntc4.mjs +1627 -0
  216. package/dist/fluent-BMXUxfv1.mjs +6 -0
  217. package/dist/fluent-CJtpNuaO.js +1 -0
  218. package/dist/fortran-fixed-form-CM5372im.js +1 -0
  219. package/dist/fortran-fixed-form-CYWf1Rx6.mjs +8 -0
  220. package/dist/fortran-free-form-Cs4ztolN.js +1 -0
  221. package/dist/fortran-free-form-CwqYvCLJ.mjs +6 -0
  222. package/dist/fsharp-C8GKou_e.js +1 -0
  223. package/dist/fsharp-DlcX35ZM.mjs +8 -0
  224. package/dist/ganttDiagram-JELNMOA3-Bk-dX6qT.mjs +2662 -0
  225. package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +267 -0
  226. package/dist/gdresource-Bx-5U3z2.js +1 -0
  227. package/dist/gdresource-CyVuoaDS.mjs +10 -0
  228. package/dist/gdscript-BifyeYhI.mjs +6 -0
  229. package/dist/gdscript-DSegQKMB.js +1 -0
  230. package/dist/gdshader-Bk8fF6yr.mjs +6 -0
  231. package/dist/gdshader-DsmqQl4t.js +1 -0
  232. package/dist/genie-Dy2rU8CF.js +1 -0
  233. package/dist/genie-DzUvd7U9.mjs +6 -0
  234. package/dist/gherkin-BmiEVBJ1.js +1 -0
  235. package/dist/gherkin-DHRaV0YP.mjs +6 -0
  236. package/dist/git-commit-B0NDtut1.js +1 -0
  237. package/dist/git-commit-MKnTTyU-.mjs +8 -0
  238. package/dist/git-rebase-CMl42lXc.mjs +8 -0
  239. package/dist/git-rebase-lJEbayNx.js +1 -0
  240. package/dist/gitGraph-F6HP7TQM-CsdwxYUE.mjs +5 -0
  241. package/dist/gitGraph-F6HP7TQM-DvIgo2TM.js +1 -0
  242. package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +712 -0
  243. package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +65 -0
  244. package/dist/github-dark-BKL9xNgN.js +1 -0
  245. package/dist/github-dark-DenFmJkN.mjs +4 -0
  246. package/dist/github-dark-default-BJPUVz4H.mjs +4 -0
  247. package/dist/github-dark-default-Dsv5MuSi.js +1 -0
  248. package/dist/github-dark-dimmed-CtB9hz8U.js +1 -0
  249. package/dist/github-dark-dimmed-DUshB20C.mjs +4 -0
  250. package/dist/github-dark-high-contrast-BqZVM-jF.js +1 -0
  251. package/dist/github-dark-high-contrast-D3aGCnF8.mjs +4 -0
  252. package/dist/github-light-BFTOhCbz.js +1 -0
  253. package/dist/github-light-JYsPkUQd.mjs +4 -0
  254. package/dist/github-light-default-BZoWH9dH.js +1 -0
  255. package/dist/github-light-default-D99KPAby.mjs +4 -0
  256. package/dist/github-light-high-contrast-BbmZE-Mp.mjs +4 -0
  257. package/dist/github-light-high-contrast-Ks3kPGJU.js +1 -0
  258. package/dist/gleam-Bv284lvN.mjs +6 -0
  259. package/dist/gleam-DHVuTCr7.js +1 -0
  260. package/dist/glimmer-js-C360zq_P.mjs +14 -0
  261. package/dist/glimmer-js-CxLlFUHs.js +1 -0
  262. package/dist/glimmer-ts-C8Spe63v.js +1 -0
  263. package/dist/glimmer-ts-CfTSEFGl.mjs +14 -0
  264. package/dist/glsl-BcHRsW10.js +1 -0
  265. package/dist/glsl-CwleMY6T.mjs +8 -0
  266. package/dist/gn-0WGnAyGi.js +1 -0
  267. package/dist/gn-XtJxiLa4.mjs +6 -0
  268. package/dist/gnuplot-CDPKvI9X.js +1 -0
  269. package/dist/gnuplot-yPG9-sE_.mjs +6 -0
  270. package/dist/go-ChxJuLYK.mjs +6 -0
  271. package/dist/go-epHseFUa.js +1 -0
  272. package/dist/graph-BNpx6ebg.js +1 -0
  273. package/dist/graph-C_T4ZBuC.mjs +381 -0
  274. package/dist/graphql-BO3Jc_L3.js +1 -0
  275. package/dist/graphql-C2GhtI7U.mjs +14 -0
  276. package/dist/groovy-CJQTphOW.mjs +6 -0
  277. package/dist/groovy-D7VuDBXz.js +1 -0
  278. package/dist/gruvbox-dark-hard-C5HOtKIh.mjs +4 -0
  279. package/dist/gruvbox-dark-hard-CUGefKS6.js +1 -0
  280. package/dist/gruvbox-dark-medium-BoKPlKfz.js +1 -0
  281. package/dist/gruvbox-dark-medium-FVgwJHuz.mjs +4 -0
  282. package/dist/gruvbox-dark-soft-B46F314v.mjs +4 -0
  283. package/dist/gruvbox-dark-soft-DSrhOWeL.js +1 -0
  284. package/dist/gruvbox-light-hard-CJD38wDZ.mjs +4 -0
  285. package/dist/gruvbox-light-hard-De4IuseP.js +1 -0
  286. package/dist/gruvbox-light-medium-BlIhMYTA.mjs +4 -0
  287. package/dist/gruvbox-light-medium-CzMY3IEJ.js +1 -0
  288. package/dist/gruvbox-light-soft-DoPHyLVZ.mjs +4 -0
  289. package/dist/gruvbox-light-soft-U4iAIpWZ.js +1 -0
  290. package/dist/hack-CdSL77Ey.mjs +10 -0
  291. package/dist/hack-Dr4YFULU.js +1 -0
  292. package/dist/haml-C1VBSiBb.mjs +10 -0
  293. package/dist/haml-DjC-8E5i.js +1 -0
  294. package/dist/handlebars-oLCVaT_d.mjs +14 -0
  295. package/dist/handlebars-vZrL3oRU.js +1 -0
  296. package/dist/haskell-BShesV2P.js +1 -0
  297. package/dist/haskell-WeIwNIP6.mjs +6 -0
  298. package/dist/haxe-Bo5XuRS0.js +1 -0
  299. package/dist/haxe-TztHsm5T.mjs +6 -0
  300. package/dist/hcl-CrZnvm-1.js +1 -0
  301. package/dist/hcl-D438OF-I.mjs +6 -0
  302. package/dist/hjson-CEESwTUP.js +1 -0
  303. package/dist/hjson-DYBUbqOl.mjs +6 -0
  304. package/dist/hlsl-Bk8TCZNL.mjs +6 -0
  305. package/dist/hlsl-CyvYRIb9.js +1 -0
  306. package/dist/hooks/useBlockState.d.ts +14 -0
  307. package/dist/hooks/useDiffReview.d.ts +26 -0
  308. package/dist/hooks/useMarkdownShortcuts.d.ts +23 -0
  309. package/dist/hooks/useStreamParser.d.ts +10 -0
  310. package/dist/houston-BDYrDoDW.mjs +4 -0
  311. package/dist/houston-T57H3gQZ.js +1 -0
  312. package/dist/html-Cub4lUvx.js +1 -0
  313. package/dist/html-DyXkxE0I.mjs +10 -0
  314. package/dist/html-derivative-BFG_GIVT.mjs +8 -0
  315. package/dist/html-derivative-DbGZSkO4.js +1 -0
  316. package/dist/http-J4eraUTU.js +1 -0
  317. package/dist/http-Xl8ey4Mx.mjs +14 -0
  318. package/dist/hurl-1DL8OH_r.js +1 -0
  319. package/dist/hurl-BP6fZ4DX.mjs +12 -0
  320. package/dist/hxml-DrnMPCCd.js +1 -0
  321. package/dist/hxml-L6NLEKuJ.mjs +8 -0
  322. package/dist/hy-Brt5EZ7-.mjs +6 -0
  323. package/dist/hy-a1E2Ed6P.js +1 -0
  324. package/dist/imba-CR1Q6r17.js +1 -0
  325. package/dist/imba-CimUv-Uh.mjs +6 -0
  326. package/dist/index-CkYZRBYn.js +676 -0
  327. package/dist/index-oe4HpmeG.mjs +58831 -0
  328. package/dist/index.d.ts +11 -0
  329. package/dist/index.js +1 -0
  330. package/dist/index.mjs +37 -0
  331. package/dist/info-NVLQJR56-B5gDnSIT.mjs +5 -0
  332. package/dist/info-NVLQJR56-BwFQRguW.js +1 -0
  333. package/dist/infoDiagram-WHAUD3N6-C-gzsm95.mjs +24 -0
  334. package/dist/infoDiagram-WHAUD3N6-CCb5k_S7.js +2 -0
  335. package/dist/ini-BZIuRIvJ.mjs +6 -0
  336. package/dist/ini-Dpu3Xy2p.js +1 -0
  337. package/dist/init-CHZsXQcr.js +1 -0
  338. package/dist/init-DjUOC4st.mjs +16 -0
  339. package/dist/java--6gf61wy.js +1 -0
  340. package/dist/java-DY6VlHhP.mjs +6 -0
  341. package/dist/javascript-C25yR2R2.mjs +6 -0
  342. package/dist/javascript-DgmXW4Ha.js +1 -0
  343. package/dist/jinja-CJxRwHVK.js +1 -0
  344. package/dist/jinja-Y2BGSZfx.mjs +11 -0
  345. package/dist/jison-CH6PZfPk.js +1 -0
  346. package/dist/jison-Dpv9Qnty.mjs +8 -0
  347. package/dist/journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs +836 -0
  348. package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +139 -0
  349. package/dist/json-DxJze_jm.mjs +6 -0
  350. package/dist/json-YkPizm35.js +1 -0
  351. package/dist/json5-BT4Fjg39.mjs +6 -0
  352. package/dist/json5-CCgFZiQn.js +1 -0
  353. package/dist/jsonc-CHjZD8gR.mjs +6 -0
  354. package/dist/jsonc-CKPHIcXW.js +1 -0
  355. package/dist/jsonl-BGuvDmy9.mjs +6 -0
  356. package/dist/jsonl-Dq56Hab-.js +1 -0
  357. package/dist/jsonnet-Bx2cfsXg.mjs +6 -0
  358. package/dist/jsonnet-Csh7E68F.js +1 -0
  359. package/dist/jssm-BcADi6EI.mjs +6 -0
  360. package/dist/jssm-D0M9iZPY.js +1 -0
  361. package/dist/jsx-BtKADgXT.mjs +6 -0
  362. package/dist/jsx-DLX6UGgg.js +1 -0
  363. package/dist/julia-DOO7NZhy.js +1 -0
  364. package/dist/julia-QwvTXUPU.mjs +16 -0
  365. package/dist/kanagawa-dragon-BJZF7xDr.js +1 -0
  366. package/dist/kanagawa-dragon-CiKur4Hl.mjs +4 -0
  367. package/dist/kanagawa-lotus-BKu-smKu.mjs +4 -0
  368. package/dist/kanagawa-lotus-BhgzmRV4.js +1 -0
  369. package/dist/kanagawa-wave-BgJip59C.js +1 -0
  370. package/dist/kanagawa-wave-CQwozSzG.mjs +4 -0
  371. package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +720 -0
  372. package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +89 -0
  373. package/dist/kdl-BNOv9TC3.mjs +6 -0
  374. package/dist/kdl-CDG1p2Qi.js +1 -0
  375. package/dist/kotlin-BHZjvNqT.js +1 -0
  376. package/dist/kotlin-ByBMgTeR.mjs +6 -0
  377. package/dist/kusto-C6kOQWT0.js +1 -0
  378. package/dist/kusto-DH_XitHS.mjs +6 -0
  379. package/dist/laserwave--izBLY1I.js +1 -0
  380. package/dist/laserwave-6a00oqik.mjs +4 -0
  381. package/dist/latex-BkUAME40.js +1 -0
  382. package/dist/latex-Dhl9FnIw.mjs +8 -0
  383. package/dist/layout-Cd98WJ7r.mjs +1441 -0
  384. package/dist/layout-CuWQnP5Y.js +1 -0
  385. package/dist/lean-BnVxaZxY.mjs +6 -0
  386. package/dist/lean-DvVQmxVK.js +1 -0
  387. package/dist/less-B1GLI2Di.mjs +6 -0
  388. package/dist/less-Dtg8mm6P.js +1 -0
  389. package/dist/light-plus-B5D0le0o.js +1 -0
  390. package/dist/light-plus-CZuVqSLX.mjs +4 -0
  391. package/dist/linear-DFDw13y6.js +1 -0
  392. package/dist/linear-SU4e8MRt.mjs +259 -0
  393. package/dist/liquid-D2h0MxA-.js +1 -0
  394. package/dist/liquid-nAv19oBv.mjs +14 -0
  395. package/dist/llvm-DcRvQ_r8.js +1 -0
  396. package/dist/llvm-co1rIKs3.mjs +6 -0
  397. package/dist/log-Al8wyEFV.mjs +6 -0
  398. package/dist/log-CjTZ0gSB.js +1 -0
  399. package/dist/logo-BAktp_5i.js +1 -0
  400. package/dist/logo-DBa4JDzV.mjs +6 -0
  401. package/dist/lua-7_7huFMq.js +1 -0
  402. package/dist/lua-CG3yDRXR.mjs +8 -0
  403. package/dist/luau-BMXmwtw0.js +1 -0
  404. package/dist/luau-UQyhudEE.mjs +6 -0
  405. package/dist/make-CsMclxtr.mjs +6 -0
  406. package/dist/make-NcdIe21U.js +1 -0
  407. package/dist/markdown-Byu9Sdmq.js +1 -0
  408. package/dist/markdown-CrScaQ96.mjs +6 -0
  409. package/dist/marko-BUUK5Bjn.js +1 -0
  410. package/dist/marko-BkS1PqTg.mjs +14 -0
  411. package/dist/material-theme-D6KBX41T.mjs +4 -0
  412. package/dist/material-theme-Dj0-OyRN.js +1 -0
  413. package/dist/material-theme-darker-CkRroheE.mjs +4 -0
  414. package/dist/material-theme-darker-Dvfs29ir.js +1 -0
  415. package/dist/material-theme-lighter-BUBw43Yz.mjs +4 -0
  416. package/dist/material-theme-lighter-EU3ZGl_r.js +1 -0
  417. package/dist/material-theme-ocean-ClGX14Ja.mjs +4 -0
  418. package/dist/material-theme-ocean-px_3Pwqa.js +1 -0
  419. package/dist/material-theme-palenight-38jxvsGX.js +1 -0
  420. package/dist/material-theme-palenight-C1RVm8K1.mjs +4 -0
  421. package/dist/matlab-BOAaUVP0.mjs +6 -0
  422. package/dist/matlab-CHTOL9Kx.js +1 -0
  423. package/dist/mdc-DYb1IR0A.js +1 -0
  424. package/dist/mdc-DjkQ6W2y.mjs +12 -0
  425. package/dist/mdx-BOhZZUJ8.mjs +6 -0
  426. package/dist/mdx-CjwI68TB.js +1 -0
  427. package/dist/mermaid-4DMBBIKO-BihEtyib.js +1 -0
  428. package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +4 -0
  429. package/dist/mermaid-BXSwQYo5.js +1 -0
  430. package/dist/mermaid-C3rz4dYh.mjs +6 -0
  431. package/dist/mermaid-parser.core-BHAgLMGa.js +128 -0
  432. package/dist/mermaid-parser.core-C8Sxzqul.mjs +15138 -0
  433. package/dist/min-C2k771MZ.mjs +38 -0
  434. package/dist/min-CppMRDFn.js +1 -0
  435. package/dist/min-dark-C7ak0t6c.mjs +4 -0
  436. package/dist/min-dark-tt5o_I5e.js +1 -0
  437. package/dist/min-light-CKFxVcPp.mjs +4 -0
  438. package/dist/min-light-tmTHl_CQ.js +1 -0
  439. package/dist/mindmap-definition-VGOIOE7T-BUd354uH.mjs +786 -0
  440. package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +68 -0
  441. package/dist/mipsasm-BSlRcFIy.js +1 -0
  442. package/dist/mipsasm-CTx18fBl.mjs +6 -0
  443. package/dist/mojo-CgKe2b8g.mjs +6 -0
  444. package/dist/mojo-D2tXKFxS.js +1 -0
  445. package/dist/monokai-C1KBYcO0.mjs +4 -0
  446. package/dist/monokai-DMIxv6MM.js +1 -0
  447. package/dist/moonbit-BweIWWUc.js +1 -0
  448. package/dist/moonbit-NVPuhMCm.mjs +6 -0
  449. package/dist/move-Bm1vlCWg.js +1 -0
  450. package/dist/move-F-dICmj2.mjs +6 -0
  451. package/dist/narrat-CBeKHgTl.js +1 -0
  452. package/dist/narrat-DmhDCBs-.mjs +6 -0
  453. package/dist/nextflow-CM8Ed358.js +1 -0
  454. package/dist/nextflow-DmSVRGjG.mjs +6 -0
  455. package/dist/nginx-Cy_SAdKw.mjs +8 -0
  456. package/dist/nginx-F8v4LkHE.js +1 -0
  457. package/dist/night-owl-BN78kThQ.js +1 -0
  458. package/dist/night-owl-Bm2rzalh.mjs +4 -0
  459. package/dist/nim-B4StNpZz.mjs +20 -0
  460. package/dist/nim-Bz82v_0I.js +1 -0
  461. package/dist/nix-BOiBJUDf.js +1 -0
  462. package/dist/nix-fTRXMGic.mjs +9 -0
  463. package/dist/nord-CC5OiUXg.mjs +4 -0
  464. package/dist/nord-Ca5AGUWc.js +1 -0
  465. package/dist/nushell-D8j3dhT-.mjs +6 -0
  466. package/dist/nushell-nGrB_wpI.js +1 -0
  467. package/dist/objective-c-Itk8tzmv.mjs +6 -0
  468. package/dist/objective-c-RjkWwFge.js +1 -0
  469. package/dist/objective-cpp-DGt5UKRO.mjs +6 -0
  470. package/dist/objective-cpp-HnfhWwRe.js +1 -0
  471. package/dist/ocaml-Cx8ewW_A.js +1 -0
  472. package/dist/ocaml-eSVK32Eg.mjs +6 -0
  473. package/dist/one-dark-pro-C09VQHwB.js +1 -0
  474. package/dist/one-dark-pro-DTA3VF0_.mjs +4 -0
  475. package/dist/one-light-020-h_lv.js +1 -0
  476. package/dist/one-light-D9sNaUtq.mjs +4 -0
  477. package/dist/openscad-D7eUrVPv.js +1 -0
  478. package/dist/openscad-Sp5uZ6f2.mjs +6 -0
  479. package/dist/ordinal-C0oynhte.mjs +61 -0
  480. package/dist/ordinal-CPpcdEvZ.js +1 -0
  481. package/dist/packet-BFZMPI3H-CFx3kSkL.js +1 -0
  482. package/dist/packet-BFZMPI3H-Cz_A86d3.mjs +5 -0
  483. package/dist/pascal-DBu9vQ2o.js +1 -0
  484. package/dist/pascal-xy8pJNns.mjs +6 -0
  485. package/dist/perl-BGWXz6Sf.js +1 -0
  486. package/dist/perl-BHbGvfXZ.mjs +16 -0
  487. package/dist/php-B7ztg6tr.mjs +18 -0
  488. package/dist/php-BMqBbP55.js +1 -0
  489. package/dist/pie-7BOR55EZ-B0-atE_o.mjs +5 -0
  490. package/dist/pie-7BOR55EZ-_1MqisBd.js +1 -0
  491. package/dist/pieDiagram-ADFJNKIX-Bg0_gu43.js +30 -0
  492. package/dist/pieDiagram-ADFJNKIX-lRs_rpwI.mjs +161 -0
  493. package/dist/pkl-C-zSNmaA.mjs +6 -0
  494. package/dist/pkl-Dvyry4Rm.js +1 -0
  495. package/dist/plastic-CSTz3KZp.mjs +4 -0
  496. package/dist/plastic-r5piqq-S.js +1 -0
  497. package/dist/plsql-IJkoPJ9P.js +1 -0
  498. package/dist/plsql-pVbGZfOv.mjs +6 -0
  499. package/dist/po-BNfHvqmm.mjs +6 -0
  500. package/dist/po-Rhu6MvnX.js +1 -0
  501. package/dist/poimandres-BLP3NNjc.js +1 -0
  502. package/dist/poimandres-C-VADXHD.mjs +4 -0
  503. package/dist/polar-BtWqSUq2.js +1 -0
  504. package/dist/polar-CAZahv3u.mjs +6 -0
  505. package/dist/postcss-05aHdL-n.mjs +6 -0
  506. package/dist/postcss-Dh97DcaJ.js +1 -0
  507. package/dist/powerquery-BGL6VIw7.js +1 -0
  508. package/dist/powerquery-DI9HkTvs.mjs +6 -0
  509. package/dist/powershell-BiEPMjy-.js +1 -0
  510. package/dist/powershell-Clc4ydu-.mjs +6 -0
  511. package/dist/prisma-Dp473sn0.js +1 -0
  512. package/dist/prisma-FZjmVtSl.mjs +6 -0
  513. package/dist/prolog-C5-yg4TO.mjs +6 -0
  514. package/dist/prolog-N1U-3UeF.js +1 -0
  515. package/dist/proto-C7QgialS.mjs +6 -0
  516. package/dist/proto-DMjUErYA.js +1 -0
  517. package/dist/pug-I1IOsXt4.mjs +12 -0
  518. package/dist/pug-bTUJx3Z-.js +1 -0
  519. package/dist/puppet-CUJHmnxV.mjs +6 -0
  520. package/dist/puppet-cDQP_ZC_.js +1 -0
  521. package/dist/purescript-DMxb59gF.js +1 -0
  522. package/dist/purescript-rUfGld-4.mjs +6 -0
  523. package/dist/python-BFNSHbwJ.mjs +6 -0
  524. package/dist/python-s9jfVbew.js +1 -0
  525. package/dist/qml-BxN9rt5O.mjs +8 -0
  526. package/dist/qml-CDzfIfOz.js +1 -0
  527. package/dist/qmldir-BInDYbpo.mjs +6 -0
  528. package/dist/qmldir-DNF9H2ir.js +1 -0
  529. package/dist/qss-AeJTysr_.mjs +6 -0
  530. package/dist/qss-DwA_oiAM.js +1 -0
  531. package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +7 -0
  532. package/dist/quadrantDiagram-AYHSOK5B-D9kypJt6.mjs +1024 -0
  533. package/dist/r-CSmzDPi7.mjs +6 -0
  534. package/dist/r-DAqIyZhh.js +1 -0
  535. package/dist/racket-B83wSAja.mjs +6 -0
  536. package/dist/racket-D4laxZit.js +1 -0
  537. package/dist/radar-NHE76QYJ-B-PvZD0K.mjs +5 -0
  538. package/dist/radar-NHE76QYJ-CdtC4C8F.js +1 -0
  539. package/dist/raku-DHySPsLw.js +1 -0
  540. package/dist/raku-nEQ4ZJJ7.mjs +6 -0
  541. package/dist/razor-BW3hho9N.mjs +10 -0
  542. package/dist/razor-DqXh8oK-.js +1 -0
  543. package/dist/red-7y8PH7HH.mjs +4 -0
  544. package/dist/red-BQGOv1D5.js +1 -0
  545. package/dist/reg-CevkCKuZ.js +1 -0
  546. package/dist/reg-m_s_Kiip.mjs +6 -0
  547. package/dist/regexp-BazyLpPg.mjs +6 -0
  548. package/dist/regexp-DabTWNLE.js +1 -0
  549. package/dist/rel-BS5APza7.js +1 -0
  550. package/dist/rel-BcRfyd6Q.mjs +6 -0
  551. package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +64 -0
  552. package/dist/requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs +852 -0
  553. package/dist/riscv-BnGFr6V7.js +1 -0
  554. package/dist/riscv-Ce8MAQLP.mjs +6 -0
  555. package/dist/rose-pine-BKc3yVeu.mjs +4 -0
  556. package/dist/rose-pine-CfBWm6WX.js +1 -0
  557. package/dist/rose-pine-dawn-BulJcPZT.mjs +4 -0
  558. package/dist/rose-pine-dawn-CaZ5I2lt.js +1 -0
  559. package/dist/rose-pine-moon-Cql8LDLp.js +1 -0
  560. package/dist/rose-pine-moon-j6jiXKV8.mjs +4 -0
  561. package/dist/rosmsg-C7VSFzUC.js +1 -0
  562. package/dist/rosmsg-Cz0w1km8.mjs +6 -0
  563. package/dist/rst-CmsHU1oq.js +1 -0
  564. package/dist/rst-Don6TZad.mjs +22 -0
  565. package/dist/ruby-DZp7Kthb.js +1 -0
  566. package/dist/ruby-DkElldd8.mjs +30 -0
  567. package/dist/rust-CLzF9zIN.mjs +6 -0
  568. package/dist/rust-CNeTMPbB.js +1 -0
  569. package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +10 -0
  570. package/dist/sankeyDiagram-TZEHDZUN-DprIPFbe.mjs +810 -0
  571. package/dist/sas-Dgv5I5OF.mjs +8 -0
  572. package/dist/sas-Du-NqkIN.js +1 -0
  573. package/dist/sass-DxHp5rTx.mjs +6 -0
  574. package/dist/sass-vyo-bUwh.js +1 -0
  575. package/dist/scala-D4grkFkl.mjs +6 -0
  576. package/dist/scala-ZSekD-8-.js +1 -0
  577. package/dist/scheme-BCRWuEm4.mjs +6 -0
  578. package/dist/scheme-vM0LdD-_.js +1 -0
  579. package/dist/scss-C9Hu3bmX.js +1 -0
  580. package/dist/scss-DGhQJWhB.mjs +8 -0
  581. package/dist/sdbl-B7T8abf4.mjs +6 -0
  582. package/dist/sdbl-DeWT5r4i.js +1 -0
  583. package/dist/sequenceDiagram-WL72ISMW-B4m4oag0.mjs +2518 -0
  584. package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +145 -0
  585. package/dist/shaderlab-DFNHwaQA.js +1 -0
  586. package/dist/shaderlab-D_9jCtR2.mjs +8 -0
  587. package/dist/shellscript-DYWjN7qW.js +1 -0
  588. package/dist/shellscript-InADTalH.mjs +6 -0
  589. package/dist/shellsession-5qZnCWz3.js +1 -0
  590. package/dist/shellsession-DtcyY-Wh.mjs +8 -0
  591. package/dist/slack-dark-akqwQ7ED.js +1 -0
  592. package/dist/slack-dark-i7wN4OET.mjs +4 -0
  593. package/dist/slack-ochin-BoQQWmTv.js +1 -0
  594. package/dist/slack-ochin-ndHf0LoP.mjs +4 -0
  595. package/dist/smalltalk-BNs6hxu4.js +1 -0
  596. package/dist/smalltalk-BlI1_OkM.mjs +6 -0
  597. package/dist/snazzy-light-BlSJXAu4.mjs +4 -0
  598. package/dist/snazzy-light-D_IwRieF.js +1 -0
  599. package/dist/solarized-dark-UTmkh7lw.mjs +4 -0
  600. package/dist/solarized-dark-gmm-WbDC.js +1 -0
  601. package/dist/solarized-light-BheCkDPT.mjs +4 -0
  602. package/dist/solarized-light-DzcxRSZP.js +1 -0
  603. package/dist/solidity-DUWnFhS6.mjs +6 -0
  604. package/dist/solidity-uQuzgchP.js +1 -0
  605. package/dist/soy-BztBK6ie.js +1 -0
  606. package/dist/soy-DwpxgXXf.mjs +8 -0
  607. package/dist/sparql-B6tDvEgg.mjs +8 -0
  608. package/dist/sparql-Ds57h-sT.js +1 -0
  609. package/dist/splunk-CRXR8A9s.mjs +6 -0
  610. package/dist/splunk-CWPivao_.js +1 -0
  611. package/dist/sql-Cn_v3PB0.mjs +6 -0
  612. package/dist/sql-DhUUVgH1.js +1 -0
  613. package/dist/ssh-config-B93wBIBa.js +1 -0
  614. package/dist/ssh-config-DP-hNVbF.mjs +6 -0
  615. package/dist/stata-B-erP_01.js +1 -0
  616. package/dist/stata-CuK25SjT.mjs +8 -0
  617. package/dist/stateDiagram-FKZM4ZOC-BD4tnS-V.js +1 -0
  618. package/dist/stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs +263 -0
  619. package/dist/stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs +16 -0
  620. package/dist/stateDiagram-v2-4FDKWEC3-sybMoxOk.js +1 -0
  621. package/dist/stylus-B64Bt0D4.js +1 -0
  622. package/dist/stylus-CyKEU1Ej.mjs +6 -0
  623. package/dist/svelte-CPZ3YGr5.js +1 -0
  624. package/dist/svelte-DA_HkuHw.mjs +14 -0
  625. package/dist/swift-9UzSvamq.mjs +6 -0
  626. package/dist/swift-BMbGdc3j.js +1 -0
  627. package/dist/synthwave-84-BBRLOmNT.js +1 -0
  628. package/dist/synthwave-84-NU3C_KFZ.mjs +4 -0
  629. package/dist/system-verilog-BCm7smPJ.mjs +6 -0
  630. package/dist/system-verilog-BFclLo9e.js +1 -0
  631. package/dist/systemd-C-4qm6XH.mjs +6 -0
  632. package/dist/systemd-Dtw7P4tb.js +1 -0
  633. package/dist/talonscript-CFF3LF_O.mjs +6 -0
  634. package/dist/talonscript-D8SvZJVc.js +1 -0
  635. package/dist/tasl--DC4oX-L.js +1 -0
  636. package/dist/tasl-Cg_WBUAe.mjs +6 -0
  637. package/dist/tcl-0Q0H86Yn.js +1 -0
  638. package/dist/tcl-DN7buRTF.mjs +6 -0
  639. package/dist/templ-DADdpFDY.js +1 -0
  640. package/dist/templ-YBaeMuI7.mjs +12 -0
  641. package/dist/terraform-C0RDrmWi.js +1 -0
  642. package/dist/terraform-DGvcn9zM.mjs +6 -0
  643. package/dist/tex-3QW4GAT7.js +1 -0
  644. package/dist/tex-4CAOFrzL.mjs +8 -0
  645. package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +61 -0
  646. package/dist/timeline-definition-IT6M3QCI-BFuQEeZP.mjs +801 -0
  647. package/dist/tokyo-night-DP4TmcQl.mjs +4 -0
  648. package/dist/tokyo-night-GOhjzM5y.js +1 -0
  649. package/dist/toml-DY62mUL_.mjs +6 -0
  650. package/dist/toml-Q64DoSvG.js +1 -0
  651. package/dist/treemap-KMMF4GRG-DTnRa789.js +1 -0
  652. package/dist/treemap-KMMF4GRG-gtrnY16v.mjs +5 -0
  653. package/dist/ts-tags-DAIOErdC.mjs +41 -0
  654. package/dist/ts-tags-DW4c6MY1.js +1 -0
  655. package/dist/tsv-BtvSkaG0.mjs +6 -0
  656. package/dist/tsv-DqNGnuVj.js +1 -0
  657. package/dist/tsx-B8rCNbgL.mjs +6 -0
  658. package/dist/tsx-DIpfUf9u.js +1 -0
  659. package/dist/turtle-DipIidr5.js +1 -0
  660. package/dist/turtle-_H59FV7D.mjs +6 -0
  661. package/dist/twig-CkOV7KOv.mjs +18 -0
  662. package/dist/twig-DE2P6STQ.js +1 -0
  663. package/dist/types/index.d.ts +163 -0
  664. package/dist/typescript-RycA9KXf.mjs +6 -0
  665. package/dist/typescript-b48wo4zk.js +1 -0
  666. package/dist/typespec-DWqp-kUU.mjs +6 -0
  667. package/dist/typespec-DqXOE4_L.js +1 -0
  668. package/dist/typst-Cqq4j4V-.js +1 -0
  669. package/dist/typst-D_1QKWns.mjs +6 -0
  670. package/dist/utils/cursor-utils.d.ts +28 -0
  671. package/dist/utils/diff.d.ts +74 -0
  672. package/dist/utils/format-selection.d.ts +8 -0
  673. package/dist/utils/markdown-parser.d.ts +3 -0
  674. package/dist/utils/span-dom.d.ts +21 -0
  675. package/dist/utils/spans.d.ts +18 -0
  676. package/dist/v-81C2s01-.js +1 -0
  677. package/dist/v-BPCNiyYe.mjs +6 -0
  678. package/dist/vala-CsAYdCD2.js +1 -0
  679. package/dist/vala-uxaPR7d1.mjs +6 -0
  680. package/dist/vb-AiTMb16X.js +1 -0
  681. package/dist/vb-D8_c5-KN.mjs +6 -0
  682. package/dist/verilog-AMohXZcN.js +1 -0
  683. package/dist/verilog-B-bybjPF.mjs +6 -0
  684. package/dist/vesper-B59Iw4gV.js +1 -0
  685. package/dist/vesper-BckBta1U.mjs +4 -0
  686. package/dist/vhdl-CUlNa8ac.mjs +6 -0
  687. package/dist/vhdl-DIdR1NA5.js +1 -0
  688. package/dist/viml-D01eKeA4.js +1 -0
  689. package/dist/viml-DsfA-sWm.mjs +6 -0
  690. package/dist/vitesse-black-BoGvW84i.mjs +4 -0
  691. package/dist/vitesse-black-MF-1S1MG.js +1 -0
  692. package/dist/vitesse-dark-Cym-eLtO.mjs +4 -0
  693. package/dist/vitesse-dark-SIffJYSe.js +1 -0
  694. package/dist/vitesse-light-CcmG315c.mjs +4 -0
  695. package/dist/vitesse-light-U63SkYGT.js +1 -0
  696. package/dist/vue-BHXwUkEL.js +1 -0
  697. package/dist/vue-Qp02Uakc.mjs +31 -0
  698. package/dist/vue-html-B4znhqmy.js +1 -0
  699. package/dist/vue-html-Cg0YpUCP.mjs +8 -0
  700. package/dist/vue-vine-CHNjSzYC.js +1 -0
  701. package/dist/vue-vine-PHeyj-D9.mjs +18 -0
  702. package/dist/vyper-CPQuu50u.mjs +6 -0
  703. package/dist/vyper-DTzyzn3a.js +1 -0
  704. package/dist/wasm-BBXxrAl7.mjs +6 -0
  705. package/dist/wasm-DQxwEHae.mjs +7 -0
  706. package/dist/wasm-Dp-QrJpp.js +1 -0
  707. package/dist/wasm-Dw4u1m6u.js +1 -0
  708. package/dist/wenyan-CRNx8UP3.js +1 -0
  709. package/dist/wenyan-pbVjoM9_.mjs +6 -0
  710. package/dist/wgsl-DF5qc9dd.js +1 -0
  711. package/dist/wgsl-DY4iK1q1.mjs +6 -0
  712. package/dist/wikitext-D7uzEIfK.js +1 -0
  713. package/dist/wikitext-Z-MoUasO.mjs +6 -0
  714. package/dist/wit-BjWgLsJj.js +1 -0
  715. package/dist/wit-CQMQOlTg.mjs +6 -0
  716. package/dist/wolfram-BR4t3Ffc.js +1 -0
  717. package/dist/wolfram-Dz4KXISs.mjs +6 -0
  718. package/dist/xml-Dwj6NfjK.mjs +8 -0
  719. package/dist/xml-Vhl3ZuN2.js +1 -0
  720. package/dist/xsl-B2ZJiKs2.js +1 -0
  721. package/dist/xsl-Pe9theme.mjs +8 -0
  722. package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +7 -0
  723. package/dist/xychartDiagram-PRI3JC2R-CjXiy6m0.mjs +1340 -0
  724. package/dist/yaml-DaO7k5B1.mjs +6 -0
  725. package/dist/yaml-XVBmpKh-.js +1 -0
  726. package/dist/zenscript-CxBjpf9c.mjs +6 -0
  727. package/dist/zenscript-fNvwKexi.js +1 -0
  728. package/dist/zig-BAyIAcWK.js +1 -0
  729. package/dist/zig-Vm0PO9wB.mjs +6 -0
  730. package/package.json +73 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ashwin_droid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,418 @@
1
+ # @ashwin_droid/notion-stream
2
+
3
+ A React component that converts streaming markdown into editable Notion-like blocks with real-time rendering. Perfect for AI chat interfaces, collaborative editors, and any application that needs to display and edit markdown content in a beautiful, block-based format.
4
+
5
+ ## Features
6
+
7
+ - **Streaming Support**: Renders markdown in real-time as it streams in (perfect for LLM responses)
8
+ - **Notion-like Editing**: Click-to-edit blocks with familiar keyboard shortcuts
9
+ - **Rich Block Types**: Paragraphs, headings (H1-H6), lists, blockquotes, code blocks, tables, images, math (LaTeX), Mermaid diagrams, and dividers
10
+ - **Inline Formatting**: Bold, italic, strikethrough, inline code, links, and inline math
11
+ - **Slash Commands**: Type `/` to quickly insert any block type
12
+ - **Markdown Shortcuts**: Type `#`, `-`, `1.`, `>`, `` ``` ``, `---` etc. to convert blocks
13
+ - **Dark Mode**: Built-in light/dark theme support with system preference detection
14
+ - **Diff Review**: Built-in utilities for comparing and reviewing markdown changes
15
+ - **Fully Typed**: Complete TypeScript support with exported types
16
+ - **Customizable**: Hooks for custom block rendering and slash commands
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ npm install @ashwin_droid/notion-stream
22
+ # or
23
+ yarn add @ashwin_droid/notion-stream
24
+ # or
25
+ pnpm add @ashwin_droid/notion-stream
26
+ ```
27
+
28
+ ## Quick Start
29
+
30
+ ```tsx
31
+ import { NotionStream } from '@ashwin_droid/notion-stream'
32
+ import '@ashwin_droid/notion-stream/styles.css'
33
+
34
+ function App() {
35
+ const [markdown, setMarkdown] = useState('# Hello World\n\nStart typing...')
36
+
37
+ return (
38
+ <NotionStream
39
+ markdown={markdown}
40
+ onMarkdownChange={setMarkdown}
41
+ />
42
+ )
43
+ }
44
+ ```
45
+
46
+ ## Usage with Streaming (AI Chat)
47
+
48
+ ```tsx
49
+ import { NotionStream } from '@ashwin_droid/notion-stream'
50
+ import '@ashwin_droid/notion-stream/styles.css'
51
+
52
+ function ChatMessage({ stream }: { stream: AsyncIterable<string> }) {
53
+ const [markdown, setMarkdown] = useState('')
54
+ const [isStreaming, setIsStreaming] = useState(true)
55
+
56
+ useEffect(() => {
57
+ async function consume() {
58
+ for await (const chunk of stream) {
59
+ setMarkdown(prev => prev + chunk)
60
+ }
61
+ setIsStreaming(false)
62
+ }
63
+ consume()
64
+ }, [stream])
65
+
66
+ return (
67
+ <NotionStream
68
+ markdown={markdown}
69
+ isStreaming={isStreaming}
70
+ onMarkdownChange={setMarkdown}
71
+ />
72
+ )
73
+ }
74
+ ```
75
+
76
+ ## Props
77
+
78
+ ### `NotionStreamProps`
79
+
80
+ | Prop | Type | Default | Description |
81
+ |------|------|---------|-------------|
82
+ | `markdown` | `string` | required | The markdown content to render |
83
+ | `isStreaming` | `boolean` | `false` | Whether content is currently streaming in |
84
+ | `onMarkdownChange` | `(markdown: string) => void` | - | Callback when content is edited |
85
+ | `className` | `string` | `''` | Additional CSS classes |
86
+ | `theme` | `'light' \| 'dark' \| 'system'` | auto-detect | Theme mode |
87
+ | `readonly` | `boolean` | `false` | Disable editing (viewer mode) |
88
+ | `hooks` | `BlockHooks` | - | Custom block hooks (see below) |
89
+
90
+ ## Block Types
91
+
92
+ NotionStream supports the following block types:
93
+
94
+ | Block | Markdown Syntax | Description |
95
+ |-------|----------------|-------------|
96
+ | Paragraph | Plain text | Default text block |
97
+ | Heading 1-6 | `# ` to `###### ` | Section headings |
98
+ | Bulleted List | `- ` or `* ` | Unordered list items |
99
+ | Numbered List | `1. ` | Ordered list items |
100
+ | Blockquote | `> ` | Quote blocks |
101
+ | Code Block | ` ``` ` | Syntax-highlighted code |
102
+ | Math Block | `$$` | LaTeX equations (KaTeX) |
103
+ | Mermaid | ` ```mermaid ` | Diagrams and flowcharts |
104
+ | Table | `\| ... \|` | Markdown tables |
105
+ | Image | `![alt](url)` | Image blocks |
106
+ | Divider | `---` | Horizontal rule |
107
+
108
+ ## Inline Formatting
109
+
110
+ | Style | Markdown | Result |
111
+ |-------|----------|--------|
112
+ | Bold | `**text**` | **text** |
113
+ | Italic | `*text*` or `_text_` | *text* |
114
+ | Strikethrough | `~~text~~` | ~~text~~ |
115
+ | Inline Code | `` `code` `` | `code` |
116
+ | Link | `[text](url)` | [text](url) |
117
+ | Inline Math | `$x^2$` | Rendered LaTeX |
118
+
119
+ ## Keyboard Shortcuts
120
+
121
+ ### Block Operations
122
+ - `Enter` - Create new block below (in paragraphs/lists)
123
+ - `Backspace` at start - Delete empty block or merge with previous
124
+ - `Tab` / `Shift+Tab` - Indent/outdent list items
125
+ - `/` on empty block - Open slash command menu
126
+
127
+ ### Markdown Shortcuts (type at start of empty block)
128
+ - `# ` - Heading 1
129
+ - `## ` - Heading 2
130
+ - `### ` - Heading 3
131
+ - `- ` or `* ` - Bulleted list
132
+ - `1. ` - Numbered list
133
+ - `> ` - Blockquote
134
+ - `` ``` `` - Code block
135
+ - `---` - Divider
136
+
137
+ ## Ref API
138
+
139
+ Access the imperative API using a ref:
140
+
141
+ ```tsx
142
+ import { useRef } from 'react'
143
+ import { NotionStream, NotionStreamRef } from '@ashwin_droid/notion-stream'
144
+
145
+ function Editor() {
146
+ const ref = useRef<NotionStreamRef>(null)
147
+
148
+ const addCodeBlock = () => {
149
+ ref.current?.insertBlockAfter(null, {
150
+ type: 'code',
151
+ language: 'typescript',
152
+ content: '// Your code here'
153
+ })
154
+ }
155
+
156
+ return (
157
+ <>
158
+ <button onClick={addCodeBlock}>Add Code Block</button>
159
+ <NotionStream ref={ref} markdown="" />
160
+ </>
161
+ )
162
+ }
163
+ ```
164
+
165
+ ### `NotionStreamRef` Methods
166
+
167
+ | Method | Signature | Description |
168
+ |--------|-----------|-------------|
169
+ | `updateBlock` | `(blockId: string, value: string \| Span[]) => void` | Update block content |
170
+ | `getBlock` | `(blockId: string) => Block \| null` | Get block by ID |
171
+ | `getAllBlocks` | `() => Block[]` | Get all blocks |
172
+ | `getMarkdown` | `() => string` | Get current markdown |
173
+ | `insertBlockAfter` | `(blockId: string \| null, block: BlockInsert) => string` | Insert new block |
174
+ | `deleteBlock` | `(blockId: string) => void` | Delete a block |
175
+ | `setBlockType` | `(blockId: string, type: BlockType, options?) => void` | Change block type |
176
+ | `indentListItem` | `(blockId: string) => void` | Indent list item |
177
+ | `outdentListItem` | `(blockId: string) => void` | Outdent list item |
178
+
179
+ ## Custom Block Rendering
180
+
181
+ Use hooks to customize block rendering:
182
+
183
+ ```tsx
184
+ import { NotionStream, BlockHooks, Block } from '@ashwin_droid/notion-stream'
185
+
186
+ const hooks: BlockHooks = {
187
+ renderBlock: (block: Block, defaultRender: () => React.ReactNode) => {
188
+ // Custom rendering for specific blocks
189
+ if (block.type === 'code' && block.language === 'custom') {
190
+ return <MyCustomCodeBlock code={block.content} />
191
+ }
192
+ // Fall back to default rendering
193
+ return defaultRender()
194
+ },
195
+
196
+ onBlockChange: (blockId: string, newValue: string | Span[], block: Block) => {
197
+ console.log('Block changed:', blockId, newValue)
198
+ }
199
+ }
200
+
201
+ function Editor() {
202
+ return <NotionStream markdown="" hooks={hooks} />
203
+ }
204
+ ```
205
+
206
+ ## Custom Slash Commands
207
+
208
+ Add your own slash commands:
209
+
210
+ ```tsx
211
+ const hooks: BlockHooks = {
212
+ getSlashCommands: ({ block }) => [
213
+ {
214
+ id: 'callout',
215
+ title: 'Callout',
216
+ description: 'Highlighted callout box',
217
+ group: 'Custom',
218
+ aliases: ['info', 'warning'],
219
+ icon: <InfoIcon />,
220
+ execute: (api, { blockId }) => {
221
+ api.setBlockType(blockId, 'blockquote')
222
+ api.updateBlock(blockId, [{ text: 'Callout content', style: 'plain' }])
223
+ }
224
+ }
225
+ ]
226
+ }
227
+ ```
228
+
229
+ ## Diff Review Utilities
230
+
231
+ Compare and review markdown changes:
232
+
233
+ ```tsx
234
+ import { useDiffReview } from '@ashwin_droid/notion-stream'
235
+
236
+ function DiffReviewer({ original, modified }: { original: string; modified: string }) {
237
+ const {
238
+ items, // Array of diff items
239
+ decisions, // Current accept/reject decisions
240
+ accept, // Accept a change
241
+ reject, // Reject a change
242
+ resultMarkdown, // Final markdown after applying decisions
243
+ stats // { added, removed, modified, accepted, rejected, pending }
244
+ } = useDiffReview({
245
+ baseMarkdown: original,
246
+ nextMarkdown: modified,
247
+ defaultDecision: 'unset'
248
+ })
249
+
250
+ return (
251
+ <div>
252
+ {items.map(item => (
253
+ <div key={item.id}>
254
+ {item.type === 'added' && <span className="text-green-500">+ {item.markdown}</span>}
255
+ {item.type === 'removed' && <span className="text-red-500">- {item.markdown}</span>}
256
+ {item.type !== 'unchanged' && (
257
+ <>
258
+ <button onClick={() => accept(item.id)}>Accept</button>
259
+ <button onClick={() => reject(item.id)}>Reject</button>
260
+ </>
261
+ )}
262
+ </div>
263
+ ))}
264
+ </div>
265
+ )
266
+ }
267
+ ```
268
+
269
+ ### Diff Utilities
270
+
271
+ | Function | Description |
272
+ |----------|-------------|
273
+ | `computeDiff(a, b)` | Word-level diff between strings |
274
+ | `computeCodeDiff(a, b)` | Line-level diff for code with inline highlights |
275
+ | `computeMarkdownBlockDiff(a, b)` | Block-level markdown diff |
276
+ | `computeMarkdownDiffReviewItems(a, b)` | Structured diff for review UI |
277
+ | `applyMarkdownDiffReview(items, decisions)` | Apply review decisions to get final markdown |
278
+
279
+ ## Low-Level Hooks
280
+
281
+ For advanced use cases, individual hooks are exported:
282
+
283
+ ```tsx
284
+ import {
285
+ useStreamParser, // Parse markdown into blocks
286
+ useBlockState, // Manage block state
287
+ useMarkdownShortcuts, // Handle markdown shortcuts
288
+ useDiffReview // Diff review utilities
289
+ } from '@ashwin_droid/notion-stream'
290
+ ```
291
+
292
+ ## Span Utilities
293
+
294
+ Work with inline formatting:
295
+
296
+ ```tsx
297
+ import {
298
+ parseMarkdownToSpans, // Parse inline markdown to spans
299
+ spansToMarkdown, // Convert spans back to markdown
300
+ spansToHtml, // Convert spans to HTML
301
+ renderSpans, // Render spans as React nodes
302
+ applyStyleToRange, // Apply style to text range
303
+ toggleStyle // Toggle inline style
304
+ } from '@ashwin_droid/notion-stream'
305
+ ```
306
+
307
+ ## Block Components
308
+
309
+ Individual block components are exported for custom layouts:
310
+
311
+ ```tsx
312
+ import {
313
+ ParagraphBlock,
314
+ HeadingBlock,
315
+ CodeBlock,
316
+ ImageBlock,
317
+ MathBlock,
318
+ MermaidBlock,
319
+ ListBlock,
320
+ BlockquoteBlock,
321
+ DividerBlock
322
+ } from '@ashwin_droid/notion-stream'
323
+ ```
324
+
325
+ ## Theming
326
+
327
+ ### Auto Theme Detection
328
+
329
+ By default, NotionStream detects the theme from:
330
+ 1. `.dark` class on `<html>` or `<body>` elements
331
+ 2. System preference via `prefers-color-scheme`
332
+
333
+ ### Explicit Theme
334
+
335
+ ```tsx
336
+ <NotionStream markdown="" theme="dark" />
337
+ <NotionStream markdown="" theme="light" />
338
+ <NotionStream markdown="" theme="system" />
339
+ ```
340
+
341
+ ### CSS Variables
342
+
343
+ Customize colors using CSS variables:
344
+
345
+ ```css
346
+ .notion-stream {
347
+ --notion-bg: #ffffff;
348
+ --notion-text: #1f2937;
349
+ --notion-text-secondary: #6b7280;
350
+ --notion-border: #e5e7eb;
351
+ /* ... see styles.css for all variables */
352
+ }
353
+
354
+ .notion-stream.dark {
355
+ --notion-bg: #1f2937;
356
+ --notion-text: #f3f4f6;
357
+ /* ... */
358
+ }
359
+ ```
360
+
361
+ ## TypeScript Types
362
+
363
+ All types are exported:
364
+
365
+ ```tsx
366
+ import type {
367
+ Block,
368
+ BlockType,
369
+ InlineBlock,
370
+ Span,
371
+ InlineStyle,
372
+ ListType,
373
+ BlockInsert,
374
+ SlashCommand,
375
+ NotionStreamProps,
376
+ NotionStreamRef,
377
+ BlockHooks,
378
+ BlockProps,
379
+ Theme,
380
+ TableAlign,
381
+ TableBlock,
382
+ DiffSegment,
383
+ CodeDiff,
384
+ MarkdownDiffReviewItem,
385
+ DiffReviewDecision
386
+ } from '@ashwin_droid/notion-stream'
387
+ ```
388
+
389
+ ## Peer Dependencies
390
+
391
+ This package requires:
392
+ - `react` >= 18.0.0
393
+ - `react-dom` >= 18.0.0
394
+
395
+ ## Dependencies
396
+
397
+ NotionStream uses:
398
+ - [streamdown](https://npmjs.com/package/streamdown) - Streaming markdown rendering
399
+ - [katex](https://katex.org/) - LaTeX math rendering
400
+ - [nanoid](https://github.com/ai/nanoid) - Unique ID generation
401
+
402
+ ## Browser Support
403
+
404
+ - Chrome/Edge (latest)
405
+ - Firefox (latest)
406
+ - Safari (latest)
407
+
408
+ ## License
409
+
410
+ MIT
411
+
412
+ ## Contributing
413
+
414
+ Contributions are welcome! Please open an issue or submit a pull request.
415
+
416
+ ## Acknowledgments
417
+
418
+ Inspired by Notion's block-based editing experience.