@templatical/editor 0.60.2 → 0.60.4

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 (194) hide show
  1. package/dist/{AiChatPanel-DPoq2Til.js → AiChatPanel-CjUnhJGB.js} +8 -8
  2. package/dist/{AiPanels-UdfhAzzu.js → AiPanels-DwI9KjjI.js} +1 -1
  3. package/dist/{AiRewriteMenu-Boor11-X.js → AiRewriteMenu-Bh1cIX8F.js} +6 -6
  4. package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-Bnkex45Y.js → BlockPreviewCanvas-C_N6f_FS.js} +3 -3
  6. package/dist/{CloudPanels-CJ-UuA_Y.js → CloudPanels-BS49EsuN.js} +3 -3
  7. package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
  8. package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
  9. package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BSLk23YP.js} +1 -1
  10. package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-L-DgP_kM.js} +10 -10
  11. package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-B6erqTbz.js} +3 -3
  12. package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
  13. package/dist/{LanguageMenu-S7L270RN.js → LanguageMenu-DsfCHdVi.js} +8 -8
  14. package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-BxR3xcLl.js} +2 -2
  15. package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
  16. package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
  17. package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
  18. package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
  19. package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
  20. package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-q6eeDD2l.js} +2 -2
  21. package/dist/{ParagraphEditor-CGUGIhJo.js → ParagraphEditor-25SNi_8O.js} +23 -23
  22. package/dist/{RestoreVersionDialog-P6pwVWGs.js → RestoreVersionDialog-BXtCxJF1.js} +3 -3
  23. package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
  24. package/dist/{SaveBlockDialog-SSD-GEXA.js → SaveBlockDialog-k1lxEBVW.js} +7 -7
  25. package/dist/{SavedBlocksBrowserModal-Cs6zBFlE.js → SavedBlocksBrowserModal-CV-8mDPj.js} +9 -9
  26. package/dist/{SavedBlocksPanels-JJAFQOQO.js → SavedBlocksPanels-9nZj1jG_.js} +1 -1
  27. package/dist/{SavedBlocksPickBar-DMOHjX7S.js → SavedBlocksPickBar-Dy6NN9tm.js} +2 -2
  28. package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DWxdUdM5.js} +6 -6
  29. package/dist/{TestEmailModal-Cbt5u2GF.js → TestEmailModal-BAkkZTaZ.js} +7 -7
  30. package/dist/{TestEmailPanel-BQNerB-E.js → TestEmailPanel-ccT2E3em.js} +1 -1
  31. package/dist/{TitleEditor-BuctoHHf.js → TitleEditor-B19dYnER.js} +9 -9
  32. package/dist/{Toolbar-Br0W6NE0.js → Toolbar-DxlZq_36.js} +27 -27
  33. package/dist/{TplModal-DJMLN1_R.js → TplModal-Bp2qPmQw.js} +1 -1
  34. package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
  35. package/dist/{VersionHistoryPanels-DvrD5VaM.js → VersionHistoryPanels-wAVDmhnP.js} +1 -1
  36. package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
  37. package/dist/{WrapperBlock-Cp0Mo8HA.js → WrapperBlock-DHnD6Exl.js} +2 -2
  38. package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-DTYmFRwb.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js.map → AiChatPanel-DTYmFRwb.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-BW9ze-6O.js} +2 -2
  43. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-BW9ze-6O.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js → AiRewriteMenu-B9b92d0R.js} +4 -4
  45. package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js.map → AiRewriteMenu-B9b92d0R.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
  47. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js → BlockPreviewCanvas-CLid1x0c.js} +4 -4
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js.map → BlockPreviewCanvas-CLid1x0c.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js → CloudPanels-D4dslsyk.js} +3 -3
  51. package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js.map → CloudPanels-D4dslsyk.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
  53. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
  55. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-BynxXJ-F.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-BynxXJ-F.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-C81N5Hwr.js} +2 -2
  59. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js.map → CommentsSidebar-C81N5Hwr.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-f1aqEba0.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-f1aqEba0.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
  63. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
  64. package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js → LanguageMenu-CJp7XdfG.js} +3 -3
  65. package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js.map → LanguageMenu-CJp7XdfG.js.map} +1 -1
  66. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-D5vZzcUj.js} +2 -2
  67. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js.map → LocaleNotices-D5vZzcUj.js.map} +1 -1
  68. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
  69. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
  70. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
  71. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
  73. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
  77. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DMXZgGUF.js} +3 -3
  79. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js.map → MergeTagTextarea-DMXZgGUF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js → ParagraphEditor-Ce7_Ix0K.js} +24 -24
  81. package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js.map → ParagraphEditor-Ce7_Ix0K.js.map} +1 -1
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js → RestoreVersionDialog-JmMLhN6G.js} +3 -3
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js.map → RestoreVersionDialog-JmMLhN6G.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
  85. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js → SaveBlockDialog-B-2amBN5.js} +6 -6
  87. package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js.map → SaveBlockDialog-B-2amBN5.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js → SavedBlocksBrowserModal-BR6fQ222.js} +6 -6
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js.map → SavedBlocksBrowserModal-BR6fQ222.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js → SavedBlocksPanels-DVNNshfr.js} +2 -2
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js.map → SavedBlocksPanels-DVNNshfr.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js → SavedBlocksPickBar-BfxLHLQV.js} +3 -3
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js.map → SavedBlocksPickBar-BfxLHLQV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-TMFrRV2c.js} +4 -4
  95. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-TMFrRV2c.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js → TestEmailModal-tTU35BKZ.js} +6 -6
  97. package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js.map → TestEmailModal-tTU35BKZ.js.map} +1 -1
  98. package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js → TestEmailPanel-BNJBVwx0.js} +2 -2
  99. package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js.map → TestEmailPanel-BNJBVwx0.js.map} +1 -1
  100. package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js → TitleEditor-BbscL_C1.js} +8 -8
  101. package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js.map → TitleEditor-BbscL_C1.js.map} +1 -1
  102. package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-BxzyS69X.js} +16 -16
  103. package/dist/cdn/chunks/{Toolbar-czJfutfE.js.map → Toolbar-BxzyS69X.js.map} +1 -1
  104. package/dist/cdn/chunks/{TplModal-CUF6ldtn.js → TplModal-Bzhc_l8y.js} +2 -2
  105. package/dist/cdn/chunks/{TplModal-CUF6ldtn.js.map → TplModal-Bzhc_l8y.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js → VersionHistoryPanels-Bbb1xUJs.js} +2 -2
  109. package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js.map → VersionHistoryPanels-Bbb1xUJs.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
  111. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
  112. package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js → WrapperBlock-BboijK5T.js} +3 -3
  113. package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js.map → WrapperBlock-BboijK5T.js.map} +1 -1
  114. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
  115. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
  116. package/dist/cdn/chunks/{composables-A-9pkE2t.js → composables-C77dGo-I.js} +7 -7
  117. package/dist/cdn/chunks/{composables-A-9pkE2t.js.map → composables-C77dGo-I.js.map} +1 -1
  118. package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
  119. package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
  120. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
  121. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
  122. package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
  123. package/dist/cdn/chunks/{extensions-BPZirXpF.js → extensions-Bq9nXmBP.js} +3 -3
  124. package/dist/cdn/chunks/{extensions-BPZirXpF.js.map → extensions-Bq9nXmBP.js.map} +1 -1
  125. package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
  126. package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
  127. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
  128. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
  129. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
  130. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
  131. package/dist/cdn/chunks/{src-CCQf19hy.js → src-1MSPRtI8.js} +105 -104
  132. package/dist/cdn/chunks/src-1MSPRtI8.js.map +1 -0
  133. package/dist/cdn/chunks/{tiptap-D9amDW4u.js → tiptap-DDhueoan.js} +3061 -3050
  134. package/dist/cdn/chunks/tiptap-DDhueoan.js.map +1 -0
  135. package/dist/cdn/editor.js +16 -16
  136. package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
  137. package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
  138. package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
  139. package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
  140. package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
  141. package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
  142. package/dist/{composables-CT0_xtqC.js → composables-Bu_OmyjT.js} +13 -13
  143. package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
  144. package/dist/{dist-BNrGwgev.js → dist-B1bGGOA0.js} +2 -2
  145. package/dist/{dist-BPVNNdTv.js → dist-C3ZVR_pd.js} +2 -2
  146. package/dist/{dist-C7YLw60i.js → dist-C8aVVj28.js} +2 -2
  147. package/dist/dist-CTzstDyz.js +4 -0
  148. package/dist/{dist-DoWk1r7z.js → dist-CcxrHURm.js} +1882 -1869
  149. package/dist/{dist-CuRjmtWu.js → dist-D41-1sSL.js} +6 -6
  150. package/dist/{dist-fDsB6dCL.js → dist-DRJhbfT9.js} +2 -2
  151. package/dist/{dist-COvAA64n.js → dist-DkQutATU.js} +2 -2
  152. package/dist/{dist-DG_AWt8v.js → dist-DyrUc7rM.js} +2 -2
  153. package/dist/{dist-DYtuc3jc.js → dist-p_84-Inl.js} +2 -2
  154. package/dist/{dist-CBnAqr27.js → dist-tG9_FTOs.js} +2 -2
  155. package/dist/dist-zQ8L1LNg.js +4 -0
  156. package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
  157. package/dist/en-CMswCXqE.js +1 -0
  158. package/dist/{extensions-C7OLgMEj.js → extensions-zHf8YFRw.js} +4 -4
  159. package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
  160. package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
  161. package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
  162. package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
  163. package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
  164. package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
  165. package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
  166. package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
  167. package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
  168. package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
  169. package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
  170. package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
  171. package/dist/sanitizeHtml-DxmFirMi.js +945 -0
  172. package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
  173. package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
  174. package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
  175. package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
  176. package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
  177. package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
  178. package/dist/templatical-editor.js +30 -30
  179. package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
  180. package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
  181. package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
  182. package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
  183. package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
  184. package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
  185. package/package.json +23 -23
  186. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
  187. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
  188. package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
  189. package/dist/cdn/chunks/src-CCQf19hy.js.map +0 -1
  190. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +0 -1
  191. package/dist/dist-AyAOL8Bj.js +0 -4
  192. package/dist/dist-DkPTWQuO.js +0 -4
  193. package/dist/en-CAImT1hl.js +0 -1
  194. package/dist/sanitizeHtml-Ru5_-IbM.js +0 -973
