@templatical/editor 0.48.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiChatSidebar-DxPHFNoT.js → AiChatSidebar-CdjTb9ej.js} +14 -14
- package/dist/{AiFeatureMenu-C8GVqu1d.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
- package/dist/{BlockIssueBadge-BShkuJis.js → BlockIssueBadge-BdpJwim0.js} +5 -5
- package/dist/{BlockPreviewCanvas-tzAtDkXH.js → BlockPreviewCanvas-D_sowkf0.js} +8 -8
- package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
- package/dist/{CloudPanels-Dgw7tb4R.js → CloudPanels-1hwFiJ0G.js} +39 -68
- package/dist/CollaborationNotices-BWpKzueF.js +73 -0
- package/dist/CollaboratorBar-D87phJsw.js +123 -0
- package/dist/{CommentsPanel-DiWzYtnZ.js → CommentsPanel-BUvUzO3T.js} +2 -2
- package/dist/{CommentsSidebar-BOqj16Al.js → CommentsSidebar-J65znlrH.js} +14 -14
- package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
- package/dist/{CountdownToolbar-C4y3Ft7H.js → CountdownToolbar-CLMIwfK7.js} +7 -7
- package/dist/{DesignReferenceSidebar-BWAi3eQQ.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
- package/dist/{IssuesPanel-C-x3I012.js → IssuesPanel-DeeVsfG7.js} +8 -8
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
- package/dist/{LogicTagInsertButton-B1_Wy0AN.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
- package/dist/{MediaEditModal-ByOvznRC.js → MediaEditModal-C_wxoUMG.js} +3 -3
- package/dist/{MediaPanels-9mDBv4aL.js → MediaPanels-BVXDkqtH.js} +2 -2
- package/dist/{MergeTagInput-fOewuF27.js → MergeTagInput-BEw_r0PJ.js} +3 -3
- package/dist/{MergeTagModeToggle-BXamLcv7.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
- package/dist/{ParagraphEditor-BVjOwwHx.js → ParagraphEditor-zLV44z-R.js} +19 -19
- package/dist/{RestoreVersionDialog-BEKXx9xk.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
- package/dist/{RichTextEditorContent-D7kp7iig.js → RichTextEditorContent-CsvniFlI.js} +9 -9
- package/dist/{SaveBlockDialog-SJu0lecx.js → SaveBlockDialog-DzWURF_e.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-DbmIS5uK.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
- package/dist/{SavedBlocksPanels-Dr5Fxx9Z.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
- package/dist/{SavedBlocksPickBar-DnEWBZJy.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
- package/dist/{TemplateScoringPanel-ynbGl-sr.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
- package/dist/{TemplateSettings-Bi01S3H3.js → TemplateSettings-Cu5X9DgA.js} +11 -11
- package/dist/{TestEmailModal-CbRY8HQx.js → TestEmailModal-BeRYV3eg.js} +14 -14
- package/dist/{TestEmailPanel-NAOmt3xi.js → TestEmailPanel-B8c3fQi2.js} +2 -2
- package/dist/{TitleEditor-Cc3DHbuN.js → TitleEditor-CvpNUoAp.js} +11 -11
- package/dist/{ToggleSwitch-Ozc7YU38.js → ToggleSwitch-DHweVJOr.js} +2 -2
- package/dist/{Toolbar-B-2lO0I8.js → Toolbar-BadDSkkF.js} +426 -429
- package/dist/{TplModal-Bz4-IZ9R.js → TplModal-BZgi9Tes.js} +5 -5
- package/dist/{VersionHistoryMenu-CjV1d1zk.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
- package/dist/{VersionHistoryPanels-BtwxrKJn.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
- package/dist/{VersionPreviewBanner-BLAei1kj.js → VersionPreviewBanner-F-811aps.js} +4 -4
- package/dist/{WrapperBlock-D0qgNqjD.js → WrapperBlock-DiiaxpMb.js} +5 -5
- package/dist/{blockTypeIcons-CEDZytqP.js → blockTypeIcons-CayLluou.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +23 -1
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js → AiChatSidebar-yXJ85Zcg.js} +8 -8
- package/dist/cdn/chunks/{AiChatSidebar-Dk0rJBQN.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B7b0w8ZS.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js → BlockPreviewCanvas-m2tWRyWv.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js.map → BlockPreviewCanvas-m2tWRyWv.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-B4fhuwc_.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-awqHfJqC.js → CloudPanels-XufhBZYF.js} +38 -67
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js → CommentsPanel-R8YLLO3v.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js → CommentsSidebar-96NZHVq3.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js → CountdownToolbar-tmiTPEXm.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js → DesignReferenceSidebar-D14IIu_P.js} +39 -39
- package/dist/cdn/chunks/{DesignReferenceSidebar-BW9cHnA9.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.js → IssuesPanel-BoPiCLGc.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-cXf9ywA4.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js → LogicTagInsertButton-BJ2t2vxC.js} +20 -20
- package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js → MediaEditModal-DD0SZ-S3.js} +3 -3
- package/dist/cdn/chunks/{MediaEditModal-zXfcArr4.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js → MediaPanels-CkdJ_kGp.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js → MergeTagInput-7wXX71DH.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js → ParagraphEditor-CJQjRHXV.js} +29 -29
- package/dist/cdn/chunks/{ParagraphEditor-D4aq9eeC.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js → RestoreVersionDialog-C5cxBRKi.js} +6 -6
- package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js → SaveBlockDialog-BKbjUnPM.js} +10 -10
- package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js → TemplateScoringPanel-BBPnHILC.js} +6 -6
- package/dist/cdn/chunks/{TemplateScoringPanel-BrWqJCSP.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js → TemplateSettings-CtrzzQWl.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js → TestEmailModal-DuZKYMWD.js} +13 -13
- package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js → TestEmailPanel-DERaCdpG.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js → TitleEditor-CEgxjtUX.js} +14 -14
- package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-BB-bQADJ.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_x2TfFk.js → Toolbar-GFIZQHzw.js} +440 -443
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js → TplModal-DDrbWJcE.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DC_eodTV.js.map → TplModal-DDrbWJcE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js → VersionHistoryMenu-MlxsUmuT.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js → WrapperBlock-CFuP4R0c.js} +6 -6
- package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js.map → WrapperBlock-CFuP4R0c.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js → blockTypeIcons-BnAd8qsP.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js.map → blockTypeIcons-BnAd8qsP.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CbNzJM3I.js → ca-DSJwJ5ov.js} +24 -2
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
- package/dist/{cloud-B5xwm_4X.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Vd0N4elZ.js → createCloudRuntime-DiYCJ21w.js} +127 -169
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
- package/dist/{de-DMquBpZM.js → cdn/chunks/de-CBE6O79z.js} +25 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
- package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
- package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
- package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
- package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
- package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js → editor-modal-HJBy9kLj.js} +88 -88
- package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
- package/dist/cdn/chunks/{en-C8Mp71sO.js → en-CDexnk0p.js} +24 -2
- package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
- package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
- package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
- package/dist/{es-Byq4tthI.js → cdn/chunks/es-BE42B6uN.js} +25 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js → extensions-koOuDeZS.js} +23 -23
- package/dist/cdn/chunks/{extensions-hJ9VqzDc.js.map → extensions-koOuDeZS.js.map} +1 -1
- package/dist/{fr-B3j35HEw.js → cdn/chunks/fr-DlJFPDQR.js} +25 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
- package/dist/cdn/chunks/{icons-aTYwH5-g.js → icons-CjlNV8xD.js} +46 -46
- package/dist/cdn/chunks/{icons-aTYwH5-g.js.map → icons-CjlNV8xD.js.map} +1 -1
- package/dist/{ja-D7txAuGS.js → cdn/chunks/ja-CUT8gkNI.js} +25 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
- package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
- package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
- package/dist/{nl-ClJ3BY3F.js → cdn/chunks/nl-bXWqqRyS.js} +25 -1
- package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +24 -2
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
- package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
- package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
- package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
- package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
- package/dist/cdn/chunks/{src-DlFlC9Tt.js → src-B1e5SSYP.js} +84 -84
- package/dist/cdn/chunks/{src-DlFlC9Tt.js.map → src-B1e5SSYP.js.map} +1 -1
- package/dist/cdn/chunks/{src-dZ4D_tuP.js → src-B77z1iw4.js} +117 -117
- package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
- package/dist/cdn/chunks/{src-DYCDeBDM.js → src-CvLTYGdO.js} +549 -315
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +6 -0
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
- package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-Bb2UcB20.js → useEditorCore-DpCFvHg_.js} +440 -419
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js → useLogicTag-X8bc5qNl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js → useMergeTag-DFoOexIQ.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js → withCurrentFont-D-f61ghC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1319 -1066
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ClwqRMgv.js → check-DQQzkmIC.js} +1 -1
- package/dist/{chevron-down-te6qn-zE.js → chevron-down-CIF4bdon.js} +1 -1
- package/dist/{chevron-right-W2hbH1FM.js → chevron-right-Cg7Xu-ev.js} +1 -1
- package/dist/{chevron-up-Bf5Zo7o4.js → chevron-up-Csu7ISD-.js} +1 -1
- package/dist/{circle-alert-CIEGV5DN.js → circle-alert-YUvIJAgY.js} +1 -1
- package/dist/{clock-Y4cx0gkJ.js → clock-CnSIGKQW.js} +1 -1
- package/dist/{cdn/chunks/cloud-BHClP3e2.js → cloud-YUYDtdHt.js} +308 -569
- package/dist/{copy-BEcsAlfB.js → copy-CUC43md_.js} +1 -1
- package/dist/{createCloudRuntime-zNPkF6T9.js → createCloudRuntime-BMDRjL0k.js} +126 -168
- package/dist/{createLucideIcon-CYHXK9hn.js → createLucideIcon-BcP1sjdp.js} +6 -6
- package/dist/{cdn/chunks/de-DMquBpZM.js → de-CBE6O79z.js} +23 -3
- package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
- package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
- package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
- package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
- package/dist/{dist-tsmnQugO.js → dist-DBG3nh3k.js} +503 -273
- package/dist/{editor-modal-AlVLkU91.js → editor-modal--7_9A6j-.js} +20 -20
- package/dist/en-BHCMzqib.js +1 -0
- package/dist/{en-C8Mp71sO.js → en-CDexnk0p.js} +23 -1
- package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
- package/dist/{cdn/chunks/es-Byq4tthI.js → es-BE42B6uN.js} +23 -3
- package/dist/{extensions-pjO8VGkM.js → extensions-zwsZlWjH.js} +23 -23
- package/dist/{eye-Ddnz8nnm.js → eye-B1bua-ck.js} +1 -1
- package/dist/{cdn/chunks/fr-B3j35HEw.js → fr-DlJFPDQR.js} +23 -3
- package/dist/{image-up-CM_HC0Dx.js → image-up-BqiO7KCO.js} +1 -1
- package/dist/index.d.ts +290 -35
- package/dist/{info-DXLmzoeY.js → info-x26nGOo2.js} +1 -1
- package/dist/{cdn/chunks/ja-D7txAuGS.js → ja-CUT8gkNI.js} +23 -3
- package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
- package/dist/{link-Cel46wgo.js → link-CezhndyR.js} +1 -1
- package/dist/{list-Cl0GwiV9.js → list-DQqdptI0.js} +1 -1
- package/dist/{loader-circle-uAwpvfys.js → loader-circle-DCEeoYoi.js} +1 -1
- package/dist/{message-circle-DWU1pTM_.js → message-circle-BLGzfv_7.js} +1 -1
- package/dist/{cdn/chunks/nl-ClJ3BY3F.js → nl-bXWqqRyS.js} +23 -3
- package/dist/{package-CbyG_yU_.js → package-D_kEQCMU.js} +1 -1
- package/dist/{pencil-BzoDcwKu.js → pencil-Dct8zGLy.js} +1 -1
- package/dist/{plus-8cDvoCjZ.js → plus-BDd0gTEm.js} +1 -1
- package/dist/{preRenderCustomBlocks-DMP5RuHl.js → preRenderCustomBlocks-CtKJecE-.js} +3 -3
- package/dist/{pt-BR-DibcXcmv.js → pt-BR-2_H4-wlb.js} +23 -1
- package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
- package/dist/{refresh-cw-9WinWixo.js → refresh-cw-tGMRDxr8.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
- package/dist/{search-CqgGq1gG.js → search-Bm2cCQpe.js} +1 -1
- package/dist/{send-Ceo3c9Db.js → send-sVLaKZ7f.js} +1 -1
- package/dist/{shield-check-uDAwur5D.js → shield-check-YhsbXfQc.js} +1 -1
- package/dist/{smartphone-CcLaCpGK.js → smartphone-B2W81p02.js} +1 -1
- package/dist/socialIcons-Bwv-49EB.js +2167 -0
- package/dist/{sparkles-Do9XjAuT.js → sparkles-a1qkBZ8X.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
- package/dist/templatical-editor.js +1409 -1156
- package/dist/{text-align-start-DvzC0HQA.js → text-align-start-CTuwQ5YW.js} +1 -1
- package/dist/timeouts-o5Y9BuqI.js +4 -0
- package/dist/{trash-vlINTx32.js → trash-I3D2peFQ.js} +1 -1
- package/dist/{triangle-alert-MRYSJ9T2.js → triangle-alert-CenxmLRE.js} +1 -1
- package/dist/{upload-CtNOI6J2.js → upload-uU2cK0Ce.js} +1 -1
- package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
- package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
- package/dist/{useEditorCore-PvErWWsp.js → useEditorCore-DRbMRe8F.js} +806 -785
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
- package/dist/{useLogicTag-BHn67tDd.js → useLogicTag-zcI6BWIf.js} +3 -3
- package/dist/{useMergeTag-CRkm5Ig6.js → useMergeTag-C-iBLlp0.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
- package/dist/{useScrollToBlock-CXmcHQQN.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
- package/dist/{withCurrentFont-CxRGeHO3.js → withCurrentFont-D62njRLu.js} +1 -1
- package/dist/{x-Cd6SFw8r.js → x-KFQ4S-Kz.js} +1 -1
- package/package.json +12 -12
- package/dist/CloudHeaderExtras-CUSftQdm.js +0 -59
- package/dist/CollaboratorBar-5rfopCPx.js +0 -103
- package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-awqHfJqC.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +0 -1
- package/dist/cdn/chunks/ca-CbNzJM3I.js.map +0 -1
- package/dist/cdn/chunks/cloud-BHClP3e2.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +0 -1
- package/dist/cdn/chunks/de-DMquBpZM.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-C8Mp71sO.js.map +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-eWpiXyZu.js +0 -1
- package/dist/cdn/chunks/es-Byq4tthI.js.map +0 -1
- package/dist/cdn/chunks/fr-B3j35HEw.js.map +0 -1
- package/dist/cdn/chunks/ja-D7txAuGS.js.map +0 -1
- package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +0 -1279
- package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +0 -1
- package/dist/cdn/chunks/src-DYCDeBDM.js.map +0 -1
- package/dist/cdn/chunks/src-dZ4D_tuP.js.map +0 -1
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js +0 -6
- package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/en-B0FUfNwz.js +0 -1
- package/dist/socialIcons-PTiwhLoC.js +0 -1359
- package/dist/timeouts-Cv2jvusx.js +0 -4
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, Y as p, at as m, b as h, c as g, ct as _, et as v, f as y, g as b, h as x, it as S, j as C, k as w, l as T, lt as E, m as D, p as O, q as k, rt as A, s as j, t as M, u as N, ut as P, w as F, x as I, y as L } from "./draggable-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as lt, h as ut, v as dt, y as ft } from "./dist-
|
|
5
|
-
import { a as pt, c as mt, i as ht } from "./dist-
|
|
6
|
-
import { $ as K, A as gt, B as _t, C as vt, D as yt, E as bt, F as xt, G as St, H as Ct, I as wt, J as Tt, K as Et, L as Dt, M as Ot, N as kt, O as q, P as At, Q as jt, R as Mt, S as Nt, T as Pt, V as Ft, X as It, Y as Lt, Z as Rt, _ as zt, a as Bt, b as Vt, c as Ht, d as Ut, f as Wt, g as J, h as Gt, j as Kt, k as qt, l as Jt, m as Yt, n as Xt, o as Zt, p as Qt, q as $t, r as en, s as tn, v as Y, w as nn, x as rn, y as an, z as on } from "./keys-
|
|
7
|
-
import { t as X } from "./useI18n-
|
|
1
|
+
import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, Y as p, at as m, b as h, c as g, ct as _, et as v, f as y, g as b, h as x, it as S, j as C, k as w, l as T, lt as E, m as D, p as O, q as k, rt as A, s as j, t as M, u as N, ut as P, w as F, x as I, y as L } from "./draggable-akeQH_JP.js";
|
|
2
|
+
import { A as R, Bt as z, Ct as B, Dt as V, F as H, Ft as U, G as ee, H as te, I as ne, It as re, J as W, L as G, Lt as ie, M as ae, Mt as oe, N as se, P as ce, Q as le, R as ue, Rt as de, Tt as fe, U as pe, V as me, W as he, X as ge, Z as _e, a as ve, b as ye, bt as be, c as xe, d as Se, et as Ce, f as we, g as Te, h as Ee, i as De, j as Oe, jt as ke, l as Ae, m as je, n as Me, o as Ne, p as Pe, pt as Fe, r as Ie, t as Le, u as Re, w as ze, wt as Be, y as Ve, z as He, zt as Ue } from "./src-CvLTYGdO.js";
|
|
3
|
+
import { C as We, F as Ge, I as Ke, L as qe, M as Je, N as Ye, S as Xe, _ as Ze, a as Qe, g as $e, h as et, j as tt, l as nt, n as rt, p as it, t as at, u as ot, x as st, y as ct } from "./socialIcons-CkZSYpoG.js";
|
|
4
|
+
import { _ as lt, h as ut, v as dt, y as ft } from "./dist-Doy3r07H.js";
|
|
5
|
+
import { a as pt, c as mt, i as ht } from "./dist-DdwjXLme.js";
|
|
6
|
+
import { $ as K, A as gt, B as _t, C as vt, D as yt, E as bt, F as xt, G as St, H as Ct, I as wt, J as Tt, K as Et, L as Dt, M as Ot, N as kt, O as q, P as At, Q as jt, R as Mt, S as Nt, T as Pt, V as Ft, X as It, Y as Lt, Z as Rt, _ as zt, a as Bt, b as Vt, c as Ht, d as Ut, f as Wt, g as J, h as Gt, j as Kt, k as qt, l as Jt, m as Yt, n as Xt, o as Zt, p as Qt, q as $t, r as en, s as tn, v as Y, w as nn, x as rn, y as an, z as on } from "./keys-UAWhQ3zW.js";
|
|
7
|
+
import { t as X } from "./useI18n-DEqtEgOs.js";
|
|
8
8
|
import { t as Z } from "./logger-ByvdoAwq.js";
|
|
9
|
-
import { i as sn, r as cn, s as ln, t as un } from "./usePopoverPosition-
|
|
9
|
+
import { i as sn, r as cn, s as ln, t as un } from "./usePopoverPosition-Cz9-XiXR.js";
|
|
10
10
|
import { r as dn, t as fn } from "./templateSettingsFields-YCFVBVYh.js";
|
|
11
|
-
import { At as pn,
|
|
12
|
-
import { t as kn } from "./LoadingTrack-
|
|
11
|
+
import { At as pn, Dt as mn, Ht as hn, Ot as gn, U as _n, Vt as vn, Z as yn, _t as bn, bt as xn, d as Sn, f as Cn, j as wn, mt as Tn, nt as En, o as Dn, y as On } from "./icons-CjlNV8xD.js";
|
|
12
|
+
import { t as kn } from "./LoadingTrack-YU44CM8X.js";
|
|
13
13
|
import { t as An } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { t as jn } from "./useEditorRoot-
|
|
15
|
-
import "./useCloudI18n-
|
|
16
|
-
import { t as Mn } from "./useMergeTag-
|
|
17
|
-
import { t as Nn } from "./useLogicTag-
|
|
14
|
+
import { t as jn } from "./useEditorRoot-5SBqm90x.js";
|
|
15
|
+
import "./useCloudI18n-kp07GQmk.js";
|
|
16
|
+
import { t as Mn } from "./useMergeTag-DFoOexIQ.js";
|
|
17
|
+
import { t as Nn } from "./useLogicTag-X8bc5qNl.js";
|
|
18
|
+
import { t as Pn } from "./readableTextColor-f8Kykfnh.js";
|
|
18
19
|
//#region src/utils/activeEditorTracker.ts
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
let e = ++
|
|
22
|
-
return
|
|
20
|
+
var Fn = /* @__PURE__ */ new Set(), Q = 0, In = 0;
|
|
21
|
+
function Ln() {
|
|
22
|
+
let e = ++In;
|
|
23
|
+
return Fn.add(e), Q === 0 && (Q = e), {
|
|
23
24
|
id: e,
|
|
24
|
-
isActive: () =>
|
|
25
|
+
isActive: () => Fn.size <= 1 || Q === e,
|
|
25
26
|
claim: () => {
|
|
26
27
|
Q = e;
|
|
27
28
|
},
|
|
28
29
|
dispose: () => {
|
|
29
|
-
if (
|
|
30
|
-
let e = Array.from(
|
|
30
|
+
if (Fn.delete(e), Q === e) {
|
|
31
|
+
let e = Array.from(Fn);
|
|
31
32
|
Q = e[e.length - 1] ?? 0;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -35,8 +36,8 @@ function In() {
|
|
|
35
36
|
}
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region src/composables/usePreviewResolution.ts
|
|
38
|
-
var
|
|
39
|
-
function
|
|
39
|
+
var Rn = 500;
|
|
40
|
+
function zn(e) {
|
|
40
41
|
let n = typeof e.resolvePreview == "function", r = l(null), i = l(!1), a = l(!1), o = 0, s = null;
|
|
41
42
|
function c() {
|
|
42
43
|
s !== null && (clearTimeout(s), s = null);
|
|
@@ -47,13 +48,13 @@ function Rn(e) {
|
|
|
47
48
|
let n = ++o;
|
|
48
49
|
i.value = !0;
|
|
49
50
|
let s = {
|
|
50
|
-
content:
|
|
51
|
+
content: be(e.getContent()),
|
|
51
52
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
52
53
|
};
|
|
53
54
|
try {
|
|
54
55
|
let e = await t(s);
|
|
55
56
|
if (n !== o) return;
|
|
56
|
-
if (!
|
|
57
|
+
if (!Le(e)) {
|
|
57
58
|
a.value = !0;
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
@@ -68,7 +69,7 @@ function Rn(e) {
|
|
|
68
69
|
function d() {
|
|
69
70
|
n && (c(), r.value === null ? u() : s = setTimeout(() => {
|
|
70
71
|
s = null, u();
|
|
71
|
-
},
|
|
72
|
+
}, Rn));
|
|
72
73
|
}
|
|
73
74
|
return t(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
|
|
74
75
|
e ? d() : (c(), o++, i.value = !1, r.value = null, a.value = !1);
|
|
@@ -85,7 +86,7 @@ function Rn(e) {
|
|
|
85
86
|
}
|
|
86
87
|
//#endregion
|
|
87
88
|
//#region src/composables/useMergeTagPicker.ts
|
|
88
|
-
function
|
|
89
|
+
function Bn() {
|
|
89
90
|
let e = l(!1), t = l([]), n = l(null), r = null;
|
|
90
91
|
function i(i, a) {
|
|
91
92
|
if (r) {
|
|
@@ -116,7 +117,7 @@ function zn() {
|
|
|
116
117
|
}
|
|
117
118
|
//#endregion
|
|
118
119
|
//#region src/composables/useLogicTagPicker.ts
|
|
119
|
-
function
|
|
120
|
+
function Vn() {
|
|
120
121
|
let e = l(!1), t = l([]), n = l([]), r = null;
|
|
121
122
|
function i(i, a) {
|
|
122
123
|
if (r) {
|
|
@@ -147,15 +148,15 @@ function Bn() {
|
|
|
147
148
|
}
|
|
148
149
|
//#endregion
|
|
149
150
|
//#region src/composables/useTemplateLint.ts
|
|
150
|
-
function
|
|
151
|
+
function Hn(e) {
|
|
151
152
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
-
let n = l([]), r = l(!1), i = l(!1), a = v(null), o =
|
|
154
|
+
function Un(e) {
|
|
155
|
+
let n = l([]), r = l(!1), i = l(!1), a = v(null), o = Hn(e.options), s = null, c = !1;
|
|
155
156
|
o || u();
|
|
156
157
|
async function u() {
|
|
157
158
|
try {
|
|
158
|
-
let t = await import("./src-
|
|
159
|
+
let t = await import("./src-B1e5SSYP.js");
|
|
159
160
|
if (c) return;
|
|
160
161
|
a.value = { lintTemplate: t.lintTemplate }, r.value = !0, d(), s = ft(e.content, d, {
|
|
161
162
|
debounce: e.debounce ?? 500,
|
|
@@ -192,7 +193,7 @@ function Hn(e) {
|
|
|
192
193
|
}
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region src/composables/useKeyboardReorder.ts
|
|
195
|
-
function
|
|
196
|
+
function Wn(e, t, n = []) {
|
|
196
197
|
let r = l(null), i = l(""), a = null;
|
|
197
198
|
function o(t) {
|
|
198
199
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -288,13 +289,13 @@ function Un(e, t, n = []) {
|
|
|
288
289
|
}
|
|
289
290
|
//#endregion
|
|
290
291
|
//#region src/composables/useUiTheme.ts
|
|
291
|
-
function
|
|
292
|
+
function Gn(e) {
|
|
292
293
|
let t = mt("(prefers-color-scheme: dark)");
|
|
293
294
|
return { resolvedTheme: y(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
294
295
|
}
|
|
295
296
|
//#endregion
|
|
296
297
|
//#region src/composables/useThemeStyles.ts
|
|
297
|
-
var
|
|
298
|
+
var Kn = {
|
|
298
299
|
bg: "--tpl-bg",
|
|
299
300
|
bgElevated: "--tpl-bg-elevated",
|
|
300
301
|
bgHover: "--tpl-bg-hover",
|
|
@@ -318,10 +319,10 @@ var Gn = {
|
|
|
318
319
|
dangerLight: "--tpl-danger-light",
|
|
319
320
|
canvasBg: "--tpl-canvas-bg"
|
|
320
321
|
};
|
|
321
|
-
function
|
|
322
|
+
function qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
322
323
|
return { themeStyles: y(() => {
|
|
323
324
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
324
|
-
if (a) for (let [e, t] of Object.entries(
|
|
325
|
+
if (a) for (let [e, t] of Object.entries(Kn)) {
|
|
325
326
|
let n = a[e];
|
|
326
327
|
n && (r[t] = n);
|
|
327
328
|
}
|
|
@@ -330,7 +331,7 @@ function Kn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
330
331
|
}
|
|
331
332
|
//#endregion
|
|
332
333
|
//#region src/composables/useBlockRegistry.ts
|
|
333
|
-
function
|
|
334
|
+
function Jn() {
|
|
334
335
|
let e = v(/* @__PURE__ */ new Map());
|
|
335
336
|
function t(t, n) {
|
|
336
337
|
e.value.set(t, n), S(e);
|
|
@@ -339,7 +340,7 @@ function qn() {
|
|
|
339
340
|
let r = `custom:${t.type}`;
|
|
340
341
|
e.value.set(r, {
|
|
341
342
|
component: n,
|
|
342
|
-
createBlock: () =>
|
|
343
|
+
createBlock: () => se(t),
|
|
343
344
|
definition: t
|
|
344
345
|
}), S(e);
|
|
345
346
|
}
|
|
@@ -388,9 +389,9 @@ function qn() {
|
|
|
388
389
|
}
|
|
389
390
|
//#endregion
|
|
390
391
|
//#region src/composables/useCustomBlockStylesheets.ts
|
|
391
|
-
function
|
|
392
|
+
function Yn(e, t) {
|
|
392
393
|
return y(() => {
|
|
393
|
-
let n =
|
|
394
|
+
let n = Xn(e.value.blocks);
|
|
394
395
|
if (n.size === 0) return [];
|
|
395
396
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
396
397
|
for (let e of n) {
|
|
@@ -402,76 +403,76 @@ function Jn(e, t) {
|
|
|
402
403
|
return i;
|
|
403
404
|
});
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function Xn(e) {
|
|
406
407
|
let t = /* @__PURE__ */ new Set();
|
|
407
|
-
return
|
|
408
|
+
return Zn(e, t), t;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
-
for (let n of e) if (
|
|
410
|
+
function Zn(e, t) {
|
|
411
|
+
for (let n of e) if (Ce(n)) t.add(n.customType);
|
|
411
412
|
else if (n.type === "section") {
|
|
412
413
|
let e = n.children;
|
|
413
414
|
if (!e) continue;
|
|
414
|
-
for (let n of e)
|
|
415
|
-
} else
|
|
415
|
+
for (let n of e) Zn(n, t);
|
|
416
|
+
} else Fe(n) && Zn(n.children, t);
|
|
416
417
|
}
|
|
417
418
|
//#endregion
|
|
418
419
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
419
|
-
var
|
|
420
|
+
var Qn = [
|
|
420
421
|
{
|
|
421
422
|
type: "section",
|
|
422
|
-
createBlock:
|
|
423
|
+
createBlock: He
|
|
423
424
|
},
|
|
424
425
|
{
|
|
425
426
|
type: "title",
|
|
426
|
-
createBlock:
|
|
427
|
+
createBlock: he
|
|
427
428
|
},
|
|
428
429
|
{
|
|
429
430
|
type: "paragraph",
|
|
430
|
-
createBlock:
|
|
431
|
+
createBlock: ue
|
|
431
432
|
},
|
|
432
433
|
{
|
|
433
434
|
type: "image",
|
|
434
|
-
createBlock:
|
|
435
|
+
createBlock: ne
|
|
435
436
|
},
|
|
436
437
|
{
|
|
437
438
|
type: "button",
|
|
438
|
-
createBlock:
|
|
439
|
+
createBlock: Oe
|
|
439
440
|
},
|
|
440
441
|
{
|
|
441
442
|
type: "divider",
|
|
442
|
-
createBlock:
|
|
443
|
+
createBlock: ce
|
|
443
444
|
},
|
|
444
445
|
{
|
|
445
446
|
type: "video",
|
|
446
|
-
createBlock:
|
|
447
|
+
createBlock: ee
|
|
447
448
|
},
|
|
448
449
|
{
|
|
449
450
|
type: "social",
|
|
450
|
-
createBlock:
|
|
451
|
+
createBlock: me
|
|
451
452
|
},
|
|
452
453
|
{
|
|
453
454
|
type: "menu",
|
|
454
|
-
createBlock:
|
|
455
|
+
createBlock: G
|
|
455
456
|
},
|
|
456
457
|
{
|
|
457
458
|
type: "table",
|
|
458
|
-
createBlock:
|
|
459
|
+
createBlock: pe
|
|
459
460
|
},
|
|
460
461
|
{
|
|
461
462
|
type: "spacer",
|
|
462
|
-
createBlock:
|
|
463
|
+
createBlock: te
|
|
463
464
|
},
|
|
464
465
|
{
|
|
465
466
|
type: "html",
|
|
466
|
-
createBlock:
|
|
467
|
+
createBlock: H
|
|
467
468
|
},
|
|
468
469
|
{
|
|
469
470
|
type: "countdown",
|
|
470
|
-
createBlock:
|
|
471
|
+
createBlock: ae
|
|
471
472
|
}
|
|
472
473
|
];
|
|
473
|
-
function
|
|
474
|
-
for (let n of
|
|
474
|
+
function $n(e, t) {
|
|
475
|
+
for (let n of Qn) {
|
|
475
476
|
let r = t[n.type];
|
|
476
477
|
r && e.registerBuiltIn(n.type, {
|
|
477
478
|
component: r,
|
|
@@ -481,33 +482,33 @@ function Qn(e, t) {
|
|
|
481
482
|
}
|
|
482
483
|
//#endregion
|
|
483
484
|
//#region src/utils/resolveHtmlBlockPreview.ts
|
|
484
|
-
function
|
|
485
|
+
function er(e) {
|
|
485
486
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
486
487
|
}
|
|
487
488
|
//#endregion
|
|
488
489
|
//#region src/utils/collectOffPaletteDefaults.ts
|
|
489
|
-
function
|
|
490
|
+
function tr(e) {
|
|
490
491
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
491
492
|
}
|
|
492
|
-
function
|
|
493
|
+
function nr(e, t, n) {
|
|
493
494
|
let r = new Set(e.map((e) => cn(e))), i = [], a = (e, t) => {
|
|
494
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(cn(o)) && i.push(`${t}.${n}: ${o}`) :
|
|
495
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(cn(o)) && i.push(`${t}.${n}: ${o}`) : tr(o) && a(o, `${t}.${n}`);
|
|
495
496
|
}, o = t;
|
|
496
|
-
for (let [e, t] of Object.entries(
|
|
497
|
+
for (let [e, t] of Object.entries(ge)) {
|
|
497
498
|
let n = o?.[e];
|
|
498
499
|
a({
|
|
499
500
|
...t,
|
|
500
|
-
...
|
|
501
|
+
...tr(n) ? n : {}
|
|
501
502
|
}, e);
|
|
502
503
|
}
|
|
503
504
|
return a({
|
|
504
|
-
...
|
|
505
|
+
..._e,
|
|
505
506
|
...n ?? {}
|
|
506
507
|
}, "template"), i;
|
|
507
508
|
}
|
|
508
509
|
//#endregion
|
|
509
510
|
//#region src/utils/localizedBlockDefaults.ts
|
|
510
|
-
function
|
|
511
|
+
function rr(e) {
|
|
511
512
|
return {
|
|
512
513
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
513
514
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -516,60 +517,60 @@ function nr(e) {
|
|
|
516
517
|
}
|
|
517
518
|
//#endregion
|
|
518
519
|
//#region src/i18n/index.ts
|
|
519
|
-
var
|
|
520
|
-
"./locales/ca.ts": () => import("./ca-
|
|
521
|
-
"./locales/de.ts": () => import("./de-
|
|
522
|
-
"./locales/en.ts": () => import("./en-
|
|
523
|
-
"./locales/es.ts": () => import("./es-
|
|
524
|
-
"./locales/fr.ts": () => import("./fr-
|
|
525
|
-
"./locales/ja.ts": () => import("./ja-
|
|
526
|
-
"./locales/nl.ts": () => import("./nl-
|
|
527
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
528
|
-
}),
|
|
529
|
-
"./locales/cloud/de.ts": () => import("./de-
|
|
530
|
-
"./locales/cloud/en.ts": () => import("./en-
|
|
531
|
-
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-
|
|
520
|
+
var ir = /* #__PURE__ */ Object.assign({
|
|
521
|
+
"./locales/ca.ts": () => import("./ca-DSJwJ5ov.js"),
|
|
522
|
+
"./locales/de.ts": () => import("./de-CBE6O79z.js"),
|
|
523
|
+
"./locales/en.ts": () => import("./en-CDexnk0p.js"),
|
|
524
|
+
"./locales/es.ts": () => import("./es-BE42B6uN.js"),
|
|
525
|
+
"./locales/fr.ts": () => import("./fr-DlJFPDQR.js"),
|
|
526
|
+
"./locales/ja.ts": () => import("./ja-CUT8gkNI.js"),
|
|
527
|
+
"./locales/nl.ts": () => import("./nl-bXWqqRyS.js"),
|
|
528
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-2_H4-wlb.js")
|
|
529
|
+
}), ar = /* #__PURE__ */ Object.assign({
|
|
530
|
+
"./locales/cloud/de.ts": () => import("./de-D_atmUVB.js"),
|
|
531
|
+
"./locales/cloud/en.ts": () => import("./en-DhJLnaBx.js"),
|
|
532
|
+
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-BphMoUTw.js")
|
|
532
533
|
});
|
|
533
|
-
function
|
|
534
|
+
function or(e) {
|
|
534
535
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
535
536
|
}
|
|
536
|
-
var
|
|
537
|
-
function
|
|
537
|
+
var sr = or(ir), cr = or(ar);
|
|
538
|
+
function lr(e) {
|
|
538
539
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
-
let n =
|
|
542
|
-
return t.find((e) =>
|
|
541
|
+
function ur(e, t) {
|
|
542
|
+
let n = lr(e);
|
|
543
|
+
return t.find((e) => lr(e) === n);
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
546
|
-
}
|
|
547
|
-
function dr(e, t) {
|
|
548
|
-
return lr(e, t) ?? lr(ur(e), t);
|
|
545
|
+
function dr(e) {
|
|
546
|
+
return lr(e).split("-")[0];
|
|
549
547
|
}
|
|
550
548
|
function fr(e, t) {
|
|
551
|
-
return
|
|
549
|
+
return ur(e, t) ?? ur(dr(e), t);
|
|
552
550
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
return (await t()).default;
|
|
551
|
+
function pr(e, t) {
|
|
552
|
+
return fr(e, t) ?? "en";
|
|
556
553
|
}
|
|
557
554
|
async function mr(e) {
|
|
558
|
-
let t = ir[`./locales
|
|
555
|
+
let t = ir[`./locales/${pr(e, sr)}.ts`];
|
|
559
556
|
return (await t()).default;
|
|
560
557
|
}
|
|
561
|
-
function hr(e) {
|
|
562
|
-
|
|
558
|
+
async function hr(e) {
|
|
559
|
+
let t = ar[`./locales/cloud/${pr(e, cr)}.ts`];
|
|
560
|
+
return (await t()).default;
|
|
563
561
|
}
|
|
564
562
|
function gr(e) {
|
|
565
|
-
return
|
|
563
|
+
return fr(e, sr) !== void 0;
|
|
566
564
|
}
|
|
567
|
-
function _r() {
|
|
568
|
-
return
|
|
565
|
+
function _r(e) {
|
|
566
|
+
return fr(e, cr) !== void 0;
|
|
569
567
|
}
|
|
570
568
|
function vr() {
|
|
571
569
|
return [...sr];
|
|
572
570
|
}
|
|
571
|
+
function yr() {
|
|
572
|
+
return [...cr];
|
|
573
|
+
}
|
|
573
574
|
//#endregion
|
|
574
575
|
//#region src/i18n/contentDefaults.ts
|
|
575
576
|
var $ = {
|
|
@@ -637,16 +638,16 @@ var $ = {
|
|
|
637
638
|
seconds: "秒",
|
|
638
639
|
expired: "このオファーは終了しました"
|
|
639
640
|
}
|
|
640
|
-
},
|
|
641
|
-
function
|
|
641
|
+
}, br = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
|
|
642
|
+
function xr(e) {
|
|
642
643
|
if (!e) return $.en;
|
|
643
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
644
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = br.get(t);
|
|
644
645
|
if (n) return $[n];
|
|
645
|
-
let r =
|
|
646
|
+
let r = br.get(dr(t));
|
|
646
647
|
return r ? $[r] : $.en;
|
|
647
648
|
}
|
|
648
|
-
function
|
|
649
|
-
let t =
|
|
649
|
+
function Sr(e) {
|
|
650
|
+
let t = xr(e);
|
|
650
651
|
return {
|
|
651
652
|
video: { alt: t.video },
|
|
652
653
|
countdown: {
|
|
@@ -660,7 +661,7 @@ function xr(e) {
|
|
|
660
661
|
}
|
|
661
662
|
//#endregion
|
|
662
663
|
//#region src/utils/collectColorFieldIssues.ts
|
|
663
|
-
function
|
|
664
|
+
function Cr(e, t) {
|
|
664
665
|
let n = [], r = (r, i) => {
|
|
665
666
|
let a = $e(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
666
667
|
if (a.invalidPresets.length > 0 && n.push({
|
|
@@ -686,7 +687,7 @@ function Sr(e, t) {
|
|
|
686
687
|
}
|
|
687
688
|
//#endregion
|
|
688
689
|
//#region src/utils/keyboardShortcuts.ts
|
|
689
|
-
function
|
|
690
|
+
function wr(e) {
|
|
690
691
|
for (let t of e.composedPath()) {
|
|
691
692
|
if (!(t instanceof HTMLElement)) continue;
|
|
692
693
|
if (t.isContentEditable) return !0;
|
|
@@ -695,14 +696,14 @@ function Cr(e) {
|
|
|
695
696
|
}
|
|
696
697
|
return !1;
|
|
697
698
|
}
|
|
698
|
-
function
|
|
699
|
+
function Tr(e, t) {
|
|
699
700
|
let n = e.metaKey || e.ctrlKey;
|
|
700
701
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
701
702
|
else if (n && e.key.toLowerCase() === "z") {
|
|
702
|
-
if (
|
|
703
|
-
e.preventDefault(), e.shiftKey ? t.history.redo() :
|
|
703
|
+
if (wr(e)) return;
|
|
704
|
+
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
704
705
|
} else {
|
|
705
|
-
if (t.isPicking?.() && !
|
|
706
|
+
if (t.isPicking?.() && !wr(e)) {
|
|
706
707
|
if (e.key === "Escape") {
|
|
707
708
|
e.preventDefault(), t.onCancelPick?.();
|
|
708
709
|
return;
|
|
@@ -716,105 +717,105 @@ function wr(e, t) {
|
|
|
716
717
|
return;
|
|
717
718
|
}
|
|
718
719
|
}
|
|
719
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
720
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !wr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
720
721
|
}
|
|
721
722
|
}
|
|
722
723
|
//#endregion
|
|
723
724
|
//#region src/utils/blockComponentResolver.ts
|
|
724
|
-
function
|
|
725
|
+
function Er(e, t) {
|
|
725
726
|
let n = { fontFamily: t(e.fontFamily) };
|
|
726
727
|
return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
+
function Dr(e, t, n) {
|
|
729
730
|
if (t) {
|
|
730
731
|
let n = t.getComponent(e);
|
|
731
732
|
if (n) return n;
|
|
732
733
|
}
|
|
733
734
|
return n[e.type] ?? null;
|
|
734
735
|
}
|
|
735
|
-
var
|
|
736
|
-
function
|
|
736
|
+
var Or = "--tpl-block-bg-layer", kr = "tpl-has-bg-image";
|
|
737
|
+
function Ar(e, t) {
|
|
737
738
|
if (t === null) return {};
|
|
738
|
-
let n =
|
|
739
|
+
let n = oe(e);
|
|
739
740
|
if (n === null) return {};
|
|
740
|
-
let r = t?.trim(), i = r ?
|
|
741
|
+
let r = t?.trim(), i = r ? ke(r) : n.url;
|
|
741
742
|
return {
|
|
742
743
|
backgroundImage: `url("${i}")`,
|
|
743
744
|
backgroundSize: n.size,
|
|
744
745
|
backgroundPosition: n.position,
|
|
745
746
|
backgroundRepeat: n.repeat,
|
|
746
|
-
[
|
|
747
|
+
[Or]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
747
748
|
};
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
-
return e &&
|
|
750
|
+
function jr(e) {
|
|
751
|
+
return e && Or in e ? kr : void 0;
|
|
751
752
|
}
|
|
752
|
-
var
|
|
753
|
+
var Mr = {
|
|
753
754
|
top: "flex-start",
|
|
754
755
|
middle: "center",
|
|
755
756
|
bottom: "flex-end"
|
|
756
757
|
};
|
|
757
|
-
function
|
|
758
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
758
|
+
function Nr(e, t) {
|
|
759
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Pr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
759
760
|
return {
|
|
760
761
|
display: "flex",
|
|
761
762
|
flexDirection: "column",
|
|
762
|
-
justifyContent:
|
|
763
|
+
justifyContent: Mr[e.verticalAlign],
|
|
763
764
|
boxSizing: "border-box",
|
|
764
765
|
...n
|
|
765
766
|
};
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
+
function Pr(e, t) {
|
|
768
769
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
+
function Fr(e, t = {}) {
|
|
771
772
|
if (e.type === "wrapper") return {};
|
|
772
773
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
773
774
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
774
775
|
backgroundColor: r || "transparent"
|
|
775
776
|
};
|
|
776
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
777
|
-
let n =
|
|
777
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? re.paragraphGap : re.paragraphGap}px`), e.type === "section") {
|
|
778
|
+
let n = z(e.borderRadius);
|
|
778
779
|
n !== null && (i.borderRadius = n);
|
|
779
|
-
let r =
|
|
780
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
780
|
+
let r = V(e);
|
|
781
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Nr(r, t.heroBoxWidth)), Object.assign(i, Ar({
|
|
781
782
|
...e.backgroundImage,
|
|
782
783
|
size: "cover",
|
|
783
784
|
repeat: !1
|
|
784
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
785
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, Lr(e.border)), Object.assign(i, Ar(e.backgroundImage, t.backgroundImageUrl)));
|
|
785
786
|
}
|
|
786
787
|
return i;
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.type === "section" ?
|
|
789
|
+
function Ir(e, t, n, r) {
|
|
790
|
+
return e.type === "section" ? Fr(e, {
|
|
790
791
|
backgroundImageUrl: st(t, e.backgroundImage, n),
|
|
791
792
|
heroBoxWidth: r
|
|
792
|
-
}) :
|
|
793
|
+
}) : Fr(e);
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
+
function Lr(e) {
|
|
795
796
|
let t = {};
|
|
796
|
-
for (let [n, r] of Object.entries(
|
|
797
|
+
for (let [n, r] of Object.entries(Ue(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
797
798
|
return t;
|
|
798
799
|
}
|
|
799
|
-
function
|
|
800
|
+
function Rr(e, t = {}) {
|
|
800
801
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
801
802
|
let n = e.wrapper, r = {};
|
|
802
803
|
n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
|
|
803
|
-
let i =
|
|
804
|
-
return i !== null && (r.borderRadius = i), Object.assign(r,
|
|
804
|
+
let i = z(n.borderRadius);
|
|
805
|
+
return i !== null && (r.borderRadius = i), Object.assign(r, Ar(n.backgroundImage, t.backgroundImageUrl)), r;
|
|
805
806
|
}
|
|
806
|
-
function
|
|
807
|
+
function zr(e, t = {}) {
|
|
807
808
|
if (e.type !== "wrapper") return null;
|
|
808
809
|
let n = {};
|
|
809
810
|
if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
|
|
810
811
|
let t = e.styles.padding;
|
|
811
812
|
n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
|
|
812
813
|
}
|
|
813
|
-
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n,
|
|
814
|
+
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ar(e.backgroundImage, t.backgroundImageUrl)), n;
|
|
814
815
|
}
|
|
815
816
|
//#endregion
|
|
816
817
|
//#region src/utils/mergeTagLabelSegments.ts
|
|
817
|
-
function
|
|
818
|
+
function Br(e, t, n, r = !1) {
|
|
818
819
|
if (!e) return [];
|
|
819
820
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
820
821
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -823,18 +824,18 @@ function zr(e, t, n, r = !1) {
|
|
|
823
824
|
value: e.slice(o, s.index)
|
|
824
825
|
});
|
|
825
826
|
let i = s[0];
|
|
826
|
-
if (
|
|
827
|
-
let e = r ?
|
|
827
|
+
if (Se(i, n)) {
|
|
828
|
+
let e = r ? Ne(i, t) : void 0;
|
|
828
829
|
a.push(e === void 0 ? {
|
|
829
830
|
type: "tag",
|
|
830
|
-
value:
|
|
831
|
+
value: ve(i, t)
|
|
831
832
|
} : {
|
|
832
833
|
type: "text",
|
|
833
834
|
value: e
|
|
834
835
|
});
|
|
835
|
-
} else
|
|
836
|
+
} else Re(i, n) ? a.push({
|
|
836
837
|
type: "tag",
|
|
837
|
-
value:
|
|
838
|
+
value: De(i, n)
|
|
838
839
|
}) : a.push({
|
|
839
840
|
type: "text",
|
|
840
841
|
value: i
|
|
@@ -848,20 +849,20 @@ function zr(e, t, n, r = !1) {
|
|
|
848
849
|
}
|
|
849
850
|
//#endregion
|
|
850
851
|
//#region src/components/MergeTagPreviewText.vue
|
|
851
|
-
var
|
|
852
|
+
var Vr = d({
|
|
852
853
|
name: "MergeTagPreviewText",
|
|
853
854
|
props: { text: {
|
|
854
855
|
type: String,
|
|
855
856
|
required: !0
|
|
856
857
|
} },
|
|
857
858
|
setup(e) {
|
|
858
|
-
let t = n(q, xt), r = n(At,
|
|
859
|
+
let t = n(q, xt), r = n(At, Me.liquid), i = n(jt, null), a = y(() => Br(e.text, t.value, r, i?.value ?? !1));
|
|
859
860
|
return () => a.value.map((e, t) => e.type === "tag" ? F("span", {
|
|
860
861
|
key: t,
|
|
861
862
|
class: "tpl-merge-tag-label"
|
|
862
863
|
}, e.value) : e.value);
|
|
863
864
|
}
|
|
864
|
-
}),
|
|
865
|
+
}), Hr = ["href"], Ur = /* @__PURE__ */ d({
|
|
865
866
|
__name: "ButtonBlock",
|
|
866
867
|
props: {
|
|
867
868
|
block: {},
|
|
@@ -877,23 +878,23 @@ var Br = d({
|
|
|
877
878
|
fontSize: `${t.block.fontSize}px`,
|
|
878
879
|
fontWeight: "bold",
|
|
879
880
|
textDecoration: "none",
|
|
880
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
881
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : z(t.block.borderRadius) ?? "0px",
|
|
881
882
|
textAlign: "center"
|
|
882
883
|
};
|
|
883
|
-
return Object.assign(e,
|
|
884
|
+
return Object.assign(e, Lr(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
884
885
|
}), i = y(() => ({ textAlign: t.block.align ?? "center" }));
|
|
885
886
|
return (t, n) => (s(), b("div", { style: E(i.value) }, [O("a", {
|
|
886
887
|
href: e.block.url || "#",
|
|
887
888
|
style: E(r.value),
|
|
888
889
|
class: "tpl:cursor-default",
|
|
889
890
|
onClick: n[0] ||= T(() => {}, ["prevent"])
|
|
890
|
-
}, [h(
|
|
891
|
+
}, [h(Vr, { text: e.block.text }, null, 8, ["text"])], 12, Hr)], 4));
|
|
891
892
|
}
|
|
892
|
-
}),
|
|
893
|
+
}), Wr = ["innerHTML"], Gr = [
|
|
893
894
|
"src",
|
|
894
895
|
"width",
|
|
895
896
|
"height"
|
|
896
|
-
],
|
|
897
|
+
], Kr = /* @__PURE__ */ d({
|
|
897
898
|
__name: "CustomBlockIcon",
|
|
898
899
|
props: {
|
|
899
900
|
icon: {},
|
|
@@ -909,24 +910,24 @@ var Br = d({
|
|
|
909
910
|
height: `${n.value}px`
|
|
910
911
|
}),
|
|
911
912
|
innerHTML: e.icon
|
|
912
|
-
}, null, 12,
|
|
913
|
+
}, null, 12, Wr)) : i.value ? (s(), b("img", {
|
|
913
914
|
key: 1,
|
|
914
915
|
src: e.icon,
|
|
915
916
|
width: n.value,
|
|
916
917
|
height: n.value,
|
|
917
918
|
class: "tpl:inline-block",
|
|
918
919
|
alt: ""
|
|
919
|
-
}, null, 8,
|
|
920
|
+
}, null, 8, Gr)) : (s(), D(m(vn), {
|
|
920
921
|
key: 2,
|
|
921
922
|
size: n.value,
|
|
922
923
|
"stroke-width": 1.5
|
|
923
924
|
}, null, 8, ["size"]));
|
|
924
925
|
}
|
|
925
|
-
}),
|
|
926
|
-
function
|
|
926
|
+
}), qr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
927
|
+
function Jr(e, n) {
|
|
927
928
|
let r = jn(), i = null, a = null, o = null;
|
|
928
929
|
function s() {
|
|
929
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
930
|
+
return e.value ? Array.from(e.value.querySelectorAll(qr)).filter((e) => e.offsetParent !== null) : [];
|
|
930
931
|
}
|
|
931
932
|
function c(e) {
|
|
932
933
|
if (e.key !== "Tab") return;
|
|
@@ -956,7 +957,7 @@ function qr(e, n) {
|
|
|
956
957
|
}
|
|
957
958
|
//#endregion
|
|
958
959
|
//#region src/composables/useEmoji.ts
|
|
959
|
-
function
|
|
960
|
+
function Yr() {
|
|
960
961
|
let [e, n] = dt(!1), r = v([]), i = !1;
|
|
961
962
|
p(() => {
|
|
962
963
|
i = !0;
|
|
@@ -982,7 +983,7 @@ function Jr() {
|
|
|
982
983
|
}
|
|
983
984
|
//#endregion
|
|
984
985
|
//#region src/composables/useFonts.ts
|
|
985
|
-
var
|
|
986
|
+
var Xr = [
|
|
986
987
|
{
|
|
987
988
|
value: "Arial",
|
|
988
989
|
label: "Arial"
|
|
@@ -1011,19 +1012,19 @@ var Yr = [
|
|
|
1011
1012
|
value: "Courier New",
|
|
1012
1013
|
label: "Courier New"
|
|
1013
1014
|
}
|
|
1014
|
-
],
|
|
1015
|
-
function
|
|
1016
|
-
if (e === void 0 || e === !0) return [...
|
|
1015
|
+
], Zr = "Arial, sans-serif";
|
|
1016
|
+
function Qr(e) {
|
|
1017
|
+
if (e === void 0 || e === !0) return [...Xr];
|
|
1017
1018
|
if (e === !1) return [];
|
|
1018
1019
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1019
1020
|
for (let i of e) {
|
|
1020
|
-
let e = i.toLowerCase(), a =
|
|
1021
|
-
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), Z.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${
|
|
1021
|
+
let e = i.toLowerCase(), a = Xr.find((t) => t.value.toLowerCase() === e);
|
|
1022
|
+
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), Z.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Xr.map((e) => e.value).join(", ")}.`));
|
|
1022
1023
|
}
|
|
1023
1024
|
return t;
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let t = l(e?.customFonts ?? []), n = l(!1), r =
|
|
1026
|
+
function $r(e) {
|
|
1027
|
+
let t = l(e?.customFonts ?? []), n = l(!1), r = Qr(e?.builtIns), i = y(() => e?.defaultFallback ?? Zr), a = y(() => {
|
|
1027
1028
|
let e = [...r], n = t.value.map((e) => ({
|
|
1028
1029
|
value: e.name,
|
|
1029
1030
|
label: e.name,
|
|
@@ -1034,18 +1035,18 @@ function Qr(e) {
|
|
|
1034
1035
|
function s(e) {
|
|
1035
1036
|
return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1036
1037
|
}
|
|
1037
|
-
let c = e?.defaultFont ??
|
|
1038
|
+
let c = e?.defaultFont ?? Zr.split(",")[0].trim();
|
|
1038
1039
|
s(c) || Z.warn(`config.fonts: new templates seed "${c}", 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.`);
|
|
1039
1040
|
function u() {
|
|
1040
1041
|
if (e?.defaultFont && s(e.defaultFont)) {
|
|
1041
1042
|
let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1042
1043
|
if (t) return t.value;
|
|
1043
1044
|
}
|
|
1044
|
-
return
|
|
1045
|
+
return Zr;
|
|
1045
1046
|
}
|
|
1046
1047
|
let d = y(() => u());
|
|
1047
1048
|
function f(e) {
|
|
1048
|
-
return
|
|
1049
|
+
return Ve(e, {
|
|
1049
1050
|
customFonts: t.value,
|
|
1050
1051
|
defaultFallback: i.value
|
|
1051
1052
|
});
|
|
@@ -1089,12 +1090,12 @@ function Qr(e) {
|
|
|
1089
1090
|
}
|
|
1090
1091
|
//#endregion
|
|
1091
1092
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1093
|
+
function ei(e, t, n) {
|
|
1094
|
+
return Re(e, n) ? {
|
|
1094
1095
|
type: "logicMergeTagNode",
|
|
1095
1096
|
attrs: {
|
|
1096
1097
|
value: e,
|
|
1097
|
-
keyword:
|
|
1098
|
+
keyword: De(e, n)
|
|
1098
1099
|
}
|
|
1099
1100
|
} : {
|
|
1100
1101
|
type: "mergeTagNode",
|
|
@@ -1106,33 +1107,33 @@ function $r(e, t, n) {
|
|
|
1106
1107
|
}
|
|
1107
1108
|
//#endregion
|
|
1108
1109
|
//#region src/utils/insertLogicTag.ts
|
|
1109
|
-
function
|
|
1110
|
+
function ti(e) {
|
|
1110
1111
|
return "before" in e && "after" in e;
|
|
1111
1112
|
}
|
|
1112
|
-
function
|
|
1113
|
-
if (!
|
|
1114
|
-
e.chain().focus().insertContent(
|
|
1113
|
+
function ni(e, t, n) {
|
|
1114
|
+
if (!ti(t)) {
|
|
1115
|
+
e.chain().focus().insertContent(ei(t.value, t.label, n)).run();
|
|
1115
1116
|
return;
|
|
1116
1117
|
}
|
|
1117
|
-
let r =
|
|
1118
|
+
let r = ei(t.before, t.label, n), i = ei(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1118
1119
|
a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1119
1120
|
}
|
|
1120
1121
|
//#endregion
|
|
1121
1122
|
//#region src/utils/linkColorExtension.ts
|
|
1122
|
-
function
|
|
1123
|
+
function ri(e) {
|
|
1123
1124
|
if (!e) return null;
|
|
1124
1125
|
let t = e.trim();
|
|
1125
1126
|
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;
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
+
function ii(e) {
|
|
1128
1129
|
return e.extend({ addAttributes() {
|
|
1129
1130
|
return {
|
|
1130
1131
|
...this.parent?.(),
|
|
1131
1132
|
color: {
|
|
1132
1133
|
default: null,
|
|
1133
|
-
parseHTML: (e) =>
|
|
1134
|
+
parseHTML: (e) => ri(sn(e.style.color)),
|
|
1134
1135
|
renderHTML: (e) => {
|
|
1135
|
-
let t =
|
|
1136
|
+
let t = ri(e.color);
|
|
1136
1137
|
return t ? { style: `color: ${t}` } : {};
|
|
1137
1138
|
}
|
|
1138
1139
|
}
|
|
@@ -1141,9 +1142,9 @@ function ri(e) {
|
|
|
1141
1142
|
}
|
|
1142
1143
|
//#endregion
|
|
1143
1144
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1144
|
-
function
|
|
1145
|
+
function ai(e, t = Me.liquid) {
|
|
1145
1146
|
let n = l(!1), r = l(""), i = l(""), a = l(null);
|
|
1146
|
-
|
|
1147
|
+
Jr(a, n);
|
|
1147
1148
|
function o() {
|
|
1148
1149
|
let t = e.value?.getAttributes("link") ?? {};
|
|
1149
1150
|
r.value = t.href || "", i.value = t.color || "", n.value = !0;
|
|
@@ -1152,7 +1153,7 @@ function ii(e, t = Re.liquid) {
|
|
|
1152
1153
|
if (r.value) {
|
|
1153
1154
|
let t = f(r.value);
|
|
1154
1155
|
if (t !== null) {
|
|
1155
|
-
let n =
|
|
1156
|
+
let n = ri(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1156
1157
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
1157
1158
|
}
|
|
1158
1159
|
}
|
|
@@ -1204,13 +1205,13 @@ function ii(e, t = Re.liquid) {
|
|
|
1204
1205
|
}
|
|
1205
1206
|
//#endregion
|
|
1206
1207
|
//#region src/composables/useRichTextEditor.ts
|
|
1207
|
-
function
|
|
1208
|
-
let i = n(J, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = Mn(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = Nn(), h = n(Lt, null), g = (k(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ =
|
|
1208
|
+
function oi(r) {
|
|
1209
|
+
let i = n(J, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = Mn(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = Nn(), h = n(Lt, null), g = (k(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = xe(u), y = v(null), b = () => W(i?.content?.value?.settings ?? { locale: "en" });
|
|
1209
1210
|
t(b, (e) => {
|
|
1210
1211
|
let t = y.value?.view.dom;
|
|
1211
1212
|
t && t.setAttribute("dir", e);
|
|
1212
1213
|
});
|
|
1213
|
-
let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: A } =
|
|
1214
|
+
let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: A } = ai(y, u), { start: j, stop: M } = lt(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = v(null), P = l(!0), F = l(null), I = !1, L = null;
|
|
1214
1215
|
async function R() {
|
|
1215
1216
|
F.value = null, P.value = !0;
|
|
1216
1217
|
try {
|
|
@@ -1269,9 +1270,9 @@ function ai(r) {
|
|
|
1269
1270
|
value: e.value
|
|
1270
1271
|
}).run() : y.value?.commands.focus());
|
|
1271
1272
|
}
|
|
1272
|
-
async function
|
|
1273
|
+
async function U() {
|
|
1273
1274
|
let e = await m();
|
|
1274
|
-
I || (e && y.value ?
|
|
1275
|
+
I || (e && y.value ? ni(y.value, e, u) : y.value?.commands.focus());
|
|
1275
1276
|
}
|
|
1276
1277
|
return {
|
|
1277
1278
|
editor: y,
|
|
@@ -1295,14 +1296,14 @@ function ai(r) {
|
|
|
1295
1296
|
closeLinkDialog: O,
|
|
1296
1297
|
handleLinkKeydown: A,
|
|
1297
1298
|
handleAddMergeTag: H,
|
|
1298
|
-
handleAddLogicTag:
|
|
1299
|
+
handleAddLogicTag: U
|
|
1299
1300
|
};
|
|
1300
1301
|
}
|
|
1301
1302
|
//#endregion
|
|
1302
1303
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1303
|
-
var
|
|
1304
|
-
function
|
|
1305
|
-
let t = mt(
|
|
1304
|
+
var si = "(max-width: 767px)";
|
|
1305
|
+
function ci(e) {
|
|
1306
|
+
let t = mt(si);
|
|
1306
1307
|
return {
|
|
1307
1308
|
isSmallScreen: t,
|
|
1308
1309
|
showNotice: y(() => (A(e) ?? !0) && t.value)
|
|
@@ -1310,20 +1311,20 @@ function si(e) {
|
|
|
1310
1311
|
}
|
|
1311
1312
|
//#endregion
|
|
1312
1313
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1313
|
-
var
|
|
1314
|
+
var li = { class: "tpl:w-full" }, ui = {
|
|
1314
1315
|
key: 0,
|
|
1315
1316
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1316
|
-
},
|
|
1317
|
+
}, di = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, fi = {
|
|
1317
1318
|
key: 1,
|
|
1318
1319
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1319
|
-
},
|
|
1320
|
+
}, pi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, mi = {
|
|
1320
1321
|
key: 2,
|
|
1321
1322
|
class: "tpl:relative"
|
|
1322
|
-
},
|
|
1323
|
+
}, hi = ["innerHTML"], gi = {
|
|
1323
1324
|
key: 0,
|
|
1324
1325
|
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]",
|
|
1325
1326
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1326
|
-
},
|
|
1327
|
+
}, _i = /* @__PURE__ */ d({
|
|
1327
1328
|
__name: "CustomBlock",
|
|
1328
1329
|
props: {
|
|
1329
1330
|
block: {},
|
|
@@ -1331,7 +1332,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1331
1332
|
},
|
|
1332
1333
|
emits: ["fetchData"],
|
|
1333
1334
|
setup(e, { emit: r }) {
|
|
1334
|
-
let i = e, a = r, { t: o } = X(), c = n(tn, null), u = l(""), d = l(!1), f = y(() => c?.getDefinition(i.block.customType)), p = y(() => !!f.value), g = y(() => i.block), { isFetching: _, fetch: v, needsFetch: S, hasDataSource: w } =
|
|
1335
|
+
let i = e, a = r, { t: o } = X(), c = n(tn, null), u = l(""), d = l(!1), f = y(() => c?.getDefinition(i.block.customType)), p = y(() => !!f.value), g = y(() => i.block), { isFetching: _, fetch: v, needsFetch: S, hasDataSource: w } = Je({
|
|
1335
1336
|
definition: f,
|
|
1336
1337
|
block: g,
|
|
1337
1338
|
onUpdate: (e, t) => {
|
|
@@ -1343,7 +1344,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1343
1344
|
}), E = n(q, xt), k = n(jt, null), A = y(() => {
|
|
1344
1345
|
if (!k?.value) return i.block;
|
|
1345
1346
|
let e = {};
|
|
1346
|
-
for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ?
|
|
1347
|
+
for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? Te(n, E.value) : n;
|
|
1347
1348
|
return {
|
|
1348
1349
|
...i.block,
|
|
1349
1350
|
fieldValues: e
|
|
@@ -1367,10 +1368,10 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1367
1368
|
M();
|
|
1368
1369
|
}, { deep: !0 }), t(() => k?.value, () => {
|
|
1369
1370
|
M();
|
|
1370
|
-
}), (e, t) => (s(), b("div",
|
|
1371
|
+
}), (e, t) => (s(), b("div", li, [p.value ? d.value ? (s(), b("div", fi, [h(m(Sn), {
|
|
1371
1372
|
size: 24,
|
|
1372
1373
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1373
|
-
}), O("span",
|
|
1374
|
+
}), O("span", pi, P(m(o).customBlocks.renderError), 1)])) : (s(), b("div", mi, [O("div", { innerHTML: u.value }, null, 8, hi), m(w) && m(S) ? (s(), b("div", gi, [m(_) ? (s(), D(kn, {
|
|
1374
1375
|
key: 1,
|
|
1375
1376
|
class: "tpl:w-48"
|
|
1376
1377
|
})) : (s(), b("button", {
|
|
@@ -1378,16 +1379,16 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1378
1379
|
type: "button",
|
|
1379
1380
|
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-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1380
1381
|
onClick: t[0] ||= T((...e) => m(v) && m(v)(...e), ["stop"])
|
|
1381
|
-
}, [f.value?.icon ? (s(), D(
|
|
1382
|
+
}, [f.value?.icon ? (s(), D(Kr, {
|
|
1382
1383
|
key: 0,
|
|
1383
1384
|
icon: f.value.icon,
|
|
1384
1385
|
size: 16
|
|
1385
|
-
}, null, 8, ["icon"])) : x("", !0), L(" " + P(f.value?.dataSource?.label || m(o).customBlocks.dataSource.fetchButton), 1)]))])) : x("", !0)])) : (s(), b("div",
|
|
1386
|
+
}, null, 8, ["icon"])) : x("", !0), L(" " + P(f.value?.dataSource?.label || m(o).customBlocks.dataSource.fetchButton), 1)]))])) : x("", !0)])) : (s(), b("div", ui, [h(m(_n), {
|
|
1386
1387
|
size: 24,
|
|
1387
1388
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1388
|
-
}), O("span",
|
|
1389
|
+
}), O("span", di, P(m(o).customBlocks.definitionNotFound), 1)]))]));
|
|
1389
1390
|
}
|
|
1390
|
-
}),
|
|
1391
|
+
}), vi = { class: "tpl:w-full" }, yi = /* @__PURE__ */ d({
|
|
1391
1392
|
__name: "DividerBlock",
|
|
1392
1393
|
props: {
|
|
1393
1394
|
block: {},
|
|
@@ -1399,28 +1400,28 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1399
1400
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1400
1401
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1401
1402
|
}));
|
|
1402
|
-
return (e, t) => (s(), b("div",
|
|
1403
|
+
return (e, t) => (s(), b("div", vi, [O("hr", {
|
|
1403
1404
|
class: "tpl:m-0 tpl:border-none",
|
|
1404
1405
|
style: E(n.value)
|
|
1405
1406
|
}, null, 4)]));
|
|
1406
1407
|
}
|
|
1407
|
-
}),
|
|
1408
|
+
}), bi = { class: "tpl:w-full" }, xi = ["srcdoc", "title"], Si = {
|
|
1408
1409
|
key: 1,
|
|
1409
1410
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1410
|
-
},
|
|
1411
|
+
}, Ci = {
|
|
1411
1412
|
key: 0,
|
|
1412
1413
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1413
|
-
},
|
|
1414
|
+
}, wi = {
|
|
1414
1415
|
key: 1,
|
|
1415
1416
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1416
|
-
},
|
|
1417
|
+
}, Ti = /* @__PURE__ */ d({
|
|
1417
1418
|
__name: "HtmlBlock",
|
|
1418
1419
|
props: {
|
|
1419
1420
|
block: {},
|
|
1420
1421
|
viewport: {}
|
|
1421
1422
|
},
|
|
1422
1423
|
setup(r) {
|
|
1423
|
-
let i = r, { t: a } = X(), o = n(Vt, !1), c = y(() => i.block.content.trim().length > 0), u = y(() => o && c.value), d = n(q, xt), f = n(jt, null), p = y(() => f?.value ?
|
|
1424
|
+
let i = r, { t: a } = X(), o = n(Vt, !1), c = y(() => i.block.content.trim().length > 0), u = y(() => o && c.value), d = n(q, xt), f = n(jt, null), p = y(() => f?.value ? Te(i.block.content, d.value) : i.block.content), g = l(null), _ = l(60), v = null;
|
|
1424
1425
|
function x() {
|
|
1425
1426
|
let e = g.value?.contentDocument;
|
|
1426
1427
|
e && (_.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1434,7 +1435,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1434
1435
|
e || (v?.disconnect(), v = null);
|
|
1435
1436
|
}), e(() => {
|
|
1436
1437
|
v?.disconnect(), v = null;
|
|
1437
|
-
}), (e, t) => (s(), b("div",
|
|
1438
|
+
}), (e, t) => (s(), b("div", bi, [u.value ? (s(), b("iframe", {
|
|
1438
1439
|
key: 0,
|
|
1439
1440
|
ref_key: "iframeRef",
|
|
1440
1441
|
ref: g,
|
|
@@ -1444,18 +1445,18 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1444
1445
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1445
1446
|
style: E({ height: `${_.value}px` }),
|
|
1446
1447
|
onLoad: S
|
|
1447
|
-
}, null, 44,
|
|
1448
|
+
}, null, 44, xi)) : (s(), b("div", Si, [h(m(pn), {
|
|
1448
1449
|
size: 24,
|
|
1449
1450
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1450
|
-
}), c.value ? (s(), b("span",
|
|
1451
|
+
}), c.value ? (s(), b("span", Ci, P(m(a).html.preview), 1)) : (s(), b("span", wi, P(m(a).html.empty), 1))]))]));
|
|
1451
1452
|
}
|
|
1452
|
-
}),
|
|
1453
|
+
}), Ei = ["data-drop-enabled"], Di = ["href"], Oi = ["src", "alt"], ki = ["src", "alt"], Ai = {
|
|
1453
1454
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1454
1455
|
style: { opacity: "0.7" }
|
|
1455
|
-
},
|
|
1456
|
+
}, ji = ["href"], Mi = ["src", "alt"], Ni = ["src", "alt"], Pi = {
|
|
1456
1457
|
key: 4,
|
|
1457
1458
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1458
|
-
},
|
|
1459
|
+
}, Fi = ["aria-label"], Ii = { key: 1 }, Li = /* @__PURE__ */ d({
|
|
1459
1460
|
__name: "ImageBlock",
|
|
1460
1461
|
props: {
|
|
1461
1462
|
block: {},
|
|
@@ -1463,7 +1464,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1463
1464
|
},
|
|
1464
1465
|
emits: ["update"],
|
|
1465
1466
|
setup(e, { emit: t }) {
|
|
1466
|
-
let n = e, r = t, { t: i } = X(), { syntax: a } = Mn(), o = y(() =>
|
|
1467
|
+
let n = e, r = t, { t: i } = X(), { syntax: a } = Mn(), o = y(() => Ie(n.block.src, a));
|
|
1467
1468
|
function c(e) {
|
|
1468
1469
|
let t = {
|
|
1469
1470
|
src: e.url,
|
|
@@ -1476,7 +1477,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1476
1477
|
blocked: o,
|
|
1477
1478
|
apply: c
|
|
1478
1479
|
}), v = y(() => ({ textAlign: n.block.align })), S = y(() => {
|
|
1479
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1480
|
+
let e = n.block.border, t = ["left", "right"].map((t) => de(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1480
1481
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1481
1482
|
}), C = y(() => {
|
|
1482
1483
|
let e = n.block.align;
|
|
@@ -1484,13 +1485,13 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1484
1485
|
maxWidth: "100%",
|
|
1485
1486
|
width: n.block.width === "full" ? S.value : `${n.block.width}px`,
|
|
1486
1487
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1487
|
-
borderRadius:
|
|
1488
|
-
...
|
|
1488
|
+
borderRadius: z(n.block.borderRadius) ?? void 0,
|
|
1489
|
+
...Lr(n.block.border),
|
|
1489
1490
|
display: "block",
|
|
1490
1491
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1491
1492
|
marginRight: e === "center" ? "auto" : void 0
|
|
1492
1493
|
};
|
|
1493
|
-
}), w =
|
|
1494
|
+
}), w = We(() => o.value ? void 0 : n.block.src), k = We(() => o.value ? n.block.placeholderUrl : void 0);
|
|
1494
1495
|
return (t, n) => (s(), b("div", {
|
|
1495
1496
|
ref_key: "dropZoneRef",
|
|
1496
1497
|
ref: u,
|
|
@@ -1514,13 +1515,13 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1514
1515
|
src: m(k),
|
|
1515
1516
|
alt: e.block.alt || m(i).image.altTextPlaceholder,
|
|
1516
1517
|
style: E(C.value)
|
|
1517
|
-
}, null, 12,
|
|
1518
|
+
}, null, 12, Oi)], 8, Di)) : (s(), b("img", {
|
|
1518
1519
|
key: 1,
|
|
1519
1520
|
class: "tpl:border-0",
|
|
1520
1521
|
src: m(k),
|
|
1521
1522
|
alt: e.block.alt,
|
|
1522
1523
|
style: E(C.value)
|
|
1523
|
-
}, null, 12,
|
|
1524
|
+
}, null, 12, ki))], 64)) : e.block.src && o.value ? (s(), b("div", {
|
|
1524
1525
|
key: 2,
|
|
1525
1526
|
class: "tpl:!flex tpl:box-border 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)]",
|
|
1526
1527
|
style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, C.value])
|
|
@@ -1529,7 +1530,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1529
1530
|
"stroke-width": 1.5,
|
|
1530
1531
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1531
1532
|
style: { opacity: "0.5" }
|
|
1532
|
-
}), O("span",
|
|
1533
|
+
}), O("span", Ai, [h(Vr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), b(N, { key: 3 }, [e.block.linkUrl ? (s(), b("a", {
|
|
1533
1534
|
key: 0,
|
|
1534
1535
|
href: e.block.linkUrl,
|
|
1535
1536
|
target: "_blank",
|
|
@@ -1541,13 +1542,13 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1541
1542
|
src: m(w),
|
|
1542
1543
|
alt: e.block.alt || m(i).image.altTextPlaceholder,
|
|
1543
1544
|
style: E(C.value)
|
|
1544
|
-
}, null, 12,
|
|
1545
|
+
}, null, 12, Mi)], 8, ji)) : (s(), b("img", {
|
|
1545
1546
|
key: 1,
|
|
1546
1547
|
class: "tpl:border-0",
|
|
1547
1548
|
src: m(w),
|
|
1548
1549
|
alt: e.block.alt,
|
|
1549
1550
|
style: E(C.value)
|
|
1550
|
-
}, null, 12,
|
|
1551
|
+
}, null, 12, Ni))], 64)) : (s(), b("div", Pi, [m(d) ? (s(), b("button", {
|
|
1551
1552
|
key: 0,
|
|
1552
1553
|
"aria-label": m(i).image.browseMedia,
|
|
1553
1554
|
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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
@@ -1555,12 +1556,12 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1555
1556
|
}, [h(m(Tn), {
|
|
1556
1557
|
size: 14,
|
|
1557
1558
|
"stroke-width": 1.5
|
|
1558
|
-
}), L(" " + P(m(i).image.browseMedia), 1)], 8,
|
|
1559
|
+
}), L(" " + P(m(i).image.browseMedia), 1)], 8, Fi)) : (s(), b("span", Ii, P(m(i).image.clickToAdd), 1))]))], 12, Ei));
|
|
1559
1560
|
}
|
|
1560
|
-
}),
|
|
1561
|
+
}), Ri = { class: "tpl:w-full" }, zi = ["href"], Bi = {
|
|
1561
1562
|
key: 1,
|
|
1562
1563
|
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)]"
|
|
1563
|
-
},
|
|
1564
|
+
}, Vi = /* @__PURE__ */ d({
|
|
1564
1565
|
__name: "MenuBlock",
|
|
1565
1566
|
props: {
|
|
1566
1567
|
block: {},
|
|
@@ -1579,7 +1580,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1579
1580
|
function c(e) {
|
|
1580
1581
|
return e || t.block.linkColor || t.block.color;
|
|
1581
1582
|
}
|
|
1582
|
-
return (t, i) => (s(), b("div",
|
|
1583
|
+
return (t, i) => (s(), b("div", Ri, [o.value ? (s(), b("div", {
|
|
1583
1584
|
key: 0,
|
|
1584
1585
|
style: E(a.value)
|
|
1585
1586
|
}, [(s(!0), b(N, null, r(e.block.items, (t, n) => (s(), b(N, { key: t.id }, [O("a", {
|
|
@@ -1591,15 +1592,15 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1591
1592
|
textDecoration: t.underline ? "underline" : "none"
|
|
1592
1593
|
}),
|
|
1593
1594
|
onClick: i[0] ||= T(() => {}, ["prevent"])
|
|
1594
|
-
}, [h(
|
|
1595
|
+
}, [h(Vr, { text: t.text || "..." }, null, 8, ["text"])], 12, zi), n < e.block.items.length - 1 ? (s(), b("span", {
|
|
1595
1596
|
key: 0,
|
|
1596
1597
|
style: E({
|
|
1597
1598
|
color: e.block.separatorColor,
|
|
1598
1599
|
padding: `0 ${e.block.spacing}px`
|
|
1599
1600
|
})
|
|
1600
|
-
}, P(e.block.separator), 5)) : x("", !0)], 64))), 128))], 4)) : (s(), b("div",
|
|
1601
|
+
}, P(e.block.separator), 5)) : x("", !0)], 64))), 128))], 4)) : (s(), b("div", Bi, [h(m(yn), { size: 16 }), O("span", null, P(m(n).menu.addLinks), 1)]))]));
|
|
1601
1602
|
}
|
|
1602
|
-
}),
|
|
1603
|
+
}), Hi = /* @__PURE__ */ new Set([
|
|
1603
1604
|
"http",
|
|
1604
1605
|
"https",
|
|
1605
1606
|
"mailto",
|
|
@@ -1609,7 +1610,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1609
1610
|
"sms",
|
|
1610
1611
|
"xmpp",
|
|
1611
1612
|
"cid"
|
|
1612
|
-
]),
|
|
1613
|
+
]), Ui = /* @__PURE__ */ new Set([
|
|
1613
1614
|
"SCRIPT",
|
|
1614
1615
|
"STYLE",
|
|
1615
1616
|
"IFRAME",
|
|
@@ -1619,7 +1620,7 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1619
1620
|
"META",
|
|
1620
1621
|
"BASE",
|
|
1621
1622
|
"FORM"
|
|
1622
|
-
]),
|
|
1623
|
+
]), Wi = /* @__PURE__ */ new Set([
|
|
1623
1624
|
"href",
|
|
1624
1625
|
"xlink:href",
|
|
1625
1626
|
"formaction",
|
|
@@ -1628,16 +1629,16 @@ var ci = { class: "tpl:w-full" }, li = {
|
|
|
1628
1629
|
"background",
|
|
1629
1630
|
"poster"
|
|
1630
1631
|
]);
|
|
1631
|
-
function
|
|
1632
|
+
function Gi(e, t) {
|
|
1632
1633
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
1633
1634
|
if (!n || n.startsWith("#")) return !0;
|
|
1634
1635
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
1635
1636
|
if (!r) return !0;
|
|
1636
1637
|
let i = r[1].toLowerCase();
|
|
1637
|
-
return
|
|
1638
|
+
return Hi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
1638
1639
|
}
|
|
1639
|
-
function
|
|
1640
|
-
if (
|
|
1640
|
+
function Ki(e) {
|
|
1641
|
+
if (Ui.has(e.tagName)) {
|
|
1641
1642
|
e.remove();
|
|
1642
1643
|
return;
|
|
1643
1644
|
}
|
|
@@ -1645,21 +1646,21 @@ function Gi(e) {
|
|
|
1645
1646
|
for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
|
|
1646
1647
|
for (let n of t) {
|
|
1647
1648
|
let t = n.toLowerCase();
|
|
1648
|
-
t.startsWith("on") ? e.removeAttribute(n) :
|
|
1649
|
+
t.startsWith("on") ? e.removeAttribute(n) : Wi.has(t) ? Gi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? Gi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
|
|
1649
1650
|
}
|
|
1650
1651
|
let n = Array.from(e.children);
|
|
1651
|
-
for (let e of n)
|
|
1652
|
+
for (let e of n) Ki(e);
|
|
1652
1653
|
}
|
|
1653
|
-
function
|
|
1654
|
+
function qi(e) {
|
|
1654
1655
|
if (typeof DOMParser > "u") return e;
|
|
1655
1656
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
1656
|
-
for (let e of n)
|
|
1657
|
+
for (let e of n) Ki(e);
|
|
1657
1658
|
return t.innerHTML;
|
|
1658
1659
|
}
|
|
1659
1660
|
//#endregion
|
|
1660
1661
|
//#region src/composables/useEditableTextBlock.ts
|
|
1661
|
-
function
|
|
1662
|
-
let t = n(q, xt), r = n(jt, null), { syntax: i } = Mn(), a = y(() => r?.value ? Ee(e(), t.value) :
|
|
1662
|
+
function Ji(e) {
|
|
1663
|
+
let t = n(q, xt), r = n(jt, null), { syntax: i } = Mn(), a = y(() => r?.value ? Ee(e(), t.value) : Pe(e(), t.value)), o = y(() => ye(qi(we(a.value, i)))), s = l(!1), c = l(null), { top: u, left: d } = ht(c), { toLocal: f } = un(), p = y(() => f({
|
|
1663
1664
|
top: u.value - 8,
|
|
1664
1665
|
left: d.value
|
|
1665
1666
|
}));
|
|
@@ -1680,14 +1681,14 @@ function qi(e) {
|
|
|
1680
1681
|
}
|
|
1681
1682
|
//#endregion
|
|
1682
1683
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1683
|
-
var
|
|
1684
|
+
var Yi = ["innerHTML"], Xi = /* @__PURE__ */ d({
|
|
1684
1685
|
__name: "ParagraphBlock",
|
|
1685
1686
|
props: {
|
|
1686
1687
|
block: {},
|
|
1687
1688
|
viewport: {}
|
|
1688
1689
|
},
|
|
1689
1690
|
setup(e) {
|
|
1690
|
-
let t = e, n = I(() => import("./ParagraphEditor-
|
|
1691
|
+
let t = e, n = I(() => import("./ParagraphEditor-CJQjRHXV.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Ji(() => t.block.content);
|
|
1691
1692
|
return (t, u) => (s(), b("div", {
|
|
1692
1693
|
ref_key: "blockRef",
|
|
1693
1694
|
ref: i,
|
|
@@ -1706,26 +1707,26 @@ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
|
|
|
1706
1707
|
key: 1,
|
|
1707
1708
|
class: "tpl-text-content tpl:outline-none",
|
|
1708
1709
|
innerHTML: m(o)
|
|
1709
|
-
}, null, 8,
|
|
1710
|
+
}, null, 8, Yi))], 544));
|
|
1710
1711
|
}
|
|
1711
|
-
}),
|
|
1712
|
+
}), Zi = [
|
|
1712
1713
|
"data-block-id",
|
|
1713
1714
|
"data-block-type",
|
|
1714
1715
|
"data-tpl-picked"
|
|
1715
|
-
],
|
|
1716
|
+
], Qi = ["data-lock-holder"], $i = ["aria-label"], ea = [
|
|
1716
1717
|
"aria-label",
|
|
1717
1718
|
"aria-pressed",
|
|
1718
1719
|
"title"
|
|
1719
|
-
],
|
|
1720
|
-
key:
|
|
1720
|
+
], ta = ["aria-label", "title"], na = ["aria-label", "title"], ra = ["aria-label", "title"], ia = {
|
|
1721
|
+
key: 3,
|
|
1721
1722
|
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"
|
|
1722
|
-
},
|
|
1723
|
-
key:
|
|
1723
|
+
}, aa = { 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)]" }, oa = {
|
|
1724
|
+
key: 4,
|
|
1724
1725
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1725
|
-
},
|
|
1726
|
-
key:
|
|
1726
|
+
}, sa = ["aria-label", "title"], ca = {
|
|
1727
|
+
key: 5,
|
|
1727
1728
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1728
|
-
},
|
|
1729
|
+
}, la = ["aria-label"], ua = /*#__PURE__*/ An(/* @__PURE__ */ d({
|
|
1729
1730
|
__name: "BlockWrapper",
|
|
1730
1731
|
props: {
|
|
1731
1732
|
block: {},
|
|
@@ -1737,7 +1738,7 @@ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
|
|
|
1737
1738
|
},
|
|
1738
1739
|
emits: ["select"],
|
|
1739
1740
|
setup(e, { emit: t }) {
|
|
1740
|
-
let r = I(() => import("./BlockIssueBadge-
|
|
1741
|
+
let r = I(() => import("./BlockIssueBadge-D1VBS_6x.js")), i = e, o = t, { t: c, format: u } = X(), d = n(Nt, null), f = l(null), p = y(() => d?.liftedBlockId.value === i.block.id), g = y(() => p.value ? u(c.blockActions.dragLifted, { block: i.block.type }) : c.blockActions.drag);
|
|
1741
1742
|
async function v() {
|
|
1742
1743
|
await w(), f.value?.focus();
|
|
1743
1744
|
}
|
|
@@ -1747,23 +1748,23 @@ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
|
|
|
1747
1748
|
let C = y(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), D = y(() => i.previewMode === !0 && C.value), k = y(() => i.viewport ? {
|
|
1748
1749
|
desktop: c.viewport.desktop,
|
|
1749
1750
|
mobile: c.viewport.mobile
|
|
1750
|
-
}[i.viewport] ?? i.viewport : ""), A = y(() => !!i.block.displayCondition), j = n(Bt, null), M = n(Wt, null), N = n(Jt, {}), F = y(() => N.savedBlocks?.isPicking.value === !0), R = y(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = y(() => i.isSelected && !F.value), B = y(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = Xe(() => i.block.type === "section" ? i.block.backgroundImage : void 0),
|
|
1751
|
-
backgroundImageUrl:
|
|
1752
|
-
heroBoxWidth: Qe(i.block,
|
|
1753
|
-
})),
|
|
1754
|
-
function
|
|
1751
|
+
}[i.viewport] ?? i.viewport : ""), A = y(() => !!i.block.displayCondition), j = n(Bt, null), M = n(Wt, null), N = n(Jt, {}), F = y(() => N.savedBlocks?.isPicking.value === !0), R = y(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = y(() => i.isSelected && !F.value), B = y(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = y(() => N.collaboration?.lockOf(i.block.id) ?? null), H = y(() => V.value?.holder.type === "guest" ? c.collaboration.guest : V.value?.holder.name ?? ""), U = y(() => N.collaboration?.agentHighlightOf(i.block.id) ?? null), ee = Xe(() => i.block.type === "section" ? i.block.backgroundImage : void 0), te = Xe(() => i.block.type === "section" ? i.block.wrapper?.backgroundImage : void 0), ne = n(J, null), re = n(vt, void 0), W = y(() => Fr(i.block, {
|
|
1752
|
+
backgroundImageUrl: ee.value,
|
|
1753
|
+
heroBoxWidth: Qe(i.block, ne?.content.value, re)
|
|
1754
|
+
})), G = y(() => Rr(i.block, { backgroundImageUrl: te.value }));
|
|
1755
|
+
function ie(e) {
|
|
1755
1756
|
i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), o("select"));
|
|
1756
1757
|
}
|
|
1757
|
-
function
|
|
1758
|
+
function ae() {
|
|
1758
1759
|
j?.deleteBlock(i.block.id);
|
|
1759
1760
|
}
|
|
1760
|
-
function
|
|
1761
|
+
function oe() {
|
|
1761
1762
|
j?.duplicateBlock(i.block);
|
|
1762
1763
|
}
|
|
1763
|
-
function
|
|
1764
|
+
function se() {
|
|
1764
1765
|
N.savedBlocks?.startPicking(i.block.id);
|
|
1765
1766
|
}
|
|
1766
|
-
function
|
|
1767
|
+
function ce() {
|
|
1767
1768
|
M?.toggleBlock(i.block.id);
|
|
1768
1769
|
}
|
|
1769
1770
|
return (t, n) => D.value ? x("", !0) : (s(), b("div", {
|
|
@@ -1777,11 +1778,33 @@ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
|
|
|
1777
1778
|
"data-block-id": e.block.id,
|
|
1778
1779
|
"data-block-type": e.block.type,
|
|
1779
1780
|
"data-tpl-picked": e.picked || void 0,
|
|
1780
|
-
onClick:
|
|
1781
|
+
onClick: ie
|
|
1781
1782
|
}, [
|
|
1782
1783
|
h(m(r), { "block-id": e.block.id }, null, 8, ["block-id"]),
|
|
1783
|
-
|
|
1784
|
+
V.value ? (s(), b("div", {
|
|
1784
1785
|
key: 0,
|
|
1786
|
+
"data-testid": "block-lock",
|
|
1787
|
+
"data-lock-holder": V.value.holder.sessionId,
|
|
1788
|
+
class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
1789
|
+
style: E({
|
|
1790
|
+
outline: `2px solid ${V.value.holder.color}`,
|
|
1791
|
+
outlineOffset: "-1px"
|
|
1792
|
+
})
|
|
1793
|
+
}, [O("span", {
|
|
1794
|
+
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
1795
|
+
style: E({
|
|
1796
|
+
backgroundColor: V.value.holder.color,
|
|
1797
|
+
color: m(Pn)(V.value.holder.color)
|
|
1798
|
+
})
|
|
1799
|
+
}, P(m(u)(m(c).collaboration.editing, { name: H.value })), 5)], 12, Qi)) : x("", !0),
|
|
1800
|
+
U.value === null ? x("", !0) : (s(), b("div", {
|
|
1801
|
+
key: U.value,
|
|
1802
|
+
"data-testid": "block-agent-highlight",
|
|
1803
|
+
"aria-hidden": "true",
|
|
1804
|
+
class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
|
|
1805
|
+
})),
|
|
1806
|
+
z.value ? (s(), b("div", {
|
|
1807
|
+
key: 2,
|
|
1785
1808
|
role: "toolbar",
|
|
1786
1809
|
"aria-label": m(c).blockActions.drag,
|
|
1787
1810
|
class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
@@ -1798,97 +1821,97 @@ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
|
|
|
1798
1821
|
}, [h(m(bn), {
|
|
1799
1822
|
size: 14,
|
|
1800
1823
|
"stroke-width": 1.5
|
|
1801
|
-
})], 40,
|
|
1824
|
+
})], 40, ea),
|
|
1802
1825
|
O("button", {
|
|
1803
1826
|
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",
|
|
1804
1827
|
"aria-label": m(c).blockActions.duplicate,
|
|
1805
1828
|
title: m(c).blockActions.duplicate,
|
|
1806
|
-
onClick: T(
|
|
1829
|
+
onClick: T(oe, ["stop"])
|
|
1807
1830
|
}, [h(m(gn), {
|
|
1808
1831
|
size: 14,
|
|
1809
1832
|
"stroke-width": 1.5
|
|
1810
|
-
})], 8,
|
|
1833
|
+
})], 8, ta),
|
|
1811
1834
|
R.value ? (s(), b("button", {
|
|
1812
1835
|
key: 0,
|
|
1813
1836
|
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",
|
|
1814
1837
|
"aria-label": m(c).blockActions.saveAsBlock,
|
|
1815
1838
|
title: m(c).blockActions.saveAsBlock,
|
|
1816
|
-
onClick: T(
|
|
1839
|
+
onClick: T(se, ["stop"])
|
|
1817
1840
|
}, [h(m(hn), {
|
|
1818
1841
|
size: 14,
|
|
1819
1842
|
"stroke-width": 1.5
|
|
1820
|
-
})], 8,
|
|
1843
|
+
})], 8, na)) : x("", !0),
|
|
1821
1844
|
O("button", {
|
|
1822
1845
|
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",
|
|
1823
1846
|
"aria-label": m(c).blockActions.delete,
|
|
1824
1847
|
title: m(c).blockActions.delete,
|
|
1825
|
-
onClick: T(
|
|
1848
|
+
onClick: T(ae, ["stop"])
|
|
1826
1849
|
}, [h(m(Cn), {
|
|
1827
1850
|
size: 14,
|
|
1828
1851
|
"stroke-width": 1.5
|
|
1829
|
-
})], 8,
|
|
1830
|
-
], 8,
|
|
1831
|
-
C.value ? (s(), b("div",
|
|
1852
|
+
})], 8, ra)
|
|
1853
|
+
], 8, $i)) : x("", !0),
|
|
1854
|
+
C.value ? (s(), b("div", ia, [O("span", aa, [h(m(mn), {
|
|
1832
1855
|
size: 12,
|
|
1833
1856
|
"stroke-width": 1.5
|
|
1834
1857
|
}), L(" " + P(m(u)(m(c).blockActions.hiddenOnViewport, { viewport: k.value })), 1)])])) : x("", !0),
|
|
1835
|
-
A.value && !C.value ? (s(), b("div",
|
|
1858
|
+
A.value && !C.value ? (s(), b("div", oa, [O("button", {
|
|
1836
1859
|
"data-testid": "condition-toggle",
|
|
1837
1860
|
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:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
1838
1861
|
"aria-label": m(c).blockActions.conditionToggle,
|
|
1839
1862
|
title: e.block.displayCondition?.label,
|
|
1840
|
-
onClick: T(
|
|
1863
|
+
onClick: T(ce, ["stop"])
|
|
1841
1864
|
}, [h(m(xn), {
|
|
1842
1865
|
size: 12,
|
|
1843
1866
|
"stroke-width": 2
|
|
1844
|
-
})], 8,
|
|
1845
|
-
B.value > 0 && !C.value ? (s(), b("div",
|
|
1867
|
+
})], 8, sa)])) : x("", !0),
|
|
1868
|
+
B.value > 0 && !C.value ? (s(), b("div", ca, [O("button", {
|
|
1846
1869
|
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:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
1847
1870
|
"aria-label": m(u)(m(c).blockActions.comments, { count: String(B.value) }),
|
|
1848
1871
|
onClick: n[0] ||= T((t) => m(N).comments?.openForBlock(e.block.id), ["stop"])
|
|
1849
1872
|
}, [h(m(En), {
|
|
1850
1873
|
size: 12,
|
|
1851
1874
|
"stroke-width": 2.5
|
|
1852
|
-
}), L(" " + P(B.value), 1)], 8,
|
|
1853
|
-
|
|
1854
|
-
key:
|
|
1855
|
-
class: _(["tpl-section-wrapper tpl-email-surface", m(
|
|
1856
|
-
style: E(
|
|
1875
|
+
}), L(" " + P(B.value), 1)], 8, la)])) : x("", !0),
|
|
1876
|
+
G.value ? (s(), b("div", {
|
|
1877
|
+
key: 6,
|
|
1878
|
+
class: _(["tpl-section-wrapper tpl-email-surface", m(jr)(G.value)]),
|
|
1879
|
+
style: E(G.value)
|
|
1857
1880
|
}, [O("div", {
|
|
1858
|
-
class: _(["tpl-block-content tpl-email-surface", m(
|
|
1881
|
+
class: _(["tpl-block-content tpl-email-surface", m(jr)(W.value)]),
|
|
1859
1882
|
style: E(W.value)
|
|
1860
1883
|
}, [a(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (s(), b("div", {
|
|
1861
|
-
key:
|
|
1862
|
-
class: _(["tpl-block-content tpl-email-surface", m(
|
|
1884
|
+
key: 7,
|
|
1885
|
+
class: _(["tpl-block-content tpl-email-surface", m(jr)(W.value)]),
|
|
1863
1886
|
style: E(W.value)
|
|
1864
1887
|
}, [a(t.$slots, "default", {}, void 0, !0)], 6))
|
|
1865
|
-
], 10,
|
|
1888
|
+
], 10, Zi));
|
|
1866
1889
|
}
|
|
1867
|
-
}), [["__scopeId", "data-v-
|
|
1890
|
+
}), [["__scopeId", "data-v-3c489db0"]]);
|
|
1868
1891
|
//#endregion
|
|
1869
1892
|
//#region src/utils/unwrapParagraph.ts
|
|
1870
|
-
function
|
|
1893
|
+
function da(e) {
|
|
1871
1894
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
1872
1895
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
1873
1896
|
}
|
|
1874
1897
|
//#endregion
|
|
1875
1898
|
//#region src/components/blocks/TitleBlock.vue
|
|
1876
|
-
var
|
|
1899
|
+
var fa = /* @__PURE__ */ d({
|
|
1877
1900
|
__name: "TitleBlock",
|
|
1878
1901
|
props: {
|
|
1879
1902
|
block: {},
|
|
1880
1903
|
viewport: {}
|
|
1881
1904
|
},
|
|
1882
1905
|
setup(e) {
|
|
1883
|
-
let t = e, n = I(() => import("./TitleEditor-
|
|
1906
|
+
let t = e, n = I(() => import("./TitleEditor-CEgxjtUX.js")), r = K(Y, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: c, handleDoubleClick: l, handleEditorDone: d } = Ji(() => t.block.content), f = y(() => {
|
|
1884
1907
|
let e = {
|
|
1885
|
-
fontSize: `${
|
|
1886
|
-
lineHeight: String(
|
|
1908
|
+
fontSize: `${U[t.block.level]}px`,
|
|
1909
|
+
lineHeight: String(ie),
|
|
1887
1910
|
fontWeight: "700",
|
|
1888
1911
|
textAlign: t.block.textAlign
|
|
1889
1912
|
};
|
|
1890
1913
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
1891
|
-
}), p = y(() => `h${t.block.level}`), h = y(() =>
|
|
1914
|
+
}), p = y(() => `h${t.block.level}`), h = y(() => da(c.value));
|
|
1892
1915
|
return (t, r) => (s(), b("div", {
|
|
1893
1916
|
ref_key: "blockRef",
|
|
1894
1917
|
ref: a,
|
|
@@ -1914,14 +1937,14 @@ var ua = /* @__PURE__ */ d({
|
|
|
1914
1937
|
innerHTML: h.value
|
|
1915
1938
|
}, null, 8, ["innerHTML"]))], 36));
|
|
1916
1939
|
}
|
|
1917
|
-
}),
|
|
1918
|
-
function
|
|
1919
|
-
let n =
|
|
1920
|
-
n.color =
|
|
1921
|
-
let r =
|
|
1922
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
1923
|
-
let i =
|
|
1924
|
-
return i.align = "center",
|
|
1940
|
+
}), pa = "hero", ma = "#1f2937", ha = "#ffffff";
|
|
1941
|
+
function ga(e, t) {
|
|
1942
|
+
let n = R("title", e);
|
|
1943
|
+
n.color = ha, n.textAlign = "center";
|
|
1944
|
+
let r = R("paragraph", e);
|
|
1945
|
+
r.content = `<p style="text-align: center"><span style="color: ${ha}">${_a(t)}</span></p>`;
|
|
1946
|
+
let i = R("button", e);
|
|
1947
|
+
return i.align = "center", He({
|
|
1925
1948
|
columns: "1",
|
|
1926
1949
|
children: [[
|
|
1927
1950
|
n,
|
|
@@ -1939,30 +1962,30 @@ function ma(e, t) {
|
|
|
1939
1962
|
bottom: 48,
|
|
1940
1963
|
left: 24
|
|
1941
1964
|
},
|
|
1942
|
-
backgroundColor:
|
|
1965
|
+
backgroundColor: ma
|
|
1943
1966
|
}
|
|
1944
1967
|
});
|
|
1945
1968
|
}
|
|
1946
|
-
function
|
|
1969
|
+
function _a(e) {
|
|
1947
1970
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
1948
1971
|
}
|
|
1949
1972
|
//#endregion
|
|
1950
1973
|
//#region src/utils/sectionColumnDrop.ts
|
|
1951
|
-
var
|
|
1952
|
-
function
|
|
1953
|
-
return e.dataset.blockType !== "section" && !
|
|
1974
|
+
var va = /* @__PURE__ */ new Set(["section", pa]);
|
|
1975
|
+
function ya(e) {
|
|
1976
|
+
return e.dataset.blockType !== "section" && !va.has(e.dataset.paletteType ?? "");
|
|
1954
1977
|
}
|
|
1955
1978
|
//#endregion
|
|
1956
1979
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1957
|
-
var
|
|
1980
|
+
var ba = { class: "tpl:relative tpl:w-full" }, xa = {
|
|
1958
1981
|
key: 0,
|
|
1959
1982
|
"data-testid": "hero-image-hint",
|
|
1960
1983
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
1961
|
-
},
|
|
1984
|
+
}, Sa = {
|
|
1962
1985
|
key: 0,
|
|
1963
1986
|
"data-testid": "section-drop-hint",
|
|
1964
1987
|
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)]"
|
|
1965
|
-
},
|
|
1988
|
+
}, Ca = /* @__PURE__ */ d({
|
|
1966
1989
|
__name: "SectionBlock",
|
|
1967
1990
|
props: {
|
|
1968
1991
|
block: {},
|
|
@@ -1970,12 +1993,12 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
1970
1993
|
},
|
|
1971
1994
|
setup(e) {
|
|
1972
1995
|
let t = {
|
|
1973
|
-
title:
|
|
1974
|
-
paragraph:
|
|
1975
|
-
image:
|
|
1976
|
-
button:
|
|
1977
|
-
divider:
|
|
1978
|
-
custom:
|
|
1996
|
+
title: fa,
|
|
1997
|
+
paragraph: Xi,
|
|
1998
|
+
image: Li,
|
|
1999
|
+
button: Ur,
|
|
2000
|
+
divider: yi,
|
|
2001
|
+
custom: _i
|
|
1979
2002
|
}, a = e, { t: o } = X(), c = K(J, "SectionBlock"), d = n(Wt, null), p = n(tn, null), g = n(Jt, {}), v = n(en, null);
|
|
1980
2003
|
function S(e) {
|
|
1981
2004
|
let t = g.savedBlocks;
|
|
@@ -2013,7 +2036,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2013
2036
|
}
|
|
2014
2037
|
let R = y(() => {
|
|
2015
2038
|
if (c.state.previewMode) return !1;
|
|
2016
|
-
let e =
|
|
2039
|
+
let e = V(a.block);
|
|
2017
2040
|
return e !== null && !e.applied && e.reason === "image";
|
|
2018
2041
|
});
|
|
2019
2042
|
function z(e) {
|
|
@@ -2022,13 +2045,13 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2022
2045
|
function B(e) {
|
|
2023
2046
|
return k(e).length === 0 && c.state.previewMode;
|
|
2024
2047
|
}
|
|
2025
|
-
function
|
|
2048
|
+
function H(e, t) {
|
|
2026
2049
|
let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
|
|
2027
2050
|
for (; r.length <= e;) r.push([]);
|
|
2028
2051
|
r[e] = n, c.updateBlock(a.block.id, { children: r });
|
|
2029
2052
|
}
|
|
2030
|
-
function
|
|
2031
|
-
return
|
|
2053
|
+
function U(e) {
|
|
2054
|
+
return Dr(e, p, t);
|
|
2032
2055
|
}
|
|
2033
2056
|
function ee(e, t) {
|
|
2034
2057
|
e.type === "custom" && c.updateBlock(e.id, {
|
|
@@ -2036,7 +2059,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2036
2059
|
dataSourceFetched: t.dataSourceFetched
|
|
2037
2060
|
});
|
|
2038
2061
|
}
|
|
2039
|
-
return (t, n) => (s(), b("div",
|
|
2062
|
+
return (t, n) => (s(), b("div", ba, [R.value ? (s(), b("div", xa, [O("span", null, P(m(o).section.heroAddImage), 1)])) : x("", !0), O("div", { class: _(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(s(!0), b(N, null, r(w.value, (t, a) => (s(), b("div", {
|
|
2040
2063
|
key: a,
|
|
2041
2064
|
class: _(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", z(a) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2042
2065
|
style: E({ width: T.value ? "100%" : C.value[a] })
|
|
@@ -2045,7 +2068,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2045
2068
|
group: {
|
|
2046
2069
|
name: "blocks",
|
|
2047
2070
|
pull: !0,
|
|
2048
|
-
put: (e, t, n) => m(
|
|
2071
|
+
put: (e, t, n) => m(ya)(n)
|
|
2049
2072
|
},
|
|
2050
2073
|
animation: 150,
|
|
2051
2074
|
"ghost-class": "tpl-ghost",
|
|
@@ -2061,9 +2084,9 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2061
2084
|
}]),
|
|
2062
2085
|
onStart: (e) => I.value = a,
|
|
2063
2086
|
onEnd: n[0] ||= (e) => I.value = null,
|
|
2064
|
-
"onUpdate:modelValue": (e) =>
|
|
2087
|
+
"onUpdate:modelValue": (e) => H(a, e)
|
|
2065
2088
|
}, {
|
|
2066
|
-
default: i(() => [(s(!0), b(N, null, r(k(a), (t) => f((s(), b("div", { key: t.id }, [h(
|
|
2089
|
+
default: i(() => [(s(!0), b(N, null, r(k(a), (t) => f((s(), b("div", { key: t.id }, [h(ua, {
|
|
2067
2090
|
block: t,
|
|
2068
2091
|
"is-selected": m(c).state.selectedBlockId === t.id,
|
|
2069
2092
|
viewport: e.viewport,
|
|
@@ -2071,7 +2094,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2071
2094
|
nested: "",
|
|
2072
2095
|
onSelect: (e) => S(t.id)
|
|
2073
2096
|
}, {
|
|
2074
|
-
default: i(() => [(s(), D(u(
|
|
2097
|
+
default: i(() => [(s(), D(u(U(t)), {
|
|
2075
2098
|
block: t,
|
|
2076
2099
|
viewport: e.viewport,
|
|
2077
2100
|
onFetchData: (e) => ee(t, e),
|
|
@@ -2097,14 +2120,14 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2097
2120
|
"class",
|
|
2098
2121
|
"onStart",
|
|
2099
2122
|
"onUpdate:modelValue"
|
|
2100
|
-
]), z(a) ? (s(), b("div",
|
|
2123
|
+
]), z(a) ? (s(), b("div", Sa, [O("span", null, P(m(o).section.dropHere), 1)])) : x("", !0)], 6))), 128))], 2)]));
|
|
2101
2124
|
}
|
|
2102
|
-
}),
|
|
2125
|
+
}), wa = ["width", "height"], Ta = [
|
|
2103
2126
|
"d",
|
|
2104
2127
|
"stroke",
|
|
2105
2128
|
"stroke-opacity",
|
|
2106
2129
|
"stroke-width"
|
|
2107
|
-
],
|
|
2130
|
+
], Ea = ["d", "fill"], Da = /* @__PURE__ */ d({
|
|
2108
2131
|
__name: "SocialIconSvg",
|
|
2109
2132
|
props: {
|
|
2110
2133
|
platform: {},
|
|
@@ -2113,7 +2136,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2113
2136
|
iconSize: {}
|
|
2114
2137
|
},
|
|
2115
2138
|
setup(e) {
|
|
2116
|
-
let t = e, n = y(() => rt[t.platform]), r = y(() => at[t.iconSize]), i = y(() =>
|
|
2139
|
+
let t = e, n = y(() => rt[t.platform]), r = y(() => at[t.iconSize]), i = y(() => B(t.platform, t.iconTone)), a = y(() => fe(t.iconStyle, t.iconTone)), o = y(() => {
|
|
2117
2140
|
let e = {
|
|
2118
2141
|
display: "inline-flex",
|
|
2119
2142
|
alignItems: "center",
|
|
@@ -2151,7 +2174,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2151
2174
|
};
|
|
2152
2175
|
default: return e;
|
|
2153
2176
|
}
|
|
2154
|
-
}), c = y(() =>
|
|
2177
|
+
}), c = y(() => Be(t.iconStyle)), l = y(() => Math.floor(r.value * c.value));
|
|
2155
2178
|
function u(e) {
|
|
2156
2179
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
2157
2180
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -2172,15 +2195,15 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2172
2195
|
"stroke-opacity": a.value.opacity,
|
|
2173
2196
|
"stroke-width": a.value.width / c.value,
|
|
2174
2197
|
"stroke-linejoin": "round"
|
|
2175
|
-
}, null, 8,
|
|
2198
|
+
}, null, 8, Ta)) : x("", !0), O("path", {
|
|
2176
2199
|
d: n.value.path,
|
|
2177
2200
|
fill: d.value
|
|
2178
|
-
}, null, 8,
|
|
2201
|
+
}, null, 8, Ea)], 8, wa))], 4));
|
|
2179
2202
|
}
|
|
2180
|
-
}),
|
|
2203
|
+
}), Oa = { class: "tpl:w-full" }, ka = ["href"], Aa = {
|
|
2181
2204
|
key: 1,
|
|
2182
2205
|
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)]"
|
|
2183
|
-
},
|
|
2206
|
+
}, ja = /* @__PURE__ */ d({
|
|
2184
2207
|
__name: "SocialIconsBlock",
|
|
2185
2208
|
props: {
|
|
2186
2209
|
block: {},
|
|
@@ -2193,7 +2216,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2193
2216
|
gap: `${t.block.spacing}px`,
|
|
2194
2217
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
2195
2218
|
})), a = y(() => t.block.icons.length > 0);
|
|
2196
|
-
return (t, o) => (s(), b("div",
|
|
2219
|
+
return (t, o) => (s(), b("div", Oa, [a.value ? (s(), b("div", {
|
|
2197
2220
|
key: 0,
|
|
2198
2221
|
style: E(i.value)
|
|
2199
2222
|
}, [(s(!0), b(N, null, r(e.block.icons, (t) => (s(), b("a", {
|
|
@@ -2201,7 +2224,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2201
2224
|
href: t.url || "#",
|
|
2202
2225
|
class: "tpl:cursor-default",
|
|
2203
2226
|
onClick: o[0] ||= T(() => {}, ["prevent"])
|
|
2204
|
-
}, [h(
|
|
2227
|
+
}, [h(Da, {
|
|
2205
2228
|
platform: t.platform,
|
|
2206
2229
|
"icon-style": e.block.iconStyle,
|
|
2207
2230
|
"icon-tone": e.block.iconTone,
|
|
@@ -2211,16 +2234,16 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2211
2234
|
"icon-style",
|
|
2212
2235
|
"icon-tone",
|
|
2213
2236
|
"icon-size"
|
|
2214
|
-
])], 8,
|
|
2237
|
+
])], 8, ka))), 128))], 4)) : (s(), b("div", Aa, [h(m(wn), { size: 16 }), O("span", null, P(m(n).social.addIcons), 1)]))]));
|
|
2215
2238
|
}
|
|
2216
|
-
}),
|
|
2239
|
+
}), Ma = { class: "tpl:w-full" }, Na = {
|
|
2217
2240
|
key: 0,
|
|
2218
2241
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2219
2242
|
style: {
|
|
2220
2243
|
"background-color": "var(--tpl-bg-hover)",
|
|
2221
2244
|
color: "var(--tpl-text-dim)"
|
|
2222
2245
|
}
|
|
2223
|
-
},
|
|
2246
|
+
}, Pa = /* @__PURE__ */ d({
|
|
2224
2247
|
__name: "SpacerBlock",
|
|
2225
2248
|
props: {
|
|
2226
2249
|
block: {},
|
|
@@ -2232,23 +2255,23 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2232
2255
|
minHeight: `${t.block.height}px`,
|
|
2233
2256
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2234
2257
|
}));
|
|
2235
|
-
return (t, i) => (s(), b("div",
|
|
2258
|
+
return (t, i) => (s(), b("div", Ma, [O("div", {
|
|
2236
2259
|
style: E(r.value),
|
|
2237
2260
|
class: _(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !m(n).state.previewMode }])
|
|
2238
|
-
}, [m(n).state.previewMode ? x("", !0) : (s(), b("span",
|
|
2261
|
+
}, [m(n).state.previewMode ? x("", !0) : (s(), b("span", Na, P(e.block.height) + "px ", 1))], 6)]));
|
|
2239
2262
|
}
|
|
2240
|
-
}),
|
|
2263
|
+
}), Fa = { class: "tpl:w-full" }, Ia = { key: 0 }, La = [
|
|
2241
2264
|
"aria-label",
|
|
2242
2265
|
"data-placeholder",
|
|
2243
2266
|
"onBlur"
|
|
2244
|
-
],
|
|
2267
|
+
], Ra = [
|
|
2245
2268
|
"aria-label",
|
|
2246
2269
|
"data-placeholder",
|
|
2247
2270
|
"onBlur"
|
|
2248
|
-
],
|
|
2271
|
+
], za = {
|
|
2249
2272
|
key: 1,
|
|
2250
2273
|
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)]"
|
|
2251
|
-
},
|
|
2274
|
+
}, Ba = /*#__PURE__*/ An(/* @__PURE__ */ d({
|
|
2252
2275
|
__name: "TableBlock",
|
|
2253
2276
|
props: {
|
|
2254
2277
|
block: {},
|
|
@@ -2293,11 +2316,11 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2293
2316
|
} : n);
|
|
2294
2317
|
a.updateBlock(n.block.id, { rows: o });
|
|
2295
2318
|
}
|
|
2296
|
-
return (e, n) => (s(), b("div",
|
|
2319
|
+
return (e, n) => (s(), b("div", Fa, [c.value ? (s(), b("table", {
|
|
2297
2320
|
key: 0,
|
|
2298
2321
|
style: E(l.value),
|
|
2299
2322
|
class: "tpl-table-editable"
|
|
2300
|
-
}, [p.value ? (s(), b("thead",
|
|
2323
|
+
}, [p.value ? (s(), b("thead", Ia, [O("tr", null, [(s(!0), b(N, null, r(p.value.cells, (e) => f((s(), b("th", {
|
|
2301
2324
|
key: e.id,
|
|
2302
2325
|
style: E(d.value),
|
|
2303
2326
|
"aria-label": m(i).table.cellPlaceholder,
|
|
@@ -2306,7 +2329,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2306
2329
|
onBlur: (t) => S(p.value.id, e.id, t),
|
|
2307
2330
|
onKeydown: n[0] ||= g(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2308
2331
|
onClick: T(v, ["stop"])
|
|
2309
|
-
}, null, 44,
|
|
2332
|
+
}, null, 44, La)), [[t, e.content]])), 128))])])) : x("", !0), O("tbody", null, [(s(!0), b(N, null, r(_.value, (e) => (s(), b("tr", { key: e.id }, [(s(!0), b(N, null, r(e.cells, (r) => f((s(), b("td", {
|
|
2310
2333
|
key: r.id,
|
|
2311
2334
|
style: E(u.value),
|
|
2312
2335
|
"aria-label": m(i).table.cellPlaceholder,
|
|
@@ -2315,9 +2338,9 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2315
2338
|
onBlur: (t) => S(e.id, r.id, t),
|
|
2316
2339
|
onKeydown: n[1] ||= g(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2317
2340
|
onClick: T(v, ["stop"])
|
|
2318
|
-
}, null, 44,
|
|
2341
|
+
}, null, 44, Ra)), [[t, r.content]])), 128))]))), 128))])], 4)) : (s(), b("div", za, [h(m(On), { size: 16 }), O("span", null, P(m(i).table.empty), 1)]))]));
|
|
2319
2342
|
}
|
|
2320
|
-
}), [["__scopeId", "data-v-6751d456"]]),
|
|
2343
|
+
}), [["__scopeId", "data-v-6751d456"]]), Va = /* @__PURE__ */ d({
|
|
2321
2344
|
__name: "VideoPlayButton",
|
|
2322
2345
|
props: { hoverEffect: {
|
|
2323
2346
|
type: Boolean,
|
|
@@ -2335,7 +2358,7 @@ var va = { class: "tpl:relative tpl:w-full" }, ya = {
|
|
|
2335
2358
|
});
|
|
2336
2359
|
//#endregion
|
|
2337
2360
|
//#region src/utils/videoThumbnail.ts
|
|
2338
|
-
function
|
|
2361
|
+
function Ha(e) {
|
|
2339
2362
|
if (!e) return {
|
|
2340
2363
|
platform: "unknown",
|
|
2341
2364
|
videoId: null,
|
|
@@ -2367,25 +2390,25 @@ function Ba(e) {
|
|
|
2367
2390
|
thumbnailUrl: null
|
|
2368
2391
|
};
|
|
2369
2392
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return t ||
|
|
2393
|
+
function Ua(e, t) {
|
|
2394
|
+
return t || Ha(e).thumbnailUrl;
|
|
2372
2395
|
}
|
|
2373
2396
|
//#endregion
|
|
2374
2397
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2375
|
-
var
|
|
2398
|
+
var Wa = ["src", "alt"], Ga = {
|
|
2376
2399
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2377
2400
|
style: { opacity: "0.7" }
|
|
2378
|
-
},
|
|
2401
|
+
}, Ka = ["href"], qa = ["src", "alt"], Ja = ["src", "alt"], Ya = {
|
|
2379
2402
|
key: 3,
|
|
2380
2403
|
class: "tpl:flex tpl:box-border 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)]"
|
|
2381
|
-
},
|
|
2404
|
+
}, Xa = /* @__PURE__ */ d({
|
|
2382
2405
|
__name: "VideoBlock",
|
|
2383
2406
|
props: {
|
|
2384
2407
|
block: {},
|
|
2385
2408
|
viewport: {}
|
|
2386
2409
|
},
|
|
2387
2410
|
setup(e) {
|
|
2388
|
-
let t = e, { t: n } = X(), { syntax: r } = Mn(), i = y(() =>
|
|
2411
|
+
let t = e, { t: n } = X(), { syntax: r } = Mn(), i = y(() => Ie(t.block.url, r) || Ie(t.block.thumbnailUrl, r)), a = We(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = We(() => i.value ? t.block.placeholderUrl : void 0), c = y(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Ua(t.block.url)), l = y(() => ({ textAlign: t.block.align })), u = y(() => {
|
|
2389
2412
|
let e = t.block.align;
|
|
2390
2413
|
return {
|
|
2391
2414
|
maxWidth: "100%",
|
|
@@ -2395,7 +2418,7 @@ var Ha = ["src", "alt"], Ua = {
|
|
|
2395
2418
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2396
2419
|
marginRight: e === "center" ? "auto" : void 0
|
|
2397
2420
|
};
|
|
2398
|
-
}), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() =>
|
|
2421
|
+
}), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() => Ie(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2399
2422
|
return (t, r) => (s(), b("div", {
|
|
2400
2423
|
class: "tpl:w-full",
|
|
2401
2424
|
style: E(l.value)
|
|
@@ -2408,7 +2431,7 @@ var Ha = ["src", "alt"], Ua = {
|
|
|
2408
2431
|
src: m(o),
|
|
2409
2432
|
alt: e.block.alt,
|
|
2410
2433
|
style: E(d.value)
|
|
2411
|
-
}, null, 12,
|
|
2434
|
+
}, null, 12, Wa), h(Va)], 4)) : i.value ? (s(), b("div", {
|
|
2412
2435
|
key: 1,
|
|
2413
2436
|
class: "tpl:relative tpl:!flex tpl:box-border 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)]",
|
|
2414
2437
|
style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
@@ -2417,7 +2440,7 @@ var Ha = ["src", "alt"], Ua = {
|
|
|
2417
2440
|
"stroke-width": 1.5,
|
|
2418
2441
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2419
2442
|
style: { opacity: "0.5" }
|
|
2420
|
-
}), O("span",
|
|
2443
|
+
}), O("span", Ga, [h(Vr, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (s(), b(N, { key: 2 }, [e.block.url ? (s(), b("a", {
|
|
2421
2444
|
key: 0,
|
|
2422
2445
|
href: e.block.url,
|
|
2423
2446
|
target: "_blank",
|
|
@@ -2430,7 +2453,7 @@ var Ha = ["src", "alt"], Ua = {
|
|
|
2430
2453
|
src: c.value,
|
|
2431
2454
|
alt: e.block.alt,
|
|
2432
2455
|
style: E(d.value)
|
|
2433
|
-
}, null, 12,
|
|
2456
|
+
}, null, 12, qa), h(Va, { "hover-effect": "" })], 12, Ka)) : (s(), b("div", {
|
|
2434
2457
|
key: 1,
|
|
2435
2458
|
class: "tpl:relative tpl:inline-block",
|
|
2436
2459
|
style: E(u.value)
|
|
@@ -2439,46 +2462,45 @@ var Ha = ["src", "alt"], Ua = {
|
|
|
2439
2462
|
src: c.value,
|
|
2440
2463
|
alt: e.block.alt,
|
|
2441
2464
|
style: E(d.value)
|
|
2442
|
-
}, null, 12,
|
|
2465
|
+
}, null, 12, Ja), h(Va)], 4))], 64)) : (s(), b("div", Ya, [h(m(Dn), {
|
|
2443
2466
|
size: 40,
|
|
2444
2467
|
"stroke-width": 1.5,
|
|
2445
2468
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2446
2469
|
}), O("span", null, P(m(n).video.addVideo), 1)]))], 4));
|
|
2447
2470
|
}
|
|
2448
|
-
}),
|
|
2449
|
-
section:
|
|
2450
|
-
title:
|
|
2451
|
-
paragraph:
|
|
2452
|
-
image:
|
|
2453
|
-
button:
|
|
2454
|
-
divider:
|
|
2455
|
-
video:
|
|
2456
|
-
social:
|
|
2457
|
-
menu:
|
|
2458
|
-
table:
|
|
2459
|
-
spacer:
|
|
2460
|
-
html:
|
|
2461
|
-
countdown: I(() => import("./CountdownBlock-
|
|
2471
|
+
}), Za = {
|
|
2472
|
+
section: Ca,
|
|
2473
|
+
title: fa,
|
|
2474
|
+
paragraph: Xi,
|
|
2475
|
+
image: Li,
|
|
2476
|
+
button: Ur,
|
|
2477
|
+
divider: yi,
|
|
2478
|
+
video: Xa,
|
|
2479
|
+
social: ja,
|
|
2480
|
+
menu: Vi,
|
|
2481
|
+
table: Ba,
|
|
2482
|
+
spacer: Pa,
|
|
2483
|
+
html: Ti,
|
|
2484
|
+
countdown: I(() => import("./CountdownBlock-DB4JNdqh.js"))
|
|
2462
2485
|
};
|
|
2463
|
-
function
|
|
2464
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = X(i), d = y(() =>
|
|
2486
|
+
function Qa(e) {
|
|
2487
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = X(i), d = y(() => le(le(le(rr(i), Sr(n.content.value.settings?.locale)), W(n.content.value.settings) === "rtl" ? {
|
|
2465
2488
|
title: { textAlign: "right" },
|
|
2466
2489
|
table: { textAlign: "right" }
|
|
2467
2490
|
} : {}), r.blockDefaults ?? {}));
|
|
2468
2491
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
2469
|
-
let { resolvedTheme: f } =
|
|
2492
|
+
let { resolvedTheme: f } = Gn(y(() => n.state.uiTheme)), m = l(r.theme ?? {}), { themeStyles: h } = qn({
|
|
2470
2493
|
themeOverrides: m,
|
|
2471
2494
|
resolvedTheme: f,
|
|
2472
2495
|
extraStyles: () => ({
|
|
2473
2496
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
2474
2497
|
...e.themeExtraStyles?.()
|
|
2475
2498
|
})
|
|
2476
|
-
}), g = qe({
|
|
2499
|
+
}), g = e.history ?? qe({
|
|
2477
2500
|
content: n.content,
|
|
2478
|
-
setContent: (e, t) => n.setContent(e, t)
|
|
2479
|
-
...e.historyOptions
|
|
2501
|
+
setContent: (e, t) => n.setContent(e, t)
|
|
2480
2502
|
});
|
|
2481
|
-
|
|
2503
|
+
e.history || tt(n, g);
|
|
2482
2504
|
let _ = Ke({
|
|
2483
2505
|
addBlock: n.addBlock,
|
|
2484
2506
|
removeBlock: n.removeBlock,
|
|
@@ -2486,7 +2508,7 @@ function Xa(e) {
|
|
|
2486
2508
|
selectBlock: n.selectBlock,
|
|
2487
2509
|
findBlockLocation: n.findBlockLocation,
|
|
2488
2510
|
blockDefaults: () => d.value
|
|
2489
|
-
}), b =
|
|
2511
|
+
}), b = Ye(n), x = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Ge({
|
|
2490
2512
|
content: n.content,
|
|
2491
2513
|
isDirty: () => n.state.isDirty,
|
|
2492
2514
|
...e.autoSaveOptions
|
|
@@ -2494,27 +2516,27 @@ function Xa(e) {
|
|
|
2494
2516
|
x && (S = t(g.isNavigating, (e) => {
|
|
2495
2517
|
e ? x.pause() : x.resume();
|
|
2496
2518
|
}));
|
|
2497
|
-
let C =
|
|
2519
|
+
let C = Wn(n, {
|
|
2498
2520
|
t: s,
|
|
2499
2521
|
format: u
|
|
2500
2522
|
}, r.customBlocks ?? []), w = ln(r.colors);
|
|
2501
2523
|
if (w.allowCustomIgnored && Z.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), w.invalidPresets.length > 0 && Z.warn(`config.colors.presets skipped invalid entries: ${w.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), w.allowCustom === !1) {
|
|
2502
|
-
let e =
|
|
2524
|
+
let e = nr(w.presets, r.blockDefaults, r.templateDefaults);
|
|
2503
2525
|
e.length > 0 && Z.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.`);
|
|
2504
2526
|
}
|
|
2505
2527
|
let T = dn(r.templateSettings);
|
|
2506
2528
|
for (let e of T.unknown) Z.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${fn.join(", ")}) — skipping it.`);
|
|
2507
|
-
let E =
|
|
2508
|
-
|
|
2529
|
+
let E = Jn();
|
|
2530
|
+
$n(E, Za);
|
|
2509
2531
|
let D = /* @__PURE__ */ new Set();
|
|
2510
2532
|
function O(e) {
|
|
2511
2533
|
for (let t of e) {
|
|
2512
|
-
E.registerCustom(t,
|
|
2513
|
-
for (let e of
|
|
2534
|
+
E.registerCustom(t, _i);
|
|
2535
|
+
for (let e of Cr(t, w)) D.has(e.id) || (D.add(e.id), Z.warn(e.message));
|
|
2514
2536
|
}
|
|
2515
2537
|
}
|
|
2516
2538
|
r.customBlocks?.length && O(r.customBlocks);
|
|
2517
|
-
let k =
|
|
2539
|
+
let k = Ln();
|
|
2518
2540
|
if (o() && p(k.dispose), e.containerEl) {
|
|
2519
2541
|
let t = e.containerEl;
|
|
2520
2542
|
pt(document, "pointerdown", (e) => {
|
|
@@ -2527,13 +2549,12 @@ function Xa(e) {
|
|
|
2527
2549
|
t ? t.save() : x?.flush();
|
|
2528
2550
|
}
|
|
2529
2551
|
function j(t) {
|
|
2530
|
-
k.isActive() &&
|
|
2552
|
+
k.isActive() && Tr(t, {
|
|
2531
2553
|
history: g,
|
|
2532
2554
|
selectBlock: (e) => n.selectBlock(e),
|
|
2533
2555
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
2534
2556
|
removeBlock: (e) => n.removeBlock(e),
|
|
2535
2557
|
onSave: A,
|
|
2536
|
-
onBeforeUndo: e.keyboardOptions?.onBeforeUndo,
|
|
2537
2558
|
isPicking: () => e.capabilities?.savedBlocks?.isPicking.value === !0,
|
|
2538
2559
|
onConfirmPick: () => e.capabilities?.savedBlocks?.confirmPicking(),
|
|
2539
2560
|
onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
|
|
@@ -2541,28 +2562,28 @@ function Xa(e) {
|
|
|
2541
2562
|
}
|
|
2542
2563
|
pt(document, "keydown", j);
|
|
2543
2564
|
let M = l(null), N = e.editorRoot ?? document;
|
|
2544
|
-
c(zt, N), c(_t, M), c(Lt, i), c(J, n), c(an, g), c(Bt, _), c(Wt, b), c(Y, a), c(Tt, h), c(Rt, f), c(Zt, d), c(It, r.locale), c(tn, E), c(Qt, r.customBlocks ?? []), c(on, r.paletteBlocks), c(Vt,
|
|
2545
|
-
let P =
|
|
2565
|
+
c(zt, N), c(_t, M), c(Lt, i), c(J, n), c(an, g), c(Bt, _), c(Wt, b), c(Y, a), c(Tt, h), c(Rt, f), c(Zt, d), c(It, r.locale), c(tn, E), c(Qt, r.customBlocks ?? []), c(on, r.paletteBlocks), c(Vt, er(r.htmlBlockPreview)), c(vt, r.layout), c(St, r.sectionWrapper), c(Ut, w), c($t, T.fields), c(Yt, Yn(n.content, E));
|
|
2566
|
+
let P = je(r.mergeTags?.syntax), F = v(r.mergeTags?.tags ?? []);
|
|
2546
2567
|
function I(e) {
|
|
2547
2568
|
Array.isArray(e) ? F.value = e : Z.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
2548
2569
|
}
|
|
2549
2570
|
c(q, F), c(At, P), c(Mt, r.mergeTags?.onRequest ?? null), c(qt, r.mergeTags?.autocomplete !== !1), c(kt, r.mergeTags?.showRawValue !== !1);
|
|
2550
|
-
let L = l(
|
|
2571
|
+
let L = l(Ae(r.mergeTags?.tags ?? []));
|
|
2551
2572
|
c(Ot, L);
|
|
2552
|
-
let R =
|
|
2573
|
+
let R = zn({
|
|
2553
2574
|
resolvePreview: r.resolvePreview,
|
|
2554
2575
|
getContent: () => {
|
|
2555
2576
|
let e = n.content.value;
|
|
2556
|
-
return r.layout && n.state.previewMode ?
|
|
2577
|
+
return r.layout && n.state.previewMode ? ze(r.layout, e) : e;
|
|
2557
2578
|
},
|
|
2558
2579
|
isActive: () => n.state.previewMode
|
|
2559
2580
|
});
|
|
2560
2581
|
c(Ft, R), c(Ct, r.resolvePreview);
|
|
2561
2582
|
let z = y(() => !(n.state.previewMode && R.isConfigured));
|
|
2562
2583
|
c(en, z);
|
|
2563
|
-
let B =
|
|
2564
|
-
c(gt, B), c(Kt, l(!1)), c(yt, l(!1)), c(Pt, r.logicTags?.tags ?? []), c(nn, r.logicTags?.pairs ?? []), c(wt, r.logicTags?.onRequest ?? null), c(bt,
|
|
2565
|
-
let V =
|
|
2584
|
+
let B = Bn();
|
|
2585
|
+
c(gt, B), c(Kt, l(!1)), c(yt, l(!1)), c(Pt, r.logicTags?.tags ?? []), c(nn, r.logicTags?.pairs ?? []), c(wt, r.logicTags?.onRequest ?? null), c(bt, Vn()), c(Dt, r.onRequestMedia ?? null), c(Ht, r.canDropMedia ?? null), c(rn, r.resolveImageUrl ? ct(r.resolveImageUrl) : null), c(Gt, r.displayConditions?.conditions ?? []), c(Xt, r.displayConditions?.allowCustom ?? !1), c(Jt, e.capabilities ?? {}), c(Nt, C);
|
|
2586
|
+
let V = Hn(r.lint) ? null : Un({
|
|
2566
2587
|
content: n.content,
|
|
2567
2588
|
options: r.lint ?? {},
|
|
2568
2589
|
updateBlock: n.updateBlock,
|
|
@@ -2597,6 +2618,6 @@ function Xa(e) {
|
|
|
2597
2618
|
};
|
|
2598
2619
|
}
|
|
2599
2620
|
//#endregion
|
|
2600
|
-
export {
|
|
2621
|
+
export { Dr as A, Kr as C, Ir as D, Fr as E, gr as F, hr as I, mr as L, yr as M, vr as N, Er as O, _r as P, zn as R, Jr as S, jr as T, ci as _, ja as a, $r as b, ga as c, Xi as d, Vi as f, _i as g, yi as h, Pa as i, dr as j, zr as k, fa as l, Ti as m, Xa as n, Ca as o, Li as p, Ba as r, pa as s, Qa as t, ua as u, oi as v, Ur as w, Yr as x, ii as y };
|
|
2601
2622
|
|
|
2602
|
-
//# sourceMappingURL=useEditorCore-
|
|
2623
|
+
//# sourceMappingURL=useEditorCore-DpCFvHg_.js.map
|