@jackuait/blok 0.20.0 → 0.21.1

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 (194) hide show
  1. package/dist/blok.cjs +1 -1
  2. package/dist/blok.iife.js +13 -13
  3. package/dist/blok.mjs +2 -2
  4. package/dist/blok.umd.js +41 -41
  5. package/dist/chunks/{APEv2Parser-dFboX-HT.mjs → APEv2Parser-WvRvu4zL.mjs} +5 -5
  6. package/dist/chunks/{AbstractID3Parser-qvoGRhB4.mjs → AbstractID3Parser-DM9acVTg.mjs} +5 -5
  7. package/dist/chunks/{AiffParser-DVe3cNKY.mjs → AiffParser-C_VaWeb5.mjs} +5 -5
  8. package/dist/chunks/{AsfParser-DrzvMHO9.mjs → AsfParser-CH5F_9Wp.mjs} +7 -7
  9. package/dist/chunks/{BasicParser-BLAlEKys.mjs → BasicParser-BFTgNkp-.mjs} +2 -2
  10. package/dist/chunks/{DsdiffParser-uZBv6Bc_.mjs → DsdiffParser-BAdYwB7y.mjs} +5 -5
  11. package/dist/chunks/{DsfParser-DLra1i8X.mjs → DsfParser-DWMLfBH1.mjs} +5 -5
  12. package/dist/chunks/{FlacParser-DGd7sQuD.mjs → FlacParser-BdKXrY7L.mjs} +6 -6
  13. package/dist/chunks/{ID3v1Parser-CJMR_CT_.mjs → ID3v1Parser-DoxlznrE.mjs} +3 -3
  14. package/dist/chunks/{ID3v2Parser-DIc0X1ee.mjs → ID3v2Parser-BIrxzjBm.mjs} +8 -8
  15. package/dist/chunks/{ID3v2Token-BqnbpNYB.mjs → ID3v2Token-D5v9lCfb.mjs} +3 -3
  16. package/dist/chunks/{MP4Parser-BqrCfJyp.mjs → MP4Parser-0KMJ-q2k.mjs} +6 -6
  17. package/dist/chunks/{MatroskaParser-CCbZmX7j.mjs → MatroskaParser-fxFuCddu.mjs} +5 -5
  18. package/dist/chunks/{MpegParser-C-6l3Wrf.mjs → MpegParser-R-6QiuhU.mjs} +6 -6
  19. package/dist/chunks/{MusepackParser-C_PhW_BV.mjs → MusepackParser-DFLoF47O.mjs} +5 -5
  20. package/dist/chunks/{OggParser-DJhcSH9h.mjs → OggParser-C1qP2qC7.mjs} +6 -6
  21. package/dist/chunks/{Util-B42SDwrM.mjs → Util-DiBcLCh8.mjs} +3 -3
  22. package/dist/chunks/{WavPackParser-CuHju62S.mjs → WavPackParser-Ck8xXsNf.mjs} +4 -4
  23. package/dist/chunks/{WaveParser-DvEqNnGt.mjs → WaveParser-hxQlWijT.mjs} +6 -6
  24. package/dist/chunks/{aiden0z-pptx-renderer.es-Dfc1LJvS.mjs → aiden0z-pptx-renderer.es-Y1OhS20L.mjs} +2 -2
  25. package/dist/chunks/{arc-8pYAfiNC.mjs → arc-Cu-PSKKo.mjs} +3 -3
  26. package/dist/chunks/architecture-7EHR7CIX-CGYZJshv.mjs +3 -0
  27. package/dist/chunks/{architectureDiagram-3BPJPVTR-BiykAn02.mjs → architectureDiagram-3BPJPVTR-BwW1QjqZ.mjs} +9 -9
  28. package/dist/chunks/{blockDiagram-GPEHLZMM-CozNEkEK.mjs → blockDiagram-GPEHLZMM-BAgQo64R.mjs} +13 -13
  29. package/dist/chunks/{blok-uBjibRae.cjs → blok-DrMzzi_n.cjs} +13 -13
  30. package/dist/chunks/{blok-C72PuzIT.mjs → blok-DxI1HQZC.mjs} +514 -390
  31. package/dist/chunks/{c4Diagram-AAUBKEIU-DN5cpztO.mjs → c4Diagram-AAUBKEIU-BQe-CDb8.mjs} +6 -6
  32. package/dist/chunks/channel-dq5ps1Yn.mjs +5 -0
  33. package/dist/chunks/{chunk-2J33WTMH-CHv7Whe1.mjs → chunk-2J33WTMH-CMyTQPbw.mjs} +3 -3
  34. package/dist/chunks/{chunk-3OPIFGDE-BRLjwZDG.mjs → chunk-3OPIFGDE-_lgEHnzc.mjs} +8 -8
  35. package/dist/chunks/{chunk-4BX2VUAB-CrVP7ooQ.mjs → chunk-4BX2VUAB-8PQvWn-w.mjs} +2 -2
  36. package/dist/chunks/{chunk-4EGX6M5U-t1h05MXS.mjs → chunk-4EGX6M5U-D4gnRnMD.mjs} +2 -2
  37. package/dist/chunks/{chunk-55IACEB6-Cq7FTvxb.mjs → chunk-55IACEB6-eQD6P1N8.mjs} +2 -2
  38. package/dist/chunks/{chunk-5DO6E6H7-Z2pYCl69.mjs → chunk-5DO6E6H7-CN3lZIoE.mjs} +2 -2
  39. package/dist/chunks/{chunk-5ZQYHXKU-fs0GqOvF.mjs → chunk-5ZQYHXKU-CPXVTQ_e.mjs} +43 -43
  40. package/dist/chunks/{chunk-727SXJPM-BKsM41W3.mjs → chunk-727SXJPM-DZUlPaIu.mjs} +9 -9
  41. package/dist/chunks/{chunk-AQP2D5EJ-YdXH_I-o.mjs → chunk-AQP2D5EJ-D7G094pS.mjs} +7 -7
  42. package/dist/chunks/{chunk-BR22UD5L-CqFDPfGM.mjs → chunk-BR22UD5L-B6NbSBJl.mjs} +2 -2
  43. package/dist/chunks/{chunk-BSJP7CBP-DpGSyAQh.mjs → chunk-BSJP7CBP-C7FGlEZG.mjs} +2 -2
  44. package/dist/chunks/{chunk-CSCIHK7Q-BO7tl9ID.mjs → chunk-CSCIHK7Q-C4qT3Yrk.mjs} +4 -4
  45. package/dist/chunks/{chunk-FHYWG6QK-5Het-98V.mjs → chunk-FHYWG6QK-CgSYG-YQ.mjs} +2 -2
  46. package/dist/chunks/{chunk-FMBD7UC4-P_kboMJT.mjs → chunk-FMBD7UC4-2p6fg26u.mjs} +2 -2
  47. package/dist/chunks/{chunk-KSCS5N6A-CvZAQU-1.mjs → chunk-KSCS5N6A-BVWs3LbG.mjs} +11 -11
  48. package/dist/chunks/{chunk-L5ZTLDWV-DZEL0gsI.mjs → chunk-L5ZTLDWV-BFEdycvM.mjs} +4 -4
  49. package/dist/chunks/{chunk-LZXEDZCA-CRJ7-DY6.mjs → chunk-LZXEDZCA-6drnUsNy.mjs} +8 -8
  50. package/dist/chunks/{chunk-MPE355IW-DLg3CsBw.mjs → chunk-MPE355IW-DHYWughe.mjs} +2 -2
  51. package/dist/chunks/{chunk-MZUSXYTE-CvsgXeJO.mjs → chunk-MZUSXYTE-BmUr1KX3.mjs} +2 -2
  52. package/dist/chunks/{chunk-N66VUXT2-DoC3ggTc.mjs → chunk-N66VUXT2-D_6jZ3Vo.mjs} +2 -2
  53. package/dist/chunks/{chunk-ND2GUHAM-BcJIrltI.mjs → chunk-ND2GUHAM-DooE8X6i.mjs} +4 -4
  54. package/dist/chunks/{chunk-NNHCCRGN-CH81dTHf.mjs → chunk-NNHCCRGN-rJnsUrWl.mjs} +1 -1
  55. package/dist/chunks/{chunk-NZK2D7GU-BnVJr7kf.mjs → chunk-NZK2D7GU-JW_qgPqa.mjs} +3 -3
  56. package/dist/chunks/{chunk-O5CBEL6O-BeYkA-8N.mjs → chunk-O5CBEL6O-GY6nZ-N7.mjs} +16 -16
  57. package/dist/chunks/{chunk-PUPMXCY4-D3Ub4pDo.mjs → chunk-PUPMXCY4-DCIdSRFi.mjs} +2 -2
  58. package/dist/chunks/{chunk-QZHKN3VN-ChiFJWT0.mjs → chunk-QZHKN3VN-C3N0_vEC.mjs} +2 -2
  59. package/dist/chunks/{chunk-UIBZB4QT-BwApNyrQ.mjs → chunk-UIBZB4QT-pyTElNc2.mjs} +2 -2
  60. package/dist/chunks/{chunk-WCWK7LTN-D4OBOUIK.mjs → chunk-WCWK7LTN-ClqBpBku.mjs} +2 -2
  61. package/dist/chunks/{chunk-WU5MYG2G-wN4cJZ_G.mjs → chunk-WU5MYG2G-DLQN-5vb.mjs} +3 -3
  62. package/dist/chunks/{chunk-XPW4576I-yOZxg2iY.mjs → chunk-XPW4576I-IlnbQHaA.mjs} +2 -2
  63. package/dist/chunks/classDiagram-4FO5ZUOK-C3CxSQxy.mjs +29 -0
  64. package/dist/chunks/classDiagram-v2-Q7XG4LA2-Ci_JeHz0.mjs +29 -0
  65. package/dist/chunks/{constants-vvNFp6FG.mjs → constants-0pfHI3Vc.mjs} +1 -1
  66. package/dist/chunks/{constants-PI1xjAeG.cjs → constants-DGJO_Nr-.cjs} +1 -1
  67. package/dist/chunks/{core-DeCMWrgN.mjs → core-CqiEzfU3.mjs} +4 -4
  68. package/dist/chunks/{core-CJGckLsY.mjs → core-DdDpt2u7.mjs} +31 -31
  69. package/dist/chunks/{cose-bilkent-S5V4N54A-NIONAJnp.mjs → cose-bilkent-S5V4N54A-BronfFB-.mjs} +3 -3
  70. package/dist/chunks/{cytoscape.esm-fziZOrCG.mjs → cytoscape.esm-QxDq63HI.mjs} +1 -1
  71. package/dist/chunks/{dagre-BM42HDAG-DcOrN3pc.mjs → dagre-BM42HDAG-B4WVdKOZ.mjs} +14 -14
  72. package/dist/chunks/{dagre-CILRucyd.mjs → dagre-DzOGad9N.mjs} +107 -107
  73. package/dist/chunks/default-qigT1Xpq.mjs +4 -0
  74. package/dist/chunks/{defaultLocale-C2VD4mLA.mjs → defaultLocale-BJwYPC-h.mjs} +12 -12
  75. package/dist/chunks/{diagram-2AECGRRQ-DDwBTlvz.mjs → diagram-2AECGRRQ-C22ThgiO.mjs} +7 -7
  76. package/dist/chunks/{diagram-5GNKFQAL-1sbWUr5e.mjs → diagram-5GNKFQAL-COelHuJn.mjs} +8 -8
  77. package/dist/chunks/{diagram-KO2AKTUF-DhTFFKgx.mjs → diagram-KO2AKTUF-CjLVtM94.mjs} +7 -7
  78. package/dist/chunks/{diagram-LMA3HP47-DRr_84ZZ.mjs → diagram-LMA3HP47-DqkuYFi9.mjs} +7 -7
  79. package/dist/chunks/{diagram-OG6HWLK6-C_5eu9Kf.mjs → diagram-OG6HWLK6-390_YOO-.mjs} +32 -32
  80. package/dist/chunks/{dist-DRqr67zQ.mjs → dist-CCXeNeCQ.mjs} +2 -2
  81. package/dist/chunks/{docx-preview-CQ4QUFrd.mjs → docx-preview-ulpDsaxt.mjs} +2 -2
  82. package/dist/chunks/{erDiagram-TEJ5UH35-C3Ohfkqu.mjs → erDiagram-TEJ5UH35-BH0f96Pn.mjs} +14 -14
  83. package/dist/chunks/eventmodeling-FCH6USID-nCBtSITo.mjs +3 -0
  84. package/dist/chunks/{flowDiagram-I6XJVG4X-DyXB0QVM.mjs → flowDiagram-I6XJVG4X-kZaqJYK1.mjs} +17 -17
  85. package/dist/chunks/{ganttDiagram-6RSMTGT7-82Iyg78i.mjs → ganttDiagram-6RSMTGT7-C3uQIARG.mjs} +27 -27
  86. package/dist/chunks/gitGraph-WXDBUCRP-CN_MBj94.mjs +3 -0
  87. package/dist/chunks/{gitGraphDiagram-PVQCEYII-D9V6dxzm.mjs → gitGraphDiagram-PVQCEYII-DQSTvBjy.mjs} +7 -7
  88. package/dist/chunks/{graphlib-RxhPMq8I.mjs → graphlib-B0ANG2M6.mjs} +135 -135
  89. package/dist/chunks/{i18next-C2REZNw2.mjs → i18next-gGTtSkQg.mjs} +1 -1
  90. package/dist/chunks/{i18next-loader-Dh4fP9we.mjs → i18next-loader-DfIonnVO.mjs} +1 -1
  91. package/dist/chunks/info-J43DQDTF-xmJNmT0e.mjs +3 -0
  92. package/dist/chunks/{infoDiagram-5YYISTIA-BxEJ_ib3.mjs → infoDiagram-5YYISTIA-CGpT_mPZ.mjs} +5 -5
  93. package/dist/chunks/{init-BR8veUec.mjs → init-hkDiJKhJ.mjs} +1 -1
  94. package/dist/chunks/{ishikawaDiagram-YF4QCWOH-CXe2kJsO.mjs → ishikawaDiagram-YF4QCWOH-Ch9fmsWb.mjs} +6 -6
  95. package/dist/chunks/{journeyDiagram-JHISSGLW-DBhSi7Qg.mjs → journeyDiagram-JHISSGLW-CWv40lgD.mjs} +6 -6
  96. package/dist/chunks/{jszip.min-BsbMNjJg.mjs → jszip.min-DoBCcllU.mjs} +1 -1
  97. package/dist/chunks/{kanban-definition-UN3LZRKU-CE4yr6J6.mjs → kanban-definition-UN3LZRKU-DSbXvrBB.mjs} +11 -11
  98. package/dist/chunks/{katex-DxQaNCxg.mjs → katex-BIACU78Y.mjs} +1 -1
  99. package/dist/chunks/{line-CQUUULPd.mjs → line-DU9tI1Tb.mjs} +4 -4
  100. package/dist/chunks/{linear-CAfvVXJc.mjs → linear-CPgdjDZh.mjs} +23 -23
  101. package/dist/chunks/{mdast-util-math-Cpp9XOMP.mjs → mdast-util-math-BNabERqA.mjs} +3 -3
  102. package/dist/chunks/{mermaid-parser.core-B92FGYsA.mjs → mermaid-parser.core-CRFj5ZQJ.mjs} +22 -22
  103. package/dist/chunks/{mermaid.core-BA9GkGKf.mjs → mermaid.core-D_2I8mjo.mjs} +52 -52
  104. package/dist/chunks/{micromark-extension-math-COSLlhTC.mjs → micromark-extension-math-CJDP6iIU.mjs} +6 -6
  105. package/dist/chunks/{micromark-factory-space-CLWSfTEG.mjs → micromark-factory-space-C6wz33de.mjs} +2 -2
  106. package/dist/chunks/{mindmap-definition-RKZ34NQL-Dklc3Py2.mjs → mindmap-definition-RKZ34NQL-Bh7eb0sP.mjs} +16 -16
  107. package/dist/chunks/{native-BE2uW7dn.mjs → native-RS5RJIVO.mjs} +1 -1
  108. package/dist/chunks/{ordinal-Qrn6pSTz.mjs → ordinal-FCgpEo3E.mjs} +3 -3
  109. package/dist/chunks/packet-YPE3B663-3bNcBJRE.mjs +3 -0
  110. package/dist/chunks/{path-CMz47XM0.mjs → path-CCKeP0zq.mjs} +3 -3
  111. package/dist/chunks/pie-LRSECV5Y-YTwc-ZG1.mjs +3 -0
  112. package/dist/chunks/{pieDiagram-4H26LBE5-DgCAhu_N.mjs → pieDiagram-4H26LBE5-Bn2IEjeH.mjs} +14 -14
  113. package/dist/chunks/{prism-bash-C0O3w7uz.mjs → prism-bash-D4zr_u8t.mjs} +1 -1
  114. package/dist/chunks/{prism-cpp-2GQhW27l.mjs → prism-cpp-CrBJjuu5.mjs} +1 -1
  115. package/dist/chunks/{prism-csharp-DL7dZG1j.mjs → prism-csharp-lrMxvYpL.mjs} +1 -1
  116. package/dist/chunks/{prism-css-CNvzB07F.mjs → prism-css-VQTID_HR.mjs} +1 -1
  117. package/dist/chunks/{prism-dart-DfjFPoDv.mjs → prism-dart-Q-9Z_W9B.mjs} +1 -1
  118. package/dist/chunks/{prism-docker-BYbfweTi.mjs → prism-docker-DWAQ3dDD.mjs} +1 -1
  119. package/dist/chunks/{prism-java-DVDstRX2.mjs → prism-java-_m72Vn1f.mjs} +1 -1
  120. package/dist/chunks/{prism-kotlin-B4yZP901.mjs → prism-kotlin-BTT9anu1.mjs} +1 -1
  121. package/dist/chunks/{prism-latex-D6GsLRnS.mjs → prism-latex-CL8zDJwm.mjs} +1 -1
  122. package/dist/chunks/{prism-lua-CJX1SQiz.mjs → prism-lua-D6JJ7p-A.mjs} +1 -1
  123. package/dist/chunks/{prism-markdown-C4FwQHMu.mjs → prism-markdown-D6D8BprH.mjs} +1 -1
  124. package/dist/chunks/{prism-markup-templating-CmFWyrMp.mjs → prism-markup-templating-DfRjv0mn.mjs} +1 -1
  125. package/dist/chunks/{prism-php-D1En1wGd.mjs → prism-php-DffX-wRi.mjs} +1 -1
  126. package/dist/chunks/{prism-r-DmduEoWu.mjs → prism-r-CU9se1Na.mjs} +1 -1
  127. package/dist/chunks/{prism-ruby-BX9M-ggZ.mjs → prism-ruby-DuQ4syPd.mjs} +1 -1
  128. package/dist/chunks/{prism-rust-CW_lhKyK.mjs → prism-rust-DRurCx4W.mjs} +1 -1
  129. package/dist/chunks/{prism-sql-CsK4eHq9.mjs → prism-sql-Au3VVcw1.mjs} +1 -1
  130. package/dist/chunks/{prism-typescript-Ca1YH5jC.mjs → prism-typescript-BKj96rmj.mjs} +1 -1
  131. package/dist/chunks/{prism-yaml-CA6Sp5jk.mjs → prism-yaml-Bk31kvSd.mjs} +1 -1
  132. package/dist/chunks/{purify.es-W8MRy_-c.mjs → purify.es-Cg3Sx1In.mjs} +1 -1
  133. package/dist/chunks/{quadrantDiagram-W4KKPZXB-BwDXU7bs.mjs → quadrantDiagram-W4KKPZXB-CGpTgKv9.mjs} +4 -4
  134. package/dist/chunks/radar-GUYGQ44K-vfGwdTFY.mjs +3 -0
  135. package/dist/chunks/{requirementDiagram-4Y6WPE33-C8uQNZti.mjs → requirementDiagram-4Y6WPE33-CdEklBE5.mjs} +13 -13
  136. package/dist/chunks/{rough.esm-BMiXn97a.mjs → rough.esm-D0yWqsMu.mjs} +1 -1
  137. package/dist/chunks/{sanitize-url-Pw_yecwg.mjs → sanitize-url-DzTIH3XF.mjs} +70 -70
  138. package/dist/chunks/{sankeyDiagram-5OEKKPKP-BJwtjvLG.mjs → sankeyDiagram-5OEKKPKP-C7B8TYyO.mjs} +18 -18
  139. package/dist/chunks/{sequenceDiagram-3UESZ5HK-BHEbMtdM.mjs → sequenceDiagram-3UESZ5HK-Wb1gzfDh.mjs} +8 -8
  140. package/dist/chunks/{src-uHD1i8ix.mjs → src-BMRCbUmP.mjs} +86 -86
  141. package/dist/chunks/{stateDiagram-AJRCARHV-D2di7cb4.mjs → stateDiagram-AJRCARHV-B1UbFikz.mjs} +17 -17
  142. package/dist/chunks/stateDiagram-v2-BHNVJYJU-D6E4HlFi.mjs +27 -0
  143. package/dist/chunks/{timeline-definition-PNZ67QCA-CkldAvjX.mjs → timeline-definition-PNZ67QCA-Dr0oEljt.mjs} +6 -6
  144. package/dist/chunks/{tools-BQo4iaMe.mjs → tools-DqspF7V9.mjs} +482 -447
  145. package/dist/chunks/{tools-B6rEBe-4.cjs → tools-sHA-2cBM.cjs} +3 -3
  146. package/dist/chunks/treeView-BLDUP644-BptrPFA0.mjs +3 -0
  147. package/dist/chunks/treemap-LRROVOQU-BbiNBKy3.mjs +3 -0
  148. package/dist/chunks/{types-BdXoqAkw.mjs → types-gj36fzRQ.mjs} +1 -1
  149. package/dist/chunks/{vennDiagram-CIIHVFJN-BuYgzRtw.mjs → vennDiagram-CIIHVFJN-Bc4yalKA.mjs} +7 -7
  150. package/dist/chunks/wardley-L42UT6IY-Ck6iMjTG.mjs +3 -0
  151. package/dist/chunks/{wardleyDiagram-YWT4CUSO-CN5Jfm2D.mjs → wardleyDiagram-YWT4CUSO-Ce_btexJ.mjs} +7 -7
  152. package/dist/chunks/{webm-muxer-B4_guPR0.mjs → webm-muxer-Doy8JtlV.mjs} +1 -1
  153. package/dist/chunks/{xychartDiagram-2RQKCTM6-DAcdK50J.mjs → xychartDiagram-2RQKCTM6-HhACbhVa.mjs} +12 -12
  154. package/dist/full.cjs +1 -1
  155. package/dist/full.mjs +3 -3
  156. package/dist/markdown.mjs +2 -2
  157. package/dist/react.cjs +1 -1
  158. package/dist/react.mjs +1 -1
  159. package/dist/tools.cjs +1 -1
  160. package/dist/tools.mjs +2 -2
  161. package/package.json +1 -1
  162. package/src/components/modules/paste/handlers/blok-data-handler.ts +39 -23
  163. package/src/components/modules/paste/index.ts +7 -2
  164. package/src/components/modules/paste/notion-blocks-v3.ts +308 -30
  165. package/src/components/utils/media-empty-state.ts +80 -47
  166. package/src/tools/audio/empty-state.ts +4 -0
  167. package/src/tools/audio/index.ts +4 -0
  168. package/src/tools/file/empty-state.ts +4 -0
  169. package/src/tools/file/index.ts +2 -0
  170. package/src/tools/image/empty-state.ts +4 -0
  171. package/src/tools/image/index.ts +5 -0
  172. package/src/tools/video/empty-state.ts +4 -0
  173. package/src/tools/video/index.ts +4 -0
  174. package/types/tools/audio.d.ts +6 -0
  175. package/types/tools/file.d.ts +6 -0
  176. package/types/tools/image.d.ts +6 -0
  177. package/types/tools/media-source.d.ts +12 -0
  178. package/types/tools/video.d.ts +6 -0
  179. package/types/tools-entry.d.ts +1 -0
  180. package/dist/chunks/architecture-7EHR7CIX-ByEay9F_.mjs +0 -3
  181. package/dist/chunks/channel-DCfRAw7p.mjs +0 -5
  182. package/dist/chunks/classDiagram-4FO5ZUOK-BgQLsKDL.mjs +0 -29
  183. package/dist/chunks/classDiagram-v2-Q7XG4LA2-DS7F_M1n.mjs +0 -29
  184. package/dist/chunks/default-DFm_GbQ-.mjs +0 -4
  185. package/dist/chunks/eventmodeling-FCH6USID-BqDo_Sav.mjs +0 -3
  186. package/dist/chunks/gitGraph-WXDBUCRP-D-utqQiN.mjs +0 -3
  187. package/dist/chunks/info-J43DQDTF-D72knbmq.mjs +0 -3
  188. package/dist/chunks/packet-YPE3B663-BehYuyRA.mjs +0 -3
  189. package/dist/chunks/pie-LRSECV5Y-C85c3T2E.mjs +0 -3
  190. package/dist/chunks/radar-GUYGQ44K-DGjR4vAz.mjs +0 -3
  191. package/dist/chunks/stateDiagram-v2-BHNVJYJU-uJvNkDGf.mjs +0 -27
  192. package/dist/chunks/treeView-BLDUP644-DhLdRehp.mjs +0 -3
  193. package/dist/chunks/treemap-LRROVOQU-CgXHb4o7.mjs +0 -3
  194. package/dist/chunks/wardley-L42UT6IY-sN5mOUNm.mjs +0 -3