@@ -3,7 +3,7 @@ import { An as e, At as t, Ct as n, Dn as r, Dt as i, En as a, It as o, Jt as s,
3
3
  var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
4
  name: "@templatical/renderer",
5
5
  description: "Render Templatical email templates to MJML",
6
- version: "0.60.2",
6
+ version: "0.60.4",
7
7
  bugs: "https://github.com/templatical/sdk/issues",
8
8
  dependencies: { "@templatical/types": "workspace:*" },
9
9
  devDependencies: {
@@ -66,61 +66,60 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
66
66
  defaultFallback: this.defaultFallbackFont
67
67
  });
68
68
  }
69
- }, E = {
69
+ }, _e = {
70
70
  "&": "&",
71
71
  "<": "&lt;",
72
72
  ">": "&gt;",
73
- "\"": "&quot;",
74
- "'": "&#039;"
75
- }, _e = /[&<>"']/g;
73
+ "\"": "&quot;"
74
+ }, ve = /[&<>]/g;
75
+ function E(e) {
76
+ return e == null || e === "" ? "" : e.replace(ve, (e) => _e[e]);
77
+ }
78
+ var ye = /[&<>"]/g;
76
79
  function D(e) {
77
- return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
80
+ return e == null || e === "" ? "" : e.replace(ye, (e) => _e[e]);
78
81
  }
79
82
  function O(e) {
80
- return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
83
+ return e == null || e === "" ? "" : D(e.replace(/[;{}\r\n]/g, ""));
81
84
  }
82
85
  function k(e) {
83
- return e === "" ? "" : O(e.replace(/[;{}\r\n]/g, ""));
84
- }
85
- var ve = /[&<>"]/g;
86
- function A(e) {
87
- return e.replace(ve, (e) => E[e] ?? e);
86
+ return D(e);
88
87
  }
89
88
  // ../renderer/src/visibility.ts
90
- function j(e) {
89
+ function A(e) {
91
90
  let t = e.visibility;
92
91
  return t ? !t.desktop && !t.mobile : !1;
93
92
  }
94
- function M(e, t = []) {
95
- let n = [N(e), ...t].filter((e) => e !== "").join(" ");
96
- return n === "" ? "" : ` css-class="${O(n)}"`;
93
+ function j(e, t = []) {
94
+ let n = [M(e), ...t].filter((e) => e !== "").join(" ");
95
+ return n === "" ? "" : ` css-class="${D(n)}"`;
97
96
  }
98
- function N(e) {
97
+ function M(e) {
99
98
  let t = e.visibility;
100
99
  if (!t) return "";
101
100
  let n = [];
102
101
  return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
103
102
  }
104
103
  // ../renderer/src/unrenderable.ts
105
- var P = "templatical:unrenderable-block";
106
- function F(e) {
104
+ var N = "templatical:unrenderable-block";
105
+ function P(e) {
107
106
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
108
107
  }
109
- function I(e) {
108
+ function F(e) {
110
109
  return JSON.stringify(String(e)).slice(1, -1);
111
110
  }
112
- function L(e) {
113
- return console.warn(`[Templatical] No renderer for block type "${I(e.type)}" (id: ${I(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${P} type="${F(e.type)}" id="${F(e.id)}" --></mj-raw>`;
111
+ function I(e) {
112
+ return console.warn(`[Templatical] No renderer for block type "${F(e.type)}" (id: ${F(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${N} type="${P(e.type)}" id="${P(e.id)}" --></mj-raw>`;
114
113
  }
115
114
  // ../renderer/src/padding.ts
116
- function R(e) {
117
- return O(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
115
+ function L(e) {
116
+ return D(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
118
117
  }
119
118
  // ../renderer/src/utils.ts
120
- function z(e, t) {
121
- return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${k(e)}"` : "";
119
+ function R(e, t) {
120
+ return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${O(e)}"` : "";
122
121
  }
123
- function ye(e) {
122
+ function z(e) {
124
123
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
125
124
  }
126
125
  function B(t, n) {
@@ -134,15 +133,15 @@ function V(e, t) {
134
133
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
135
134
  }
136
135
  function H(e) {
137
- return Object.entries(re(e)).map(([e, t]) => ` ${e}="${k(t)}"`).join("");
136
+ return Object.entries(re(e)).map(([e, t]) => ` ${e}="${O(t)}"`).join("");
138
137
  }
139
138
  function U(e) {
140
139
  let t = u(e);
141
- return t === null ? "" : ` border-radius="${k(t)}"`;
140
+ return t === null ? "" : ` border-radius="${O(t)}"`;
142
141
  }
143
142
  function be(e) {
144
143
  let t = c(e);
145
- return t === null ? "" : ` background-url="${O(t.url)}" background-size="${k(t.size)}" background-position="${k(t.position)}" background-repeat="${k(t.repeat)}"`;
144
+ return t === null ? "" : ` background-url="${D(t.url)}" background-size="${O(t.size)}" background-position="${O(t.position)}" background-repeat="${O(t.repeat)}"`;
146
145
  }
147
146
  // ../renderer/src/rich-text.ts
148
147
  var W = "tpl-rich-text";
@@ -231,8 +230,8 @@ function Oe(e) {
231
230
  }
232
231
  // ../renderer/src/renderers/title.ts
233
232
  function ke(e, t) {
234
- if (j(e)) return "";
235
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Ae(Oe(b(w(e.content)))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = je(e.fontFamily, t), u = M(e, [W, G(K(void 0))]), d = `h${a[e.level] ? e.level : 2}`;
233
+ if (A(e)) return "";
234
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = Ae(Oe(b(w(e.content ?? "")))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${D(e.color)}"` : "", c = D(e.textAlign), l = je(e.fontFamily, t), u = j(e, [W, G(K(void 0))]), d = `h${a[e.level] ? e.level : 2}`;
236
235
  return `<mj-text
237
236
  font-size="${o}px"${s}
238
237
  align="${c}"
@@ -251,40 +250,42 @@ function Ae(e) {
251
250
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
252
251
  }
253
252
  function je(e, t) {
254
- return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
253
+ return e ? ` font-family="${k(t.resolveFontFamily(e))}"` : "";
255
254
  }
256
255
  // ../renderer/src/renderers/paragraph.ts
257
256
  function Me(e, t) {
258
- if (j(e) || ce(e.content)) return "";
259
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Oe(b(w(e.content))), a = M(e, [W, G(K(e.paragraphSpacing))]);
257
+ if (A(e)) return "";
258
+ let n = e.content ?? "";
259
+ if (ce(n)) return "";
260
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = Oe(b(w(n))), o = j(e, [W, G(K(e.paragraphSpacing))]);
260
261
  return `<mj-text
261
262
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
262
- padding="${n}"${r}${a}
263
- >${i}</mj-text>`;
263
+ padding="${r}"${i}${o}
264
+ >${a}</mj-text>`;
264
265
  }
265
266
  // ../renderer/src/renderers/image.ts
266
267
  function Ne(e, t) {
267
- if (j(e) || e.src === "") return "";
268
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = ye(e.height), o = V(e, t), s = M(e), c = U(e.borderRadius), l = H(e.border), u = "";
269
- e.linkUrl && (u = ` href="${O(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
270
- let d = O(e.src), f = e.decorative === !0;
268
+ if (A(e) || !e.src) return "";
269
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = D(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = z(e.height), o = V(e, t), s = j(e), c = U(e.borderRadius), l = H(e.border), u = "";
270
+ e.linkUrl && (u = ` href="${D(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
271
+ let d = D(e.src), f = e.decorative === !0;
271
272
  return `<mj-image
272
273
  src="${d}"
273
- alt="${f ? "" : O(e.alt)}"
274
+ alt="${f ? "" : D(e.alt)}"
274
275
  width="${i}"${a}${o}
275
- align="${O(e.align)}"
276
+ align="${D(e.align)}"
276
277
  padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
277
278
  />`;
278
279
  }
279
280
  // ../renderer/src/renderers/button.ts
280
281
  var J = "tpl-button-full";
281
282
  function Pe(e, t) {
282
- if (j(e)) return "";
283
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : O(e.url), o = a === "" ? "" : ` href="${a}"`, s = Fe(e.backgroundColor), c = O(e.textColor), l = e.fontSize, u = Ie(e.fontWeight), d = O(Re(e.borderRadius)), f = D(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", h = Le(e.fontFamily, t), g = ze(e.width), _ = M(e, e.width === "full" || typeof e.width == "string" && pe(e.width) !== null ? [J] : []), v = H(e.border), y = O(e.align ?? "center");
283
+ if (A(e)) return "";
284
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : D(e.url), o = a === "" ? "" : ` href="${a}"`, s = Fe(e.backgroundColor), c = D(e.textColor), l = e.fontSize, u = Ie(e.fontWeight), d = D(Re(e.borderRadius)), f = E(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", h = Le(e.fontFamily, t), g = ze(e.width), _ = j(e, e.width === "full" || typeof e.width == "string" && pe(e.width) !== null ? [J] : []), v = H(e.border), y = D(e.align ?? "center");
284
285
  return `<mj-button${o}${p}
285
286
  background-color="${s}"
286
287
  color="${c}"
287
- font-size="${O(String(l))}px"
288
+ font-size="${D(String(l))}px"
288
289
  line-height="${m(ae(e) * 100)}%"
289
290
  font-weight="${u}"
290
291
  border-radius="${d}"${v}
@@ -294,45 +295,45 @@ function Pe(e, t) {
294
295
  >${f}</mj-button>`;
295
296
  }
296
297
  function Fe(e) {
297
- return e.trim() === "" ? "transparent" : O(e);
298
+ return (e ?? "").trim() === "" ? "transparent" : D(e);
298
299
  }
299
300
  function Ie(e) {
300
301
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
301
302
  }
302
303
  function Le(e, t) {
303
- return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
304
+ return e ? ` font-family="${k(t.resolveFontFamily(e))}"` : "";
304
305
  }
305
306
  function Re(e) {
306
307
  return typeof e == "number" ? `${e}px` : u(e) ?? "0px";
307
308
  }
308
309
  function ze(e) {
309
- return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${O(e === "full" ? "100%" : `${e}px`)}"` : pe(e) === null ? "" : ` width="${O(e)}"`;
310
+ return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${D(e === "full" ? "100%" : `${e}px`)}"` : pe(e) === null ? "" : ` width="${D(e)}"`;
310
311
  }
311
312
  // ../renderer/src/renderers/divider.ts
312
313
  function Be(e, t) {
313
- if (j(e)) return "";
314
- let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = O(e.lineStyle), s = O(e.color), c = M(e);
314
+ if (A(e)) return "";
315
+ let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${D(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = D(e.lineStyle), s = D(e.color), c = j(e);
315
316
  return `<mj-divider
316
- border-width="${O(String(a))}px"
317
+ border-width="${D(String(a))}px"
317
318
  border-style="${o}"
318
319
  border-color="${s}"
319
- width="${O(i)}"
320
+ width="${D(i)}"
320
321
  padding="${n}"${r}${c}
321
322
  />`;
322
323
  }
323
324
  // ../renderer/src/renderers/spacer.ts
324
325
  function Ve(e, t) {
325
- if (j(e)) return "";
326
- let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = M(e);
327
- return `<mj-spacer height="${O(String(n))}px" padding="0"${r}${i} />`;
326
+ if (A(e)) return "";
327
+ let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${D(e.styles.backgroundColor)}"` : "", i = j(e);
328
+ return `<mj-spacer height="${D(String(n))}px" padding="0"${r}${i} />`;
328
329
  }
329
330
  // ../renderer/src/renderers/html.ts
330
331
  function He(e, t) {
331
- if (j(e) || !t.allowHtmlBlocks) return "";
332
- let n = e.content;
332
+ if (A(e) || !t.allowHtmlBlocks) return "";
333
+ let n = e.content ?? "";
333
334
  if (n === "") return "";
334
- let r = M(e);
335
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
335
+ let r = j(e);
336
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
336
337
  ${n}
337
338
  </mj-text>`;
338
339
  }
@@ -347,10 +348,10 @@ function Ge(e) {
347
348
  return typeof t == "string" ? t : "";
348
349
  }
349
350
  function Ke(e, t) {
350
- if (j(e)) return "";
351
+ if (A(e)) return "";
351
352
  let n = e.icons.filter((e) => e.platform !== "custom" || We(e));
352
353
  if (n.length === 0) return "";
353
- let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", a = M(e), s = O(e.align), c = e.iconSize, l = e.iconStyle, u = O(o(l, e.iconTone)), d = e.spacing, f;
354
+ let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${D(e.styles.backgroundColor)}"` : "", a = j(e), s = D(e.align), c = e.iconSize, l = e.iconStyle, u = D(o(l, e.iconTone)), d = e.spacing, f;
354
355
  switch (c) {
355
356
  case "small":
356
357
  f = 24;
@@ -381,49 +382,49 @@ function Ke(e, t) {
381
382
  padding="${r}"${i}${a}
382
383
  >
383
384
  ${n.map((e, n) => {
384
- let r = O(e.url), i = n === m - 1 ? 0 : d, a = `0 ${O(String(i))}px 0 0`;
385
- if (e.platform === "custom") return `<mj-social-element src="${O(e.imageUrl)}" alt="${O(Ge(e))}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="0" background-color="transparent" css-class="${Ue}"></mj-social-element>`;
386
- let o = O(e.platform);
385
+ let r = D(e.url), i = n === m - 1 ? 0 : d, a = `0 ${D(String(i))}px 0 0`;
386
+ if (e.platform === "custom") return `<mj-social-element src="${D(e.imageUrl)}" alt="${D(Ge(e))}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="0" background-color="transparent" css-class="${Ue}"></mj-social-element>`;
387
+ let o = D(e.platform);
387
388
  return `<mj-social-element src="${`${t.socialIconsBaseUrl}/${u}/${o}.png`}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="${p}" background-color="transparent"></mj-social-element>`;
388
389
  }).join("\n")}
389
390
  </mj-social>`;
390
391
  }
391
392
  // ../renderer/src/renderers/menu.ts
392
393
  function qe(e, t) {
393
- if (j(e) || e.items.length === 0) return "";
394
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = Xe(e.fontFamily, t), o = O(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${O(e.color)}"` : "", l = Je(e);
394
+ if (A(e) || e.items.length === 0) return "";
395
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = j(e), a = Xe(e.fontFamily, t), o = D(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${D(e.color)}"` : "", l = Je(e);
395
396
  return `<mj-text
396
- font-size="${O(String(s))}px"${c}
397
+ font-size="${D(String(s))}px"${c}
397
398
  align="${o}"
398
399
  line-height="1.5"
399
400
  padding="${n}"${r}${a}${i}
400
401
  >${l}</mj-text>`;
401
402
  }
402
403
  function Je(e) {
403
- let t = e.items, n = D(e.separator), r = k(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
404
- for (let e = 0; e < s; e++) o.push(Ye(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${k(String(i))}px;">${n}</span>`);
404
+ let t = e.items, n = E(e.separator), r = O(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
405
+ for (let e = 0; e < s; e++) o.push(Ye(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${O(String(i))}px;">${n}</span>`);
405
406
  return o.join("");
406
407
  }
407
408
  function Ye(e, t) {
408
- let n = D(e.text), r = O(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
409
- return i && o.unshift(`color: ${k(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
409
+ let n = E(e.text), r = D(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
410
+ return i && o.unshift(`color: ${O(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
410
411
  }
411
412
  function Xe(e, t) {
412
- return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
413
+ return e ? ` font-family="${k(t.resolveFontFamily(e))}"` : "";
413
414
  }
414
415
  // ../renderer/src/renderers/table.ts
415
416
  function Ze(e, t) {
416
- if (j(e) || e.rows.length === 0) return "";
417
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = tt(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = Qe(e);
417
+ if (A(e) || e.rows.length === 0) return "";
418
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = j(e), a = tt(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${D(e.color)}"` : "", c = D(e.textAlign), l = Qe(e);
418
419
  return `<mj-text
419
- font-size="${O(String(o))}px"${s}
420
+ font-size="${D(String(o))}px"${s}
420
421
  align="${c}"
421
422
  line-height="1.5"
422
423
  padding="${n}"${r}${a}${i}
423
424
  >${l}</mj-text>`;
424
425
  }
425
426
  function Qe(e) {
426
- let t = k(e.borderColor), n = e.borderWidth, r = "";
427
+ let t = O(e.borderColor), n = e.borderWidth, r = "";
427
428
  for (let i = 0; i < e.rows.length; i++) {
428
429
  let a = e.rows[i];
429
430
  r += $e(a, e, e.hasHeaderRow && i === 0, t, n);
@@ -436,21 +437,21 @@ function $e(e, t, n, r, i) {
436
437
  return `<tr>${a}</tr>`;
437
438
  }
438
439
  function et(e, t, n, r, i) {
439
- let a = t.cellPadding, o = [`border: ${k(String(i))}px solid ${r}`, `padding: ${k(String(a))}px`];
440
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${k(t.headerBackgroundColor)}`));
441
- let s = o.join("; "), c = D(w(e.content)), l = n ? "th" : "td";
440
+ let a = t.cellPadding, o = [`border: ${O(String(i))}px solid ${r}`, `padding: ${O(String(a))}px`];
441
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${O(t.headerBackgroundColor)}`));
442
+ let s = o.join("; "), c = E(w(e.content ?? "")), l = n ? "th" : "td";
442
443
  return `<${l} style="${s}">${c}</${l}>`;
443
444
  }
444
445
  function tt(e, t) {
445
- return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
446
+ return e ? ` font-family="${k(t.resolveFontFamily(e))}"` : "";
446
447
  }
447
448
  // ../renderer/src/renderers/custom.ts
448
449
  function nt(e, t) {
449
- if (j(e)) return "";
450
+ if (A(e)) return "";
450
451
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
451
452
  if (!n || n === "") return "";
452
- let r = M(e);
453
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
453
+ let r = j(e);
454
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
454
455
  ${n}
455
456
  </mj-text>`;
456
457
  }
@@ -493,10 +494,10 @@ function Y(e, t) {
493
494
  }
494
495
  // ../renderer/src/renderers/section.ts
495
496
  function st(e, t, n) {
496
- if (j(e)) return "";
497
+ if (A(e)) return "";
497
498
  let r = _(e);
498
499
  if (r?.applied) return ct(e, r, t, n);
499
- let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) : at(i, t.containerWidth), l = Math.floor(t.contentWidth) - B(e.styles.padding, e.border), u = o.map((e) => Math.floor(l * parseFloat(e) / 100)), d = R(e.styles.padding), f = z(e.styles.backgroundColor, "native"), p = be(e.backgroundImage), m = M(e), h = U(e.borderRadius), y = H(e.border), b = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", x = e.children, S = [];
500
+ let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) : at(i, t.containerWidth), l = Math.floor(t.contentWidth) - B(e.styles.padding, e.border), u = o.map((e) => Math.floor(l * parseFloat(e) / 100)), d = L(e.styles.padding), f = R(e.styles.backgroundColor, "native"), p = be(e.backgroundImage), m = j(e), h = U(e.borderRadius), y = H(e.border), b = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", x = e.children, S = [];
500
501
  for (let e = 0; e < x.length; e++) {
501
502
  let r = x[e], i = o[e] ?? "100%", a = Math.floor(c[e] ?? t.containerWidth), s = lt(r, t.allowHtmlBlocks).filter((e) => !g(e)), d = t.withContainerWidth(a, u[e] ?? l), f = s.map((e) => Y(e, n(e, d))).filter((e) => e !== "").join("\n");
502
503
  S.push(`<mj-column width="${i}"${b}>
@@ -511,8 +512,8 @@ ${C}
511
512
  </mj-section>`;
512
513
  }
513
514
  function ct(e, t, n, r) {
514
- let i = Math.floor(n.contentWidth), a = ot(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = U(e.borderRadius), l = M(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = lt(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => Y(e, r(e, u))).filter((e) => e !== "").join("\n");
515
- return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${O(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${O(t.image.position)}"${o} padding="${s}" vertical-align="${O(t.verticalAlign)}"${c}${l}>
515
+ let i = Math.floor(n.contentWidth), a = ot(t, i, e.styles.padding), o = R(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = L(e.styles.padding), c = U(e.borderRadius), l = j(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = lt(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => Y(e, r(e, u))).filter((e) => e !== "").join("\n");
516
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${D(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${D(t.image.position)}"${o} padding="${s}" vertical-align="${D(t.verticalAlign)}"${c}${l}>
516
517
  ${d}
517
518
  </mj-hero>`;
518
519
  }
@@ -531,17 +532,17 @@ function ut(e, t) {
531
532
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
532
533
  }
533
534
  function dt(e, t) {
534
- if (j(e)) return "";
535
+ if (A(e)) return "";
535
536
  let n = ut(e.url, e.thumbnailUrl);
536
537
  if (!n) return "";
537
- let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = ye(e.height), s = V(e, t), c = M(e);
538
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = D(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = z(e.height), s = V(e, t), c = j(e);
538
539
  return `<mj-image
539
- src="${O(n)}"
540
- alt="${O(e.alt)}"
540
+ src="${D(n)}"
541
+ alt="${D(e.alt)}"
541
542
  width="${a}"${o}${s}
542
- align="${O(e.align)}"
543
+ align="${D(e.align)}"
543
544
  padding="${r}"
544
- href="${O(e.url)}"
545
+ href="${D(e.url)}"
545
546
  target="_blank"
546
547
  rel="noopener"${i}${c}
547
548
  />`;
@@ -549,18 +550,18 @@ function dt(e, t) {
549
550
  // ../renderer/src/renderers/index.ts
550
551
  function X(e, r) {
551
552
  let a = r.blockRenderers[e.type];
552
- return a ? a(e, r) : g(e) ? st(e, r, X) : t(e) ? ke(e, r) : fe(e) ? Me(e, r) : h(e) ? Ne(e, r) : y(e) ? Pe(e, r) : x(e) ? Be(e, r) : p(e) ? Ve(e, r) : me(e) ? He(e, r) : i(e) ? Ke(e, r) : n(e) ? qe(e, r) : oe(e) ? Ze(e, r) : ie(e) ? dt(e, r) : he(e) ? nt(e, r) : j(e) ? "" : L(e);
553
+ return a ? a(e, r) : g(e) ? st(e, r, X) : t(e) ? ke(e, r) : fe(e) ? Me(e, r) : h(e) ? Ne(e, r) : y(e) ? Pe(e, r) : x(e) ? Be(e, r) : p(e) ? Ve(e, r) : me(e) ? He(e, r) : i(e) ? Ke(e, r) : n(e) ? qe(e, r) : oe(e) ? Ze(e, r) : ie(e) ? dt(e, r) : he(e) ? nt(e, r) : A(e) ? "" : I(e);
553
554
  }
554
555
  // ../renderer/src/index.ts
555
556
  var ft = `.${J} a { display: block !important; }`;
556
557
  async function pt(e, t) {
557
558
  if (t?.customBlocks !== void 0 && t.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
558
559
  if (t?.customBlocks !== void 0 && t.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
559
- let n = t?.locale ?? ne(e), r = ee(e, n), i = t?.layout ? le(ee(t.layout, n, { missing: "default" }), r) : (se(r), C(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = _t(t?.socialIconsBaseUrl ?? T), l = t?.customBlocks === void 0 ? await bt(i, t?.renderCustomBlock) : await xt(i, t.customBlocks, t.liquidjs), u = St(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), d = S(i.settings), f = new ge(i.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, d), p = Q(i.blocks, s), m = f.resolveFontFamily(i.settings.fontFamily), h = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, g = i.settings.textColor ? ` color="${O(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? k(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = p.map((e) => mt(e, f)).filter((e) => e !== "").join("\n"), b = yt(a), x = vt(i.settings.preheaderText);
560
- return `<mjml lang="${O(i.settings.locale)}" dir="${O(d)}">
560
+ let n = t?.locale ?? ne(e), r = ee(e, n), i = t?.layout ? le(ee(t.layout, n, { missing: "default" }), r) : (se(r), C(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = _t(t?.socialIconsBaseUrl ?? T), l = t?.customBlocks === void 0 ? await bt(i, t?.renderCustomBlock) : await xt(i, t.customBlocks, t.liquidjs), u = St(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), d = S(i.settings), f = new ge(i.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, d), p = Q(i.blocks, s), m = f.resolveFontFamily(i.settings.fontFamily), h = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, g = i.settings.textColor ? ` color="${D(i.settings.textColor)}"` : "", _ = i.settings.linkColor && !/['"]/.test(i.settings.linkColor) ? O(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = p.map((e) => mt(e, f)).filter((e) => e !== "").join("\n"), b = yt(a), x = vt(i.settings.preheaderText);
561
+ return `<mjml lang="${D(i.settings.locale)}" dir="${D(d)}">
561
562
  <mj-head>${x}
562
563
  <mj-attributes>
563
- <mj-all font-family="${A(m)}" />
564
+ <mj-all font-family="${k(m)}" />
564
565
  <mj-text font-size="14px"${g} />
565
566
  <mj-section padding="0" />
566
567
  <mj-column padding="0" />
@@ -579,7 +580,7 @@ async function pt(e, t) {
579
580
  }
580
581
  </mj-style>${Ct(u)}
581
582
  </mj-head>
582
- <mj-body width="${O(String(f.containerWidth))}px" background-color="${k(h)}">
583
+ <mj-body width="${D(String(f.containerWidth))}px" background-color="${O(h)}">
583
584
  ${y}
584
585
  </mj-body>
585
586
  </mjml>`;
@@ -605,7 +606,7 @@ function Z(e, t) {
605
606
  return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - B(t));
606
607
  }
607
608
  function ht(e, t, n) {
608
- return `<mj-wrapper${z(t.backgroundColor, "native")}${be(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : U(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
609
+ return `<mj-wrapper${R(t.backgroundColor, "native")}${be(t.backgroundImage)}${` padding="${t.padding ? L(t.padding) : "0"}"`}${t.fullWidth ? "" : U(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
609
610
  ${e}
610
611
  </mj-wrapper>`;
611
612
  }
@@ -624,10 +625,10 @@ function _t(e) {
624
625
  function vt(e) {
625
626
  if (!e) return "";
626
627
  let t = e.trim();
627
- return t === "" ? "" : `\n <mj-preview>${D(t)}</mj-preview>`;
628
+ return t === "" ? "" : `\n <mj-preview>${E(t)}</mj-preview>`;
628
629
  }
629
630
  function yt(e) {
630
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${O(e.name)}" href="${O(e.url)}" />`).join("");
631
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${D(e.name)}" href="${D(e.url)}" />`).join("");
631
632
  }
632
633
  function Q(e, t) {
633
634
  return t ? e : e.filter((e) => e.type !== "html");
@@ -679,6 +680,6 @@ function St(e, t, n) {
679
680
  function Ct(e) {
680
681
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e.replaceAll("<", "\\3c ")}\n </mj-style>`).join("");
681
682
  }
682
- export { J as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, ge as RenderContext, P as UNRENDERABLE_MARKER_PREFIX, w as convertMergeTagsToValues, O as escapeAttr, D as escapeHtml, V as fluidOnMobileAttr, M as getCssClassAttr, N as getCssClasses, it as getWidthPercentages, at as getWidthPixels, j as isHiddenOnAll, X as renderBlock, pt as renderToMjml, L as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, R as toPaddingString };
683
+ export { J as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, ge as RenderContext, N as UNRENDERABLE_MARKER_PREFIX, w as convertMergeTagsToValues, D as escapeAttr, E as escapeHtml, V as fluidOnMobileAttr, j as getCssClassAttr, M as getCssClasses, it as getWidthPercentages, at as getWidthPixels, A as isHiddenOnAll, X as renderBlock, pt as renderToMjml, I as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, L as toPaddingString };
683
684
 
684
- //# sourceMappingURL=src-CCQf19hy.js.map
685
+ //# sourceMappingURL=src-1MSPRtI8.js.map