@templatical/editor 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
- package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
- package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
- package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
- package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
- package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-BazGNMqN.js} +4 -4
- package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
- package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
- package/dist/CountdownBlock-zx39Dyby.js +92 -0
- package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
- package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
- package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
- package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
- package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
- package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
- package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
- package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
- package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
- package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
- package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
- package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
- package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
- package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
- package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
- package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
- package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
- package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
- package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
- package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
- package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
- package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
- package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
- package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
- package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
- package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
- package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
- package/dist/WrapperBlock-BOABSX9W.js +46 -0
- package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-4E1U8f99.js} +5 -5
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
- package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
- package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
- package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
- package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
- package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
- package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
- package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
- package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
- package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
- package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
- package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-WIBiBrGy.js} +6 -6
- package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
- package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
- package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
- package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
- package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
- package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
- package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
- package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
- package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
- package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
- package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
- package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
- package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
- package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
- package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
- package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
- package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
- package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
- package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
- package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
- package/dist/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
- package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
- package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
- package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
- package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
- package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
- package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
- package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +602 -580
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
- package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
- package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
- package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
- package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
- package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
- package/dist/{cloud-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
- package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
- package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-C8gpPsSi.js} +16 -7
- package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
- package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
- package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
- package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
- package/dist/dist-BPFcLKTw.js +5 -0
- package/dist/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
- package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
- package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
- package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
- package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
- package/dist/dist-D7Yj7E-F.js +5 -0
- package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
- package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
- package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
- package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
- package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
- package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
- package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
- package/dist/en-CC-57eC_.js +1 -0
- package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
- package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
- package/dist/{extensions-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
- package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
- package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
- package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
- package/dist/index.d.ts +92 -20
- package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
- package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
- package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
- package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
- package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
- package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
- package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
- package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
- package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
- package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
- package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
- package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -3
- package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
- package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
- package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
- package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
- package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
- package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
- package/dist/socialIcons-BctavKBN.js +1180 -0
- package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
- package/dist/templatical-editor.js +509 -487
- package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
- package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
- package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
- package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
- package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
- package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
- package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
- package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
- package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
- package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
- package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
- package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
- package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
- package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
- package/dist/withCurrentFont-B4YnsG_2.js +19 -0
- package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
- package/package.json +24 -24
- package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
- package/dist/CountdownBlock-RNx3hIu0.js +0 -91
- package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
- package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
- package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
- package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
- package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.js.map +0 -1
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
- package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
- package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
- package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
- package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
- package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
- package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
- package/dist/dist-CFC4pg2o.js +0 -5
- package/dist/dist-j2FavQmU.js +0 -5
- package/dist/en-Bk4iCfjp.js +0 -1
- package/dist/socialIcons-CvAixjj8.js +0 -1126
- package/dist/withCurrentFont-DeCbPVaE.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _n as e, bt as t, f as n, s as r, un as i } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.
|
|
1
|
+
import { _n as e, bt as t, f as n, s as r, un as i } from "./dist-DBxgrOeo.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.32.0_@tiptap+core@3.32.0_@tiptap+pm@3.32.0_/node_modules/@tiptap/extension-text-style/dist/index.js
|
|
3
3
|
var a = 20, o = (e, t = 0) => {
|
|
4
4
|
let n = [];
|
|
5
5
|
return !e.children.length || t > a || Array.from(e.children).forEach((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _n as e, bt as t, f as n, mn as r, pn as i, un as a } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.
|
|
1
|
+
import { _n as e, bt as t, f as n, mn as r, pn as i, un as a } from "./dist-DBxgrOeo.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.32.0_@tiptap+core@3.32.0_@tiptap+pm@3.32.0_/node_modules/@tiptap/extension-highlight/dist/index.js
|
|
3
3
|
var o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, s = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, c = n.create({
|
|
4
4
|
name: "highlight",
|
|
5
5
|
addOptions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _n as e, f as t } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.
|
|
1
|
+
import { _n as e, f as t } from "./dist-DBxgrOeo.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.32.0_@tiptap+core@3.32.0_@tiptap+pm@3.32.0__@tiptap+pm@3.32.0/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "superscript",
|
|
5
5
|
addOptions() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, E as r, O as i, U as a, Y as o, Z as s, at as c, b as l, ct as u, et as ee, j as d, q as f, v as p, y as m, z as te } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { r as h } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import { $ as ne, $t as re, A as ie, An as ae, At as oe, B as se, Bn as ce, Bt as le, C as ue, Cn as de, Ct as fe, D as g, Dn as _, Dt as v, E as y, En as b, Et as x, F as S, Fn as C, Ft as w, G as T, Gt as E, H as D, Ht as O, I as k, In as A, It as j, J as M, Jt as N, K as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as pe, Nn as me, Nt as he, O as ge, On as _e, Ot as ve, P as ye, Pn as be, Pt as xe, Q as Se, Qt as Ce, R as we, Rn as Te, Rt as Ee, S as De, Sn as Oe, St as ke, T as Ae, Tn as je, Tt as Me, U as Ne, Ut as H, V as Pe, Vt as Fe, W as Ie, Wt as Le, X as Re, Xt as ze, Y as Be, Yt as Ve, Z as He, Zt as Ue, _ as U, _n as We, _t as Ge, a as Ke, an as qe, at as Je, b as Ye, bn as Xe, bt as Ze, c as Qe, cn as $e, ct as et, d as tt, dn as nt, dt as rt, en as it, et as at, f as ot, fn as st, ft as ct, g as lt, gn as ut, gt as dt, h as ft, hn as pt, ht as mt, i as ht, in as gt, it as _t, j as vt, jn as yt, jt as bt, k as xt, kn as St, kt as Ct, l as wt, ln as Tt, lt as Et, m as Dt, mn as Ot, mt as kt, n as At, nn as jt, nt as Mt, o as Nt, on as Pt, ot as Ft, p as W, pn as It, pt as Lt, q as Rt, qt as zt, r as Bt, rn as Vt, rt as Ht, s as Ut, sn as Wt, st as Gt, t as Kt, tn as qt, tt as Jt, u as Yt, un as Xt, ut as Zt, v as Qt, vn as $t, vt as en, w as tn, wn as nn, wt as rn, x as an, xn as on, xt as sn, y as cn, yn as ln, yt as un, z as dn, zn as fn, zt as pn } from "./dist-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.
|
|
2
|
+
import { $ as t, D as n, E as r, O as i, U as a, Y as o, Z as s, at as c, b as l, ct as u, et as ee, j as d, q as f, v as p, y as m, z as te } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
3
|
+
import { r as h } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
4
|
+
import { $ as ne, $t as re, A as ie, An as ae, At as oe, B as se, Bn as ce, Bt as le, C as ue, Cn as de, Ct as fe, D as g, Dn as _, Dt as v, E as y, En as b, Et as x, F as S, Fn as C, Ft as w, G as T, Gt as E, H as D, Ht as O, I as k, In as A, It as j, J as M, Jt as N, K as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as pe, Nn as me, Nt as he, O as ge, On as _e, Ot as ve, P as ye, Pn as be, Pt as xe, Q as Se, Qt as Ce, R as we, Rn as Te, Rt as Ee, S as De, Sn as Oe, St as ke, T as Ae, Tn as je, Tt as Me, U as Ne, Ut as H, V as Pe, Vt as Fe, W as Ie, Wt as Le, X as Re, Xt as ze, Y as Be, Yt as Ve, Z as He, Zt as Ue, _ as U, _n as We, _t as Ge, a as Ke, an as qe, at as Je, b as Ye, bn as Xe, bt as Ze, c as Qe, cn as $e, ct as et, d as tt, dn as nt, dt as rt, en as it, et as at, f as ot, fn as st, ft as ct, g as lt, gn as ut, gt as dt, h as ft, hn as pt, ht as mt, i as ht, in as gt, it as _t, j as vt, jn as yt, jt as bt, k as xt, kn as St, kt as Ct, l as wt, ln as Tt, lt as Et, m as Dt, mn as Ot, mt as kt, n as At, nn as jt, nt as Mt, o as Nt, on as Pt, ot as Ft, p as W, pn as It, pt as Lt, q as Rt, qt as zt, r as Bt, rn as Vt, rt as Ht, s as Ut, sn as Wt, st as Gt, t as Kt, tn as qt, tt as Jt, u as Yt, un as Xt, ut as Zt, v as Qt, vn as $t, vt as en, w as tn, wn as nn, wt as rn, x as an, xn as on, xt as sn, y as cn, yn as ln, yt as un, z as dn, zn as fn, zt as pn } from "./dist-DBxgrOeo.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.32.0_@floating-ui+dom@1.8.0_@tiptap+core@3.32.0_@tiptap+pm@3.32.0__@tip_9562d75cf48882d60b6010295cbde020/node_modules/@tiptap/vue-3/dist/index.js
|
|
6
6
|
var mn = /* @__PURE__ */ e({
|
|
7
7
|
CommandManager: () => Kt,
|
|
8
8
|
DECORATION_MANAGER_PLUGIN_KEY: () => At,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, D as r, J as i, K as a, M as o, P as s, R as c, S as l, V as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, i as v, j as y, jt as b, kt as x, l as S, r as C, rt as w, s as T, tt as E, u as D, v as O } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { h as N } from "./dist-
|
|
4
|
-
import { a as P, n as F, o as I, r as L, s as R, t as ee } from "./dist-
|
|
5
|
-
import { t as z } from "./createLucideIcon-
|
|
6
|
-
import { t as B } from "./check-
|
|
7
|
-
import { t as te } from "./chevron-right-
|
|
8
|
-
import { t as ne } from "./copy-
|
|
9
|
-
import { t as re } from "./link-
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as H } from "./pencil-
|
|
13
|
-
import { t as ae } from "./plus-
|
|
14
|
-
import { t as U } from "./refresh-cw-
|
|
15
|
-
import { t as oe } from "./search-
|
|
16
|
-
import { t as se } from "./trash-
|
|
17
|
-
import { t as ce } from "./upload-
|
|
18
|
-
import { t as le } from "./x-
|
|
1
|
+
import { A as e, At as t, B as n, D as r, J as i, K as a, M as o, P as s, R as c, S as l, V as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, i as v, j as y, jt as b, kt as x, l as S, r as C, rt as w, s as T, tt as E, u as D, v as O } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import { h as N } from "./dist-CUWI-IvA.js";
|
|
4
|
+
import { a as P, n as F, o as I, r as L, s as R, t as ee } from "./dist-DAAJogrx.js";
|
|
5
|
+
import { t as z } from "./createLucideIcon-DziKp5iU.js";
|
|
6
|
+
import { t as B } from "./check-B5R4zXr7.js";
|
|
7
|
+
import { t as te } from "./chevron-right-BmToZ8qX.js";
|
|
8
|
+
import { t as ne } from "./copy-BsKl4dcy.js";
|
|
9
|
+
import { t as re } from "./link-CrUFaZ0t.js";
|
|
10
|
+
import { t as V } from "./loader-circle-BXM5VO0K.js";
|
|
11
|
+
import { t as ie } from "./list-CLgv6M-k.js";
|
|
12
|
+
import { t as H } from "./pencil-oo2mwf4C.js";
|
|
13
|
+
import { t as ae } from "./plus-BIilXopD.js";
|
|
14
|
+
import { t as U } from "./refresh-cw-DrLlkEVC.js";
|
|
15
|
+
import { t as oe } from "./search-DNu9lImk.js";
|
|
16
|
+
import { t as se } from "./trash-8ZD9pK_c.js";
|
|
17
|
+
import { t as ce } from "./upload-DrNFmVes.js";
|
|
18
|
+
import { t as le } from "./x-CBFKGLB1.js";
|
|
19
19
|
import { t as W } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
20
20
|
var G = z({
|
|
21
21
|
name: "file",
|
|
@@ -368,7 +368,7 @@ var ve = {
|
|
|
368
368
|
function re() {
|
|
369
369
|
w.value ? (a("deleteFolder", i.folder.id), w.value = !1) : w.value = !0;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function V(e) {
|
|
372
372
|
let t = e.relatedTarget;
|
|
373
373
|
t && e.currentTarget.contains(t) || (w.value = !1);
|
|
374
374
|
}
|
|
@@ -381,7 +381,7 @@ var ve = {
|
|
|
381
381
|
backgroundColor: M.value ? "var(--tpl-bg-active)" : "transparent",
|
|
382
382
|
color: M.value ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
383
383
|
}),
|
|
384
|
-
onFocusout:
|
|
384
|
+
onFocusout: V
|
|
385
385
|
}, [
|
|
386
386
|
E.value || v.value ? (e(), h("button", {
|
|
387
387
|
key: 0,
|
|
@@ -1917,7 +1917,7 @@ function mn(e) {
|
|
|
1917
1917
|
e.onError?.(t);
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
|
-
async function
|
|
1920
|
+
async function V(r, i, a) {
|
|
1921
1921
|
let { update: o } = t;
|
|
1922
1922
|
if (typeof o != "function") return !1;
|
|
1923
1923
|
try {
|
|
@@ -1929,7 +1929,7 @@ function mn(e) {
|
|
|
1929
1929
|
return e.onError?.(t), !1;
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function ie(e) {
|
|
1933
1933
|
let t = /* @__PURE__ */ new Map();
|
|
1934
1934
|
for (let r of n.value) e.includes(r.id) && t.set(r.id, r);
|
|
1935
1935
|
for (let n of _.value) e.includes(n.id) && !t.has(n.id) && t.set(n.id, n);
|
|
@@ -1942,7 +1942,7 @@ function mn(e) {
|
|
|
1942
1942
|
if (h.value.size === 0) return;
|
|
1943
1943
|
let { delete: n } = t;
|
|
1944
1944
|
if (typeof n != "function") return;
|
|
1945
|
-
let r = [...h.value], i =
|
|
1945
|
+
let r = [...h.value], i = ie(r);
|
|
1946
1946
|
try {
|
|
1947
1947
|
await n(r), H(r);
|
|
1948
1948
|
for (let e of i) j(() => t.onDeleted?.(e));
|
|
@@ -1975,7 +1975,7 @@ function mn(e) {
|
|
|
1975
1975
|
async function se() {
|
|
1976
1976
|
let { delete: n } = t;
|
|
1977
1977
|
if (typeof n != "function" || (y.value = !1, b.value.length === 0)) return;
|
|
1978
|
-
let r = b.value, i =
|
|
1978
|
+
let r = b.value, i = ie(r);
|
|
1979
1979
|
try {
|
|
1980
1980
|
await n(r), H(r), b.value = [], v.value = {};
|
|
1981
1981
|
for (let e of i) j(() => t.onDeleted?.(e));
|
|
@@ -2126,7 +2126,7 @@ function mn(e) {
|
|
|
2126
2126
|
uploadFile: te,
|
|
2127
2127
|
uploadFiles: ne,
|
|
2128
2128
|
moveSelected: re,
|
|
2129
|
-
updateFile:
|
|
2129
|
+
updateFile: V,
|
|
2130
2130
|
deleteSelected: ae,
|
|
2131
2131
|
isImportingFromUrl: x,
|
|
2132
2132
|
importFromUrlError: S,
|
|
@@ -2251,7 +2251,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2251
2251
|
"ready"
|
|
2252
2252
|
],
|
|
2253
2253
|
setup(i, { expose: a, emit: s }) {
|
|
2254
|
-
let l = i, u = s, d = f(() => import("./MediaEditModal-
|
|
2254
|
+
let l = i, u = s, d = f(() => import("./MediaEditModal-D_we0Scr.js")), v = T(() => l.translations), w = T(() => l.confirmTestId ?? "media-confirm"), E = {
|
|
2255
2255
|
get maxFileSize() {
|
|
2256
2256
|
return l.provider.maxFileSize;
|
|
2257
2257
|
},
|
|
@@ -2674,7 +2674,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2674
2674
|
}), $n = /* #__PURE__ */ Object.assign({
|
|
2675
2675
|
"./locales/ca.ts": () => import("./ca-CYQH3J0b.js"),
|
|
2676
2676
|
"./locales/de.ts": () => import("./de-JvCTMJPy.js"),
|
|
2677
|
-
"./locales/en.ts": () => import("./en-
|
|
2677
|
+
"./locales/en.ts": () => import("./en-CC-57eC_.js"),
|
|
2678
2678
|
"./locales/es.ts": () => import("./es-CAv-Vldw.js"),
|
|
2679
2679
|
"./locales/fr.ts": () => import("./fr-DVPtxpR6.js"),
|
|
2680
2680
|
"./locales/ja.ts": () => import("./ja-dcWzjStz.js"),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as default } from "./editor-modal-BwyIUnV_.js";
|
|
@@ -101,6 +101,9 @@ var e = {
|
|
|
101
101
|
highlightColor: "Highlight Color",
|
|
102
102
|
lineHeight: "Line Height",
|
|
103
103
|
letterSpacing: "Letter Spacing",
|
|
104
|
+
lineHeightShort: "LH",
|
|
105
|
+
letterSpacingShort: "LS",
|
|
106
|
+
letterSpacingNormal: "Normal",
|
|
104
107
|
emojiItemLabel: "Insert emoji {emoji}"
|
|
105
108
|
},
|
|
106
109
|
blockActions: {
|
|
@@ -195,6 +198,7 @@ var e = {
|
|
|
195
198
|
altTextPlaceholder: "Video description",
|
|
196
199
|
width: "Width",
|
|
197
200
|
fullWidth: "Full Width",
|
|
201
|
+
widthCustom: "Custom",
|
|
198
202
|
height: "Height",
|
|
199
203
|
heightAuto: "Auto",
|
|
200
204
|
heightCustom: "Custom",
|
|
@@ -375,6 +379,23 @@ var e = {
|
|
|
375
379
|
cornerBottomRight: "Bottom right",
|
|
376
380
|
cornerBottomLeft: "Bottom left",
|
|
377
381
|
color: "Color",
|
|
382
|
+
backgroundImage: "Image",
|
|
383
|
+
backgroundImagePlaceholder: "https://example.com/background.jpg",
|
|
384
|
+
backgroundSize: "Size",
|
|
385
|
+
backgroundSizeCover: "Fill",
|
|
386
|
+
backgroundSizeContain: "Fit",
|
|
387
|
+
backgroundSizeAuto: "Original",
|
|
388
|
+
backgroundPosition: "Position",
|
|
389
|
+
backgroundPositionTopLeft: "Top left",
|
|
390
|
+
backgroundPositionTopCenter: "Top center",
|
|
391
|
+
backgroundPositionTopRight: "Top right",
|
|
392
|
+
backgroundPositionCenterLeft: "Center left",
|
|
393
|
+
backgroundPositionCenter: "Center",
|
|
394
|
+
backgroundPositionCenterRight: "Center right",
|
|
395
|
+
backgroundPositionBottomLeft: "Bottom left",
|
|
396
|
+
backgroundPositionBottomCenter: "Bottom center",
|
|
397
|
+
backgroundPositionBottomRight: "Bottom right",
|
|
398
|
+
backgroundRepeat: "Repeat image",
|
|
378
399
|
display: "Display",
|
|
379
400
|
showOnDesktop: "Show on desktop",
|
|
380
401
|
showOnMobile: "Show on mobile",
|
|
@@ -101,6 +101,9 @@ var e = {
|
|
|
101
101
|
highlightColor: "Color de resaltado",
|
|
102
102
|
lineHeight: "Interlineado",
|
|
103
103
|
letterSpacing: "Espaciado entre letras",
|
|
104
|
+
lineHeightShort: "IL",
|
|
105
|
+
letterSpacingShort: "EL",
|
|
106
|
+
letterSpacingNormal: "Normal",
|
|
104
107
|
emojiItemLabel: "Insertar emoji {emoji}"
|
|
105
108
|
},
|
|
106
109
|
blockActions: {
|
|
@@ -195,6 +198,7 @@ var e = {
|
|
|
195
198
|
altTextPlaceholder: "Descripción del vídeo",
|
|
196
199
|
width: "Ancho",
|
|
197
200
|
fullWidth: "Ancho completo",
|
|
201
|
+
widthCustom: "Personalizado",
|
|
198
202
|
height: "Altura",
|
|
199
203
|
heightAuto: "Automática",
|
|
200
204
|
heightCustom: "Personalizada",
|
|
@@ -375,6 +379,23 @@ var e = {
|
|
|
375
379
|
cornerBottomRight: "Abajo a la derecha",
|
|
376
380
|
cornerBottomLeft: "Abajo a la izquierda",
|
|
377
381
|
color: "Color",
|
|
382
|
+
backgroundImage: "Imagen",
|
|
383
|
+
backgroundImagePlaceholder: "https://example.com/background.jpg",
|
|
384
|
+
backgroundSize: "Tamaño",
|
|
385
|
+
backgroundSizeCover: "Rellenar",
|
|
386
|
+
backgroundSizeContain: "Ajustar",
|
|
387
|
+
backgroundSizeAuto: "Original",
|
|
388
|
+
backgroundPosition: "Posición",
|
|
389
|
+
backgroundPositionTopLeft: "Arriba a la izquierda",
|
|
390
|
+
backgroundPositionTopCenter: "Arriba en el centro",
|
|
391
|
+
backgroundPositionTopRight: "Arriba a la derecha",
|
|
392
|
+
backgroundPositionCenterLeft: "Centro a la izquierda",
|
|
393
|
+
backgroundPositionCenter: "Centro",
|
|
394
|
+
backgroundPositionCenterRight: "Centro a la derecha",
|
|
395
|
+
backgroundPositionBottomLeft: "Abajo a la izquierda",
|
|
396
|
+
backgroundPositionBottomCenter: "Abajo en el centro",
|
|
397
|
+
backgroundPositionBottomRight: "Abajo a la derecha",
|
|
398
|
+
backgroundRepeat: "Repetir imagen",
|
|
378
399
|
display: "Visualización",
|
|
379
400
|
showOnDesktop: "Mostrar en escritorio",
|
|
380
401
|
showOnMobile: "Mostrar en móvil",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, E as r, J as i, V as a, Z as o, at as s, c, d as l, jt as u, kt as d, l as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as C } from "./useI18n-
|
|
5
|
-
import { a as w, o as T, s as E } from "./LogicTagInsertButton-
|
|
6
|
-
import { t as D } from "./useMergeTag-
|
|
7
|
-
import { H as O, Kn as k, Xn as A, Yn as j, _n as M, m as N, qn as ee, s as P, u as te, v as ne } from "./dist-
|
|
8
|
-
import { n as F, t as re } from "./dist-
|
|
1
|
+
import { A as e, At as t, B as n, E as r, J as i, V as a, Z as o, at as s, c, d as l, jt as u, kt as d, l as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
2
|
+
import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
3
|
+
import { H as y, U as b, Y as x, u as S } from "./dist-C8koXLhl.js";
|
|
4
|
+
import { t as C } from "./useI18n-CxVEpurs.js";
|
|
5
|
+
import { a as w, o as T, s as E } from "./LogicTagInsertButton-DDYKnqmj.js";
|
|
6
|
+
import { t as D } from "./useMergeTag-5wMeDBi-.js";
|
|
7
|
+
import { H as O, Kn as k, Xn as A, Yn as j, _n as M, m as N, qn as ee, s as P, u as te, v as ne } from "./dist-DBxgrOeo.js";
|
|
8
|
+
import { n as F, t as re } from "./dist-DuufrR8O.js";
|
|
9
9
|
//#region src/extensions/FontSize.ts
|
|
10
10
|
var ie = P.create({
|
|
11
11
|
name: "fontSize",
|
|
@@ -101,7 +101,7 @@ var ie = P.create({
|
|
|
101
101
|
updateAttributes: { type: Function }
|
|
102
102
|
},
|
|
103
103
|
setup(i) {
|
|
104
|
-
let h = i, { syntax:
|
|
104
|
+
let h = i, { syntax: b } = D(), { t: S } = C(), w = p(() => x(h.node.attrs.value, b)), T = p(() => y(h.node.attrs.value, b)), E = o(!1), O = o(""), k = o(null), A = !1;
|
|
105
105
|
function j() {
|
|
106
106
|
O.value = h.node.attrs.value, A = !1, E.value = !0, r(() => {
|
|
107
107
|
k.value?.focus(), k.value?.select();
|
|
@@ -113,7 +113,7 @@ var ie = P.create({
|
|
|
113
113
|
let e = O.value.trim();
|
|
114
114
|
e && e !== h.node.attrs.value && h.updateAttributes({
|
|
115
115
|
value: e,
|
|
116
|
-
keyword:
|
|
116
|
+
keyword: x(e, b) ? y(e, b) : ""
|
|
117
117
|
}), E.value = !1;
|
|
118
118
|
}
|
|
119
119
|
function N(e) {
|
|
@@ -219,7 +219,7 @@ var me = N.create({
|
|
|
219
219
|
return [{ tag: "span[data-logic-merge-tag]" }];
|
|
220
220
|
},
|
|
221
221
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
222
|
-
if (!
|
|
222
|
+
if (!x(e.attrs.value, this.options.syntax)) return [
|
|
223
223
|
"span",
|
|
224
224
|
{},
|
|
225
225
|
e.attrs.value
|
|
@@ -249,7 +249,7 @@ var me = N.create({
|
|
|
249
249
|
find: e,
|
|
250
250
|
handler: ({ state: e, range: t, match: n }) => {
|
|
251
251
|
let r = n[0];
|
|
252
|
-
if (!
|
|
252
|
+
if (!x(r, this.options.syntax)) return;
|
|
253
253
|
let i = y(r, this.options.syntax), a = this.type.create({
|
|
254
254
|
value: r,
|
|
255
255
|
keyword: i
|
|
@@ -264,7 +264,7 @@ var me = N.create({
|
|
|
264
264
|
find: e,
|
|
265
265
|
handler: ({ state: e, range: t, match: n }) => {
|
|
266
266
|
let r = n[0];
|
|
267
|
-
if (!
|
|
267
|
+
if (!x(r, this.options.syntax)) return;
|
|
268
268
|
let i = y(r, this.options.syntax), a = this.type.create({
|
|
269
269
|
value: r,
|
|
270
270
|
keyword: i
|
|
@@ -403,7 +403,7 @@ var me = N.create({
|
|
|
403
403
|
return [{ tag: "span[data-merge-tag]" }];
|
|
404
404
|
},
|
|
405
405
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
406
|
-
let n =
|
|
406
|
+
let n = b(e.attrs.value, this.options.mergeTags());
|
|
407
407
|
return [
|
|
408
408
|
"span",
|
|
409
409
|
M(t, {
|
|
@@ -436,7 +436,7 @@ var me = N.create({
|
|
|
436
436
|
return [new te({
|
|
437
437
|
find: e,
|
|
438
438
|
handler: ({ state: e, range: t, match: n }) => {
|
|
439
|
-
let r = n[0], i =
|
|
439
|
+
let r = n[0], i = b(r, this.options.mergeTags()), a = this.type.create({
|
|
440
440
|
label: i,
|
|
441
441
|
value: r
|
|
442
442
|
});
|
|
@@ -449,7 +449,7 @@ var me = N.create({
|
|
|
449
449
|
return [new ne({
|
|
450
450
|
find: e,
|
|
451
451
|
handler: ({ state: e, range: t, match: n }) => {
|
|
452
|
-
let r = n[0], i =
|
|
452
|
+
let r = n[0], i = b(r, this.options.mergeTags()), a = this.type.create({
|
|
453
453
|
label: i,
|
|
454
454
|
value: r
|
|
455
455
|
});
|
|
@@ -1158,7 +1158,7 @@ var It = qe, Lt = We, Rt = (e, t, n) => {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
};
|
|
1160
1160
|
//#endregion
|
|
1161
|
-
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.
|
|
1161
|
+
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.32.0_@floating-ui+dom@1.8.0_@tiptap+core@3.32.0_@tiptap+pm@3.32.0__@tiptap+pm@3.32.0/node_modules/@tiptap/suggestion/dist/index.js
|
|
1162
1162
|
function zt(e) {
|
|
1163
1163
|
let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = O(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
|
|
1164
1164
|
if (!p) return null;
|
|
@@ -1602,12 +1602,12 @@ var nn = P.create({
|
|
|
1602
1602
|
};
|
|
1603
1603
|
},
|
|
1604
1604
|
addProseMirrorPlugins() {
|
|
1605
|
-
let e = this.options.mergeTags
|
|
1605
|
+
let e = this.options.mergeTags, t = this.options.emptyText, n = this.options.popoverRoot, r = {
|
|
1606
1606
|
char: this.options.char,
|
|
1607
1607
|
allowSpaces: !1,
|
|
1608
1608
|
startOfLine: !1,
|
|
1609
1609
|
allowedPrefixes: null,
|
|
1610
|
-
items: ({ query: t }) => T(e, t),
|
|
1610
|
+
items: ({ query: t }) => T(e(), t),
|
|
1611
1611
|
command: ({ editor: e, range: t, props: n }) => {
|
|
1612
1612
|
e.chain().focus().insertContentAt(t, {
|
|
1613
1613
|
type: "mergeTagNode",
|
|
@@ -102,6 +102,9 @@ var e = {
|
|
|
102
102
|
highlightColor: "Couleur de surlignage",
|
|
103
103
|
lineHeight: "Interligne",
|
|
104
104
|
letterSpacing: "Espacement des lettres",
|
|
105
|
+
lineHeightShort: "IL",
|
|
106
|
+
letterSpacingShort: "EL",
|
|
107
|
+
letterSpacingNormal: "Normal",
|
|
105
108
|
emojiItemLabel: "Insérer l'émoji {emoji}"
|
|
106
109
|
},
|
|
107
110
|
blockActions: {
|
|
@@ -196,6 +199,7 @@ var e = {
|
|
|
196
199
|
altTextPlaceholder: "Description de la vidéo",
|
|
197
200
|
width: "Largeur",
|
|
198
201
|
fullWidth: "Pleine largeur",
|
|
202
|
+
widthCustom: "Personnalisée",
|
|
199
203
|
height: "Hauteur",
|
|
200
204
|
heightAuto: "Automatique",
|
|
201
205
|
heightCustom: "Personnalisée",
|
|
@@ -375,6 +379,23 @@ var e = {
|
|
|
375
379
|
cornerBottomRight: "En bas à droite",
|
|
376
380
|
cornerBottomLeft: "En bas à gauche",
|
|
377
381
|
color: "Couleur",
|
|
382
|
+
backgroundImage: "Image",
|
|
383
|
+
backgroundImagePlaceholder: "https://example.com/background.jpg",
|
|
384
|
+
backgroundSize: "Taille",
|
|
385
|
+
backgroundSizeCover: "Remplir",
|
|
386
|
+
backgroundSizeContain: "Ajuster",
|
|
387
|
+
backgroundSizeAuto: "D'origine",
|
|
388
|
+
backgroundPosition: "Position",
|
|
389
|
+
backgroundPositionTopLeft: "En haut à gauche",
|
|
390
|
+
backgroundPositionTopCenter: "En haut au centre",
|
|
391
|
+
backgroundPositionTopRight: "En haut à droite",
|
|
392
|
+
backgroundPositionCenterLeft: "Au centre à gauche",
|
|
393
|
+
backgroundPositionCenter: "Au centre",
|
|
394
|
+
backgroundPositionCenterRight: "Au centre à droite",
|
|
395
|
+
backgroundPositionBottomLeft: "En bas à gauche",
|
|
396
|
+
backgroundPositionBottomCenter: "En bas au centre",
|
|
397
|
+
backgroundPositionBottomRight: "En bas à droite",
|
|
398
|
+
backgroundRepeat: "Répéter l'image",
|
|
378
399
|
display: "Affichage",
|
|
379
400
|
showOnDesktop: "Afficher sur ordinateur",
|
|
380
401
|
showOnMobile: "Afficher sur mobile",
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,34 @@ declare interface AiConfig {
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function applyLayout(layout: TemplateContent, content: TemplateContent): TemplateContent;
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* An image painted behind a section or a wrapper band. The element's own
|
|
22
|
+
* `backgroundColor` is its fallback: it shows while the image loads, with
|
|
23
|
+
* images off, and in clients without background-image support.
|
|
24
|
+
*/
|
|
25
|
+
declare interface BackgroundImage {
|
|
26
|
+
url: string;
|
|
27
|
+
size: BackgroundSize;
|
|
28
|
+
position: {
|
|
29
|
+
x: BackgroundPositionX;
|
|
30
|
+
y: BackgroundPositionY;
|
|
31
|
+
};
|
|
32
|
+
/** `false` paints the image once; `true` tiles it. */
|
|
33
|
+
repeat: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare type BackgroundPositionX = "left" | "center" | "right";
|
|
37
|
+
|
|
38
|
+
declare type BackgroundPositionY = "top" | "center" | "bottom";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* `background-size` keywords. In Outlook on Windows (VML), `cover` and
|
|
42
|
+
* `contain` draw a single frame when `repeat` is off and tile when it is on;
|
|
43
|
+
* `auto` always tiles from the top center, whatever `position` and `repeat`
|
|
44
|
+
* say.
|
|
45
|
+
*/
|
|
46
|
+
declare type BackgroundSize = "cover" | "contain" | "auto";
|
|
47
|
+
|
|
20
48
|
declare interface BaseBlock {
|
|
21
49
|
id: string;
|
|
22
50
|
type: string;
|
|
@@ -497,6 +525,14 @@ declare interface CustomBlock extends BaseBlock {
|
|
|
497
525
|
customType: string;
|
|
498
526
|
fieldValues: Record<string, unknown>;
|
|
499
527
|
renderedHtml?: string;
|
|
528
|
+
/**
|
|
529
|
+
* The definition's `stylesheet`, copied in when `renderedHtml` is written.
|
|
530
|
+
* A render provider's backend, and Cloud rendering from storage, have no
|
|
531
|
+
* definition to ask, so `@templatical/renderer` emits this when no
|
|
532
|
+
* `getCustomBlockStylesheet` resolver is passed. A resolver, when passed,
|
|
533
|
+
* decides every type, so a stale copy never overrides a live definition.
|
|
534
|
+
*/
|
|
535
|
+
renderedStylesheet?: string;
|
|
500
536
|
dataSourceFetched?: boolean;
|
|
501
537
|
}
|
|
502
538
|
|
|
@@ -1447,14 +1483,16 @@ declare interface PreviewResolveContext {
|
|
|
1447
1483
|
*/
|
|
1448
1484
|
export declare interface RenderPayload {
|
|
1449
1485
|
/**
|
|
1450
|
-
* The template to render, with every custom block's `renderedHtml`
|
|
1451
|
-
* filled in.
|
|
1486
|
+
* The template to render, with every custom block's `renderedHtml` and
|
|
1487
|
+
* `renderedStylesheet` already filled in.
|
|
1452
1488
|
*
|
|
1453
1489
|
* This is the part a server genuinely cannot do: a custom block's HTML comes
|
|
1454
1490
|
* from the consumer's liquid template plus the block's field values, and the
|
|
1455
1491
|
* template registration lives in the browser. A renderer that receives a
|
|
1456
1492
|
* custom block with neither a resolver nor `renderedHtml` omits it silently,
|
|
1457
|
-
* so pre-rendering is a contract obligation, not an optimisation.
|
|
1493
|
+
* so pre-rendering is a contract obligation, not an optimisation. The same
|
|
1494
|
+
* holds for the definition's stylesheet (media queries, hover rules), which
|
|
1495
|
+
* the renderer emits from `renderedStylesheet` when given no resolver.
|
|
1458
1496
|
*
|
|
1459
1497
|
* A defensive copy — mutating it does not touch what the user is editing.
|
|
1460
1498
|
*/
|
|
@@ -1783,14 +1821,21 @@ declare interface SectionBlock extends BaseBlock {
|
|
|
1783
1821
|
* width 0 is not drawn.
|
|
1784
1822
|
*/
|
|
1785
1823
|
border?: BorderValue;
|
|
1824
|
+
/**
|
|
1825
|
+
* Image behind the section's columns, rendered as `background-url` (plus
|
|
1826
|
+
* size, position and repeat) on the `mj-section`. `styles.backgroundColor`
|
|
1827
|
+
* is its fallback.
|
|
1828
|
+
*/
|
|
1829
|
+
backgroundImage?: BackgroundImage;
|
|
1786
1830
|
/** Optional outer frame (rendered as an `mj-wrapper` around the section). */
|
|
1787
1831
|
wrapper?: SectionWrapper;
|
|
1788
1832
|
}
|
|
1789
1833
|
|
|
1790
1834
|
/**
|
|
1791
1835
|
* Optional outer frame for a section. When present, the section is rendered
|
|
1792
|
-
* inside an `mj-wrapper` — a
|
|
1793
|
-
*
|
|
1836
|
+
* inside an `mj-wrapper` — a band (its own background + padding) that frames
|
|
1837
|
+
* the section, e.g. a white card sitting on a colored band. The band is as
|
|
1838
|
+
* wide as the email body (`settings.width`), not the recipient's viewport.
|
|
1794
1839
|
*/
|
|
1795
1840
|
declare interface SectionWrapper {
|
|
1796
1841
|
backgroundColor?: string;
|
|
@@ -1800,6 +1845,8 @@ declare interface SectionWrapper {
|
|
|
1800
1845
|
* corner. Omitted/0 = square corners.
|
|
1801
1846
|
*/
|
|
1802
1847
|
borderRadius?: BorderRadiusValue;
|
|
1848
|
+
/** Image behind the band; `backgroundColor` is its fallback. */
|
|
1849
|
+
backgroundImage?: BackgroundImage;
|
|
1803
1850
|
}
|
|
1804
1851
|
|
|
1805
1852
|
declare interface SelectOption {
|
|
@@ -2402,12 +2449,12 @@ export declare interface TemplaticalCloudEditorConfig {
|
|
|
2402
2449
|
displayConditions?: DisplayConditionsConfig;
|
|
2403
2450
|
customBlocks?: CustomBlockDefinition[];
|
|
2404
2451
|
/**
|
|
2405
|
-
* Allowlist + order for the block palette. When
|
|
2406
|
-
* types appear in the sidebar palette, in this order; unlisted
|
|
2407
|
-
* hidden. Built-ins use their bare type (`'image'`), custom
|
|
2408
|
-
* `custom:`-prefixed type (`'custom:qrcode'`). Unknown entries are
|
|
2409
|
-
* skipped. Omit for the full default palette. See
|
|
2410
|
-
* editor config for details.
|
|
2452
|
+
* Allowlist + order for the block palette. When non-empty, only the listed
|
|
2453
|
+
* block types appear in the sidebar palette, in this order; unlisted
|
|
2454
|
+
* built-ins are hidden. Built-ins use their bare type (`'image'`), custom
|
|
2455
|
+
* blocks the `custom:`-prefixed type (`'custom:qrcode'`). Unknown entries are
|
|
2456
|
+
* warned and skipped. Omit it or pass `[]` for the full default palette. See
|
|
2457
|
+
* `paletteBlocks` on the OSS editor config for details.
|
|
2411
2458
|
*/
|
|
2412
2459
|
paletteBlocks?: string[];
|
|
2413
2460
|
/**
|
|
@@ -2559,6 +2606,26 @@ export declare interface TemplaticalEditor extends TemplaticalEditorBase {
|
|
|
2559
2606
|
declare interface TemplaticalEditorBase {
|
|
2560
2607
|
getContent(): TemplateContent;
|
|
2561
2608
|
setContent(content: TemplateContent): void;
|
|
2609
|
+
/**
|
|
2610
|
+
* Insert a block where a click on a palette item would put it: below the
|
|
2611
|
+
* selected block, in the same column when the selection is inside a section
|
|
2612
|
+
* (a section lands after that section instead), or at the end when nothing
|
|
2613
|
+
* usable is selected. The new block is selected and scrolled into view, so
|
|
2614
|
+
* repeated calls stack in order.
|
|
2615
|
+
*
|
|
2616
|
+
* The block is inserted as given: the editor defaults a palette block is
|
|
2617
|
+
* built with (`blockDefaults`, localized placeholder text, RTL alignment)
|
|
2618
|
+
* aren't applied, so insert ready-made content rather than fresh factory
|
|
2619
|
+
* blocks.
|
|
2620
|
+
*
|
|
2621
|
+
* Inserts a copy with fresh ids, so the same block can be inserted twice.
|
|
2622
|
+
* Bare merge tags are converted the same way `setContent` converts them.
|
|
2623
|
+
* Returns the inserted copy's id, or `null` once the instance is unmounted
|
|
2624
|
+
* or replaced by a later `init()` on its container, in preview mode (with a
|
|
2625
|
+
* warning), or when the block could not be placed. A slot or wrapper block
|
|
2626
|
+
* throws, as it does in `setContent`.
|
|
2627
|
+
*/
|
|
2628
|
+
insertBlock(block: Block): string | null;
|
|
2562
2629
|
setTheme(theme: UiTheme): void;
|
|
2563
2630
|
/**
|
|
2564
2631
|
* Replace the configured merge tags after `init()`.
|
|
@@ -2860,9 +2927,11 @@ export declare interface TemplaticalEditorConfig {
|
|
|
2860
2927
|
* fall back to displaying the src verbatim. Note the caching applies to
|
|
2861
2928
|
* transient failures too: a src that failed to resolve stays unresolved
|
|
2862
2929
|
* until the editor is re-initialized (a re-resolve hook may be added
|
|
2863
|
-
* later). Applies to image srcs, design-time placeholder previews,
|
|
2864
|
-
*
|
|
2865
|
-
* Vimeo) are already real URLs and
|
|
2930
|
+
* later). Applies to image srcs, design-time placeholder previews, explicit
|
|
2931
|
+
* video thumbnails, and section and wrapper background images;
|
|
2932
|
+
* auto-derived provider thumbnails (YouTube/Vimeo) are already real URLs and
|
|
2933
|
+
* are never resolved, and a background image whose URL holds a merge tag is
|
|
2934
|
+
* neither resolved nor painted.
|
|
2866
2935
|
*/
|
|
2867
2936
|
resolveImageUrl?: ResolveImageUrl;
|
|
2868
2937
|
mergeTags?: MergeTagsConfig;
|
|
@@ -2876,10 +2945,11 @@ export declare interface TemplaticalEditorConfig {
|
|
|
2876
2945
|
displayConditions?: DisplayConditionsConfig;
|
|
2877
2946
|
customBlocks?: CustomBlockDefinition[];
|
|
2878
2947
|
/**
|
|
2879
|
-
* Allowlist + order for the block palette. When
|
|
2880
|
-
* types appear in the sidebar palette, in exactly this order —
|
|
2881
|
-
* built-ins (e.g. `video`, `table`) are hidden. When omitted
|
|
2882
|
-
* default palette is shown
|
|
2948
|
+
* Allowlist + order for the block palette. When non-empty, only the listed
|
|
2949
|
+
* block types appear in the sidebar palette, in exactly this order —
|
|
2950
|
+
* unlisted built-ins (e.g. `video`, `table`) are hidden. When omitted or
|
|
2951
|
+
* empty (`[]`), the full default palette is shown: an empty allowlist means
|
|
2952
|
+
* "not configured", not "hide every block".
|
|
2883
2953
|
*
|
|
2884
2954
|
* Reference built-in blocks by their bare type (`'section'`, `'image'`, …)
|
|
2885
2955
|
* and custom blocks by their `custom:`-prefixed type (`'custom:qrcode'`),
|
|
@@ -3453,13 +3523,15 @@ export declare type ViewportSize = "desktop" | "mobile";
|
|
|
3453
3523
|
|
|
3454
3524
|
/**
|
|
3455
3525
|
* Layout-only band rendered as `mj-wrapper`. The block is the band:
|
|
3456
|
-
* `styles.backgroundColor` / `styles.padding` / `borderRadius`
|
|
3457
|
-
* wrapper. Legal in layout only
|
|
3526
|
+
* `styles.backgroundColor` / `styles.padding` / `borderRadius` /
|
|
3527
|
+
* `backgroundImage` map to the wrapper. Legal in layout only.
|
|
3458
3528
|
*/
|
|
3459
3529
|
declare interface WrapperBlock extends BaseBlock {
|
|
3460
3530
|
type: "wrapper";
|
|
3461
3531
|
children: Block[];
|
|
3462
3532
|
borderRadius?: number;
|
|
3533
|
+
/** Image behind the band; `styles.backgroundColor` is its fallback. */
|
|
3534
|
+
backgroundImage?: BackgroundImage;
|
|
3463
3535
|
}
|
|
3464
3536
|
|
|
3465
3537
|
export { }
|