@templatical/editor 0.44.2 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-BlFWWhBv.js} +15 -19
- package/dist/{AiFeatureMenu-CgfLFHJw.js → AiFeatureMenu-CvWygUmC.js} +7 -7
- package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
- package/dist/{BlockPreviewCanvas-2vVu55yN.js → BlockPreviewCanvas-DwxJOTzH.js} +5 -5
- package/dist/{CloudHeaderExtras-BZ62q1aS.js → CloudHeaderExtras-BzM1QU1r.js} +5 -5
- package/dist/{CloudPanels-sv4aCKKE.js → CloudPanels-d36YXXyn.js} +8 -8
- package/dist/{CollaboratorBar-CSEFL7uC.js → CollaboratorBar-rwXe_Qd2.js} +4 -4
- package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
- package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
- package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
- package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-lbjCc8ik.js} +62 -61
- package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zlJQsP0X.js} +25 -26
- package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-CHx3m8SP.js} +8 -8
- package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
- package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-BvftbkL4.js} +13 -19
- package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
- package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
- package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-CR1kcj8X.js} +2 -2
- package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-DssKrVYb.js} +7 -7
- package/dist/{ParagraphEditor-C_p6yKLK.js → ParagraphEditor-DFizsZRc.js} +140 -139
- package/dist/{RestoreVersionDialog-CKHeCPG2.js → RestoreVersionDialog-Cp3q2mU4.js} +5 -5
- package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-Cj3oaPMk.js} +9 -9
- package/dist/{SaveBlockDialog-q3_fjb9t.js → SaveBlockDialog-BR8vW_XF.js} +13 -13
- package/dist/SavedBlocksBrowserModal-DmwbmKxI.js +360 -0
- package/dist/{SavedBlocksPanels-DNpnl5cO.js → SavedBlocksPanels-D4XKrs-a.js} +2 -2
- package/dist/{SavedBlocksPickBar-Pq2bjpB_.js → SavedBlocksPickBar-gfc-o5sR.js} +4 -4
- package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
- package/dist/TemplateSettings-D7aNrd0d.js +246 -0
- package/dist/{TestEmailModal-BYCKpH7g.js → TestEmailModal-DUmtcSm-.js} +11 -11
- package/dist/{TestEmailPanel-lUXAFsT5.js → TestEmailPanel-s9gISTI8.js} +2 -2
- package/dist/{TitleEditor-CWPxXUp2.js → TitleEditor-C-uHqtml.js} +13 -13
- package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-CTwwCIVA.js} +2 -2
- package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CLpA36RO.js} +518 -520
- package/dist/{TplModal-D6lqrKls.js → TplModal-D6XtxusQ.js} +5 -5
- package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
- package/dist/{VersionHistoryPanels-C3XhpQO_.js → VersionHistoryPanels-Dvowtt7V.js} +2 -2
- package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
- package/dist/{WrapperBlock-ox8TMS_p.js → WrapperBlock-CzJa2Mxw.js} +3 -3
- package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-D3aj5u_5.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DSwai-th.js → ca-C__Dzq--.js} +6 -0
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-SRGBP-SL.js} +9 -13
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-SRGBP-SL.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js → AiFeatureMenu-oZhlgsGh.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js.map → AiFeatureMenu-oZhlgsGh.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js → BlockPreviewCanvas-hKxE6f-k.js} +6 -6
- package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js.map → BlockPreviewCanvas-hKxE6f-k.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js → CloudHeaderExtras-t-_ZlHwn.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js.map → CloudHeaderExtras-t-_ZlHwn.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js → CloudPanels-DR2eEcpX.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js.map → CloudPanels-DR2eEcpX.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js → CollaboratorBar-w8_2WPE0.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js.map → CollaboratorBar-w8_2WPE0.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-CvNuDR5Z.js} +63 -62
- package/dist/cdn/chunks/CountdownToolbar-CvNuDR5Z.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-CJg_5GXU.js} +21 -22
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-CJg_5GXU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-DXqlRk19.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-DXqlRk19.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-DnHghQHb.js} +11 -17
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-DnHghQHb.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-heTX9P_k.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-heTX9P_k.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-C9EfuZIP.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-C9EfuZIP.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js → ParagraphEditor-B5DN4Sy4.js} +145 -144
- package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js → RestoreVersionDialog-DBgJ-Nui.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js.map → RestoreVersionDialog-DBgJ-Nui.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-LOas4rfU.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-LOas4rfU.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js → SaveBlockDialog-Dx-QVQCX.js} +11 -11
- package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js.map → SaveBlockDialog-Dx-QVQCX.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js +357 -0
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js → SavedBlocksPanels-BmRbvqqL.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js.map → SavedBlocksPanels-BmRbvqqL.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js → SavedBlocksPickBar-BzwKojoJ.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js.map → SavedBlocksPickBar-BzwKojoJ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-G-yV7C1C.js} +48 -47
- package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js → TestEmailModal-lOeztfTN.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js.map → TestEmailModal-lOeztfTN.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js → TestEmailPanel-CZswVkk_.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js.map → TestEmailPanel-CZswVkk_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js → TitleEditor-CnTT2Y3H.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js.map → TitleEditor-CnTT2Y3H.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-CLHteVMO.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-CLHteVMO.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-K4tIkpG1.js} +415 -417
- package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-BVUBOEQL.js → TplModal-OOT36AjS.js} +5 -5
- package/dist/cdn/chunks/{TplModal-BVUBOEQL.js.map → TplModal-OOT36AjS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js → VersionHistoryPanels-BrpYRSfW.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js.map → VersionHistoryPanels-BrpYRSfW.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js → WrapperBlock-DdrnwH80.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js.map → WrapperBlock-DdrnwH80.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DSwai-th.js → ca-C__Dzq--.js} +7 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-bhW8qTnh.js} +4 -4
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-bhW8qTnh.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-CeRJkLR2.js} +9 -12
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-CeRJkLR2.js.map} +1 -1
- package/dist/{de-DOhKuphf.js → cdn/chunks/de-CGjbQ2mt.js} +8 -0
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
- package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
- package/dist/{en-BE28ZcUF.js → cdn/chunks/en-BTiiAC-B.js} +8 -0
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
- package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
- package/dist/{es-oQI-dfx2.js → cdn/chunks/es-CdTOcSTf.js} +8 -0
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
- package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-xjRsIjMP.js} +9 -17
- package/dist/cdn/chunks/{extensions-ClmkNA8R.js.map → extensions-xjRsIjMP.js.map} +1 -1
- package/dist/{fr-rzLdCMSG.js → cdn/chunks/fr-B6lcLLzC.js} +8 -0
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
- package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
- package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
- package/dist/{ja-dyFc6Ghz.js → cdn/chunks/ja-BhdkqENz.js} +8 -0
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
- package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
- package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
- package/dist/{nl-BcQhRqKR.js → cdn/chunks/nl-CE3YItYg.js} +8 -0
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-CFwa7nP9.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CFwa7nP9.js.map} +1 -1
- package/dist/{pt-BR-UombhTMO.js → cdn/chunks/pt-BR-CUIT4rq4.js} +8 -0
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-CsYnPPll.js} +14 -24
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +1 -0
- package/dist/cdn/chunks/{src-QIGNPFkl.js → src-BcqNlDMe.js} +258 -237
- package/dist/cdn/chunks/src-BcqNlDMe.js.map +1 -0
- package/dist/cdn/chunks/{src-CLHnxvuS.js → src-CkXmV2I2.js} +174 -179
- package/dist/cdn/chunks/src-CkXmV2I2.js.map +1 -0
- package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-HA9F2kvk.js} +141 -179
- package/dist/cdn/chunks/{src-B5-VKcRQ.js.map → src-HA9F2kvk.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js → useEditorCore-BF1ZhcGu.js} +476 -520
- package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-91bO_SOi.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-91bO_SOi.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-hwifK582.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-hwifK582.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-BDNJ25X1.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js.map → useScrollToBlock-BDNJ25X1.js.map} +1 -1
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +32 -0
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +89 -118
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
- package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
- package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
- package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
- package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
- package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
- package/dist/{cloud-BNEL7bxL.js → cloud-CVfwPu19.js} +2 -2
- package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
- package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-GRv_TDb2.js} +8 -11
- package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
- package/dist/{cdn/chunks/de-DOhKuphf.js → de-CGjbQ2mt.js} +6 -2
- package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
- package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
- package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
- package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
- package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
- package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
- package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
- package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
- package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
- package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
- package/dist/{dist-HjILVdTA.js → dist-CSaWqmWM.js} +143 -126
- package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
- package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
- package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
- package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
- package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
- package/dist/{cdn/chunks/en-BE28ZcUF.js → en-BTiiAC-B.js} +6 -2
- package/dist/en-Bk4iCfjp.js +1 -0
- package/dist/{cdn/chunks/es-oQI-dfx2.js → es-CdTOcSTf.js} +6 -2
- package/dist/{extensions-DXSI8Dyj.js → extensions-B65sfZRk.js} +42 -58
- package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
- package/dist/{cdn/chunks/fr-rzLdCMSG.js → fr-B6lcLLzC.js} +6 -2
- package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
- package/dist/{cdn/chunks/ja-dyFc6Ghz.js → ja-BhdkqENz.js} +6 -2
- package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
- package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
- package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
- package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
- package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
- package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
- package/dist/{cdn/chunks/nl-BcQhRqKR.js → nl-CE3YItYg.js} +6 -2
- package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
- package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
- package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
- package/dist/{preRenderCustomBlocks-C_PIxBp7.js → preRenderCustomBlocks-DAS48ZCp.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-UombhTMO.js → pt-BR-CUIT4rq4.js} +6 -2
- package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
- package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
- package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
- package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
- package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
- package/dist/{socialIcons-D1gkHc_i.js → socialIcons-CvAixjj8.js} +14 -24
- package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +101 -130
- package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
- package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
- package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
- package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
- package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
- package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
- package/dist/{useEditorCore-iuKC8yr5.js → useEditorCore-DQSeKPE9.js} +940 -1007
- package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
- package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
- package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-BH87j1vZ.js} +3 -3
- package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-DfPKX2Tk.js} +3 -3
- package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
- package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-Dr7Sb6Tr.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
- package/dist/withCurrentFont-DeCbPVaE.js +30 -0
- package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
- package/package.json +12 -12
- package/dist/SavedBlocksBrowserModal-DeUo5aFV.js +0 -325
- package/dist/TemplateSettings-Bh10NFIN.js +0 -245
- package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BSDGOsja.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js +0 -322
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
- package/dist/cdn/chunks/ca-DSwai-th.js.map +0 -1
- package/dist/cdn/chunks/de-DOhKuphf.js.map +0 -1
- package/dist/cdn/chunks/en-BE28ZcUF.js.map +0 -1
- package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
- package/dist/cdn/chunks/es-oQI-dfx2.js.map +0 -1
- package/dist/cdn/chunks/fr-rzLdCMSG.js.map +0 -1
- package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +0 -1
- package/dist/cdn/chunks/nl-BcQhRqKR.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
- package/dist/cdn/chunks/src-CLHnxvuS.js.map +0 -1
- package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DjD7fJpq.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
- package/dist/en-B-xoKkWi.js +0 -2
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { $ as e, G as t, Q as n, S as r,
|
|
1
|
+
import { $ as e, G as t, Q as n, S as r, St as i, X as a, Z as o, at as s, b as c, ct as l, et as u, ft as d, lt as f, nt as p, ot as m, rt as h, st as ee, tt as g, ut as _, v, vt as y, x as te, xt as b, y as ne, yt as x } from "./src-BcqNlDMe.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region ../renderer/src/render-context.ts
|
|
4
|
-
var
|
|
4
|
+
var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
5
5
|
name: "@templatical/renderer",
|
|
6
6
|
description: "Render Templatical email templates to MJML",
|
|
7
|
-
version: "0.
|
|
7
|
+
version: "0.45.0",
|
|
8
8
|
bugs: "https://github.com/templatical/sdk/issues",
|
|
9
9
|
dependencies: { "@templatical/types": "workspace:*" },
|
|
10
10
|
devDependencies: {
|
|
11
|
+
"@jsquash/oxipng": "^2.3.0",
|
|
11
12
|
"@resvg/resvg-js": "^2.6.2",
|
|
12
13
|
mjml: "^5.4.1",
|
|
13
14
|
typescript: "^6.0.3",
|
|
@@ -42,7 +43,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
42
43
|
},
|
|
43
44
|
type: "module",
|
|
44
45
|
types: "./dist/index.d.ts"
|
|
45
|
-
}.version}/assets/social`,
|
|
46
|
+
}.version}/assets/social`, re = {
|
|
46
47
|
arial: "Arial, sans-serif",
|
|
47
48
|
helvetica: "Helvetica, sans-serif",
|
|
48
49
|
georgia: "Georgia, serif",
|
|
@@ -51,7 +52,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
51
52
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
52
53
|
"courier new": "'Courier New', monospace",
|
|
53
54
|
tahoma: "Tahoma, sans-serif"
|
|
54
|
-
},
|
|
55
|
+
}, C = class e {
|
|
55
56
|
containerWidth;
|
|
56
57
|
customFonts;
|
|
57
58
|
defaultFallbackFont;
|
|
@@ -60,7 +61,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
60
61
|
socialIconsBaseUrl;
|
|
61
62
|
blockRenderers;
|
|
62
63
|
contentDirection;
|
|
63
|
-
constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a =
|
|
64
|
+
constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = S, o = {}, s = "ltr") {
|
|
64
65
|
this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s;
|
|
65
66
|
}
|
|
66
67
|
withContainerWidth(t) {
|
|
@@ -71,20 +72,20 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
|
|
|
71
72
|
let e = t.fallback ?? this.defaultFallbackFont;
|
|
72
73
|
return `'${t.name}', ${e}`;
|
|
73
74
|
}
|
|
74
|
-
return
|
|
75
|
+
return re[e.toLowerCase()] || e;
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
78
|
//#endregion
|
|
78
79
|
//#region ../renderer/src/visibility.ts
|
|
79
|
-
function
|
|
80
|
+
function w(e) {
|
|
80
81
|
let t = e.visibility;
|
|
81
82
|
return t ? !t.desktop && !t.mobile : !1;
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
let n = [
|
|
84
|
+
function T(e, t = []) {
|
|
85
|
+
let n = [E(e), ...t].filter((e) => e !== "").join(" ");
|
|
85
86
|
return n === "" ? "" : ` css-class="${n}"`;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function E(e) {
|
|
88
89
|
let t = e.visibility;
|
|
89
90
|
if (!t) return "";
|
|
90
91
|
let n = [];
|
|
@@ -92,35 +93,35 @@ function D(e) {
|
|
|
92
93
|
}
|
|
93
94
|
//#endregion
|
|
94
95
|
//#region ../renderer/src/unrenderable.ts
|
|
95
|
-
var
|
|
96
|
-
function
|
|
96
|
+
var D = "templatical:unrenderable-block";
|
|
97
|
+
function O(e) {
|
|
97
98
|
return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${
|
|
100
|
+
function k(e) {
|
|
101
|
+
return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${D} type="${O(e.type)}" id="${O(e.id)}" --></mj-raw>`;
|
|
101
102
|
}
|
|
102
103
|
//#endregion
|
|
103
104
|
//#region ../renderer/src/escape.ts
|
|
104
|
-
var
|
|
105
|
+
var A = {
|
|
105
106
|
"&": "&",
|
|
106
107
|
"<": "<",
|
|
107
108
|
">": ">",
|
|
108
109
|
"\"": """,
|
|
109
110
|
"'": "'"
|
|
110
|
-
},
|
|
111
|
+
}, j = /[&<>"']/g;
|
|
112
|
+
function M(e) {
|
|
113
|
+
return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
|
|
114
|
+
}
|
|
111
115
|
function N(e) {
|
|
112
|
-
return e === "" ? "" : e.replace(
|
|
116
|
+
return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
|
|
113
117
|
}
|
|
114
118
|
function P(e) {
|
|
115
|
-
return e === "" ? "" : e.replace(
|
|
119
|
+
return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
|
|
116
120
|
}
|
|
117
121
|
function F(e) {
|
|
118
|
-
return e === "" ? "" :
|
|
122
|
+
return e === "" ? "" : ie(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
|
|
119
123
|
}
|
|
120
|
-
function
|
|
121
|
-
return e === "" ? "" : ne(e, (e) => L(e, "data-merge-tag") ?? L(e, "data-logic-merge-tag"));
|
|
122
|
-
}
|
|
123
|
-
function ne(e, t) {
|
|
124
|
+
function ie(e, t) {
|
|
124
125
|
let n = "", r = 0;
|
|
125
126
|
for (; r < e.length;) {
|
|
126
127
|
let i = e.indexOf("<span", r);
|
|
@@ -133,7 +134,7 @@ function ne(e, t) {
|
|
|
133
134
|
n += e.substring(r, i + 5), r = i + 5;
|
|
134
135
|
continue;
|
|
135
136
|
}
|
|
136
|
-
let o =
|
|
137
|
+
let o = v(e, i + 5);
|
|
137
138
|
if (o === -1) {
|
|
138
139
|
n += e.substring(r);
|
|
139
140
|
break;
|
|
@@ -144,46 +145,42 @@ function ne(e, t) {
|
|
|
144
145
|
break;
|
|
145
146
|
}
|
|
146
147
|
let c = t(e.substring(i + 5, o));
|
|
147
|
-
|
|
148
|
-
n += e.substring(r, i + 5), r = i + 5;
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
n += e.substring(r, i), n += c, r = s + 7;
|
|
148
|
+
c === null ? (n += e.substring(r, i + 5), r = i + 5) : (n += e.substring(r, i), n += c, r = s + 7);
|
|
152
149
|
}
|
|
153
150
|
return n;
|
|
154
151
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
152
|
+
function I(e, t) {
|
|
153
|
+
return ne(e, t);
|
|
157
154
|
}
|
|
158
155
|
//#endregion
|
|
159
156
|
//#region ../renderer/src/padding.ts
|
|
160
|
-
function
|
|
157
|
+
function L(e) {
|
|
161
158
|
return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
|
|
162
159
|
}
|
|
163
160
|
//#endregion
|
|
164
161
|
//#region ../renderer/src/utils.ts
|
|
165
|
-
function
|
|
162
|
+
function R(e, t) {
|
|
166
163
|
return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
|
|
167
164
|
}
|
|
168
|
-
function
|
|
165
|
+
function z(e) {
|
|
169
166
|
return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
|
|
170
167
|
}
|
|
171
|
-
function
|
|
172
|
-
return Object.entries(
|
|
168
|
+
function B(e) {
|
|
169
|
+
return Object.entries(b(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
|
|
173
170
|
}
|
|
174
|
-
function
|
|
175
|
-
let t =
|
|
171
|
+
function V(e) {
|
|
172
|
+
let t = i(e);
|
|
176
173
|
return t === null ? "" : ` border-radius="${t}"`;
|
|
177
174
|
}
|
|
178
175
|
//#endregion
|
|
179
176
|
//#region ../renderer/src/rich-text.ts
|
|
180
|
-
var
|
|
181
|
-
function
|
|
182
|
-
return `${
|
|
177
|
+
var H = "tpl-rich-text";
|
|
178
|
+
function U(e) {
|
|
179
|
+
return `${H}-${e}`;
|
|
183
180
|
}
|
|
184
|
-
function
|
|
185
|
-
let n =
|
|
186
|
-
let t = `.${
|
|
181
|
+
function ae(e, t = "ltr") {
|
|
182
|
+
let n = x, r = `.${H}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
|
|
183
|
+
let t = `.${U(e)}`;
|
|
187
184
|
return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
|
|
188
185
|
}), a = t === "rtl" ? "padding-right" : "padding-left";
|
|
189
186
|
return [
|
|
@@ -192,22 +189,22 @@ function re(e, t = "ltr") {
|
|
|
192
189
|
`${r} li { margin: ${n.listItemMarginY}px 0; }`
|
|
193
190
|
].join("\n ");
|
|
194
191
|
}
|
|
195
|
-
function
|
|
196
|
-
return e ??
|
|
192
|
+
function W(e) {
|
|
193
|
+
return e ?? x.paragraphGap;
|
|
197
194
|
}
|
|
198
|
-
function
|
|
199
|
-
let t = [
|
|
200
|
-
if (e.type === "paragraph" && t.push(
|
|
201
|
-
else if (
|
|
195
|
+
function oe(e) {
|
|
196
|
+
let t = [x.paragraphGap], n = (e) => {
|
|
197
|
+
if (e.type === "paragraph" && t.push(W(e.paragraphSpacing)), h(e)) for (let t of e.children) for (let e of t) n(e);
|
|
198
|
+
else if (_(e)) for (let t of e.children) n(t);
|
|
202
199
|
};
|
|
203
200
|
for (let t of e) n(t);
|
|
204
201
|
return t;
|
|
205
202
|
}
|
|
206
203
|
//#endregion
|
|
207
204
|
//#region ../renderer/src/renderers/title.ts
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
210
|
-
let n =
|
|
205
|
+
function se(e, t) {
|
|
206
|
+
if (w(e)) return "";
|
|
207
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = ce(F(e.content)), a = y[e.level] ?? y[2], o = e.color ? `\n color="${N(e.color)}"` : "", s = e.textAlign, c = le(e.fontFamily, t), l = T(e, [H, U(W(void 0))]), u = `h${y[e.level] ? e.level : 2}`;
|
|
211
208
|
return `<mj-text
|
|
212
209
|
font-size="${a}px"${o}
|
|
213
210
|
align="${s}"
|
|
@@ -215,18 +212,18 @@ function ae(e, t) {
|
|
|
215
212
|
padding="${n}"${r}${c}${l}
|
|
216
213
|
><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${u}></mj-text>`;
|
|
217
214
|
}
|
|
218
|
-
function
|
|
215
|
+
function ce(e) {
|
|
219
216
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
220
217
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
221
218
|
}
|
|
222
|
-
function
|
|
219
|
+
function le(e, t) {
|
|
223
220
|
return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
|
|
224
221
|
}
|
|
225
222
|
//#endregion
|
|
226
223
|
//#region ../renderer/src/renderers/paragraph.ts
|
|
227
|
-
function
|
|
228
|
-
if (
|
|
229
|
-
let n =
|
|
224
|
+
function ue(e, t) {
|
|
225
|
+
if (w(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
|
|
226
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = F(e.content), a = T(e, [H, U(W(e.paragraphSpacing))]);
|
|
230
227
|
return `<mj-text
|
|
231
228
|
line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
|
|
232
229
|
padding="${n}"${r}${a}
|
|
@@ -234,14 +231,14 @@ function ce(e, t) {
|
|
|
234
231
|
}
|
|
235
232
|
//#endregion
|
|
236
233
|
//#region ../renderer/src/renderers/image.ts
|
|
237
|
-
function
|
|
238
|
-
if (
|
|
239
|
-
let n =
|
|
240
|
-
e.linkUrl && (l = ` href="${
|
|
241
|
-
let u =
|
|
234
|
+
function de(e, t) {
|
|
235
|
+
if (w(e) || e.src === "") return "";
|
|
236
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = z(e.height), o = T(e), s = V(e.borderRadius), c = B(e.border), l = "";
|
|
237
|
+
e.linkUrl && (l = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (l += " target=\"_blank\" rel=\"noopener\""));
|
|
238
|
+
let u = N(e.src), d = e.decorative === !0;
|
|
242
239
|
return `<mj-image
|
|
243
240
|
src="${u}"
|
|
244
|
-
alt="${d ? "" :
|
|
241
|
+
alt="${d ? "" : N(e.alt)}"
|
|
245
242
|
width="${i}"${a}
|
|
246
243
|
align="${e.align}"
|
|
247
244
|
padding="${n}"${r}${c}${s}${l}${o}${d ? " role=\"presentation\"" : ""}
|
|
@@ -249,91 +246,92 @@ function le(e, t) {
|
|
|
249
246
|
}
|
|
250
247
|
//#endregion
|
|
251
248
|
//#region ../renderer/src/renderers/button.ts
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
249
|
+
var G = "tpl-button-full";
|
|
250
|
+
function fe(e, t) {
|
|
251
|
+
if (w(e)) return "";
|
|
252
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : N(e.url), o = a === "" ? "" : ` href="${a}"`, s = pe(e.backgroundColor), c = N(e.textColor), l = e.fontSize, u = he(e.borderRadius), d = M(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = me(e.fontFamily, t), m = ge(e.width), h = T(e, e.width === "full" ? [G] : []);
|
|
255
253
|
return `<mj-button${o}${f}
|
|
256
254
|
background-color="${s}"
|
|
257
255
|
color="${c}"
|
|
258
256
|
font-size="${l}px"
|
|
259
257
|
font-weight="bold"
|
|
260
|
-
border-radius="${u}"${
|
|
258
|
+
border-radius="${u}"${B(e.border)}
|
|
261
259
|
inner-padding="${i}"
|
|
262
260
|
align="${e.align ?? "center"}"
|
|
263
261
|
padding="${n}"${r}${p}${m}${h}
|
|
264
262
|
>${d}</mj-button>`;
|
|
265
263
|
}
|
|
266
|
-
function
|
|
267
|
-
return e.trim() === "" ? "transparent" :
|
|
264
|
+
function pe(e) {
|
|
265
|
+
return e.trim() === "" ? "transparent" : N(e);
|
|
268
266
|
}
|
|
269
|
-
function
|
|
267
|
+
function me(e, t) {
|
|
270
268
|
return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
|
|
271
269
|
}
|
|
272
|
-
function
|
|
273
|
-
return typeof e == "number" ? `${e}px` :
|
|
270
|
+
function he(e) {
|
|
271
|
+
return typeof e == "number" ? `${e}px` : i(e) ?? "0px";
|
|
274
272
|
}
|
|
275
|
-
function
|
|
273
|
+
function ge(e) {
|
|
276
274
|
return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
|
|
277
275
|
}
|
|
278
276
|
//#endregion
|
|
279
277
|
//#region ../renderer/src/renderers/divider.ts
|
|
280
|
-
function
|
|
281
|
-
if (
|
|
282
|
-
let n =
|
|
278
|
+
function _e(e, t) {
|
|
279
|
+
if (w(e)) return "";
|
|
280
|
+
let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
|
|
283
281
|
return `<mj-divider
|
|
284
282
|
border-width="${e.thickness}px"
|
|
285
283
|
border-style="${e.lineStyle}"
|
|
286
|
-
border-color="${
|
|
284
|
+
border-color="${N(e.color)}"
|
|
287
285
|
width="${i}"
|
|
288
|
-
padding="${n}"${r}${
|
|
286
|
+
padding="${n}"${r}${T(e)}
|
|
289
287
|
/>`;
|
|
290
288
|
}
|
|
291
289
|
//#endregion
|
|
292
290
|
//#region ../renderer/src/renderers/spacer.ts
|
|
293
|
-
function
|
|
294
|
-
return
|
|
291
|
+
function ve(e, t) {
|
|
292
|
+
return w(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : ""}${T(e)} />`;
|
|
295
293
|
}
|
|
296
294
|
//#endregion
|
|
297
295
|
//#region ../renderer/src/renderers/html.ts
|
|
298
|
-
function
|
|
299
|
-
if (
|
|
296
|
+
function ye(e, t) {
|
|
297
|
+
if (w(e) || !t.allowHtmlBlocks) return "";
|
|
300
298
|
let n = e.content;
|
|
301
299
|
if (n === "") return "";
|
|
302
|
-
let r =
|
|
303
|
-
return `<mj-text padding="${
|
|
300
|
+
let r = T(e);
|
|
301
|
+
return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
|
|
304
302
|
${n}
|
|
305
303
|
</mj-text>`;
|
|
306
304
|
}
|
|
307
305
|
//#endregion
|
|
308
306
|
//#region ../renderer/src/renderers/social.ts
|
|
309
|
-
function
|
|
310
|
-
if (
|
|
307
|
+
function be(e, t) {
|
|
308
|
+
if (w(e)) return "";
|
|
311
309
|
let n = e.icons;
|
|
312
310
|
if (n.length === 0) return "";
|
|
313
|
-
let r =
|
|
311
|
+
let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", a = T(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = d(c, e.iconTone), u = e.spacing, f;
|
|
314
312
|
switch (s) {
|
|
315
313
|
case "small":
|
|
316
|
-
|
|
314
|
+
f = 24;
|
|
317
315
|
break;
|
|
318
316
|
case "large":
|
|
319
|
-
|
|
317
|
+
f = 48;
|
|
320
318
|
break;
|
|
321
|
-
default:
|
|
319
|
+
default: f = 32;
|
|
322
320
|
}
|
|
323
|
-
let
|
|
321
|
+
let p;
|
|
324
322
|
switch (c) {
|
|
325
323
|
case "circle":
|
|
326
|
-
|
|
324
|
+
p = "50%";
|
|
327
325
|
break;
|
|
328
326
|
case "rounded":
|
|
329
|
-
|
|
327
|
+
p = "8px";
|
|
330
328
|
break;
|
|
331
329
|
case "square":
|
|
332
|
-
|
|
330
|
+
p = "0";
|
|
333
331
|
break;
|
|
334
|
-
default:
|
|
332
|
+
default: p = "4px";
|
|
335
333
|
}
|
|
336
|
-
let
|
|
334
|
+
let m = n.length;
|
|
337
335
|
return `<mj-social
|
|
338
336
|
mode="horizontal"
|
|
339
337
|
align="${o}"
|
|
@@ -341,77 +339,77 @@ function ve(e, t) {
|
|
|
341
339
|
padding="${r}"${i}${a}
|
|
342
340
|
>
|
|
343
341
|
${n.map((e, n) => {
|
|
344
|
-
let r = e.platform, i =
|
|
345
|
-
return `<mj-social-element src="${a}" href="${i}" icon-size="${
|
|
342
|
+
let r = e.platform, i = N(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
|
|
343
|
+
return `<mj-social-element src="${a}" href="${i}" icon-size="${f}px" padding="0 ${o}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
|
|
346
344
|
}).join("\n")}
|
|
347
345
|
</mj-social>`;
|
|
348
346
|
}
|
|
349
347
|
//#endregion
|
|
350
348
|
//#region ../renderer/src/renderers/menu.ts
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
353
|
-
let n =
|
|
349
|
+
function xe(e, t) {
|
|
350
|
+
if (w(e) || e.items.length === 0) return "";
|
|
351
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = we(e.fontFamily, t), o = e.textAlign;
|
|
354
352
|
return `<mj-text
|
|
355
|
-
font-size="${e.fontSize}px"${e.color ? `\n color="${
|
|
353
|
+
font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
|
|
356
354
|
align="${o}"
|
|
357
355
|
line-height="1.5"
|
|
358
356
|
padding="${n}"${r}${a}${i}
|
|
359
|
-
>${
|
|
357
|
+
>${Se(e)}</mj-text>`;
|
|
360
358
|
}
|
|
361
|
-
function
|
|
362
|
-
let t = e.items, n =
|
|
363
|
-
for (let e = 0; e < s; e++) o.push(
|
|
359
|
+
function Se(e) {
|
|
360
|
+
let t = e.items, n = M(e.separator), r = P(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
|
|
361
|
+
for (let e = 0; e < s; e++) o.push(Ce(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
|
|
364
362
|
return o.join("");
|
|
365
363
|
}
|
|
366
|
-
function
|
|
367
|
-
let n =
|
|
368
|
-
return i && o.unshift(`color: ${
|
|
364
|
+
function Ce(e, t) {
|
|
365
|
+
let n = M(e.text), r = N(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
|
|
366
|
+
return i && o.unshift(`color: ${P(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
|
|
369
367
|
}
|
|
370
|
-
function
|
|
368
|
+
function we(e, t) {
|
|
371
369
|
return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
|
|
372
370
|
}
|
|
373
371
|
//#endregion
|
|
374
372
|
//#region ../renderer/src/renderers/table.ts
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
let n =
|
|
373
|
+
function Te(e, t) {
|
|
374
|
+
if (w(e) || e.rows.length === 0) return "";
|
|
375
|
+
let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = ke(e.fontFamily, t);
|
|
378
376
|
return `<mj-text
|
|
379
|
-
font-size="${e.fontSize}px"${e.color ? `\n color="${
|
|
377
|
+
font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
|
|
380
378
|
align="${e.textAlign}"
|
|
381
379
|
line-height="1.5"
|
|
382
380
|
padding="${n}"${r}${a}${i}
|
|
383
|
-
>${
|
|
381
|
+
>${Ee(e)}</mj-text>`;
|
|
384
382
|
}
|
|
385
|
-
function
|
|
386
|
-
let t =
|
|
383
|
+
function Ee(e) {
|
|
384
|
+
let t = P(e.borderColor), n = e.borderWidth, r = "";
|
|
387
385
|
for (let i = 0; i < e.rows.length; i++) {
|
|
388
386
|
let a = e.rows[i];
|
|
389
|
-
r +=
|
|
387
|
+
r += De(a, e, e.hasHeaderRow && i === 0, t, n);
|
|
390
388
|
}
|
|
391
389
|
return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
|
|
392
390
|
}
|
|
393
|
-
function
|
|
391
|
+
function De(e, t, n, r, i) {
|
|
394
392
|
let a = "";
|
|
395
|
-
for (let o of e.cells) a +=
|
|
393
|
+
for (let o of e.cells) a += Oe(o, t, n, r, i);
|
|
396
394
|
return `<tr>${a}</tr>`;
|
|
397
395
|
}
|
|
398
|
-
function
|
|
396
|
+
function Oe(e, t, n, r, i) {
|
|
399
397
|
let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
|
|
400
|
-
n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${
|
|
401
|
-
let s = o.join("; "), c =
|
|
398
|
+
n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${P(t.headerBackgroundColor)}`));
|
|
399
|
+
let s = o.join("; "), c = M(F(e.content)), l = n ? "th" : "td";
|
|
402
400
|
return `<${l} style="${s}">${c}</${l}>`;
|
|
403
401
|
}
|
|
404
|
-
function
|
|
402
|
+
function ke(e, t) {
|
|
405
403
|
return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
|
|
406
404
|
}
|
|
407
405
|
//#endregion
|
|
408
406
|
//#region ../renderer/src/renderers/custom.ts
|
|
409
|
-
function
|
|
410
|
-
if (
|
|
407
|
+
function Ae(e, t) {
|
|
408
|
+
if (w(e)) return "";
|
|
411
409
|
let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
|
|
412
410
|
if (!n || n === "") return "";
|
|
413
|
-
let r =
|
|
414
|
-
return `<mj-text padding="${
|
|
411
|
+
let r = T(e);
|
|
412
|
+
return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
|
|
415
413
|
${n}
|
|
416
414
|
</mj-text>`;
|
|
417
415
|
}
|
|
@@ -454,11 +452,11 @@ function J(e, t) {
|
|
|
454
452
|
}
|
|
455
453
|
//#endregion
|
|
456
454
|
//#region ../renderer/src/renderers/section.ts
|
|
457
|
-
function
|
|
458
|
-
if (
|
|
459
|
-
let r = e.columns, i = K(r), a = q(r, t.containerWidth), o =
|
|
455
|
+
function je(e, t, n) {
|
|
456
|
+
if (w(e)) return "";
|
|
457
|
+
let r = e.columns, i = K(r), a = q(r, t.containerWidth), o = L(e.styles.padding), s = R(e.styles.backgroundColor, "native"), c = T(e), l = V(e.borderRadius), u = B(e.border), d = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", f = e.children, p = [];
|
|
460
458
|
for (let e = 0; e < f.length; e++) {
|
|
461
|
-
let r = f[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c =
|
|
459
|
+
let r = f[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c = Me(r, t.allowHtmlBlocks).filter((e) => !h(e)), l = t.withContainerWidth(s), u = c.map((e) => J(e, n(e, l))).filter((e) => e !== "").join("\n");
|
|
462
460
|
p.push(`<mj-column width="${o}"${d}>
|
|
463
461
|
${u === "" ? "<mj-text> </mj-text>" : u}
|
|
464
462
|
</mj-column>`);
|
|
@@ -470,12 +468,12 @@ ${m}
|
|
|
470
468
|
</mj-group>` : m}
|
|
471
469
|
</mj-section>`;
|
|
472
470
|
}
|
|
473
|
-
function
|
|
471
|
+
function Me(e, t) {
|
|
474
472
|
return t ? e : e.filter((e) => e.type !== "html");
|
|
475
473
|
}
|
|
476
474
|
//#endregion
|
|
477
475
|
//#region ../renderer/src/renderers/video.ts
|
|
478
|
-
function
|
|
476
|
+
function Ne(e, t) {
|
|
479
477
|
if (t) return t;
|
|
480
478
|
if (!e) return null;
|
|
481
479
|
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})/]) {
|
|
@@ -485,18 +483,18 @@ function je(e, t) {
|
|
|
485
483
|
let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
|
|
486
484
|
return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
|
|
487
485
|
}
|
|
488
|
-
function
|
|
489
|
-
if (
|
|
490
|
-
let n =
|
|
486
|
+
function Pe(e, t) {
|
|
487
|
+
if (w(e)) return "";
|
|
488
|
+
let n = Ne(e.url, e.thumbnailUrl);
|
|
491
489
|
if (!n) return "";
|
|
492
|
-
let r =
|
|
490
|
+
let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = z(e.height), s = T(e);
|
|
493
491
|
return `<mj-image
|
|
494
|
-
src="${
|
|
495
|
-
alt="${
|
|
492
|
+
src="${N(n)}"
|
|
493
|
+
alt="${N(e.alt)}"
|
|
496
494
|
width="${a}"${o}
|
|
497
495
|
align="${e.align}"
|
|
498
496
|
padding="${r}"
|
|
499
|
-
href="${
|
|
497
|
+
href="${N(e.url)}"
|
|
500
498
|
target="_blank"
|
|
501
499
|
rel="noopener"${i}${s}
|
|
502
500
|
/>`;
|
|
@@ -504,58 +502,60 @@ function Me(e, t) {
|
|
|
504
502
|
//#endregion
|
|
505
503
|
//#region ../renderer/src/renderers/index.ts
|
|
506
504
|
function Y(t, r) {
|
|
507
|
-
let
|
|
508
|
-
return
|
|
505
|
+
let i = r.blockRenderers[t.type];
|
|
506
|
+
return i ? i(t, r) : h(t) ? je(t, r, Y) : l(t) ? se(t, r) : p(t) ? ue(t, r) : u(t) ? de(t, r) : a(t) ? fe(t, r) : n(t) ? _e(t, r) : m(t) ? ve(t, r) : e(t) ? ye(t, r) : s(t) ? be(t, r) : g(t) ? xe(t, r) : ee(t) ? Te(t, r) : f(t) ? Pe(t, r) : o(t) ? Ae(t, r) : w(t) ? "" : k(t);
|
|
509
507
|
}
|
|
510
508
|
//#endregion
|
|
511
509
|
//#region ../renderer/src/index.ts
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
510
|
+
var Fe = `.${G} a { display: block !important; }`;
|
|
511
|
+
async function Ie(e, n) {
|
|
512
|
+
let i = n?.layout ? c(n.layout, e) : (te(e), r(e), e), a = n?.customFonts ?? [], o = n?.defaultFallbackFont ?? "Arial, sans-serif", s = n?.allowHtmlBlocks ?? !0, l = Re(n?.socialIconsBaseUrl ?? S), u = await Ve(i, n?.renderCustomBlock), d = He(i, n?.getCustomBlockStylesheet), f = t(i.settings), p = new C(i.settings.width, a, o, s, u, l, n?.blockRenderers ?? {}, f), m = Q(i.blocks, s), h = p.resolveFontFamily(i.settings.fontFamily), ee = i.settings.backgroundColor, g = i.settings.textColor ? ` color="${N(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? P(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = m.map((e) => X(e, p)).filter((e) => e !== "").join("\n"), b = Be(a), ne = ze(i.settings.preheaderText);
|
|
513
|
+
return `<mjml lang="${N(i.settings.locale)}" dir="${N(f)}">
|
|
514
|
+
<mj-head>${ne}
|
|
516
515
|
<mj-attributes>
|
|
517
516
|
<mj-all font-family="${h}" />
|
|
518
|
-
<mj-text font-size="14px"${
|
|
517
|
+
<mj-text font-size="14px"${g} />
|
|
519
518
|
<mj-section padding="0" />
|
|
520
519
|
<mj-column padding="0" />
|
|
521
520
|
<mj-image fluid-on-mobile="true" />
|
|
522
|
-
</mj-attributes>${
|
|
521
|
+
</mj-attributes>${b}
|
|
523
522
|
<mj-style inline="inline">
|
|
524
|
-
${
|
|
523
|
+
${ae(oe(m), f)}
|
|
524
|
+
${Fe}
|
|
525
525
|
</mj-style>
|
|
526
526
|
<mj-style>
|
|
527
|
-
a { color: ${
|
|
527
|
+
a { color: ${_}; text-decoration: ${v}; }
|
|
528
528
|
@media only screen and (max-width: 480px) {
|
|
529
529
|
.tpl-hide-mobile { display: none !important; mso-hide: all !important; }
|
|
530
530
|
}
|
|
531
531
|
@media only screen and (min-width: 481px) {
|
|
532
532
|
.tpl-hide-desktop { display: none !important; mso-hide: all !important; }
|
|
533
533
|
}
|
|
534
|
-
</mj-style>${
|
|
534
|
+
</mj-style>${Ue(d)}
|
|
535
535
|
</mj-head>
|
|
536
|
-
<mj-body width="${p.containerWidth}px" background-color="${
|
|
537
|
-
${
|
|
536
|
+
<mj-body width="${p.containerWidth}px" background-color="${ee}">
|
|
537
|
+
${y}
|
|
538
538
|
</mj-body>
|
|
539
539
|
</mjml>`;
|
|
540
540
|
}
|
|
541
541
|
function X(e, t) {
|
|
542
|
-
if (
|
|
542
|
+
if (_(e)) return J(e, Z(Q(e.children, t.allowHtmlBlocks).map((e) => X(e, t)).filter((e) => e !== "").join("\n"), {
|
|
543
543
|
backgroundColor: e.styles.backgroundColor,
|
|
544
544
|
padding: e.styles.padding,
|
|
545
545
|
borderRadius: e.borderRadius
|
|
546
546
|
}, t.contentDirection));
|
|
547
|
-
if (
|
|
547
|
+
if (h(e)) {
|
|
548
548
|
let n = Y(e, t);
|
|
549
549
|
return J(e, e.wrapper && n !== "" ? Z(n, e.wrapper, t.contentDirection) : n);
|
|
550
550
|
}
|
|
551
|
-
return J(e,
|
|
551
|
+
return J(e, Le(Y(e, t), t.contentDirection));
|
|
552
552
|
}
|
|
553
553
|
function Z(e, t, n) {
|
|
554
|
-
return `<mj-wrapper${
|
|
554
|
+
return `<mj-wrapper${R(t.backgroundColor, "native")}${` padding="${t.padding ? L(t.padding) : "0"}"`}${V(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
|
|
555
555
|
${e}
|
|
556
556
|
</mj-wrapper>`;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Le(e, t) {
|
|
559
559
|
if (e === "") return "";
|
|
560
560
|
let n = t === "rtl" ? " direction=\"rtl\"" : "";
|
|
561
561
|
return `<mj-section${n}>
|
|
@@ -564,21 +564,21 @@ ${e}
|
|
|
564
564
|
</mj-column>
|
|
565
565
|
</mj-section>`;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Re(e) {
|
|
568
568
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function ze(e) {
|
|
571
571
|
if (!e) return "";
|
|
572
572
|
let t = e.trim();
|
|
573
|
-
return t === "" ? "" : `\n <mj-preview>${
|
|
573
|
+
return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${
|
|
575
|
+
function Be(e) {
|
|
576
|
+
return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
|
|
577
577
|
}
|
|
578
578
|
function Q(e, t) {
|
|
579
579
|
return t ? e : e.filter((e) => e.type !== "html");
|
|
580
580
|
}
|
|
581
|
-
async function
|
|
581
|
+
async function Ve(e, t) {
|
|
582
582
|
let n = /* @__PURE__ */ new Map();
|
|
583
583
|
if (!t) return n;
|
|
584
584
|
let r = [];
|
|
@@ -588,16 +588,11 @@ async function Re(e, t) {
|
|
|
588
588
|
return n;
|
|
589
589
|
}
|
|
590
590
|
function $(e, t) {
|
|
591
|
-
for (let n of e)
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
continue;
|
|
595
|
-
}
|
|
596
|
-
if (g(n)) for (let e of n.children) $(e, t);
|
|
597
|
-
else y(n) && $(n.children, t);
|
|
598
|
-
}
|
|
591
|
+
for (let n of e) if (o(n)) t.push(n);
|
|
592
|
+
else if (h(n)) for (let e of n.children) $(e, t);
|
|
593
|
+
else _(n) && $(n.children, t);
|
|
599
594
|
}
|
|
600
|
-
function
|
|
595
|
+
function He(e, t) {
|
|
601
596
|
if (!t) return [];
|
|
602
597
|
let n = [];
|
|
603
598
|
if ($(e.blocks, n), n.length === 0) return [];
|
|
@@ -612,10 +607,10 @@ function ze(e, t) {
|
|
|
612
607
|
}
|
|
613
608
|
return a;
|
|
614
609
|
}
|
|
615
|
-
function
|
|
610
|
+
function Ue(e) {
|
|
616
611
|
return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
|
|
617
612
|
}
|
|
618
613
|
//#endregion
|
|
619
|
-
export {
|
|
614
|
+
export { G as BUTTON_FULL_WIDTH_CSS_CLASS, S as DEFAULT_SOCIAL_ICONS_BASE_URL, H as RICH_TEXT_CSS_CLASS, C as RenderContext, D as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, N as escapeAttr, M as escapeHtml, T as getCssClassAttr, E as getCssClasses, K as getWidthPercentages, q as getWidthPixels, w as isHiddenOnAll, Y as renderBlock, Ie as renderToMjml, k as renderUnrenderableBlock, W as resolveParagraphGap, U as richTextGapClass, L as toPaddingString };
|
|
620
615
|
|
|
621
|
-
//# sourceMappingURL=src-
|
|
616
|
+
//# sourceMappingURL=src-CkXmV2I2.js.map
|