@templatical/editor 0.24.0 → 0.24.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/{AiChatSidebar-Nq-jrGaf.js → AiChatSidebar-X4viKtvs.js} +14 -14
- package/dist/{AiFeatureMenu-tg_zMKMK.js → AiFeatureMenu-DDAamRaA.js} +7 -7
- package/dist/{BlockIssueBadge-Bd94kIiw.js → BlockIssueBadge-Qxrl7Ujl.js} +5 -5
- package/dist/{BlockPreviewCanvas-B34aMhHe.js → BlockPreviewCanvas-Cf-kxbEr.js} +3 -3
- package/dist/{CloudEditor-DjN_9Yso.js → CloudEditor-JIzhj1Xq.js} +26 -26
- package/dist/{CollaboratorBar-Bhazzcg-.js → CollaboratorBar-tC7AACTb.js} +4 -4
- package/dist/{ColorPicker-DXGrcJxJ.js → ColorPicker--_2PbzFk.js} +7 -9
- package/dist/{CommentsSidebar-ku1kt10u.js → CommentsSidebar-Ci2Ov8FG.js} +15 -15
- package/dist/{CountdownBlock-CN9Lc23W.js → CountdownBlock-aZIKfBWY.js} +3 -3
- package/dist/{CountdownToolbar-VEsIyKV6.js → CountdownToolbar-DHp6T0Q_.js} +4 -4
- package/dist/DesignReferenceSidebar-DQsC-3hB.js +264 -0
- package/dist/{IssuesPanel-CEfzOpS_.js → IssuesPanel-CoOfib44.js} +8 -8
- package/dist/{LoadingTrack-KIcREPlS.js → LoadingTrack-XK_eeUdq.js} +1 -1
- package/dist/{MergeTagModeToggle-C3V2xGAg.js → MergeTagModeToggle-CiFiSV0C.js} +6 -6
- package/dist/{MergeTagSuggestion-Dn8ww9nV.js → MergeTagSuggestion-D0OHRv7L.js} +8 -12
- package/dist/{NumberWithSuffix-BGocZkj9.js → NumberWithSuffix-CXFbUqsx.js} +2 -2
- package/dist/{ParagraphEditor-D-fz0kUb.js → ParagraphEditor-Cy-bpEjI.js} +44 -44
- package/dist/{RichTextEditorContent-DydrqFts.js → RichTextEditorContent-CYJko6id.js} +8 -8
- package/dist/{SaveBlockDialog-BDDFbAWF.js → SaveBlockDialog-CNTSaMEa.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-Djik_fJh.js → SavedBlocksBrowserModal-CvxS5-YX.js} +11 -11
- package/dist/{SavedBlocksPanels-CxemyPxL.js → SavedBlocksPanels-CNdUxS89.js} +2 -2
- package/dist/{SavedBlocksPickBar-Dlhipmob.js → SavedBlocksPickBar-BvXKhblL.js} +4 -4
- package/dist/{SnapshotHistory-DPbM4ons.js → SnapshotHistory-BqPSIV9L.js} +10 -10
- package/dist/{TemplateScoringPanel-BFYgweDX.js → TemplateScoringPanel-CMEuz9yF.js} +15 -15
- package/dist/{TestEmailModal-IZfwgya-.js → TestEmailModal-BDhnnCBx.js} +10 -10
- package/dist/{TestEmailPanel-QEEx_PkN.js → TestEmailPanel--RwnwLn2.js} +2 -2
- package/dist/{TitleEditor-BB4YlIBF.js → TitleEditor-F7E_pU9H.js} +12 -12
- package/dist/TplModal-BIiS24Of.js +49 -0
- package/dist/{blockTypeIcons-Wzd7W_2x.js → blockTypeIcons-C6PnLMp7.js} +26 -26
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js → AiChatSidebar-UbF3ePzR.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js.map → AiChatSidebar-UbF3ePzR.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js → AiFeatureMenu-OIwoJzHG.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js.map → AiFeatureMenu-OIwoJzHG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js → BlockIssueBadge-Bd2EuT1C.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js.map → BlockIssueBadge-Bd2EuT1C.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-Dc4F4HzY.js → BlockPreviewCanvas-C-ut8GkJ.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-Dc4F4HzY.js.map → BlockPreviewCanvas-C-ut8GkJ.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CeKaWWO5.js → CloudEditor-D87qsqbZ.js} +20 -20
- package/dist/cdn/chunks/{CloudEditor-CeKaWWO5.js.map → CloudEditor-D87qsqbZ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js → CollaboratorBar-Br4RvNrA.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js.map → CollaboratorBar-Br4RvNrA.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js → ColorPicker-B-ymPPtU.js} +8 -10
- package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js.map → ColorPicker-B-ymPPtU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js → CommentsSidebar-Tv_WTcJv.js} +6 -6
- package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js.map → CommentsSidebar-Tv_WTcJv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js → CountdownBlock-cEcXSK91.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js.map → CountdownBlock-cEcXSK91.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js → CountdownToolbar-CLp3_ebk.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js.map → CountdownToolbar-CLp3_ebk.js.map} +1 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-YeqxSsxO.js +223 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BjlaP69l.js.map → DesignReferenceSidebar-YeqxSsxO.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js → IssuesPanel-BhsvC3XQ.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js.map → IssuesPanel-BhsvC3XQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js → LoadingTrack-G2tuXqCJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js.map → LoadingTrack-G2tuXqCJ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js → MergeTagModeToggle-DrdxQA0K.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js.map → MergeTagModeToggle-DrdxQA0K.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js → MergeTagSuggestion-Ces5Ua78.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js.map → MergeTagSuggestion-Ces5Ua78.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js → NumberWithSuffix-BK_Xh4w4.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js.map → NumberWithSuffix-BK_Xh4w4.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js → ParagraphEditor-DKz4vTWB.js} +131 -131
- package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js.map → ParagraphEditor-DKz4vTWB.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js → RichTextEditorContent-CJ2WVicQ.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js.map → RichTextEditorContent-CJ2WVicQ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js → SaveBlockDialog-DTemkKPX.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js.map → SaveBlockDialog-DTemkKPX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js → SavedBlocksBrowserModal-DbMaIbeH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js.map → SavedBlocksBrowserModal-DbMaIbeH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js → SavedBlocksPanels-CUffuDAC.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js.map → SavedBlocksPanels-CUffuDAC.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js → SavedBlocksPickBar-D7SmNz2n.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js.map → SavedBlocksPickBar-D7SmNz2n.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js → SnapshotHistory-m5Z8bTej.js} +7 -7
- package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js.map → SnapshotHistory-m5Z8bTej.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js → TemplateScoringPanel-DgRU5fty.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js.map → TemplateScoringPanel-DgRU5fty.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-CiPfOn2v.js → TestEmailModal-Ce8-vzGh.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-CiPfOn2v.js.map → TestEmailModal-Ce8-vzGh.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js → TestEmailPanel-BlmIKKSL.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js.map → TestEmailPanel-BlmIKKSL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js → TitleEditor-C6_bQxYR.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js.map → TitleEditor-C6_bQxYR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-D6bFON2K.js +50 -0
- package/dist/cdn/chunks/TplModal-D6bFON2K.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js → blockTypeIcons-B8s3_ahs.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js.map → blockTypeIcons-B8s3_ahs.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-C2I0P9qj.js → cloud-CRlDc0Ev.js} +13 -17
- package/dist/cdn/chunks/{cloud-C2I0P9qj.js.map → cloud-CRlDc0Ev.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CxTt8FRE.js → dist-B8AX9np4.js} +16 -12
- package/dist/cdn/chunks/dist-B8AX9np4.js.map +1 -0
- package/dist/cdn/chunks/{dist-CiBEt0VR.js → dist-lZgXNk4G.js} +36 -20
- package/dist/cdn/chunks/dist-lZgXNk4G.js.map +1 -0
- package/dist/cdn/chunks/{draggable-D840DIZB.js → draggable-JcMTNF3U.js} +14 -15
- package/dist/cdn/chunks/{draggable-D840DIZB.js.map → draggable-JcMTNF3U.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DBWF_lxx.js → extensions-CKMD_er_.js} +15 -11
- package/dist/cdn/chunks/{extensions-DBWF_lxx.js.map → extensions-CKMD_er_.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js → htmlparser-CPhs2cYE.js} +3 -5
- package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js.map → htmlparser-CPhs2cYE.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Cqxvwgz7.js → icons-Cp4ZIJw-.js} +31 -31
- package/dist/cdn/chunks/{icons-Cqxvwgz7.js.map → icons-Cp4ZIJw-.js.map} +1 -1
- package/dist/cdn/chunks/{keys-B5uoP9P7.js → keys-CswSK7eb.js} +2 -2
- package/dist/cdn/chunks/{keys-B5uoP9P7.js.map → keys-CswSK7eb.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-BJOEu6Cg.js → liquid.browser-CZaQe87t.js} +756 -718
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +1 -0
- package/dist/cdn/chunks/{pusher-R0v5p99W.js → pusher-kUlkqMvR.js} +21 -28
- package/dist/cdn/chunks/{pusher-R0v5p99W.js.map → pusher-kUlkqMvR.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/cdn/chunks/{src-C45kfA2t.js → src-B3HKHglu.js} +5 -9
- package/dist/cdn/chunks/{src-C45kfA2t.js.map → src-B3HKHglu.js.map} +1 -1
- package/dist/cdn/chunks/{src-YVsPFLNJ.js → src-B4UhYbI8.js} +4 -4
- package/dist/cdn/chunks/{src-YVsPFLNJ.js.map → src-B4UhYbI8.js.map} +1 -1
- package/dist/cdn/chunks/{src-XQmI_Xs1.js → src-CumZZNXZ.js} +523 -787
- package/dist/cdn/chunks/{src-XQmI_Xs1.js.map → src-CumZZNXZ.js.map} +1 -1
- package/dist/cdn/chunks/{src-BCJna-6p.js → src-D5mfLR4V.js} +2 -2
- package/dist/cdn/chunks/{src-BCJna-6p.js.map → src-D5mfLR4V.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BohMfIBd.js → styles--m9OCb_Z.js} +530 -530
- package/dist/cdn/chunks/{styles-BohMfIBd.js.map → styles--m9OCb_Z.js.map} +1 -1
- package/dist/cdn/chunks/timeouts-SsLMC4a3.js +6 -0
- package/dist/cdn/chunks/{timeouts-Bmi_yePw.js.map → timeouts-SsLMC4a3.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DRKu__AX.js → tiptap-rsib432n.js} +132 -119
- package/dist/cdn/chunks/tiptap-rsib432n.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js → useAliveFlag-CseYNikC.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js.map → useAliveFlag-CseYNikC.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js → useCloudI18n-sx1pqEbY.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js.map → useCloudI18n-sx1pqEbY.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-B_vwuKdI.js → useEditorCore-ZqF7P99K.js} +201 -199
- package/dist/cdn/chunks/{useEditorCore-B_vwuKdI.js.map → useEditorCore-ZqF7P99K.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-graz19nI.js → useI18n-vD57BfVR.js} +3 -3
- package/dist/cdn/chunks/{useI18n-graz19nI.js.map → useI18n-vD57BfVR.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js → useMergeTag-HatzNGgc.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js.map → useMergeTag-HatzNGgc.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js → usePopoverPosition-BdQ3Sv4B.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js.map → usePopoverPosition-BdQ3Sv4B.js.map} +1 -1
- package/dist/cdn/editor.js +10 -10
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BpQDKiPz.js → check-CIhIDh4h.js} +1 -1
- package/dist/{chevron-down-j8GrdTyz.js → chevron-down-CZ0m6G3s.js} +1 -1
- package/dist/{chevron-up-BACyVhyC.js → chevron-up-BH_tJLeb.js} +1 -1
- package/dist/{circle-alert-CgtE46ND.js → circle-alert-DkEXnGPV.js} +1 -1
- package/dist/{clock-BzKLLW5L.js → clock-BDIJZUET.js} +1 -1
- package/dist/{cloud-DsUct4Zq.js → cloud-R8ci6yR1.js} +10 -14
- package/dist/{createLucideIcon-JWHwTI6N.js → createLucideIcon-AEltGIse.js} +3 -3
- package/dist/{dist-BAkGuPYm.js → dist-B6Px6GPj.js} +1 -1
- package/dist/{dist-DPHqs0Yh.js → dist-Ba5Q-UX1.js} +1 -1
- package/dist/{dist-9uhI32Q4.js → dist-BxbTVeY0.js} +1 -1
- package/dist/{dist-DWu9QWFl.js → dist-CIqhVQ1O.js} +5 -5
- package/dist/{dist-CkCVlKj_.js → dist-CRH880TV.js} +1 -1
- package/dist/{dist-ByJVlKWy.js → dist-CcQFPJMF.js} +116 -100
- package/dist/{dist-JXOq1hib.js → dist-CkPvZCld.js} +1 -1
- package/dist/{dist-IGetXrbO.js → dist-DSIgxp0v.js} +1 -1
- package/dist/{dist-DYv_Pttj.js → dist-DT1XnEnj.js} +33 -17
- package/dist/{dist-C_kAE1sC.js → dist-DX4x6mQ1.js} +3 -3
- package/dist/{dist-DFO896yT.js → dist-Dx71pluS.js} +16 -11
- package/dist/{dist-CQiAZlTt.js → dist-DyCHUyRR.js} +1 -1
- package/dist/{dist-BIYm-U9x.js → dist-iCEDH3cC.js} +1 -1
- package/dist/{dist-C5tigvDF.js → dist-nR6mxyqI.js} +1 -1
- package/dist/{extensions-C0DXnYdA.js → extensions-CGxj6-2o.js} +16 -12
- package/dist/{image-up-CQdtq8ge.js → image-up-8ktdYdaZ.js} +1 -1
- package/dist/{info-BUJBXoE6.js → info-CvrCgTLH.js} +1 -1
- package/dist/{keys-BVlG5Ozc.js → keys-uWpGv4Pq.js} +1 -1
- package/dist/{liquid.browser-DZLtv26k.js → liquid.browser-BECWFL5Z.js} +755 -717
- package/dist/{list-checks-BGHaCSD5.js → list-checks-yzGT93ZL.js} +1 -1
- package/dist/{loader-circle-C-Z6kgI6.js → loader-circle-B6euendB.js} +1 -1
- package/dist/{message-circle-CEm5qckV.js → message-circle-BMldLVcA.js} +1 -1
- package/dist/{pencil-DdwmkKLb.js → pencil-CkKkSd6N.js} +1 -1
- package/dist/{refresh-cw-maKlg0dl.js → refresh-cw-fBPgB97G.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-GdMI8WqG.js → runtime-dom.esm-bundler-CBbDt7sw.js} +2 -2
- package/dist/{scan-line-BFgesTOY.js → scan-line-CRoEOUiK.js} +1 -1
- package/dist/{send-B70aQDrA.js → send-B9Tt2qBi.js} +1 -1
- package/dist/{shield-check-B7x5OKt5.js → shield-check-QfZkYeIo.js} +1 -1
- package/dist/{sparkles-DVlm1Ipp.js → sparkles-8UeMmZb8.js} +1 -1
- package/dist/{styles-BTTD0Je4.js → styles-C9AMvkJk.js} +541 -541
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-Vay3Kvo2.js → text-align-start-Dn8uIheW.js} +1 -1
- package/dist/{trash-2-DE8CmxAG.js → trash-2-DDyvqj0E.js} +1 -1
- package/dist/{triangle-alert-Djg6IG8N.js → triangle-alert-B3PydLzl.js} +1 -1
- package/dist/{upload-BwwE0U6G.js → upload-hE8ItfyG.js} +2 -2
- package/dist/{useAliveFlag-C43EhZFY.js → useAliveFlag-AfoTE_AY.js} +1 -1
- package/dist/{useCloudI18n-DGr3b2SX.js → useCloudI18n-BC_QV2Z7.js} +2 -2
- package/dist/{useEditorCore-DOrGex_t.js → useEditorCore-Dojb-P2f.js} +655 -655
- package/dist/{useI18n-BhAejA-x.js → useI18n-DzOcl2wl.js} +2 -2
- package/dist/{useMergeTag-Ce95YIOO.js → useMergeTag-BFxXCv3p.js} +3 -3
- package/dist/{usePopoverPosition-vjKJaqJf.js → usePopoverPosition-Dtr1Mp1x.js} +13 -13
- package/dist/{vue.runtime.esm-bundler-B0xoGkDv.js → vue.runtime.esm-bundler-Xpz-L9Fn.js} +27 -22
- package/dist/{x-CkD6A1iB.js → x-C4lETLDx.js} +1 -1
- package/package.json +12 -12
- package/dist/DesignReferenceSidebar-C4pTMzQE.js +0 -264
- package/dist/TplModal-DPH4vV8M.js +0 -49
- package/dist/cdn/chunks/DesignReferenceSidebar-BjlaP69l.js +0 -223
- package/dist/cdn/chunks/TplModal-Cu4tBBnF.js +0 -50
- package/dist/cdn/chunks/TplModal-Cu4tBBnF.js.map +0 -1
- package/dist/cdn/chunks/dist-CiBEt0VR.js.map +0 -1
- package/dist/cdn/chunks/dist-CxTt8FRE.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js +0 -6
- package/dist/cdn/chunks/tiptap-DRKu__AX.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { $ as e, A as t, C as n, F as r, G as i, H as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, T as p, U as m, V as h, X as g, Y as _, Z as v, at as y, b, c as x, ct as S, f as C, g as w, h as T, it as E, k as D, l as O, m as k, nt as A, ot as j, p as M, rt as N, s as P, st as F, t as ee, u as I, v as L, x as R, y as z, z as B } from "./draggable-
|
|
2
|
-
import "./timeouts-
|
|
3
|
-
import { A as te, C as ne, D as re, E as ie, F as ae, I as oe, L as se, M as ce, N as le, O as ue, P as V, Q as de, S as fe, T as pe, Z as me, _ as he, a as ge, b as _e, c as ve, d as ye, f as be, g as xe, h as Se, i as Ce, j as we, k as Te, l as Ee, m as De, n as Oe, o as ke, p as Ae, r as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { a as
|
|
6
|
-
import { A as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as
|
|
9
|
-
import { A as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import "./useCloudI18n-
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
1
|
+
import { $ as e, A as t, C as n, F as r, G as i, H as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, T as p, U as m, V as h, X as g, Y as _, Z as v, at as y, b, c as x, ct as S, f as C, g as w, h as T, it as E, k as D, l as O, m as k, nt as A, ot as j, p as M, rt as N, s as P, st as F, t as ee, u as I, v as L, x as R, y as z, z as B } from "./draggable-JcMTNF3U.js";
|
|
2
|
+
import "./timeouts-SsLMC4a3.js";
|
|
3
|
+
import { A as te, C as ne, D as re, E as ie, F as ae, I as oe, L as se, M as ce, N as le, O as ue, P as V, Q as de, S as fe, T as pe, Z as me, _ as he, a as ge, b as _e, c as ve, d as ye, f as be, g as xe, h as Se, i as Ce, j as we, k as Te, l as Ee, m as De, n as Oe, o as ke, p as Ae, r as H, t as je, u as Me, w as Ne, x as Pe, y as Fe, z as Ie } from "./src-D5mfLR4V.js";
|
|
4
|
+
import { _ as Le, h as Re, v as ze, y as Be } from "./dist-lZgXNk4G.js";
|
|
5
|
+
import { a as U, c as Ve, i as He, r as Ue } from "./dist-B8AX9np4.js";
|
|
6
|
+
import { A as We, B as Ge, C as Ke, D as qe, E as Je, H as Ye, L as Xe, M as Ze, N as Qe, O as $e, P as et, R as tt, S as nt, T as W, V as rt, _ as it, a as at, b as ot, d as st, f as ct, g as lt, h as G, i as ut, j as dt, k as ft, l as pt, m as mt, n as ht, o as gt, p as _t, s as vt, v as yt, w as bt, x as xt, y as St, z as Ct } from "./keys-CswSK7eb.js";
|
|
7
|
+
import { t as K } from "./useI18n-vD57BfVR.js";
|
|
8
|
+
import { a as wt, i as Tt, o as Et, r as q, t as Dt } from "./usePopoverPosition-BdQ3Sv4B.js";
|
|
9
|
+
import { A as Ot, Dt as kt, H as At, Rt as jt, Tt as Mt, X as Nt, _ as Pt, d as Ft, ft as It, ht as Lt, it as Rt, o as zt, s as Bt, tt as Vt, u as Ht, vt as Ut, wt as Wt, zt as Gt } from "./icons-Cp4ZIJw-.js";
|
|
10
|
+
import { t as Kt } from "./LoadingTrack-G2tuXqCJ.js";
|
|
11
|
+
import { t as qt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import "./useCloudI18n-sx1pqEbY.js";
|
|
13
|
+
import { t as J } from "./useMergeTag-HatzNGgc.js";
|
|
14
|
+
import { t as Jt } from "./useAliveFlag-CseYNikC.js";
|
|
15
15
|
//#region ../core/src/editor.ts
|
|
16
|
-
function
|
|
16
|
+
function Yt(e) {
|
|
17
17
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Xt(e) {
|
|
20
20
|
let t = _({
|
|
21
21
|
content: e.content ?? ae(e.defaultFontFamily, e.templateDefaults),
|
|
22
22
|
selectedBlockId: null,
|
|
@@ -107,7 +107,7 @@ function Zt(e) {
|
|
|
107
107
|
if (s(n)) return;
|
|
108
108
|
let o = i(t.content.blocks, n);
|
|
109
109
|
if (o && o.type === "section") {
|
|
110
|
-
if (r < 0 || r >=
|
|
110
|
+
if (r < 0 || r >= Yt(o.columns)) return;
|
|
111
111
|
o.children[r] = o.children[r] || [];
|
|
112
112
|
let t = o.children[r];
|
|
113
113
|
a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
|
|
@@ -140,7 +140,7 @@ function Zt(e) {
|
|
|
140
140
|
let u;
|
|
141
141
|
if (r) {
|
|
142
142
|
let e = i(t.content.blocks, r);
|
|
143
|
-
if (!e || e.type !== "section" || a < 0 || a >=
|
|
143
|
+
if (!e || e.type !== "section" || a < 0 || a >= Yt(e.columns)) return;
|
|
144
144
|
e.children[a] = e.children[a] || [], u = e.children[a];
|
|
145
145
|
} else u = t.content.blocks;
|
|
146
146
|
let [d] = c.blocks.splice(l, 1);
|
|
@@ -171,9 +171,9 @@ function Zt(e) {
|
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region ../core/src/history.ts
|
|
174
|
-
var
|
|
175
|
-
function
|
|
176
|
-
let { content: t, setContent: n, isRemoteOperation: r, maxSize: i =
|
|
174
|
+
var Zt = 50, Qt = 300, $t = 1500;
|
|
175
|
+
function en(e) {
|
|
176
|
+
let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = Zt } = e, a = v([]), o = v([]), s = v(!1), c = null, l = null, u = m(() => a.value.length > 0), d = m(() => o.value.length > 0);
|
|
177
177
|
function f() {
|
|
178
178
|
return he(t.value);
|
|
179
179
|
}
|
|
@@ -191,21 +191,21 @@ function tn(e) {
|
|
|
191
191
|
if (l && l.blockId === e) {
|
|
192
192
|
clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
|
|
193
193
|
l = null;
|
|
194
|
-
},
|
|
194
|
+
}, Qt);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
h(), p(f()), o.value = [], l = {
|
|
198
198
|
blockId: e,
|
|
199
199
|
timeoutId: setTimeout(() => {
|
|
200
200
|
l = null;
|
|
201
|
-
},
|
|
201
|
+
}, Qt)
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
function y() {
|
|
206
206
|
s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
|
|
207
207
|
s.value = !1, c = null;
|
|
208
|
-
},
|
|
208
|
+
}, $t);
|
|
209
209
|
}
|
|
210
210
|
function b() {
|
|
211
211
|
if (a.value.length === 0) return;
|
|
@@ -239,7 +239,7 @@ function tn(e) {
|
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region ../core/src/block-actions.ts
|
|
242
|
-
function
|
|
242
|
+
function tn(e) {
|
|
243
243
|
e.type === "table" ? e.rows = e.rows.map((e) => ({
|
|
244
244
|
...e,
|
|
245
245
|
id: V(),
|
|
@@ -255,17 +255,17 @@ function nn(e) {
|
|
|
255
255
|
id: V()
|
|
256
256
|
})));
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function nn(e) {
|
|
259
259
|
let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
|
|
260
260
|
function o(n, r, a) {
|
|
261
|
-
let o =
|
|
261
|
+
let o = Fe(n, e.blockDefaults);
|
|
262
262
|
return t(o, r, a), i(o.id), o;
|
|
263
263
|
}
|
|
264
264
|
function s(e, n, r) {
|
|
265
265
|
let o = JSON.parse(JSON.stringify(e));
|
|
266
|
-
if (o.id = V(),
|
|
266
|
+
if (o.id = V(), tn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
|
|
267
267
|
let t = JSON.parse(JSON.stringify(e));
|
|
268
|
-
return t.id = V(),
|
|
268
|
+
return t.id = V(), tn(t), t;
|
|
269
269
|
}))), n !== void 0 || r !== void 0) t(o, n, r);
|
|
270
270
|
else {
|
|
271
271
|
let i = a?.(e.id) ?? null;
|
|
@@ -288,7 +288,7 @@ function rn(e) {
|
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
290
|
//#region ../core/src/auto-save.ts
|
|
291
|
-
function
|
|
291
|
+
function rn(e) {
|
|
292
292
|
let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
|
|
293
293
|
function c() {
|
|
294
294
|
return typeof a == "function" ? a() : a;
|
|
@@ -326,7 +326,7 @@ function an(e) {
|
|
|
326
326
|
}
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region ../core/src/condition-preview.ts
|
|
329
|
-
function
|
|
329
|
+
function an(e) {
|
|
330
330
|
let t = _(/* @__PURE__ */ new Set()), n = m(() => t.size > 0);
|
|
331
331
|
function r(e) {
|
|
332
332
|
return t.has(e);
|
|
@@ -346,7 +346,7 @@ function on(e) {
|
|
|
346
346
|
}
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region ../core/src/data-source-fetch.ts
|
|
349
|
-
function
|
|
349
|
+
function on(e) {
|
|
350
350
|
let t = v(!1), n = v(!1), r = m(() => !!e.definition.value?.dataSource), i = m(() => r.value && !e.block.value.dataSourceFetched);
|
|
351
351
|
async function a() {
|
|
352
352
|
let r = e.definition.value;
|
|
@@ -378,7 +378,7 @@ function sn(e) {
|
|
|
378
378
|
}
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region ../core/src/history-interceptor.ts
|
|
381
|
-
function
|
|
381
|
+
function sn(e, t) {
|
|
382
382
|
let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
|
|
383
383
|
e.addBlock = (r, i, a, o) => {
|
|
384
384
|
i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
|
|
@@ -394,7 +394,7 @@ function cn(e, t) {
|
|
|
394
394
|
}
|
|
395
395
|
//#endregion
|
|
396
396
|
//#region ../core/src/saved-blocks.ts
|
|
397
|
-
function
|
|
397
|
+
function cn(e) {
|
|
398
398
|
let { provider: t } = e, n = v([]), r = v(!1), i = C(() => {
|
|
399
399
|
let e = /* @__PURE__ */ new Set();
|
|
400
400
|
for (let t of n.value) {
|
|
@@ -410,7 +410,7 @@ function ln(e) {
|
|
|
410
410
|
return s.value && e.canDelete !== !1;
|
|
411
411
|
}
|
|
412
412
|
function u(e, t) {
|
|
413
|
-
throw new
|
|
413
|
+
throw new je(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
|
|
414
414
|
}
|
|
415
415
|
async function d(i) {
|
|
416
416
|
r.value = !0;
|
|
@@ -479,9 +479,9 @@ function ln(e) {
|
|
|
479
479
|
}
|
|
480
480
|
//#endregion
|
|
481
481
|
//#region ../core/src/saved-blocks-local.ts
|
|
482
|
-
var
|
|
483
|
-
function
|
|
484
|
-
let t = e.key ??
|
|
482
|
+
var ln = "templatical:saved-blocks";
|
|
483
|
+
function un(e = {}) {
|
|
484
|
+
let t = e.key ?? ln;
|
|
485
485
|
function n() {
|
|
486
486
|
if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
|
|
487
487
|
return localStorage;
|
|
@@ -534,26 +534,26 @@ function dn(e = {}) {
|
|
|
534
534
|
}
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region src/utils/activeEditorTracker.ts
|
|
537
|
-
var
|
|
538
|
-
function
|
|
539
|
-
let e = ++
|
|
540
|
-
return
|
|
537
|
+
var Y = /* @__PURE__ */ new Set(), X = 0, dn = 0;
|
|
538
|
+
function fn() {
|
|
539
|
+
let e = ++dn;
|
|
540
|
+
return Y.add(e), X === 0 && (X = e), {
|
|
541
541
|
id: e,
|
|
542
|
-
isActive: () =>
|
|
542
|
+
isActive: () => Y.size <= 1 || X === e,
|
|
543
543
|
claim: () => {
|
|
544
|
-
|
|
544
|
+
X = e;
|
|
545
545
|
},
|
|
546
546
|
dispose: () => {
|
|
547
|
-
if (
|
|
548
|
-
let e = Array.from(
|
|
549
|
-
|
|
547
|
+
if (Y.delete(e), X === e) {
|
|
548
|
+
let e = Array.from(Y);
|
|
549
|
+
X = e[e.length - 1] ?? 0;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
//#endregion
|
|
555
555
|
//#region src/composables/useImageUrlResolver.ts
|
|
556
|
-
function
|
|
556
|
+
function pn(e) {
|
|
557
557
|
let t = _(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
|
|
558
558
|
function r(e) {
|
|
559
559
|
return t.get(e);
|
|
@@ -586,8 +586,8 @@ function mn(e) {
|
|
|
586
586
|
lookup: a
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
let t = p(
|
|
589
|
+
function Z(e) {
|
|
590
|
+
let t = p(ot, null), n = C(e);
|
|
591
591
|
if (!t) return n;
|
|
592
592
|
let r;
|
|
593
593
|
function a() {
|
|
@@ -616,7 +616,7 @@ function X(e) {
|
|
|
616
616
|
}
|
|
617
617
|
//#endregion
|
|
618
618
|
//#region src/composables/useMergeTagPicker.ts
|
|
619
|
-
function
|
|
619
|
+
function mn() {
|
|
620
620
|
let e = v(!1), t = v([]), n = null;
|
|
621
621
|
function r(r) {
|
|
622
622
|
if (n) {
|
|
@@ -646,7 +646,7 @@ function hn() {
|
|
|
646
646
|
}
|
|
647
647
|
//#endregion
|
|
648
648
|
//#region src/composables/useLogicTagPicker.ts
|
|
649
|
-
function
|
|
649
|
+
function hn() {
|
|
650
650
|
let e = v(!1), t = v([]), n = v([]), r = null;
|
|
651
651
|
function a(i, a) {
|
|
652
652
|
if (r) {
|
|
@@ -677,17 +677,17 @@ function gn() {
|
|
|
677
677
|
}
|
|
678
678
|
//#endregion
|
|
679
679
|
//#region src/composables/useTemplateLint.ts
|
|
680
|
-
function
|
|
680
|
+
function gn(e) {
|
|
681
681
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
let n = v([]), r = v(!1), i = v(!1), a = e(null), o =
|
|
683
|
+
function _n(t) {
|
|
684
|
+
let n = v([]), r = v(!1), i = v(!1), a = e(null), o = gn(t.options), s = null, c = !1;
|
|
685
685
|
o || l();
|
|
686
686
|
async function l() {
|
|
687
687
|
try {
|
|
688
|
-
let e = await import("./src-
|
|
688
|
+
let e = await import("./src-B4UhYbI8.js");
|
|
689
689
|
if (c) return;
|
|
690
|
-
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s =
|
|
690
|
+
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = Be(t.content, u, {
|
|
691
691
|
debounce: t.debounce ?? 500,
|
|
692
692
|
deep: !0
|
|
693
693
|
});
|
|
@@ -722,17 +722,17 @@ function vn(t) {
|
|
|
722
722
|
}
|
|
723
723
|
//#endregion
|
|
724
724
|
//#region src/utils/blockTypeLabels.ts
|
|
725
|
-
function
|
|
725
|
+
function vn(e, t) {
|
|
726
726
|
return t.blocks[e] ?? e;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
if (e.type !== "custom") return
|
|
728
|
+
function yn(e, t, n = []) {
|
|
729
|
+
if (e.type !== "custom") return vn(e.type, t);
|
|
730
730
|
let { customType: r } = e;
|
|
731
731
|
return n.find((e) => e.type === r)?.name ?? r;
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/composables/useKeyboardReorder.ts
|
|
735
|
-
function
|
|
735
|
+
function bn(e, t, n = []) {
|
|
736
736
|
let r = v(null), i = v(""), a = null;
|
|
737
737
|
function o(t) {
|
|
738
738
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -759,7 +759,7 @@ function xn(e, t, n = []) {
|
|
|
759
759
|
let i = o(r);
|
|
760
760
|
if (!i) return "";
|
|
761
761
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
762
|
-
return a ?
|
|
762
|
+
return a ? yn(a, t.t, n) : "";
|
|
763
763
|
}
|
|
764
764
|
function c(t, n) {
|
|
765
765
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -828,13 +828,13 @@ function xn(e, t, n = []) {
|
|
|
828
828
|
}
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region src/composables/useUiTheme.ts
|
|
831
|
-
function
|
|
832
|
-
let t =
|
|
831
|
+
function xn(e) {
|
|
832
|
+
let t = Ve("(prefers-color-scheme: dark)");
|
|
833
833
|
return { resolvedTheme: C(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
834
834
|
}
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/composables/useThemeStyles.ts
|
|
837
|
-
var
|
|
837
|
+
var Sn = {
|
|
838
838
|
bg: "--tpl-bg",
|
|
839
839
|
bgElevated: "--tpl-bg-elevated",
|
|
840
840
|
bgHover: "--tpl-bg-hover",
|
|
@@ -858,10 +858,10 @@ var Cn = {
|
|
|
858
858
|
dangerLight: "--tpl-danger-light",
|
|
859
859
|
canvasBg: "--tpl-canvas-bg"
|
|
860
860
|
};
|
|
861
|
-
function
|
|
861
|
+
function Cn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
862
862
|
return { themeStyles: C(() => {
|
|
863
863
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
864
|
-
if (a) for (let [e, t] of Object.entries(
|
|
864
|
+
if (a) for (let [e, t] of Object.entries(Sn)) {
|
|
865
865
|
let n = a[e];
|
|
866
866
|
n && (r[t] = n);
|
|
867
867
|
}
|
|
@@ -870,27 +870,27 @@ function wn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
870
870
|
}
|
|
871
871
|
//#endregion
|
|
872
872
|
//#region src/utils/logger.ts
|
|
873
|
-
var
|
|
874
|
-
function
|
|
873
|
+
var Q = "[Templatical]";
|
|
874
|
+
function wn() {
|
|
875
875
|
return typeof process < "u" && !0;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var $ = {
|
|
878
878
|
warn(...e) {
|
|
879
|
-
console.warn(
|
|
879
|
+
console.warn(Q, ...e);
|
|
880
880
|
},
|
|
881
881
|
error(...e) {
|
|
882
|
-
console.error(
|
|
882
|
+
console.error(Q, ...e);
|
|
883
883
|
},
|
|
884
884
|
debug(...e) {
|
|
885
|
-
|
|
885
|
+
wn() || console.debug(Q, ...e);
|
|
886
886
|
},
|
|
887
887
|
info(...e) {
|
|
888
|
-
|
|
888
|
+
wn() || console.info(Q, ...e);
|
|
889
889
|
}
|
|
890
890
|
};
|
|
891
891
|
//#endregion
|
|
892
892
|
//#region src/composables/useBlockRegistry.ts
|
|
893
|
-
function
|
|
893
|
+
function Tn() {
|
|
894
894
|
let t = e(/* @__PURE__ */ new Map());
|
|
895
895
|
function n(e, n) {
|
|
896
896
|
t.value.set(e, n), N(t);
|
|
@@ -924,13 +924,13 @@ function En() {
|
|
|
924
924
|
let t = o(e.customType);
|
|
925
925
|
if (!t) return s("Block definition not found");
|
|
926
926
|
try {
|
|
927
|
-
let { Liquid: n } = await import("./liquid.browser-
|
|
927
|
+
let { Liquid: n } = await import("./liquid.browser-CZaQe87t.js");
|
|
928
928
|
return await new n({
|
|
929
929
|
strictVariables: !1,
|
|
930
930
|
strictFilters: !1
|
|
931
931
|
}).parseAndRender(t.template, e.fieldValues);
|
|
932
932
|
} catch (t) {
|
|
933
|
-
return
|
|
933
|
+
return $.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
function l(e) {
|
|
@@ -948,9 +948,9 @@ function En() {
|
|
|
948
948
|
}
|
|
949
949
|
//#endregion
|
|
950
950
|
//#region src/composables/useCustomBlockStylesheets.ts
|
|
951
|
-
function
|
|
951
|
+
function En(e, t) {
|
|
952
952
|
return C(() => {
|
|
953
|
-
let n =
|
|
953
|
+
let n = Dn(e.value.blocks);
|
|
954
954
|
if (n.size === 0) return [];
|
|
955
955
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
956
956
|
for (let e of n) {
|
|
@@ -962,26 +962,26 @@ function Dn(e, t) {
|
|
|
962
962
|
return i;
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function Dn(e) {
|
|
966
966
|
let t = /* @__PURE__ */ new Set();
|
|
967
|
-
return
|
|
967
|
+
return On(e, t), t;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function On(e, t) {
|
|
970
970
|
for (let n of e) {
|
|
971
|
-
if (
|
|
971
|
+
if (Ie(n)) {
|
|
972
972
|
t.add(n.customType);
|
|
973
973
|
continue;
|
|
974
974
|
}
|
|
975
975
|
if (n.type === "section") {
|
|
976
976
|
let e = n.children;
|
|
977
977
|
if (!e) continue;
|
|
978
|
-
for (let n of e)
|
|
978
|
+
for (let n of e) On(n, t);
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
//#endregion
|
|
983
983
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
984
|
-
var
|
|
984
|
+
var kn = [
|
|
985
985
|
{
|
|
986
986
|
type: "section",
|
|
987
987
|
createBlock: ue
|
|
@@ -1028,15 +1028,15 @@ var An = [
|
|
|
1028
1028
|
},
|
|
1029
1029
|
{
|
|
1030
1030
|
type: "html",
|
|
1031
|
-
createBlock:
|
|
1031
|
+
createBlock: Ne
|
|
1032
1032
|
},
|
|
1033
1033
|
{
|
|
1034
1034
|
type: "countdown",
|
|
1035
|
-
createBlock:
|
|
1035
|
+
createBlock: Pe
|
|
1036
1036
|
}
|
|
1037
1037
|
];
|
|
1038
|
-
function
|
|
1039
|
-
for (let n of
|
|
1038
|
+
function An(e, t) {
|
|
1039
|
+
for (let n of kn) {
|
|
1040
1040
|
let r = t[n.type];
|
|
1041
1041
|
r && e.registerBuiltIn(n.type, {
|
|
1042
1042
|
component: r,
|
|
@@ -1046,23 +1046,23 @@ function jn(e, t) {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
//#endregion
|
|
1048
1048
|
//#region src/utils/resolveHtmlBlockPreview.ts
|
|
1049
|
-
function
|
|
1049
|
+
function jn(e) {
|
|
1050
1050
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
1051
1051
|
}
|
|
1052
1052
|
//#endregion
|
|
1053
1053
|
//#region src/utils/collectOffPaletteDefaults.ts
|
|
1054
|
-
function
|
|
1054
|
+
function Mn(e) {
|
|
1055
1055
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
let r = new Set(e.map((e) =>
|
|
1059
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
1057
|
+
function Nn(e, t, n) {
|
|
1058
|
+
let r = new Set(e.map((e) => q(e))), i = [], a = (e, t) => {
|
|
1059
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(q(o)) && i.push(`${t}.${n}: ${o}`) : Mn(o) && a(o, `${t}.${n}`);
|
|
1060
1060
|
}, o = t;
|
|
1061
1061
|
for (let [e, t] of Object.entries(oe)) {
|
|
1062
1062
|
let n = o?.[e];
|
|
1063
1063
|
a({
|
|
1064
1064
|
...t,
|
|
1065
|
-
...
|
|
1065
|
+
...Mn(n) ? n : {}
|
|
1066
1066
|
}, e);
|
|
1067
1067
|
}
|
|
1068
1068
|
return a({
|
|
@@ -1072,8 +1072,8 @@ function Pn(e, t, n) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
//#endregion
|
|
1074
1074
|
//#region src/utils/resolveFieldColors.ts
|
|
1075
|
-
function
|
|
1076
|
-
let n =
|
|
1075
|
+
function Pn(e, t) {
|
|
1076
|
+
let n = Et({ presets: e.presets }, wt), r = n.presets.length === 0;
|
|
1077
1077
|
return {
|
|
1078
1078
|
presets: r ? t.presets : n.presets,
|
|
1079
1079
|
allowCustom: t.allowCustom === !1 ? !1 : e.allowCustom ?? t.allowCustom,
|
|
@@ -1085,9 +1085,9 @@ function Fn(e, t) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
//#endregion
|
|
1087
1087
|
//#region src/utils/collectColorFieldIssues.ts
|
|
1088
|
-
function
|
|
1088
|
+
function Fn(e, t) {
|
|
1089
1089
|
let n = [], r = (r, i) => {
|
|
1090
|
-
let a =
|
|
1090
|
+
let a = Pn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1091
1091
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1092
1092
|
id: s("invalid-presets"),
|
|
1093
1093
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -1098,8 +1098,8 @@ function In(e, t) {
|
|
|
1098
1098
|
id: s("allow-custom-ignored"),
|
|
1099
1099
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
1100
1100
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
1101
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
1102
|
-
e !== "" && !t.has(
|
|
1101
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => q(e)));
|
|
1102
|
+
e !== "" && !t.has(q(e)) && n.push({
|
|
1103
1103
|
id: s("off-palette-default"),
|
|
1104
1104
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
1105
1105
|
});
|
|
@@ -1111,7 +1111,7 @@ function In(e, t) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
//#endregion
|
|
1113
1113
|
//#region src/utils/keyboardShortcuts.ts
|
|
1114
|
-
function
|
|
1114
|
+
function In(e) {
|
|
1115
1115
|
for (let t of e.composedPath()) {
|
|
1116
1116
|
if (!(t instanceof HTMLElement)) continue;
|
|
1117
1117
|
if (t.isContentEditable) return !0;
|
|
@@ -1120,18 +1120,18 @@ function Ln(e) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
return !1;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Ln(e, t) {
|
|
1124
1124
|
let n = e.metaKey || e.ctrlKey;
|
|
1125
1125
|
if (n && e.key.toLowerCase() === "s") {
|
|
1126
1126
|
e.preventDefault(), t.onSave?.();
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
1129
|
if (n && e.key.toLowerCase() === "z") {
|
|
1130
|
-
if (
|
|
1130
|
+
if (In(e)) return;
|
|
1131
1131
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
1132
1132
|
return;
|
|
1133
1133
|
}
|
|
1134
|
-
if (t.isPicking?.() && !
|
|
1134
|
+
if (t.isPicking?.() && !In(e)) {
|
|
1135
1135
|
if (e.key === "Escape") {
|
|
1136
1136
|
e.preventDefault(), t.onCancelPick?.();
|
|
1137
1137
|
return;
|
|
@@ -1149,11 +1149,11 @@ function Rn(e, t) {
|
|
|
1149
1149
|
t.selectBlock(null);
|
|
1150
1150
|
return;
|
|
1151
1151
|
}
|
|
1152
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1152
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !In(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1153
1153
|
}
|
|
1154
1154
|
//#endregion
|
|
1155
1155
|
//#region src/utils/mergeTagLabelSegments.ts
|
|
1156
|
-
function
|
|
1156
|
+
function Rn(e, t, n, r = !1) {
|
|
1157
1157
|
if (!e) return [];
|
|
1158
1158
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
1159
1159
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -1171,7 +1171,7 @@ function zn(e, t, n, r = !1) {
|
|
|
1171
1171
|
type: "text",
|
|
1172
1172
|
value: e
|
|
1173
1173
|
});
|
|
1174
|
-
} else
|
|
1174
|
+
} else Me(i, n) ? a.push({
|
|
1175
1175
|
type: "tag",
|
|
1176
1176
|
value: Ce(i, n)
|
|
1177
1177
|
}) : a.push({
|
|
@@ -1187,14 +1187,14 @@ function zn(e, t, n, r = !1) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
//#endregion
|
|
1189
1189
|
//#region src/components/MergeTagPreviewText.vue
|
|
1190
|
-
var
|
|
1190
|
+
var zn = R({
|
|
1191
1191
|
name: "MergeTagPreviewText",
|
|
1192
1192
|
props: { text: {
|
|
1193
1193
|
type: String,
|
|
1194
1194
|
required: !0
|
|
1195
1195
|
} },
|
|
1196
1196
|
setup(e) {
|
|
1197
|
-
let t = p(
|
|
1197
|
+
let t = p(W, []), r = p(ft, Oe.liquid), i = p(rt, null), a = C(() => Rn(e.text, t, r, i?.value ?? !1));
|
|
1198
1198
|
return () => a.value.map((e, t) => e.type === "tag" ? n("span", {
|
|
1199
1199
|
key: t,
|
|
1200
1200
|
class: "tpl-merge-tag-label"
|
|
@@ -1226,7 +1226,7 @@ var $ = R({
|
|
|
1226
1226
|
style: F(n.value),
|
|
1227
1227
|
class: "tpl:cursor-default",
|
|
1228
1228
|
onClick: r[0] ||= O(() => {}, ["prevent"])
|
|
1229
|
-
}, [z(
|
|
1229
|
+
}, [z(zn, { text: e.block.text }, null, 8, ["text"])], 12, Vn)]));
|
|
1230
1230
|
}
|
|
1231
1231
|
}), Un = ["innerHTML"], Wn = [
|
|
1232
1232
|
"src",
|
|
@@ -1255,7 +1255,7 @@ var $ = R({
|
|
|
1255
1255
|
height: n.value,
|
|
1256
1256
|
class: "tpl:inline-block",
|
|
1257
1257
|
alt: ""
|
|
1258
|
-
}, null, 8, Wn)) : (l(), k(E(
|
|
1258
|
+
}, null, 8, Wn)) : (l(), k(E(jt), {
|
|
1259
1259
|
key: 2,
|
|
1260
1260
|
size: n.value,
|
|
1261
1261
|
"stroke-width": 1.5
|
|
@@ -1265,7 +1265,7 @@ var $ = R({
|
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region src/composables/useEditorRoot.ts
|
|
1267
1267
|
function Kn() {
|
|
1268
|
-
return p(
|
|
1268
|
+
return p(lt, document) ?? document;
|
|
1269
1269
|
}
|
|
1270
1270
|
//#endregion
|
|
1271
1271
|
//#region src/composables/useFocusTrap.ts
|
|
@@ -1288,7 +1288,7 @@ function Jn(e, t) {
|
|
|
1288
1288
|
a = null;
|
|
1289
1289
|
let t = s();
|
|
1290
1290
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1291
|
-
}), i =
|
|
1291
|
+
}), i = U(e, "keydown", c);
|
|
1292
1292
|
}
|
|
1293
1293
|
function u(e = {}) {
|
|
1294
1294
|
let t = e.restoreFocus !== !1;
|
|
@@ -1304,7 +1304,7 @@ function Jn(e, t) {
|
|
|
1304
1304
|
//#endregion
|
|
1305
1305
|
//#region src/composables/useEmoji.ts
|
|
1306
1306
|
function Yn() {
|
|
1307
|
-
let [t, n] =
|
|
1307
|
+
let [t, n] = ze(!1), r = e([]), i = !1;
|
|
1308
1308
|
o(() => {
|
|
1309
1309
|
i = !0;
|
|
1310
1310
|
}), B(t, async (e) => {
|
|
@@ -1424,7 +1424,7 @@ function er(e) {
|
|
|
1424
1424
|
for (let i of e) {
|
|
1425
1425
|
let e = i.toLowerCase(), a = Zn.find((t) => t.value.toLowerCase() === e);
|
|
1426
1426
|
if (!a) {
|
|
1427
|
-
r.has(e) || (r.add(e),
|
|
1427
|
+
r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Zn.map((e) => e.value).join(", ")}.`));
|
|
1428
1428
|
continue;
|
|
1429
1429
|
}
|
|
1430
1430
|
n.has(a.value) || (n.add(a.value), t.push(a));
|
|
@@ -1450,7 +1450,7 @@ function tr(e) {
|
|
|
1450
1450
|
return l.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1451
1451
|
}
|
|
1452
1452
|
let d = e?.defaultFont ?? $n.split(",")[0].trim();
|
|
1453
|
-
u(d) ||
|
|
1453
|
+
u(d) || $.warn(`config.fonts: new templates seed "${d}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
1454
1454
|
function f(e) {
|
|
1455
1455
|
return Zn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1456
1456
|
}
|
|
@@ -1484,7 +1484,7 @@ function tr(e) {
|
|
|
1484
1484
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1485
1485
|
});
|
|
1486
1486
|
} catch (t) {
|
|
1487
|
-
|
|
1487
|
+
$.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1488
1488
|
}
|
|
1489
1489
|
});
|
|
1490
1490
|
await Promise.allSettled(e), !_ && (r.value = !0);
|
|
@@ -1512,7 +1512,7 @@ function tr(e) {
|
|
|
1512
1512
|
//#endregion
|
|
1513
1513
|
//#region src/composables/useLogicTag.ts
|
|
1514
1514
|
function nr() {
|
|
1515
|
-
let e = p(
|
|
1515
|
+
let e = p(Ke, []), t = p(nt, []), n = p(ft, Oe.liquid), r = p(We, null), i = p(bt, null), a = v(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
|
|
1516
1516
|
async function c() {
|
|
1517
1517
|
if (r) {
|
|
1518
1518
|
a.value = !0;
|
|
@@ -1544,7 +1544,7 @@ function nr() {
|
|
|
1544
1544
|
//#endregion
|
|
1545
1545
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1546
1546
|
function rr(e, t, n) {
|
|
1547
|
-
return
|
|
1547
|
+
return Me(e, n) ? {
|
|
1548
1548
|
type: "logicMergeTagNode",
|
|
1549
1549
|
attrs: {
|
|
1550
1550
|
value: e,
|
|
@@ -1588,7 +1588,7 @@ function sr(e) {
|
|
|
1588
1588
|
...this.parent?.(),
|
|
1589
1589
|
color: {
|
|
1590
1590
|
default: null,
|
|
1591
|
-
parseHTML: (e) => or(
|
|
1591
|
+
parseHTML: (e) => or(Tt(e.style.color)),
|
|
1592
1592
|
renderHTML: (e) => {
|
|
1593
1593
|
let t = or(e.color);
|
|
1594
1594
|
return t ? { style: `color: ${t}` } : {};
|
|
@@ -1658,7 +1658,7 @@ function cr(e) {
|
|
|
1658
1658
|
//#endregion
|
|
1659
1659
|
//#region src/composables/useRichTextEditor.ts
|
|
1660
1660
|
function lr(t) {
|
|
1661
|
-
let n = p(
|
|
1661
|
+
let n = p(G, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: c, autocomplete: l } = J(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = nr(), m = p(Ct, null), h = (s(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = ve(c), _ = e(null), { showLinkDialog: y, linkUrl: b, linkColor: x, linkDialogRef: S, openLinkDialog: C, insertLink: w, removeLink: T, closeLinkDialog: E, handleLinkKeydown: O } = cr(_), { start: k, stop: A } = Le(() => _.value?.commands.focus("end"), 0, { immediate: !1 }), j = e(null), M = v(!0), N = v(null), P = !1;
|
|
1662
1662
|
async function F() {
|
|
1663
1663
|
N.value = null, M.value = !0;
|
|
1664
1664
|
try {
|
|
@@ -1688,7 +1688,7 @@ function lr(t) {
|
|
|
1688
1688
|
_.value = s, M.value = !1, k();
|
|
1689
1689
|
} catch (e) {
|
|
1690
1690
|
if (P) return;
|
|
1691
|
-
|
|
1691
|
+
$.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), N.value = e instanceof Error ? e.message : "Failed to load editor", M.value = !1;
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
1694
|
function ee() {
|
|
@@ -1706,7 +1706,7 @@ function lr(t) {
|
|
|
1706
1706
|
let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
|
|
1707
1707
|
r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
|
|
1708
1708
|
}
|
|
1709
|
-
|
|
1709
|
+
U(document, "mousedown", L), D(() => {
|
|
1710
1710
|
P = !0, I(), A(), _.value?.destroy();
|
|
1711
1711
|
});
|
|
1712
1712
|
async function R() {
|
|
@@ -1749,7 +1749,7 @@ function lr(t) {
|
|
|
1749
1749
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1750
1750
|
var ur = "(max-width: 767px)";
|
|
1751
1751
|
function dr(e) {
|
|
1752
|
-
let t =
|
|
1752
|
+
let t = Ve(ur);
|
|
1753
1753
|
return {
|
|
1754
1754
|
isSmallScreen: t,
|
|
1755
1755
|
showNotice: C(() => (A(e) ?? !0) && t.value)
|
|
@@ -1778,7 +1778,7 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1778
1778
|
},
|
|
1779
1779
|
emits: ["fetchData"],
|
|
1780
1780
|
setup(e, { emit: n }) {
|
|
1781
|
-
let r = e, i = n, { t: a } =
|
|
1781
|
+
let r = e, i = n, { t: a } = K(), o = p(gt, null), s = v(""), c = v(!1), u = C(() => o?.getDefinition(r.block.customType)), d = C(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = on({
|
|
1782
1782
|
definition: u,
|
|
1783
1783
|
block: C(() => r.block),
|
|
1784
1784
|
onUpdate: (e, t) => {
|
|
@@ -1787,7 +1787,7 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1787
1787
|
dataSourceFetched: t
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
|
-
}), _ = p(
|
|
1790
|
+
}), _ = p(W, []), y = p(rt, null), b = C(() => {
|
|
1791
1791
|
if (!y?.value) return r.block;
|
|
1792
1792
|
let e = {};
|
|
1793
1793
|
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? xe(n, _) : n;
|
|
@@ -1807,17 +1807,17 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
|
-
let D =
|
|
1810
|
+
let D = Re(x, 150);
|
|
1811
1811
|
return t(() => {
|
|
1812
1812
|
x();
|
|
1813
1813
|
}), B(() => r.block.fieldValues, () => {
|
|
1814
1814
|
D();
|
|
1815
1815
|
}, { deep: !0 }), B(() => y?.value, () => {
|
|
1816
1816
|
D();
|
|
1817
|
-
}), (e, t) => (l(), w("div", fr, [d.value ? c.value ? (l(), w("div", hr, [z(E(
|
|
1817
|
+
}), (e, t) => (l(), w("div", fr, [d.value ? c.value ? (l(), w("div", hr, [z(E(Ht), {
|
|
1818
1818
|
size: 24,
|
|
1819
1819
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1820
|
-
}), M("span", gr, S(E(a).customBlocks.renderError), 1)])) : (l(), w("div", _r, [M("div", { innerHTML: s.value }, null, 8, vr), E(g) && E(h) ? (l(), w("div", yr, [E(f) ? (l(), k(
|
|
1820
|
+
}), M("span", gr, S(E(a).customBlocks.renderError), 1)])) : (l(), w("div", _r, [M("div", { innerHTML: s.value }, null, 8, vr), E(g) && E(h) ? (l(), w("div", yr, [E(f) ? (l(), k(Kt, {
|
|
1821
1821
|
key: 1,
|
|
1822
1822
|
class: "tpl:w-48"
|
|
1823
1823
|
})) : (l(), w("button", {
|
|
@@ -1829,7 +1829,7 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1829
1829
|
key: 0,
|
|
1830
1830
|
icon: u.value.icon,
|
|
1831
1831
|
size: 16
|
|
1832
|
-
}, null, 8, ["icon"])) : T("", !0), L(" " + S(u.value?.dataSource?.label || E(a).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (l(), w("div", pr, [z(E(
|
|
1832
|
+
}, null, 8, ["icon"])) : T("", !0), L(" " + S(u.value?.dataSource?.label || E(a).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (l(), w("div", pr, [z(E(At), {
|
|
1833
1833
|
size: 24,
|
|
1834
1834
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1835
1835
|
}), M("span", mr, S(E(a).customBlocks.definitionNotFound), 1)]))]));
|
|
@@ -1867,7 +1867,7 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1867
1867
|
viewport: {}
|
|
1868
1868
|
},
|
|
1869
1869
|
setup(e) {
|
|
1870
|
-
let t = e, { t: n } =
|
|
1870
|
+
let t = e, { t: n } = K(), r = p(St, !1), i = C(() => t.block.content.trim().length > 0), a = C(() => r && i.value), o = p(W, []), s = p(rt, null), c = C(() => s?.value ? xe(t.block.content, o) : t.block.content), u = v(null), d = v(60), f = null;
|
|
1871
1871
|
function m() {
|
|
1872
1872
|
let e = u.value?.contentDocument;
|
|
1873
1873
|
e && (d.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1891,14 +1891,14 @@ var fr = { class: "tpl:w-full" }, pr = {
|
|
|
1891
1891
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1892
1892
|
style: F({ height: `${d.value}px` }),
|
|
1893
1893
|
onLoad: h
|
|
1894
|
-
}, null, 44, wr)) : (l(), w("div", Tr, [z(E(
|
|
1894
|
+
}, null, 44, wr)) : (l(), w("div", Tr, [z(E(kt), {
|
|
1895
1895
|
size: 24,
|
|
1896
1896
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1897
1897
|
}), i.value ? (l(), w("span", Er, S(E(n).html.preview), 1)) : (l(), w("span", Dr, S(E(n).html.empty), 1))]))]));
|
|
1898
1898
|
}
|
|
1899
1899
|
}), kr = "image/";
|
|
1900
1900
|
function Ar(e) {
|
|
1901
|
-
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || A(r), { isOverDropZone: a } =
|
|
1901
|
+
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || A(r), { isOverDropZone: a } = Ue(t, {
|
|
1902
1902
|
preventDefaultForUnhandled: !0,
|
|
1903
1903
|
onDrop: (e) => {
|
|
1904
1904
|
if (!i()) return;
|
|
@@ -1928,7 +1928,7 @@ var jr = {
|
|
|
1928
1928
|
},
|
|
1929
1929
|
emits: ["update"],
|
|
1930
1930
|
setup(e, { emit: t }) {
|
|
1931
|
-
let n = e, r = t, { t: i } =
|
|
1931
|
+
let n = e, r = t, { t: i } = K(), { syntax: a } = J(), o = p(dt, null), s = C(() => !!o), c = Jt();
|
|
1932
1932
|
async function u() {
|
|
1933
1933
|
let e = await o?.({ accept: ["images"] });
|
|
1934
1934
|
if (c.alive && e) {
|
|
@@ -1968,18 +1968,18 @@ var jr = {
|
|
|
1968
1968
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1969
1969
|
marginRight: e === "center" ? "auto" : void 0
|
|
1970
1970
|
};
|
|
1971
|
-
}), b = C(() =>
|
|
1971
|
+
}), b = C(() => H(n.block.src, a)), x = Z(() => b.value ? void 0 : n.block.src), D = Z(() => b.value ? n.block.placeholderUrl : void 0);
|
|
1972
1972
|
return (t, n) => (l(), w("div", {
|
|
1973
1973
|
ref_key: "dropZoneRef",
|
|
1974
1974
|
ref: d,
|
|
1975
1975
|
"data-testid": "image-drop-zone",
|
|
1976
1976
|
class: "tpl:relative tpl:w-full",
|
|
1977
1977
|
style: F(_.value)
|
|
1978
|
-
}, [m.value && (E(g) || f.value) ? (l(), w("div", jr, [f.value ? (l(), w(I, { key: 0 }, [z(E(
|
|
1978
|
+
}, [m.value && (E(g) || f.value) ? (l(), w("div", jr, [f.value ? (l(), w(I, { key: 0 }, [z(E(Rt), {
|
|
1979
1979
|
class: "tpl-spinner",
|
|
1980
1980
|
size: 20,
|
|
1981
1981
|
"stroke-width": 2
|
|
1982
|
-
}), L(" " + S(E(i).image.uploading), 1)], 64)) : (l(), w(I, { key: 1 }, [z(E(
|
|
1982
|
+
}), L(" " + S(E(i).image.uploading), 1)], 64)) : (l(), w(I, { key: 1 }, [z(E(Bt), {
|
|
1983
1983
|
size: 20,
|
|
1984
1984
|
"stroke-width": 1.5
|
|
1985
1985
|
}), L(" " + S(E(i).image.dropToUpload), 1)], 64))])) : T("", !0), e.block.src && b.value && e.block.placeholderUrl ? (l(), w(I, { key: 1 }, [e.block.linkUrl ? (l(), w("a", {
|
|
@@ -2004,12 +2004,12 @@ var jr = {
|
|
|
2004
2004
|
key: 2,
|
|
2005
2005
|
class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2006
2006
|
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
|
|
2007
|
-
}, [z(E(
|
|
2007
|
+
}, [z(E(It), {
|
|
2008
2008
|
size: 32,
|
|
2009
2009
|
"stroke-width": 1.5,
|
|
2010
2010
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2011
2011
|
style: { opacity: "0.5" }
|
|
2012
|
-
}), M("span", Fr, [z(
|
|
2012
|
+
}), M("span", Fr, [z(zn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (l(), w(I, { key: 3 }, [e.block.linkUrl ? (l(), w("a", {
|
|
2013
2013
|
key: 0,
|
|
2014
2014
|
href: e.block.linkUrl,
|
|
2015
2015
|
target: "_blank",
|
|
@@ -2032,7 +2032,7 @@ var jr = {
|
|
|
2032
2032
|
"aria-label": E(i).image.browseMedia,
|
|
2033
2033
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
2034
2034
|
onClick: O(u, ["stop"])
|
|
2035
|
-
}, [z(E(
|
|
2035
|
+
}, [z(E(It), {
|
|
2036
2036
|
size: 14,
|
|
2037
2037
|
"stroke-width": 1.5
|
|
2038
2038
|
}), L(" " + S(E(i).image.browseMedia), 1)], 8, Br)) : (l(), w("span", Vr, S(E(i).image.clickToAdd), 1))]))], 4));
|
|
@@ -2047,7 +2047,7 @@ var jr = {
|
|
|
2047
2047
|
viewport: {}
|
|
2048
2048
|
},
|
|
2049
2049
|
setup(e) {
|
|
2050
|
-
let t = e, { t: n } =
|
|
2050
|
+
let t = e, { t: n } = K(), r = C(() => ({
|
|
2051
2051
|
display: "flex",
|
|
2052
2052
|
flexWrap: "wrap",
|
|
2053
2053
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -2071,13 +2071,13 @@ var jr = {
|
|
|
2071
2071
|
textDecoration: t.underline ? "underline" : "none"
|
|
2072
2072
|
}),
|
|
2073
2073
|
onClick: o[0] ||= O(() => {}, ["prevent"])
|
|
2074
|
-
}, [z(
|
|
2074
|
+
}, [z(zn, { text: t.text || "..." }, null, 8, ["text"])], 12, Wr), n < e.block.items.length - 1 ? (l(), w("span", {
|
|
2075
2075
|
key: 0,
|
|
2076
2076
|
style: F({
|
|
2077
2077
|
color: e.block.separatorColor,
|
|
2078
2078
|
padding: `0 ${e.block.spacing}px`
|
|
2079
2079
|
})
|
|
2080
|
-
}, S(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (l(), w("div", Gr, [z(E(
|
|
2080
|
+
}, S(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (l(), w("div", Gr, [z(E(Nt), { size: 16 }), M("span", null, S(E(n).menu.addLinks), 1)]))]));
|
|
2081
2081
|
}
|
|
2082
2082
|
}), qr = /* @__PURE__ */ new Set([
|
|
2083
2083
|
"http",
|
|
@@ -2151,7 +2151,7 @@ function Qr(e) {
|
|
|
2151
2151
|
//#endregion
|
|
2152
2152
|
//#region src/composables/useEditableTextBlock.ts
|
|
2153
2153
|
function $r(e) {
|
|
2154
|
-
let t = p(
|
|
2154
|
+
let t = p(W, []), n = p(rt, null), { syntax: r } = J(), i = C(() => n?.value ? Se(e(), t) : Ae(e(), t)), a = C(() => Qr(be(i.value, r))), o = v(!1), s = v(null), { top: c, left: l } = He(s), { toLocal: u } = Dt(), d = C(() => u({
|
|
2155
2155
|
top: c.value - 8,
|
|
2156
2156
|
left: l.value
|
|
2157
2157
|
}));
|
|
@@ -2179,7 +2179,7 @@ var ei = ["innerHTML"], ti = /* @__PURE__ */ R({
|
|
|
2179
2179
|
viewport: {}
|
|
2180
2180
|
},
|
|
2181
2181
|
setup(e) {
|
|
2182
|
-
let t = e, n = b(() => import("./ParagraphEditor-
|
|
2182
|
+
let t = e, n = b(() => import("./ParagraphEditor-DKz4vTWB.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = $r(() => t.block.content);
|
|
2183
2183
|
return (t, u) => (l(), w("div", {
|
|
2184
2184
|
ref_key: "blockRef",
|
|
2185
2185
|
ref: i,
|
|
@@ -2245,7 +2245,7 @@ var oi = [
|
|
|
2245
2245
|
}, hi = ["aria-label", "title"], gi = {
|
|
2246
2246
|
key: 3,
|
|
2247
2247
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
2248
|
-
}, _i = ["aria-label"], vi = /*#__PURE__*/
|
|
2248
|
+
}, _i = ["aria-label"], vi = /*#__PURE__*/ qt(/* @__PURE__ */ R({
|
|
2249
2249
|
__name: "BlockWrapper",
|
|
2250
2250
|
props: {
|
|
2251
2251
|
block: {},
|
|
@@ -2257,7 +2257,7 @@ var oi = [
|
|
|
2257
2257
|
},
|
|
2258
2258
|
emits: ["select"],
|
|
2259
2259
|
setup(e, { emit: t }) {
|
|
2260
|
-
let n = b(() => import("./BlockIssueBadge-
|
|
2260
|
+
let n = b(() => import("./BlockIssueBadge-Bd2EuT1C.js")), i = e, a = t, { t: o, format: s } = K(), c = p(xt, null), u = v(null), f = C(() => c?.liftedBlockId.value === i.block.id), m = C(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
|
|
2261
2261
|
async function h() {
|
|
2262
2262
|
await d(), u.value?.focus();
|
|
2263
2263
|
}
|
|
@@ -2283,7 +2283,7 @@ var oi = [
|
|
|
2283
2283
|
let _ = C(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), y = C(() => i.previewMode === !0 && _.value), x = C(() => i.viewport ? {
|
|
2284
2284
|
desktop: o.viewport.desktop,
|
|
2285
2285
|
mobile: o.viewport.mobile
|
|
2286
|
-
}[i.viewport] ?? i.viewport : ""), D = C(() => !!i.block.displayCondition), k = p(
|
|
2286
|
+
}[i.viewport] ?? i.viewport : ""), D = C(() => !!i.block.displayCondition), k = p(ut, null), A = p(st, null), N = p(vt, {}), P = C(() => N.savedBlocks?.isPicking.value === !0), ee = C(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), I = C(() => i.isSelected && !P.value), R = C(() => N.comments?.getBlockCount(i.block.id) ?? 0), B = C(() => {
|
|
2287
2287
|
let e = ii(i.block), t = {
|
|
2288
2288
|
padding: e.padding,
|
|
2289
2289
|
backgroundColor: e.backgroundColor
|
|
@@ -2334,7 +2334,7 @@ var oi = [
|
|
|
2334
2334
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2335
2335
|
title: E(o).blockActions.drag,
|
|
2336
2336
|
onKeydown: g
|
|
2337
|
-
}, [z(E(
|
|
2337
|
+
}, [z(E(Lt), {
|
|
2338
2338
|
size: 14,
|
|
2339
2339
|
"stroke-width": 1.5
|
|
2340
2340
|
})], 40, ci),
|
|
@@ -2343,7 +2343,7 @@ var oi = [
|
|
|
2343
2343
|
"aria-label": E(o).blockActions.duplicate,
|
|
2344
2344
|
title: E(o).blockActions.duplicate,
|
|
2345
2345
|
onClick: O(ie, ["stop"])
|
|
2346
|
-
}, [z(E(
|
|
2346
|
+
}, [z(E(Mt), {
|
|
2347
2347
|
size: 14,
|
|
2348
2348
|
"stroke-width": 1.5
|
|
2349
2349
|
})], 8, li),
|
|
@@ -2353,7 +2353,7 @@ var oi = [
|
|
|
2353
2353
|
"aria-label": E(o).blockActions.saveAsBlock,
|
|
2354
2354
|
title: E(o).blockActions.saveAsBlock,
|
|
2355
2355
|
onClick: O(ae, ["stop"])
|
|
2356
|
-
}, [z(E(
|
|
2356
|
+
}, [z(E(Gt), {
|
|
2357
2357
|
size: 14,
|
|
2358
2358
|
"stroke-width": 1.5
|
|
2359
2359
|
})], 8, ui)) : T("", !0),
|
|
@@ -2362,12 +2362,12 @@ var oi = [
|
|
|
2362
2362
|
"aria-label": E(o).blockActions.delete,
|
|
2363
2363
|
title: E(o).blockActions.delete,
|
|
2364
2364
|
onClick: O(re, ["stop"])
|
|
2365
|
-
}, [z(E(
|
|
2365
|
+
}, [z(E(Ft), {
|
|
2366
2366
|
size: 14,
|
|
2367
2367
|
"stroke-width": 1.5
|
|
2368
2368
|
})], 8, di)
|
|
2369
2369
|
], 8, si)) : T("", !0),
|
|
2370
|
-
_.value ? (l(), w("div", fi, [M("span", pi, [z(E(
|
|
2370
|
+
_.value ? (l(), w("div", fi, [M("span", pi, [z(E(Wt), {
|
|
2371
2371
|
size: 12,
|
|
2372
2372
|
"stroke-width": 1.5
|
|
2373
2373
|
}), L(" " + S(E(s)(E(o).blockActions.hiddenOnViewport, { viewport: x.value })), 1)])])) : T("", !0),
|
|
@@ -2376,7 +2376,7 @@ var oi = [
|
|
|
2376
2376
|
"aria-label": E(o).blockActions.conditionToggle,
|
|
2377
2377
|
title: e.block.displayCondition?.label,
|
|
2378
2378
|
onClick: O(oe, ["stop"])
|
|
2379
|
-
}, [z(E(
|
|
2379
|
+
}, [z(E(Ut), {
|
|
2380
2380
|
size: 12,
|
|
2381
2381
|
"stroke-width": 2
|
|
2382
2382
|
})], 8, hi)])) : T("", !0),
|
|
@@ -2384,7 +2384,7 @@ var oi = [
|
|
|
2384
2384
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 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:duration-150 tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
2385
2385
|
"aria-label": E(s)(E(o).blockActions.comments, { count: String(R.value) }),
|
|
2386
2386
|
onClick: i[0] ||= O((t) => E(N).comments?.openForBlock(e.block.id), ["stop"])
|
|
2387
|
-
}, [z(E(
|
|
2387
|
+
}, [z(E(Vt), {
|
|
2388
2388
|
size: 12,
|
|
2389
2389
|
"stroke-width": 2.5
|
|
2390
2390
|
}), L(" " + S(R.value), 1)], 8, _i)])) : T("", !0),
|
|
@@ -2418,7 +2418,7 @@ var bi = /* @__PURE__ */ R({
|
|
|
2418
2418
|
viewport: {}
|
|
2419
2419
|
},
|
|
2420
2420
|
setup(e) {
|
|
2421
|
-
let t = e, n = b(() => import("./TitleEditor-
|
|
2421
|
+
let t = e, n = b(() => import("./TitleEditor-C6_bQxYR.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: u } = $r(() => t.block.content), d = C(() => {
|
|
2422
2422
|
let e = {
|
|
2423
2423
|
fontSize: `${de[t.block.level]}px`,
|
|
2424
2424
|
textAlign: t.block.textAlign
|
|
@@ -2473,7 +2473,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2473
2473
|
button: Hn,
|
|
2474
2474
|
divider: Sr,
|
|
2475
2475
|
custom: br
|
|
2476
|
-
}, n = e, { t: r } =
|
|
2476
|
+
}, n = e, { t: r } = K(), i = Ye(G, "SectionBlock"), o = p(st, null), s = p(gt, null), u = p(vt, {});
|
|
2477
2477
|
function d(e) {
|
|
2478
2478
|
let t = u.savedBlocks;
|
|
2479
2479
|
if (t?.isPicking.value) {
|
|
@@ -2662,7 +2662,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2662
2662
|
viewport: {}
|
|
2663
2663
|
},
|
|
2664
2664
|
setup(e) {
|
|
2665
|
-
let t = e, { t: n } =
|
|
2665
|
+
let t = e, { t: n } = K(), r = C(() => ({
|
|
2666
2666
|
display: "flex",
|
|
2667
2667
|
flexWrap: "wrap",
|
|
2668
2668
|
gap: `${t.block.spacing}px`,
|
|
@@ -2684,7 +2684,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2684
2684
|
"platform",
|
|
2685
2685
|
"icon-style",
|
|
2686
2686
|
"icon-size"
|
|
2687
|
-
])], 8, Mi))), 128))], 4)) : (l(), w("div", Ni, [z(E(
|
|
2687
|
+
])], 8, Mi))), 128))], 4)) : (l(), w("div", Ni, [z(E(Ot), { size: 16 }), M("span", null, S(E(n).social.addIcons), 1)]))]));
|
|
2688
2688
|
}
|
|
2689
2689
|
}), Fi = { class: "tpl:w-full" }, Ii = {
|
|
2690
2690
|
key: 0,
|
|
@@ -2700,7 +2700,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2700
2700
|
viewport: {}
|
|
2701
2701
|
},
|
|
2702
2702
|
setup(e) {
|
|
2703
|
-
let t = e, n =
|
|
2703
|
+
let t = e, n = Ye(G, "SpacerBlock"), r = C(() => ({
|
|
2704
2704
|
height: `${t.block.height}px`,
|
|
2705
2705
|
minHeight: `${t.block.height}px`,
|
|
2706
2706
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
@@ -2721,7 +2721,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2721
2721
|
], Hi = {
|
|
2722
2722
|
key: 1,
|
|
2723
2723
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2724
|
-
}, Ui = /*#__PURE__*/
|
|
2724
|
+
}, Ui = /*#__PURE__*/ qt(/* @__PURE__ */ R({
|
|
2725
2725
|
__name: "TableBlock",
|
|
2726
2726
|
props: {
|
|
2727
2727
|
block: {},
|
|
@@ -2735,7 +2735,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2735
2735
|
updated(e, t) {
|
|
2736
2736
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
2737
2737
|
}
|
|
2738
|
-
}, n = e, { t: r } =
|
|
2738
|
+
}, n = e, { t: r } = K(), i = Ye(G, "TableBlock"), o = C(() => n.block.rows.length > 0), s = C(() => {
|
|
2739
2739
|
let e = {
|
|
2740
2740
|
width: "100%",
|
|
2741
2741
|
borderCollapse: "collapse",
|
|
@@ -2788,7 +2788,7 @@ var Si = { class: "tpl:w-full" }, Ci = {
|
|
|
2788
2788
|
onBlur: (t) => h(e.id, i.id, t),
|
|
2789
2789
|
onKeydown: n[1] ||= x(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2790
2790
|
onClick: O(m, ["stop"])
|
|
2791
|
-
}, null, 44, Vi)), [[t, i.content]])), 128))]))), 128))])], 4)) : (l(), w("div", Hi, [z(E(
|
|
2791
|
+
}, null, 44, Vi)), [[t, i.content]])), 128))]))), 128))])], 4)) : (l(), w("div", Hi, [z(E(Pt), { size: 16 }), M("span", null, S(E(r).table.empty), 1)]))]));
|
|
2792
2792
|
}
|
|
2793
2793
|
}), [["__scopeId", "data-v-963ac422"]]), Wi = /* @__PURE__ */ R({
|
|
2794
2794
|
__name: "VideoPlayButton",
|
|
@@ -2858,7 +2858,7 @@ var qi = ["src", "alt"], Ji = {
|
|
|
2858
2858
|
viewport: {}
|
|
2859
2859
|
},
|
|
2860
2860
|
setup(e) {
|
|
2861
|
-
let t = e, { t: n } =
|
|
2861
|
+
let t = e, { t: n } = K(), { syntax: r } = J(), i = C(() => H(t.block.url, r) || H(t.block.thumbnailUrl, r)), a = Z(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Z(() => i.value ? t.block.placeholderUrl : void 0), s = C(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Ki(t.block.url)), c = C(() => ({ textAlign: t.block.align })), u = C(() => {
|
|
2862
2862
|
let e = t.block.align;
|
|
2863
2863
|
return {
|
|
2864
2864
|
maxWidth: "100%",
|
|
@@ -2867,7 +2867,7 @@ var qi = ["src", "alt"], Ji = {
|
|
|
2867
2867
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2868
2868
|
marginRight: e === "center" ? "auto" : void 0
|
|
2869
2869
|
};
|
|
2870
|
-
}), d = C(() =>
|
|
2870
|
+
}), d = C(() => H(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2871
2871
|
return (t, r) => (l(), w("div", {
|
|
2872
2872
|
class: "tpl:w-full",
|
|
2873
2873
|
style: F(c.value)
|
|
@@ -2883,12 +2883,12 @@ var qi = ["src", "alt"], Ji = {
|
|
|
2883
2883
|
key: 1,
|
|
2884
2884
|
class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2885
2885
|
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
2886
|
-
}, [z(E(
|
|
2886
|
+
}, [z(E(zt), {
|
|
2887
2887
|
size: 36,
|
|
2888
2888
|
"stroke-width": 1.5,
|
|
2889
2889
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2890
2890
|
style: { opacity: "0.5" }
|
|
2891
|
-
}), M("span", Ji, [z(
|
|
2891
|
+
}), M("span", Ji, [z(zn, { text: d.value }, null, 8, ["text"])])], 4)) : s.value ? (l(), w(I, { key: 2 }, [e.block.url ? (l(), w("a", {
|
|
2892
2892
|
key: 0,
|
|
2893
2893
|
href: e.block.url,
|
|
2894
2894
|
target: "_blank",
|
|
@@ -2908,7 +2908,7 @@ var qi = ["src", "alt"], Ji = {
|
|
|
2908
2908
|
class: "tpl:w-full tpl:border-0",
|
|
2909
2909
|
src: s.value,
|
|
2910
2910
|
alt: e.block.alt
|
|
2911
|
-
}, null, 8, Zi), z(Wi)], 4))], 64)) : (l(), w("div", Qi, [z(E(
|
|
2911
|
+
}, null, 8, Zi), z(Wi)], 4))], 64)) : (l(), w("div", Qi, [z(E(zt), {
|
|
2912
2912
|
size: 40,
|
|
2913
2913
|
"stroke-width": 1.5,
|
|
2914
2914
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
@@ -2927,29 +2927,29 @@ var qi = ["src", "alt"], Ji = {
|
|
|
2927
2927
|
table: Ui,
|
|
2928
2928
|
spacer: Li,
|
|
2929
2929
|
html: Or,
|
|
2930
|
-
countdown: b(() => import("./CountdownBlock-
|
|
2930
|
+
countdown: b(() => import("./CountdownBlock-cEcXSK91.js"))
|
|
2931
2931
|
};
|
|
2932
2932
|
function ta(e) {
|
|
2933
|
-
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: s, format: c } =
|
|
2933
|
+
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: s, format: c } = K(r);
|
|
2934
2934
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
2935
|
-
let { resolvedTheme: l } =
|
|
2935
|
+
let { resolvedTheme: l } = xn(C(() => t.state.uiTheme)), d = v(n.theme ?? {}), { themeStyles: f } = Cn({
|
|
2936
2936
|
themeOverrides: d,
|
|
2937
2937
|
resolvedTheme: l,
|
|
2938
2938
|
extraStyles: e.themeExtraStyles
|
|
2939
|
-
}), p =
|
|
2939
|
+
}), p = en({
|
|
2940
2940
|
content: t.content,
|
|
2941
2941
|
setContent: (e, n) => t.setContent(e, n),
|
|
2942
2942
|
...e.historyOptions
|
|
2943
2943
|
});
|
|
2944
|
-
|
|
2945
|
-
let m =
|
|
2944
|
+
sn(t, p);
|
|
2945
|
+
let m = nn({
|
|
2946
2946
|
addBlock: t.addBlock,
|
|
2947
2947
|
removeBlock: t.removeBlock,
|
|
2948
2948
|
updateBlock: t.updateBlock,
|
|
2949
2949
|
selectBlock: t.selectBlock,
|
|
2950
2950
|
findBlockLocation: t.findBlockLocation,
|
|
2951
2951
|
blockDefaults: n.blockDefaults
|
|
2952
|
-
}), h =
|
|
2952
|
+
}), h = an(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? rn({
|
|
2953
2953
|
content: t.content,
|
|
2954
2954
|
isDirty: () => t.state.isDirty,
|
|
2955
2955
|
...e.autoSaveOptions
|
|
@@ -2957,34 +2957,34 @@ function ta(e) {
|
|
|
2957
2957
|
g && (_ = B(p.isNavigating, (e) => {
|
|
2958
2958
|
e ? g.pause() : g.resume();
|
|
2959
2959
|
}));
|
|
2960
|
-
let y =
|
|
2960
|
+
let y = bn(t, {
|
|
2961
2961
|
t: s,
|
|
2962
2962
|
format: c
|
|
2963
|
-
}, n.customBlocks ?? []), b =
|
|
2964
|
-
if (b.allowCustomIgnored &&
|
|
2965
|
-
let e =
|
|
2966
|
-
e.length > 0 &&
|
|
2963
|
+
}, n.customBlocks ?? []), b = Et(n.colors);
|
|
2964
|
+
if (b.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
|
|
2965
|
+
let e = Nn(b.presets, n.blockDefaults, n.templateDefaults);
|
|
2966
|
+
e.length > 0 && $.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
2967
2967
|
}
|
|
2968
|
-
let x =
|
|
2969
|
-
|
|
2968
|
+
let x = Tn();
|
|
2969
|
+
An(x, ea);
|
|
2970
2970
|
let S = /* @__PURE__ */ new Set();
|
|
2971
2971
|
function w(e) {
|
|
2972
2972
|
for (let t of e) {
|
|
2973
2973
|
x.registerCustom(t, br);
|
|
2974
|
-
for (let e of
|
|
2974
|
+
for (let e of Fn(t, b)) S.has(e.id) || (S.add(e.id), $.warn(e.message));
|
|
2975
2975
|
}
|
|
2976
2976
|
}
|
|
2977
2977
|
n.customBlocks?.length && w(n.customBlocks);
|
|
2978
|
-
let T =
|
|
2978
|
+
let T = fn();
|
|
2979
2979
|
if (i() && o(T.dispose), e.containerEl) {
|
|
2980
2980
|
let t = e.containerEl;
|
|
2981
|
-
|
|
2981
|
+
U(document, "pointerdown", (e) => {
|
|
2982
2982
|
let n = t.value;
|
|
2983
2983
|
n && (e.composedPath?.() ?? []).includes(n) && T.claim();
|
|
2984
2984
|
}, { capture: !0 });
|
|
2985
2985
|
}
|
|
2986
2986
|
function E(r) {
|
|
2987
|
-
T.isActive() &&
|
|
2987
|
+
T.isActive() && Ln(r, {
|
|
2988
2988
|
history: p,
|
|
2989
2989
|
selectBlock: (e) => t.selectBlock(e),
|
|
2990
2990
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -2996,23 +2996,25 @@ function ta(e) {
|
|
|
2996
2996
|
onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
|
|
2997
2997
|
});
|
|
2998
2998
|
}
|
|
2999
|
-
|
|
2999
|
+
U(document, "keydown", E);
|
|
3000
3000
|
let D = v(null);
|
|
3001
|
-
u(
|
|
3001
|
+
u(lt, e.editorRoot ?? document), u(et, D), u(Ct, r), u(G, t), u(yt, p), u(ut, m), u(st, h), u(it, a), u(tt, f), u(Ge, l), u(at, n.blockDefaults), u(gt, x), u(ct, n.customBlocks ?? []), u(Qe, n.paletteBlocks), u(St, jn(n.htmlBlockPreview)), u(pt, b), u(_t, En(t.content, x));
|
|
3002
3002
|
let O = De(n.mergeTags?.syntax);
|
|
3003
|
-
u(
|
|
3003
|
+
u(W, n.mergeTags?.tags ?? []), u(ft, O), u(Ze, n.mergeTags?.onRequest ?? null), u(Je, n.mergeTags?.autocomplete !== !1);
|
|
3004
3004
|
let k = v(Ee(n.mergeTags?.tags ?? []));
|
|
3005
|
-
u(
|
|
3006
|
-
let A =
|
|
3005
|
+
u($e, k);
|
|
3006
|
+
let A = mn();
|
|
3007
|
+
u(qe, A), u(Ke, n.logicTags?.tags ?? []), u(nt, n.logicTags?.pairs ?? []), u(We, n.logicTags?.onRequest ?? null), u(bt, hn()), u(dt, n.onRequestMedia ?? null), u(ot, n.resolveImageUrl ? pn(n.resolveImageUrl) : null), u(mt, n.displayConditions?.conditions ?? []), u(ht, n.displayConditions?.allowCustom ?? !1), u(vt, e.capabilities ?? {}), u(xt, y);
|
|
3008
|
+
let j = gn(n.lint) ? null : _n({
|
|
3007
3009
|
content: t.content,
|
|
3008
3010
|
options: n.lint ?? {},
|
|
3009
3011
|
updateBlock: t.updateBlock,
|
|
3010
3012
|
updateSettings: t.updateSettings,
|
|
3011
3013
|
removeBlock: t.removeBlock
|
|
3012
3014
|
});
|
|
3013
|
-
u(
|
|
3014
|
-
function
|
|
3015
|
-
_?.(),
|
|
3015
|
+
u(Xe, j);
|
|
3016
|
+
function M() {
|
|
3017
|
+
_?.(), j?.destroy(), g?.destroy(), p.destroy();
|
|
3016
3018
|
}
|
|
3017
3019
|
return {
|
|
3018
3020
|
t: s,
|
|
@@ -3026,14 +3028,14 @@ function ta(e) {
|
|
|
3026
3028
|
themeOverrides: d,
|
|
3027
3029
|
registry: x,
|
|
3028
3030
|
keyboardReorder: y,
|
|
3029
|
-
templateLint:
|
|
3031
|
+
templateLint: j,
|
|
3030
3032
|
popoverRoot: D,
|
|
3031
3033
|
mergeTagSampleMode: k,
|
|
3032
3034
|
registerCustomBlocks: w,
|
|
3033
|
-
destroy:
|
|
3035
|
+
destroy: M
|
|
3034
3036
|
};
|
|
3035
3037
|
}
|
|
3036
3038
|
//#endregion
|
|
3037
|
-
export {
|
|
3039
|
+
export { Pn as A, nr as C, Jn as D, Yn as E, cn as F, on as I, Xt as L, yn as M, vn as N, Gn as O, un as P, sr as S, Xn as T, Or as _, Pi as a, dr as b, bi as c, ni as d, ri as f, Ar as g, Hr as h, Li as i, $ as j, Hn as k, vi as l, Kr as m, $i as n, Di as o, ti as p, Ui as r, wi as s, ta as t, ii as u, Sr as v, tr as w, lr as x, br as y };
|
|
3038
3040
|
|
|
3039
|
-
//# sourceMappingURL=useEditorCore-
|
|
3041
|
+
//# sourceMappingURL=useEditorCore-ZqF7P99K.js.map
|