@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.
- package/dist/blok.cjs +1 -1
- package/dist/blok.iife.js +13 -13
- package/dist/blok.mjs +2 -2
- package/dist/blok.umd.js +41 -41
- package/dist/chunks/{APEv2Parser-dFboX-HT.mjs → APEv2Parser-WvRvu4zL.mjs} +5 -5
- package/dist/chunks/{AbstractID3Parser-qvoGRhB4.mjs → AbstractID3Parser-DM9acVTg.mjs} +5 -5
- package/dist/chunks/{AiffParser-DVe3cNKY.mjs → AiffParser-C_VaWeb5.mjs} +5 -5
- package/dist/chunks/{AsfParser-DrzvMHO9.mjs → AsfParser-CH5F_9Wp.mjs} +7 -7
- package/dist/chunks/{BasicParser-BLAlEKys.mjs → BasicParser-BFTgNkp-.mjs} +2 -2
- package/dist/chunks/{DsdiffParser-uZBv6Bc_.mjs → DsdiffParser-BAdYwB7y.mjs} +5 -5
- package/dist/chunks/{DsfParser-DLra1i8X.mjs → DsfParser-DWMLfBH1.mjs} +5 -5
- package/dist/chunks/{FlacParser-DGd7sQuD.mjs → FlacParser-BdKXrY7L.mjs} +6 -6
- package/dist/chunks/{ID3v1Parser-CJMR_CT_.mjs → ID3v1Parser-DoxlznrE.mjs} +3 -3
- package/dist/chunks/{ID3v2Parser-DIc0X1ee.mjs → ID3v2Parser-BIrxzjBm.mjs} +8 -8
- package/dist/chunks/{ID3v2Token-BqnbpNYB.mjs → ID3v2Token-D5v9lCfb.mjs} +3 -3
- package/dist/chunks/{MP4Parser-BqrCfJyp.mjs → MP4Parser-0KMJ-q2k.mjs} +6 -6
- package/dist/chunks/{MatroskaParser-CCbZmX7j.mjs → MatroskaParser-fxFuCddu.mjs} +5 -5
- package/dist/chunks/{MpegParser-C-6l3Wrf.mjs → MpegParser-R-6QiuhU.mjs} +6 -6
- package/dist/chunks/{MusepackParser-C_PhW_BV.mjs → MusepackParser-DFLoF47O.mjs} +5 -5
- package/dist/chunks/{OggParser-DJhcSH9h.mjs → OggParser-C1qP2qC7.mjs} +6 -6
- package/dist/chunks/{Util-B42SDwrM.mjs → Util-DiBcLCh8.mjs} +3 -3
- package/dist/chunks/{WavPackParser-CuHju62S.mjs → WavPackParser-Ck8xXsNf.mjs} +4 -4
- package/dist/chunks/{WaveParser-DvEqNnGt.mjs → WaveParser-hxQlWijT.mjs} +6 -6
- package/dist/chunks/{aiden0z-pptx-renderer.es-Dfc1LJvS.mjs → aiden0z-pptx-renderer.es-Y1OhS20L.mjs} +2 -2
- package/dist/chunks/{arc-8pYAfiNC.mjs → arc-Cu-PSKKo.mjs} +3 -3
- package/dist/chunks/architecture-7EHR7CIX-CGYZJshv.mjs +3 -0
- package/dist/chunks/{architectureDiagram-3BPJPVTR-BiykAn02.mjs → architectureDiagram-3BPJPVTR-BwW1QjqZ.mjs} +9 -9
- package/dist/chunks/{blockDiagram-GPEHLZMM-CozNEkEK.mjs → blockDiagram-GPEHLZMM-BAgQo64R.mjs} +13 -13
- package/dist/chunks/{blok-uBjibRae.cjs → blok-DrMzzi_n.cjs} +13 -13
- package/dist/chunks/{blok-C72PuzIT.mjs → blok-DxI1HQZC.mjs} +514 -390
- package/dist/chunks/{c4Diagram-AAUBKEIU-DN5cpztO.mjs → c4Diagram-AAUBKEIU-BQe-CDb8.mjs} +6 -6
- package/dist/chunks/channel-dq5ps1Yn.mjs +5 -0
- package/dist/chunks/{chunk-2J33WTMH-CHv7Whe1.mjs → chunk-2J33WTMH-CMyTQPbw.mjs} +3 -3
- package/dist/chunks/{chunk-3OPIFGDE-BRLjwZDG.mjs → chunk-3OPIFGDE-_lgEHnzc.mjs} +8 -8
- package/dist/chunks/{chunk-4BX2VUAB-CrVP7ooQ.mjs → chunk-4BX2VUAB-8PQvWn-w.mjs} +2 -2
- package/dist/chunks/{chunk-4EGX6M5U-t1h05MXS.mjs → chunk-4EGX6M5U-D4gnRnMD.mjs} +2 -2
- package/dist/chunks/{chunk-55IACEB6-Cq7FTvxb.mjs → chunk-55IACEB6-eQD6P1N8.mjs} +2 -2
- package/dist/chunks/{chunk-5DO6E6H7-Z2pYCl69.mjs → chunk-5DO6E6H7-CN3lZIoE.mjs} +2 -2
- package/dist/chunks/{chunk-5ZQYHXKU-fs0GqOvF.mjs → chunk-5ZQYHXKU-CPXVTQ_e.mjs} +43 -43
- package/dist/chunks/{chunk-727SXJPM-BKsM41W3.mjs → chunk-727SXJPM-DZUlPaIu.mjs} +9 -9
- package/dist/chunks/{chunk-AQP2D5EJ-YdXH_I-o.mjs → chunk-AQP2D5EJ-D7G094pS.mjs} +7 -7
- package/dist/chunks/{chunk-BR22UD5L-CqFDPfGM.mjs → chunk-BR22UD5L-B6NbSBJl.mjs} +2 -2
- package/dist/chunks/{chunk-BSJP7CBP-DpGSyAQh.mjs → chunk-BSJP7CBP-C7FGlEZG.mjs} +2 -2
- package/dist/chunks/{chunk-CSCIHK7Q-BO7tl9ID.mjs → chunk-CSCIHK7Q-C4qT3Yrk.mjs} +4 -4
- package/dist/chunks/{chunk-FHYWG6QK-5Het-98V.mjs → chunk-FHYWG6QK-CgSYG-YQ.mjs} +2 -2
- package/dist/chunks/{chunk-FMBD7UC4-P_kboMJT.mjs → chunk-FMBD7UC4-2p6fg26u.mjs} +2 -2
- package/dist/chunks/{chunk-KSCS5N6A-CvZAQU-1.mjs → chunk-KSCS5N6A-BVWs3LbG.mjs} +11 -11
- package/dist/chunks/{chunk-L5ZTLDWV-DZEL0gsI.mjs → chunk-L5ZTLDWV-BFEdycvM.mjs} +4 -4
- package/dist/chunks/{chunk-LZXEDZCA-CRJ7-DY6.mjs → chunk-LZXEDZCA-6drnUsNy.mjs} +8 -8
- package/dist/chunks/{chunk-MPE355IW-DLg3CsBw.mjs → chunk-MPE355IW-DHYWughe.mjs} +2 -2
- package/dist/chunks/{chunk-MZUSXYTE-CvsgXeJO.mjs → chunk-MZUSXYTE-BmUr1KX3.mjs} +2 -2
- package/dist/chunks/{chunk-N66VUXT2-DoC3ggTc.mjs → chunk-N66VUXT2-D_6jZ3Vo.mjs} +2 -2
- package/dist/chunks/{chunk-ND2GUHAM-BcJIrltI.mjs → chunk-ND2GUHAM-DooE8X6i.mjs} +4 -4
- package/dist/chunks/{chunk-NNHCCRGN-CH81dTHf.mjs → chunk-NNHCCRGN-rJnsUrWl.mjs} +1 -1
- package/dist/chunks/{chunk-NZK2D7GU-BnVJr7kf.mjs → chunk-NZK2D7GU-JW_qgPqa.mjs} +3 -3
- package/dist/chunks/{chunk-O5CBEL6O-BeYkA-8N.mjs → chunk-O5CBEL6O-GY6nZ-N7.mjs} +16 -16
- package/dist/chunks/{chunk-PUPMXCY4-D3Ub4pDo.mjs → chunk-PUPMXCY4-DCIdSRFi.mjs} +2 -2
- package/dist/chunks/{chunk-QZHKN3VN-ChiFJWT0.mjs → chunk-QZHKN3VN-C3N0_vEC.mjs} +2 -2
- package/dist/chunks/{chunk-UIBZB4QT-BwApNyrQ.mjs → chunk-UIBZB4QT-pyTElNc2.mjs} +2 -2
- package/dist/chunks/{chunk-WCWK7LTN-D4OBOUIK.mjs → chunk-WCWK7LTN-ClqBpBku.mjs} +2 -2
- package/dist/chunks/{chunk-WU5MYG2G-wN4cJZ_G.mjs → chunk-WU5MYG2G-DLQN-5vb.mjs} +3 -3
- package/dist/chunks/{chunk-XPW4576I-yOZxg2iY.mjs → chunk-XPW4576I-IlnbQHaA.mjs} +2 -2
- package/dist/chunks/classDiagram-4FO5ZUOK-C3CxSQxy.mjs +29 -0
- package/dist/chunks/classDiagram-v2-Q7XG4LA2-Ci_JeHz0.mjs +29 -0
- package/dist/chunks/{constants-vvNFp6FG.mjs → constants-0pfHI3Vc.mjs} +1 -1
- package/dist/chunks/{constants-PI1xjAeG.cjs → constants-DGJO_Nr-.cjs} +1 -1
- package/dist/chunks/{core-DeCMWrgN.mjs → core-CqiEzfU3.mjs} +4 -4
- package/dist/chunks/{core-CJGckLsY.mjs → core-DdDpt2u7.mjs} +31 -31
- package/dist/chunks/{cose-bilkent-S5V4N54A-NIONAJnp.mjs → cose-bilkent-S5V4N54A-BronfFB-.mjs} +3 -3
- package/dist/chunks/{cytoscape.esm-fziZOrCG.mjs → cytoscape.esm-QxDq63HI.mjs} +1 -1
- package/dist/chunks/{dagre-BM42HDAG-DcOrN3pc.mjs → dagre-BM42HDAG-B4WVdKOZ.mjs} +14 -14
- package/dist/chunks/{dagre-CILRucyd.mjs → dagre-DzOGad9N.mjs} +107 -107
- package/dist/chunks/default-qigT1Xpq.mjs +4 -0
- package/dist/chunks/{defaultLocale-C2VD4mLA.mjs → defaultLocale-BJwYPC-h.mjs} +12 -12
- package/dist/chunks/{diagram-2AECGRRQ-DDwBTlvz.mjs → diagram-2AECGRRQ-C22ThgiO.mjs} +7 -7
- package/dist/chunks/{diagram-5GNKFQAL-1sbWUr5e.mjs → diagram-5GNKFQAL-COelHuJn.mjs} +8 -8
- package/dist/chunks/{diagram-KO2AKTUF-DhTFFKgx.mjs → diagram-KO2AKTUF-CjLVtM94.mjs} +7 -7
- package/dist/chunks/{diagram-LMA3HP47-DRr_84ZZ.mjs → diagram-LMA3HP47-DqkuYFi9.mjs} +7 -7
- package/dist/chunks/{diagram-OG6HWLK6-C_5eu9Kf.mjs → diagram-OG6HWLK6-390_YOO-.mjs} +32 -32
- package/dist/chunks/{dist-DRqr67zQ.mjs → dist-CCXeNeCQ.mjs} +2 -2
- package/dist/chunks/{docx-preview-CQ4QUFrd.mjs → docx-preview-ulpDsaxt.mjs} +2 -2
- package/dist/chunks/{erDiagram-TEJ5UH35-C3Ohfkqu.mjs → erDiagram-TEJ5UH35-BH0f96Pn.mjs} +14 -14
- package/dist/chunks/eventmodeling-FCH6USID-nCBtSITo.mjs +3 -0
- package/dist/chunks/{flowDiagram-I6XJVG4X-DyXB0QVM.mjs → flowDiagram-I6XJVG4X-kZaqJYK1.mjs} +17 -17
- package/dist/chunks/{ganttDiagram-6RSMTGT7-82Iyg78i.mjs → ganttDiagram-6RSMTGT7-C3uQIARG.mjs} +27 -27
- package/dist/chunks/gitGraph-WXDBUCRP-CN_MBj94.mjs +3 -0
- package/dist/chunks/{gitGraphDiagram-PVQCEYII-D9V6dxzm.mjs → gitGraphDiagram-PVQCEYII-DQSTvBjy.mjs} +7 -7
- package/dist/chunks/{graphlib-RxhPMq8I.mjs → graphlib-B0ANG2M6.mjs} +135 -135
- package/dist/chunks/{i18next-C2REZNw2.mjs → i18next-gGTtSkQg.mjs} +1 -1
- package/dist/chunks/{i18next-loader-Dh4fP9we.mjs → i18next-loader-DfIonnVO.mjs} +1 -1
- package/dist/chunks/info-J43DQDTF-xmJNmT0e.mjs +3 -0
- package/dist/chunks/{infoDiagram-5YYISTIA-BxEJ_ib3.mjs → infoDiagram-5YYISTIA-CGpT_mPZ.mjs} +5 -5
- package/dist/chunks/{init-BR8veUec.mjs → init-hkDiJKhJ.mjs} +1 -1
- package/dist/chunks/{ishikawaDiagram-YF4QCWOH-CXe2kJsO.mjs → ishikawaDiagram-YF4QCWOH-Ch9fmsWb.mjs} +6 -6
- package/dist/chunks/{journeyDiagram-JHISSGLW-DBhSi7Qg.mjs → journeyDiagram-JHISSGLW-CWv40lgD.mjs} +6 -6
- package/dist/chunks/{jszip.min-BsbMNjJg.mjs → jszip.min-DoBCcllU.mjs} +1 -1
- package/dist/chunks/{kanban-definition-UN3LZRKU-CE4yr6J6.mjs → kanban-definition-UN3LZRKU-DSbXvrBB.mjs} +11 -11
- package/dist/chunks/{katex-DxQaNCxg.mjs → katex-BIACU78Y.mjs} +1 -1
- package/dist/chunks/{line-CQUUULPd.mjs → line-DU9tI1Tb.mjs} +4 -4
- package/dist/chunks/{linear-CAfvVXJc.mjs → linear-CPgdjDZh.mjs} +23 -23
- package/dist/chunks/{mdast-util-math-Cpp9XOMP.mjs → mdast-util-math-BNabERqA.mjs} +3 -3
- package/dist/chunks/{mermaid-parser.core-B92FGYsA.mjs → mermaid-parser.core-CRFj5ZQJ.mjs} +22 -22
- package/dist/chunks/{mermaid.core-BA9GkGKf.mjs → mermaid.core-D_2I8mjo.mjs} +52 -52
- package/dist/chunks/{micromark-extension-math-COSLlhTC.mjs → micromark-extension-math-CJDP6iIU.mjs} +6 -6
- package/dist/chunks/{micromark-factory-space-CLWSfTEG.mjs → micromark-factory-space-C6wz33de.mjs} +2 -2
- package/dist/chunks/{mindmap-definition-RKZ34NQL-Dklc3Py2.mjs → mindmap-definition-RKZ34NQL-Bh7eb0sP.mjs} +16 -16
- package/dist/chunks/{native-BE2uW7dn.mjs → native-RS5RJIVO.mjs} +1 -1
- package/dist/chunks/{ordinal-Qrn6pSTz.mjs → ordinal-FCgpEo3E.mjs} +3 -3
- package/dist/chunks/packet-YPE3B663-3bNcBJRE.mjs +3 -0
- package/dist/chunks/{path-CMz47XM0.mjs → path-CCKeP0zq.mjs} +3 -3
- package/dist/chunks/pie-LRSECV5Y-YTwc-ZG1.mjs +3 -0
- package/dist/chunks/{pieDiagram-4H26LBE5-DgCAhu_N.mjs → pieDiagram-4H26LBE5-Bn2IEjeH.mjs} +14 -14
- package/dist/chunks/{prism-bash-C0O3w7uz.mjs → prism-bash-D4zr_u8t.mjs} +1 -1
- package/dist/chunks/{prism-cpp-2GQhW27l.mjs → prism-cpp-CrBJjuu5.mjs} +1 -1
- package/dist/chunks/{prism-csharp-DL7dZG1j.mjs → prism-csharp-lrMxvYpL.mjs} +1 -1
- package/dist/chunks/{prism-css-CNvzB07F.mjs → prism-css-VQTID_HR.mjs} +1 -1
- package/dist/chunks/{prism-dart-DfjFPoDv.mjs → prism-dart-Q-9Z_W9B.mjs} +1 -1
- package/dist/chunks/{prism-docker-BYbfweTi.mjs → prism-docker-DWAQ3dDD.mjs} +1 -1
- package/dist/chunks/{prism-java-DVDstRX2.mjs → prism-java-_m72Vn1f.mjs} +1 -1
- package/dist/chunks/{prism-kotlin-B4yZP901.mjs → prism-kotlin-BTT9anu1.mjs} +1 -1
- package/dist/chunks/{prism-latex-D6GsLRnS.mjs → prism-latex-CL8zDJwm.mjs} +1 -1
- package/dist/chunks/{prism-lua-CJX1SQiz.mjs → prism-lua-D6JJ7p-A.mjs} +1 -1
- package/dist/chunks/{prism-markdown-C4FwQHMu.mjs → prism-markdown-D6D8BprH.mjs} +1 -1
- package/dist/chunks/{prism-markup-templating-CmFWyrMp.mjs → prism-markup-templating-DfRjv0mn.mjs} +1 -1
- package/dist/chunks/{prism-php-D1En1wGd.mjs → prism-php-DffX-wRi.mjs} +1 -1
- package/dist/chunks/{prism-r-DmduEoWu.mjs → prism-r-CU9se1Na.mjs} +1 -1
- package/dist/chunks/{prism-ruby-BX9M-ggZ.mjs → prism-ruby-DuQ4syPd.mjs} +1 -1
- package/dist/chunks/{prism-rust-CW_lhKyK.mjs → prism-rust-DRurCx4W.mjs} +1 -1
- package/dist/chunks/{prism-sql-CsK4eHq9.mjs → prism-sql-Au3VVcw1.mjs} +1 -1
- package/dist/chunks/{prism-typescript-Ca1YH5jC.mjs → prism-typescript-BKj96rmj.mjs} +1 -1
- package/dist/chunks/{prism-yaml-CA6Sp5jk.mjs → prism-yaml-Bk31kvSd.mjs} +1 -1
- package/dist/chunks/{purify.es-W8MRy_-c.mjs → purify.es-Cg3Sx1In.mjs} +1 -1
- package/dist/chunks/{quadrantDiagram-W4KKPZXB-BwDXU7bs.mjs → quadrantDiagram-W4KKPZXB-CGpTgKv9.mjs} +4 -4
- package/dist/chunks/radar-GUYGQ44K-vfGwdTFY.mjs +3 -0
- package/dist/chunks/{requirementDiagram-4Y6WPE33-C8uQNZti.mjs → requirementDiagram-4Y6WPE33-CdEklBE5.mjs} +13 -13
- package/dist/chunks/{rough.esm-BMiXn97a.mjs → rough.esm-D0yWqsMu.mjs} +1 -1
- package/dist/chunks/{sanitize-url-Pw_yecwg.mjs → sanitize-url-DzTIH3XF.mjs} +70 -70
- package/dist/chunks/{sankeyDiagram-5OEKKPKP-BJwtjvLG.mjs → sankeyDiagram-5OEKKPKP-C7B8TYyO.mjs} +18 -18
- package/dist/chunks/{sequenceDiagram-3UESZ5HK-BHEbMtdM.mjs → sequenceDiagram-3UESZ5HK-Wb1gzfDh.mjs} +8 -8
- package/dist/chunks/{src-uHD1i8ix.mjs → src-BMRCbUmP.mjs} +86 -86
- package/dist/chunks/{stateDiagram-AJRCARHV-D2di7cb4.mjs → stateDiagram-AJRCARHV-B1UbFikz.mjs} +17 -17
- package/dist/chunks/stateDiagram-v2-BHNVJYJU-D6E4HlFi.mjs +27 -0
- package/dist/chunks/{timeline-definition-PNZ67QCA-CkldAvjX.mjs → timeline-definition-PNZ67QCA-Dr0oEljt.mjs} +6 -6
- package/dist/chunks/{tools-BQo4iaMe.mjs → tools-DqspF7V9.mjs} +482 -447
- package/dist/chunks/{tools-B6rEBe-4.cjs → tools-sHA-2cBM.cjs} +3 -3
- package/dist/chunks/treeView-BLDUP644-BptrPFA0.mjs +3 -0
- package/dist/chunks/treemap-LRROVOQU-BbiNBKy3.mjs +3 -0
- package/dist/chunks/{types-BdXoqAkw.mjs → types-gj36fzRQ.mjs} +1 -1
- package/dist/chunks/{vennDiagram-CIIHVFJN-BuYgzRtw.mjs → vennDiagram-CIIHVFJN-Bc4yalKA.mjs} +7 -7
- package/dist/chunks/wardley-L42UT6IY-Ck6iMjTG.mjs +3 -0
- package/dist/chunks/{wardleyDiagram-YWT4CUSO-CN5Jfm2D.mjs → wardleyDiagram-YWT4CUSO-Ce_btexJ.mjs} +7 -7
- package/dist/chunks/{webm-muxer-B4_guPR0.mjs → webm-muxer-Doy8JtlV.mjs} +1 -1
- package/dist/chunks/{xychartDiagram-2RQKCTM6-DAcdK50J.mjs → xychartDiagram-2RQKCTM6-HhACbhVa.mjs} +12 -12
- package/dist/full.cjs +1 -1
- package/dist/full.mjs +3 -3
- package/dist/markdown.mjs +2 -2
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/tools.cjs +1 -1
- package/dist/tools.mjs +2 -2
- package/package.json +1 -1
- package/src/components/modules/paste/handlers/blok-data-handler.ts +39 -23
- package/src/components/modules/paste/index.ts +7 -2
- package/src/components/modules/paste/notion-blocks-v3.ts +308 -30
- package/src/components/utils/media-empty-state.ts +80 -47
- package/src/tools/audio/empty-state.ts +4 -0
- package/src/tools/audio/index.ts +4 -0
- package/src/tools/file/empty-state.ts +4 -0
- package/src/tools/file/index.ts +2 -0
- package/src/tools/image/empty-state.ts +4 -0
- package/src/tools/image/index.ts +5 -0
- package/src/tools/video/empty-state.ts +4 -0
- package/src/tools/video/index.ts +4 -0
- package/types/tools/audio.d.ts +6 -0
- package/types/tools/file.d.ts +6 -0
- package/types/tools/image.d.ts +6 -0
- package/types/tools/media-source.d.ts +12 -0
- package/types/tools/video.d.ts +6 -0
- package/types/tools-entry.d.ts +1 -0
- package/dist/chunks/architecture-7EHR7CIX-ByEay9F_.mjs +0 -3
- package/dist/chunks/channel-DCfRAw7p.mjs +0 -5
- package/dist/chunks/classDiagram-4FO5ZUOK-BgQLsKDL.mjs +0 -29
- package/dist/chunks/classDiagram-v2-Q7XG4LA2-DS7F_M1n.mjs +0 -29
- package/dist/chunks/default-DFm_GbQ-.mjs +0 -4
- package/dist/chunks/eventmodeling-FCH6USID-BqDo_Sav.mjs +0 -3
- package/dist/chunks/gitGraph-WXDBUCRP-D-utqQiN.mjs +0 -3
- package/dist/chunks/info-J43DQDTF-D72knbmq.mjs +0 -3
- package/dist/chunks/packet-YPE3B663-BehYuyRA.mjs +0 -3
- package/dist/chunks/pie-LRSECV5Y-C85c3T2E.mjs +0 -3
- package/dist/chunks/radar-GUYGQ44K-DGjR4vAz.mjs +0 -3
- package/dist/chunks/stateDiagram-v2-BHNVJYJU-uJvNkDGf.mjs +0 -27
- package/dist/chunks/treeView-BLDUP644-DhLdRehp.mjs +0 -3
- package/dist/chunks/treemap-LRROVOQU-CgXHb4o7.mjs +0 -3
- package/dist/chunks/wardley-L42UT6IY-sN5mOUNm.mjs +0 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderMediaEmptyState,
|
|
3
3
|
type MediaEmptyStateElement,
|
|
4
|
+
type MediaSource,
|
|
4
5
|
} from '../../components/utils/media-empty-state';
|
|
5
6
|
import type { I18nInstance } from '../../components/utils/tools';
|
|
6
7
|
|
|
@@ -11,6 +12,8 @@ export interface EmptyStateOptions {
|
|
|
11
12
|
acceptTypes: string[];
|
|
12
13
|
/** Max file size in bytes — surfaced in the formats hint when set. */
|
|
13
14
|
maxSize?: number;
|
|
15
|
+
/** Which insert sources to expose. Default `'both'`. */
|
|
16
|
+
sources?: MediaSource;
|
|
14
17
|
i18n: I18nInstance;
|
|
15
18
|
onFile(file: File): void;
|
|
16
19
|
onUrl(url: string): void;
|
|
@@ -21,6 +24,7 @@ export function renderEmptyState(opts: EmptyStateOptions): EmptyStateElement {
|
|
|
21
24
|
return renderMediaEmptyState({
|
|
22
25
|
acceptTypes: opts.acceptTypes,
|
|
23
26
|
maxSize: opts.maxSize,
|
|
27
|
+
sources: opts.sources,
|
|
24
28
|
onFile: opts.onFile,
|
|
25
29
|
onUrl: opts.onUrl,
|
|
26
30
|
labels: {
|
package/src/tools/file/index.ts
CHANGED
|
@@ -98,6 +98,7 @@ export class FileTool implements BlockTool {
|
|
|
98
98
|
|
|
99
99
|
public onPaste(event: PasteEvent): void {
|
|
100
100
|
if (event.type === 'file') {
|
|
101
|
+
if (this.config.sources === 'url') return;
|
|
101
102
|
this.startUpload((event as FilePasteEvent).detail.file);
|
|
102
103
|
}
|
|
103
104
|
}
|
|
@@ -346,6 +347,7 @@ export class FileTool implements BlockTool {
|
|
|
346
347
|
private buildEmpty(): EmptyStateElement {
|
|
347
348
|
return renderEmptyState({
|
|
348
349
|
acceptTypes: this.config.types ?? [],
|
|
350
|
+
sources: this.config.sources,
|
|
349
351
|
i18n: this.api.i18n,
|
|
350
352
|
onFile: (file) => this.startUpload(file),
|
|
351
353
|
onUrl: (url) => this.startUrl(url),
|
|
@@ -3,6 +3,7 @@ import { tr } from './i18n';
|
|
|
3
3
|
import {
|
|
4
4
|
renderMediaEmptyState,
|
|
5
5
|
type MediaEmptyStateElement,
|
|
6
|
+
type MediaSource,
|
|
6
7
|
} from '../../components/utils/media-empty-state';
|
|
7
8
|
import type { I18nInstance } from '../../components/utils/tools';
|
|
8
9
|
|
|
@@ -13,6 +14,8 @@ export interface EmptyStateOptions {
|
|
|
13
14
|
acceptTypes?: string[];
|
|
14
15
|
/** Max file size in bytes — surfaced in the formats hint when set. */
|
|
15
16
|
maxSize?: number;
|
|
17
|
+
/** Which insert sources to expose. Default `'both'`. */
|
|
18
|
+
sources?: MediaSource;
|
|
16
19
|
uploadLabel?: string;
|
|
17
20
|
embedLabel?: string;
|
|
18
21
|
embedPlaceholder?: string;
|
|
@@ -27,6 +30,7 @@ export function renderEmptyState(opts: EmptyStateOptions): EmptyStateElement {
|
|
|
27
30
|
return renderMediaEmptyState({
|
|
28
31
|
acceptTypes: opts.acceptTypes ?? [...DEFAULT_MIME_TYPES],
|
|
29
32
|
maxSize: opts.maxSize,
|
|
33
|
+
sources: opts.sources,
|
|
30
34
|
onFile: opts.onFile,
|
|
31
35
|
onUrl: opts.onUrl,
|
|
32
36
|
labels: {
|
package/src/tools/image/index.ts
CHANGED
|
@@ -156,7 +156,9 @@ export class ImageTool implements BlockTool {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
public onPaste(event: PasteEvent): void {
|
|
159
|
+
const sources = this.config.sources;
|
|
159
160
|
if (event.type === 'pattern') {
|
|
161
|
+
if (sources === 'upload') return;
|
|
160
162
|
const detail = (event as PatternPasteEvent).detail;
|
|
161
163
|
if (this.shouldConvertGifUrl(detail.data)) {
|
|
162
164
|
this.startUrl(detail.data);
|
|
@@ -166,6 +168,7 @@ export class ImageTool implements BlockTool {
|
|
|
166
168
|
return;
|
|
167
169
|
}
|
|
168
170
|
if (event.type === 'tag') {
|
|
171
|
+
if (sources === 'upload') return;
|
|
169
172
|
const node = (event as HTMLPasteEvent).detail.data;
|
|
170
173
|
const src = node?.getAttribute?.('src') ?? '';
|
|
171
174
|
if (!src) return;
|
|
@@ -173,6 +176,7 @@ export class ImageTool implements BlockTool {
|
|
|
173
176
|
return;
|
|
174
177
|
}
|
|
175
178
|
if (event.type === 'file') {
|
|
179
|
+
if (sources === 'url') return;
|
|
176
180
|
const detail = (event as FilePasteEvent).detail;
|
|
177
181
|
this.startUpload(detail.file);
|
|
178
182
|
}
|
|
@@ -687,6 +691,7 @@ export class ImageTool implements BlockTool {
|
|
|
687
691
|
onUrl: (url) => this.startUrl(url),
|
|
688
692
|
acceptTypes: this.config.types,
|
|
689
693
|
maxSize: pickDisplayMaxSize(this.config.maxSize),
|
|
694
|
+
sources: this.config.sources,
|
|
690
695
|
i18n: this.api.i18n,
|
|
691
696
|
});
|
|
692
697
|
this.emptyStateEl = el;
|
|
@@ -3,6 +3,7 @@ import { tr } from './i18n';
|
|
|
3
3
|
import {
|
|
4
4
|
renderMediaEmptyState,
|
|
5
5
|
type MediaEmptyStateElement,
|
|
6
|
+
type MediaSource,
|
|
6
7
|
} from '../../components/utils/media-empty-state';
|
|
7
8
|
import type { I18nInstance } from '../../components/utils/tools';
|
|
8
9
|
|
|
@@ -13,6 +14,8 @@ export interface EmptyStateOptions {
|
|
|
13
14
|
acceptTypes?: string[];
|
|
14
15
|
/** Max file size in bytes — surfaced in the formats hint when set. */
|
|
15
16
|
maxSize?: number;
|
|
17
|
+
/** Which insert sources to expose. Default `'both'`. */
|
|
18
|
+
sources?: MediaSource;
|
|
16
19
|
i18n?: I18nInstance;
|
|
17
20
|
}
|
|
18
21
|
|
|
@@ -23,6 +26,7 @@ export function renderEmptyState(opts: EmptyStateOptions): EmptyStateElement {
|
|
|
23
26
|
return renderMediaEmptyState({
|
|
24
27
|
acceptTypes: opts.acceptTypes ?? [...DEFAULT_MIME_TYPES],
|
|
25
28
|
maxSize: opts.maxSize,
|
|
29
|
+
sources: opts.sources,
|
|
26
30
|
onFile: opts.onFile,
|
|
27
31
|
onUrl: opts.onUrl,
|
|
28
32
|
labels: {
|
package/src/tools/video/index.ts
CHANGED
|
@@ -112,11 +112,14 @@ export class VideoTool implements BlockTool {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
public onPaste(event: PasteEvent): void {
|
|
115
|
+
const sources = this.config.sources;
|
|
115
116
|
if (event.type === 'pattern') {
|
|
117
|
+
if (sources === 'upload') return;
|
|
116
118
|
this.applyResult({ url: (event as PatternPasteEvent).detail.data });
|
|
117
119
|
return;
|
|
118
120
|
}
|
|
119
121
|
if (event.type === 'file') {
|
|
122
|
+
if (sources === 'url') return;
|
|
120
123
|
this.startUpload((event as FilePasteEvent).detail.file);
|
|
121
124
|
}
|
|
122
125
|
}
|
|
@@ -322,6 +325,7 @@ export class VideoTool implements BlockTool {
|
|
|
322
325
|
onUrl: (url) => this.startUrl(url),
|
|
323
326
|
acceptTypes: this.config.types,
|
|
324
327
|
maxSize: pickDisplayMaxSize(this.config.maxSize),
|
|
328
|
+
sources: this.config.sources,
|
|
325
329
|
i18n: this.api.i18n,
|
|
326
330
|
});
|
|
327
331
|
this.root.appendChild(el);
|
package/types/tools/audio.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockToolData } from './block-tool-data';
|
|
2
2
|
import { MaxSizeConfig } from './max-size';
|
|
3
|
+
import { MediaSource } from './media-source';
|
|
3
4
|
|
|
4
5
|
export type AudioAlignment = 'left' | 'center' | 'right';
|
|
5
6
|
|
|
@@ -36,5 +37,10 @@ export interface AudioConfig {
|
|
|
36
37
|
*/
|
|
37
38
|
types?: string[];
|
|
38
39
|
maxSize?: MaxSizeConfig;
|
|
40
|
+
/**
|
|
41
|
+
* Restrict how audio may be added. Default `'both'` (Upload + Link).
|
|
42
|
+
* Use `'upload'` for file-only or `'url'` for link-only. See {@link MediaSource}.
|
|
43
|
+
*/
|
|
44
|
+
sources?: MediaSource;
|
|
39
45
|
captionPlaceholder?: string;
|
|
40
46
|
}
|
package/types/tools/file.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockToolData } from './block-tool-data';
|
|
2
2
|
import { MaxSizeConfig } from './max-size';
|
|
3
|
+
import { MediaSource } from './media-source';
|
|
3
4
|
|
|
4
5
|
/** Persisted data shape for the File block tool. */
|
|
5
6
|
export interface FileData extends BlockToolData {
|
|
@@ -69,6 +70,11 @@ export interface FileConfig {
|
|
|
69
70
|
* unlimited. See {@link MaxSizeConfig}.
|
|
70
71
|
*/
|
|
71
72
|
maxSize?: MaxSizeConfig;
|
|
73
|
+
/**
|
|
74
|
+
* Restrict how a file may be added. Default `'both'` (Upload + Link).
|
|
75
|
+
* Use `'upload'` for file-only or `'url'` for link-only. See {@link MediaSource}.
|
|
76
|
+
*/
|
|
77
|
+
sources?: MediaSource;
|
|
72
78
|
/** Caption placeholder. */
|
|
73
79
|
captionPlaceholder?: string;
|
|
74
80
|
}
|
package/types/tools/image.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockToolData } from './block-tool-data';
|
|
2
2
|
import { MaxSizeConfig } from './max-size';
|
|
3
|
+
import { MediaSource } from './media-source';
|
|
3
4
|
|
|
4
5
|
/** Horizontal alignment of the image within its container. */
|
|
5
6
|
export type ImageAlignment = 'left' | 'center' | 'right';
|
|
@@ -88,6 +89,11 @@ export interface ImageConfig {
|
|
|
88
89
|
* type with `'*'` as the fallback. Default 30 MiB. See {@link MaxSizeConfig}.
|
|
89
90
|
*/
|
|
90
91
|
maxSize?: MaxSizeConfig;
|
|
92
|
+
/**
|
|
93
|
+
* Restrict how an image may be added. Default `'both'` (Upload + Link).
|
|
94
|
+
* Use `'upload'` for file-only or `'url'` for link-only. See {@link MediaSource}.
|
|
95
|
+
*/
|
|
96
|
+
sources?: MediaSource;
|
|
91
97
|
/**
|
|
92
98
|
* Auto-convert animated GIFs to a looping WebM video block on insert.
|
|
93
99
|
* Default true. Set false to keep GIFs as image blocks.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which insert sources a media tool (image, video, audio, file) exposes in its
|
|
3
|
+
* empty state.
|
|
4
|
+
*
|
|
5
|
+
* - `'both'` (default): offer both file Upload and Link (URL/embed) tabs.
|
|
6
|
+
* - `'upload'`: file upload only — the Link tab and URL bar are hidden.
|
|
7
|
+
* - `'url'`: link/embed only — the Upload dropzone, file picker, and
|
|
8
|
+
* drag/paste-to-upload affordances are hidden.
|
|
9
|
+
*
|
|
10
|
+
* With a single source the tab switcher is omitted entirely.
|
|
11
|
+
*/
|
|
12
|
+
export type MediaSource = 'upload' | 'url' | 'both';
|
package/types/tools/video.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockToolData } from './block-tool-data';
|
|
2
2
|
import { MaxSizeConfig } from './max-size';
|
|
3
|
+
import { MediaSource } from './media-source';
|
|
3
4
|
|
|
4
5
|
/** Horizontal alignment of the video within its container. */
|
|
5
6
|
export type VideoAlignment = 'left' | 'center' | 'right';
|
|
@@ -68,6 +69,11 @@ export interface VideoConfig {
|
|
|
68
69
|
* type with `'*'` as the fallback. Default 100 MiB. See {@link MaxSizeConfig}.
|
|
69
70
|
*/
|
|
70
71
|
maxSize?: MaxSizeConfig;
|
|
72
|
+
/**
|
|
73
|
+
* Restrict how a video may be added. Default `'both'` (Upload + Link).
|
|
74
|
+
* Use `'upload'` for file-only or `'url'` for link-only. See {@link MediaSource}.
|
|
75
|
+
*/
|
|
76
|
+
sources?: MediaSource;
|
|
71
77
|
/** Caption placeholder. Default "Write a caption…" */
|
|
72
78
|
captionPlaceholder?: string;
|
|
73
79
|
/** Ambient glow intensity behind every player. Default 'minimal'. */
|
package/types/tools-entry.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export { ImageData, ImageConfig, ImageUploader, ImageAlignment, ImageSize, Image
|
|
|
61
61
|
export { FileData, FileConfig, FileUploader, FileUploadContext, FileUploadResult } from './tools/file';
|
|
62
62
|
export { AudioData, AudioConfig, AudioUploader, AudioUploadContext, AudioAlignment } from './tools/audio';
|
|
63
63
|
export { VideoData, VideoConfig, VideoUploader, VideoUploadContext, VideoAlignment, VideoGlow } from './tools/video';
|
|
64
|
+
export { MediaSource } from './tools/media-source';
|
|
64
65
|
export { ColumnListData } from './tools/column-list';
|
|
65
66
|
export { ColumnData } from './tools/column';
|
|
66
67
|
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./src-uHD1i8ix.mjs";
|
|
2
|
-
import "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
|
|
3
|
-
import "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
|
|
4
|
-
import "./chunk-O5CBEL6O-BeYkA-8N.mjs";
|
|
5
|
-
import "./chunk-FMBD7UC4-P_kboMJT.mjs";
|
|
6
|
-
import "./chunk-BSJP7CBP-DpGSyAQh.mjs";
|
|
7
|
-
import "./chunk-L5ZTLDWV-DZEL0gsI.mjs";
|
|
8
|
-
import "./chunk-ND2GUHAM-BcJIrltI.mjs";
|
|
9
|
-
import "./chunk-55IACEB6-Cq7FTvxb.mjs";
|
|
10
|
-
import "./chunk-2J33WTMH-CHv7Whe1.mjs";
|
|
11
|
-
import "./chunk-NZK2D7GU-BnVJr7kf.mjs";
|
|
12
|
-
import "./chunk-3OPIFGDE-BRLjwZDG.mjs";
|
|
13
|
-
import "./chunk-KSCS5N6A-CvZAQU-1.mjs";
|
|
14
|
-
import "./chunk-LZXEDZCA-CRJ7-DY6.mjs";
|
|
15
|
-
import { i as t, n, r, t as i } from "./chunk-727SXJPM-BKsM41W3.mjs";
|
|
16
|
-
//#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-4FO5ZUOK.mjs
|
|
17
|
-
var a = {
|
|
18
|
-
parser: n,
|
|
19
|
-
get db() {
|
|
20
|
-
return new i();
|
|
21
|
-
},
|
|
22
|
-
renderer: r,
|
|
23
|
-
styles: t,
|
|
24
|
-
init: /* @__PURE__ */ e((e) => {
|
|
25
|
-
e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
26
|
-
}, "init")
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { a as diagram };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./src-uHD1i8ix.mjs";
|
|
2
|
-
import "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
|
|
3
|
-
import "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
|
|
4
|
-
import "./chunk-O5CBEL6O-BeYkA-8N.mjs";
|
|
5
|
-
import "./chunk-FMBD7UC4-P_kboMJT.mjs";
|
|
6
|
-
import "./chunk-BSJP7CBP-DpGSyAQh.mjs";
|
|
7
|
-
import "./chunk-L5ZTLDWV-DZEL0gsI.mjs";
|
|
8
|
-
import "./chunk-ND2GUHAM-BcJIrltI.mjs";
|
|
9
|
-
import "./chunk-55IACEB6-Cq7FTvxb.mjs";
|
|
10
|
-
import "./chunk-2J33WTMH-CHv7Whe1.mjs";
|
|
11
|
-
import "./chunk-NZK2D7GU-BnVJr7kf.mjs";
|
|
12
|
-
import "./chunk-3OPIFGDE-BRLjwZDG.mjs";
|
|
13
|
-
import "./chunk-KSCS5N6A-CvZAQU-1.mjs";
|
|
14
|
-
import "./chunk-LZXEDZCA-CRJ7-DY6.mjs";
|
|
15
|
-
import { i as t, n, r, t as i } from "./chunk-727SXJPM-BKsM41W3.mjs";
|
|
16
|
-
//#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-Q7XG4LA2.mjs
|
|
17
|
-
var a = {
|
|
18
|
-
parser: n,
|
|
19
|
-
get db() {
|
|
20
|
-
return new i();
|
|
21
|
-
},
|
|
22
|
-
renderer: r,
|
|
23
|
-
styles: t,
|
|
24
|
-
init: /* @__PURE__ */ e((e) => {
|
|
25
|
-
e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
26
|
-
}, "init")
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { a as diagram };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./src-uHD1i8ix.mjs";
|
|
2
|
-
import "./chunk-CSCIHK7Q-BO7tl9ID.mjs";
|
|
3
|
-
import "./chunk-5ZQYHXKU-fs0GqOvF.mjs";
|
|
4
|
-
import "./chunk-O5CBEL6O-BeYkA-8N.mjs";
|
|
5
|
-
import "./chunk-BSJP7CBP-DpGSyAQh.mjs";
|
|
6
|
-
import "./chunk-L5ZTLDWV-DZEL0gsI.mjs";
|
|
7
|
-
import "./chunk-55IACEB6-Cq7FTvxb.mjs";
|
|
8
|
-
import "./chunk-2J33WTMH-CHv7Whe1.mjs";
|
|
9
|
-
import "./chunk-NZK2D7GU-BnVJr7kf.mjs";
|
|
10
|
-
import "./chunk-3OPIFGDE-BRLjwZDG.mjs";
|
|
11
|
-
import "./chunk-KSCS5N6A-CvZAQU-1.mjs";
|
|
12
|
-
import "./chunk-LZXEDZCA-CRJ7-DY6.mjs";
|
|
13
|
-
import { i as t, n, r, t as i } from "./chunk-AQP2D5EJ-YdXH_I-o.mjs";
|
|
14
|
-
//#region ../../../Users/jackuait/Packages/blok/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-BHNVJYJU.mjs
|
|
15
|
-
var a = {
|
|
16
|
-
parser: n,
|
|
17
|
-
get db() {
|
|
18
|
-
return new i(2);
|
|
19
|
-
},
|
|
20
|
-
renderer: r,
|
|
21
|
-
styles: t,
|
|
22
|
-
init: /* @__PURE__ */ e((e) => {
|
|
23
|
-
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
24
|
-
}, "init")
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { a as diagram };
|