@templatical/editor 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
  4. package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
  5. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-BazGNMqN.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
  18. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
  34. package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
  38. package/dist/WrapperBlock-BOABSX9W.js +46 -0
  39. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-4E1U8f99.js} +5 -5
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-WIBiBrGy.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
  117. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
  118. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
  121. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
  125. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
  127. package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
  136. package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
  137. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
  138. package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
  140. package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
  142. package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
  144. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
  146. package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
  147. package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
  148. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
  152. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
  153. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
  154. package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
  156. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
  158. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
  159. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
  164. package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  168. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  169. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  170. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  171. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  172. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  173. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
  174. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
  175. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  176. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  177. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  178. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  179. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
  183. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  184. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  185. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
  186. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +602 -580
  191. package/dist/cdn/editor.js.map +1 -1
  192. package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
  193. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
  194. package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
  195. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
  196. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
  197. package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
  198. package/dist/{cloud-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-C8gpPsSi.js} +16 -7
  201. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
  202. package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
  203. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  204. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  205. package/dist/dist-BPFcLKTw.js +5 -0
  206. package/dist/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
  207. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  208. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  209. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  210. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  211. package/dist/dist-D7Yj7E-F.js +5 -0
  212. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  213. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  214. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  215. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  216. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  217. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  218. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
  219. package/dist/en-CC-57eC_.js +1 -0
  220. package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
  221. package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
  222. package/dist/{extensions-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
  223. package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
  224. package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
  225. package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
  226. package/dist/index.d.ts +92 -20
  227. package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
  228. package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
  229. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  230. package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
  231. package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
  232. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
  233. package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
  234. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
  235. package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
  236. package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
  237. package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
  238. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -3
  239. package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
  240. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
  241. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  242. package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
  243. package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
  244. package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
  245. package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
  246. package/dist/socialIcons-BctavKBN.js +1180 -0
  247. package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  250. package/dist/templatical-editor.js +509 -487
  251. package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
  252. package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
  253. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
  254. package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
  255. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  256. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  257. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
  258. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  259. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  260. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/withCurrentFont-B4YnsG_2.js +19 -0
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +24 -24
  268. package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js.map +0 -1
  273. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  274. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  275. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.js.map +0 -1
  283. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  284. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  285. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  286. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  287. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  288. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  289. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  290. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  291. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  292. package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
  293. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  294. package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
  295. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  296. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  297. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  298. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  299. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  302. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  303. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  304. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  305. package/dist/dist-CFC4pg2o.js +0 -5
  306. package/dist/dist-j2FavQmU.js +0 -5
  307. package/dist/en-Bk4iCfjp.js +0 -1
  308. package/dist/socialIcons-CvAixjj8.js +0 -1126
  309. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,10 +1,10 @@
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";
1
+ import { At as e, C as t, D as n, E as r, Mt as i, Nt as a, Ot as o, S as s, T as c, Tt as l, X as u, _t as d, at as f, b as p, ct as m, dt as h, ft as g, ht as _, it as v, kt as y, mt as b, nt as x, ot as S, pt as ee, rt as te, st as ne, tt as re, ut as ie, w as ae, x as C } from "./src-BnJlDuyB.js";
2
2
  //#endregion
3
3
  //#region ../renderer/src/render-context.ts
4
- var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
+ var w = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
5
  name: "@templatical/renderer",
6
6
  description: "Render Templatical email templates to MJML",
7
- version: "0.45.0",
7
+ version: "0.47.0",
8
8
  bugs: "https://github.com/templatical/sdk/issues",
9
9
  dependencies: { "@templatical/types": "workspace:*" },
10
10
  devDependencies: {
@@ -12,7 +12,7 @@ var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
12
12
  "@resvg/resvg-js": "^2.6.2",
13
13
  mjml: "^5.4.1",
14
14
  typescript: "^6.0.3",
15
- vitest: "^5.0.3"
15
+ vitest: "^5.0.4"
16
16
  },
17
17
  exports: { ".": {
18
18
  types: "./dist/index.d.ts",
@@ -43,16 +43,7 @@ var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
43
43
  },
44
44
  type: "module",
45
45
  types: "./dist/index.d.ts"
46
- }.version}/assets/social`, re = {
47
- arial: "Arial, sans-serif",
48
- helvetica: "Helvetica, sans-serif",
49
- georgia: "Georgia, serif",
50
- "times new roman": "'Times New Roman', serif",
51
- verdana: "Verdana, sans-serif",
52
- "trebuchet ms": "'Trebuchet MS', sans-serif",
53
- "courier new": "'Courier New', monospace",
54
- tahoma: "Tahoma, sans-serif"
55
- }, C = class e {
46
+ }.version}/assets/social`, T = class e {
56
47
  containerWidth;
57
48
  customFonts;
58
49
  defaultFallbackFont;
@@ -61,31 +52,30 @@ var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
61
52
  socialIconsBaseUrl;
62
53
  blockRenderers;
63
54
  contentDirection;
64
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = S, o = {}, s = "ltr") {
55
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = w, o = {}, s = "ltr") {
65
56
  this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s;
66
57
  }
