@templatical/editor 0.23.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-Bru6-ziQ.js → AiChatSidebar-X4viKtvs.js} +14 -14
- package/dist/{AiFeatureMenu-CcqjRMFW.js → AiFeatureMenu-DDAamRaA.js} +7 -7
- package/dist/{BlockIssueBadge-Dmj9rVra.js → BlockIssueBadge-Qxrl7Ujl.js} +5 -5
- package/dist/BlockPreviewCanvas-Cf-kxbEr.js +117 -0
- package/dist/{CloudEditor-iK4vkpNm.js → CloudEditor-JIzhj1Xq.js} +134 -129
- package/dist/{CollaboratorBar-C_1SF7Xf.js → CollaboratorBar-tC7AACTb.js} +4 -4
- package/dist/{ColorPicker-s9GHXjZs.js → ColorPicker--_2PbzFk.js} +9 -11
- package/dist/{CommentsSidebar-DvNEdugN.js → CommentsSidebar-Ci2Ov8FG.js} +15 -15
- package/dist/{CountdownBlock-J_Q9JRQM.js → CountdownBlock-aZIKfBWY.js} +3 -3
- package/dist/{CountdownToolbar-DPRcv3Fu.js → CountdownToolbar-DHp6T0Q_.js} +4 -4
- package/dist/DesignReferenceSidebar-DQsC-3hB.js +264 -0
- package/dist/{IssuesPanel-CEnEGFtd.js → IssuesPanel-CoOfib44.js} +8 -8
- package/dist/{LoadingTrack-KIcREPlS.js → LoadingTrack-XK_eeUdq.js} +1 -1
- package/dist/MergeTagModeToggle-CiFiSV0C.js +180 -0
- package/dist/{MergeTagSuggestion-D9eCryMC.js → MergeTagSuggestion-D0OHRv7L.js} +9 -13
- package/dist/{NumberWithSuffix-CCPN_oCh.js → NumberWithSuffix-CXFbUqsx.js} +2 -2
- package/dist/{ParagraphEditor-MKJYyWN9.js → ParagraphEditor-Cy-bpEjI.js} +45 -45
- package/dist/{RichTextEditorContent-FbnWsh46.js → RichTextEditorContent-CYJko6id.js} +9 -9
- package/dist/{SaveBlockDialog-CFAJHP3v.js → SaveBlockDialog-CNTSaMEa.js} +11 -11
- package/dist/{SavedBlocksBrowserModal-C_-Xcm0Q.js → SavedBlocksBrowserModal-CvxS5-YX.js} +11 -11
- package/dist/{SavedBlocksPanels-CRf7zzFn.js → SavedBlocksPanels-CNdUxS89.js} +2 -2
- package/dist/{SavedBlocksPickBar-C1FTJP-I.js → SavedBlocksPickBar-BvXKhblL.js} +4 -4
- package/dist/{SnapshotHistory-DWlQ3Eh0.js → SnapshotHistory-BqPSIV9L.js} +10 -10
- package/dist/{TemplateScoringPanel-ifGGGWs5.js → TemplateScoringPanel-CMEuz9yF.js} +15 -15
- package/dist/{TestEmailModal-D90-3Yex.js → TestEmailModal-BDhnnCBx.js} +71 -59
- package/dist/{TestEmailPanel-B0u_Yd3X.js → TestEmailPanel--RwnwLn2.js} +2 -2
- package/dist/{TitleEditor-DzsPxKv4.js → TitleEditor-F7E_pU9H.js} +13 -13
- package/dist/TplModal-BIiS24Of.js +49 -0
- package/dist/{blockTypeIcons-CpKkI47V.js → blockTypeIcons-C6PnLMp7.js} +26 -26
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +8 -1
- package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js → AiChatSidebar-UbF3ePzR.js} +15 -15
- package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js.map → AiChatSidebar-UbF3ePzR.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js → AiFeatureMenu-OIwoJzHG.js} +9 -9
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js.map → AiFeatureMenu-OIwoJzHG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js → BlockIssueBadge-Bd2EuT1C.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js.map → BlockIssueBadge-Bd2EuT1C.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js +119 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-S8zLHtKb.js → CloudEditor-D87qsqbZ.js} +133 -128
- package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js → CollaboratorBar-Br4RvNrA.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js.map → CollaboratorBar-Br4RvNrA.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js → ColorPicker-B-ymPPtU.js} +10 -12
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js.map → ColorPicker-B-ymPPtU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js → CommentsSidebar-Tv_WTcJv.js} +19 -19
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js.map → CommentsSidebar-Tv_WTcJv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js → CountdownBlock-cEcXSK91.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js.map → CountdownBlock-cEcXSK91.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js → CountdownToolbar-CLp3_ebk.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js.map → CountdownToolbar-CLp3_ebk.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js → DesignReferenceSidebar-YeqxSsxO.js} +33 -33
- package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js.map → DesignReferenceSidebar-YeqxSsxO.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js → IssuesPanel-BhsvC3XQ.js} +10 -10
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.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-DrdxQA0K.js +127 -0
- package/dist/cdn/chunks/MergeTagModeToggle-DrdxQA0K.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js → MergeTagSuggestion-Ces5Ua78.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js.map → MergeTagSuggestion-Ces5Ua78.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js → NumberWithSuffix-BK_Xh4w4.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js.map → NumberWithSuffix-BK_Xh4w4.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js → ParagraphEditor-DKz4vTWB.js} +128 -128
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js.map → ParagraphEditor-DKz4vTWB.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js → RichTextEditorContent-CJ2WVicQ.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js.map → RichTextEditorContent-CJ2WVicQ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js → SaveBlockDialog-DTemkKPX.js} +9 -9
- package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js.map → SaveBlockDialog-DTemkKPX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js → SavedBlocksBrowserModal-DbMaIbeH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js.map → SavedBlocksBrowserModal-DbMaIbeH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js → SavedBlocksPanels-CUffuDAC.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js.map → SavedBlocksPanels-CUffuDAC.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js → SavedBlocksPickBar-D7SmNz2n.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js.map → SavedBlocksPickBar-D7SmNz2n.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js → SnapshotHistory-m5Z8bTej.js} +10 -10
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js.map → SnapshotHistory-m5Z8bTej.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js → TemplateScoringPanel-DgRU5fty.js} +53 -53
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js.map → TemplateScoringPanel-DgRU5fty.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js +174 -0
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js → TestEmailPanel-BlmIKKSL.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js.map → TestEmailPanel-BlmIKKSL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js → TitleEditor-C6_bQxYR.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.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-B8s3_ahs.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-etMMQoVv.js.map → blockTypeIcons-B8s3_ahs.js.map} +1 -1
- package/dist/cdn/chunks/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +9 -2
- package/dist/cdn/chunks/{ca-D47BxSGu.js.map → ca-CO4nq6TX.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-F-aVi9hj.js → cloud-CRlDc0Ev.js} +13 -17
- package/dist/cdn/chunks/{cloud-F-aVi9hj.js.map → cloud-CRlDc0Ev.js.map} +1 -1
- package/dist/{de-CnnxBwh7.js → cdn/chunks/de-CUeaFJph.js} +10 -1
- package/dist/cdn/chunks/{de-CnnxBwh7.js.map → de-CUeaFJph.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/{en-5gW-bYy2.js → cdn/chunks/en-zCYIPAL5.js} +10 -1
- package/dist/cdn/chunks/{en-5gW-bYy2.js.map → en-zCYIPAL5.js.map} +1 -1
- package/dist/cdn/chunks/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +9 -2
- package/dist/cdn/chunks/{es-sQ9SdI0l.js.map → es-BSiH7YkP.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-CKMD_er_.js} +25 -21
- package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-CKMD_er_.js.map} +1 -1
- package/dist/{fr-DBZ5w21C.js → cdn/chunks/fr-DTVJ3det.js} +10 -1
- package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
- 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-CYWw8Xfp.js → icons-Cp4ZIJw-.js} +65 -44
- package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +1 -0
- package/dist/cdn/chunks/keys-CswSK7eb.js +12 -0
- package/dist/cdn/chunks/keys-CswSK7eb.js.map +1 -0
- 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/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +9 -2
- package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
- package/dist/{pt-BR-DRCdHX1d.js → cdn/chunks/pt-BR-CMljK37h.js} +10 -1
- package/dist/cdn/chunks/{pt-BR-DRCdHX1d.js.map → pt-BR-CMljK37h.js.map} +1 -1
- 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-SluTVSz_.js → src-B3HKHglu.js} +19 -23
- package/dist/cdn/chunks/{src-SluTVSz_.js.map → src-B3HKHglu.js.map} +1 -1
- package/dist/cdn/chunks/{src-CM0gCvAS.js → src-B4UhYbI8.js} +253 -253
- package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-B4UhYbI8.js.map} +1 -1
- package/dist/cdn/chunks/{src-CzoMNRq4.js → src-CumZZNXZ.js} +542 -806
- package/dist/cdn/chunks/{src-CzoMNRq4.js.map → src-CumZZNXZ.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKI1x1k7.js → src-D5mfLR4V.js} +183 -165
- package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-D5mfLR4V.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BbfU2w9R.js → styles--m9OCb_Z.js} +730 -723
- package/dist/cdn/chunks/styles--m9OCb_Z.js.map +1 -0
- 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-DUTbZTeR.js → tiptap-rsib432n.js} +136 -123
- 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-BjNENqkM.js → useCloudI18n-sx1pqEbY.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-sx1pqEbY.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-ZqF7P99K.js} +457 -435
- package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-vD57BfVR.js} +3 -3
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-vD57BfVR.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-HatzNGgc.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-HatzNGgc.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BdQ3Sv4B.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BdQ3Sv4B.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +144 -139
- 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-CeZPgo1V.js → cloud-R8ci6yR1.js} +10 -14
- package/dist/{createLucideIcon-JWHwTI6N.js → createLucideIcon-AEltGIse.js} +3 -3
- package/dist/{cdn/chunks/de-CnnxBwh7.js → de-CUeaFJph.js} +8 -3
- package/dist/{dist-3DHaYEiT.js → dist-B6Px6GPj.js} +2 -2
- package/dist/{dist-BJbqgyPn.js → dist-Ba5Q-UX1.js} +106 -88
- package/dist/{dist-CL_CfQ3Q.js → dist-BxbTVeY0.js} +2 -2
- package/dist/{dist-DOtLGnLr.js → dist-CIqhVQ1O.js} +6 -6
- package/dist/{dist-CclnU_v0.js → dist-CRH880TV.js} +2 -2
- package/dist/{dist-3HenmYIg.js → dist-CcQFPJMF.js} +117 -101
- package/dist/dist-CkPvZCld.js +5 -0
- package/dist/{dist-BCnJcAQc.js → dist-DSIgxp0v.js} +2 -2
- package/dist/{dist-DYv_Pttj.js → dist-DT1XnEnj.js} +33 -17
- package/dist/{dist-Ih7ejWzn.js → dist-DX4x6mQ1.js} +4 -4
- package/dist/{dist-B_etKYyh.js → dist-Dx71pluS.js} +18 -13
- package/dist/{dist-bivrM-nS.js → dist-DyCHUyRR.js} +2 -2
- package/dist/dist-iCEDH3cC.js +5 -0
- package/dist/{dist-DKWoZJAV.js → dist-nR6mxyqI.js} +2 -2
- package/dist/{cdn/chunks/en-5gW-bYy2.js → en-zCYIPAL5.js} +8 -3
- package/dist/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +8 -1
- package/dist/{extensions-3870a_3R.js → extensions-CGxj6-2o.js} +23 -19
- package/dist/{cdn/chunks/fr-DBZ5w21C.js → fr-DTVJ3det.js} +8 -3
- 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-uWpGv4Pq.js +10 -0
- 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/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +8 -1
- package/dist/{pencil-DdwmkKLb.js → pencil-CkKkSd6N.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-DRCdHX1d.js → pt-BR-CMljK37h.js} +8 -3
- 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/style.css +1 -1
- package/dist/{styles-BWTIgN5L.js → styles-C9AMvkJk.js} +884 -877
- package/dist/templatical-editor.js +96 -91
- 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-BmiygEM4.js → useCloudI18n-BC_QV2Z7.js} +2 -2
- package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-Dojb-P2f.js} +941 -921
- package/dist/{useI18n-D2L9Mkik.js → useI18n-DzOcl2wl.js} +2 -2
- package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-BFxXCv3p.js} +4 -4
- package/dist/{usePopoverPosition-BO2LNy5n.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 +25 -25
- package/dist/BlockPreviewCanvas-MD9BGuXV.js +0 -115
- package/dist/DesignReferenceSidebar-BxPo0zyx.js +0 -264
- package/dist/TplModal-CykwWFhF.js +0 -49
- package/dist/ViewportToggle-BjmbNoao.js +0 -97
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js +0 -117
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +0 -162
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BN53d9Se.js +0 -50
- package/dist/cdn/chunks/TplModal-BN53d9Se.js.map +0 -1
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +0 -66
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
- package/dist/cdn/chunks/dist-CiBEt0VR.js.map +0 -1
- package/dist/cdn/chunks/dist-CxTt8FRE.js.map +0 -1
- package/dist/cdn/chunks/fr-DBZ5w21C.js.map +0 -1
- package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
- package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
- package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +0 -1
- package/dist/cdn/chunks/nl-DOL7Fnfo.js.map +0 -1
- package/dist/cdn/chunks/styles-BbfU2w9R.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js +0 -6
- package/dist/cdn/chunks/tiptap-DUTbZTeR.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
- package/dist/dist-CcQLJeWV.js +0 -5
- package/dist/dist-DerdmERj.js +0 -5
- package/dist/keys-CHPcp-Nz.js +0 -10
|
@@ -1,24 +1,24 @@
|
|
|
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
|
|
4
|
-
import { _ as
|
|
5
|
-
import { a as U, c as
|
|
6
|
-
import { A as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as
|
|
9
|
-
import {
|
|
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
|
-
content: e.content ??
|
|
21
|
+
content: e.content ?? ae(e.defaultFontFamily, e.templateDefaults),
|
|
22
22
|
selectedBlockId: null,
|
|
23
23
|
viewport: "desktop",
|
|
24
24
|
darkMode: !1,
|
|
@@ -107,7 +107,7 @@ function Gt(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 Gt(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,11 +171,11 @@ function Gt(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
|
-
return
|
|
178
|
+
return he(t.value);
|
|
179
179
|
}
|
|
180
180
|
function p(e) {
|
|
181
181
|
a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
|
|
@@ -191,21 +191,21 @@ function Yt(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 Yt(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 Xt(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 Zt(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 Qt(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 $t(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 en(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 tn(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 nn(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 nn(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 an(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 cn(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 ln() {
|
|
|
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 un() {
|
|
|
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 fn(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 hn(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 hn(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 _n = {
|
|
|
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 vn({ 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);
|
|
@@ -899,7 +899,7 @@ function bn() {
|
|
|
899
899
|
let r = `custom:${e.type}`;
|
|
900
900
|
t.value.set(r, {
|
|
901
901
|
component: n,
|
|
902
|
-
createBlock: () =>
|
|
902
|
+
createBlock: () => fe(e),
|
|
903
903
|
definition: e
|
|
904
904
|
}), N(t);
|
|
905
905
|
}
|
|
@@ -924,13 +924,13 @@ function bn() {
|
|
|
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 bn() {
|
|
|
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,29 +962,29 @@ function xn(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
|
-
createBlock:
|
|
987
|
+
createBlock: ue
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
990
|
type: "title",
|
|
@@ -992,11 +992,11 @@ var wn = [
|
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
994
|
type: "paragraph",
|
|
995
|
-
createBlock:
|
|
995
|
+
createBlock: re
|
|
996
996
|
},
|
|
997
997
|
{
|
|
998
998
|
type: "image",
|
|
999
|
-
createBlock:
|
|
999
|
+
createBlock: pe
|
|
1000
1000
|
},
|
|
1001
1001
|
{
|
|
1002
1002
|
type: "button",
|
|
@@ -1004,39 +1004,39 @@ var wn = [
|
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
1006
|
type: "divider",
|
|
1007
|
-
createBlock:
|
|
1007
|
+
createBlock: ne
|
|
1008
1008
|
},
|
|
1009
1009
|
{
|
|
1010
1010
|
type: "video",
|
|
1011
|
-
createBlock:
|
|
1011
|
+
createBlock: le
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
1014
1014
|
type: "social",
|
|
1015
|
-
createBlock:
|
|
1015
|
+
createBlock: Te
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
1018
1018
|
type: "menu",
|
|
1019
|
-
createBlock:
|
|
1019
|
+
createBlock: ie
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
1022
|
type: "table",
|
|
1023
|
-
createBlock:
|
|
1023
|
+
createBlock: we
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
type: "spacer",
|
|
1027
|
-
createBlock:
|
|
1027
|
+
createBlock: te
|
|
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 Tn(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 On(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 kn(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 An(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 An(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 jn(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,51 +1149,58 @@ function Mn(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
|
-
let
|
|
1159
|
-
for (; (
|
|
1160
|
-
|
|
1158
|
+
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
1159
|
+
for (; (s = i.exec(e)) !== null;) {
|
|
1160
|
+
s.index > o && a.push({
|
|
1161
1161
|
type: "text",
|
|
1162
|
-
value: e.slice(
|
|
1162
|
+
value: e.slice(o, s.index)
|
|
1163
1163
|
});
|
|
1164
|
-
let
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1164
|
+
let i = s[0];
|
|
1165
|
+
if (ye(i, n)) {
|
|
1166
|
+
let e = r ? ke(i, t) : void 0;
|
|
1167
|
+
a.push(e === void 0 ? {
|
|
1168
|
+
type: "tag",
|
|
1169
|
+
value: ge(i, t)
|
|
1170
|
+
} : {
|
|
1171
|
+
type: "text",
|
|
1172
|
+
value: e
|
|
1173
|
+
});
|
|
1174
|
+
} else Me(i, n) ? a.push({
|
|
1169
1175
|
type: "tag",
|
|
1170
|
-
value:
|
|
1171
|
-
}) :
|
|
1176
|
+
value: Ce(i, n)
|
|
1177
|
+
}) : a.push({
|
|
1172
1178
|
type: "text",
|
|
1173
|
-
value:
|
|
1174
|
-
})
|
|
1179
|
+
value: i
|
|
1180
|
+
});
|
|
1181
|
+
o = s.index + i.length;
|
|
1175
1182
|
}
|
|
1176
|
-
return
|
|
1183
|
+
return o < e.length && a.push({
|
|
1177
1184
|
type: "text",
|
|
1178
|
-
value: e.slice(
|
|
1179
|
-
}),
|
|
1185
|
+
value: e.slice(o)
|
|
1186
|
+
}), a;
|
|
1180
1187
|
}
|
|
1181
1188
|
//#endregion
|
|
1182
1189
|
//#region src/components/MergeTagPreviewText.vue
|
|
1183
|
-
var
|
|
1190
|
+
var zn = R({
|
|
1184
1191
|
name: "MergeTagPreviewText",
|
|
1185
1192
|
props: { text: {
|
|
1186
1193
|
type: String,
|
|
1187
1194
|
required: !0
|
|
1188
1195
|
} },
|
|
1189
1196
|
setup(e) {
|
|
1190
|
-
let t = p(
|
|
1191
|
-
return () =>
|
|
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
|
+
return () => a.value.map((e, t) => e.type === "tag" ? n("span", {
|
|
1192
1199
|
key: t,
|
|
1193
1200
|
class: "tpl-merge-tag-label"
|
|
1194
1201
|
}, e.value) : e.value);
|
|
1195
1202
|
}
|
|
1196
|
-
}),
|
|
1203
|
+
}), Bn = { class: "tpl:text-center" }, Vn = ["href"], Hn = /* @__PURE__ */ R({
|
|
1197
1204
|
__name: "ButtonBlock",
|
|
1198
1205
|
props: {
|
|
1199
1206
|
block: {},
|
|
@@ -1214,18 +1221,18 @@ var Pn = R({
|
|
|
1214
1221
|
};
|
|
1215
1222
|
return t.block.fontFamily && (e.fontFamily = 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;
|
|
1216
1223
|
});
|
|
1217
|
-
return (t, r) => (l(), w("div",
|
|
1224
|
+
return (t, r) => (l(), w("div", Bn, [M("a", {
|
|
1218
1225
|
href: e.block.url || "#",
|
|
1219
1226
|
style: F(n.value),
|
|
1220
1227
|
class: "tpl:cursor-default",
|
|
1221
1228
|
onClick: r[0] ||= O(() => {}, ["prevent"])
|
|
1222
|
-
}, [z(
|
|
1229
|
+
}, [z(zn, { text: e.block.text }, null, 8, ["text"])], 12, Vn)]));
|
|
1223
1230
|
}
|
|
1224
|
-
}),
|
|
1231
|
+
}), Un = ["innerHTML"], Wn = [
|
|
1225
1232
|
"src",
|
|
1226
1233
|
"width",
|
|
1227
1234
|
"height"
|
|
1228
|
-
],
|
|
1235
|
+
], Gn = /* @__PURE__ */ R({
|
|
1229
1236
|
__name: "CustomBlockIcon",
|
|
1230
1237
|
props: {
|
|
1231
1238
|
icon: {},
|
|
@@ -1241,14 +1248,14 @@ var Pn = R({
|
|
|
1241
1248
|
height: `${n.value}px`
|
|
1242
1249
|
}),
|
|
1243
1250
|
innerHTML: e.icon
|
|
1244
|
-
}, null, 12,
|
|
1251
|
+
}, null, 12, Un)) : i.value ? (l(), w("img", {
|
|
1245
1252
|
key: 1,
|
|
1246
1253
|
src: e.icon,
|
|
1247
1254
|
width: n.value,
|
|
1248
1255
|
height: n.value,
|
|
1249
1256
|
class: "tpl:inline-block",
|
|
1250
1257
|
alt: ""
|
|
1251
|
-
}, null, 8,
|
|
1258
|
+
}, null, 8, Wn)) : (l(), k(E(jt), {
|
|
1252
1259
|
key: 2,
|
|
1253
1260
|
size: n.value,
|
|
1254
1261
|
"stroke-width": 1.5
|
|
@@ -1257,16 +1264,16 @@ var Pn = R({
|
|
|
1257
1264
|
});
|
|
1258
1265
|
//#endregion
|
|
1259
1266
|
//#region src/composables/useEditorRoot.ts
|
|
1260
|
-
function
|
|
1261
|
-
return p(
|
|
1267
|
+
function Kn() {
|
|
1268
|
+
return p(lt, document) ?? document;
|
|
1262
1269
|
}
|
|
1263
1270
|
//#endregion
|
|
1264
1271
|
//#region src/composables/useFocusTrap.ts
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
let n =
|
|
1272
|
+
var qn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1273
|
+
function Jn(e, t) {
|
|
1274
|
+
let n = Kn(), r = null, i = null, a = null;
|
|
1268
1275
|
function s() {
|
|
1269
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1276
|
+
return e.value ? Array.from(e.value.querySelectorAll(qn)).filter((e) => e.offsetParent !== null) : [];
|
|
1270
1277
|
}
|
|
1271
1278
|
function c(e) {
|
|
1272
1279
|
if (e.key !== "Tab") return;
|
|
@@ -1296,8 +1303,8 @@ function Un(e, t) {
|
|
|
1296
1303
|
}
|
|
1297
1304
|
//#endregion
|
|
1298
1305
|
//#region src/composables/useEmoji.ts
|
|
1299
|
-
function
|
|
1300
|
-
let [t, n] =
|
|
1306
|
+
function Yn() {
|
|
1307
|
+
let [t, n] = ze(!1), r = e([]), i = !1;
|
|
1301
1308
|
o(() => {
|
|
1302
1309
|
i = !0;
|
|
1303
1310
|
}), B(t, async (e) => {
|
|
@@ -1322,7 +1329,7 @@ function Wn() {
|
|
|
1322
1329
|
}
|
|
1323
1330
|
//#endregion
|
|
1324
1331
|
//#region src/composables/useDragDrop.ts
|
|
1325
|
-
function
|
|
1332
|
+
function Xn(e) {
|
|
1326
1333
|
let { onBlockMove: t, onBlockAdd: n } = e, r = v(!1), i = v(null), a = v(null);
|
|
1327
1334
|
function o(e) {
|
|
1328
1335
|
r.value = !0, i.value = e;
|
|
@@ -1372,7 +1379,7 @@ function Gn(e) {
|
|
|
1372
1379
|
}
|
|
1373
1380
|
//#endregion
|
|
1374
1381
|
//#region src/composables/useFonts.ts
|
|
1375
|
-
var
|
|
1382
|
+
var Zn = [
|
|
1376
1383
|
{
|
|
1377
1384
|
value: "Arial",
|
|
1378
1385
|
label: "Arial"
|
|
@@ -1401,7 +1408,7 @@ var Kn = [
|
|
|
1401
1408
|
value: "Courier New",
|
|
1402
1409
|
label: "Courier New"
|
|
1403
1410
|
}
|
|
1404
|
-
],
|
|
1411
|
+
], Qn = {
|
|
1405
1412
|
arial: "Arial, sans-serif",
|
|
1406
1413
|
helvetica: "Helvetica, sans-serif",
|
|
1407
1414
|
georgia: "Georgia, serif",
|
|
@@ -1409,23 +1416,23 @@ var Kn = [
|
|
|
1409
1416
|
verdana: "Verdana, sans-serif",
|
|
1410
1417
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1411
1418
|
"courier new": "'Courier New', monospace"
|
|
1412
|
-
}, $ = "Arial, sans-serif";
|
|
1413
|
-
function
|
|
1414
|
-
if (e === void 0 || e === !0) return [...
|
|
1419
|
+
}, $n = "Arial, sans-serif";
|
|
1420
|
+
function er(e) {
|
|
1421
|
+
if (e === void 0 || e === !0) return [...Zn];
|
|
1415
1422
|
if (e === !1) return [];
|
|
1416
1423
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1417
1424
|
for (let i of e) {
|
|
1418
|
-
let e = i.toLowerCase(), a =
|
|
1425
|
+
let e = i.toLowerCase(), a = Zn.find((t) => t.value.toLowerCase() === e);
|
|
1419
1426
|
if (!a) {
|
|
1420
|
-
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(", ")}.`));
|
|
1421
1428
|
continue;
|
|
1422
1429
|
}
|
|
1423
1430
|
n.has(a.value) || (n.add(a.value), t.push(a));
|
|
1424
1431
|
}
|
|
1425
1432
|
return t;
|
|
1426
1433
|
}
|
|
1427
|
-
function
|
|
1428
|
-
let t = v(e?.customFonts ?? []), n = v(!0), r = v(!1), a =
|
|
1434
|
+
function tr(e) {
|
|
1435
|
+
let t = v(e?.customFonts ?? []), n = v(!0), r = v(!1), a = er(e?.builtIns), s = C(() => e?.defaultFallback ?? $n);
|
|
1429
1436
|
function c(e) {
|
|
1430
1437
|
n.value = e;
|
|
1431
1438
|
}
|
|
@@ -1442,26 +1449,26 @@ function Yn(e) {
|
|
|
1442
1449
|
function u(e) {
|
|
1443
1450
|
return l.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1444
1451
|
}
|
|
1445
|
-
let d = e?.defaultFont ??
|
|
1446
|
-
u(d) ||
|
|
1452
|
+
let d = e?.defaultFont ?? $n.split(",")[0].trim();
|
|
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.`);
|
|
1447
1454
|
function f(e) {
|
|
1448
|
-
return
|
|
1455
|
+
return Zn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1449
1456
|
}
|
|
1450
1457
|
function p() {
|
|
1451
1458
|
if (e?.defaultFont) {
|
|
1452
|
-
if (!n.value && !f(e.defaultFont)) return
|
|
1459
|
+
if (!n.value && !f(e.defaultFont)) return $n;
|
|
1453
1460
|
if (u(e.defaultFont)) {
|
|
1454
1461
|
let t = l.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1455
1462
|
if (t) return t.value;
|
|
1456
1463
|
}
|
|
1457
1464
|
}
|
|
1458
|
-
return
|
|
1465
|
+
return $n;
|
|
1459
1466
|
}
|
|
1460
1467
|
let m = C(() => p());
|
|
1461
1468
|
function h(e) {
|
|
1462
1469
|
if (!e) return s.value;
|
|
1463
1470
|
let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
1464
|
-
return n ? `'${n.name}', ${n.fallback ?? s.value}` :
|
|
1471
|
+
return n ? `'${n.name}', ${n.fallback ?? s.value}` : Qn[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${s.value}`);
|
|
1465
1472
|
}
|
|
1466
1473
|
let g = [], _ = !1;
|
|
1467
1474
|
async function y() {
|
|
@@ -1477,7 +1484,7 @@ function Yn(e) {
|
|
|
1477
1484
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1478
1485
|
});
|
|
1479
1486
|
} catch (t) {
|
|
1480
|
-
|
|
1487
|
+
$.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1481
1488
|
}
|
|
1482
1489
|
});
|
|
1483
1490
|
await Promise.allSettled(e), !_ && (r.value = !0);
|
|
@@ -1504,8 +1511,8 @@ function Yn(e) {
|
|
|
1504
1511
|
}
|
|
1505
1512
|
//#endregion
|
|
1506
1513
|
//#region src/composables/useLogicTag.ts
|
|
1507
|
-
function
|
|
1508
|
-
let e = p(
|
|
1514
|
+
function nr() {
|
|
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;
|
|
1509
1516
|
async function c() {
|
|
1510
1517
|
if (r) {
|
|
1511
1518
|
a.value = !0;
|
|
@@ -1536,12 +1543,12 @@ function Xn() {
|
|
|
1536
1543
|
}
|
|
1537
1544
|
//#endregion
|
|
1538
1545
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1546
|
+
function rr(e, t, n) {
|
|
1547
|
+
return Me(e, n) ? {
|
|
1541
1548
|
type: "logicMergeTagNode",
|
|
1542
1549
|
attrs: {
|
|
1543
1550
|
value: e,
|
|
1544
|
-
keyword:
|
|
1551
|
+
keyword: Ce(e, n)
|
|
1545
1552
|
}
|
|
1546
1553
|
} : {
|
|
1547
1554
|
type: "mergeTagNode",
|
|
@@ -1553,15 +1560,15 @@ function Zn(e, t, n) {
|
|
|
1553
1560
|
}
|
|
1554
1561
|
//#endregion
|
|
1555
1562
|
//#region src/utils/insertLogicTag.ts
|
|
1556
|
-
function
|
|
1563
|
+
function ir(e) {
|
|
1557
1564
|
return "before" in e && "after" in e;
|
|
1558
1565
|
}
|
|
1559
|
-
function
|
|
1560
|
-
if (!
|
|
1561
|
-
e.chain().focus().insertContent(
|
|
1566
|
+
function ar(e, t, n) {
|
|
1567
|
+
if (!ir(t)) {
|
|
1568
|
+
e.chain().focus().insertContent(rr(t.value, t.label, n)).run();
|
|
1562
1569
|
return;
|
|
1563
1570
|
}
|
|
1564
|
-
let r =
|
|
1571
|
+
let r = rr(t.before, t.label, n), i = rr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1565
1572
|
if (a !== o) {
|
|
1566
1573
|
e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1567
1574
|
return;
|
|
@@ -1570,20 +1577,20 @@ function $n(e, t, n) {
|
|
|
1570
1577
|
}
|
|
1571
1578
|
//#endregion
|
|
1572
1579
|
//#region src/utils/linkColorExtension.ts
|
|
1573
|
-
function
|
|
1580
|
+
function or(e) {
|
|
1574
1581
|
if (!e) return null;
|
|
1575
1582
|
let t = e.trim();
|
|
1576
1583
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
1577
1584
|
}
|
|
1578
|
-
function
|
|
1585
|
+
function sr(e) {
|
|
1579
1586
|
return e.extend({ addAttributes() {
|
|
1580
1587
|
return {
|
|
1581
1588
|
...this.parent?.(),
|
|
1582
1589
|
color: {
|
|
1583
1590
|
default: null,
|
|
1584
|
-
parseHTML: (e) =>
|
|
1591
|
+
parseHTML: (e) => or(Tt(e.style.color)),
|
|
1585
1592
|
renderHTML: (e) => {
|
|
1586
|
-
let t =
|
|
1593
|
+
let t = or(e.color);
|
|
1587
1594
|
return t ? { style: `color: ${t}` } : {};
|
|
1588
1595
|
}
|
|
1589
1596
|
}
|
|
@@ -1592,9 +1599,9 @@ function tr(e) {
|
|
|
1592
1599
|
}
|
|
1593
1600
|
//#endregion
|
|
1594
1601
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1595
|
-
function
|
|
1602
|
+
function cr(e) {
|
|
1596
1603
|
let t = v(!1), n = v(""), r = v(""), i = v(null);
|
|
1597
|
-
|
|
1604
|
+
Jn(i, t);
|
|
1598
1605
|
function a() {
|
|
1599
1606
|
let i = e.value?.getAttributes("link") ?? {};
|
|
1600
1607
|
n.value = i.href || "", r.value = i.color || "", t.value = !0;
|
|
@@ -1603,7 +1610,7 @@ function nr(e) {
|
|
|
1603
1610
|
if (n.value) {
|
|
1604
1611
|
let t = c(n.value);
|
|
1605
1612
|
if (t !== null) {
|
|
1606
|
-
let n =
|
|
1613
|
+
let n = or(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1607
1614
|
n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
|
|
1608
1615
|
}
|
|
1609
1616
|
}
|
|
@@ -1650,8 +1657,8 @@ function nr(e) {
|
|
|
1650
1657
|
}
|
|
1651
1658
|
//#endregion
|
|
1652
1659
|
//#region src/composables/useRichTextEditor.ts
|
|
1653
|
-
function
|
|
1654
|
-
let n = p(
|
|
1660
|
+
function lr(t) {
|
|
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;
|
|
1655
1662
|
async function F() {
|
|
1656
1663
|
N.value = null, M.value = !0;
|
|
1657
1664
|
try {
|
|
@@ -1681,7 +1688,7 @@ function rr(t) {
|
|
|
1681
1688
|
_.value = s, M.value = !1, k();
|
|
1682
1689
|
} catch (e) {
|
|
1683
1690
|
if (P) return;
|
|
1684
|
-
|
|
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;
|
|
1685
1692
|
}
|
|
1686
1693
|
}
|
|
1687
1694
|
function ee() {
|
|
@@ -1711,7 +1718,7 @@ function rr(t) {
|
|
|
1711
1718
|
}
|
|
1712
1719
|
async function z() {
|
|
1713
1720
|
let e = await f();
|
|
1714
|
-
P || (e && _.value ?
|
|
1721
|
+
P || (e && _.value ? ar(_.value, e, c) : _.value?.commands.focus());
|
|
1715
1722
|
}
|
|
1716
1723
|
return {
|
|
1717
1724
|
editor: _,
|
|
@@ -1740,9 +1747,9 @@ function rr(t) {
|
|
|
1740
1747
|
}
|
|
1741
1748
|
//#endregion
|
|
1742
1749
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1743
|
-
var
|
|
1744
|
-
function
|
|
1745
|
-
let t =
|
|
1750
|
+
var ur = "(max-width: 767px)";
|
|
1751
|
+
function dr(e) {
|
|
1752
|
+
let t = Ve(ur);
|
|
1746
1753
|
return {
|
|
1747
1754
|
isSmallScreen: t,
|
|
1748
1755
|
showNotice: C(() => (A(e) ?? !0) && t.value)
|
|
@@ -1750,20 +1757,20 @@ function ar(e) {
|
|
|
1750
1757
|
}
|
|
1751
1758
|
//#endregion
|
|
1752
1759
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1753
|
-
var
|
|
1760
|
+
var fr = { class: "tpl:w-full" }, pr = {
|
|
1754
1761
|
key: 0,
|
|
1755
1762
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1756
|
-
},
|
|
1763
|
+
}, mr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, hr = {
|
|
1757
1764
|
key: 1,
|
|
1758
1765
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1759
|
-
},
|
|
1766
|
+
}, gr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _r = {
|
|
1760
1767
|
key: 2,
|
|
1761
1768
|
class: "tpl:relative"
|
|
1762
|
-
},
|
|
1769
|
+
}, vr = ["innerHTML"], yr = {
|
|
1763
1770
|
key: 0,
|
|
1764
1771
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1765
1772
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1766
|
-
},
|
|
1773
|
+
}, br = /* @__PURE__ */ R({
|
|
1767
1774
|
__name: "CustomBlock",
|
|
1768
1775
|
props: {
|
|
1769
1776
|
block: {},
|
|
@@ -1771,7 +1778,7 @@ var or = { class: "tpl:w-full" }, sr = {
|
|
|
1771
1778
|
},
|
|
1772
1779
|
emits: ["fetchData"],
|
|
1773
1780
|
setup(e, { emit: n }) {
|
|
1774
|
-
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({
|
|
1775
1782
|
definition: u,
|
|
1776
1783
|
block: C(() => r.block),
|
|
1777
1784
|
onUpdate: (e, t) => {
|
|
@@ -1780,27 +1787,37 @@ var or = { class: "tpl:w-full" }, sr = {
|
|
|
1780
1787
|
dataSourceFetched: t
|
|
1781
1788
|
});
|
|
1782
1789
|
}
|
|
1790
|
+
}), _ = p(W, []), y = p(rt, null), b = C(() => {
|
|
1791
|
+
if (!y?.value) return r.block;
|
|
1792
|
+
let e = {};
|
|
1793
|
+
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? xe(n, _) : n;
|
|
1794
|
+
return {
|
|
1795
|
+
...r.block,
|
|
1796
|
+
fieldValues: e
|
|
1797
|
+
};
|
|
1783
1798
|
});
|
|
1784
|
-
async function
|
|
1799
|
+
async function x() {
|
|
1785
1800
|
if (o) {
|
|
1786
1801
|
c.value = !1;
|
|
1787
1802
|
try {
|
|
1788
|
-
let e = await o.renderCustomBlock(
|
|
1803
|
+
let e = await o.renderCustomBlock(b.value);
|
|
1789
1804
|
e.includes("Template render error:") && (c.value = !0), s.value = e;
|
|
1790
1805
|
} catch {
|
|
1791
1806
|
c.value = !0, s.value = "";
|
|
1792
1807
|
}
|
|
1793
1808
|
}
|
|
1794
1809
|
}
|
|
1795
|
-
let
|
|
1810
|
+
let D = Re(x, 150);
|
|
1796
1811
|
return t(() => {
|
|
1797
|
-
|
|
1812
|
+
x();
|
|
1798
1813
|
}), B(() => r.block.fieldValues, () => {
|
|
1799
|
-
|
|
1800
|
-
}, { deep: !0 }), (
|
|
1814
|
+
D();
|
|
1815
|
+
}, { deep: !0 }), B(() => y?.value, () => {
|
|
1816
|
+
D();
|
|
1817
|
+
}), (e, t) => (l(), w("div", fr, [d.value ? c.value ? (l(), w("div", hr, [z(E(Ht), {
|
|
1801
1818
|
size: 24,
|
|
1802
1819
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1803
|
-
}), M("span",
|
|
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, {
|
|
1804
1821
|
key: 1,
|
|
1805
1822
|
class: "tpl:w-48"
|
|
1806
1823
|
})) : (l(), w("button", {
|
|
@@ -1808,16 +1825,16 @@ var or = { class: "tpl:w-full" }, sr = {
|
|
|
1808
1825
|
type: "button",
|
|
1809
1826
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1810
1827
|
onClick: t[0] ||= O((...e) => E(m) && E(m)(...e), ["stop"])
|
|
1811
|
-
}, [u.value?.icon ? (l(), k(
|
|
1828
|
+
}, [u.value?.icon ? (l(), k(Gn, {
|
|
1812
1829
|
key: 0,
|
|
1813
1830
|
icon: u.value.icon,
|
|
1814
1831
|
size: 16
|
|
1815
|
-
}, null, 8, ["icon"])) : T("", !0), L(" " + S(u.value?.dataSource?.label || E(a).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (l(), w("div",
|
|
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), {
|
|
1816
1833
|
size: 24,
|
|
1817
1834
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1818
|
-
}), M("span",
|
|
1835
|
+
}), M("span", mr, S(E(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1819
1836
|
}
|
|
1820
|
-
}),
|
|
1837
|
+
}), xr = { class: "tpl:w-full" }, Sr = /* @__PURE__ */ R({
|
|
1821
1838
|
__name: "DividerBlock",
|
|
1822
1839
|
props: {
|
|
1823
1840
|
block: {},
|
|
@@ -1829,63 +1846,63 @@ var or = { class: "tpl:w-full" }, sr = {
|
|
|
1829
1846
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
1830
1847
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1831
1848
|
}));
|
|
1832
|
-
return (e, t) => (l(), w("div",
|
|
1849
|
+
return (e, t) => (l(), w("div", xr, [M("hr", {
|
|
1833
1850
|
class: "tpl:m-0 tpl:border-none",
|
|
1834
1851
|
style: F(n.value)
|
|
1835
1852
|
}, null, 4)]));
|
|
1836
1853
|
}
|
|
1837
|
-
}),
|
|
1854
|
+
}), Cr = { class: "tpl:w-full" }, wr = ["srcdoc", "title"], Tr = {
|
|
1838
1855
|
key: 1,
|
|
1839
1856
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1840
|
-
},
|
|
1857
|
+
}, Er = {
|
|
1841
1858
|
key: 0,
|
|
1842
1859
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1843
|
-
},
|
|
1860
|
+
}, Dr = {
|
|
1844
1861
|
key: 1,
|
|
1845
1862
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1846
|
-
},
|
|
1863
|
+
}, Or = /* @__PURE__ */ R({
|
|
1847
1864
|
__name: "HtmlBlock",
|
|
1848
1865
|
props: {
|
|
1849
1866
|
block: {},
|
|
1850
1867
|
viewport: {}
|
|
1851
1868
|
},
|
|
1852
1869
|
setup(e) {
|
|
1853
|
-
let t = e, { t: n } =
|
|
1854
|
-
function
|
|
1855
|
-
let e =
|
|
1856
|
-
e && (
|
|
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
|
+
function m() {
|
|
1872
|
+
let e = u.value?.contentDocument;
|
|
1873
|
+
e && (d.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
1857
1874
|
}
|
|
1858
|
-
function
|
|
1859
|
-
|
|
1860
|
-
let e =
|
|
1861
|
-
e && typeof ResizeObserver < "u" && (
|
|
1875
|
+
function h() {
|
|
1876
|
+
f?.disconnect(), f = null, m();
|
|
1877
|
+
let e = u.value?.contentDocument?.documentElement;
|
|
1878
|
+
e && typeof ResizeObserver < "u" && (f = new ResizeObserver(() => m()), f.observe(e));
|
|
1862
1879
|
}
|
|
1863
1880
|
return B(a, (e) => {
|
|
1864
|
-
e || (
|
|
1881
|
+
e || (f?.disconnect(), f = null);
|
|
1865
1882
|
}), D(() => {
|
|
1866
|
-
|
|
1867
|
-
}), (
|
|
1883
|
+
f?.disconnect(), f = null;
|
|
1884
|
+
}), (e, t) => (l(), w("div", Cr, [a.value ? (l(), w("iframe", {
|
|
1868
1885
|
key: 0,
|
|
1869
1886
|
ref_key: "iframeRef",
|
|
1870
|
-
ref:
|
|
1871
|
-
srcdoc:
|
|
1887
|
+
ref: u,
|
|
1888
|
+
srcdoc: c.value,
|
|
1872
1889
|
sandbox: "allow-same-origin",
|
|
1873
1890
|
title: E(n).html.preview,
|
|
1874
1891
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1875
|
-
style: F({ height: `${
|
|
1876
|
-
onLoad:
|
|
1877
|
-
}, null, 44,
|
|
1892
|
+
style: F({ height: `${d.value}px` }),
|
|
1893
|
+
onLoad: h
|
|
1894
|
+
}, null, 44, wr)) : (l(), w("div", Tr, [z(E(kt), {
|
|
1878
1895
|
size: 24,
|
|
1879
1896
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1880
|
-
}), i.value ? (l(), w("span",
|
|
1897
|
+
}), i.value ? (l(), w("span", Er, S(E(n).html.preview), 1)) : (l(), w("span", Dr, S(E(n).html.empty), 1))]))]));
|
|
1881
1898
|
}
|
|
1882
|
-
}),
|
|
1883
|
-
function
|
|
1884
|
-
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || A(r), { isOverDropZone: a } =
|
|
1899
|
+
}), kr = "image/";
|
|
1900
|
+
function Ar(e) {
|
|
1901
|
+
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || A(r), { isOverDropZone: a } = Ue(t, {
|
|
1885
1902
|
preventDefaultForUnhandled: !0,
|
|
1886
1903
|
onDrop: (e) => {
|
|
1887
1904
|
if (!i()) return;
|
|
1888
|
-
let t = (e ?? []).filter((e) => e.type.startsWith(
|
|
1905
|
+
let t = (e ?? []).filter((e) => e.type.startsWith(kr));
|
|
1889
1906
|
t.length > 0 && n([t[0]]);
|
|
1890
1907
|
}
|
|
1891
1908
|
});
|
|
@@ -1893,17 +1910,17 @@ function wr(e) {
|
|
|
1893
1910
|
}
|
|
1894
1911
|
//#endregion
|
|
1895
1912
|
//#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1896
|
-
var
|
|
1913
|
+
var jr = {
|
|
1897
1914
|
key: 0,
|
|
1898
1915
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1899
1916
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
|
|
1900
|
-
},
|
|
1917
|
+
}, Mr = ["href"], Nr = ["src", "alt"], Pr = ["src", "alt"], Fr = {
|
|
1901
1918
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1902
1919
|
style: { opacity: "0.7" }
|
|
1903
|
-
},
|
|
1920
|
+
}, Ir = ["href"], Lr = ["src", "alt"], Rr = ["src", "alt"], zr = {
|
|
1904
1921
|
key: 4,
|
|
1905
1922
|
class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1906
|
-
},
|
|
1923
|
+
}, Br = ["aria-label"], Vr = { key: 1 }, Hr = /* @__PURE__ */ R({
|
|
1907
1924
|
__name: "ImageBlock",
|
|
1908
1925
|
props: {
|
|
1909
1926
|
block: {},
|
|
@@ -1911,7 +1928,7 @@ var Tr = {
|
|
|
1911
1928
|
},
|
|
1912
1929
|
emits: ["update"],
|
|
1913
1930
|
setup(e, { emit: t }) {
|
|
1914
|
-
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();
|
|
1915
1932
|
async function u() {
|
|
1916
1933
|
let e = await o?.({ accept: ["images"] });
|
|
1917
1934
|
if (c.alive && e) {
|
|
@@ -1938,7 +1955,7 @@ var Tr = {
|
|
|
1938
1955
|
}
|
|
1939
1956
|
}
|
|
1940
1957
|
}
|
|
1941
|
-
let { isOver: g } =
|
|
1958
|
+
let { isOver: g } = Ar({
|
|
1942
1959
|
target: d,
|
|
1943
1960
|
enabled: m,
|
|
1944
1961
|
onFiles: h
|
|
@@ -1951,18 +1968,18 @@ var Tr = {
|
|
|
1951
1968
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1952
1969
|
marginRight: e === "center" ? "auto" : void 0
|
|
1953
1970
|
};
|
|
1954
|
-
}), b = C(() => H(n.block.src, a)), x =
|
|
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);
|
|
1955
1972
|
return (t, n) => (l(), w("div", {
|
|
1956
1973
|
ref_key: "dropZoneRef",
|
|
1957
1974
|
ref: d,
|
|
1958
1975
|
"data-testid": "image-drop-zone",
|
|
1959
1976
|
class: "tpl:relative tpl:w-full",
|
|
1960
1977
|
style: F(_.value)
|
|
1961
|
-
}, [m.value && (E(g) || f.value) ? (l(), w("div",
|
|
1978
|
+
}, [m.value && (E(g) || f.value) ? (l(), w("div", jr, [f.value ? (l(), w(I, { key: 0 }, [z(E(Rt), {
|
|
1962
1979
|
class: "tpl-spinner",
|
|
1963
1980
|
size: 20,
|
|
1964
1981
|
"stroke-width": 2
|
|
1965
|
-
}), 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), {
|
|
1966
1983
|
size: 20,
|
|
1967
1984
|
"stroke-width": 1.5
|
|
1968
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", {
|
|
@@ -1977,22 +1994,22 @@ var Tr = {
|
|
|
1977
1994
|
src: E(D),
|
|
1978
1995
|
alt: e.block.alt || E(i).image.altTextPlaceholder,
|
|
1979
1996
|
style: F(y.value)
|
|
1980
|
-
}, null, 12,
|
|
1997
|
+
}, null, 12, Nr)], 8, Mr)) : (l(), w("img", {
|
|
1981
1998
|
key: 1,
|
|
1982
1999
|
class: "tpl:border-0",
|
|
1983
2000
|
src: E(D),
|
|
1984
2001
|
alt: e.block.alt,
|
|
1985
2002
|
style: F(y.value)
|
|
1986
|
-
}, null, 12,
|
|
2003
|
+
}, null, 12, Pr))], 64)) : e.block.src && b.value ? (l(), w("div", {
|
|
1987
2004
|
key: 2,
|
|
1988
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)]",
|
|
1989
2006
|
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
|
|
1990
|
-
}, [z(E(
|
|
2007
|
+
}, [z(E(It), {
|
|
1991
2008
|
size: 32,
|
|
1992
2009
|
"stroke-width": 1.5,
|
|
1993
2010
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1994
2011
|
style: { opacity: "0.5" }
|
|
1995
|
-
}), M("span",
|
|
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", {
|
|
1996
2013
|
key: 0,
|
|
1997
2014
|
href: e.block.linkUrl,
|
|
1998
2015
|
target: "_blank",
|
|
@@ -2004,33 +2021,33 @@ var Tr = {
|
|
|
2004
2021
|
src: E(x),
|
|
2005
2022
|
alt: e.block.alt || E(i).image.altTextPlaceholder,
|
|
2006
2023
|
style: F(y.value)
|
|
2007
|
-
}, null, 12,
|
|
2024
|
+
}, null, 12, Lr)], 8, Ir)) : (l(), w("img", {
|
|
2008
2025
|
key: 1,
|
|
2009
2026
|
class: "tpl:border-0",
|
|
2010
2027
|
src: E(x),
|
|
2011
2028
|
alt: e.block.alt,
|
|
2012
2029
|
style: F(y.value)
|
|
2013
|
-
}, null, 12,
|
|
2030
|
+
}, null, 12, Rr))], 64)) : (l(), w("div", zr, [s.value ? (l(), w("button", {
|
|
2014
2031
|
key: 0,
|
|
2015
2032
|
"aria-label": E(i).image.browseMedia,
|
|
2016
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)]",
|
|
2017
2034
|
onClick: O(u, ["stop"])
|
|
2018
|
-
}, [z(E(
|
|
2035
|
+
}, [z(E(It), {
|
|
2019
2036
|
size: 14,
|
|
2020
2037
|
"stroke-width": 1.5
|
|
2021
|
-
}), L(" " + S(E(i).image.browseMedia), 1)], 8,
|
|
2038
|
+
}), L(" " + S(E(i).image.browseMedia), 1)], 8, Br)) : (l(), w("span", Vr, S(E(i).image.clickToAdd), 1))]))], 4));
|
|
2022
2039
|
}
|
|
2023
|
-
}),
|
|
2040
|
+
}), Ur = { class: "tpl:w-full" }, Wr = ["href"], Gr = {
|
|
2024
2041
|
key: 1,
|
|
2025
2042
|
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)]"
|
|
2026
|
-
},
|
|
2043
|
+
}, Kr = /* @__PURE__ */ R({
|
|
2027
2044
|
__name: "MenuBlock",
|
|
2028
2045
|
props: {
|
|
2029
2046
|
block: {},
|
|
2030
2047
|
viewport: {}
|
|
2031
2048
|
},
|
|
2032
2049
|
setup(e) {
|
|
2033
|
-
let t = e, { t: n } =
|
|
2050
|
+
let t = e, { t: n } = K(), r = C(() => ({
|
|
2034
2051
|
display: "flex",
|
|
2035
2052
|
flexWrap: "wrap",
|
|
2036
2053
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -2042,7 +2059,7 @@ var Tr = {
|
|
|
2042
2059
|
function a(e) {
|
|
2043
2060
|
return e || t.block.linkColor || t.block.color;
|
|
2044
2061
|
}
|
|
2045
|
-
return (t, o) => (l(), w("div",
|
|
2062
|
+
return (t, o) => (l(), w("div", Ur, [i.value ? (l(), w("div", {
|
|
2046
2063
|
key: 0,
|
|
2047
2064
|
style: F(r.value)
|
|
2048
2065
|
}, [(l(!0), w(I, null, f(e.block.items, (t, n) => (l(), w(I, { key: t.id }, [M("a", {
|
|
@@ -2054,15 +2071,15 @@ var Tr = {
|
|
|
2054
2071
|
textDecoration: t.underline ? "underline" : "none"
|
|
2055
2072
|
}),
|
|
2056
2073
|
onClick: o[0] ||= O(() => {}, ["prevent"])
|
|
2057
|
-
}, [z(
|
|
2074
|
+
}, [z(zn, { text: t.text || "..." }, null, 8, ["text"])], 12, Wr), n < e.block.items.length - 1 ? (l(), w("span", {
|
|
2058
2075
|
key: 0,
|
|
2059
2076
|
style: F({
|
|
2060
2077
|
color: e.block.separatorColor,
|
|
2061
2078
|
padding: `0 ${e.block.spacing}px`
|
|
2062
2079
|
})
|
|
2063
|
-
}, S(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (l(), w("div",
|
|
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)]))]));
|
|
2064
2081
|
}
|
|
2065
|
-
}),
|
|
2082
|
+
}), qr = /* @__PURE__ */ new Set([
|
|
2066
2083
|
"http",
|
|
2067
2084
|
"https",
|
|
2068
2085
|
"mailto",
|
|
@@ -2072,7 +2089,7 @@ var Tr = {
|
|
|
2072
2089
|
"sms",
|
|
2073
2090
|
"xmpp",
|
|
2074
2091
|
"cid"
|
|
2075
|
-
]),
|
|
2092
|
+
]), Jr = /* @__PURE__ */ new Set([
|
|
2076
2093
|
"SCRIPT",
|
|
2077
2094
|
"STYLE",
|
|
2078
2095
|
"IFRAME",
|
|
@@ -2082,7 +2099,7 @@ var Tr = {
|
|
|
2082
2099
|
"META",
|
|
2083
2100
|
"BASE",
|
|
2084
2101
|
"FORM"
|
|
2085
|
-
]),
|
|
2102
|
+
]), Yr = /* @__PURE__ */ new Set([
|
|
2086
2103
|
"href",
|
|
2087
2104
|
"xlink:href",
|
|
2088
2105
|
"formaction",
|
|
@@ -2091,16 +2108,16 @@ var Tr = {
|
|
|
2091
2108
|
"background",
|
|
2092
2109
|
"poster"
|
|
2093
2110
|
]);
|
|
2094
|
-
function
|
|
2111
|
+
function Xr(e, t) {
|
|
2095
2112
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
2096
2113
|
if (!n || n.startsWith("#")) return !0;
|
|
2097
2114
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
2098
2115
|
if (!r) return !0;
|
|
2099
2116
|
let i = r[1].toLowerCase();
|
|
2100
|
-
return
|
|
2117
|
+
return qr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
2101
2118
|
}
|
|
2102
|
-
function
|
|
2103
|
-
if (
|
|
2119
|
+
function Zr(e) {
|
|
2120
|
+
if (Jr.has(e.tagName)) {
|
|
2104
2121
|
e.remove();
|
|
2105
2122
|
return;
|
|
2106
2123
|
}
|
|
@@ -2112,57 +2129,57 @@ function Gr(e) {
|
|
|
2112
2129
|
e.removeAttribute(n);
|
|
2113
2130
|
continue;
|
|
2114
2131
|
}
|
|
2115
|
-
if (
|
|
2116
|
-
|
|
2132
|
+
if (Yr.has(t)) {
|
|
2133
|
+
Xr(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
|
|
2117
2134
|
continue;
|
|
2118
2135
|
}
|
|
2119
2136
|
if (t === "src") {
|
|
2120
|
-
|
|
2137
|
+
Xr(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
|
|
2121
2138
|
continue;
|
|
2122
2139
|
}
|
|
2123
2140
|
t === "srcdoc" && e.removeAttribute(n);
|
|
2124
2141
|
}
|
|
2125
2142
|
let n = Array.from(e.children);
|
|
2126
|
-
for (let e of n)
|
|
2143
|
+
for (let e of n) Zr(e);
|
|
2127
2144
|
}
|
|
2128
|
-
function
|
|
2145
|
+
function Qr(e) {
|
|
2129
2146
|
if (typeof DOMParser > "u") return e;
|
|
2130
2147
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
2131
|
-
for (let e of n)
|
|
2148
|
+
for (let e of n) Zr(e);
|
|
2132
2149
|
return t.innerHTML;
|
|
2133
2150
|
}
|
|
2134
2151
|
//#endregion
|
|
2135
2152
|
//#region src/composables/useEditableTextBlock.ts
|
|
2136
|
-
function
|
|
2137
|
-
let t = p(
|
|
2138
|
-
top:
|
|
2139
|
-
left:
|
|
2153
|
+
function $r(e) {
|
|
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
|
+
top: c.value - 8,
|
|
2156
|
+
left: l.value
|
|
2140
2157
|
}));
|
|
2141
|
-
function
|
|
2142
|
-
|
|
2158
|
+
function f() {
|
|
2159
|
+
o.value = !0;
|
|
2143
2160
|
}
|
|
2144
|
-
function
|
|
2145
|
-
|
|
2161
|
+
function m() {
|
|
2162
|
+
o.value = !1;
|
|
2146
2163
|
}
|
|
2147
2164
|
return {
|
|
2148
|
-
isEditing:
|
|
2149
|
-
blockRef:
|
|
2150
|
-
toolbarPosition:
|
|
2151
|
-
resolvedContent:
|
|
2152
|
-
handleDoubleClick:
|
|
2153
|
-
handleEditorDone:
|
|
2165
|
+
isEditing: o,
|
|
2166
|
+
blockRef: s,
|
|
2167
|
+
toolbarPosition: d,
|
|
2168
|
+
resolvedContent: a,
|
|
2169
|
+
handleDoubleClick: f,
|
|
2170
|
+
handleEditorDone: m
|
|
2154
2171
|
};
|
|
2155
2172
|
}
|
|
2156
2173
|
//#endregion
|
|
2157
2174
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2158
|
-
var
|
|
2175
|
+
var ei = ["innerHTML"], ti = /* @__PURE__ */ R({
|
|
2159
2176
|
__name: "ParagraphBlock",
|
|
2160
2177
|
props: {
|
|
2161
2178
|
block: {},
|
|
2162
2179
|
viewport: {}
|
|
2163
2180
|
},
|
|
2164
2181
|
setup(e) {
|
|
2165
|
-
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);
|
|
2166
2183
|
return (t, u) => (l(), w("div", {
|
|
2167
2184
|
ref_key: "blockRef",
|
|
2168
2185
|
ref: i,
|
|
@@ -2181,54 +2198,54 @@ var Jr = ["innerHTML"], Yr = /* @__PURE__ */ R({
|
|
|
2181
2198
|
key: 1,
|
|
2182
2199
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
|
|
2183
2200
|
innerHTML: E(o)
|
|
2184
|
-
}, null, 8,
|
|
2201
|
+
}, null, 8, ei))], 544));
|
|
2185
2202
|
}
|
|
2186
2203
|
});
|
|
2187
2204
|
//#endregion
|
|
2188
2205
|
//#region src/utils/blockComponentResolver.ts
|
|
2189
|
-
function
|
|
2206
|
+
function ni(e) {
|
|
2190
2207
|
let t = { fontFamily: e.fontFamily };
|
|
2191
2208
|
return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
|
|
2192
2209
|
}
|
|
2193
|
-
function
|
|
2210
|
+
function ri(e, t, n) {
|
|
2194
2211
|
if (t) {
|
|
2195
2212
|
let n = t.getComponent(e);
|
|
2196
2213
|
if (n) return n;
|
|
2197
2214
|
}
|
|
2198
2215
|
return n[e.type] ?? null;
|
|
2199
2216
|
}
|
|
2200
|
-
function
|
|
2217
|
+
function ii(e) {
|
|
2201
2218
|
let { padding: t, backgroundColor: n } = e.styles, r = {
|
|
2202
2219
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
2203
2220
|
backgroundColor: n || "transparent"
|
|
2204
2221
|
};
|
|
2205
2222
|
return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
|
|
2206
2223
|
}
|
|
2207
|
-
function
|
|
2224
|
+
function ai(e) {
|
|
2208
2225
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
2209
2226
|
let t = e.wrapper, n = {};
|
|
2210
2227
|
return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
|
|
2211
2228
|
}
|
|
2212
2229
|
//#endregion
|
|
2213
2230
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
2214
|
-
var
|
|
2231
|
+
var oi = [
|
|
2215
2232
|
"data-block-id",
|
|
2216
2233
|
"data-block-type",
|
|
2217
2234
|
"data-tpl-picked"
|
|
2218
|
-
],
|
|
2235
|
+
], si = ["aria-label"], ci = [
|
|
2219
2236
|
"aria-label",
|
|
2220
2237
|
"aria-pressed",
|
|
2221
2238
|
"title"
|
|
2222
|
-
],
|
|
2239
|
+
], li = ["aria-label", "title"], ui = ["aria-label", "title"], di = ["aria-label", "title"], fi = {
|
|
2223
2240
|
key: 1,
|
|
2224
2241
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
2225
|
-
},
|
|
2242
|
+
}, pi = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, mi = {
|
|
2226
2243
|
key: 2,
|
|
2227
2244
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2228
|
-
},
|
|
2245
|
+
}, hi = ["aria-label", "title"], gi = {
|
|
2229
2246
|
key: 3,
|
|
2230
2247
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
2231
|
-
},
|
|
2248
|
+
}, _i = ["aria-label"], vi = /*#__PURE__*/ qt(/* @__PURE__ */ R({
|
|
2232
2249
|
__name: "BlockWrapper",
|
|
2233
2250
|
props: {
|
|
2234
2251
|
block: {},
|
|
@@ -2240,7 +2257,7 @@ var ei = [
|
|
|
2240
2257
|
},
|
|
2241
2258
|
emits: ["select"],
|
|
2242
2259
|
setup(e, { emit: t }) {
|
|
2243
|
-
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);
|
|
2244
2261
|
async function h() {
|
|
2245
2262
|
await d(), u.value?.focus();
|
|
2246
2263
|
}
|
|
@@ -2266,26 +2283,26 @@ var ei = [
|
|
|
2266
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 ? {
|
|
2267
2284
|
desktop: o.viewport.desktop,
|
|
2268
2285
|
mobile: o.viewport.mobile
|
|
2269
|
-
}[i.viewport] ?? i.viewport : ""), D = C(() => !!i.block.displayCondition), k = p(
|
|
2270
|
-
let e =
|
|
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
|
+
let e = ii(i.block), t = {
|
|
2271
2288
|
padding: e.padding,
|
|
2272
2289
|
backgroundColor: e.backgroundColor
|
|
2273
2290
|
};
|
|
2274
2291
|
return e.borderRadius && (t.borderRadius = e.borderRadius), t;
|
|
2275
|
-
}),
|
|
2276
|
-
function
|
|
2292
|
+
}), te = C(() => ai(i.block));
|
|
2293
|
+
function ne(e) {
|
|
2277
2294
|
i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
|
|
2278
2295
|
}
|
|
2279
|
-
function
|
|
2296
|
+
function re() {
|
|
2280
2297
|
k?.deleteBlock(i.block.id);
|
|
2281
2298
|
}
|
|
2282
|
-
function
|
|
2299
|
+
function ie() {
|
|
2283
2300
|
k?.duplicateBlock(i.block);
|
|
2284
2301
|
}
|
|
2285
|
-
function
|
|
2302
|
+
function ae() {
|
|
2286
2303
|
N.savedBlocks?.startPicking(i.block.id);
|
|
2287
2304
|
}
|
|
2288
|
-
function
|
|
2305
|
+
function oe() {
|
|
2289
2306
|
A?.toggleBlock(i.block.id);
|
|
2290
2307
|
}
|
|
2291
2308
|
return (t, i) => y.value ? T("", !0) : (l(), w("div", {
|
|
@@ -2299,7 +2316,7 @@ var ei = [
|
|
|
2299
2316
|
"data-block-id": e.block.id,
|
|
2300
2317
|
"data-block-type": e.block.type,
|
|
2301
2318
|
"data-tpl-picked": e.picked || void 0,
|
|
2302
|
-
onClick:
|
|
2319
|
+
onClick: ne
|
|
2303
2320
|
}, [
|
|
2304
2321
|
z(E(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
|
|
2305
2322
|
I.value ? (l(), w("div", {
|
|
@@ -2317,64 +2334,64 @@ var ei = [
|
|
|
2317
2334
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2318
2335
|
title: E(o).blockActions.drag,
|
|
2319
2336
|
onKeydown: g
|
|
2320
|
-
}, [z(E(
|
|
2337
|
+
}, [z(E(Lt), {
|
|
2321
2338
|
size: 14,
|
|
2322
2339
|
"stroke-width": 1.5
|
|
2323
|
-
})], 40,
|
|
2340
|
+
})], 40, ci),
|
|
2324
2341
|
M("button", {
|
|
2325
2342
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2326
2343
|
"aria-label": E(o).blockActions.duplicate,
|
|
2327
2344
|
title: E(o).blockActions.duplicate,
|
|
2328
|
-
onClick: O(
|
|
2329
|
-
}, [z(E(
|
|
2345
|
+
onClick: O(ie, ["stop"])
|
|
2346
|
+
}, [z(E(Mt), {
|
|
2330
2347
|
size: 14,
|
|
2331
2348
|
"stroke-width": 1.5
|
|
2332
|
-
})], 8,
|
|
2349
|
+
})], 8, li),
|
|
2333
2350
|
ee.value ? (l(), w("button", {
|
|
2334
2351
|
key: 0,
|
|
2335
2352
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2336
2353
|
"aria-label": E(o).blockActions.saveAsBlock,
|
|
2337
2354
|
title: E(o).blockActions.saveAsBlock,
|
|
2338
|
-
onClick: O(
|
|
2339
|
-
}, [z(E(
|
|
2355
|
+
onClick: O(ae, ["stop"])
|
|
2356
|
+
}, [z(E(Gt), {
|
|
2340
2357
|
size: 14,
|
|
2341
2358
|
"stroke-width": 1.5
|
|
2342
|
-
})], 8,
|
|
2359
|
+
})], 8, ui)) : T("", !0),
|
|
2343
2360
|
M("button", {
|
|
2344
2361
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2345
2362
|
"aria-label": E(o).blockActions.delete,
|
|
2346
2363
|
title: E(o).blockActions.delete,
|
|
2347
|
-
onClick: O(
|
|
2348
|
-
}, [z(E(
|
|
2364
|
+
onClick: O(re, ["stop"])
|
|
2365
|
+
}, [z(E(Ft), {
|
|
2349
2366
|
size: 14,
|
|
2350
2367
|
"stroke-width": 1.5
|
|
2351
|
-
})], 8,
|
|
2352
|
-
], 8,
|
|
2353
|
-
_.value ? (l(), w("div",
|
|
2368
|
+
})], 8, di)
|
|
2369
|
+
], 8, si)) : T("", !0),
|
|
2370
|
+
_.value ? (l(), w("div", fi, [M("span", pi, [z(E(Wt), {
|
|
2354
2371
|
size: 12,
|
|
2355
2372
|
"stroke-width": 1.5
|
|
2356
2373
|
}), L(" " + S(E(s)(E(o).blockActions.hiddenOnViewport, { viewport: x.value })), 1)])])) : T("", !0),
|
|
2357
|
-
D.value && !_.value ? (l(), w("div",
|
|
2374
|
+
D.value && !_.value ? (l(), w("div", mi, [M("button", {
|
|
2358
2375
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2359
2376
|
"aria-label": E(o).blockActions.conditionToggle,
|
|
2360
2377
|
title: e.block.displayCondition?.label,
|
|
2361
|
-
onClick: O(
|
|
2362
|
-
}, [z(E(
|
|
2378
|
+
onClick: O(oe, ["stop"])
|
|
2379
|
+
}, [z(E(Ut), {
|
|
2363
2380
|
size: 12,
|
|
2364
2381
|
"stroke-width": 2
|
|
2365
|
-
})], 8,
|
|
2366
|
-
R.value > 0 && !_.value ? (l(), w("div",
|
|
2382
|
+
})], 8, hi)])) : T("", !0),
|
|
2383
|
+
R.value > 0 && !_.value ? (l(), w("div", gi, [M("button", {
|
|
2367
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)]",
|
|
2368
2385
|
"aria-label": E(s)(E(o).blockActions.comments, { count: String(R.value) }),
|
|
2369
2386
|
onClick: i[0] ||= O((t) => E(N).comments?.openForBlock(e.block.id), ["stop"])
|
|
2370
|
-
}, [z(E(
|
|
2387
|
+
}, [z(E(Vt), {
|
|
2371
2388
|
size: 12,
|
|
2372
2389
|
"stroke-width": 2.5
|
|
2373
|
-
}), L(" " + S(R.value), 1)], 8,
|
|
2374
|
-
|
|
2390
|
+
}), L(" " + S(R.value), 1)], 8, _i)])) : T("", !0),
|
|
2391
|
+
te.value ? (l(), w("div", {
|
|
2375
2392
|
key: 4,
|
|
2376
2393
|
class: "tpl-section-wrapper",
|
|
2377
|
-
style: F(
|
|
2394
|
+
style: F(te.value)
|
|
2378
2395
|
}, [M("div", {
|
|
2379
2396
|
class: "tpl-block-content",
|
|
2380
2397
|
style: F(B.value)
|
|
@@ -2383,31 +2400,31 @@ var ei = [
|
|
|
2383
2400
|
class: "tpl-block-content",
|
|
2384
2401
|
style: F(B.value)
|
|
2385
2402
|
}, [r(t.$slots, "default", {}, void 0, !0)], 4))
|
|
2386
|
-
], 10,
|
|
2403
|
+
], 10, oi));
|
|
2387
2404
|
}
|
|
2388
2405
|
}), [["__scopeId", "data-v-43c10a08"]]);
|
|
2389
2406
|
//#endregion
|
|
2390
2407
|
//#region src/utils/unwrapParagraph.ts
|
|
2391
|
-
function
|
|
2408
|
+
function yi(e) {
|
|
2392
2409
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
2393
2410
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
2394
2411
|
}
|
|
2395
2412
|
//#endregion
|
|
2396
2413
|
//#region src/components/blocks/TitleBlock.vue
|
|
2397
|
-
var
|
|
2414
|
+
var bi = /* @__PURE__ */ R({
|
|
2398
2415
|
__name: "TitleBlock",
|
|
2399
2416
|
props: {
|
|
2400
2417
|
block: {},
|
|
2401
2418
|
viewport: {}
|
|
2402
2419
|
},
|
|
2403
2420
|
setup(e) {
|
|
2404
|
-
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(() => {
|
|
2405
2422
|
let e = {
|
|
2406
|
-
fontSize: `${
|
|
2423
|
+
fontSize: `${de[t.block.level]}px`,
|
|
2407
2424
|
textAlign: t.block.textAlign
|
|
2408
2425
|
};
|
|
2409
2426
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
2410
|
-
}), f = C(() => `h${t.block.level}`), p = C(() =>
|
|
2427
|
+
}), f = C(() => `h${t.block.level}`), p = C(() => yi(o.value));
|
|
2411
2428
|
return (t, o) => (l(), w("div", {
|
|
2412
2429
|
ref_key: "blockRef",
|
|
2413
2430
|
ref: i,
|
|
@@ -2433,16 +2450,16 @@ var mi = /* @__PURE__ */ R({
|
|
|
2433
2450
|
});
|
|
2434
2451
|
//#endregion
|
|
2435
2452
|
//#region src/utils/sectionColumnDrop.ts
|
|
2436
|
-
function
|
|
2453
|
+
function xi(e) {
|
|
2437
2454
|
return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
|
|
2438
2455
|
}
|
|
2439
2456
|
//#endregion
|
|
2440
2457
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2441
|
-
var
|
|
2458
|
+
var Si = { class: "tpl:w-full" }, Ci = {
|
|
2442
2459
|
key: 0,
|
|
2443
2460
|
"data-testid": "section-drop-hint",
|
|
2444
2461
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
2445
|
-
},
|
|
2462
|
+
}, wi = /* @__PURE__ */ R({
|
|
2446
2463
|
__name: "SectionBlock",
|
|
2447
2464
|
props: {
|
|
2448
2465
|
block: {},
|
|
@@ -2450,13 +2467,13 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2450
2467
|
},
|
|
2451
2468
|
setup(e) {
|
|
2452
2469
|
let t = {
|
|
2453
|
-
title:
|
|
2454
|
-
paragraph:
|
|
2455
|
-
image:
|
|
2456
|
-
button:
|
|
2457
|
-
divider:
|
|
2458
|
-
custom:
|
|
2459
|
-
}, n = e, { t: r } =
|
|
2470
|
+
title: bi,
|
|
2471
|
+
paragraph: ti,
|
|
2472
|
+
image: Hr,
|
|
2473
|
+
button: Hn,
|
|
2474
|
+
divider: Sr,
|
|
2475
|
+
custom: br
|
|
2476
|
+
}, n = e, { t: r } = K(), i = Ye(G, "SectionBlock"), o = p(st, null), s = p(gt, null), u = p(vt, {});
|
|
2460
2477
|
function d(e) {
|
|
2461
2478
|
let t = u.savedBlocks;
|
|
2462
2479
|
if (t?.isPicking.value) {
|
|
@@ -2491,7 +2508,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2491
2508
|
a[e] = r, i.updateBlock(n.block.id, { children: a });
|
|
2492
2509
|
}
|
|
2493
2510
|
function b(e) {
|
|
2494
|
-
return
|
|
2511
|
+
return ri(e, s, t);
|
|
2495
2512
|
}
|
|
2496
2513
|
function x(e, t) {
|
|
2497
2514
|
e.type === "custom" && i.updateBlock(e.id, {
|
|
@@ -2499,7 +2516,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2499
2516
|
dataSourceFetched: t.dataSourceFetched
|
|
2500
2517
|
});
|
|
2501
2518
|
}
|
|
2502
|
-
return (t, n) => (l(), w("div",
|
|
2519
|
+
return (t, n) => (l(), w("div", Si, [M("div", { class: j(["tpl:flex tpl:gap-0", { "tpl:flex-col": _.value }]) }, [(l(!0), w(I, null, f(g.value, (t, n) => (l(), w("div", {
|
|
2503
2520
|
key: n,
|
|
2504
2521
|
class: j(["tpl:relative tpl:min-h-[60px] tpl:rounded", v(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2505
2522
|
style: F({ width: _.value ? "100%" : m.value[n] })
|
|
@@ -2508,7 +2525,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2508
2525
|
group: {
|
|
2509
2526
|
name: "blocks",
|
|
2510
2527
|
pull: !0,
|
|
2511
|
-
put: (e, t, n) => E(
|
|
2528
|
+
put: (e, t, n) => E(xi)(n)
|
|
2512
2529
|
},
|
|
2513
2530
|
animation: 150,
|
|
2514
2531
|
"ghost-class": "tpl-ghost",
|
|
@@ -2521,7 +2538,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2521
2538
|
class: "tpl:min-h-[60px]",
|
|
2522
2539
|
"onUpdate:modelValue": (e) => y(n, e)
|
|
2523
2540
|
}, {
|
|
2524
|
-
default: h(() => [(l(!0), w(I, null, f(v(n), (t) => a((l(), w("div", { key: t.id }, [z(
|
|
2541
|
+
default: h(() => [(l(!0), w(I, null, f(v(n), (t) => a((l(), w("div", { key: t.id }, [z(vi, {
|
|
2525
2542
|
block: t,
|
|
2526
2543
|
"is-selected": E(i).state.selectedBlockId === t.id,
|
|
2527
2544
|
viewport: e.viewport,
|
|
@@ -2553,13 +2570,13 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2553
2570
|
"model-value",
|
|
2554
2571
|
"group",
|
|
2555
2572
|
"onUpdate:modelValue"
|
|
2556
|
-
]), v(n).length === 0 ? (l(), w("div",
|
|
2573
|
+
]), v(n).length === 0 ? (l(), w("div", Ci, [M("span", null, S(E(r).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
|
|
2557
2574
|
}
|
|
2558
|
-
}),
|
|
2575
|
+
}), Ti = me, Ei = {
|
|
2559
2576
|
small: 24,
|
|
2560
2577
|
medium: 32,
|
|
2561
2578
|
large: 48
|
|
2562
|
-
},
|
|
2579
|
+
}, Di = [
|
|
2563
2580
|
"facebook",
|
|
2564
2581
|
"twitter",
|
|
2565
2582
|
"instagram",
|
|
@@ -2577,11 +2594,11 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2577
2594
|
"github",
|
|
2578
2595
|
"dribbble",
|
|
2579
2596
|
"behance"
|
|
2580
|
-
],
|
|
2597
|
+
], Oi = [
|
|
2581
2598
|
"width",
|
|
2582
2599
|
"height",
|
|
2583
2600
|
"fill"
|
|
2584
|
-
],
|
|
2601
|
+
], ki = ["d"], Ai = /* @__PURE__ */ R({
|
|
2585
2602
|
__name: "SocialIconSvg",
|
|
2586
2603
|
props: {
|
|
2587
2604
|
platform: {},
|
|
@@ -2589,7 +2606,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2589
2606
|
iconSize: {}
|
|
2590
2607
|
},
|
|
2591
2608
|
setup(e) {
|
|
2592
|
-
let t = e, n = C(() =>
|
|
2609
|
+
let t = e, n = C(() => Ti[t.platform]), r = C(() => Ei[t.iconSize]), i = C(() => {
|
|
2593
2610
|
let e = {
|
|
2594
2611
|
display: "inline-flex",
|
|
2595
2612
|
alignItems: "center",
|
|
@@ -2633,25 +2650,25 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2633
2650
|
viewBox: "0 0 24 24",
|
|
2634
2651
|
fill: o.value,
|
|
2635
2652
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2636
|
-
}, [M("path", { d: n.value.path }, null, 8,
|
|
2653
|
+
}, [M("path", { d: n.value.path }, null, 8, ki)], 8, Oi))], 4));
|
|
2637
2654
|
}
|
|
2638
|
-
}),
|
|
2655
|
+
}), ji = { class: "tpl:w-full" }, Mi = ["href"], Ni = {
|
|
2639
2656
|
key: 1,
|
|
2640
2657
|
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)]"
|
|
2641
|
-
},
|
|
2658
|
+
}, Pi = /* @__PURE__ */ R({
|
|
2642
2659
|
__name: "SocialIconsBlock",
|
|
2643
2660
|
props: {
|
|
2644
2661
|
block: {},
|
|
2645
2662
|
viewport: {}
|
|
2646
2663
|
},
|
|
2647
2664
|
setup(e) {
|
|
2648
|
-
let t = e, { t: n } =
|
|
2665
|
+
let t = e, { t: n } = K(), r = C(() => ({
|
|
2649
2666
|
display: "flex",
|
|
2650
2667
|
flexWrap: "wrap",
|
|
2651
2668
|
gap: `${t.block.spacing}px`,
|
|
2652
2669
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
2653
2670
|
})), i = C(() => t.block.icons.length > 0);
|
|
2654
|
-
return (t, a) => (l(), w("div",
|
|
2671
|
+
return (t, a) => (l(), w("div", ji, [i.value ? (l(), w("div", {
|
|
2655
2672
|
key: 0,
|
|
2656
2673
|
style: F(r.value)
|
|
2657
2674
|
}, [(l(!0), w(I, null, f(e.block.icons, (t) => (l(), w("a", {
|
|
@@ -2659,7 +2676,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2659
2676
|
href: t.url || "#",
|
|
2660
2677
|
class: "tpl:cursor-default",
|
|
2661
2678
|
onClick: a[0] ||= O(() => {}, ["prevent"])
|
|
2662
|
-
}, [z(
|
|
2679
|
+
}, [z(Ai, {
|
|
2663
2680
|
platform: t.platform,
|
|
2664
2681
|
"icon-style": e.block.iconStyle,
|
|
2665
2682
|
"icon-size": e.block.iconSize
|
|
@@ -2667,44 +2684,44 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2667
2684
|
"platform",
|
|
2668
2685
|
"icon-style",
|
|
2669
2686
|
"icon-size"
|
|
2670
|
-
])], 8,
|
|
2687
|
+
])], 8, Mi))), 128))], 4)) : (l(), w("div", Ni, [z(E(Ot), { size: 16 }), M("span", null, S(E(n).social.addIcons), 1)]))]));
|
|
2671
2688
|
}
|
|
2672
|
-
}),
|
|
2689
|
+
}), Fi = { class: "tpl:w-full" }, Ii = {
|
|
2673
2690
|
key: 0,
|
|
2674
2691
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2675
2692
|
style: {
|
|
2676
2693
|
"background-color": "var(--tpl-bg-hover)",
|
|
2677
2694
|
color: "var(--tpl-text-dim)"
|
|
2678
2695
|
}
|
|
2679
|
-
},
|
|
2696
|
+
}, Li = /* @__PURE__ */ R({
|
|
2680
2697
|
__name: "SpacerBlock",
|
|
2681
2698
|
props: {
|
|
2682
2699
|
block: {},
|
|
2683
2700
|
viewport: {}
|
|
2684
2701
|
},
|
|
2685
2702
|
setup(e) {
|
|
2686
|
-
let t = e, n =
|
|
2703
|
+
let t = e, n = Ye(G, "SpacerBlock"), r = C(() => ({
|
|
2687
2704
|
height: `${t.block.height}px`,
|
|
2688
2705
|
minHeight: `${t.block.height}px`,
|
|
2689
2706
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2690
2707
|
}));
|
|
2691
|
-
return (t, i) => (l(), w("div",
|
|
2708
|
+
return (t, i) => (l(), w("div", Fi, [M("div", {
|
|
2692
2709
|
style: F(r.value),
|
|
2693
2710
|
class: j(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !E(n).state.previewMode }])
|
|
2694
|
-
}, [E(n).state.previewMode ? T("", !0) : (l(), w("span",
|
|
2711
|
+
}, [E(n).state.previewMode ? T("", !0) : (l(), w("span", Ii, S(e.block.height) + "px ", 1))], 6)]));
|
|
2695
2712
|
}
|
|
2696
|
-
}),
|
|
2713
|
+
}), Ri = { class: "tpl:w-full" }, zi = { key: 0 }, Bi = [
|
|
2697
2714
|
"aria-label",
|
|
2698
2715
|
"data-placeholder",
|
|
2699
2716
|
"onBlur"
|
|
2700
|
-
],
|
|
2717
|
+
], Vi = [
|
|
2701
2718
|
"aria-label",
|
|
2702
2719
|
"data-placeholder",
|
|
2703
2720
|
"onBlur"
|
|
2704
|
-
],
|
|
2721
|
+
], Hi = {
|
|
2705
2722
|
key: 1,
|
|
2706
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)]"
|
|
2707
|
-
},
|
|
2724
|
+
}, Ui = /*#__PURE__*/ qt(/* @__PURE__ */ R({
|
|
2708
2725
|
__name: "TableBlock",
|
|
2709
2726
|
props: {
|
|
2710
2727
|
block: {},
|
|
@@ -2718,7 +2735,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2718
2735
|
updated(e, t) {
|
|
2719
2736
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
2720
2737
|
}
|
|
2721
|
-
}, n = e, { t: r } =
|
|
2738
|
+
}, n = e, { t: r } = K(), i = Ye(G, "TableBlock"), o = C(() => n.block.rows.length > 0), s = C(() => {
|
|
2722
2739
|
let e = {
|
|
2723
2740
|
width: "100%",
|
|
2724
2741
|
borderCollapse: "collapse",
|
|
@@ -2749,11 +2766,11 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2749
2766
|
} : n);
|
|
2750
2767
|
i.updateBlock(n.block.id, { rows: o });
|
|
2751
2768
|
}
|
|
2752
|
-
return (e, n) => (l(), w("div",
|
|
2769
|
+
return (e, n) => (l(), w("div", Ri, [o.value ? (l(), w("table", {
|
|
2753
2770
|
key: 0,
|
|
2754
2771
|
style: F(s.value),
|
|
2755
2772
|
class: "tpl-table-editable"
|
|
2756
|
-
}, [d.value ? (l(), w("thead",
|
|
2773
|
+
}, [d.value ? (l(), w("thead", zi, [M("tr", null, [(l(!0), w(I, null, f(d.value.cells, (e) => a((l(), w("th", {
|
|
2757
2774
|
key: e.id,
|
|
2758
2775
|
style: F(u.value),
|
|
2759
2776
|
"aria-label": E(r).table.cellPlaceholder,
|
|
@@ -2762,7 +2779,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2762
2779
|
onBlur: (t) => h(d.value.id, e.id, t),
|
|
2763
2780
|
onKeydown: n[0] ||= x(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2764
2781
|
onClick: O(m, ["stop"])
|
|
2765
|
-
}, null, 44,
|
|
2782
|
+
}, null, 44, Bi)), [[t, e.content]])), 128))])])) : T("", !0), M("tbody", null, [(l(!0), w(I, null, f(p.value, (e) => (l(), w("tr", { key: e.id }, [(l(!0), w(I, null, f(e.cells, (i) => a((l(), w("td", {
|
|
2766
2783
|
key: i.id,
|
|
2767
2784
|
style: F(c.value),
|
|
2768
2785
|
"aria-label": E(r).table.cellPlaceholder,
|
|
@@ -2771,9 +2788,9 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2771
2788
|
onBlur: (t) => h(e.id, i.id, t),
|
|
2772
2789
|
onKeydown: n[1] ||= x(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2773
2790
|
onClick: O(m, ["stop"])
|
|
2774
|
-
}, null, 44,
|
|
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)]))]));
|
|
2775
2792
|
}
|
|
2776
|
-
}), [["__scopeId", "data-v-963ac422"]]),
|
|
2793
|
+
}), [["__scopeId", "data-v-963ac422"]]), Wi = /* @__PURE__ */ R({
|
|
2777
2794
|
__name: "VideoPlayButton",
|
|
2778
2795
|
props: { hoverEffect: {
|
|
2779
2796
|
type: Boolean,
|
|
@@ -2791,7 +2808,7 @@ var gi = { class: "tpl:w-full" }, _i = {
|
|
|
2791
2808
|
});
|
|
2792
2809
|
//#endregion
|
|
2793
2810
|
//#region src/utils/videoThumbnail.ts
|
|
2794
|
-
function
|
|
2811
|
+
function Gi(e) {
|
|
2795
2812
|
if (!e) return {
|
|
2796
2813
|
platform: "unknown",
|
|
2797
2814
|
videoId: null,
|
|
@@ -2823,25 +2840,25 @@ function zi(e) {
|
|
|
2823
2840
|
thumbnailUrl: null
|
|
2824
2841
|
};
|
|
2825
2842
|
}
|
|
2826
|
-
function
|
|
2827
|
-
return t ||
|
|
2843
|
+
function Ki(e, t) {
|
|
2844
|
+
return t || Gi(e).thumbnailUrl;
|
|
2828
2845
|
}
|
|
2829
2846
|
//#endregion
|
|
2830
2847
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2831
|
-
var
|
|
2848
|
+
var qi = ["src", "alt"], Ji = {
|
|
2832
2849
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2833
2850
|
style: { opacity: "0.7" }
|
|
2834
|
-
},
|
|
2851
|
+
}, Yi = ["href"], Xi = ["src", "alt"], Zi = ["src", "alt"], Qi = {
|
|
2835
2852
|
key: 3,
|
|
2836
2853
|
class: "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-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
2837
|
-
},
|
|
2854
|
+
}, $i = /* @__PURE__ */ R({
|
|
2838
2855
|
__name: "VideoBlock",
|
|
2839
2856
|
props: {
|
|
2840
2857
|
block: {},
|
|
2841
2858
|
viewport: {}
|
|
2842
2859
|
},
|
|
2843
2860
|
setup(e) {
|
|
2844
|
-
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(() => {
|
|
2845
2862
|
let e = t.block.align;
|
|
2846
2863
|
return {
|
|
2847
2864
|
maxWidth: "100%",
|
|
@@ -2862,16 +2879,16 @@ var Vi = ["src", "alt"], Hi = {
|
|
|
2862
2879
|
class: "tpl:w-full tpl:border-0",
|
|
2863
2880
|
src: E(o),
|
|
2864
2881
|
alt: e.block.alt
|
|
2865
|
-
}, null, 8,
|
|
2882
|
+
}, null, 8, qi), z(Wi)], 4)) : i.value ? (l(), w("div", {
|
|
2866
2883
|
key: 1,
|
|
2867
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)]",
|
|
2868
2885
|
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
2869
|
-
}, [z(E(
|
|
2886
|
+
}, [z(E(zt), {
|
|
2870
2887
|
size: 36,
|
|
2871
2888
|
"stroke-width": 1.5,
|
|
2872
2889
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2873
2890
|
style: { opacity: "0.5" }
|
|
2874
|
-
}), M("span",
|
|
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", {
|
|
2875
2892
|
key: 0,
|
|
2876
2893
|
href: e.block.url,
|
|
2877
2894
|
target: "_blank",
|
|
@@ -2883,7 +2900,7 @@ var Vi = ["src", "alt"], Hi = {
|
|
|
2883
2900
|
class: "tpl:w-full tpl:border-0",
|
|
2884
2901
|
src: s.value,
|
|
2885
2902
|
alt: e.block.alt
|
|
2886
|
-
}, null, 8,
|
|
2903
|
+
}, null, 8, Xi), z(Wi, { "hover-effect": "" })], 12, Yi)) : (l(), w("div", {
|
|
2887
2904
|
key: 1,
|
|
2888
2905
|
class: "tpl:relative tpl:inline-block",
|
|
2889
2906
|
style: F(u.value)
|
|
@@ -2891,48 +2908,48 @@ var Vi = ["src", "alt"], Hi = {
|
|
|
2891
2908
|
class: "tpl:w-full tpl:border-0",
|
|
2892
2909
|
src: s.value,
|
|
2893
2910
|
alt: e.block.alt
|
|
2894
|
-
}, null, 8,
|
|
2911
|
+
}, null, 8, Zi), z(Wi)], 4))], 64)) : (l(), w("div", Qi, [z(E(zt), {
|
|
2895
2912
|
size: 40,
|
|
2896
2913
|
"stroke-width": 1.5,
|
|
2897
2914
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2898
2915
|
}), M("span", null, S(E(n).video.addVideo), 1)]))], 4));
|
|
2899
2916
|
}
|
|
2900
|
-
}),
|
|
2901
|
-
section:
|
|
2902
|
-
title:
|
|
2903
|
-
paragraph:
|
|
2904
|
-
image:
|
|
2905
|
-
button:
|
|
2906
|
-
divider:
|
|
2907
|
-
video:
|
|
2908
|
-
social:
|
|
2909
|
-
menu:
|
|
2910
|
-
table:
|
|
2911
|
-
spacer:
|
|
2912
|
-
html:
|
|
2913
|
-
countdown: b(() => import("./CountdownBlock-
|
|
2917
|
+
}), ea = {
|
|
2918
|
+
section: wi,
|
|
2919
|
+
title: bi,
|
|
2920
|
+
paragraph: ti,
|
|
2921
|
+
image: Hr,
|
|
2922
|
+
button: Hn,
|
|
2923
|
+
divider: Sr,
|
|
2924
|
+
video: $i,
|
|
2925
|
+
social: Pi,
|
|
2926
|
+
menu: Kr,
|
|
2927
|
+
table: Ui,
|
|
2928
|
+
spacer: Li,
|
|
2929
|
+
html: Or,
|
|
2930
|
+
countdown: b(() => import("./CountdownBlock-cEcXSK91.js"))
|
|
2914
2931
|
};
|
|
2915
|
-
function
|
|
2916
|
-
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: s, format: c } =
|
|
2932
|
+
function ta(e) {
|
|
2933
|
+
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: s, format: c } = K(r);
|
|
2917
2934
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
2918
|
-
let { resolvedTheme: l } =
|
|
2935
|
+
let { resolvedTheme: l } = xn(C(() => t.state.uiTheme)), d = v(n.theme ?? {}), { themeStyles: f } = Cn({
|
|
2919
2936
|
themeOverrides: d,
|
|
2920
2937
|
resolvedTheme: l,
|
|
2921
2938
|
extraStyles: e.themeExtraStyles
|
|
2922
|
-
}), p =
|
|
2939
|
+
}), p = en({
|
|
2923
2940
|
content: t.content,
|
|
2924
2941
|
setContent: (e, n) => t.setContent(e, n),
|
|
2925
2942
|
...e.historyOptions
|
|
2926
2943
|
});
|
|
2927
|
-
|
|
2928
|
-
let m =
|
|
2944
|
+
sn(t, p);
|
|
2945
|
+
let m = nn({
|
|
2929
2946
|
addBlock: t.addBlock,
|
|
2930
2947
|
removeBlock: t.removeBlock,
|
|
2931
2948
|
updateBlock: t.updateBlock,
|
|
2932
2949
|
selectBlock: t.selectBlock,
|
|
2933
2950
|
findBlockLocation: t.findBlockLocation,
|
|
2934
2951
|
blockDefaults: n.blockDefaults
|
|
2935
|
-
}), h =
|
|
2952
|
+
}), h = an(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? rn({
|
|
2936
2953
|
content: t.content,
|
|
2937
2954
|
isDirty: () => t.state.isDirty,
|
|
2938
2955
|
...e.autoSaveOptions
|
|
@@ -2940,25 +2957,25 @@ function Yi(e) {
|
|
|
2940
2957
|
g && (_ = B(p.isNavigating, (e) => {
|
|
2941
2958
|
e ? g.pause() : g.resume();
|
|
2942
2959
|
}));
|
|
2943
|
-
let y =
|
|
2960
|
+
let y = bn(t, {
|
|
2944
2961
|
t: s,
|
|
2945
2962
|
format: c
|
|
2946
|
-
}, n.customBlocks ?? []), b =
|
|
2947
|
-
if (b.allowCustomIgnored &&
|
|
2948
|
-
let e =
|
|
2949
|
-
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.`);
|
|
2950
2967
|
}
|
|
2951
|
-
let x =
|
|
2952
|
-
|
|
2968
|
+
let x = Tn();
|
|
2969
|
+
An(x, ea);
|
|
2953
2970
|
let S = /* @__PURE__ */ new Set();
|
|
2954
2971
|
function w(e) {
|
|
2955
2972
|
for (let t of e) {
|
|
2956
|
-
x.registerCustom(t,
|
|
2957
|
-
for (let e of
|
|
2973
|
+
x.registerCustom(t, br);
|
|
2974
|
+
for (let e of Fn(t, b)) S.has(e.id) || (S.add(e.id), $.warn(e.message));
|
|
2958
2975
|
}
|
|
2959
2976
|
}
|
|
2960
2977
|
n.customBlocks?.length && w(n.customBlocks);
|
|
2961
|
-
let T =
|
|
2978
|
+
let T = fn();
|
|
2962
2979
|
if (i() && o(T.dispose), e.containerEl) {
|
|
2963
2980
|
let t = e.containerEl;
|
|
2964
2981
|
U(document, "pointerdown", (e) => {
|
|
@@ -2967,7 +2984,7 @@ function Yi(e) {
|
|
|
2967
2984
|
}, { capture: !0 });
|
|
2968
2985
|
}
|
|
2969
2986
|
function E(r) {
|
|
2970
|
-
T.isActive() &&
|
|
2987
|
+
T.isActive() && Ln(r, {
|
|
2971
2988
|
history: p,
|
|
2972
2989
|
selectBlock: (e) => t.selectBlock(e),
|
|
2973
2990
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -2981,19 +2998,23 @@ function Yi(e) {
|
|
|
2981
2998
|
}
|
|
2982
2999
|
U(document, "keydown", E);
|
|
2983
3000
|
let D = v(null);
|
|
2984
|
-
u(
|
|
2985
|
-
let O =
|
|
2986
|
-
u(
|
|
2987
|
-
let k =
|
|
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
|
+
let O = De(n.mergeTags?.syntax);
|
|
3003
|
+
u(W, n.mergeTags?.tags ?? []), u(ft, O), u(Ze, n.mergeTags?.onRequest ?? null), u(Je, n.mergeTags?.autocomplete !== !1);
|
|
3004
|
+
let k = v(Ee(n.mergeTags?.tags ?? []));
|
|
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({
|
|
2988
3009
|
content: t.content,
|
|
2989
3010
|
options: n.lint ?? {},
|
|
2990
3011
|
updateBlock: t.updateBlock,
|
|
2991
3012
|
updateSettings: t.updateSettings,
|
|
2992
3013
|
removeBlock: t.removeBlock
|
|
2993
3014
|
});
|
|
2994
|
-
u(
|
|
2995
|
-
function
|
|
2996
|
-
_?.(),
|
|
3015
|
+
u(Xe, j);
|
|
3016
|
+
function M() {
|
|
3017
|
+
_?.(), j?.destroy(), g?.destroy(), p.destroy();
|
|
2997
3018
|
}
|
|
2998
3019
|
return {
|
|
2999
3020
|
t: s,
|
|
@@ -3007,13 +3028,14 @@ function Yi(e) {
|
|
|
3007
3028
|
themeOverrides: d,
|
|
3008
3029
|
registry: x,
|
|
3009
3030
|
keyboardReorder: y,
|
|
3010
|
-
templateLint:
|
|
3031
|
+
templateLint: j,
|
|
3011
3032
|
popoverRoot: D,
|
|
3033
|
+
mergeTagSampleMode: k,
|
|
3012
3034
|
registerCustomBlocks: w,
|
|
3013
|
-
destroy:
|
|
3035
|
+
destroy: M
|
|
3014
3036
|
};
|
|
3015
3037
|
}
|
|
3016
3038
|
//#endregion
|
|
3017
|
-
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 };
|
|
3018
3040
|
|
|
3019
|
-
//# sourceMappingURL=useEditorCore-
|
|
3041
|
+
//# sourceMappingURL=useEditorCore-ZqF7P99K.js.map
|