@@ -0,0 +1,3 @@
1
+ import "./chunk-NNHCCRGN-rJnsUrWl.mjs";
2
+ import { n as e } from "./chunk-WCWK7LTN-ClqBpBku.mjs";
3
+ export { e as createTreeViewServices };
@@ -0,0 +1,3 @@
1
+ import "./chunk-NNHCCRGN-rJnsUrWl.mjs";
2
+ import { n as e } from "./chunk-BR22UD5L-B6NbSBJl.mjs";
3
+ export { e as createTreemapServices };
@@ -1,4 +1,4 @@
1
- //#region ../../../Users/jackuait/Packages/blok/node_modules/music-metadata/lib/matroska/types.js
1
+ //#region node_modules/music-metadata/lib/matroska/types.js
2
2
  var e = {
3
3
  10: "shot",
4
4
  20: "scene",
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./objectSpread2-jlBcdYeb.mjs";
2
- import { h as t, p as n } from "./src-uHD1i8ix.mjs";
3
- import { H as r, K as i, U as a, a as o, b as s, c, et as l, f as u, nt as d, rt as f, tt as p, v as m, w as h, y as g } from "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
4
- import { i as _ } from "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
5
- import { t as v } from "./chunk-WU5MYG2G-wN4cJZ_G.mjs";
6
- import { t as y } from "./rough.esm-BMiXn97a.mjs";
7
- //#region ../../../Users/jackuait/Packages/blok/node_modules/khroma/dist/methods/transparentize.js
2
+ import { h as t, p as n } from "./src-BMRCbUmP.mjs";
3
+ import { H as r, K as i, U as a, a as o, b as s, c, et as l, f as u, nt as d, rt as f, tt as p, v as m, w as h, y as g } from "./chunk-CSCIHK7Q-C4qT3Yrk.mjs";
4
+ import { i as _ } from "./chunk-5ZQYHXKU-CPXVTQ_e.mjs";
5
+ import { t as v } from "./chunk-WU5MYG2G-DLQN-5vb.mjs";
6
+ import { t as y } from "./rough.esm-D0yWqsMu.mjs";
7
+ //#region node_modules/khroma/dist/methods/transparentize.js
8
8
  var b = (e, t) => d(e, "a", -t), x = 1e-10;
9
9
  function S(e, t) {
10
10
  let n = w(e), r = n.filter((t) => C(t, e)), i = 0, a = 0, o = [];
@@ -908,7 +908,7 @@ function Se(e, t = {}) {
908
908
  }));
