@templatical/editor 0.60.0 → 0.60.2
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/{AiAltTextPopover-DiIaqDtB.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
- package/dist/{AiAltTextReview-DIe0WBbj.js → AiAltTextReview-B9-vfzCj.js} +1 -1
- package/dist/{AiChatPanel-aj2TPO9F.js → AiChatPanel-DPoq2Til.js} +8 -8
- package/dist/{AiPanels-CRM3jf82.js → AiPanels-UdfhAzzu.js} +1 -1
- package/dist/{AiRewriteMenu-F3GyXBsk.js → AiRewriteMenu-Boor11-X.js} +8 -8
- package/dist/{BlockIssueBadge-DlhA_I6J.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
- package/dist/{BlockPreviewCanvas-DYspUXMO.js → BlockPreviewCanvas-Bnkex45Y.js} +4 -4
- package/dist/{CloudPanels-CAMn545-.js → CloudPanels-CJ-UuA_Y.js} +3 -3
- package/dist/{CollaborationNotices-CnfS8BQy.js → CollaborationNotices-PqWv0q8W.js} +1 -1
- package/dist/{CollaboratorBar-DufLdLQP.js → CollaboratorBar-p-_PWqXW.js} +1 -1
- package/dist/{CommentsPanel-C2hFFs0o.js → CommentsPanel-BUo-YhSX.js} +1 -1
- package/dist/{CommentsSidebar-CgEwxt2T.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
- package/dist/{CountdownToolbar-CNqYDevp.js → CountdownToolbar-BQdhVNaK.js} +4 -4
- package/dist/{IssuesPanel-cPKhimE9.js → IssuesPanel-C7mBrK6a.js} +9 -9
- package/dist/{LanguageMenu-zxlpmw2x.js → LanguageMenu-S7L270RN.js} +10 -10
- package/dist/{LocaleNotices-PIfpvCCI.js → LocaleNotices-CAvDAawJ.js} +2 -2
- package/dist/{LogicTagInsertButton-DqTkGJSR.js → LogicTagInsertButton-Clc3JTg_.js} +6 -6
- package/dist/{MediaEditModal-C2Bn8WGb.js → MediaEditModal-YXOL0d_y.js} +1 -1
- package/dist/{MediaPanels-BAZByHRA.js → MediaPanels-VCv5epgs.js} +1 -1
- package/dist/{MergeTagInput-Jly1Pw0v.js → MergeTagInput-B5a9noTB.js} +1 -1
- package/dist/{MergeTagModeToggle-5kaFLRAm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
- package/dist/{MergeTagTextarea-CCfirhcR.js → MergeTagTextarea-CA9dPfMH.js} +3 -3
- package/dist/{ParagraphEditor-DTdnxgDZ.js → ParagraphEditor-CGUGIhJo.js} +13 -13
- package/dist/{RestoreVersionDialog-cUYu3Xqs.js → RestoreVersionDialog-P6pwVWGs.js} +3 -3
- package/dist/{RichTextEditorContent-Aub9tOHF.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
- package/dist/{SaveBlockDialog-D_ie3uIF.js → SaveBlockDialog-SSD-GEXA.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-fhSnYT1l.js → SavedBlocksBrowserModal-Cs6zBFlE.js} +9 -9
- package/dist/{SavedBlocksPanels-Lklqy4XI.js → SavedBlocksPanels-JJAFQOQO.js} +1 -1
- package/dist/{SavedBlocksPickBar-CpWkCa8G.js → SavedBlocksPickBar-DMOHjX7S.js} +2 -2
- package/dist/{TemplateSettings-BJ4a8RBr.js → TemplateSettings-DsaSsCC8.js} +8 -8
- package/dist/{TestEmailModal-BEoapoDc.js → TestEmailModal-Cbt5u2GF.js} +8 -8
- package/dist/{TestEmailPanel-DgyzokCf.js → TestEmailPanel-BQNerB-E.js} +1 -1
- package/dist/{TitleEditor-BQoSPgOi.js → TitleEditor-BuctoHHf.js} +6 -6
- package/dist/{Toolbar-KhPpWyX1.js → Toolbar-Br0W6NE0.js} +556 -442
- package/dist/{TplModal-F_kA7luG.js → TplModal-DJMLN1_R.js} +1 -1
- package/dist/{VersionHistoryMenu-Bz4G8cNm.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
- package/dist/{VersionHistoryPanels-DmVRyWv9.js → VersionHistoryPanels-DvrD5VaM.js} +1 -1
- package/dist/{VersionPreviewBanner-BeppXZyn.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
- package/dist/{WrapperBlock-Ds7yfbhg.js → WrapperBlock-Cp0Mo8HA.js} +3 -3
- package/dist/{blockTypeIcons-Do1QqDjg.js → blockTypeIcons-BePGuX0b.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ce3NmK9v.js → ca-C8N05sCU.js} +4 -3
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js.map → AiAltTextPopover-BLNN_Pnd.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js → AiAltTextReview-Db8vSNpe.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js.map → AiAltTextReview-Db8vSNpe.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js → AiChatPanel-cIT2haLo.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js.map → AiChatPanel-cIT2haLo.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js → AiPanels-B4GG8w3J.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js.map → AiPanels-B4GG8w3J.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js → AiRewriteMenu-DIcUZQdv.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js.map → AiRewriteMenu-DIcUZQdv.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js.map → BlockIssueBadge-C50pmOMZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js → BlockPreviewCanvas-CyY5_via.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js.map → BlockPreviewCanvas-CyY5_via.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js → CloudPanels-Cmf0SHez.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js.map → CloudPanels-Cmf0SHez.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js → CollaborationNotices-CTmjjbHv.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js.map → CollaborationNotices-CTmjjbHv.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js → CollaboratorBar-CzHjawjF.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js.map → CollaboratorBar-CzHjawjF.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js → CommentsPanel-Dh0_eRBe.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js.map → CommentsPanel-Dh0_eRBe.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js.map → CommentsSidebar-JxZ-O2mY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js → CountdownToolbar-D16RWxkh.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js.map → CountdownToolbar-D16RWxkh.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js → IssuesPanel-BtAn12hl.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js.map → IssuesPanel-BtAn12hl.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js → LanguageMenu-BBv0oBs-.js} +5 -5
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js.map → LanguageMenu-BBv0oBs-.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js → LocaleNotices-CzrNKR-N.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js.map → LocaleNotices-CzrNKR-N.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js.map → LogicTagInsertButton-B4wuPoMa.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js → MediaEditModal-DJ2wxInt.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js.map → MediaEditModal-DJ2wxInt.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js → MediaPanels-BJawNjr9.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js.map → MediaPanels-BJawNjr9.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js → MergeTagInput-DZD-p4nR.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js.map → MergeTagInput-DZD-p4nR.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js.map → MergeTagModeToggle-DGuJCgqO.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js → MergeTagTextarea-BRiaRBr_.js} +4 -4
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js.map → MergeTagTextarea-BRiaRBr_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js → ParagraphEditor-Dc0fJ53q.js} +10 -10
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js.map → ParagraphEditor-Dc0fJ53q.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js → RestoreVersionDialog-CNTMRqG2.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js.map → RestoreVersionDialog-CNTMRqG2.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js.map → RichTextEditorContent-CtV0Q0SO.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js → SaveBlockDialog-CQpCQtGe.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js.map → SaveBlockDialog-CQpCQtGe.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js → SavedBlocksBrowserModal-C-npOfe-.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js.map → SavedBlocksBrowserModal-C-npOfe-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js → SavedBlocksPanels-Bab-1ZgZ.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js.map → SavedBlocksPanels-Bab-1ZgZ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js → SavedBlocksPickBar-DDcxSRxT.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js.map → SavedBlocksPickBar-DDcxSRxT.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js → TemplateSettings--_ZfbhnU.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js.map → TemplateSettings--_ZfbhnU.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js → TestEmailModal-B-07GUK1.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js.map → TestEmailModal-B-07GUK1.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js → TestEmailPanel-Rk6ZxlY6.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js.map → TestEmailPanel-Rk6ZxlY6.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js → TitleEditor-I7wLUm-M.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js.map → TitleEditor-I7wLUm-M.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DbqkKRXy.js → Toolbar-czJfutfE.js} +536 -422
- package/dist/cdn/chunks/Toolbar-czJfutfE.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js → TplModal-CUF6ldtn.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js.map → TplModal-CUF6ldtn.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js.map → VersionHistoryMenu-CVGlUPwS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js → VersionHistoryPanels-CPGokA56.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js.map → VersionHistoryPanels-CPGokA56.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js.map → VersionPreviewBanner-5RFz4AQx.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js → WrapperBlock-BOLiH6jD.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js.map → WrapperBlock-BOLiH6jD.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js → blockTypeIcons-BOonB9gK.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
- package/dist/{ca-Ce3NmK9v.js → cdn/chunks/ca-C8N05sCU.js} +6 -1
- package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
- package/dist/cdn/chunks/{composables-Brr4m0Sg.js → composables-A-9pkE2t.js} +111 -66
- package/dist/cdn/chunks/composables-A-9pkE2t.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js → createCloudRuntime-CUlw09ix.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
- package/dist/{da-4YwDAuEr.js → cdn/chunks/da-Dno_4nGy.js} +6 -1
- package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
- package/dist/{de-BlQ0vdZJ.js → cdn/chunks/de-DRR5JSkh.js} +6 -1
- package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js → editor-modal-BVM_0uoL.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js.map → editor-modal-BVM_0uoL.js.map} +1 -1
- package/dist/cdn/chunks/{en-MlNeQVSG.js → en-DAcLbbpg.js} +5 -2
- package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
- package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
- package/dist/cdn/chunks/{es-2s8x4OM2.js → es-BcEQLQxe.js} +5 -2
- package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js → extensions-BPZirXpF.js} +4 -4
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js.map → extensions-BPZirXpF.js.map} +1 -1
- package/dist/{fr-D3MjrsgQ.js → cdn/chunks/fr-CNQG7ESr.js} +6 -1
- package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js → icons-CWEBTtbR.js} +6 -6
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js.map → icons-CWEBTtbR.js.map} +1 -1
- package/dist/{ja-B4Kx7uBX.js → cdn/chunks/ja-CMxWxqSH.js} +6 -1
- package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
- package/dist/{nl-U65iX7wN.js → cdn/chunks/nl-BjyYZDkC.js} +6 -1
- package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js → normalizeMergeTagMarkup-CExCfSYI.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +5 -2
- package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js → sanitizeHtml-Db0S2JVP.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js → socialIcons-DMelHF3p.js} +31 -31
- package/dist/cdn/chunks/socialIcons-DMelHF3p.js.map +1 -0
- package/dist/cdn/chunks/{src-BHgVGOTi.js → src-A0kzK-pR.js} +5 -1
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
- package/dist/cdn/chunks/{src-C5V_yzAU.js → src-CCQf19hy.js} +207 -196
- package/dist/cdn/chunks/src-CCQf19hy.js.map +1 -0
- package/dist/cdn/chunks/{src-B3v_3j9b.js → src-edESkGqO.js} +366 -293
- package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js → useLocalizedDisplay-Brdkp3KH.js} +2 -2
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js → useLogicTag-CKtQlJDa.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js → useMergeTag-Dwy3U0PI.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js → withCurrentFont-C4pIesdB.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
- package/dist/cdn/editor.js +21 -21
- package/dist/{check-CWq6Nfjj.js → check-C82yyyf1.js} +1 -1
- package/dist/{chevron-down-B9t0SK_-.js → chevron-down-BaBVjNbM.js} +1 -1
- package/dist/{chevron-right-B_qslOCS.js → chevron-right-DkS-bw8X.js} +1 -1
- package/dist/{chevron-up-CxZ2teV2.js → chevron-up-C1KzUIK4.js} +1 -1
- package/dist/{circle-exclamation-point-B1tbhkNb.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
- package/dist/{clock-Rw4btQn-.js → clock-dpIs7vo0.js} +1 -1
- package/dist/{composables-5KJV0O9T.js → composables-CT0_xtqC.js} +1308 -1263
- package/dist/{createCloudRuntime-BdoKeYJi.js → createCloudRuntime-CiEo0wkr.js} +2 -2
- package/dist/{createLucideIcon-B6Zkn9r0.js → createLucideIcon-BSam2AUu.js} +5 -5
- package/dist/{cdn/chunks/da-4YwDAuEr.js → da-Dno_4nGy.js} +4 -3
- package/dist/{cdn/chunks/de-BlQ0vdZJ.js → de-DRR5JSkh.js} +4 -3
- package/dist/{dist-DsA7NeIy.js → dist-DX_IQgcU.js} +4 -0
- package/dist/{editor-modal-_ylhrf4g.js → editor-modal-odubnc9x.js} +15 -15
- package/dist/en-CAImT1hl.js +1 -0
- package/dist/{en-MlNeQVSG.js → en-DAcLbbpg.js} +4 -1
- package/dist/{es-2s8x4OM2.js → es-BcEQLQxe.js} +4 -1
- package/dist/{extensions-DCJGAZ9z.js → extensions-C7OLgMEj.js} +3 -3
- package/dist/{eye-BE-DeEqG.js → eye-CxCHEszj.js} +1 -1
- package/dist/{cdn/chunks/fr-D3MjrsgQ.js → fr-CNQG7ESr.js} +4 -3
- package/dist/{image-DfRxUmUh.js → image-DvXPzqNd.js} +1 -1
- package/dist/index.d.ts +35 -6
- package/dist/{info-D1PS-81D.js → info-2KHWaZ2L.js} +1 -1
- package/dist/{cdn/chunks/ja-B4Kx7uBX.js → ja-CMxWxqSH.js} +4 -3
- package/dist/{link-DLaACaIz.js → link-_OmrcJMv.js} +1 -1
- package/dist/{list-CvtzVlvM.js → list-Dekd7JE8.js} +1 -1
- package/dist/{loader-circle-DCkSXApP.js → loader-circle-D_hT5mFS.js} +1 -1
- package/dist/{message-circle-Bj4F9bBO.js → message-circle-DDbiG-jz.js} +1 -1
- package/dist/{cdn/chunks/nl-U65iX7wN.js → nl-BjyYZDkC.js} +4 -3
- package/dist/{normalizeMergeTagMarkup-B7n_-4Dz.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +1 -1
- package/dist/{package-By1au8Wi.js → package-cORUe57D.js} +1 -1
- package/dist/{pencil-T4qqyRLl.js → pencil-D67H4fxq.js} +1 -1
- package/dist/{plus-3Zry-1gs.js → plus-BpTZAx28.js} +1 -1
- package/dist/{preRenderCustomBlocks-D3GzENVB.js → preRenderCustomBlocks-6CLw2rP6.js} +1 -1
- package/dist/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +4 -1
- package/dist/{refresh-cw-BwaO0ioc.js → refresh-cw-B4T0IFwI.js} +1 -1
- package/dist/{rotate-ccw-C3E0W5q-.js → rotate-ccw-BDQgjpuo.js} +1 -1
- package/dist/{sanitizeHtml-BcbjlypU.js → sanitizeHtml-Ru5_-IbM.js} +2 -2
- package/dist/{search-DfExisVv.js → search-Dp9pkaVt.js} +1 -1
- package/dist/{send-FRC7Giap.js → send-DO9GhgCH.js} +1 -1
- package/dist/{smartphone-BlYU_z_x.js → smartphone-CPW3I3hV.js} +1 -1
- package/dist/{socialIcons-By2LPWOQ.js → socialIcons-DXOO2y7u.js} +32 -32
- package/dist/{sparkles-DSi61skE.js → sparkles-CIBjNfij.js} +1 -1
- package/dist/{square-DEE8tT2w.js → square-3W65qrrH.js} +1 -1
- package/dist/templatical-editor.js +35 -35
- package/dist/{text-align-start-DGdrmKcG.js → text-align-start-Bs70tpRU.js} +1 -1
- package/dist/{trash-YZPJMZc7.js → trash-CTzhAm1o.js} +1 -1
- package/dist/{triangle-exclamation-point-BR-W6pQm.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
- package/dist/{upload-B_Eoqj-4.js → upload-DFxkP9MI.js} +1 -1
- package/dist/{useLocalizedDisplay-_P6-hXaO.js → useLocalizedDisplay-DfiE-KjV.js} +1 -1
- package/dist/{useLogicTag-f0SJ1Cd2.js → useLogicTag-K5CPoMTk.js} +1 -1
- package/dist/{useMergeTag-0-EudwkV.js → useMergeTag-tsU_Sw2x.js} +1 -1
- package/dist/{useScrollToBlock-CtM_ydOS.js → useScrollToBlock-194ePl4q.js} +1 -1
- package/dist/{withCurrentFont-BOg3jmCT.js → withCurrentFont-C-_IYTqP.js} +1 -1
- package/dist/{x-C0X5MoK3.js → x-D7L8mLHJ.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +0 -1
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +0 -1
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +0 -1
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +0 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +0 -1
- package/dist/cdn/chunks/en-DkulseE1.js +0 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +0 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +0 -1
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +0 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +0 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +0 -1
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +0 -1
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +0 -1
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +0 -1
- package/dist/en-DwxgN_-Y.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { An as e, At as t, Ct as n, Dn as r, Dt as i, En as a, It as o, Jt as s, Kt as c, L as l, Mn as u, Mt as d, On as f, Ot as p, Sn as m, St as h, Tt as g, Vt as _, Yt as v, _t as y, a as b, bt as x, ft as S, h as C, hn as
|
|
1
|
+
import { An as e, At as t, Ct as n, Dn as r, Dt as i, En as a, It as o, Jt as s, Kt as c, L as l, Mn as u, Mt as d, On as f, Ot as p, Sn as m, St as h, Tt as g, Vt as _, Yt as v, _t as y, a as b, bt as x, ft as S, h as C, hn as ee, i as te, in as ne, jn as re, jt as ie, kn as ae, kt as oe, m as se, o as ce, p as le, qt as ue, st as w, ut as de, wt as fe, xn as pe, xt as me, yt as he } from "./src-A0kzK-pR.js";
|
|
2
2
|
// ../renderer/src/render-context.ts
|
|
3
|
-
var
|
|
3
|
+
var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
4
4
|
name: "@templatical/renderer",
|
|
5
5
|
description: "Render Templatical email templates to MJML",
|
|
6
|
-
version: "0.60.
|
|
6
|
+
version: "0.60.2",
|
|
7
7
|
bugs: "https://github.com/templatical/sdk/issues",
|
|
8
8
|
dependencies: { "@templatical/types": "workspace:*" },
|
|
9
9
|
devDependencies: {
|
|
@@ -44,7 +44,7 @@ var O = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
44
44
|
},
|
|
45
45
|
type: "module",
|
|
46
46
|
types: "./dist/index.d.ts"
|
|
47
|
-
}.version}/assets/social`,
|
|
47
|
+
}.version}/assets/social`, ge = class e {
|
|
48
48
|
containerWidth;
|
|
49
49
|
customFonts;
|
|
50
50
|
defaultFallbackFont;
|
|
@@ -54,71 +54,71 @@ var O = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
54
54
|
blockRenderers;
|
|
55
55
|
contentDirection;
|
|
56
56
|
contentWidth;
|
|
57
|
-
constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a =
|
|
57
|
+
constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = T, o = {}, s = "ltr", c) {
|
|
58
58
|
this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s, this.contentWidth = c ?? e;
|
|
59
59
|
}
|
|
60
60
|
withContainerWidth(t, n = t) {
|
|
61
61
|
return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
|
|
62
62
|
}
|
|
63
63
|
resolveFontFamily(e) {
|
|
64
|
-
return
|
|
64
|
+
return te(e, {
|
|
65
65
|
customFonts: this.customFonts,
|
|
66
66
|
defaultFallback: this.defaultFallbackFont
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, E = {
|
|
70
70
|
"&": "&",
|
|
71
71
|
"<": "<",
|
|
72
72
|
">": ">",
|
|
73
73
|
"\"": """,
|
|
74
74
|
"'": "'"
|
|
75
|
-
},
|
|
76
|
-
function
|
|
77
|
-
return e === "" ? "" : e.replace(
|
|
75
|
+
}, _e = /[&<>"']/g;
|
|
76
|
+
function D(e) {
|
|
77
|
+
return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return e === "" ? "" : e.replace(
|
|
79
|
+
function O(e) {
|
|
80
|
+
return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return e === "" ? "" :
|
|
82
|
+
function k(e) {
|
|
83
|
+
return e === "" ? "" : O(e.replace(/[;{}\r\n]/g, ""));
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return e.replace(
|
|
85
|
+
var ve = /[&<>"]/g;
|
|
86
|
+
function A(e) {
|
|
87
|
+
return e.replace(ve, (e) => E[e] ?? e);
|
|
88
88
|
}
|
|
89
89
|
// ../renderer/src/visibility.ts
|
|
90
|
-
function
|
|
90
|
+
function j(e) {
|
|
91
91
|
let t = e.visibility;
|
|
92
92
|
return t ? !t.desktop && !t.mobile : !1;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let n = [
|
|
96
|
-
return n === "" ? "" : ` css-class="${
|
|
94
|
+
function M(e, t = []) {
|
|
95
|
+
let n = [N(e), ...t].filter((e) => e !== "").join(" ");
|
|
96
|
+
return n === "" ? "" : ` css-class="${O(n)}"`;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function N(e) {
|
|
99
99
|
let t = e.visibility;
|
|
100
100
|
if (!t) return "";
|
|
101
101
|
let n = [];
|
|
102
102
|
return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
|
|
103
103
|
}
|
|
104
104
|
// ../renderer/src/unrenderable.ts
|
|
105
|
-
var
|
|
106
|
-
function
|
|
105
|
+
var P = "templatical:unrenderable-block";
|
|
106
|
+
function F(e) {
|
|
107
107
|
return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function I(e) {
|
|
110
110
|
return JSON.stringify(String(e)).slice(1, -1);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return console.warn(`[Templatical] No renderer for block type "${
|
|
112
|
+
function L(e) {
|
|
113
|
+
return console.warn(`[Templatical] No renderer for block type "${I(e.type)}" (id: ${I(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${P} type="${F(e.type)}" id="${F(e.id)}" --></mj-raw>`;
|
|
114
114
|
}
|
|
115
115
|
// ../renderer/src/padding.ts
|
|
116
116
|
function R(e) {
|
|
117
|
-
return
|
|
117
|
+
return O(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
|
|
118
118
|
}
|
|
119
119
|
// ../renderer/src/utils.ts
|
|
120
120
|
function z(e, t) {
|
|
121
|
-
return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${
|
|
121
|
+
return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${k(e)}"` : "";
|
|
122
122
|
}
|
|
123
123
|
function ye(e) {
|
|
124
124
|
return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
|
|
@@ -134,24 +134,24 @@ function V(e, t) {
|
|
|
134
134
|
return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
|
|
135
135
|
}
|
|
136
136
|
function H(e) {
|
|
137
|
-
return Object.entries(
|
|
137
|
+
return Object.entries(re(e)).map(([e, t]) => ` ${e}="${k(t)}"`).join("");
|
|
138
138
|
}
|
|
139
139
|
function U(e) {
|
|
140
140
|
let t = u(e);
|
|
141
|
-
return t === null ? "" : ` border-radius="${
|
|
141
|
+
return t === null ? "" : ` border-radius="${k(t)}"`;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function be(e) {
|
|
144
144
|
let t = c(e);
|
|
145
|
-
return t === null ? "" : ` background-url="${
|
|
145
|
+
return t === null ? "" : ` background-url="${O(t.url)}" background-size="${k(t.size)}" background-position="${k(t.position)}" background-repeat="${k(t.repeat)}"`;
|
|
146
146
|
}
|
|
147
147
|
// ../renderer/src/rich-text.ts
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
return `${
|
|
148
|
+
var W = "tpl-rich-text";
|
|
149
|
+
function G(e) {
|
|
150
|
+
return `${W}-${e}`;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
let n = r, i = `.${
|
|
154
|
-
let t = `.${
|
|
152
|
+
function xe(e, t = "ltr") {
|
|
153
|
+
let n = r, i = `.${W}`, a = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
|
|
154
|
+
let t = `.${G(e)}`;
|
|
155
155
|
return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
|
|
156
156
|
}), o = t === "rtl" ? "padding-right" : "padding-left";
|
|
157
157
|
return [
|
|
@@ -160,25 +160,25 @@ function be(e, t = "ltr") {
|
|
|
160
160
|
`${i} li { margin: ${n.listItemMarginY}px 0; }`
|
|
161
161
|
].join("\n ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function K(e) {
|
|
164
164
|
return e ?? r.paragraphGap;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Se(e) {
|
|
167
167
|
let t = [r.paragraphGap], n = (e) => {
|
|
168
|
-
if (e.type === "paragraph" && t.push(
|
|
168
|
+
if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), g(e)) for (let t of e.children) for (let e of t) n(e);
|
|
169
169
|
else if (d(e)) for (let t of e.children) n(t);
|
|
170
170
|
};
|
|
171
171
|
for (let t of e) n(t);
|
|
172
172
|
return t;
|
|
173
173
|
}
|
|
174
|
-
var
|
|
174
|
+
var Ce = {
|
|
175
175
|
apos: "'",
|
|
176
176
|
quot: "\"",
|
|
177
177
|
nbsp: "\xA0"
|
|
178
|
-
},
|
|
179
|
-
function
|
|
178
|
+
}, we = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, Te = /[a-z]/i, q = /[ \t\n\f\r]/;
|
|
179
|
+
function Ee(e, t, n, r, i) {
|
|
180
180
|
let a;
|
|
181
|
-
if (i !== void 0) a =
|
|
181
|
+
if (i !== void 0) a = Ce[i.toLowerCase()];
|
|
182
182
|
else {
|
|
183
183
|
let t = Number(n ?? `0x${r}`);
|
|
184
184
|
if (!(t > 0 && t <= 1114111 && !(t >= 55296 && t <= 57343))) return e;
|
|
@@ -186,11 +186,11 @@ function Te(e, t, n, r, i) {
|
|
|
186
186
|
}
|
|
187
187
|
return a === "&" ? "&" : a === "<" || a === ">" ? e : a === t ? t === "\"" ? "'" : "\"" : a;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function De(e) {
|
|
190
190
|
let t = 1;
|
|
191
|
-
for (; t < e.length && !
|
|
191
|
+
for (; t < e.length && !q.test(e[t]) && e[t] !== "/";) t++;
|
|
192
192
|
for (; t < e.length;) {
|
|
193
|
-
for (; t < e.length && (
|
|
193
|
+
for (; t < e.length && (q.test(e[t]) || e[t] === "/");) t++;
|
|
194
194
|
let n = t;
|
|
195
195
|
for (; t < e.length && !/[\s=/]/.test(e[t]);) t++;
|
|
196
196
|
let r = e.slice(n, t).toLowerCase();
|
|
@@ -198,41 +198,41 @@ function Ee(e) {
|
|
|
198
198
|
t++;
|
|
199
199
|
continue;
|
|
200
200
|
}
|
|
201
|
-
for (; t < e.length &&
|
|
201
|
+
for (; t < e.length && q.test(e[t]);) t++;
|
|
202
202
|
if (e[t] !== "=") continue;
|
|
203
|
-
for (t++; t < e.length &&
|
|
203
|
+
for (t++; t < e.length && q.test(e[t]);) t++;
|
|
204
204
|
let i = e[t];
|
|
205
205
|
if (i === "\"" || i === "'") {
|
|
206
206
|
let n = e.indexOf(i, t + 1);
|
|
207
207
|
if (n === -1) return e;
|
|
208
208
|
if (r === "style") {
|
|
209
|
-
let r = e.slice(t + 1, n).replace(
|
|
209
|
+
let r = e.slice(t + 1, n).replace(we, (e, t, n, r) => Ee(e, i, t, n, r));
|
|
210
210
|
return `${e.slice(0, t + 1)}${r}${e.slice(n)}`;
|
|
211
211
|
}
|
|
212
212
|
t = n + 1;
|
|
213
|
-
} else for (; t < e.length && !
|
|
213
|
+
} else for (; t < e.length && !q.test(e[t]);) t++;
|
|
214
214
|
}
|
|
215
215
|
return e;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Oe(e) {
|
|
218
218
|
if (!e.includes("&")) return e;
|
|
219
219
|
let t = "", n = 0, r = e.indexOf("<");
|
|
220
220
|
for (; r !== -1;) {
|
|
221
|
-
if (!
|
|
221
|
+
if (!Te.test(e.charAt(r + 1))) {
|
|
222
222
|
r = e.indexOf("<", r + 1);
|
|
223
223
|
continue;
|
|
224
224
|
}
|
|
225
|
-
let i =
|
|
225
|
+
let i = de(e, r + 1);
|
|
226
226
|
if (i === -1) break;
|
|
227
|
-
let a = e.slice(r, i), o =
|
|
227
|
+
let a = e.slice(r, i), o = De(a);
|
|
228
228
|
o !== a && (t += e.slice(n, r) + o, n = i), r = e.indexOf("<", i);
|
|
229
229
|
}
|
|
230
230
|
return t + e.slice(n);
|
|
231
231
|
}
|
|
232
232
|
// ../renderer/src/renderers/title.ts
|
|
233
|
-
function
|
|
234
|
-
if (
|
|
235
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i =
|
|
233
|
+
function ke(e, t) {
|
|
234
|
+
if (j(e)) return "";
|
|
235
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Ae(Oe(b(w(e.content)))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = je(e.fontFamily, t), u = M(e, [W, G(K(void 0))]), d = `h${a[e.level] ? e.level : 2}`;
|
|
236
236
|
return `<mj-text
|
|
237
237
|
font-size="${o}px"${s}
|
|
238
238
|
align="${c}"
|
|
@@ -240,52 +240,52 @@ function Oe(e, t) {
|
|
|
240
240
|
padding="${n}"${r}${l}${u}
|
|
241
241
|
><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${d}></mj-text>`;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ae(e) {
|
|
244
244
|
let t = /^\s*<p\b/.exec(e);
|
|
245
245
|
if (!t) return e;
|
|
246
|
-
let n =
|
|
246
|
+
let n = de(e, t[0].length);
|
|
247
247
|
if (n === -1) return e;
|
|
248
248
|
let r = /<\/p>\s*$/.exec(e);
|
|
249
249
|
if (!r || r.index <= n) return e;
|
|
250
250
|
let i = e.slice(n + 1, r.index);
|
|
251
251
|
return /<\/p>\s*<p\b/i.test(i) ? e : i;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return e ? ` font-family="${
|
|
253
|
+
function je(e, t) {
|
|
254
|
+
return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
|
|
255
255
|
}
|
|
256
256
|
// ../renderer/src/renderers/paragraph.ts
|
|
257
|
-
function
|
|
258
|
-
if (
|
|
259
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i =
|
|
257
|
+
function Me(e, t) {
|
|
258
|
+
if (j(e) || ce(e.content)) return "";
|
|
259
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Oe(b(w(e.content))), a = M(e, [W, G(K(e.paragraphSpacing))]);
|
|
260
260
|
return `<mj-text
|
|
261
261
|
line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
|
|
262
262
|
padding="${n}"${r}${a}
|
|
263
263
|
>${i}</mj-text>`;
|
|
264
264
|
}
|
|
265
265
|
// ../renderer/src/renderers/image.ts
|
|
266
|
-
function
|
|
267
|
-
if (
|
|
268
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i =
|
|
269
|
-
e.linkUrl && (u = ` href="${
|
|
270
|
-
let d =
|
|
266
|
+
function Ne(e, t) {
|
|
267
|
+
if (j(e) || e.src === "") return "";
|
|
268
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = ye(e.height), o = V(e, t), s = M(e), c = U(e.borderRadius), l = H(e.border), u = "";
|
|
269
|
+
e.linkUrl && (u = ` href="${O(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
|
|
270
|
+
let d = O(e.src), f = e.decorative === !0;
|
|
271
271
|
return `<mj-image
|
|
272
272
|
src="${d}"
|
|
273
|
-
alt="${f ? "" :
|
|
273
|
+
alt="${f ? "" : O(e.alt)}"
|
|
274
274
|
width="${i}"${a}${o}
|
|
275
|
-
align="${
|
|
275
|
+
align="${O(e.align)}"
|
|
276
276
|
padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
|
|
277
277
|
/>`;
|
|
278
278
|
}
|
|
279
279
|
// ../renderer/src/renderers/button.ts
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
if (
|
|
283
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" :
|
|
280
|
+
var J = "tpl-button-full";
|
|
281
|
+
function Pe(e, t) {
|
|
282
|
+
if (j(e)) return "";
|
|
283
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : O(e.url), o = a === "" ? "" : ` href="${a}"`, s = Fe(e.backgroundColor), c = O(e.textColor), l = e.fontSize, u = Ie(e.fontWeight), d = O(Re(e.borderRadius)), f = D(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", h = Le(e.fontFamily, t), g = ze(e.width), _ = M(e, e.width === "full" || typeof e.width == "string" && pe(e.width) !== null ? [J] : []), v = H(e.border), y = O(e.align ?? "center");
|
|
284
284
|
return `<mj-button${o}${p}
|
|
285
285
|
background-color="${s}"
|
|
286
286
|
color="${c}"
|
|
287
|
-
font-size="${
|
|
288
|
-
line-height="${m(
|
|
287
|
+
font-size="${O(String(l))}px"
|
|
288
|
+
line-height="${m(ae(e) * 100)}%"
|
|
289
289
|
font-weight="${u}"
|
|
290
290
|
border-radius="${d}"${v}
|
|
291
291
|
inner-padding="${i}"
|
|
@@ -293,55 +293,64 @@ function Ne(e, t) {
|
|
|
293
293
|
padding="${n}"${r}${h}${g}${_}
|
|
294
294
|
>${f}</mj-button>`;
|
|
295
295
|
}
|
|
296
|
-
function Pe(e) {
|
|
297
|
-
return e.trim() === "" ? "transparent" : M(e);
|
|
298
|
-
}
|
|
299
296
|
function Fe(e) {
|
|
297
|
+
return e.trim() === "" ? "transparent" : O(e);
|
|
298
|
+
}
|
|
299
|
+
function Ie(e) {
|
|
300
300
|
return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return e ? ` font-family="${
|
|
302
|
+
function Le(e, t) {
|
|
303
|
+
return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Re(e) {
|
|
306
306
|
return typeof e == "number" ? `${e}px` : u(e) ?? "0px";
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${
|
|
308
|
+
function ze(e) {
|
|
309
|
+
return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${O(e === "full" ? "100%" : `${e}px`)}"` : pe(e) === null ? "" : ` width="${O(e)}"`;
|
|
310
310
|
}
|
|
311
311
|
// ../renderer/src/renderers/divider.ts
|
|
312
|
-
function
|
|
313
|
-
if (
|
|
314
|
-
let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${
|
|
312
|
+
function Be(e, t) {
|
|
313
|
+
if (j(e)) return "";
|
|
314
|
+
let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = O(e.lineStyle), s = O(e.color), c = M(e);
|
|
315
315
|
return `<mj-divider
|
|
316
|
-
border-width="${
|
|
316
|
+
border-width="${O(String(a))}px"
|
|
317
317
|
border-style="${o}"
|
|
318
318
|
border-color="${s}"
|
|
319
|
-
width="${
|
|
319
|
+
width="${O(i)}"
|
|
320
320
|
padding="${n}"${r}${c}
|
|
321
321
|
/>`;
|
|
322
322
|
}
|
|
323
323
|
// ../renderer/src/renderers/spacer.ts
|
|
324
|
-
function
|
|
325
|
-
if (
|
|
326
|
-
let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${
|
|
327
|
-
return `<mj-spacer height="${
|
|
324
|
+
function Ve(e, t) {
|
|
325
|
+
if (j(e)) return "";
|
|
326
|
+
let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = M(e);
|
|
327
|
+
return `<mj-spacer height="${O(String(n))}px" padding="0"${r}${i} />`;
|
|
328
328
|
}
|
|
329
329
|
// ../renderer/src/renderers/html.ts
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
330
|
+
function He(e, t) {
|
|
331
|
+
if (j(e) || !t.allowHtmlBlocks) return "";
|
|
332
332
|
let n = e.content;
|
|
333
333
|
if (n === "") return "";
|
|
334
|
-
let r =
|
|
334
|
+
let r = M(e);
|
|
335
335
|
return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
|
|
336
336
|
${n}
|
|
337
337
|
</mj-text>`;
|
|
338
338
|
}
|
|
339
339
|
// ../renderer/src/renderers/social.ts
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
let
|
|
340
|
+
var Ue = "tpl-social-custom";
|
|
341
|
+
function We(e) {
|
|
342
|
+
let t = e.imageUrl;
|
|
343
|
+
return typeof t == "string" && t.trim() !== "";
|
|
344
|
+
}
|
|
345
|
+
function Ge(e) {
|
|
346
|
+
let t = e.alt;
|
|
347
|
+
return typeof t == "string" ? t : "";
|
|
348
|
+
}
|
|
349
|
+
function Ke(e, t) {
|
|
350
|
+
if (j(e)) return "";
|
|
351
|
+
let n = e.icons.filter((e) => e.platform !== "custom" || We(e));
|
|
343
352
|
if (n.length === 0) return "";
|
|
344
|
-
let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${
|
|
353
|
+
let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", a = M(e), s = O(e.align), c = e.iconSize, l = e.iconStyle, u = O(o(l, e.iconTone)), d = e.spacing, f;
|
|
345
354
|
switch (c) {
|
|
346
355
|
case "small":
|
|
347
356
|
f = 24;
|
|
@@ -372,85 +381,87 @@ function He(e, t) {
|
|
|
372
381
|
padding="${r}"${i}${a}
|
|
373
382
|
>
|
|
374
383
|
${n.map((e, n) => {
|
|
375
|
-
let r =
|
|
376
|
-
return `<mj-social-element src="${
|
|
384
|
+
let r = O(e.url), i = n === m - 1 ? 0 : d, a = `0 ${O(String(i))}px 0 0`;
|
|
385
|
+
if (e.platform === "custom") return `<mj-social-element src="${O(e.imageUrl)}" alt="${O(Ge(e))}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="0" background-color="transparent" css-class="${Ue}"></mj-social-element>`;
|
|
386
|
+
let o = O(e.platform);
|
|
387
|
+
return `<mj-social-element src="${`${t.socialIconsBaseUrl}/${u}/${o}.png`}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="${p}" background-color="transparent"></mj-social-element>`;
|
|
377
388
|
}).join("\n")}
|
|
378
389
|
</mj-social>`;
|
|
379
390
|
}
|
|
380
391
|
// ../renderer/src/renderers/menu.ts
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i =
|
|
392
|
+
function qe(e, t) {
|
|
393
|
+
if (j(e) || e.items.length === 0) return "";
|
|
394
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = Xe(e.fontFamily, t), o = O(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${O(e.color)}"` : "", l = Je(e);
|
|
384
395
|
return `<mj-text
|
|
385
|
-
font-size="${
|
|
396
|
+
font-size="${O(String(s))}px"${c}
|
|
386
397
|
align="${o}"
|
|
387
398
|
line-height="1.5"
|
|
388
399
|
padding="${n}"${r}${a}${i}
|
|
389
400
|
>${l}</mj-text>`;
|
|
390
401
|
}
|
|
391
|
-
function
|
|
392
|
-
let t = e.items, n =
|
|
393
|
-
for (let e = 0; e < s; e++) o.push(
|
|
402
|
+
function Je(e) {
|
|
403
|
+
let t = e.items, n = D(e.separator), r = k(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
|
|
404
|
+
for (let e = 0; e < s; e++) o.push(Ye(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${k(String(i))}px;">${n}</span>`);
|
|
394
405
|
return o.join("");
|
|
395
406
|
}
|
|
396
|
-
function
|
|
397
|
-
let n =
|
|
398
|
-
return i && o.unshift(`color: ${
|
|
407
|
+
function Ye(e, t) {
|
|
408
|
+
let n = D(e.text), r = O(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
|
|
409
|
+
return i && o.unshift(`color: ${k(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
|
|
399
410
|
}
|
|
400
|
-
function
|
|
401
|
-
return e ? ` font-family="${
|
|
411
|
+
function Xe(e, t) {
|
|
412
|
+
return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
|
|
402
413
|
}
|
|
403
414
|
// ../renderer/src/renderers/table.ts
|
|
404
|
-
function
|
|
405
|
-
if (
|
|
406
|
-
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i =
|
|
415
|
+
function Ze(e, t) {
|
|
416
|
+
if (j(e) || e.rows.length === 0) return "";
|
|
417
|
+
let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = tt(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = Qe(e);
|
|
407
418
|
return `<mj-text
|
|
408
|
-
font-size="${
|
|
419
|
+
font-size="${O(String(o))}px"${s}
|
|
409
420
|
align="${c}"
|
|
410
421
|
line-height="1.5"
|
|
411
422
|
padding="${n}"${r}${a}${i}
|
|
412
423
|
>${l}</mj-text>`;
|
|
413
424
|
}
|
|
414
|
-
function
|
|
415
|
-
let t =
|
|
425
|
+
function Qe(e) {
|
|
426
|
+
let t = k(e.borderColor), n = e.borderWidth, r = "";
|
|
416
427
|
for (let i = 0; i < e.rows.length; i++) {
|
|
417
428
|
let a = e.rows[i];
|
|
418
|
-
r +=
|
|
429
|
+
r += $e(a, e, e.hasHeaderRow && i === 0, t, n);
|
|
419
430
|
}
|
|
420
431
|
return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
|
|
421
432
|
}
|
|
422
|
-
function
|
|
433
|
+
function $e(e, t, n, r, i) {
|
|
423
434
|
let a = "";
|
|
424
|
-
for (let o of e.cells) a +=
|
|
435
|
+
for (let o of e.cells) a += et(o, t, n, r, i);
|
|
425
436
|
return `<tr>${a}</tr>`;
|
|
426
437
|
}
|
|
427
|
-
function
|
|
428
|
-
let a = t.cellPadding, o = [`border: ${
|
|
429
|
-
n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${
|
|
430
|
-
let s = o.join("; "), c =
|
|
438
|
+
function et(e, t, n, r, i) {
|
|
439
|
+
let a = t.cellPadding, o = [`border: ${k(String(i))}px solid ${r}`, `padding: ${k(String(a))}px`];
|
|
440
|
+
n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${k(t.headerBackgroundColor)}`));
|
|
441
|
+
let s = o.join("; "), c = D(w(e.content)), l = n ? "th" : "td";
|
|
431
442
|
return `<${l} style="${s}">${c}</${l}>`;
|
|
432
443
|
}
|
|
433
|
-
function
|
|
434
|
-
return e ? ` font-family="${
|
|
444
|
+
function tt(e, t) {
|
|
445
|
+
return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
|
|
435
446
|
}
|
|
436
447
|
// ../renderer/src/renderers/custom.ts
|
|
437
|
-
function
|
|
438
|
-
if (
|
|
448
|
+
function nt(e, t) {
|
|
449
|
+
if (j(e)) return "";
|
|
439
450
|
let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
|
|
440
451
|
if (!n || n === "") return "";
|
|
441
|
-
let r =
|
|
452
|
+
let r = M(e);
|
|
442
453
|
return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
|
|
443
454
|
${n}
|
|
444
455
|
</mj-text>`;
|
|
445
456
|
}
|
|
446
457
|
// ../renderer/src/columns.ts
|
|
447
|
-
function
|
|
448
|
-
return Object.hasOwn(
|
|
458
|
+
function rt(e) {
|
|
459
|
+
return Object.hasOwn(ue, e) ? ue[e] : [100];
|
|
449
460
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
461
|
+
function it(e) {
|
|
462
|
+
return rt(e).map((e) => `${e}%`);
|
|
452
463
|
}
|
|
453
|
-
function
|
|
464
|
+
function at(e, t) {
|
|
454
465
|
switch (e) {
|
|
455
466
|
case "3": return [
|
|
456
467
|
t / 3,
|
|
@@ -459,11 +470,11 @@ function tt(e, t) {
|
|
|
459
470
|
];
|
|
460
471
|
case "1-2": return [t / 3, t * 2 / 3];
|
|
461
472
|
case "2-1": return [t * 2 / 3, t / 3];
|
|
462
|
-
default: return
|
|
473
|
+
default: return rt(e).map((e) => t * e / 100);
|
|
463
474
|
}
|
|
464
475
|
}
|
|
465
476
|
// ../renderer/src/hero-geometry.ts
|
|
466
|
-
function
|
|
477
|
+
function ot(e, t, n) {
|
|
467
478
|
let r = Math.max(1, Math.round(t)), i = e.aspectRatio === null ? null : Math.max(1, Math.round(r * e.aspectRatio)), a = Math.max(e.height === "image" ? i ?? r : e.height, Math.trunc(n.top) + Math.trunc(n.bottom));
|
|
468
479
|
return {
|
|
469
480
|
mode: "fixed-height",
|
|
@@ -473,7 +484,7 @@ function nt(e, t, n) {
|
|
|
473
484
|
};
|
|
474
485
|
}
|
|
475
486
|
// ../renderer/src/display-condition.ts
|
|
476
|
-
function
|
|
487
|
+
function Y(e, t) {
|
|
477
488
|
if (t === "") return "";
|
|
478
489
|
let n = e.displayCondition;
|
|
479
490
|
return n ? `<mj-raw>${n.before}</mj-raw>
|
|
@@ -481,13 +492,13 @@ function X(e, t) {
|
|
|
481
492
|
<mj-raw>${n.after}</mj-raw>` : t;
|
|
482
493
|
}
|
|
483
494
|
// ../renderer/src/renderers/section.ts
|
|
484
|
-
function
|
|
485
|
-
if (
|
|
495
|
+
function st(e, t, n) {
|
|
496
|
+
if (j(e)) return "";
|
|
486
497
|
let r = _(e);
|
|
487
|
-
if (r?.applied) return
|
|
488
|
-
let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) :
|
|
498
|
+
if (r?.applied) return ct(e, r, t, n);
|
|
499
|
+
let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) : at(i, t.containerWidth), l = Math.floor(t.contentWidth) - B(e.styles.padding, e.border), u = o.map((e) => Math.floor(l * parseFloat(e) / 100)), d = R(e.styles.padding), f = z(e.styles.backgroundColor, "native"), p = be(e.backgroundImage), m = M(e), h = U(e.borderRadius), y = H(e.border), b = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", x = e.children, S = [];
|
|
489
500
|
for (let e = 0; e < x.length; e++) {
|
|
490
|
-
let r = x[e], i = o[e] ?? "100%", a = Math.floor(c[e] ?? t.containerWidth), s =
|
|
501
|
+
let r = x[e], i = o[e] ?? "100%", a = Math.floor(c[e] ?? t.containerWidth), s = lt(r, t.allowHtmlBlocks).filter((e) => !g(e)), d = t.withContainerWidth(a, u[e] ?? l), f = s.map((e) => Y(e, n(e, d))).filter((e) => e !== "").join("\n");
|
|
491
502
|
S.push(`<mj-column width="${i}"${b}>
|
|
492
503
|
${f === "" ? "<mj-text> </mj-text>" : f}
|
|
493
504
|
</mj-column>`);
|
|
@@ -499,17 +510,17 @@ ${C}
|
|
|
499
510
|
</mj-group>` : C}
|
|
500
511
|
</mj-section>`;
|
|
501
512
|
}
|
|
502
|
-
function
|
|
503
|
-
let i = Math.floor(n.contentWidth), a =
|
|
504
|
-
return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${
|
|
513
|
+
function ct(e, t, n, r) {
|
|
514
|
+
let i = Math.floor(n.contentWidth), a = ot(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = U(e.borderRadius), l = M(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = lt(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => Y(e, r(e, u))).filter((e) => e !== "").join("\n");
|
|
515
|
+
return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${O(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${O(t.image.position)}"${o} padding="${s}" vertical-align="${O(t.verticalAlign)}"${c}${l}>
|
|
505
516
|
${d}
|
|
506
517
|
</mj-hero>`;
|
|
507
518
|
}
|
|
508
|
-
function
|
|
519
|
+
function lt(e, t) {
|
|
509
520
|
return t ? e : e.filter((e) => e.type !== "html");
|
|
510
521
|
}
|
|
511
522
|
// ../renderer/src/renderers/video.ts
|
|
512
|
-
function
|
|
523
|
+
function ut(e, t) {
|
|
513
524
|
if (t) return t;
|
|
514
525
|
if (!e) return null;
|
|
515
526
|
for (let t of [/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/, /youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/]) {
|
|
@@ -519,44 +530,44 @@ function ot(e, t) {
|
|
|
519
530
|
let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
|
|
520
531
|
return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
|
|
521
532
|
}
|
|
522
|
-
function
|
|
523
|
-
if (
|
|
524
|
-
let n =
|
|
533
|
+
function dt(e, t) {
|
|
534
|
+
if (j(e)) return "";
|
|
535
|
+
let n = ut(e.url, e.thumbnailUrl);
|
|
525
536
|
if (!n) return "";
|
|
526
|
-
let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a =
|
|
537
|
+
let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = ye(e.height), s = V(e, t), c = M(e);
|
|
527
538
|
return `<mj-image
|
|
528
|
-
src="${
|
|
529
|
-
alt="${
|
|
539
|
+
src="${O(n)}"
|
|
540
|
+
alt="${O(e.alt)}"
|
|
530
541
|
width="${a}"${o}${s}
|
|
531
|
-
align="${
|
|
542
|
+
align="${O(e.align)}"
|
|
532
543
|
padding="${r}"
|
|
533
|
-
href="${
|
|
544
|
+
href="${O(e.url)}"
|
|
534
545
|
target="_blank"
|
|
535
546
|
rel="noopener"${i}${c}
|
|
536
547
|
/>`;
|
|
537
548
|
}
|
|
538
549
|
// ../renderer/src/renderers/index.ts
|
|
539
|
-
function
|
|
550
|
+
function X(e, r) {
|
|
540
551
|
let a = r.blockRenderers[e.type];
|
|
541
|
-
return a ? a(e, r) : g(e) ?
|
|
552
|
+
return a ? a(e, r) : g(e) ? st(e, r, X) : t(e) ? ke(e, r) : fe(e) ? Me(e, r) : h(e) ? Ne(e, r) : y(e) ? Pe(e, r) : x(e) ? Be(e, r) : p(e) ? Ve(e, r) : me(e) ? He(e, r) : i(e) ? Ke(e, r) : n(e) ? qe(e, r) : oe(e) ? Ze(e, r) : ie(e) ? dt(e, r) : he(e) ? nt(e, r) : j(e) ? "" : L(e);
|
|
542
553
|
}
|
|
543
554
|
// ../renderer/src/index.ts
|
|
544
|
-
var
|
|
545
|
-
async function
|
|
555
|
+
var ft = `.${J} a { display: block !important; }`;
|
|
556
|
+
async function pt(e, t) {
|
|
546
557
|
if (t?.customBlocks !== void 0 && t.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
|
|
547
558
|
if (t?.customBlocks !== void 0 && t.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
|
|
548
|
-
let n = t?.locale ??
|
|
549
|
-
return `<mjml lang="${
|
|
559
|
+
let n = t?.locale ?? ne(e), r = ee(e, n), i = t?.layout ? le(ee(t.layout, n, { missing: "default" }), r) : (se(r), C(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = _t(t?.socialIconsBaseUrl ?? T), l = t?.customBlocks === void 0 ? await bt(i, t?.renderCustomBlock) : await xt(i, t.customBlocks, t.liquidjs), u = St(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), d = S(i.settings), f = new ge(i.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, d), p = Q(i.blocks, s), m = f.resolveFontFamily(i.settings.fontFamily), h = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, g = i.settings.textColor ? ` color="${O(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? k(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = p.map((e) => mt(e, f)).filter((e) => e !== "").join("\n"), b = yt(a), x = vt(i.settings.preheaderText);
|
|
560
|
+
return `<mjml lang="${O(i.settings.locale)}" dir="${O(d)}">
|
|
550
561
|
<mj-head>${x}
|
|
551
562
|
<mj-attributes>
|
|
552
|
-
<mj-all font-family="${
|
|
563
|
+
<mj-all font-family="${A(m)}" />
|
|
553
564
|
<mj-text font-size="14px"${g} />
|
|
554
565
|
<mj-section padding="0" />
|
|
555
566
|
<mj-column padding="0" />
|
|
556
567
|
</mj-attributes>${b}
|
|
557
568
|
<mj-style inline="inline">
|
|
558
|
-
${
|
|
559
|
-
${
|
|
569
|
+
${xe(Se(p), d)}
|
|
570
|
+
${ft}
|
|
560
571
|
</mj-style>
|
|
561
572
|
<mj-style>
|
|
562
573
|
a { color: ${_}; text-decoration: ${v}; }
|
|
@@ -566,17 +577,17 @@ async function lt(e, t) {
|
|
|
566
577
|
@media only screen and (min-width: 481px) {
|
|
567
578
|
.tpl-hide-desktop { display: none !important; mso-hide: all !important; }
|
|
568
579
|
}
|
|
569
|
-
</mj-style>${
|
|
580
|
+
</mj-style>${Ct(u)}
|
|
570
581
|
</mj-head>
|
|
571
|
-
<mj-body width="${
|
|
582
|
+
<mj-body width="${O(String(f.containerWidth))}px" background-color="${k(h)}">
|
|
572
583
|
${y}
|
|
573
584
|
</mj-body>
|
|
574
585
|
</mjml>`;
|
|
575
586
|
}
|
|
576
|
-
function
|
|
587
|
+
function mt(e, t) {
|
|
577
588
|
if (d(e)) {
|
|
578
|
-
let n =
|
|
579
|
-
return
|
|
589
|
+
let n = Z(t, e.styles.padding);
|
|
590
|
+
return Y(e, ht(Q(e.children, t.allowHtmlBlocks).map((e) => mt(e, n)).filter((e) => e !== "").join("\n"), {
|
|
580
591
|
backgroundColor: e.styles.backgroundColor,
|
|
581
592
|
padding: e.styles.padding,
|
|
582
593
|
borderRadius: e.borderRadius,
|
|
@@ -585,20 +596,20 @@ function Q(e, t) {
|
|
|
585
596
|
}, t.contentDirection));
|
|
586
597
|
}
|
|
587
598
|
if (g(e)) {
|
|
588
|
-
let n =
|
|
589
|
-
return
|
|
599
|
+
let n = X(e, e.wrapper ? Z(t, e.wrapper.padding) : t);
|
|
600
|
+
return Y(e, e.wrapper && n !== "" ? ht(n, e.wrapper, t.contentDirection) : n);
|
|
590
601
|
}
|
|
591
|
-
return
|
|
602
|
+
return Y(e, gt(X(e, t), t.contentDirection));
|
|
592
603
|
}
|
|
593
|
-
function
|
|
604
|
+
function Z(e, t) {
|
|
594
605
|
return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - B(t));
|
|
595
606
|
}
|
|
596
|
-
function
|
|
597
|
-
return `<mj-wrapper${z(t.backgroundColor, "native")}${
|
|
607
|
+
function ht(e, t, n) {
|
|
608
|
+
return `<mj-wrapper${z(t.backgroundColor, "native")}${be(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : U(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
|
|
598
609
|
${e}
|
|
599
610
|
</mj-wrapper>`;
|
|
600
611
|
}
|
|
601
|
-
function
|
|
612
|
+
function gt(e, t) {
|
|
602
613
|
if (e === "") return "";
|
|
603
614
|
let n = t === "rtl" ? " direction=\"rtl\"" : "";
|
|
604
615
|
return `<mj-section${n}>
|
|
@@ -607,21 +618,21 @@ ${e}
|
|
|
607
618
|
</mj-column>
|
|
608
619
|
</mj-section>`;
|
|
609
620
|
}
|
|
610
|
-
function
|
|
621
|
+
function _t(e) {
|
|
611
622
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
|
612
623
|
}
|
|
613
|
-
function
|
|
624
|
+
function vt(e) {
|
|
614
625
|
if (!e) return "";
|
|
615
626
|
let t = e.trim();
|
|
616
|
-
return t === "" ? "" : `\n <mj-preview>${
|
|
627
|
+
return t === "" ? "" : `\n <mj-preview>${D(t)}</mj-preview>`;
|
|
617
628
|
}
|
|
618
|
-
function
|
|
619
|
-
return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${
|
|
629
|
+
function yt(e) {
|
|
630
|
+
return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${O(e.name)}" href="${O(e.url)}" />`).join("");
|
|
620
631
|
}
|
|
621
|
-
function
|
|
632
|
+
function Q(e, t) {
|
|
622
633
|
return t ? e : e.filter((e) => e.type !== "html");
|
|
623
634
|
}
|
|
624
|
-
async function
|
|
635
|
+
async function bt(e, t) {
|
|
625
636
|
let n = /* @__PURE__ */ new Map();
|
|
626
637
|
if (!t) return n;
|
|
627
638
|
let r = [];
|
|
@@ -630,7 +641,7 @@ async function _t(e, t) {
|
|
|
630
641
|
for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
|
|
631
642
|
return n;
|
|
632
643
|
}
|
|
633
|
-
async function
|
|
644
|
+
async function xt(e, t, n) {
|
|
634
645
|
let r = /* @__PURE__ */ new Map(), i = [];
|
|
635
646
|
if ($(e.blocks, i), i.length === 0) return r;
|
|
636
647
|
if (typeof n?.Liquid != "function") throw TypeError("[Templatical] customBlocks requires the liquidjs option: import * as liquidjs from \"liquidjs\" and pass { customBlocks, liquidjs }.");
|
|
@@ -645,11 +656,11 @@ async function vt(e, t, n) {
|
|
|
645
656
|
return r;
|
|
646
657
|
}
|
|
647
658
|
function $(e, t) {
|
|
648
|
-
for (let n of e) if (
|
|
659
|
+
for (let n of e) if (he(n)) t.push(n);
|
|
649
660
|
else if (g(n)) for (let e of n.children) $(e, t);
|
|
650
661
|
else d(n) && $(n.children, t);
|
|
651
662
|
}
|
|
652
|
-
function
|
|
663
|
+
function St(e, t, n) {
|
|
653
664
|
let r = [];
|
|
654
665
|
if ($(e.blocks, r), r.length === 0) return [];
|
|
655
666
|
let i = /* @__PURE__ */ new Map();
|
|
@@ -665,9 +676,9 @@ function yt(e, t, n) {
|
|
|
665
676
|
}
|
|
666
677
|
return s;
|
|
667
678
|
}
|
|
668
|
-
function
|
|
679
|
+
function Ct(e) {
|
|
669
680
|
return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e.replaceAll("<", "\\3c ")}\n </mj-style>`).join("");
|
|
670
681
|
}
|
|
671
|
-
export {
|
|
682
|
+
export { J as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, ge as RenderContext, P as UNRENDERABLE_MARKER_PREFIX, w as convertMergeTagsToValues, O as escapeAttr, D as escapeHtml, V as fluidOnMobileAttr, M as getCssClassAttr, N as getCssClasses, it as getWidthPercentages, at as getWidthPixels, j as isHiddenOnAll, X as renderBlock, pt as renderToMjml, L as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, R as toPaddingString };
|
|
672
683
|
|
|
673
|
-
//# sourceMappingURL=src-
|
|
684
|
+
//# sourceMappingURL=src-CCQf19hy.js.map
|