67
58
  withContainerWidth(t) {
68
59
  return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection);
69
60
  }
70
61
  resolveFontFamily(e) {
71
- for (let t of this.customFonts) if (t.name.toLowerCase() === e.toLowerCase()) {
72
- let e = t.fallback ?? this.defaultFallbackFont;
73
- return `'${t.name}', ${e}`;
74
- }
75
- return re[e.toLowerCase()] || e;
62
+ return p(e, {
63
+ customFonts: this.customFonts,
64
+ defaultFallback: this.defaultFallbackFont
65
+ });
76
66
  }
77
67
  };
78
68
  //#endregion
79
69
  //#region ../renderer/src/visibility.ts
80
- function w(e) {
70
+ function E(e) {
81
71
  let t = e.visibility;
82
72
  return t ? !t.desktop && !t.mobile : !1;
83
73
  }
84
- function T(e, t = []) {
85
- let n = [E(e), ...t].filter((e) => e !== "").join(" ");
74
+ function D(e, t = []) {
75
+ let n = [O(e), ...t].filter((e) => e !== "").join(" ");
86
76
  return n === "" ? "" : ` css-class="${n}"`;
87
77
  }
88
- function E(e) {
78
+ function O(e) {
89
79
  let t = e.visibility;
90
80
  if (!t) return "";
91
81
  let n = [];
@@ -93,94 +83,102 @@ function E(e) {
93
83
  }
94
84
  //#endregion
95
85
  //#region ../renderer/src/unrenderable.ts
96
- var D = "templatical:unrenderable-block";
97
- function O(e) {
86
+ var k = "templatical:unrenderable-block";
87
+ function A(e) {
98
88
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
99
89
  }
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>`;
90
+ function oe(e) {
91
+ 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><!-- ${k} type="${A(e.type)}" id="${A(e.id)}" --></mj-raw>`;
102
92
  }
103
93
  //#endregion
104
94
  //#region ../renderer/src/escape.ts
105
- var A = {
95
+ var j = {
106
96
  "&": "&amp;",
107
97
  "<": "&lt;",
108
98
  ">": "&gt;",
109
99
  "\"": "&quot;",
110
100
  "'": "&#039;"
111
- }, j = /[&<>"']/g;
101
+ }, se = /[&<>"']/g;
112
102
  function M(e) {
113
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
103
+ return e === "" ? "" : e.replace(se, (e) => j[e] ?? e);
114
104
  }
115
105
  function N(e) {
116
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
106
+ return e === "" ? "" : e.replace(se, (e) => j[e] ?? e);
117
107
  }
118
108
  function P(e) {
119
109
  return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
120
110
  }
111
+ var ce = /[&<>"]/g;
121
112
  function F(e) {
122
- return e === "" ? "" : ie(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
123
- }
124
- function ie(e, t) {
125
- let n = "", r = 0;
126
- for (; r < e.length;) {
127
- let i = e.indexOf("<span", r);
128
- if (i === -1) {
129
- n += e.substring(r);
113
+ return e.replace(ce, (e) => j[e] ?? e);
114
+ }
115
+ function I(e) {
116
+ return e === "" ? "" : le(e, (e) => L(e, "data-merge-tag") ?? L(e, "data-logic-merge-tag"));
117
+ }
118
+ function le(e, n) {
119
+ let r = "", i = 0;
120
+ for (; i < e.length;) {
121
+ let a = e.indexOf("<span", i);
122
+ if (a === -1) {
123
+ r += e.substring(i);
130
124
  break;
131
125
  }
132
- let a = e[i + 5];
133
- if (a !== ">" && a !== " " && a !== " " && a !== "\n" && a !== "\r" && a !== "/") {
134
- n += e.substring(r, i + 5), r = i + 5;
126
+ let o = e[a + 5];
127
+ if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
128
+ r += e.substring(i, a + 5), i = a + 5;
135
129
  continue;
136
130
  }
137
- let o = v(e, i + 5);
138
- if (o === -1) {
139
- n += e.substring(r);
131
+ let s = t(e, a + 5);
132
+ if (s === -1) {
133
+ r += e.substring(i);
140
134
  break;
141
135
  }
142
- let s = e.indexOf("</span>", o + 1);
143
- if (s === -1) {
144
- n += e.substring(r);
136
+ let c = e.indexOf("</span>", s + 1);
137
+ if (c === -1) {
138
+ r += e.substring(i);
145
139
  break;
146
140
  }
147
- let c = t(e.substring(i + 5, o));
148
- c === null ? (n += e.substring(r, i + 5), r = i + 5) : (n += e.substring(r, i), n += c, r = s + 7);
141
+ let l = n(e.substring(a + 5, s));
142
+ l === null ? (r += e.substring(i, a + 5), i = a + 5) : (r += e.substring(i, a), r += l, i = c + 7);
149
143
  }
150
- return n;
144
+ return r;
151
145
  }
152
- function I(e, t) {
153
- return ne(e, t);
146
+ function L(e, t) {
147
+ return ae(e, t);
154
148
  }
155
149
  //#endregion
156
150
  //#region ../renderer/src/padding.ts
157
- function L(e) {
151
+ function R(e) {
158
152
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
159
153
  }
160
154
  //#endregion
161
155
  //#region ../renderer/src/utils.ts
162
- function R(e, t) {
156
+ function z(e, t) {
163
157
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
164
158
  }
165
- function z(e) {
166
- return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
167
- }
168
159
  function B(e) {
169
- return Object.entries(b(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
160
+ return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
170
161
  }
171
162
  function V(e) {
172
- let t = i(e);
163
+ return Object.entries(i(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
164
+ }
165
+ function H(e) {
166
+ let t = a(e);
173
167
  return t === null ? "" : ` border-radius="${t}"`;
174
168
  }
169
+ function U(e) {
170
+ let t = l(e);
171
+ return t === null ? "" : ` background-url="${N(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
172
+ }
175
173
  //#endregion
176
174
  //#region ../renderer/src/rich-text.ts
177
- var H = "tpl-rich-text";
178
- function U(e) {
179
- return `${H}-${e}`;
175
+ var W = "tpl-rich-text";
176
+ function G(e) {
177
+ return `${W}-${e}`;
180
178
  }
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)}`;
179
+ function ue(e, t = "ltr") {
180
+ let n = y, r = `.${W}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
181
+ let t = `.${G(e)}`;
184
182
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
185
183
  }), a = t === "rtl" ? "padding-right" : "padding-left";
186
184
  return [
@@ -189,12 +187,12 @@ function ae(e, t = "ltr") {
189
187
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
190
188
  ].join("\n ");
191
189
  }
192
- function W(e) {
193
- return e ?? x.paragraphGap;
190
+ function K(e) {
191
+ return e ?? y.paragraphGap;
194
192
  }
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);
193
+ function de(e) {
194
+ let t = [y.paragraphGap], n = (e) => {
195
+ if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), m(e)) for (let t of e.children) for (let e of t) n(e);
198
196
  else if (_(e)) for (let t of e.children) n(t);
199
197
  };
200
198
  for (let t of e) n(t);
@@ -202,28 +200,28 @@ function oe(e) {
202
200
  }
203
201
  //#endregion
204
202
  //#region ../renderer/src/renderers/title.ts
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}`;
203
+ function fe(t, n) {
204
+ if (E(t)) return "";
205
+ let r = R(t.styles.padding), i = z(t.styles.backgroundColor, "container"), a = pe(C(I(t.content))), s = o[t.level] ?? o[2], c = t.color ? `\n color="${N(t.color)}"` : "", l = t.textAlign, u = me(t.fontFamily, n), d = D(t, [W, G(K(void 0))]), f = `h${o[t.level] ? t.level : 2}`;
208
206
  return `<mj-text
209
- font-size="${a}px"${o}
210
- align="${s}"
211
- line-height="1.3"
212
- padding="${n}"${r}${c}${l}
213
- ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${u}></mj-text>`;
207
+ font-size="${s}px"${c}
208
+ align="${l}"
209
+ line-height="${e}"
210
+ padding="${r}"${i}${u}${d}
211
+ ><${f} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${a}</${f}></mj-text>`;
214
212
  }
215
- function ce(e) {
213
+ function pe(e) {
216
214
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
217
215
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
218
216
  }
219
- function le(e, t) {
220
- return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
217
+ function me(e, t) {
218
+ return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
221
219
  }
222
220
  //#endregion
223
221
  //#region ../renderer/src/renderers/paragraph.ts
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))]);
222
+ function he(e, t) {
223
+ if (E(e) || s(e.content)) return "";
224
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = C(I(e.content)), a = D(e, [W, G(K(e.paragraphSpacing))]);
227
225
  return `<mj-text
228
226
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
229
227
  padding="${n}"${r}${a}
@@ -231,9 +229,9 @@ function ue(e, t) {
231
229
  }
232
230
  //#endregion
233
231
  //#region ../renderer/src/renderers/image.ts
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 = "";
232
+ function ge(e, t) {
233
+ if (E(e) || e.src === "") return "";
234
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = B(e.height), o = D(e), s = H(e.borderRadius), c = V(e.border), l = "";
237
235
  e.linkUrl && (l = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (l += " target=\"_blank\" rel=\"noopener\""));
238
236
  let u = N(e.src), d = e.decorative === !0;
239
237
  return `<mj-image
@@ -246,69 +244,69 @@ function de(e, t) {
246
244
  }
247
245
  //#endregion
248
246
  //#region ../renderer/src/renderers/button.ts
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] : []);
247
+ var q = "tpl-button-full";
248
+ function _e(e, t) {
249
+ if (E(e)) return "";
250
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : N(e.url), o = a === "" ? "" : ` href="${a}"`, s = ve(e.backgroundColor), c = N(e.textColor), l = e.fontSize, u = be(e.borderRadius), d = M(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = ye(e.fontFamily, t), m = xe(e.width), h = D(e, e.width === "full" ? [q] : []);
253
251
  return `<mj-button${o}${f}
254
252
  background-color="${s}"
255
253
  color="${c}"
256
254
  font-size="${l}px"
257
255
  font-weight="bold"
258
- border-radius="${u}"${B(e.border)}
256
+ border-radius="${u}"${V(e.border)}
259
257
  inner-padding="${i}"
260
258
  align="${e.align ?? "center"}"
261
259
  padding="${n}"${r}${p}${m}${h}
262
260
  >${d}</mj-button>`;
263
261
  }
264
- function pe(e) {
262
+ function ve(e) {
265
263
  return e.trim() === "" ? "transparent" : N(e);
266
264
  }
267
- function me(e, t) {
268
- return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
265
+ function ye(e, t) {
266
+ return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
269
267
  }
270
- function he(e) {
271
- return typeof e == "number" ? `${e}px` : i(e) ?? "0px";
268
+ function be(e) {
269
+ return typeof e == "number" ? `${e}px` : a(e) ?? "0px";
272
270
  }
273
- function ge(e) {
271
+ function xe(e) {
274
272
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
275
273
  }
276
274
  //#endregion
277
275
  //#region ../renderer/src/renderers/divider.ts
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;
276
+ function Se(e, t) {
277
+ if (E(e)) return "";
278
+ let n = R(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;
281
279
  return `<mj-divider
282
280
  border-width="${e.thickness}px"
283
281
  border-style="${e.lineStyle}"
284
282
  border-color="${N(e.color)}"
285
283
  width="${i}"
286
- padding="${n}"${r}${T(e)}
284
+ padding="${n}"${r}${D(e)}
287
285
  />`;
288
286
  }
289
287
  //#endregion
290
288
  //#region ../renderer/src/renderers/spacer.ts
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)} />`;
289
+ function Ce(e, t) {
290
+ return E(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : ""}${D(e)} />`;
293
291
  }
294
292
  //#endregion
295
293
  //#region ../renderer/src/renderers/html.ts
296
- function ye(e, t) {
297
- if (w(e) || !t.allowHtmlBlocks) return "";
294
+ function we(e, t) {
295
+ if (E(e) || !t.allowHtmlBlocks) return "";
298
296
  let n = e.content;
299
297
  if (n === "") return "";
300
- let r = T(e);
301
- return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
298
+ let r = D(e);
299
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
302
300
  ${n}
303
301
  </mj-text>`;
304
302
  }
305
303
  //#endregion
306
304
  //#region ../renderer/src/renderers/social.ts
307
- function be(e, t) {
308
- if (w(e)) return "";
305
+ function Te(e, t) {
306
+ if (E(e)) return "";
309
307
  let n = e.icons;
310
308
  if (n.length === 0) return "";
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;
309
+ let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", a = D(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = d(c, e.iconTone), u = e.spacing, f;
312
310
  switch (s) {
313
311
  case "small":
314
312
  f = 24;
@@ -346,76 +344,76 @@ ${n.map((e, n) => {
346
344
  }
347
345
  //#endregion
348
346
  //#region ../renderer/src/renderers/menu.ts
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;
347
+ function Ee(e, t) {
348
+ if (E(e) || e.items.length === 0) return "";
349
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = D(e), a = ke(e.fontFamily, t), o = e.textAlign;
352
350
  return `<mj-text
353
351
  font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
354
352
  align="${o}"
355
353
  line-height="1.5"
356
354
  padding="${n}"${r}${a}${i}
357
- >${Se(e)}</mj-text>`;
355
+ >${De(e)}</mj-text>`;
358
356
  }
359
- function Se(e) {
357
+ function De(e) {
360
358
  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>`);
359
+ for (let e = 0; e < s; e++) o.push(Oe(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
362
360
  return o.join("");
363
361
  }
364
- function Ce(e, t) {
362
+ function Oe(e, t) {
365
363
  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
364
  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>`;
367
365
  }
368
- function we(e, t) {
369
- return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
366
+ function ke(e, t) {
367
+ return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
370
368
  }
371
369
  //#endregion
372
370
  //#region ../renderer/src/renderers/table.ts
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);
371
+ function Ae(e, t) {
372
+ if (E(e) || e.rows.length === 0) return "";
373
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = D(e), a = Pe(e.fontFamily, t);
376
374
  return `<mj-text
377
375
  font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
378
376
  align="${e.textAlign}"
379
377
  line-height="1.5"
380
378
  padding="${n}"${r}${a}${i}
381
- >${Ee(e)}</mj-text>`;
379
+ >${je(e)}</mj-text>`;
382
380
  }
383
- function Ee(e) {
381
+ function je(e) {
384
382
  let t = P(e.borderColor), n = e.borderWidth, r = "";
385
383
  for (let i = 0; i < e.rows.length; i++) {
386
384
  let a = e.rows[i];
387
- r += De(a, e, e.hasHeaderRow && i === 0, t, n);
385
+ r += Me(a, e, e.hasHeaderRow && i === 0, t, n);
388
386
  }
389
387
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
390
388
  }
391
- function De(e, t, n, r, i) {
389
+ function Me(e, t, n, r, i) {
392
390
  let a = "";
393
- for (let o of e.cells) a += Oe(o, t, n, r, i);
391
+ for (let o of e.cells) a += Ne(o, t, n, r, i);
394
392
  return `<tr>${a}</tr>`;
395
393
  }
396
- function Oe(e, t, n, r, i) {
394
+ function Ne(e, t, n, r, i) {
397
395
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
398
396
  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";
397
+ let s = o.join("; "), c = M(I(e.content)), l = n ? "th" : "td";
400
398
  return `<${l} style="${s}">${c}</${l}>`;
401
399
  }
402
- function ke(e, t) {
403
- return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
400
+ function Pe(e, t) {
401
+ return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
404
402
  }
405
403
  //#endregion
406
404
  //#region ../renderer/src/renderers/custom.ts
407
- function Ae(e, t) {
408
- if (w(e)) return "";
405
+ function Fe(e, t) {
406
+ if (E(e)) return "";
409
407
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
410
408
  if (!n || n === "") return "";
411
- let r = T(e);
412
- return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
409
+ let r = D(e);
410
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
413
411
  ${n}
414
412
  </mj-text>`;
415
413
  }
416
414
  //#endregion
417
415
  //#region ../renderer/src/columns.ts
418
- function K(e) {
416
+ function J(e) {
419
417
  switch (e) {
420
418
  case "2": return ["50%", "50%"];
421
419
  case "3": return [
@@ -428,7 +426,7 @@ function K(e) {
428
426
  default: return ["100%"];
429
427
  }
430
428
  }
431
- function q(e, t) {
429
+ function Ie(e, t) {
432
430
  switch (e) {
433
431
  case "2": return [t * .5, t * .5];
434
432
  case "3": return [
@@ -443,7 +441,7 @@ function q(e, t) {
443
441
  }
444
442
  //#endregion
445
443
  //#region ../renderer/src/display-condition.ts
446
- function J(e, t) {
444
+ function Y(e, t) {
447
445
  if (t === "") return "";
448
446
  let n = e.displayCondition;
449
447
  return n ? `<mj-raw>${n.before}</mj-raw>
@@ -452,28 +450,28 @@ function J(e, t) {
452
450
  }
453
451
  //#endregion
454
452
  //#region ../renderer/src/renderers/section.ts
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 = [];
458
- for (let e = 0; e < f.length; e++) {
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");
460
- p.push(`<mj-column width="${o}"${d}>
453
+ function Le(e, t, n) {
454
+ if (E(e)) return "";
455
+ let r = e.columns, i = J(r), a = Ie(r, t.containerWidth), o = R(e.styles.padding), s = z(e.styles.backgroundColor, "native"), c = U(e.backgroundImage), l = D(e), u = H(e.borderRadius), d = V(e.border), f = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", p = e.children, h = [];
456
+ for (let e = 0; e < p.length; e++) {
457
+ let r = p[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c = Re(r, t.allowHtmlBlocks).filter((e) => !m(e)), l = t.withContainerWidth(s), u = c.map((e) => Y(e, n(e, l))).filter((e) => e !== "").join("\n");
458
+ h.push(`<mj-column width="${o}"${f}>
461
459
  ${u === "" ? "<mj-text>&nbsp;</mj-text>" : u}
462
460
  </mj-column>`);
463
461
  }
464
- let m = p.join("\n");
465
- return `<mj-section${s} padding="${o}"${u}${l}${c}${d}>
466
- ${e.stackOnMobile === !1 && p.length > 1 ? `<mj-group${d}>
467
- ${m}
468
- </mj-group>` : m}
462
+ let g = h.join("\n");
463
+ return `<mj-section${s}${c} padding="${o}"${d}${u}${l}${f}>
464
+ ${e.stackOnMobile === !1 && h.length > 1 ? `<mj-group${f}>
465
+ ${g}
466
+ </mj-group>` : g}
469
467
  </mj-section>`;
470
468
  }
471
- function Me(e, t) {
469
+ function Re(e, t) {
472
470
  return t ? e : e.filter((e) => e.type !== "html");
473
471
  }
474
472
  //#endregion
475
473
  //#region ../renderer/src/renderers/video.ts
476
- function Ne(e, t) {
474
+ function ze(e, t) {
477
475
  if (t) return t;
478
476
  if (!e) return null;
479
477
  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})/]) {
@@ -483,11 +481,11 @@ function Ne(e, t) {
483
481
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
484
482
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
485
483
  }
486
- function Pe(e, t) {
487
- if (w(e)) return "";
488
- let n = Ne(e.url, e.thumbnailUrl);
484
+ function Be(e, t) {
485
+ if (E(e)) return "";
486
+ let n = ze(e.url, e.thumbnailUrl);
489
487
  if (!n) return "";
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);
488
+ let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = B(e.height), s = D(e);
491
489
  return `<mj-image
492
490
  src="${N(n)}"
493
491
  alt="${N(e.alt)}"
@@ -501,61 +499,62 @@ function Pe(e, t) {
501
499
  }
502
500
  //#endregion
503
501
  //#region ../renderer/src/renderers/index.ts
504
- function Y(t, r) {
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);
502
+ function X(e, t) {
503
+ let n = t.blockRenderers[e.type];
504
+ return n ? n(e, t) : m(e) ? Le(e, t, X) : ee(e) ? fe(e, t) : ne(e) ? he(e, t) : f(e) ? ge(e, t) : re(e) ? _e(e, t) : te(e) ? Se(e, t) : h(e) ? Ce(e, t) : v(e) ? we(e, t) : ie(e) ? Te(e, t) : S(e) ? Ee(e, t) : g(e) ? Ae(e, t) : b(e) ? Be(e, t) : x(e) ? Fe(e, t) : E(e) ? "" : oe(e);
507
505
  }
508
506
  //#endregion
509
507
  //#region ../renderer/src/index.ts
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}
508
+ var Ve = `.${q} a { display: block !important; }`;
509
+ async function He(e, t) {
510
+ let i = t?.layout ? c(t.layout, e) : (r(e), n(e), e), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, l = Ge(t?.socialIconsBaseUrl ?? w), d = await Je(i, t?.renderCustomBlock), f = Ye(i, t?.getCustomBlockStylesheet), p = u(i.settings), m = new T(i.settings.width, a, o, s, d, l, t?.blockRenderers ?? {}, p), h = Q(i.blocks, s), g = m.resolveFontFamily(i.settings.fontFamily), _ = i.settings.backgroundColor, v = i.settings.textColor ? ` color="${N(i.settings.textColor)}"` : "", y = i.settings.linkColor ? P(i.settings.linkColor) : "inherit", b = i.settings.linkUnderline ? "underline" : "none", x = h.map((e) => Ue(e, m)).filter((e) => e !== "").join("\n"), S = qe(a), ee = Ke(i.settings.preheaderText);
511
+ return `<mjml lang="${N(i.settings.locale)}" dir="${N(p)}">
512
+ <mj-head>${ee}
515
513
  <mj-attributes>
516
- <mj-all font-family="${h}" />
517
- <mj-text font-size="14px"${g} />
514
+ <mj-all font-family="${F(g)}" />
515
+ <mj-text font-size="14px"${v} />
518
516
  <mj-section padding="0" />
519
517
  <mj-column padding="0" />
520
518
  <mj-image fluid-on-mobile="true" />
521
- </mj-attributes>${b}
519
+ </mj-attributes>${S}
522
520
  <mj-style inline="inline">
523
- ${ae(oe(m), f)}
524
- ${Fe}
521
+ ${ue(de(h), p)}
522
+ ${Ve}
525
523
  </mj-style>
526
524
  <mj-style>
527
- a { color: ${_}; text-decoration: ${v}; }
525
+ a { color: ${y}; text-decoration: ${b}; }
528
526
  @media only screen and (max-width: 480px) {
529
527
  .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
530
528
  }
531
529
  @media only screen and (min-width: 481px) {
532
530
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
533
531
  }
534
- </mj-style>${Ue(d)}
532
+ </mj-style>${Xe(f)}
535
533
  </mj-head>
536
- <mj-body width="${p.containerWidth}px" background-color="${ee}">
537
- ${y}
534
+ <mj-body width="${m.containerWidth}px" background-color="${_}">
535
+ ${x}
538
536
  </mj-body>
539
537
  </mjml>`;
540
538
  }
541
- function X(e, t) {
542
- if (_(e)) return J(e, Z(Q(e.children, t.allowHtmlBlocks).map((e) => X(e, t)).filter((e) => e !== "").join("\n"), {
539
+ function Ue(e, t) {
540
+ if (_(e)) return Y(e, Z(Q(e.children, t.allowHtmlBlocks).map((e) => Ue(e, t)).filter((e) => e !== "").join("\n"), {
543
541
  backgroundColor: e.styles.backgroundColor,
544
542
  padding: e.styles.padding,
545
- borderRadius: e.borderRadius
543
+ borderRadius: e.borderRadius,
544
+ backgroundImage: e.backgroundImage
546
545
  }, t.contentDirection));
547
- if (h(e)) {
548
- let n = Y(e, t);
549
- return J(e, e.wrapper && n !== "" ? Z(n, e.wrapper, t.contentDirection) : n);
546
+ if (m(e)) {
547
+ let n = X(e, t);
548
+ return Y(e, e.wrapper && n !== "" ? Z(n, e.wrapper, t.contentDirection) : n);
550
549
  }
551
- return J(e, Le(Y(e, t), t.contentDirection));
550
+ return Y(e, We(X(e, t), t.contentDirection));
552
551
  }
553
552
  function Z(e, t, n) {
554
- return `<mj-wrapper${R(t.backgroundColor, "native")}${` padding="${t.padding ? L(t.padding) : "0"}"`}${V(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
553
+ return `<mj-wrapper${z(t.backgroundColor, "native")}${U(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${H(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
555
554
  ${e}
556
555
  </mj-wrapper>`;
557
556
  }
558
- function Le(e, t) {
557
+ function We(e, t) {
559
558
  if (e === "") return "";
560
559
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
561
560
  return `<mj-section${n}>
@@ -564,21 +563,21 @@ ${e}
564
563
  </mj-column>
565
564
  </mj-section>`;
566
565
  }
567
- function Re(e) {
566
+ function Ge(e) {
568
567
  return e.endsWith("/") ? e.slice(0, -1) : e;
569
568
  }
570
- function ze(e) {
569
+ function Ke(e) {
571
570
  if (!e) return "";
572
571
  let t = e.trim();
573
572
  return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
574
573
  }
575
- function Be(e) {
574
+ function qe(e) {
576
575
  return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
577
576
  }
578
577
  function Q(e, t) {
579
578
  return t ? e : e.filter((e) => e.type !== "html");
580
579
  }
581
- async function Ve(e, t) {
580
+ async function Je(e, t) {
582
581
  let n = /* @__PURE__ */ new Map();
583
582
  if (!t) return n;
584
583
  let r = [];
@@ -588,29 +587,30 @@ async function Ve(e, t) {
588
587
  return n;
589
588
  }
590
589
  function $(e, t) {
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);
590
+ for (let n of e) if (x(n)) t.push(n);
591
+ else if (m(n)) for (let e of n.children) $(e, t);
593
592
  else _(n) && $(n.children, t);
594
593
  }
595
- function He(e, t) {
596
- if (!t) return [];
594
+ function Ye(e, t) {
597
595
  let n = [];
598
596
  if ($(e.blocks, n), n.length === 0) return [];
599
- let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = [];
597
+ let r = /* @__PURE__ */ new Map();
598
+ if (!t) for (let e of n) e.renderedStylesheet && !r.has(e.customType) && r.set(e.customType, e.renderedStylesheet);
599
+ let i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = [];
600
600
  for (let e of n) {
601
- if (r.has(e.customType)) continue;
602
- r.add(e.customType);
603
- let n = t(e.customType);
601
+ if (i.has(e.customType)) continue;
602
+ i.add(e.customType);
603
+ let n = t ? t(e.customType) : r.get(e.customType);
604
604
  if (!n) continue;
605
- let o = n.trim();
606
- o === "" || i.has(o) || (i.add(o), a.push(o));
605
+ let s = n.trim();
606
+ s === "" || a.has(s) || (a.add(s), o.push(s));
607
607
  }
608
- return a;
608
+ return o;
609
609
  }
610
- function Ue(e) {
610
+ function Xe(e) {
611
611
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
612
612
  }
613
613
  //#endregion
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 };
614
+ export { q as BUTTON_FULL_WIDTH_CSS_CLASS, w as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, T as RenderContext, k as UNRENDERABLE_MARKER_PREFIX, I as convertMergeTagsToValues, N as escapeAttr, M as escapeHtml, D as getCssClassAttr, O as getCssClasses, J as getWidthPercentages, Ie as getWidthPixels, E as isHiddenOnAll, X as renderBlock, He as renderToMjml, oe as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, R as toPaddingString };
615
615
 
616
- //# sourceMappingURL=src-CkXmV2I2.js.map
616
+ //# sourceMappingURL=src-Bu0qBpbf.js.map