@templatical/editor 0.53.0 → 0.54.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/{AiChatPanel-DdhtfsmO.js → AiChatPanel-C8SeEJRP.js} +8 -8
- package/dist/{AiPanels-HBx7xoJR.js → AiPanels-CR6zphjP.js} +1 -1
- package/dist/{AiRewriteMenu-DPzSekZt.js → AiRewriteMenu-arKoTjsQ.js} +6 -6
- package/dist/{BlockIssueBadge-eIXZJ9M3.js → BlockIssueBadge-DaPTq1RE.js} +2 -2
- package/dist/{BlockPreviewCanvas-DO-2TP_6.js → BlockPreviewCanvas-BTieuBmH.js} +3 -3
- package/dist/{CloudPanels-i2kZdrdP.js → CloudPanels-Hxdp0doU.js} +3 -3
- package/dist/{CollaborationNotices-DANsjl7c.js → CollaborationNotices-Cnx0XHzZ.js} +1 -1
- package/dist/{CollaboratorBar-CbbAA0m1.js → CollaboratorBar-BaBoNhwB.js} +1 -1
- package/dist/{CommentsPanel-CYW3LWis.js → CommentsPanel-Ck3QmqiC.js} +1 -1
- package/dist/{CommentsSidebar-CcF4ISMi.js → CommentsSidebar-CHknhOar.js} +10 -10
- package/dist/{CountdownToolbar-D3Lv74kU.js → CountdownToolbar-CM4XNEuO.js} +3 -3
- package/dist/{IssuesPanel-BMAG9042.js → IssuesPanel-1wGV0wiy.js} +8 -8
- package/dist/{LanguageMenu-FlP_Jbup.js → LanguageMenu-BpxbIJEx.js} +8 -8
- package/dist/{LocaleNotices-DAnVszWu.js → LocaleNotices-WzsYtBRs.js} +2 -2
- package/dist/{LogicTagInsertButton-BjYs-UQX.js → LogicTagInsertButton-DgTJ6Lvx.js} +3 -3
- package/dist/{MediaEditModal-LnG-cF_S.js → MediaEditModal-C3U9Mi31.js} +1 -1
- package/dist/{MediaPanels-C2r5fiFo.js → MediaPanels-CGmk9ufe.js} +1 -1
- package/dist/{MergeTagInput-BsnogCeY.js → MergeTagInput-B_51YcQO.js} +1 -1
- package/dist/{MergeTagModeToggle-DiufIQ-_.js → MergeTagModeToggle-D3Q2z317.js} +3 -3
- package/dist/{MergeTagTextarea-BweI-Xsi.js → MergeTagTextarea-DZz1L9DE.js} +2 -2
- package/dist/{ParagraphEditor-qgBp5yIB.js → ParagraphEditor-B38t4E2p.js} +16 -15
- package/dist/{RestoreVersionDialog-DdYUrFiK.js → RestoreVersionDialog-n7FSmWXB.js} +3 -3
- package/dist/{RichTextEditorContent-C5MAzx3E.js → RichTextEditorContent-Dstovi0m.js} +4 -4
- package/dist/{SaveBlockDialog-eK6fjtTy.js → SaveBlockDialog-B94NpmDV.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-D2QHd2Yp.js → SavedBlocksBrowserModal-C1vSc8iM.js} +9 -9
- package/dist/{SavedBlocksPanels-Cl61f4Mf.js → SavedBlocksPanels-DLDmIYeL.js} +1 -1
- package/dist/{SavedBlocksPickBar-CXP2dkeB.js → SavedBlocksPickBar-ngf2sFEs.js} +2 -2
- package/dist/{TemplateSettings-BKJrdZcH.js → TemplateSettings-Baar78_s.js} +6 -6
- package/dist/{TestEmailModal-DQotJg6g.js → TestEmailModal-CB_9I1bl.js} +6 -6
- package/dist/{TestEmailPanel-CwiTzJsh.js → TestEmailPanel-BUq-dbXQ.js} +1 -1
- package/dist/{TitleEditor-CzSvsPAn.js → TitleEditor-BLP41rwy.js} +10 -9
- package/dist/{Toolbar-Cd75ci5W.js → Toolbar-bOZ_eq7X.js} +27 -27
- package/dist/{TplModal-ZoXu40T9.js → TplModal-DFKqmJQz.js} +1 -1
- package/dist/{VersionHistoryMenu-BvhN-Ofk.js → VersionHistoryMenu-BnP0EyLl.js} +5 -5
- package/dist/{VersionHistoryPanels-DPWMnYbd.js → VersionHistoryPanels-DPxj3mec.js} +1 -1
- package/dist/{VersionPreviewBanner-CuJnasxH.js → VersionPreviewBanner-BPP939cD.js} +1 -1
- package/dist/{WrapperBlock-D4fPwO0t.js → WrapperBlock-BdVIuGMR.js} +2 -2
- package/dist/{blockTypeIcons-BXMxu86H.js → blockTypeIcons-BUyPZ7Su.js} +3 -3
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js → AiAltTextPopover-Cnc_kUmb.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js.map → AiAltTextPopover-Cnc_kUmb.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js → AiAltTextReview-DPeSY-7r.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js.map → AiAltTextReview-DPeSY-7r.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js → AiChatPanel-By8Uo1nH.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js.map → AiChatPanel-By8Uo1nH.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BV5D1itk.js → AiPanels-BblCSkQy.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BV5D1itk.js.map → AiPanels-BblCSkQy.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js → AiRewriteMenu-YcVFv6RS.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js.map → AiRewriteMenu-YcVFv6RS.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js → BlockIssueBadge-D3Plo_wt.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js.map → BlockIssueBadge-D3Plo_wt.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js → BlockPreviewCanvas-6ck15xz9.js} +7 -7
- package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js.map → BlockPreviewCanvas-6ck15xz9.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js → CloudPanels-BHHpNckC.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js.map → CloudPanels-BHHpNckC.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js → CollaborationNotices-DraFUhyo.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js.map → CollaborationNotices-DraFUhyo.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js → CollaboratorBar-0OEH3hrj.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js → CommentsPanel-tZZswofV.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js → CommentsSidebar-7Hfl3Hdj.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js.map → CommentsSidebar-7Hfl3Hdj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js → CountdownToolbar-CNgsNL5-.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js.map → CountdownToolbar-CNgsNL5-.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js → IssuesPanel-Duic0mIs.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js.map → IssuesPanel-Duic0mIs.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js → LanguageMenu-C6utRx_4.js} +11 -11
- package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js.map → LanguageMenu-C6utRx_4.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js → LocaleNotices-8J2DRWeg.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js.map → LocaleNotices-8J2DRWeg.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js → LogicTagInsertButton-Bhvi0nWz.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js.map → LogicTagInsertButton-Bhvi0nWz.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js → MediaEditModal-Dz972UFx.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js.map → MediaEditModal-Dz972UFx.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js → MediaPanels-C6Hqtp1H.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js → MergeTagInput-CrhZm-AW.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js → MergeTagModeToggle-CWVtXLYa.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js.map → MergeTagModeToggle-CWVtXLYa.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js → MergeTagTextarea-hTIBwX0F.js} +7 -7
- package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js.map → MergeTagTextarea-hTIBwX0F.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DDolH_Pf.js → ParagraphEditor-B3EQ0Ai6.js} +113 -112
- package/dist/cdn/chunks/ParagraphEditor-B3EQ0Ai6.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js → RestoreVersionDialog-DfNrVi0R.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js.map → RestoreVersionDialog-DfNrVi0R.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js → RichTextEditorContent-up4AqL7D.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js → SaveBlockDialog-BqglcKcN.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js.map → SaveBlockDialog-BqglcKcN.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js → SavedBlocksBrowserModal-BewXGlrK.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js.map → SavedBlocksBrowserModal-BewXGlrK.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js → SavedBlocksPanels-0ZpX-jXI.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js.map → SavedBlocksPanels-0ZpX-jXI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js → SavedBlocksPickBar-DHah-Uf7.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js.map → SavedBlocksPickBar-DHah-Uf7.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js → TemplateSettings-CWUpUKJb.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js.map → TemplateSettings-CWUpUKJb.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js → TestEmailModal-7pUDYLrk.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js.map → TestEmailModal-7pUDYLrk.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js → TestEmailPanel-DBWwMsH1.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js.map → TestEmailPanel-DBWwMsH1.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Bv3SmSO6.js → TitleEditor-VAanUjPQ.js} +9 -8
- package/dist/cdn/chunks/TitleEditor-VAanUjPQ.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js → Toolbar-BlWVQRcA.js} +571 -571
- package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js.map → Toolbar-BlWVQRcA.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDDUDMYC.js → TplModal-DDlR7mk3.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DDDUDMYC.js.map → TplModal-DDlR7mk3.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js → VersionHistoryMenu-CZury5gU.js} +4 -4
- package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js → VersionHistoryPanels-DJDeaf1B.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js.map → VersionHistoryPanels-DJDeaf1B.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js → VersionPreviewBanner-C4Ji8nu4.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js.map → VersionPreviewBanner-C4Ji8nu4.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js → WrapperBlock-DRJnrgy-.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js.map → WrapperBlock-DRJnrgy-.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js → blockTypeIcons-Cc6RJ27V.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
- package/dist/cdn/chunks/{composables-D0UYam2P.js → composables-Jc3uZuLs.js} +117 -117
- package/dist/cdn/chunks/{composables-D0UYam2P.js.map → composables-Jc3uZuLs.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js → createCloudRuntime-C2Zs5F1O.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js.map → createCloudRuntime-C2Zs5F1O.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-CPbgthOv.js → editor-modal-erQEOHZN.js} +90 -90
- package/dist/cdn/chunks/{editor-modal-CPbgthOv.js.map → editor-modal-erQEOHZN.js.map} +1 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
- package/dist/cdn/chunks/{extensions-Uh9vuFfK.js → extensions-DcMKZpzh.js} +4 -4
- package/dist/cdn/chunks/{extensions-Uh9vuFfK.js.map → extensions-DcMKZpzh.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CSSMtbGK.js → icons-Da9GKjPx.js} +42 -42
- package/dist/cdn/chunks/{icons-CSSMtbGK.js.map → icons-Da9GKjPx.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js → normalizeMergeTagMarkup-cC32Ox6A.js} +23 -23
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js.map → normalizeMergeTagMarkup-cC32Ox6A.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js → preRenderCustomBlocks-f7GEKdvw.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js → sanitizeHtml-WTfz9lZd.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js.map → sanitizeHtml-WTfz9lZd.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js → socialIcons-DeCYorUT.js} +493 -493
- package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js.map → socialIcons-DeCYorUT.js.map} +1 -1
- package/dist/cdn/chunks/{src-Ddpm4HsS.js → src-8bYYJPCt.js} +237 -179
- package/dist/cdn/chunks/src-8bYYJPCt.js.map +1 -0
- package/dist/cdn/chunks/{src-DheBmnvF.js → src-A_cKeTM_.js} +263 -263
- package/dist/cdn/chunks/{src-DheBmnvF.js.map → src-A_cKeTM_.js.map} +1 -1
- package/dist/cdn/chunks/{src-CACM3o--.js → src-BQUv2CYU.js} +152 -152
- package/dist/cdn/chunks/{src-CACM3o--.js.map → src-BQUv2CYU.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-yXbRKNrs.js.map → useLocalizedDisplay-aGfnO90D.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js → useLogicTag-DtYe8HIq.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js → useMergeTag-B8ULmsnp.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js → withCurrentFont-MK8ga9q9.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
- package/dist/cdn/editor.js +262 -262
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ChQ0l8EQ.js → check-XMnOOIEC.js} +1 -1
- package/dist/{chevron-down-Bh6cp6PI.js → chevron-down-DmamTEWQ.js} +1 -1
- package/dist/{chevron-right-LUgdqdoW.js → chevron-right-BEFXOH27.js} +1 -1
- package/dist/{chevron-up-XsDeJxQN.js → chevron-up-Dw7woXj8.js} +1 -1
- package/dist/{circle-alert-lODfDsrj.js → circle-alert-BTKC9vkq.js} +1 -1
- package/dist/{clock-DrqFEZkT.js → clock-BVT5u2uG.js} +1 -1
- package/dist/{composables-BOP3ERRP.js → composables-XjYKaKhY.js} +13 -13
- package/dist/{createLucideIcon-Dw5e5gVE.js → createLucideIcon-CgDE3xAR.js} +5 -5
- package/dist/{editor-modal-B_2EAOjN.js → editor-modal-BeX6otLk.js} +15 -15
- package/dist/en-Do0SU6tR.js +1 -0
- package/dist/{extensions-DOLZkLzV.js → extensions-BJ184osp.js} +1 -1
- package/dist/{eye-DChfk0gi.js → eye-ByMgHeA_.js} +1 -1
- package/dist/{image--Hj2by1G.js → image-Ch8tR35K.js} +1 -1
- package/dist/{info-BbXgy82f.js → info-DzSD-Wpk.js} +1 -1
- package/dist/{link-C2_8yJno.js → link-oDn9AR2w.js} +1 -1
- package/dist/{list-DLGs2n0V.js → list-C5t07dp8.js} +1 -1
- package/dist/{loader-circle-BbDItE_O.js → loader-circle-k6xvKgUB.js} +1 -1
- package/dist/{message-circle-NAModq0p.js → message-circle-C23R6OJR.js} +1 -1
- package/dist/{package-BuzsfRyH.js → package-C90eQ7NU.js} +1 -1
- package/dist/{pencil-BTUUECH4.js → pencil-BK7GrQuA.js} +1 -1
- package/dist/{plus-Dm7DN65T.js → plus-Cr0Mis63.js} +1 -1
- package/dist/{refresh-cw-xMURqGWi.js → refresh-cw-_ZLOIEvA.js} +1 -1
- package/dist/{rotate-ccw-DqVcEIn5.js → rotate-ccw-CB5wsHwv.js} +1 -1
- package/dist/{sanitizeHtml-mKgNUdME.js → sanitizeHtml-2rjV0r-6.js} +1 -1
- package/dist/{search-Cfr3W44N.js → search-BmrQNox8.js} +1 -1
- package/dist/{send-CH1SrvyB.js → send-blAsIBBg.js} +1 -1
- package/dist/{smartphone-pAkvzjdI.js → smartphone-BPpWYrwV.js} +1 -1
- package/dist/{socialIcons-Dqr4DJOz.js → socialIcons-TFiOkpoU.js} +3 -3
- package/dist/{sparkles-CRO0cCnp.js → sparkles-OqIxrNp-.js} +1 -1
- package/dist/{square-CaQWMntx.js → square-BP-V7iT-.js} +1 -1
- package/dist/templatical-editor.js +29 -29
- package/dist/{text-align-start-BQ39AaRK.js → text-align-start-4mwX2o-F.js} +13 -13
- package/dist/{trash-BL5gEFHN.js → trash-B99WixTA.js} +1 -1
- package/dist/{triangle-alert-BYbKu7zZ.js → triangle-alert-CHMiDkHa.js} +1 -1
- package/dist/{upload-BhmL4Vqx.js → upload-Cp8o-hrN.js} +1 -1
- package/dist/{useScrollToBlock-C0Kapxdh.js → useScrollToBlock-B35ObCGK.js} +1 -1
- package/dist/{x-B7NZYzhx.js → x-BIBStNMS.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +0 -1
- package/dist/cdn/chunks/en-IYVryJRl.js +0 -1
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +0 -33
- package/dist/en-DTtwco2Q.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, W as _, X as v, Y as y, _ as b, b as x, c as S, ct as C, dt as w, f as T, g as E, h as D, j as O, l as k, m as A, mt as j, ot as M, p as N, pt as P, rt as F, s as I, st as L, t as R, tt as z, u as B, x as V } from "./draggable-DepKdldn.js";
|
|
2
|
-
import { $ as H,
|
|
3
|
-
import { B as $e, C as et, F as tt, I as nt, P as rt, R as it, T as at, _ as ot, a as st, f as ct, h as lt, n as ut, o as dt, t as ft, u as pt, v as mt, w as ht, x as gt, y as _t, z as vt } from "./socialIcons-
|
|
2
|
+
import { $ as H, B as U, E as W, F as G, G as ee, H as te, I as K, J as ne, Jt as q, K as re, L as ie, O as J, Ot as Y, P as X, Q as ae, R as oe, T as se, U as ce, Ut as Z, V as le, Y as ue, Yt as de, Z as fe, _n as pe, a as me, an as he, at as ge, b as _e, bn as ve, c as ye, ct as be, d as xe, dn as Se, dt as Ce, en as we, f as Te, fn as Ee, ft as De, g as Oe, gn as ke, h as Ae, hn as je, ht as Me, i as Ne, in as Pe, it as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, q as Ve, r as He, rn as Ue, sn as We, t as Ge, tt as Ke, u as qe, ut as Je, vn as Ye, y as Xe, yn as Ze, z as Qe } from "./src-BQUv2CYU.js";
|
|
3
|
+
import { B as $e, C as et, F as tt, I as nt, P as rt, R as it, T as at, _ as ot, a as st, f as ct, h as lt, n as ut, o as dt, t as ft, u as pt, v as mt, w as ht, x as gt, y as _t, z as vt } from "./socialIcons-DeCYorUT.js";
|
|
4
4
|
import { t as yt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
|
-
import { At as bt, G as xt, Mt as St, Nt as Ct, Ot as wt, St as Tt, Ut as Et, V as Dt, Wt as Ot, X as kt, _t as At, d as jt, f as Mt, k as Nt, mt as Pt, nt as Ft, o as It, y as Lt, yt as Rt } from "./icons-
|
|
5
|
+
import { At as bt, G as xt, Mt as St, Nt as Ct, Ot as wt, St as Tt, Ut as Et, V as Dt, Wt as Ot, X as kt, _t as At, d as jt, f as Mt, k as Nt, mt as Pt, nt as Ft, o as It, y as Lt, yt as Rt } from "./icons-Da9GKjPx.js";
|
|
6
6
|
import { $ as zt, A as Bt, B as Vt, C as Ht, D as Ut, F as Wt, G as Gt, H as Kt, I as qt, J as Jt, K as Yt, L as Xt, M as Zt, N as Qt, O as $t, P as en, Q as tn, R as nn, S as rn, T as an, U as on, V as sn, W as cn, X as ln, _ as un, a as dn, at as fn, b as pn, c as mn, d as hn, et as gn, g as _n, h as vn, i as yn, it as bn, j as xn, k as Sn, l as Cn, m as wn, nt as Tn, ot as En, p as Dn, q as On, r as kn, rt as An, s as jn, tt as Mn, u as Nn, v as Pn, w as Fn, x as In, y as Ln, z as Rn } from "./keys-CoQtCqNv.js";
|
|
7
7
|
import { t as Q } from "./useI18n-BnJYydPv.js";
|
|
8
|
-
import { n as zn } from "./useLocalizedDisplay-
|
|
8
|
+
import { n as zn } from "./useLocalizedDisplay-aGfnO90D.js";
|
|
9
9
|
import { t as Bn } from "./plural-CyxrJXL1.js";
|
|
10
10
|
import { t as Vn } from "./languageName-DEEOhDWI.js";
|
|
11
11
|
import { m as Hn, w as Un, x as Wn } from "./styleConstants-CgiNKdnc.js";
|
|
@@ -13,12 +13,12 @@ import { _ as Gn, h as Kn, v as qn, y as Jn } from "./dist-BzXULHvI.js";
|
|
|
13
13
|
import { a as Yn, c as Xn, i as Zn, l as Qn } from "./dist-DqGgijFI.js";
|
|
14
14
|
import { t as $n } from "./useEditorRoot-D_LuZ_hE.js";
|
|
15
15
|
import "./useCloudI18n-Cc5NZqiI.js";
|
|
16
|
-
import { t as er } from "./useMergeTag-
|
|
16
|
+
import { t as er } from "./useMergeTag-B8ULmsnp.js";
|
|
17
17
|
import { t as $ } from "./logger-CqQTfJGx.js";
|
|
18
18
|
import { a as tr, c as nr, i as rr, n as ir, o as ar, t as or } from "./usePopoverPosition-BWAXWeBv.js";
|
|
19
|
-
import { t as sr } from "./useLogicTag-
|
|
19
|
+
import { t as sr } from "./useLogicTag-DtYe8HIq.js";
|
|
20
20
|
import { r as cr, t as lr } from "./templateSettingsFields-cjlP-jdw.js";
|
|
21
|
-
import { n as ur, t as dr } from "./sanitizeHtml-
|
|
21
|
+
import { n as ur, t as dr } from "./sanitizeHtml-WTfz9lZd.js";
|
|
22
22
|
import { t as fr } from "./LoadingTrack-DUYcDHOV.js";
|
|
23
23
|
import { t as pr } from "./readableTextColor-BfZUGnVj.js";
|
|
24
24
|
// src/composables/useFocusTrap.ts
|
|
@@ -89,7 +89,7 @@ function _r() {
|
|
|
89
89
|
let r = `custom:${t.type}`;
|
|
90
90
|
e.value.set(r, {
|
|
91
91
|
component: n,
|
|
92
|
-
createBlock: () =>
|
|
92
|
+
createBlock: () => ie(t),
|
|
93
93
|
definition: t
|
|
94
94
|
}), L(e);
|
|
95
95
|
}
|
|
@@ -114,7 +114,7 @@ function _r() {
|
|
|
114
114
|
let t = a(e.customType);
|
|
115
115
|
if (!t) return o("Block definition not found");
|
|
116
116
|
try {
|
|
117
|
-
return await
|
|
117
|
+
return await ae(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
|
|
118
118
|
} catch (t) {
|
|
119
119
|
return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
120
120
|
}
|
|
@@ -275,11 +275,11 @@ function Cr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
275
275
|
}
|
|
276
276
|
// src/utils/mergeTagNodeSpec.ts
|
|
277
277
|
function wr(e, t, n) {
|
|
278
|
-
return
|
|
278
|
+
return qe(e, n) ? {
|
|
279
279
|
type: "logicMergeTagNode",
|
|
280
280
|
attrs: {
|
|
281
281
|
value: e,
|
|
282
|
-
keyword:
|
|
282
|
+
keyword: Ne(e, n)
|
|
283
283
|
}
|
|
284
284
|
} : {
|
|
285
285
|
type: "mergeTagNode",
|
|
@@ -323,7 +323,7 @@ function Or(e) {
|
|
|
323
323
|
} });
|
|
324
324
|
}
|
|
325
325
|
// src/composables/useRichTextLinkDialog.ts
|
|
326
|
-
function kr(e, t =
|
|
326
|
+
function kr(e, t = Re.liquid, n = () => !0) {
|
|
327
327
|
let r = z(!1), i = z(""), a = z(""), o = z(null);
|
|
328
328
|
hr(o, r);
|
|
329
329
|
function s() {
|
|
@@ -353,8 +353,8 @@ function kr(e, t = Pe.liquid, n = () => !0) {
|
|
|
353
353
|
if (t.startsWith("#")) return t;
|
|
354
354
|
if (t.startsWith("//")) return `https:${t}`;
|
|
355
355
|
if (l.test(t)) return t;
|
|
356
|
-
let n =
|
|
357
|
-
return n ?
|
|
356
|
+
let n = W(t);
|
|
357
|
+
return n ? se.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
|
|
358
358
|
}
|
|
359
359
|
function f() {
|
|
360
360
|
n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
|
|
@@ -379,7 +379,7 @@ function kr(e, t = Pe.liquid, n = () => !0) {
|
|
|
379
379
|
}
|
|
380
380
|
// src/composables/useRichTextEditor.ts
|
|
381
381
|
function Ar(e) {
|
|
382
|
-
let t = f(Pn, null), n = nr(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = er(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = sr(), h = f(Mn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ =
|
|
382
|
+
let t = f(Pn, null), n = nr(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = er(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = sr(), h = f(Mn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = ye(c), y = F(null), b = t?.content ? zn(t) : null, x = () => be(b?.settings.value ?? { locale: "en" });
|
|
383
383
|
o(x, (e) => {
|
|
384
384
|
let t = y.value?.view.dom;
|
|
385
385
|
t && t.setAttribute("dir", e);
|
|
@@ -523,13 +523,13 @@ function Lr(e) {
|
|
|
523
523
|
let o = ++a;
|
|
524
524
|
r.value = !0;
|
|
525
525
|
let s = {
|
|
526
|
-
content:
|
|
526
|
+
content: we(e.getContent()),
|
|
527
527
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
528
528
|
};
|
|
529
529
|
try {
|
|
530
530
|
let e = await t(s);
|
|
531
531
|
if (o !== a) return;
|
|
532
|
-
if (!
|
|
532
|
+
if (!Ge(e)) {
|
|
533
533
|
i.value = !0;
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
@@ -638,7 +638,7 @@ function Hr(e) {
|
|
|
638
638
|
l || f();
|
|
639
639
|
async function f() {
|
|
640
640
|
try {
|
|
641
|
-
let t = await import("./src-
|
|
641
|
+
let t = await import("./src-A_cKeTM_.js");
|
|
642
642
|
if (d) return;
|
|
643
643
|
c.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = Jn(n, p, { debounce: e.debounce ?? 500 });
|
|
644
644
|
} catch {
|
|
@@ -801,22 +801,22 @@ function Kr(e) {
|
|
|
801
801
|
return qr(e, t), t;
|
|
802
802
|
}
|
|
803
803
|
function qr(e, t) {
|
|
804
|
-
for (let n of e) if (
|
|
804
|
+
for (let n of e) if (Me(n)) t.add(n.customType);
|
|
805
805
|
else if (n.type === "section") {
|
|
806
806
|
let e = n.children;
|
|
807
807
|
if (!e) continue;
|
|
808
808
|
for (let n of e) qr(n, t);
|
|
809
|
-
} else
|
|
809
|
+
} else Y(n) && qr(n.children, t);
|
|
810
810
|
}
|
|
811
811
|
// src/utils/registerBuiltInBlocks.ts
|
|
812
812
|
var Jr = [
|
|
813
813
|
{
|
|
814
814
|
type: "section",
|
|
815
|
-
createBlock:
|
|
815
|
+
createBlock: ce
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
818
|
type: "title",
|
|
819
|
-
createBlock:
|
|
819
|
+
createBlock: ne
|
|
820
820
|
},
|
|
821
821
|
{
|
|
822
822
|
type: "paragraph",
|
|
@@ -824,35 +824,35 @@ var Jr = [
|
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
type: "image",
|
|
827
|
-
createBlock:
|
|
827
|
+
createBlock: U
|
|
828
828
|
},
|
|
829
829
|
{
|
|
830
830
|
type: "button",
|
|
831
|
-
createBlock:
|
|
831
|
+
createBlock: G
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
type: "divider",
|
|
835
|
-
createBlock:
|
|
835
|
+
createBlock: oe
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
type: "video",
|
|
839
|
-
createBlock:
|
|
839
|
+
createBlock: ue
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
type: "social",
|
|
843
|
-
createBlock:
|
|
843
|
+
createBlock: ee
|
|
844
844
|
},
|
|
845
845
|
{
|
|
846
846
|
type: "menu",
|
|
847
|
-
createBlock:
|
|
847
|
+
createBlock: le
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
type: "table",
|
|
851
|
-
createBlock:
|
|
851
|
+
createBlock: Ve
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
854
|
type: "spacer",
|
|
855
|
-
createBlock:
|
|
855
|
+
createBlock: re
|
|
856
856
|
},
|
|
857
857
|
{
|
|
858
858
|
type: "html",
|
|
@@ -860,7 +860,7 @@ var Jr = [
|
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
type: "countdown",
|
|
863
|
-
createBlock:
|
|
863
|
+
createBlock: K
|
|
864
864
|
}
|
|
865
865
|
];
|
|
866
866
|
function Yr(e, t) {
|
|
@@ -884,7 +884,7 @@ function Qr(e, t, n) {
|
|
|
884
884
|
let r = new Set(e.map((e) => tr(e))), i = [], a = (e, t) => {
|
|
885
885
|
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(tr(o)) && i.push(`${t}.${n}: ${o}`) : Zr(o) && a(o, `${t}.${n}`);
|
|
886
886
|
}, o = t;
|
|
887
|
-
for (let [e, t] of Object.entries(
|
|
887
|
+
for (let [e, t] of Object.entries(Je)) {
|
|
888
888
|
let n = o?.[e];
|
|
889
889
|
a({
|
|
890
890
|
...t,
|
|
@@ -892,7 +892,7 @@ function Qr(e, t, n) {
|
|
|
892
892
|
}, e);
|
|
893
893
|
}
|
|
894
894
|
return a({
|
|
895
|
-
...
|
|
895
|
+
...Ce,
|
|
896
896
|
...n ?? {}
|
|
897
897
|
}, "template"), i;
|
|
898
898
|
}
|
|
@@ -1120,9 +1120,9 @@ function wi(e, t, n) {
|
|
|
1120
1120
|
var Ti = "--tpl-block-bg-layer", Ei = "tpl-has-bg-image";
|
|
1121
1121
|
function Di(e, t) {
|
|
1122
1122
|
if (t === null) return {};
|
|
1123
|
-
let n =
|
|
1123
|
+
let n = Ee(e);
|
|
1124
1124
|
if (n === null) return {};
|
|
1125
|
-
let r = t?.trim(), i = r ?
|
|
1125
|
+
let r = t?.trim(), i = r ? Se(r) : n.url;
|
|
1126
1126
|
return {
|
|
1127
1127
|
backgroundImage: `url("${i}")`,
|
|
1128
1128
|
backgroundSize: n.size,
|
|
@@ -1158,10 +1158,10 @@ function Mi(e, t = {}) {
|
|
|
1158
1158
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
1159
1159
|
backgroundColor: r || "transparent"
|
|
1160
1160
|
};
|
|
1161
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
1162
|
-
let n =
|
|
1161
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ke.paragraphGap : ke.paragraphGap}px`), e.type === "section") {
|
|
1162
|
+
let n = ve(e.borderRadius);
|
|
1163
1163
|
n !== null && (i.borderRadius = n);
|
|
1164
|
-
let r =
|
|
1164
|
+
let r = We(e);
|
|
1165
1165
|
r?.applied && e.backgroundImage ? (Object.assign(i, Ai(r, t.heroBoxWidth)), Object.assign(i, Di({
|
|
1166
1166
|
...e.backgroundImage,
|
|
1167
1167
|
size: "cover",
|
|
@@ -1178,14 +1178,14 @@ function Ni(e, t, n, r) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function Pi(e) {
|
|
1180
1180
|
let t = {};
|
|
1181
|
-
for (let [n, r] of Object.entries(
|
|
1181
|
+
for (let [n, r] of Object.entries(Ze(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
1182
1182
|
return t;
|
|
1183
1183
|
}
|
|
1184
1184
|
function Fi(e, t = {}) {
|
|
1185
1185
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
1186
1186
|
let n = e.wrapper, r = {};
|
|
1187
1187
|
n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
|
|
1188
|
-
let i =
|
|
1188
|
+
let i = ve(n.borderRadius);
|
|
1189
1189
|
return i !== null && (r.borderRadius = i), Object.assign(r, Di(n.backgroundImage, t.backgroundImageUrl)), r;
|
|
1190
1190
|
}
|
|
1191
1191
|
function Ii(e, t = {}) {
|
|
@@ -1207,8 +1207,8 @@ function Li(e, t, n, r = !1) {
|
|
|
1207
1207
|
value: e.slice(o, s.index)
|
|
1208
1208
|
});
|
|
1209
1209
|
let i = s[0];
|
|
1210
|
-
if (
|
|
1211
|
-
let e = r ?
|
|
1210
|
+
if (xe(i, n)) {
|
|
1211
|
+
let e = r ? ze(i, t) : void 0;
|
|
1212
1212
|
a.push(e === void 0 ? {
|
|
1213
1213
|
type: "tag",
|
|
1214
1214
|
value: me(i, t)
|
|
@@ -1216,9 +1216,9 @@ function Li(e, t, n, r = !1) {
|
|
|
1216
1216
|
type: "text",
|
|
1217
1217
|
value: e
|
|
1218
1218
|
});
|
|
1219
|
-
} else
|
|
1219
|
+
} else qe(i, n) ? a.push({
|
|
1220
1220
|
type: "tag",
|
|
1221
|
-
value:
|
|
1221
|
+
value: Ne(i, n)
|
|
1222
1222
|
}) : a.push({
|
|
1223
1223
|
type: "text",
|
|
1224
1224
|
value: i
|
|
@@ -1238,7 +1238,7 @@ var Ri = n({
|
|
|
1238
1238
|
required: !0
|
|
1239
1239
|
} },
|
|
1240
1240
|
setup(e) {
|
|
1241
|
-
let t = f(en, sn), n = f(Vt,
|
|
1241
|
+
let t = f(en, sn), n = f(Vt, Re.liquid), i = f(fn, null), a = N(() => Li(e.text, t.value, n, i?.value ?? !1));
|
|
1242
1242
|
return () => a.value.map((e, t) => e.type === "tag" ? r("span", {
|
|
1243
1243
|
key: t,
|
|
1244
1244
|
class: "tpl-merge-tag-label"
|
|
@@ -1260,7 +1260,7 @@ var Ri = n({
|
|
|
1260
1260
|
fontSize: `${t.block.fontSize}px`,
|
|
1261
1261
|
fontWeight: "bold",
|
|
1262
1262
|
textDecoration: "none",
|
|
1263
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
1263
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
|
|
1264
1264
|
textAlign: "center"
|
|
1265
1265
|
};
|
|
1266
1266
|
return Object.assign(e, Pi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
@@ -1338,7 +1338,7 @@ var Ri = n({
|
|
|
1338
1338
|
}), S = f(en, sn), w = f(fn, null), T = N(() => {
|
|
1339
1339
|
if (!w?.value) return n.block;
|
|
1340
1340
|
let e = {};
|
|
1341
|
-
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ?
|
|
1341
|
+
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Oe(r, S.value) : r;
|
|
1342
1342
|
return {
|
|
1343
1343
|
...n.block,
|
|
1344
1344
|
fieldValues: e
|
|
@@ -1415,7 +1415,7 @@ var Ri = n({
|
|
|
1415
1415
|
viewport: {}
|
|
1416
1416
|
},
|
|
1417
1417
|
setup(e) {
|
|
1418
|
-
let t = e, { t: n } = Q(), r = f(rn, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(en, sn), l = f(fn, null), d = N(() => l?.value ?
|
|
1418
|
+
let t = e, { t: n } = Q(), r = f(rn, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(en, sn), l = f(fn, null), d = N(() => l?.value ? Oe(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
|
|
1419
1419
|
function g() {
|
|
1420
1420
|
let e = p.value?.contentDocument;
|
|
1421
1421
|
e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1458,7 +1458,7 @@ var Ri = n({
|
|
|
1458
1458
|
},
|
|
1459
1459
|
emits: ["update"],
|
|
1460
1460
|
setup(e, { emit: t }) {
|
|
1461
|
-
let n = e, r = t, { t: a } = Q(), { syntax: o } = er(), s = N(() =>
|
|
1461
|
+
let n = e, r = t, { t: a } = Q(), { syntax: o } = er(), s = N(() => He(n.block.src, o));
|
|
1462
1462
|
function c(e) {
|
|
1463
1463
|
let t = {
|
|
1464
1464
|
src: e.url,
|
|
@@ -1471,7 +1471,7 @@ var Ri = n({
|
|
|
1471
1471
|
blocked: s,
|
|
1472
1472
|
apply: c
|
|
1473
1473
|
}), h = N(() => ({ textAlign: n.block.align })), g = N(() => {
|
|
1474
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1474
|
+
let e = n.block.border, t = ["left", "right"].map((t) => Ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1475
1475
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1476
1476
|
}), _ = N(() => {
|
|
1477
1477
|
let e = n.block.align;
|
|
@@ -1479,7 +1479,7 @@ var Ri = n({
|
|
|
1479
1479
|
maxWidth: "100%",
|
|
1480
1480
|
width: n.block.width === "full" ? g.value : `${n.block.width}px`,
|
|
1481
1481
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1482
|
-
borderRadius:
|
|
1482
|
+
borderRadius: ve(n.block.borderRadius) ?? void 0,
|
|
1483
1483
|
...Pi(n.block.border),
|
|
1484
1484
|
display: "block",
|
|
1485
1485
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
@@ -1597,7 +1597,7 @@ var Ri = n({
|
|
|
1597
1597
|
});
|
|
1598
1598
|
// src/composables/useEditableTextBlock.ts
|
|
1599
1599
|
function Ca(e) {
|
|
1600
|
-
let t = f(en, sn), n = f(fn, null), { syntax: r } = er(), i = N(() => n?.value ?
|
|
1600
|
+
let t = f(en, sn), n = f(fn, null), { syntax: r } = er(), i = N(() => n?.value ? Ae(e(), t.value) : Be(e(), t.value)), a = N(() => _e(dr(Te(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = Zn(s), { toLocal: u } = or(), d = N(() => u({
|
|
1601
1601
|
top: c.value - 8,
|
|
1602
1602
|
left: l.value
|
|
1603
1603
|
}));
|
|
@@ -1624,7 +1624,7 @@ var wa = ["innerHTML"], Ta = /* @__PURE__ */ n({
|
|
|
1624
1624
|
viewport: {}
|
|
1625
1625
|
},
|
|
1626
1626
|
setup(e) {
|
|
1627
|
-
let t = e, n = g(() => import("./ParagraphEditor-
|
|
1627
|
+
let t = e, n = g(() => import("./ParagraphEditor-B3EQ0Ai6.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ca(() => t.block.content);
|
|
1628
1628
|
return (t, u) => (i(), b("div", {
|
|
1629
1629
|
ref_key: "blockRef",
|
|
1630
1630
|
ref: a,
|
|
@@ -1663,7 +1663,7 @@ function Ea(e, t, n, r = 0, i) {
|
|
|
1663
1663
|
function Da(e, t, n) {
|
|
1664
1664
|
let r = [], i = "\0MT";
|
|
1665
1665
|
for (; e.includes(i);) i += "_";
|
|
1666
|
-
let a = n === "html" ?
|
|
1666
|
+
let a = n === "html" ? Fe(e, (e) => {
|
|
1667
1667
|
let t = r.push(e) - 1;
|
|
1668
1668
|
return `${i}${t}\u0000`;
|
|
1669
1669
|
}) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
|
|
@@ -1677,7 +1677,7 @@ function Da(e, t, n) {
|
|
|
1677
1677
|
o.some((e) => t < e.end && r > e.start) || s.some((e) => t < e.end && r > e.start) || s.push({
|
|
1678
1678
|
start: t,
|
|
1679
1679
|
end: r,
|
|
1680
|
-
value: n === "html" ?
|
|
1680
|
+
value: n === "html" ? ge(e[0]) : e[0]
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
@@ -1757,7 +1757,7 @@ var ka = [
|
|
|
1757
1757
|
default: return t === 1 ? m.localization.outOfDate : Bn(m.localization.staleCount, t, d);
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
let
|
|
1760
|
+
let te = N(() => ee(r.state, r.count)), K = N(() => r.popoverState ?? r.state), ne = N(() => r.popoverCount ?? r.count), q = N(() => ee(K.value, ne.value)), re = N(() => r.state === "hidden" ? wt : r.state === "changed" ? xt : r.state === "default-stale" ? Pt : r.state === "stale" ? Ct : jt), ie = N(() => K.value === "default-stale" || (K.value === "missing" || K.value === "stale") && ne.value > 1), J = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
|
|
1761
1761
|
function Y(e = !1) {
|
|
1762
1762
|
M.value = !1, F.value = !1, R = null, e && y.value?.focus({ preventScroll: !0 });
|
|
1763
1763
|
}
|
|
@@ -1801,7 +1801,7 @@ var ka = [
|
|
|
1801
1801
|
}
|
|
1802
1802
|
o(M, (e) => {
|
|
1803
1803
|
ce(), e ? (g.addEventListener("click", oe, !0), g.addEventListener("scroll", se, !0)) : a("target", null);
|
|
1804
|
-
}, { flush: "sync" }), o(
|
|
1804
|
+
}, { flush: "sync" }), o(K, () => {
|
|
1805
1805
|
F.value = !1, M.value && ae();
|
|
1806
1806
|
}), o([
|
|
1807
1807
|
() => r.blockId,
|
|
@@ -1831,8 +1831,8 @@ var ka = [
|
|
|
1831
1831
|
s?.setActiveLocale?.(e), Y();
|
|
1832
1832
|
}
|
|
1833
1833
|
function me() {
|
|
1834
|
-
J.value && !c?.running.value && (
|
|
1835
|
-
only:
|
|
1834
|
+
J.value && !c?.running.value && (K.value === "tags-differ" && r.replacesCurrent ? F.value = !0 : c?.translate({
|
|
1835
|
+
only: K.value === "tags-differ" ? "all" : "gaps",
|
|
1836
1836
|
blockId: r.blockId
|
|
1837
1837
|
}));
|
|
1838
1838
|
}
|
|
@@ -1854,8 +1854,8 @@ var ka = [
|
|
|
1854
1854
|
type: "button",
|
|
1855
1855
|
"data-testid": "locale-chip",
|
|
1856
1856
|
"data-state": e.state,
|
|
1857
|
-
"aria-label":
|
|
1858
|
-
title:
|
|
1857
|
+
"aria-label": te.value,
|
|
1858
|
+
title: te.value,
|
|
1859
1859
|
"aria-expanded": M.value,
|
|
1860
1860
|
"aria-controls": M.value ? U : void 0,
|
|
1861
1861
|
"aria-haspopup": "dialog",
|
|
@@ -1874,7 +1874,7 @@ var ka = [
|
|
|
1874
1874
|
ref_key: "popover",
|
|
1875
1875
|
ref: x,
|
|
1876
1876
|
role: "dialog",
|
|
1877
|
-
"aria-label": F.value ? void 0 :
|
|
1877
|
+
"aria-label": F.value ? void 0 : q.value,
|
|
1878
1878
|
"aria-labelledby": F.value ? `${U}-question` : void 0,
|
|
1879
1879
|
"aria-describedby": F.value ? `${U}-warning` : void 0,
|
|
1880
1880
|
tabindex: "-1",
|
|
@@ -1912,8 +1912,8 @@ var ka = [
|
|
|
1912
1912
|
onClick: _e
|
|
1913
1913
|
}, j(C(Bn)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, Pa)])
|
|
1914
1914
|
], 64)) : (i(), b(B, { key: 1 }, [
|
|
1915
|
-
ie.value ? (i(), b("p", Fa, j(
|
|
1916
|
-
|
|
1915
|
+
ie.value ? (i(), b("p", Fa, j(q.value), 1)) : E("", !0),
|
|
1916
|
+
K.value === "missing" ? (i(), b("p", Ia, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : K.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", La, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", Ra, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : K.value === "tags-differ" ? (i(), b("p", za, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : K.value === "changed" ? (i(), b("p", Ba, j(C(Bn)(C(m).localization.changedProperties, ne.value, C(d), { default: G.value })), 1)) : K.value === "hidden" ? (i(), b("p", Va, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Ha, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
|
|
1917
1917
|
key: e,
|
|
1918
1918
|
class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
|
|
1919
1919
|
}, [A("span", null, j(C(Vn)(e)), 1), A("button", {
|
|
@@ -1921,18 +1921,18 @@ var ka = [
|
|
|
1921
1921
|
class: w(C(Hn)),
|
|
1922
1922
|
onClick: (t) => pe(e)
|
|
1923
1923
|
}, j(C(m).localization.open), 11, Ua)]))), 128))])),
|
|
1924
|
-
e.editable &&
|
|
1925
|
-
J.value && (
|
|
1924
|
+
e.editable && K.value !== "default-stale" ? (i(), b("div", Wa, [
|
|
1925
|
+
J.value && (K.value === "missing" || K.value === "stale" || K.value === "tags-differ") ? (i(), b("button", {
|
|
1926
1926
|
key: 0,
|
|
1927
1927
|
type: "button",
|
|
1928
1928
|
ref_key: "retranslate",
|
|
1929
1929
|
ref: I,
|
|
1930
|
-
"data-testid":
|
|
1930
|
+
"data-testid": K.value === "missing" ? "locale-translate" : "locale-retranslate",
|
|
1931
1931
|
class: w(C(Un)),
|
|
1932
1932
|
disabled: !!C(c)?.running.value,
|
|
1933
1933
|
onClick: me
|
|
1934
|
-
}, j(
|
|
1935
|
-
|
|
1934
|
+
}, j(K.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ga)) : E("", !0),
|
|
1935
|
+
K.value === "stale" || K.value === "tags-differ" ? (i(), b(B, { key: 1 }, [K.value === "stale" ? (i(), b("button", {
|
|
1936
1936
|
key: 0,
|
|
1937
1937
|
type: "button",
|
|
1938
1938
|
"data-testid": "locale-keep",
|
|
@@ -1941,17 +1941,17 @@ var ka = [
|
|
|
1941
1941
|
}, j(C(m).localization.keep), 3)) : E("", !0), A("button", {
|
|
1942
1942
|
type: "button",
|
|
1943
1943
|
"data-testid": "locale-use-default",
|
|
1944
|
-
class: w(C(
|
|
1945
|
-
onClick: r[0] ||= (t) => ue(
|
|
1944
|
+
class: w(C(K.value === "tags-differ" && !J.value ? Un : Hn)),
|
|
1945
|
+
onClick: r[0] ||= (t) => ue(K.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
|
|
1946
1946
|
}, j(C(h)(C(m).localization.useDefaultLanguage, { default: G.value })), 3)], 64)) : E("", !0),
|
|
1947
|
-
|
|
1947
|
+
K.value === "changed" ? (i(), b("button", {
|
|
1948
1948
|
key: 2,
|
|
1949
1949
|
type: "button",
|
|
1950
1950
|
"data-testid": "locale-reset",
|
|
1951
1951
|
class: w(C(Un)),
|
|
1952
1952
|
onClick: r[1] ||= (t) => ue(e.setPaths)
|
|
1953
1953
|
}, j(C(m).localization.resetChanges), 3)) : E("", !0),
|
|
1954
|
-
|
|
1954
|
+
K.value === "hidden" ? (i(), b("button", {
|
|
1955
1955
|
key: 3,
|
|
1956
1956
|
type: "button",
|
|
1957
1957
|
"data-testid": "locale-show",
|
|
@@ -1965,7 +1965,7 @@ var ka = [
|
|
|
1965
1965
|
__name: "LocaleMarkers",
|
|
1966
1966
|
props: { block: {} },
|
|
1967
1967
|
setup(e) {
|
|
1968
|
-
let t = e, n = f(Pn, null), r = f($t, void 0), a = f(vn, []), s = f(Vt,
|
|
1968
|
+
let t = e, n = f(Pn, null), r = f($t, void 0), a = f(vn, []), s = f(Vt, Re.liquid), c = f(yn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
|
|
1969
1969
|
blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
|
|
1970
1970
|
...t.block,
|
|
1971
1971
|
children: []
|
|
@@ -1974,14 +1974,14 @@ var ka = [
|
|
|
1974
1974
|
locale: n.content.value.settings.locale,
|
|
1975
1975
|
locales: n.content.value.settings.locales
|
|
1976
1976
|
}
|
|
1977
|
-
})), p = N(() => n && l.value && !c.value.has(l.value) ?
|
|
1977
|
+
})), p = N(() => n && l.value && !c.value.has(l.value) ? Z(d.value, l.value, a) : {
|
|
1978
1978
|
missing: [],
|
|
1979
1979
|
stale: [],
|
|
1980
1980
|
translated: []
|
|
1981
1981
|
}), m = N(() => p.value.stale.map((e) => e.slice(t.block.id.length + 1))), h = N(() => p.value.translated.flatMap((e) => {
|
|
1982
|
-
let n = e.slice(t.block.id.length + 1), r =
|
|
1982
|
+
let n = e.slice(t.block.id.length + 1), r = q(t.block, n), i = u.value?.text?.[n]?.value, a = t.block.type === "html" || H[t.block.type]?.includes(n) ? "html" : "text";
|
|
1983
1983
|
return typeof r == "string" && i !== void 0 && Oa(r, i, s, a) ? [n] : [];
|
|
1984
|
-
})), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ?
|
|
1984
|
+
})), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? Ke(d.value, l.value, {
|
|
1985
1985
|
syntax: s,
|
|
1986
1986
|
definitions: a,
|
|
1987
1987
|
doNotTranslate: r?.doNotTranslate,
|
|
@@ -1991,9 +1991,9 @@ var ka = [
|
|
|
1991
1991
|
let n = e.slice(t.block.id.length + 1);
|
|
1992
1992
|
return p.value.translated.includes(e) && !h.value.includes(n);
|
|
1993
1993
|
})), y = N(() => Object.keys(u.value?.set ?? {}).filter((e) => {
|
|
1994
|
-
let n = e.split("."), r = n.pop(), i = n.length ?
|
|
1995
|
-
return Array.isArray(i) ?
|
|
1996
|
-
})), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) &&
|
|
1994
|
+
let n = e.split("."), r = n.pop(), i = n.length ? q(t.block, n.join(".")) : t.block;
|
|
1995
|
+
return Array.isArray(i) ? q(i, r) !== void 0 : i !== void 0;
|
|
1996
|
+
})), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && Z(d.value, e, a).stale.length > 0) : []), x = N(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : p.value.missing.length ? "missing" : m.value.length ? "stale" : h.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
|
|
1997
1997
|
function S(e) {
|
|
1998
1998
|
return e === "missing" ? p.value.missing.length : e === "stale" ? m.value.length : e === "tags-differ" ? h.value.length : e === "default-stale" ? b.value.length : y.value.length;
|
|
1999
1999
|
}
|
|
@@ -2002,7 +2002,7 @@ var ka = [
|
|
|
2002
2002
|
g.value = null;
|
|
2003
2003
|
});
|
|
2004
2004
|
let k = N(() => {
|
|
2005
|
-
let e =
|
|
2005
|
+
let e = q(t.block, m.value[0] ?? "");
|
|
2006
2006
|
if (typeof e != "string") return "";
|
|
2007
2007
|
let n = e.split(/<[^>]*>/).join("");
|
|
2008
2008
|
return Array.from(n).slice(0, 60).join("");
|
|
@@ -2068,7 +2068,7 @@ var ka = [
|
|
|
2068
2068
|
},
|
|
2069
2069
|
emits: ["select"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
let n = g(() => import("./BlockIssueBadge-
|
|
2071
|
+
let n = g(() => import("./BlockIssueBadge-D3Plo_wt.js")), r = e, a = N(() => r.displayBlock ?? r.block), s = t, { t: c, format: l } = Q(), u = f(Fn, null), d = z(null), p = N(() => u?.liftedBlockId.value === r.block.id), m = N(() => p.value ? l(c.blockActions.dragLifted, { block: r.block.type }) : c.blockActions.drag);
|
|
2072
2072
|
async function v() {
|
|
2073
2073
|
await O(), d.value?.focus();
|
|
2074
2074
|
}
|
|
@@ -2078,12 +2078,12 @@ var ka = [
|
|
|
2078
2078
|
let S = N(() => !r.viewport || !a.value.visibility ? !1 : a.value.visibility[r.viewport] === !1), T = N(() => !!(Z?.activeLocale?.value && r.block.l10n?.[Z.activeLocale.value]?.hidden)), M = N(() => r.previewMode === !0 && (S.value || T.value)), F = N(() => r.viewport ? {
|
|
2079
2079
|
desktop: c.viewport.desktop,
|
|
2080
2080
|
mobile: c.viewport.mobile
|
|
2081
|
-
}[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(jn, null), R = f(wn, null), B = f(hn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), ee = z(null),
|
|
2081
|
+
}[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(jn, null), R = f(wn, null), B = f(hn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), ee = z(null), te = z(null), K = z(null), ne = z(null), q = z({
|
|
2082
2082
|
left: "calc(100% + 8px)",
|
|
2083
2083
|
top: "50%"
|
|
2084
|
-
}), re = z(!1), ie = N(() =>
|
|
2084
|
+
}), re = z(!1), ie = N(() => te.value ?? ne.value), J = N(() => ie.value?.closest(".tpl-body"));
|
|
2085
2085
|
function Y() {
|
|
2086
|
-
let e = re.value, t =
|
|
2086
|
+
let e = re.value, t = te.value, n = ne.value, r = ee.value;
|
|
2087
2087
|
if (!t && !n || !r?.offsetWidth) return;
|
|
2088
2088
|
let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = J.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
|
|
2089
2089
|
if (n?.offsetWidth) {
|
|
@@ -2094,7 +2094,7 @@ var ka = [
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
if (!t?.offsetWidth) return;
|
|
2097
|
-
let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d =
|
|
2097
|
+
let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = K.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
|
|
2098
2098
|
if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
|
|
2099
2099
|
let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
|
|
2100
2100
|
e > r.offsetHeight / 2 && (m = `${e}px`);
|
|
@@ -2106,20 +2106,20 @@ var ka = [
|
|
|
2106
2106
|
u = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
(
|
|
2109
|
+
(q.value.left !== `${u}px` || q.value.top !== m) && (q.value = {
|
|
2110
2110
|
left: `${u}px`,
|
|
2111
2111
|
top: m
|
|
2112
2112
|
});
|
|
2113
2113
|
}
|
|
2114
2114
|
_(Y), Qn(N(() => ie.value ? [
|
|
2115
2115
|
ee.value,
|
|
2116
|
-
K.value,
|
|
2117
|
-
q.value,
|
|
2118
2116
|
te.value,
|
|
2117
|
+
K.value,
|
|
2118
|
+
ne.value,
|
|
2119
2119
|
J.value
|
|
2120
2120
|
].filter((e) => !!e) : []), Y), Yn(J, "scroll", Y, { passive: !0 });
|
|
2121
2121
|
let X = N(() => B.collaboration?.lockOf(r.block.id) ?? null), ae = N(() => X.value?.holder.type === "guest" ? c.collaboration.guest : X.value?.holder.name ?? ""), oe = N(() => B.collaboration?.agentHighlightOf(r.block.id) ?? B.ai?.highlightOf(r.block.id) ?? null), se = ht(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = ht(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Pn, null), le = Z ? zn(Z) : null, ue = f(Sn, null) ?? le?.content ?? null;
|
|
2122
|
-
o([() => Z?.activeLocale?.value, () => le &&
|
|
2122
|
+
o([() => Z?.activeLocale?.value, () => le && be(le.settings.value)], Y, { flush: "post" });
|
|
2123
2123
|
let de = f(an, void 0), fe = N(() => Mi(a.value, {
|
|
2124
2124
|
backgroundImageUrl: se.value,
|
|
2125
2125
|
heroBoxWidth: st(a.value) ? dt(a.value, ue?.value, de) : void 0
|
|
@@ -2157,13 +2157,13 @@ var ka = [
|
|
|
2157
2157
|
}, [
|
|
2158
2158
|
A("div", {
|
|
2159
2159
|
ref_key: "badgesElement",
|
|
2160
|
-
ref:
|
|
2160
|
+
ref: K,
|
|
2161
2161
|
class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
|
|
2162
2162
|
}, [
|
|
2163
2163
|
G.value > 0 && !S.value ? (i(), b("button", {
|
|
2164
2164
|
key: 0,
|
|
2165
2165
|
ref_key: "commentElement",
|
|
2166
|
-
ref:
|
|
2166
|
+
ref: ne,
|
|
2167
2167
|
class: w(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", re.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
|
|
2168
2168
|
"aria-label": C(l)(C(c).blockActions.comments, { count: String(G.value) }),
|
|
2169
2169
|
onClick: r[0] ||= k((t) => C(B).comments?.openForBlock(e.block.id), ["stop"])
|
|
@@ -2202,8 +2202,8 @@ var ka = [
|
|
|
2202
2202
|
W.value ? (i(), b("div", {
|
|
2203
2203
|
key: 2,
|
|
2204
2204
|
ref_key: "actionsElement",
|
|
2205
|
-
ref:
|
|
2206
|
-
style: P(
|
|
2205
|
+
ref: te,
|
|
2206
|
+
style: P(q.value),
|
|
2207
2207
|
role: "toolbar",
|
|
2208
2208
|
"aria-label": C(c).blockActions.drag,
|
|
2209
2209
|
class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:top-1/2 tpl:z-20 tpl:flex tpl:-translate-y-1/2 tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
@@ -2292,10 +2292,10 @@ var co = /* @__PURE__ */ n({
|
|
|
2292
2292
|
viewport: {}
|
|
2293
2293
|
},
|
|
2294
2294
|
setup(e) {
|
|
2295
|
-
let n = e, r = g(() => import("./TitleEditor-
|
|
2295
|
+
let n = e, r = g(() => import("./TitleEditor-VAanUjPQ.js")), a = En(pn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ca(() => n.block.content), f = N(() => {
|
|
2296
2296
|
let e = {
|
|
2297
|
-
fontSize: `${
|
|
2298
|
-
lineHeight: String(
|
|
2297
|
+
fontSize: `${je[n.block.level]}px`,
|
|
2298
|
+
lineHeight: String(pe),
|
|
2299
2299
|
fontWeight: "700",
|
|
2300
2300
|
textAlign: n.block.textAlign
|
|
2301
2301
|
};
|
|
@@ -2328,12 +2328,12 @@ var co = /* @__PURE__ */ n({
|
|
|
2328
2328
|
}
|
|
2329
2329
|
}), lo = "hero", uo = "#1f2937", fo = "#ffffff";
|
|
2330
2330
|
function po(e, t) {
|
|
2331
|
-
let n =
|
|
2331
|
+
let n = X("title", e);
|
|
2332
2332
|
n.color = fo, n.textAlign = "center";
|
|
2333
|
-
let r =
|
|
2333
|
+
let r = X("paragraph", e);
|
|
2334
2334
|
r.content = `<p style="text-align: center"><span style="color: ${fo}">${mo(t)}</span></p>`;
|
|
2335
|
-
let i =
|
|
2336
|
-
return i.align = "center",
|
|
2335
|
+
let i = X("button", e);
|
|
2336
|
+
return i.align = "center", ce({
|
|
2337
2337
|
columns: "1",
|
|
2338
2338
|
children: [[
|
|
2339
2339
|
n,
|
|
@@ -2426,7 +2426,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
let U = N(() => {
|
|
2428
2428
|
if (d.state.previewMode) return !1;
|
|
2429
|
-
let e =
|
|
2429
|
+
let e = We(o.block);
|
|
2430
2430
|
return e !== null && !e.applied && e.reason === "image";
|
|
2431
2431
|
});
|
|
2432
2432
|
function W(e) {
|
|
@@ -2438,10 +2438,10 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
|
|
|
2438
2438
|
function ee(e, t) {
|
|
2439
2439
|
Ea(d, t, o.block.id, e);
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function te(e) {
|
|
2442
2442
|
return wi(e, _, r);
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function K(e, t) {
|
|
2445
2445
|
e.type === "custom" && d.updateBlock(e.id, {
|
|
2446
2446
|
fieldValues: t.fieldValues,
|
|
2447
2447
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -2484,9 +2484,9 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
|
|
|
2484
2484
|
nested: "",
|
|
2485
2485
|
onSelect: (e) => x(r.id)
|
|
2486
2486
|
}, {
|
|
2487
|
-
default: a(() => [(i(), D(t(
|
|
2487
|
+
default: a(() => [(i(), D(t(te(r)), e({ block: C(p)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
|
|
2488
2488
|
viewport: n.viewport,
|
|
2489
|
-
onFetchData: (e) =>
|
|
2489
|
+
onFetchData: (e) => K(r, e),
|
|
2490
2490
|
onUpdate: (e) => C(d).updateBlock(r.id, e)
|
|
2491
2491
|
}), null, 16, [
|
|
2492
2492
|
"block",
|
|
@@ -2527,7 +2527,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
|
|
|
2527
2527
|
iconSize: {}
|
|
2528
2528
|
},
|
|
2529
2529
|
setup(e) {
|
|
2530
|
-
let t = e, n = N(() => ut[t.platform]), r = N(() => ft[t.iconSize]), a = N(() =>
|
|
2530
|
+
let t = e, n = N(() => ut[t.platform]), r = N(() => ft[t.iconSize]), a = N(() => Ue(t.platform, t.iconTone)), o = N(() => he(t.iconStyle, t.iconTone)), s = N(() => {
|
|
2531
2531
|
let e = {
|
|
2532
2532
|
display: "inline-flex",
|
|
2533
2533
|
alignItems: "center",
|
|
@@ -2565,7 +2565,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
|
|
|
2565
2565
|
};
|
|
2566
2566
|
default: return e;
|
|
2567
2567
|
}
|
|
2568
|
-
}), c = N(() =>
|
|
2568
|
+
}), c = N(() => Pe(t.iconStyle)), l = N(() => Math.floor(r.value * c.value));
|
|
2569
2569
|
function u(e) {
|
|
2570
2570
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
2571
2571
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -2797,7 +2797,7 @@ var Vo = ["src", "alt"], Ho = {
|
|
|
2797
2797
|
viewport: {}
|
|
2798
2798
|
},
|
|
2799
2799
|
setup(e) {
|
|
2800
|
-
let t = e, { t: n } = Q(), { syntax: r } = er(), a = N(() =>
|
|
2800
|
+
let t = e, { t: n } = Q(), { syntax: r } = er(), a = N(() => He(t.block.url, r) || He(t.block.thumbnailUrl, r)), o = at(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = at(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Bo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
|
|
2801
2801
|
let e = t.block.align;
|
|
2802
2802
|
return {
|
|
2803
2803
|
maxWidth: "100%",
|
|
@@ -2807,7 +2807,7 @@ var Vo = ["src", "alt"], Ho = {
|
|
|
2807
2807
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2808
2808
|
marginRight: e === "center" ? "auto" : void 0
|
|
2809
2809
|
};
|
|
2810
|
-
}), d = N(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = N(() =>
|
|
2810
|
+
}), d = N(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = N(() => He(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2811
2811
|
return (t, r) => (i(), b("div", {
|
|
2812
2812
|
class: "tpl:w-full",
|
|
2813
2813
|
style: P(l.value)
|
|
@@ -2873,7 +2873,7 @@ var Vo = ["src", "alt"], Ho = {
|
|
|
2873
2873
|
countdown: g(() => import("./CountdownBlock-CjMhMhnv.js"))
|
|
2874
2874
|
};
|
|
2875
2875
|
function Yo(e) {
|
|
2876
|
-
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() =>
|
|
2876
|
+
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => De(De(De($r(r), yi(t.content.value.settings?.locale)), be(t.content.value.settings) === "rtl" ? {
|
|
2877
2877
|
title: { textAlign: "right" },
|
|
2878
2878
|
table: { textAlign: "right" }
|
|
2879
2879
|
} : {}), n.blockDefaults ?? {}));
|
|
@@ -2952,26 +2952,26 @@ function Yo(e) {
|
|
|
2952
2952
|
Yn(document, "keydown", O);
|
|
2953
2953
|
let k = z(null), A = e.editorRoot ?? document;
|
|
2954
2954
|
s(Ln, A), s(Yt, k), s(Ut, /* @__PURE__ */ new Map()), s(Mn, r), s(Pn, t), s(In, p), s(jn, h), s(wn, g), s(pn, i), s(gn, f), s(bn, u), s(mn, l), s(An, n.locale), s(Cn, C), s(vn, n.customBlocks ?? []), s(Gt, n.paletteBlocks), s(rn, Xr(n.htmlBlockPreview)), s(an, n.layout), s(ln, n.sectionWrapper), s(Dn, x), s(zt, S.fields), s(_n, Gr(t.content, C));
|
|
2955
|
-
let j =
|
|
2955
|
+
let j = Le(n.mergeTags?.syntax);
|
|
2956
2956
|
for (let e of ["opener", "closer"]) {
|
|
2957
2957
|
let t = j[e];
|
|
2958
2958
|
typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
|
|
2959
2959
|
}
|
|
2960
|
-
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" &&
|
|
2960
|
+
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && ye(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
|
|
2961
2961
|
let M = F(n.mergeTags?.tags ?? []);
|
|
2962
2962
|
function P(e) {
|
|
2963
2963
|
Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
2964
2964
|
}
|
|
2965
2965
|
s(en, M), s(Vt, j), s(cn, n.mergeTags?.onRequest ?? null), s(Wt, n.mergeTags?.autocomplete !== !1), s(Rn, n.mergeTags?.showRawValue !== !1);
|
|
2966
|
-
let I = z(
|
|
2966
|
+
let I = z(Ie(n.mergeTags?.tags ?? []));
|
|
2967
2967
|
s(nn, I);
|
|
2968
2968
|
let L = Lr({
|
|
2969
2969
|
resolvePreview: n.resolvePreview,
|
|
2970
2970
|
getContent: () => {
|
|
2971
2971
|
let e = t.content.value;
|
|
2972
2972
|
if (!t.state.previewMode) return e;
|
|
2973
|
-
let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i =
|
|
2974
|
-
return n.layout ?
|
|
2973
|
+
let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i = de(e, r);
|
|
2974
|
+
return n.layout ? J(de(n.layout, r, { missing: "default" }), i) : i;
|
|
2975
2975
|
},
|
|
2976
2976
|
isActive: () => t.state.previewMode,
|
|
2977
2977
|
getLocale: () => t.activeLocale?.value ?? t.content.value.settings.locale
|
|
@@ -3036,4 +3036,4 @@ function Zo(e) {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
export { pi as A, hr as B, Ni as C, si as D, wi as E, Fr as F, Ar as I, Or as L, di as M, ui as N, hi as O, Lr as P, xr as R, Mi as S, Ii as T, ea as _, jo as a, Bi as b, lo as c, oo as d, Ea as f, oa as g, va as h, Lo as i, fi as j, mi as k, po as l, Sa as m, Yo as n, Oo as o, Ta as p, qo as r, bo as s, Zo as t, co as u, Qi as v, Ci as w, Oi as x, Ui as y, gr as z };
|
|
3038
3038
|
|
|
3039
|
-
//# sourceMappingURL=composables-
|
|
3039
|
+
//# sourceMappingURL=composables-Jc3uZuLs.js.map
|