909
909
  }
910
910
  //#endregion
911
- //#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.mjs
911
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.mjs
912
912
  var q = (function() {
913
913
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
914
914
  for (n = n || {}, r = e.length; r--; n[e[r]] = t);
@@ -0,0 +1,3 @@
1
+ import "./chunk-NNHCCRGN-rJnsUrWl.mjs";
2
+ import { n as e } from "./chunk-PUPMXCY4-DCIdSRFi.mjs";
3
+ export { e as createWardleyServices };
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./objectSpread2-jlBcdYeb.mjs";
2
- import { g as t, h as n } from "./src-uHD1i8ix.mjs";
3
- import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, v as u, w as d, x as f, y as p } from "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
4
- import { i as m } from "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
5
- import { t as h } from "./chunk-WU5MYG2G-wN4cJZ_G.mjs";
6
- import { t as g } from "./chunk-4BX2VUAB-CrVP7ooQ.mjs";
7
- import { t as _ } from "./mermaid-parser.core-B92FGYsA.mjs";
8
- //#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.mjs
2
+ import { g as t, h as n } from "./src-BMRCbUmP.mjs";
3
+ import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, v as u, w as d, x as f, y as p } from "./chunk-CSCIHK7Q-C4qT3Yrk.mjs";
4
+ import { i as m } from "./chunk-5ZQYHXKU-CPXVTQ_e.mjs";
5
+ import { t as h } from "./chunk-WU5MYG2G-DLQN-5vb.mjs";
6
+ import { t as g } from "./chunk-4BX2VUAB-8PQvWn-w.mjs";
7
+ import { t as _ } from "./mermaid-parser.core-CRFj5ZQJ.mjs";
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.mjs
9
9
  var v, y = /* @__PURE__ */ n((e, t) => {
10
10
  let n = e <= 1 ? e * 100 : e;
11
11
  if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./objectSpread2-jlBcdYeb.mjs";
2
- //#region ../../../Users/jackuait/Packages/blok/node_modules/webm-muxer/build/webm-muxer.mjs
2
+ //#region node_modules/webm-muxer/build/webm-muxer.mjs
3
3
  var t = (e, t, n) => {
4
4
  if (!t.has(e)) throw TypeError("Cannot " + n);
5
5
  }, n = (e, n, r) => (t(e, n, "read from private field"), r ? r.call(e) : n.get(e)), r = (e, t, n) => {
@@ -1,20 +1,20 @@
1
- import { g as e, h as t } from "./src-uHD1i8ix.mjs";
2
- import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f, z as p } from "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
3
- import { t as m } from "./linear-CAfvVXJc.mjs";
4
- import { t as h } from "./ordinal-Qrn6pSTz.mjs";
5
- import { t as g } from "./init-BR8veUec.mjs";
6
- import { i as _ } from "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
7
- import { t as v } from "./line-CQUUULPd.mjs";
8
- import { t as y } from "./chunk-WU5MYG2G-wN4cJZ_G.mjs";
9
- import { t as b } from "./chunk-O5CBEL6O-BeYkA-8N.mjs";
10
- //#region ../../../Users/jackuait/Packages/blok/node_modules/d3-array/src/range.js
1
+ import { g as e, h as t } from "./src-BMRCbUmP.mjs";
2
+ import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f, z as p } from "./chunk-CSCIHK7Q-C4qT3Yrk.mjs";
3
+ import { t as m } from "./linear-CPgdjDZh.mjs";
4
+ import { t as h } from "./ordinal-FCgpEo3E.mjs";
5
+ import { t as g } from "./init-hkDiJKhJ.mjs";
6
+ import { i as _ } from "./chunk-5ZQYHXKU-CPXVTQ_e.mjs";
7
+ import { t as v } from "./line-DU9tI1Tb.mjs";
8
+ import { t as y } from "./chunk-WU5MYG2G-DLQN-5vb.mjs";
9
+ import { t as b } from "./chunk-O5CBEL6O-GY6nZ-N7.mjs";
10
+ //#region node_modules/d3-array/src/range.js
11
11
  function x(e, t, n) {
12
12
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
13
13
  for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
14
14
  return a;
15
15
  }
16
16
  //#endregion
17
- //#region ../../../Users/jackuait/Packages/blok/node_modules/d3-scale/src/band.js
17
+ //#region node_modules/d3-scale/src/band.js
18
18
  function S() {
19
19
  var e = h().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
20
20
  delete e.unknown;
@@ -51,7 +51,7 @@ function S() {
51
51
  }, g.apply(d(), arguments);
52
52
  }
53
53
  //#endregion
54
- //#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-2RQKCTM6.mjs
54
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-2RQKCTM6.mjs
55
55
  var C, w, T, E, D, O, k, A, j, M, N = (function() {
56
56
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
57
57
  for (n = n || {}, r = e.length; r--; n[e[r]] = t);
package/dist/full.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks/blok-uBjibRae.cjs`),t=require(`./chunks/constants-PI1xjAeG.cjs`),n=require(`./chunks/objectSpread2-iNkE6aJh.cjs`),r=require(`./chunks/tools-B6rEBe-4.cjs`);var i={paragraph:{class:r.k,inlineToolbar:!0,config:{preserveBlank:!0}},header:{class:r.O,inlineToolbar:!0},list:{class:r.D,inlineToolbar:!0}},a=n.t(n.t({},i),{},{bold:{class:r.l},italic:{class:r.c},marker:{class:r.o},underline:{class:r.a},strikethrough:{class:r.i},link:{class:r.s}});exports.Blok=e.t,exports.Bold=r.l,exports.DATA_ATTR=t.ja,exports.Header=r.O,exports.Italic=r.c,exports.Link=r.s,exports.List=r.D,exports.Marker=r.o,exports.Paragraph=r.k,exports.Strikethrough=r.i,exports.Toggle=r.T,exports.Underline=r.a,exports.allTools=a,exports.defaultBlockTools=r.t,exports.defaultInlineTools=r.n,exports.defaultTools=i,exports.version=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks/blok-DrMzzi_n.cjs`),t=require(`./chunks/constants-DGJO_Nr-.cjs`),n=require(`./chunks/objectSpread2-iNkE6aJh.cjs`),r=require(`./chunks/tools-sHA-2cBM.cjs`);var i={paragraph:{class:r.k,inlineToolbar:!0,config:{preserveBlank:!0}},header:{class:r.O,inlineToolbar:!0},list:{class:r.D,inlineToolbar:!0}},a=n.t(n.t({},i),{},{bold:{class:r.l},italic:{class:r.c},marker:{class:r.o},underline:{class:r.a},strikethrough:{class:r.i},link:{class:r.s}});exports.Blok=e.t,exports.Bold=r.l,exports.DATA_ATTR=t.ja,exports.Header=r.O,exports.Italic=r.c,exports.Link=r.s,exports.List=r.D,exports.Marker=r.o,exports.Paragraph=r.k,exports.Strikethrough=r.i,exports.Toggle=r.T,exports.Underline=r.a,exports.allTools=a,exports.defaultBlockTools=r.t,exports.defaultInlineTools=r.n,exports.defaultTools=i,exports.version=e.n;
package/dist/full.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { n as e, t } from "./chunks/blok-C72PuzIT.mjs";
2
- import { ja as n } from "./chunks/constants-vvNFp6FG.mjs";
1
+ import { n as e, t } from "./chunks/blok-DxI1HQZC.mjs";
2
+ import { ja as n } from "./chunks/constants-0pfHI3Vc.mjs";
3
3
  import { t as r } from "./chunks/objectSpread2-jlBcdYeb.mjs";
4
- import { D as i, O as a, T as o, a as s, c, i as l, k as u, l as d, n as f, o as p, s as m, t as h } from "./chunks/tools-BQo4iaMe.mjs";
4
+ import { D as i, O as a, T as o, a as s, c, i as l, k as u, l as d, n as f, o as p, s as m, t as h } from "./chunks/tools-DqspF7V9.mjs";
5
5
  //#region src/full.ts
6
6
  var g = {
7
7
  paragraph: {
package/dist/markdown.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, r as i } from "./chunks/sanitize-url-Pw_yecwg.mjs";
1
+ import { a as e, i as t, n, o as r, r as i } from "./chunks/sanitize-url-DzTIH3XF.mjs";
2
2
  //#region src/markdown/phrasing-to-html.ts
3
3
  function a(e) {
4
4
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
@@ -226,7 +226,7 @@ function D(e) {
226
226
  //#region src/markdown/index.ts
227
227
  var O = /* @__PURE__ */ RegExp("\\$\\$[\\s\\S]+?\\$\\$|(?<!\\$)\\$(?!\\$)(?=\\S)[^$]+(?<=\\S)\\$(?!\\$)", "");
228
228
  async function k() {
229
- let [{ math: e }, { mathFromMarkdown: t }] = await Promise.all([import("./chunks/micromark-extension-math-COSLlhTC.mjs"), import("./chunks/mdast-util-math-Cpp9XOMP.mjs")]);
229
+ let [{ math: e }, { mathFromMarkdown: t }] = await Promise.all([import("./chunks/micromark-extension-math-CJDP6iIU.mjs"), import("./chunks/mdast-util-math-BNabERqA.mjs")]);
230
230
  return {
231
231
  mathSyntax: e(),
232
232
  mathFromMarkdown: t()
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./chunks/chunk-BL1yB9zm.cjs`);const e=require(`./chunks/blok-uBjibRae.cjs`),t=require(`./chunks/objectSpread2-iNkE6aJh.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`);var i=new WeakMap;function a(e,t){i.set(e,t)}function o(e){return i.get(e)}function s(e){i.delete(e)}function c(r,i){let[o,c]=(0,n.useState)(null),u=(0,n.useRef)(r);u.current=r;let d=(0,n.useRef)({editor:null,holder:null,destroyTimeout:null,isDestroyed:!1,depsToken:null}),f=(0,n.useMemo)(()=>({}),i==null?[]:i);(0,n.useEffect)(()=>{if(typeof window>`u`)return;let n=d.current;if(n.destroyTimeout!==null&&(clearTimeout(n.destroyTimeout),n.destroyTimeout=null),n.editor!==null&&!n.isDestroyed&&n.depsToken===f)return c(n.editor),()=>{l(n,c)};if(n.editor!==null&&!n.isDestroyed){s(n.editor);try{n.editor.destroy()}catch(e){}n.editor=null,n.holder=null,n.isDestroyed=!0,c(null)}let r=document.createElement(`div`);n.holder=r,n.isDestroyed=!1,n.depsToken=f;let i=u.current,o=new e.t(t.t(t.t({},i),{},{holder:r,onReady:()=>{var e,t;(e=(t=u.current).onReady)==null||e.call(t)},onChange:(...e)=>{var t,n;(t=(n=u.current).onChange)==null||t.call(n,...e)}}));return n.editor=o,a(o,r),o.isReady.then(()=>{n.editor===o&&!n.isDestroyed&&c(o)}).catch(()=>{if(n.editor===o&&!n.isDestroyed){s(o);try{o.destroy()}catch(e){}n.editor=null,n.holder=null,n.isDestroyed=!0,c(null)}}),()=>{l(n,c)}},[f]);let{readOnly:p}=r;(0,n.useEffect)(()=>{o!==null&&o.readOnly.set(p==null?!1:p)},[o,p]);let{autofocus:m}=r;return(0,n.useEffect)(()=>{o===null||!m||o.focus()},[o,m]),o}function l(e,t){e.destroyTimeout=setTimeout(()=>{if(e.editor!==null){s(e.editor);try{e.editor.destroy()}catch(e){}e.editor=null,e.holder=null,e.isDestroyed=!0,e.destroyTimeout=null,t(null)}},0)}var u=[`editor`],d=(0,n.forwardRef)(function(i,a){let{editor:s}=i,c=e.i(i,u),l=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(s===null||l.current===null)return;let e=o(s);if(e!==void 0)return l.current.appendChild(e),()=>{e.remove()}},[s]),(0,r.jsx)(`div`,t.t({ref:e=>{if(l.current=e,typeof a==`function`)a(e);else if(a!=null){let t=a;t.current=e}}},c))});exports.BlokContent=d,exports.useBlok=c;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./chunks/chunk-BL1yB9zm.cjs`);const e=require(`./chunks/blok-DrMzzi_n.cjs`),t=require(`./chunks/objectSpread2-iNkE6aJh.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`);var i=new WeakMap;function a(e,t){i.set(e,t)}function o(e){return i.get(e)}function s(e){i.delete(e)}function c(r,i){let[o,c]=(0,n.useState)(null),u=(0,n.useRef)(r);u.current=r;let d=(0,n.useRef)({editor:null,holder:null,destroyTimeout:null,isDestroyed:!1,depsToken:null}),f=(0,n.useMemo)(()=>({}),i==null?[]:i);(0,n.useEffect)(()=>{if(typeof window>`u`)return;let n=d.current;if(n.destroyTimeout!==null&&(clearTimeout(n.destroyTimeout),n.destroyTimeout=null),n.editor!==null&&!n.isDestroyed&&n.depsToken===f)return c(n.editor),()=>{l(n,c)};if(n.editor!==null&&!n.isDestroyed){s(n.editor);try{n.editor.destroy()}catch(e){}n.editor=null,n.holder=null,n.isDestroyed=!0,c(null)}let r=document.createElement(`div`);n.holder=r,n.isDestroyed=!1,n.depsToken=f;let i=u.current,o=new e.t(t.t(t.t({},i),{},{holder:r,onReady:()=>{var e,t;(e=(t=u.current).onReady)==null||e.call(t)},onChange:(...e)=>{var t,n;(t=(n=u.current).onChange)==null||t.call(n,...e)}}));return n.editor=o,a(o,r),o.isReady.then(()=>{n.editor===o&&!n.isDestroyed&&c(o)}).catch(()=>{if(n.editor===o&&!n.isDestroyed){s(o);try{o.destroy()}catch(e){}n.editor=null,n.holder=null,n.isDestroyed=!0,c(null)}}),()=>{l(n,c)}},[f]);let{readOnly:p}=r;(0,n.useEffect)(()=>{o!==null&&o.readOnly.set(p==null?!1:p)},[o,p]);let{autofocus:m}=r;return(0,n.useEffect)(()=>{o===null||!m||o.focus()},[o,m]),o}function l(e,t){e.destroyTimeout=setTimeout(()=>{if(e.editor!==null){s(e.editor);try{e.editor.destroy()}catch(e){}e.editor=null,e.holder=null,e.isDestroyed=!0,e.destroyTimeout=null,t(null)}},0)}var u=[`editor`],d=(0,n.forwardRef)(function(i,a){let{editor:s}=i,c=e.i(i,u),l=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(s===null||l.current===null)return;let e=o(s);if(e!==void 0)return l.current.appendChild(e),()=>{e.remove()}},[s]),(0,r.jsx)(`div`,t.t({ref:e=>{if(l.current=e,typeof a==`function`)a(e);else if(a!=null){let t=a;t.current=e}}},c))});exports.BlokContent=d,exports.useBlok=c;
package/dist/react.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as e, t } from "./chunks/blok-C72PuzIT.mjs";
1
+ import { i as e, t } from "./chunks/blok-DxI1HQZC.mjs";
2
2
  import { t as n } from "./chunks/objectSpread2-jlBcdYeb.mjs";
3
3
  import { forwardRef as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
4
4
  import { jsx as c } from "react/jsx-runtime";
package/dist/tools.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks/constants-PI1xjAeG.cjs`),t=require(`./chunks/tools-B6rEBe-4.cjs`);exports.Audio=t.g,exports.Bold=t.l,exports.Bookmark=t.u,exports.Callout=t.w,exports.Code=t.y,exports.Column=t.p,exports.ColumnList=t.m,exports.Columns=t.f,exports.Convert=e.m,exports.Database=t.C,exports.DatabaseRow=t.S,exports.Divider=t.x,exports.Embed=t.d,exports.File=t._,exports.Header=t.O,exports.Image=t.v,exports.InlineCode=t.r,exports.Italic=t.c,exports.Link=t.s,exports.List=t.D,exports.Marker=t.o,exports.Paragraph=t.k,exports.Quote=t.b,exports.Strikethrough=t.i,exports.Table=t.E,exports.Toggle=t.T,exports.Underline=t.a,exports.Video=t.h,exports.defaultBlockTools=t.t,exports.defaultInlineTools=t.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks/constants-DGJO_Nr-.cjs`),t=require(`./chunks/tools-sHA-2cBM.cjs`);exports.Audio=t.g,exports.Bold=t.l,exports.Bookmark=t.u,exports.Callout=t.w,exports.Code=t.y,exports.Column=t.p,exports.ColumnList=t.m,exports.Columns=t.f,exports.Convert=e.m,exports.Database=t.C,exports.DatabaseRow=t.S,exports.Divider=t.x,exports.Embed=t.d,exports.File=t._,exports.Header=t.O,exports.Image=t.v,exports.InlineCode=t.r,exports.Italic=t.c,exports.Link=t.s,exports.List=t.D,exports.Marker=t.o,exports.Paragraph=t.k,exports.Quote=t.b,exports.Strikethrough=t.i,exports.Table=t.E,exports.Toggle=t.T,exports.Underline=t.a,exports.Video=t.h,exports.defaultBlockTools=t.t,exports.defaultInlineTools=t.n;
package/dist/tools.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { m as e } from "./chunks/constants-vvNFp6FG.mjs";
2
- import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "./chunks/tools-BQo4iaMe.mjs";
1
+ import { m as e } from "./chunks/constants-0pfHI3Vc.mjs";
2
+ import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "./chunks/tools-DqspF7V9.mjs";
3
3
  export { p as Audio, _ as Bold, T as Bookmark, D as Callout, k as Code, x as Column, v as ColumnList, f as Columns, e as Convert, t as Database, a as DatabaseRow, O as Divider, d as Embed, s as File, i as Header, E as Image, S as InlineCode, u as Italic, C as Link, n as List, b as Marker, g as Paragraph, l as Quote, h as Strikethrough, r as Table, o as Toggle, c as Underline, m as Video, w as defaultBlockTools, y as defaultInlineTools };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackuait/blok",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "description": "Blok — headless, highly extensible rich text editor built for developers who need to implement a block-based editing experience (similar to Notion) without building it from scratch",
5
5
  "module": "dist/blok.mjs",
6
6
  "main": "./dist/blok.cjs",
@@ -129,15 +129,20 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
129
129
  /**
130
130
  * Insert Blok JSON blocks using a two-pass approach:
131
131
  *
132
- * Pass 1 — child blocks (those whose parentId is within the pasted set) are
133
- * inserted first. They receive new IDs, which are recorded in a map.
134
- *
135
- * Pass 2 root/container blocks (e.g. tables) are inserted with their data
136
- * remapped so that any old child-block ID references are replaced by the new
137
- * IDs from Pass 1. This prevents container tools (TableCellBlocks) from
132
+ * Pass 1 — TABLE cell children (blocks whose parentId is a pasted table) are
133
+ * inserted first. They receive new IDs, which are recorded in a map, so the
134
+ * owning table can be inserted with its `data.content` references remapped to
135
+ * the new cell IDs. This prevents container tools (TableCellBlocks) from
138
136
  * resolving old IDs that still exist in the editor and stealing blocks from
139
137
  * the original table.
140
138
  *
139
+ * Pass 2 — every other block (roots AND flow-nested children such as list
140
+ * sub-items and toggle/callout/column children) is inserted in DOCUMENT ORDER
141
+ * with its data remapped. Preserving document order is what keeps a nested
142
+ * child from rendering above its parent (the Notion-paste scramble bug);
143
+ * flow-nested blocks have no separate DOM container, so their array position
144
+ * IS their visual position.
145
+ *
141
146
  * After both passes the parent-child hierarchy is re-established using the
142
147
  * accumulated old→new ID mapping.
143
148
  */
@@ -187,12 +192,26 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
187
192
  ? (currentBlock?.id ?? null)
188
193
  : (currentBlock?.parentId ?? null);
189
194
 
190
- // Set of old IDs present in this paste, used to identify parent-child pairs.
191
- const pastedOldIds = new Set(blocks.map(b => b.id));
195
+ // IDs of pasted table blocks. ONLY a table's cell children must be inserted
196
+ // before their parent: the table block's `data.content` references its cell
197
+ // child IDs and the table tool resolves (adopts) them on insert, so the
198
+ // cells must already exist with their new IDs. Every OTHER nested block —
199
+ // list sub-items, toggle/callout/column children — is "flow-nested" and
200
+ // must be inserted in DOCUMENT ORDER. Inserting those children-first
201
+ // scrambled the document: a nested list child rendered ABOVE its parent and
202
+ // the whole top-level order collapsed (Notion paste "broken order" bug).
203
+ const pastedTableIds = new Set(
204
+ blocks.filter(b => b.tool === 'table' && b.id !== undefined).map(b => b.id)
205
+ );
206
+
207
+ const isTableCellChild = (block: BlokClipboardBlock): boolean =>
208
+ block.parentId !== undefined &&
209
+ block.parentId !== null &&
210
+ pastedTableIds.has(block.parentId);
192
211
 
193
212
  type Entry = { sanitized: (typeof sanitizedBlocks)[number]; original: BlokClipboardBlock };
194
- const children: Entry[] = [];
195
- const roots: Entry[] = [];
213
+ const tableCells: Entry[] = [];
214
+ const documentFlow: Entry[] = [];
196
215
 
197
216
  sanitizedBlocks.forEach((sanitizedBlock, i) => {
198
217
  const original = blocks[i];
@@ -201,12 +220,7 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
201
220
  return;
202
221
  }
203
222
 
204
- const isChild =
205
- original.parentId !== undefined &&
206
- original.parentId !== null &&
207
- pastedOldIds.has(original.parentId);
208
-
209
- (isChild ? children : roots).push({ sanitized: sanitizedBlock, original });
223
+ (isTableCellChild(original) ? tableCells : documentFlow).push({ sanitized: sanitizedBlock, original });
210
224
  });
211
225
 
212
226
  /**
@@ -220,8 +234,9 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
220
234
  // each BlockManager.insert and setBlockParent lands on its own undo
221
235
  // stack item, and the user has to press undo N times to clear a paste.
222
236
  const runInsertPasses = (): void => {
223
- // Pass 1: insert children first so they exist with new IDs before the parent.
224
- children.forEach(({ sanitized, original }) => {
237
+ // Pass 1: insert table cells first so they exist with new IDs before the
238
+ // owning table block is inserted with its (remapped) content references.
239
+ tableCells.forEach(({ sanitized, original }) => {
225
240
  const block = BlockManager.insert({ tool: sanitized.tool, data: sanitized.data });
226
241
 
227
242
  oldIdToEntry.set(original.id, { newBlock: block, original });
@@ -235,10 +250,11 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
235
250
  oldIdToNewId.set(oldId, newBlock.id);
236
251
  }
237
252
 
238
- // Pass 2: insert root blocks with child IDs remapped in their data.
239
- // Skip replace when children were pre-inserted to avoid replacing a
240
- // just-inserted child paragraph rather than the original empty block.
241
- roots.forEach(({ sanitized, original }, idx) => {
253
+ // Pass 2: insert every remaining block in DOCUMENT ORDER, remapping any
254
+ // table cell IDs in their data. Skip replace when table cells were
255
+ // pre-inserted to avoid replacing a just-inserted cell paragraph rather
256
+ // than the original empty block.
257
+ documentFlow.forEach(({ sanitized, original }, idx) => {
242
258
  const remappedData = oldIdToNewId.size > 0
243
259
  ? remapIds(sanitized.data, oldIdToNewId) as typeof sanitized.data
244
260
  : sanitized.data;
@@ -246,7 +262,7 @@ export class BlokDataHandler extends BasePasteHandler implements PasteHandler {
246
262
  const block = BlockManager.insert({
247
263
  tool: sanitized.tool,
248
264
  data: remappedData,
249
- replace: idx === 0 && shouldReplaceFirst && children.length === 0,
265
+ replace: idx === 0 && shouldReplaceFirst && tableCells.length === 0,
250
266
  });
251
267
 
252
268
  /**
@@ -47,14 +47,19 @@ export class Paste extends Module {
47
47
 
48
48
  await this.toolRegistry.processTools();
49
49
 
50
- // Initialize handlers in priority order (higher priority first)
50
+ // Initialize handlers in priority order (higher priority first).
51
+ // HtmlHandler (40) must precede MarkdownHandler (30): rich clipboards such
52
+ // as Notion ship both a faithful text/html payload and a lossy markdown
53
+ // text/plain twin, and routing picks the first eligible handler in this
54
+ // list. Trying HTML first keeps images, links and other structure that the
55
+ // markdown twin drops; markdown still wins when no usable HTML is present.
51
56
  this.handlers = [
52
57
  new BlokDataHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder, this.config),
53
58
  new TableCellsHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder),
54
59
  new FilesHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder),
55
60
  new PatternHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder, this.config),
56
- new MarkdownHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder),
57
61
  new HtmlHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder),
62
+ new MarkdownHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder),
58
63
  new TextHandler(this.Blok, this.toolRegistry, this.sanitizerBuilder, this.config),
59
64
  ];
60
65
  }