@templatical/editor 0.34.3 → 0.36.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.
- package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
- package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
- package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
- package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
- package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
- package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
- package/dist/CollaboratorBar-DAITu0hz.js +103 -0
- package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
- package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
- package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
- package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
- package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
- package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
- package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
- package/dist/IssuesPanel-BLbNFMSX.js +117 -0
- package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
- package/dist/MediaPanels-CMTAhDXB.js +43 -0
- package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
- package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
- package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
- package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
- package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
- package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
- package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
- package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
- package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
- package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
- package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
- package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
- package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-vd2e5HzT.js} +3 -3
- package/dist/TitleEditor-CLJ68Ty4.js +199 -0
- package/dist/TplModal-Q9fDgS1M.js +51 -0
- package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
- package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
- package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
- package/dist/blockTypeIcons-5qD4bB76.js +163 -0
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
- package/dist/ca-Jx2CDwtn.js +83 -0
- package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
- package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
- package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
- package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
- package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
- package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
- package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
- package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
- package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
- package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
- package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
- package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
- package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
- package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
- package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
- package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
- package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
- package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
- package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
- package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
- package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
- package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
- package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
- package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
- package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
- package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
- package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
- package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
- package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
- package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
- package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
- package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
- package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
- package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
- package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
- package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
- package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
- package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
- package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
- package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
- package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
- package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
- package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
- package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
- package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
- package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
- package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
- package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
- package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
- package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
- package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
- package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1195 -1095
- package/dist/cdn/editor.js.map +1 -1
- package/dist/check-DWtkBzBU.js +11 -0
- package/dist/chevron-down-C-Fjxcqj.js +11 -0
- package/dist/chevron-right-SOkn2d4P.js +11 -0
- package/dist/chevron-up-lntU1ypp.js +11 -0
- package/dist/circle-alert-CjzUTwy3.js +30 -0
- package/dist/clock-pB2QKPsJ.js +16 -0
- package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
- package/dist/copy-CId1E038.js +19 -0
- package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
- package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
- package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
- package/dist/de-Ck0pBGHu.js +83 -0
- package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
- package/dist/dist-D8i1ixHK.js +177 -0
- package/dist/dist-DBirAJIs.js +410 -0
- package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
- package/dist/editor-modal-B_LaQf0s.js +5998 -0
- package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
- package/dist/en-DcmpWV53.js +2 -0
- package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
- package/dist/es-lagTvUfX.js +83 -0
- package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
- package/dist/eye-BuGtFUoJ.js +16 -0
- package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
- package/dist/fr-C4hVl5Lk.js +83 -0
- package/dist/image-up-gH4JEpU5.js +27 -0
- package/dist/index.d.ts +77 -11
- package/dist/info-BQ60P82u.js +23 -0
- package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
- package/dist/link-3R8it3J7.js +14 -0
- package/dist/list-Ccdgj46T.js +33 -0
- package/dist/loader-circle-B_tAD4k6.js +12 -0
- package/dist/message-circle-P-KSc6V0.js +11 -0
- package/dist/nl-CReD7Apd.js +83 -0
- package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
- package/dist/pencil-9ZiwqS4r.js +14 -0
- package/dist/plus-BwJEzCaO.js +14 -0
- package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
- package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
- package/dist/pt-BR-BRA0-vGP.js +83 -0
- package/dist/refresh-cw-DEgfb2FK.js +25 -0
- package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
- package/dist/search-DqQ8Li5E.js +16 -0
- package/dist/send-CE6uvqop.js +14 -0
- package/dist/shield-check-DhD1Z3rd.js +14 -0
- package/dist/sparkles-R0ZQHa6F.js +28 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2742 -2590
- package/dist/text-align-start-DSux2UNn.js +58 -0
- package/dist/trash-Cf_SqsER.js +30 -0
- package/dist/triangle-alert-C6tGa6jw.js +22 -0
- package/dist/upload-DusKjpVr.js +21 -0
- package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
- package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
- package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
- package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
- package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
- package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
- package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
- package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
- package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
- package/dist/x-D_-42Ukq.js +14 -0
- package/package.json +9 -12
- package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
- package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
- package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
- package/dist/IssuesPanel-CiOjeRFI.js +0 -109
- package/dist/ParagraphEditor-C87tkmtE.js +0 -767
- package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
- package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
- package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
- package/dist/TitleEditor-iNFOisr4.js +0 -198
- package/dist/TplModal-CowM3o_F.js +0 -51
- package/dist/blockTypeIcons-DQsKtHik.js +0 -134
- package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
- package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
- package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
- package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
- package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
- package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
- package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
- package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
- package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
- package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
- package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
- package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
- package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
- package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
- package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
- package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
- package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
- package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
- package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
- package/dist/check-JK8Uacq0.js +0 -7
- package/dist/chevron-down-a-fb_Ijn.js +0 -7
- package/dist/chevron-up-x4l0et_Y.js +0 -7
- package/dist/circle-alert-CJDW5LZo.js +0 -25
- package/dist/clock-BW6rXk2f.js +0 -12
- package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
- package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
- package/dist/dist-dNiknO7j.js +0 -251
- package/dist/dist-heatwAdo.js +0 -150
- package/dist/image-up-CuzFc1mu.js +0 -23
- package/dist/info-DybAwcA3.js +0 -19
- package/dist/loader-circle-t-SVgmJ3.js +0 -7
- package/dist/message-circle-DtwKrlhN.js +0 -7
- package/dist/pencil-2qhC-Y4q.js +0 -10
- package/dist/refresh-cw-C8SBuPdg.js +0 -29
- package/dist/send-BoqJliF6.js +0 -10
- package/dist/shield-check-D0dMaHtE.js +0 -10
- package/dist/sparkles-Dy2BJjiX.js +0 -23
- package/dist/text-align-start-DrxjxvIy.js +0 -43
- package/dist/trash-rYMzzHZd.js +0 -25
- package/dist/triangle-alert-DxnFj4-B.js +0 -17
- package/dist/upload-DZu1adQz.js +0 -17
- package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
- package/dist/x-DJOd1hS4.js +0 -10
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { F as e, Ot as t, P as n, S as r, c as i, d as a, g as o, h as s, i as c, k as l, kt as u, l as d, rt as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
-
import { c as _ } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
-
import { K as v, U as y, h as b } from "./keys-C3P1yxnr.js";
|
|
4
|
-
import { t as x } from "./useI18n-CL6RfPzK.js";
|
|
5
|
-
import { n as S } from "./usePopoverPosition-CWxaIWd3.js";
|
|
6
|
-
import { t as C } from "./createLucideIcon-Bvw1Zx56.js";
|
|
7
|
-
import { t as w } from "./MergeTagInput-RytOlh1A.js";
|
|
8
|
-
import { t as T } from "./x-DJOd1hS4.js";
|
|
9
|
-
import { t as E } from "./ColorPicker-C6EOwtHC.js";
|
|
10
|
-
var D = C("bold", [["path", {
|
|
11
|
-
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
12
|
-
key: "mg9rjx"
|
|
13
|
-
}]]), O = C("italic", [
|
|
14
|
-
["line", {
|
|
15
|
-
x1: "19",
|
|
16
|
-
x2: "10",
|
|
17
|
-
y1: "4",
|
|
18
|
-
y2: "4",
|
|
19
|
-
key: "15jd3p"
|
|
20
|
-
}],
|
|
21
|
-
["line", {
|
|
22
|
-
x1: "14",
|
|
23
|
-
x2: "5",
|
|
24
|
-
y1: "20",
|
|
25
|
-
y2: "20",
|
|
26
|
-
key: "bu0au3"
|
|
27
|
-
}],
|
|
28
|
-
["line", {
|
|
29
|
-
x1: "15",
|
|
30
|
-
x2: "9",
|
|
31
|
-
y1: "4",
|
|
32
|
-
y2: "20",
|
|
33
|
-
key: "uljnxc"
|
|
34
|
-
}]
|
|
35
|
-
]), k = C("link", [["path", {
|
|
36
|
-
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
|
|
37
|
-
key: "1cjeqo"
|
|
38
|
-
}], ["path", {
|
|
39
|
-
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
|
|
40
|
-
key: "19qd67"
|
|
41
|
-
}]]), A = ["data-tpl-theme"], j = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, M = {
|
|
42
|
-
id: "tpl-link-dialog-title",
|
|
43
|
-
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
44
|
-
}, N = ["aria-label"], P = { class: "tpl:p-5" }, F = { class: "tpl:mb-4 tpl:last:mb-0" }, I = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, L = { class: "tpl:mb-4 tpl:last:mb-0" }, R = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, z = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, B = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, V = /* @__PURE__ */ h({
|
|
45
|
-
__name: "RichTextLinkDialog",
|
|
46
|
-
props: /*@__PURE__*/ g({
|
|
47
|
-
visible: { type: Boolean },
|
|
48
|
-
isEditingLink: { type: Boolean }
|
|
49
|
-
}, {
|
|
50
|
-
linkUrl: { required: !0 },
|
|
51
|
-
linkUrlModifiers: {},
|
|
52
|
-
linkColor: { default: "" },
|
|
53
|
-
linkColorModifiers: {},
|
|
54
|
-
dialogRef: { required: !0 },
|
|
55
|
-
dialogRefModifiers: {}
|
|
56
|
-
}),
|
|
57
|
-
emits: /*@__PURE__*/ g([
|
|
58
|
-
"close",
|
|
59
|
-
"insert",
|
|
60
|
-
"remove",
|
|
61
|
-
"keydown"
|
|
62
|
-
], [
|
|
63
|
-
"update:linkUrl",
|
|
64
|
-
"update:linkColor",
|
|
65
|
-
"update:dialogRef"
|
|
66
|
-
]),
|
|
67
|
-
setup(n, { emit: s }) {
|
|
68
|
-
let h = e(n, "linkUrl"), g = e(n, "linkColor"), C = e(n, "dialogRef"), D = s, O = r(y, null), k = r(v, null), V = S(), H = r(b, null), U = p(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = x();
|
|
69
|
-
return (e, r) => f(V) ? (l(), d(c, {
|
|
70
|
-
key: 0,
|
|
71
|
-
to: f(V)
|
|
72
|
-
}, [n.visible ? (l(), a("div", {
|
|
73
|
-
key: 0,
|
|
74
|
-
"data-tpl-theme": f(k),
|
|
75
|
-
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
|
|
76
|
-
style: t(f(O)),
|
|
77
|
-
onClick: r[7] ||= _((e) => D("close"), ["self"])
|
|
78
|
-
}, [i("div", {
|
|
79
|
-
ref: (e) => C.value = e,
|
|
80
|
-
role: "dialog",
|
|
81
|
-
"aria-modal": "true",
|
|
82
|
-
"aria-labelledby": "tpl-link-dialog-title",
|
|
83
|
-
"data-testid": "link-dialog",
|
|
84
|
-
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
85
|
-
}, [
|
|
86
|
-
i("div", j, [i("h4", M, u(n.isEditingLink ? f(W).linkDialog.editLink : f(W).linkDialog.insertLink), 1), i("button", {
|
|
87
|
-
type: "button",
|
|
88
|
-
"aria-label": f(W).linkDialog.cancel,
|
|
89
|
-
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
90
|
-
onClick: r[0] ||= (e) => D("close")
|
|
91
|
-
}, [o(f(T), {
|
|
92
|
-
size: 16,
|
|
93
|
-
"stroke-width": 2
|
|
94
|
-
})], 8, N)]),
|
|
95
|
-
i("div", P, [i("div", F, [i("label", I, u(f(W).linkDialog.urlLabel), 1), o(w, {
|
|
96
|
-
"model-value": h.value,
|
|
97
|
-
type: "url",
|
|
98
|
-
"data-testid": "link-dialog-url",
|
|
99
|
-
placeholder: f(W).linkDialog.urlPlaceholder,
|
|
100
|
-
"onUpdate:modelValue": r[1] ||= (e) => h.value = e,
|
|
101
|
-
onKeydown: r[2] ||= (e) => D("keydown", e)
|
|
102
|
-
}, null, 8, ["model-value", "placeholder"])]), i("div", L, [i("label", R, u(f(W).linkDialog.colorLabel), 1), o(E, {
|
|
103
|
-
"model-value": g.value,
|
|
104
|
-
"seed-color": U.value,
|
|
105
|
-
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
106
|
-
}, null, 8, ["model-value", "seed-color"])])]),
|
|
107
|
-
i("div", z, [n.isEditingLink ? (l(), a("button", {
|
|
108
|
-
key: 0,
|
|
109
|
-
type: "button",
|
|
110
|
-
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
111
|
-
onClick: r[4] ||= (e) => D("remove")
|
|
112
|
-
}, u(f(W).linkDialog.removeLink), 1)) : m("", !0), i("div", B, [i("button", {
|
|
113
|
-
type: "button",
|
|
114
|
-
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
115
|
-
onClick: r[5] ||= (e) => D("close")
|
|
116
|
-
}, u(f(W).linkDialog.cancel), 1), i("button", {
|
|
117
|
-
type: "button",
|
|
118
|
-
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-on-primary)]",
|
|
119
|
-
"data-testid": "link-dialog-submit",
|
|
120
|
-
onClick: r[6] ||= (e) => D("insert")
|
|
121
|
-
}, u(n.isEditingLink ? f(W).linkDialog.updateLink : f(W).linkDialog.insertLink), 1)])])
|
|
122
|
-
], 512)], 12, A)) : m("", !0)], 8, ["to"])) : m("", !0);
|
|
123
|
-
}
|
|
124
|
-
}), H = {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
127
|
-
}, U = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, W = {
|
|
128
|
-
key: 1,
|
|
129
|
-
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
|
|
130
|
-
}, G = /* @__PURE__ */ h({
|
|
131
|
-
__name: "RichTextEditorContent",
|
|
132
|
-
props: {
|
|
133
|
-
editor: {},
|
|
134
|
-
editorContent: {},
|
|
135
|
-
isLoading: { type: Boolean },
|
|
136
|
-
initError: {}
|
|
137
|
-
},
|
|
138
|
-
emits: ["retry"],
|
|
139
|
-
setup(e, { emit: t }) {
|
|
140
|
-
let r = t, { t: o } = x();
|
|
141
|
-
return (t, c) => e.isLoading ? (l(), a("div", H, [i("div", U, u(f(o).errors.editorLoading), 1)])) : e.initError ? (l(), a("div", W, [s(u(f(o).errors.editorLoadFailed) + " ", 1), i("button", {
|
|
142
|
-
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
143
|
-
onClick: c[0] ||= (e) => r("retry")
|
|
144
|
-
}, u(f(o).errors.retry), 1)])) : e.editorContent && e.editor ? (l(), d(n(e.editorContent), {
|
|
145
|
-
key: 2,
|
|
146
|
-
editor: e.editor,
|
|
147
|
-
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
148
|
-
}, null, 8, ["editor"])) : m("", !0);
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
//#endregion
|
|
152
|
-
export { D as a, O as i, V as n, k as r, G as t };
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { B as e, Dt as t, L as n, Ot as r, P as i, S as a, T as ee, X as o, _ as te, c as s, d as c, g as l, j as u, k as d, kt as f, l as p, r as m, rt as h, s as g, u as _, v, z as ne } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
|
|
2
|
-
import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-BuG03jBM.js";
|
|
3
|
-
import "./useEditorCore-DdkQuTHl.js";
|
|
4
|
-
import { G as re, J as C, h as ie, z as ae } from "./keys-C3P1yxnr.js";
|
|
5
|
-
import { t as oe } from "./useI18n-CL6RfPzK.js";
|
|
6
|
-
import { n as se, r as w, t as T } from "./blockTypeIcons-DQsKtHik.js";
|
|
7
|
-
import { t as ce } from "./pencil-2qhC-Y4q.js";
|
|
8
|
-
import { t as le } from "./trash-rYMzzHZd.js";
|
|
9
|
-
import { t as ue } from "./x-DJOd1hS4.js";
|
|
10
|
-
import { v as de } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
-
import { t as fe } from "./formatAbsoluteDateTime-DMmop3C-.js";
|
|
12
|
-
import { t as pe } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
13
|
-
import { t as me } from "./TplModal-CowM3o_F.js";
|
|
14
|
-
//#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var he = {
|
|
16
|
-
role: "dialog",
|
|
17
|
-
"aria-modal": "true",
|
|
18
|
-
"data-testid": "saved-blocks-browser",
|
|
19
|
-
"aria-labelledby": "tpl-saved-blocks-browser-title",
|
|
20
|
-
class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-[1000px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
|
|
21
|
-
style: {
|
|
22
|
-
"background-color": "var(--tpl-bg-elevated)",
|
|
23
|
-
"box-shadow": "var(--tpl-shadow-xl)"
|
|
24
|
-
}
|
|
25
|
-
}, ge = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, _e = {
|
|
26
|
-
id: "tpl-saved-blocks-browser-title",
|
|
27
|
-
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
28
|
-
}, ve = ["aria-label"], ye = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, be = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, xe = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, Se = { class: "tpl:relative" }, Ce = ["placeholder", "disabled"], we = ["aria-label"], Te = { value: "" }, E = ["value"], D = { id: "tpl-saved-block-browser-categories" }, O = ["value"], Ee = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, De = ["aria-label"], Oe = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
31
|
-
}, ke = ["onFocusout"], Ae = ["aria-label", "onKeydown"], je = [
|
|
32
|
-
"aria-label",
|
|
33
|
-
"placeholder",
|
|
34
|
-
"onKeydown"
|
|
35
|
-
], Me = ["aria-pressed", "onClick"], Ne = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pe = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fe = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ie = {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
38
|
-
}, Le = {
|
|
39
|
-
"data-testid": "saved-block-category",
|
|
40
|
-
class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
|
|
41
|
-
}, Re = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, ze = {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
44
|
-
}, Be = ["title"], Ve = ["aria-label", "onClick"], He = [
|
|
45
|
-
"aria-label",
|
|
46
|
-
"title",
|
|
47
|
-
"onClick"
|
|
48
|
-
], Ue = [
|
|
49
|
-
"aria-label",
|
|
50
|
-
"title",
|
|
51
|
-
"onClick"
|
|
52
|
-
], We = {
|
|
53
|
-
key: 2,
|
|
54
|
-
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
55
|
-
}, Ge = {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
58
|
-
}, k = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ke = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, qe = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Je = {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
61
|
-
}, Ye = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Xe = {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
64
|
-
}, Ze = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, $e = { class: "tpl:flex tpl:items-center tpl:gap-2" }, et = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, tt = ["value"], nt = { class: "tpl:flex tpl:gap-2" }, rt = ["disabled"], A = /* @__PURE__ */ v({
|
|
65
|
-
__name: "SavedBlocksBrowserModal",
|
|
66
|
-
props: { visible: { type: Boolean } },
|
|
67
|
-
emits: ["close", "insert"],
|
|
68
|
-
setup(v, { emit: A }) {
|
|
69
|
-
let it = v, j = A, at = te(() => import("./BlockPreviewCanvas-B621ANn9.js").then((e) => e.n)), { t: M, format: N } = oe(), P = C(ae, "SavedBlocksBrowserModal"), F = C(ie, "SavedBlocksBrowserModal"), ot = a(re, void 0), I = o(""), L = o(""), R = o(null), z = o(null), B = o(null), V = o(""), H = o(""), U = o(null), W = o("end"), G = g(() => {
|
|
70
|
-
let e = I.value.trim().toLowerCase(), t = L.value;
|
|
71
|
-
return P.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
72
|
-
}), K = g(() => P.isLoading.value && P.savedBlocks.value.length === 0), st = g(() => I.value.trim().length > 0 || L.value !== ""), q = g(() => R.value ? P.savedBlocks.value.find((e) => e.id === R.value) ?? null : null), ct = g(() => {
|
|
73
|
-
let e = [{
|
|
74
|
-
value: "beginning",
|
|
75
|
-
label: M.savedBlocks.insertAtBeginning
|
|
76
|
-
}], t = F.content.value.blocks;
|
|
77
|
-
for (let n = 0; n < t.length; n++) {
|
|
78
|
-
let r = t[n], i = r.type, a = M.blocks[i] ?? r.type;
|
|
79
|
-
e.push({
|
|
80
|
-
value: r.id,
|
|
81
|
-
label: N(M.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return e.push({
|
|
85
|
-
value: "end",
|
|
86
|
-
label: M.savedBlocks.insertAtEnd
|
|
87
|
-
}), e;
|
|
88
|
-
}), lt = g(() => {
|
|
89
|
-
if (W.value === "end") return;
|
|
90
|
-
if (W.value === "beginning") return 0;
|
|
91
|
-
let e = F.content.value.blocks.findIndex((e) => e.id === W.value);
|
|
92
|
-
if (e !== -1) return e + 1;
|
|
93
|
-
});
|
|
94
|
-
n(() => it.visible, (e) => {
|
|
95
|
-
if (e) {
|
|
96
|
-
I.value = "", L.value = "", R.value = null, z.value = null, B.value = null;
|
|
97
|
-
let e = F.state.selectedBlockId;
|
|
98
|
-
if (e) {
|
|
99
|
-
let t = F.content.value.blocks.findIndex((t) => t.id === e);
|
|
100
|
-
W.value = t === -1 ? "end" : e;
|
|
101
|
-
} else W.value = "end";
|
|
102
|
-
}
|
|
103
|
-
}, { immediate: !0 });
|
|
104
|
-
function ut(e) {
|
|
105
|
-
let t = [], n = /* @__PURE__ */ new Set();
|
|
106
|
-
for (let r of e.content) if (!n.has(r.type) && T[r.type] && (n.add(r.type), t.push({
|
|
107
|
-
type: r.type,
|
|
108
|
-
icon: T[r.type]
|
|
109
|
-
})), t.length >= 5) break;
|
|
110
|
-
return t;
|
|
111
|
-
}
|
|
112
|
-
function J(e) {
|
|
113
|
-
let t = new Set(e.content.map((e) => e.type));
|
|
114
|
-
return Math.max(0, t.size - 5);
|
|
115
|
-
}
|
|
116
|
-
function Y(e) {
|
|
117
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
118
|
-
return t ? pe(t, M.time, N) ?? "" : "";
|
|
119
|
-
}
|
|
120
|
-
function dt(e) {
|
|
121
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
122
|
-
return t ? fe(t, ot) : "";
|
|
123
|
-
}
|
|
124
|
-
async function ft(e) {
|
|
125
|
-
try {
|
|
126
|
-
await P.remove(e), R.value === e && (R.value = null);
|
|
127
|
-
} finally {
|
|
128
|
-
z.value = null;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
async function pt(e) {
|
|
132
|
-
P.canUpdateBlock(e) && (B.value = e.id, V.value = e.name, H.value = e.category ?? "", z.value = null, await ee(), U.value?.focus(), U.value?.select());
|
|
133
|
-
}
|
|
134
|
-
function X() {
|
|
135
|
-
B.value = null, V.value = "", H.value = "";
|
|
136
|
-
}
|
|
137
|
-
async function Z(e) {
|
|
138
|
-
if (B.value !== e) return;
|
|
139
|
-
let t = V.value.trim(), n = H.value.trim(), r = P.savedBlocks.value.find((t) => t.id === e), i = {};
|
|
140
|
-
if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
|
|
141
|
-
X();
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
try {
|
|
145
|
-
await P.update(e, i);
|
|
146
|
-
} finally {
|
|
147
|
-
X();
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function mt(e, t) {
|
|
151
|
-
let n = e.currentTarget, r = e.relatedTarget;
|
|
152
|
-
r && n.contains(r) || Z(t);
|
|
153
|
-
}
|
|
154
|
-
function Q() {
|
|
155
|
-
q.value && j("insert", q.value, lt.value);
|
|
156
|
-
}
|
|
157
|
-
function $() {
|
|
158
|
-
j("close");
|
|
159
|
-
}
|
|
160
|
-
function ht(e) {
|
|
161
|
-
B.value || (e.key === "Escape" && $(), e.key === "Enter" && q.value && (e.preventDefault(), Q()));
|
|
162
|
-
}
|
|
163
|
-
return (n, a) => (d(), p(me, {
|
|
164
|
-
visible: v.visible,
|
|
165
|
-
onClose: $,
|
|
166
|
-
onKeydown: ht
|
|
167
|
-
}, {
|
|
168
|
-
default: ne(() => [s("div", he, [
|
|
169
|
-
s("div", ge, [s("h3", _e, f(h(M).savedBlocks.browse), 1), s("button", {
|
|
170
|
-
"aria-label": h(M).savedBlocks.close,
|
|
171
|
-
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
172
|
-
onClick: $
|
|
173
|
-
}, [l(h(ue), {
|
|
174
|
-
size: 16,
|
|
175
|
-
"stroke-width": 2
|
|
176
|
-
})], 8, ve)]),
|
|
177
|
-
s("div", ye, [s("div", be, [
|
|
178
|
-
s("div", xe, [s("div", Se, [l(h(se), {
|
|
179
|
-
size: 14,
|
|
180
|
-
"stroke-width": 2,
|
|
181
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
|
|
182
|
-
}), e(s("input", {
|
|
183
|
-
"onUpdate:modelValue": a[0] ||= (e) => I.value = e,
|
|
184
|
-
type: "text",
|
|
185
|
-
placeholder: h(M).savedBlocks.search,
|
|
186
|
-
disabled: K.value,
|
|
187
|
-
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
188
|
-
}, null, 8, Ce), [[y, I.value]])]), h(P).categories.value.length > 0 ? e((d(), c("select", {
|
|
189
|
-
key: 0,
|
|
190
|
-
"onUpdate:modelValue": a[1] ||= (e) => L.value = e,
|
|
191
|
-
"data-testid": "saved-blocks-category-filter",
|
|
192
|
-
"aria-label": h(M).savedBlocks.filterByCategory,
|
|
193
|
-
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
194
|
-
}, [s("option", Te, f(h(M).savedBlocks.allCategories), 1), (d(!0), c(m, null, u(h(P).categories.value, (e) => (d(), c("option", {
|
|
195
|
-
key: e,
|
|
196
|
-
value: e
|
|
197
|
-
}, f(e), 9, E))), 128))], 8, we)), [[x, L.value]]) : _("", !0)]),
|
|
198
|
-
s("datalist", D, [(d(!0), c(m, null, u(h(P).categories.value, (e) => (d(), c("option", {
|
|
199
|
-
key: e,
|
|
200
|
-
value: e
|
|
201
|
-
}, null, 8, O))), 128))]),
|
|
202
|
-
s("div", Ee, [K.value ? (d(), c("div", {
|
|
203
|
-
key: 0,
|
|
204
|
-
"data-testid": "saved-blocks-loading",
|
|
205
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
206
|
-
role: "status",
|
|
207
|
-
"aria-busy": "true",
|
|
208
|
-
"aria-label": h(M).savedBlocks.loading
|
|
209
|
-
}, [(d(), c(m, null, u(3, (e) => s("div", {
|
|
210
|
-
key: e,
|
|
211
|
-
"aria-hidden": "true",
|
|
212
|
-
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
213
|
-
}, [...a[7] ||= [s("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), s("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, De)) : G.value.length > 0 ? (d(), c("div", Oe, [(d(!0), c(m, null, u(G.value, (n) => (d(), c(m, { key: n.id }, [B.value === n.id ? (d(), c("div", {
|
|
214
|
-
key: 0,
|
|
215
|
-
class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
|
|
216
|
-
style: { "background-color": "var(--tpl-primary-light)" },
|
|
217
|
-
onFocusout: (e) => mt(e, n.id)
|
|
218
|
-
}, [e(s("input", {
|
|
219
|
-
ref_for: !0,
|
|
220
|
-
ref: (e) => U.value = e,
|
|
221
|
-
"onUpdate:modelValue": a[2] ||= (e) => V.value = e,
|
|
222
|
-
type: "text",
|
|
223
|
-
"aria-label": h(M).savedBlocks.rename,
|
|
224
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
225
|
-
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[3] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
226
|
-
}, null, 40, Ae), [[y, V.value]]), e(s("input", {
|
|
227
|
-
"onUpdate:modelValue": a[4] ||= (e) => H.value = e,
|
|
228
|
-
type: "text",
|
|
229
|
-
"data-testid": "saved-blocks-edit-category",
|
|
230
|
-
"aria-label": h(M).savedBlocks.category,
|
|
231
|
-
placeholder: h(M).savedBlocks.categoryPlaceholder,
|
|
232
|
-
list: "tpl-saved-block-browser-categories",
|
|
233
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
234
|
-
onKeydown: [S(b((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), a[5] ||= S(b((e) => X(), ["prevent", "stop"]), ["esc"])]
|
|
235
|
-
}, null, 40, je), [[y, H.value]])], 40, ke)) : (d(), c("button", {
|
|
236
|
-
key: 1,
|
|
237
|
-
type: "button",
|
|
238
|
-
"data-testid": "saved-block-card",
|
|
239
|
-
"aria-pressed": R.value === n.id,
|
|
240
|
-
class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
241
|
-
style: r({
|
|
242
|
-
borderColor: R.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
243
|
-
backgroundColor: R.value === n.id ? "var(--tpl-primary-light)" : "transparent"
|
|
244
|
-
}),
|
|
245
|
-
onClick: (e) => R.value = n.id
|
|
246
|
-
}, [
|
|
247
|
-
s("div", Ne, [s("span", Pe, f(n.name), 1), s("span", Fe, f(h(N)(h(M).savedBlocks.blockCount, { count: n.content.length })), 1)]),
|
|
248
|
-
n.category ? (d(), c("div", Ie, [s("span", Le, f(n.category), 1)])) : _("", !0),
|
|
249
|
-
s("div", Re, [
|
|
250
|
-
(d(!0), c(m, null, u(ut(n), (e) => (d(), p(i(e.icon), {
|
|
251
|
-
key: e.type,
|
|
252
|
-
size: 14,
|
|
253
|
-
"stroke-width": 1.5,
|
|
254
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
255
|
-
}))), 128)),
|
|
256
|
-
J(n) > 0 ? (d(), c("span", ze, " +" + f(J(n)), 1)) : _("", !0),
|
|
257
|
-
Y(n) ? (d(), c("span", {
|
|
258
|
-
key: 1,
|
|
259
|
-
"data-testid": "saved-block-updated",
|
|
260
|
-
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
261
|
-
title: dt(n)
|
|
262
|
-
}, f(Y(n)), 9, Be)) : _("", !0),
|
|
263
|
-
z.value === n.id ? (d(), c("button", {
|
|
264
|
-
key: 2,
|
|
265
|
-
"aria-label": h(M).savedBlocks.deleteConfirm,
|
|
266
|
-
class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
|
|
267
|
-
style: { "background-color": "transparent" },
|
|
268
|
-
onClick: b((e) => ft(n.id), ["stop"])
|
|
269
|
-
}, f(h(M).savedBlocks.deleteConfirm), 9, Ve)) : (d(), c(m, { key: 3 }, [h(P).canUpdateBlock(n) ? (d(), c("button", {
|
|
270
|
-
key: 0,
|
|
271
|
-
class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
272
|
-
"aria-label": h(M).savedBlocks.rename,
|
|
273
|
-
title: h(M).savedBlocks.rename,
|
|
274
|
-
onClick: b((e) => pt(n), ["stop"])
|
|
275
|
-
}, [l(h(ce), {
|
|
276
|
-
size: 12,
|
|
277
|
-
"stroke-width": 1.5
|
|
278
|
-
})], 8, He)) : _("", !0), h(P).canDeleteBlock(n) ? (d(), c("button", {
|
|
279
|
-
key: 1,
|
|
280
|
-
class: t(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !h(P).canUpdateBlock(n) }]),
|
|
281
|
-
"aria-label": h(M).savedBlocks.delete,
|
|
282
|
-
title: h(M).savedBlocks.delete,
|
|
283
|
-
onClick: b((e) => z.value = n.id, ["stop"])
|
|
284
|
-
}, [l(h(le), {
|
|
285
|
-
size: 12,
|
|
286
|
-
"stroke-width": 1.5
|
|
287
|
-
})], 10, Ue)) : _("", !0)], 64))
|
|
288
|
-
])
|
|
289
|
-
], 12, Me))], 64))), 128))])) : (d(), c("div", We, [l(h(w), {
|
|
290
|
-
size: 32,
|
|
291
|
-
"stroke-width": 1,
|
|
292
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
293
|
-
}), st.value ? (d(), c("p", Ge, f(h(M).savedBlocks.noResults), 1)) : (d(), c(m, { key: 1 }, [s("p", k, f(h(M).savedBlocks.empty), 1), s("p", Ke, f(h(M).savedBlocks.emptyHint), 1)], 64))]))])
|
|
294
|
-
]), s("div", qe, [q.value ? (d(), c("div", Je, [s("div", Ye, [l(h(at), { blocks: q.value.content }, null, 8, ["blocks"])])])) : (d(), c("div", Xe, [l(h(w), {
|
|
295
|
-
size: 32,
|
|
296
|
-
"stroke-width": 1,
|
|
297
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
298
|
-
}), s("p", Ze, f(h(M).savedBlocks.selectToPreview), 1)]))])]),
|
|
299
|
-
s("div", Qe, [s("div", $e, [s("label", et, f(h(M).savedBlocks.insertPosition), 1), e(s("select", {
|
|
300
|
-
"onUpdate:modelValue": a[6] ||= (e) => W.value = e,
|
|
301
|
-
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
302
|
-
}, [(d(!0), c(m, null, u(ct.value, (e) => (d(), c("option", {
|
|
303
|
-
key: e.value,
|
|
304
|
-
value: e.value
|
|
305
|
-
}, f(e.label), 9, tt))), 128))], 512), [[x, W.value]])]), s("div", nt, [s("button", {
|
|
306
|
-
type: "button",
|
|
307
|
-
"data-testid": "saved-blocks-browser-close",
|
|
308
|
-
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
309
|
-
onClick: $
|
|
310
|
-
}, f(h(M).savedBlocks.close), 1), s("button", {
|
|
311
|
-
type: "button",
|
|
312
|
-
class: t(h(de)),
|
|
313
|
-
disabled: !q.value,
|
|
314
|
-
onClick: Q
|
|
315
|
-
}, f(h(M).savedBlocks.insert), 11, rt)])])
|
|
316
|
-
])]),
|
|
317
|
-
_: 1
|
|
318
|
-
}, 8, ["visible"]));
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
//#endregion
|
|
322
|
-
export { A as default };
|