@templatical/editor 0.47.0 → 0.49.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 (319) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-CdjTb9ej.js} +14 -14
  3. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
  4. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BdpJwim0.js} +5 -5
  5. package/dist/BlockPreviewCanvas-D_sowkf0.js +141 -0
  6. package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
  7. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-1hwFiJ0G.js} +39 -68
  8. package/dist/CollaborationNotices-BWpKzueF.js +73 -0
  9. package/dist/CollaboratorBar-D87phJsw.js +123 -0
  10. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-BUvUzO3T.js} +2 -2
  11. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-J65znlrH.js} +14 -14
  12. package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
  13. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-CLMIwfK7.js} +7 -7
  14. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
  15. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-DeeVsfG7.js} +8 -8
  16. package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
  17. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
  18. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-C_wxoUMG.js} +3 -3
  19. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-BVXDkqtH.js} +2 -2
  20. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-BEw_r0PJ.js} +3 -3
  21. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
  22. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-zLV44z-R.js} +135 -135
  23. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
  24. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-CsvniFlI.js} +9 -9
  25. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-DzWURF_e.js} +34 -35
  26. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
  27. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
  28. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
  29. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
  30. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Cu5X9DgA.js} +11 -11
  31. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-BeRYV3eg.js} +14 -14
  32. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-B8c3fQi2.js} +2 -2
  33. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-CvpNUoAp.js} +13 -13
  34. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-DHweVJOr.js} +2 -2
  35. package/dist/Toolbar-BadDSkkF.js +3153 -0
  36. package/dist/{TplModal-CoczSDma.js → TplModal-BZgi9Tes.js} +5 -5
  37. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
  38. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
  39. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-F-811aps.js} +4 -4
  40. package/dist/WrapperBlock-DiiaxpMb.js +45 -0
  41. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CayLluou.js} +49 -19
  42. package/dist/bundle-stats.json +7 -7
  43. package/dist/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +40 -2
  44. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-yXJ85Zcg.js} +12 -12
  45. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
  47. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
  49. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
  50. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js +143 -0
  51. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js.map +1 -0
  52. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
  53. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
  54. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-XufhBZYF.js} +38 -67
  55. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
  56. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
  57. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
  58. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
  59. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
  60. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-R8YLLO3v.js} +3 -3
  61. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
  62. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-96NZHVq3.js} +16 -16
  63. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
  64. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
  65. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
  66. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-tmiTPEXm.js} +8 -8
  67. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
  68. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-D14IIu_P.js} +40 -40
  69. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
  70. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-BoPiCLGc.js} +6 -6
  71. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
  72. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
  73. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
  74. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BJ2t2vxC.js} +98 -98
  75. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
  76. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-DD0SZ-S3.js} +3 -3
  77. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
  78. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-CkdJ_kGp.js} +3 -3
  79. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
  80. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-7wXX71DH.js} +4 -4
  81. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
  82. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
  83. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
  84. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-CJQjRHXV.js} +52 -52
  85. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
  86. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-C5cxBRKi.js} +8 -8
  87. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
  88. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
  89. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
  90. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BKbjUnPM.js} +25 -26
  91. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
  93. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
  94. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
  95. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
  97. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
  98. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BBPnHILC.js} +10 -10
  99. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
  100. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-CtrzzQWl.js} +14 -14
  101. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
  102. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-DuZKYMWD.js} +15 -15
  103. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
  104. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DERaCdpG.js} +3 -3
  105. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
  106. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CEgxjtUX.js} +20 -20
  107. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
  108. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
  109. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
  110. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js +3070 -0
  111. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
  112. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DDrbWJcE.js} +5 -5
  113. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DDrbWJcE.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-MlxsUmuT.js} +11 -11
  115. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
  116. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
  117. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
  119. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
  120. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +47 -0
  121. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js.map +1 -0
  122. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +22 -0
  123. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js.map +1 -0
  124. package/dist/cdn/chunks/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +41 -3
  125. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
  126. package/dist/{cloud-DwjaAdwK.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
  127. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-DiYCJ21w.js} +127 -169
  129. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
  130. package/dist/{de-DgAelLbM.js → cdn/chunks/de-CBE6O79z.js} +42 -2
  131. package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
  132. package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
  133. package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
  134. package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
  135. package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
  136. package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
  137. package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
  138. package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
  139. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
  140. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-HJBy9kLj.js} +69 -69
  141. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
  142. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-CDexnk0p.js} +41 -3
  143. package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
  144. package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
  145. package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
  146. package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
  147. package/dist/{es-BaZzyidV.js → cdn/chunks/es-BE42B6uN.js} +42 -2
  148. package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
  149. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-koOuDeZS.js} +23 -23
  150. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-koOuDeZS.js.map} +1 -1
  151. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-DlJFPDQR.js} +42 -2
  152. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
  153. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-CjlNV8xD.js} +121 -92
  154. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +1 -0
  155. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-CUT8gkNI.js} +42 -2
  156. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
  157. package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
  158. package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
  159. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-bXWqqRyS.js} +42 -2
  160. package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
  162. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
  163. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-2_H4-wlb.js} +42 -2
  164. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
  165. package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
  166. package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
  167. package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
  168. package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
  169. package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
  170. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
  171. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
  172. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-B1e5SSYP.js} +312 -286
  173. package/dist/cdn/chunks/src-B1e5SSYP.js.map +1 -0
  174. package/dist/cdn/chunks/src-B77z1iw4.js +649 -0
  175. package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
  176. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-CvLTYGdO.js} +555 -283
  177. package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
  178. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
  179. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
  180. package/dist/cdn/chunks/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +2 -2
  181. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
  182. package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
  183. package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
  184. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
  185. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
  186. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
  187. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
  188. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-DpCFvHg_.js} +758 -732
  189. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
  190. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
  191. package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
  192. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
  193. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
  194. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-X8bc5qNl.js} +4 -4
  195. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
  196. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-DFoOexIQ.js} +6 -6
  197. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
  199. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
  200. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
  201. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
  202. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-D-f61ghC.js} +2 -2
  203. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
  204. package/dist/cdn/editor.css +1 -1
  205. package/dist/cdn/editor.js +1328 -1069
  206. package/dist/cdn/editor.js.map +1 -1
  207. package/dist/{check-B5R4zXr7.js → check-DQQzkmIC.js} +1 -1
  208. package/dist/{chevron-down-BKyl85NV.js → chevron-down-CIF4bdon.js} +1 -1
  209. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-Cg7Xu-ev.js} +1 -1
  210. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Csu7ISD-.js} +1 -1
  211. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-YUvIJAgY.js} +1 -1
  212. package/dist/{clock-Dv9bxsSH.js → clock-CnSIGKQW.js} +1 -1
  213. package/dist/{cdn/chunks/cloud-Cd7ptfhL.js → cloud-YUYDtdHt.js} +308 -569
  214. package/dist/{copy-BsKl4dcy.js → copy-CUC43md_.js} +1 -1
  215. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-BMDRjL0k.js} +126 -168
  216. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-BcP1sjdp.js} +6 -6
  217. package/dist/{cdn/chunks/de-DgAelLbM.js → de-CBE6O79z.js} +40 -4
  218. package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
  219. package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
  220. package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
  221. package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
  222. package/dist/{dist-C8koXLhl.js → dist-DBG3nh3k.js} +550 -284
  223. package/dist/{editor-modal-BwyIUnV_.js → editor-modal--7_9A6j-.js} +27 -27
  224. package/dist/en-BHCMzqib.js +1 -0
  225. package/dist/{en-Dekrl7HA.js → en-CDexnk0p.js} +40 -2
  226. package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
  227. package/dist/{cdn/chunks/es-BaZzyidV.js → es-BE42B6uN.js} +40 -4
  228. package/dist/{extensions-DHyKjsNZ.js → extensions-zwsZlWjH.js} +23 -23
  229. package/dist/{eye-DQuinb9k.js → eye-B1bua-ck.js} +1 -1
  230. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-DlJFPDQR.js} +40 -4
  231. package/dist/{image-up-yTfLjOrj.js → image-up-BqiO7KCO.js} +1 -1
  232. package/dist/index.d.ts +356 -38
  233. package/dist/{info-C7OjlS11.js → info-x26nGOo2.js} +1 -1
  234. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-CUT8gkNI.js} +40 -4
  235. package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
  236. package/dist/{link-CrUFaZ0t.js → link-CezhndyR.js} +1 -1
  237. package/dist/{list-CLgv6M-k.js → list-DQqdptI0.js} +1 -1
  238. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-DCEeoYoi.js} +1 -1
  239. package/dist/{message-circle-BisdQ8H9.js → message-circle-BLGzfv_7.js} +1 -1
  240. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-bXWqqRyS.js} +40 -4
  241. package/dist/{package-C1T4AxV1.js → package-D_kEQCMU.js} +1 -1
  242. package/dist/{pencil-oo2mwf4C.js → pencil-Dct8zGLy.js} +1 -1
  243. package/dist/{plus-BIilXopD.js → plus-BDd0gTEm.js} +1 -1
  244. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-CtKJecE-.js} +1 -1
  245. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-2_H4-wlb.js} +40 -4
  246. package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
  247. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-tGMRDxr8.js} +1 -1
  248. package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
  249. package/dist/{search-DNu9lImk.js → search-Bm2cCQpe.js} +1 -1
  250. package/dist/{send-DDNh3LoJ.js → send-sVLaKZ7f.js} +1 -1
  251. package/dist/{shield-check-aXM3o14f.js → shield-check-YhsbXfQc.js} +1 -1
  252. package/dist/{smartphone-isccgDee.js → smartphone-B2W81p02.js} +1 -1
  253. package/dist/socialIcons-Bwv-49EB.js +2167 -0
  254. package/dist/{sparkles-CIMfFxKv.js → sparkles-a1qkBZ8X.js} +1 -1
  255. package/dist/style.css +1 -1
  256. package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
  257. package/dist/templatical-editor.js +1448 -1189
  258. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-CTuwQ5YW.js} +1 -1
  259. package/dist/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +1 -1
  260. package/dist/{trash-8ZD9pK_c.js → trash-I3D2peFQ.js} +1 -1
  261. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-CenxmLRE.js} +1 -1
  262. package/dist/{upload-DrNFmVes.js → upload-uU2cK0Ce.js} +1 -1
  263. package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
  264. package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
  265. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-DRbMRe8F.js} +1103 -1076
  266. package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
  267. package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
  268. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-zcI6BWIf.js} +3 -3
  269. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-C-iBLlp0.js} +5 -5
  270. package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
  271. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
  272. package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
  273. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-D62njRLu.js} +1 -1
  274. package/dist/{x-CBFKGLB1.js → x-KFQ4S-Kz.js} +1 -1
  275. package/package.json +12 -12
  276. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  277. package/dist/CloudHeaderExtras-gXsTYoGG.js +0 -59
  278. package/dist/CollaboratorBar-BazGNMqN.js +0 -103
  279. package/dist/Toolbar-OGakTBEg.js +0 -2851
  280. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  281. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  282. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  283. package/dist/cdn/chunks/CloudHeaderExtras-DJXLTUHc.js.map +0 -1
  284. package/dist/cdn/chunks/CloudPanels-D1fPLjG8.js.map +0 -1
  285. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js +0 -52
  286. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js.map +0 -1
  287. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  288. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  289. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  290. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  291. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  292. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  293. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  294. package/dist/cdn/chunks/cloud-Cd7ptfhL.js.map +0 -1
  295. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +0 -1
  296. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  297. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
  298. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  299. package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
  300. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  301. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  302. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  303. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  304. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  305. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  306. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  307. package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
  308. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +0 -1103
  309. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  310. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  311. package/dist/cdn/chunks/src-Bu0qBpbf.js +0 -616
  312. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  313. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  314. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  315. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
  316. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  317. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
  318. package/dist/en-CC-57eC_.js +0 -1
  319. package/dist/socialIcons-BctavKBN.js +0 -1180
@@ -1,616 +0,0 @@
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
- //#endregion
3
- //#region ../renderer/src/render-context.ts
4
- var w = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
- name: "@templatical/renderer",
6
- description: "Render Templatical email templates to MJML",
7
- version: "0.47.0",
8
- bugs: "https://github.com/templatical/sdk/issues",
9
- dependencies: { "@templatical/types": "workspace:*" },
10
- devDependencies: {
11
- "@jsquash/oxipng": "^2.3.0",
12
- "@resvg/resvg-js": "^2.6.2",
13
- mjml: "^5.4.1",
14
- typescript: "^6.0.3",
15
- vitest: "^5.0.4"
16
- },
17
- exports: { ".": {
18
- types: "./dist/index.d.ts",
19
- import: "./dist/index.js"
20
- } },
21
- files: ["dist", "assets"],
22
- homepage: "https://templatical.com",
23
- keywords: [
24
- "email",
25
- "email-template",
26
- "html-email",
27
- "mjml",
28
- "renderer",
29
- "templatical"
30
- ],
31
- license: "MIT",
32
- module: "./dist/index.js",
33
- publishConfig: { access: "public" },
34
- repository: {
35
- type: "git",
36
- url: "git+https://github.com/templatical/sdk.git",
37
- directory: "packages/renderer"
38
- },
39
- scripts: {
40
- build: "tsdown && node scripts/rasterize-social.mjs",
41
- test: "vitest run --config vitest.config.ts",
42
- typecheck: "tsc --noEmit"
43
- },
44
- type: "module",
45
- types: "./dist/index.d.ts"
46
- }.version}/assets/social`, T = class e {
47
- containerWidth;
48
- customFonts;
49
- defaultFallbackFont;
50
- allowHtmlBlocks;
51
- customBlockHtml;
52
- socialIconsBaseUrl;
53
- blockRenderers;
54
- contentDirection;
55
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = w, o = {}, s = "ltr") {
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;
57
- }
58
- withContainerWidth(t) {
59
- return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection);
60
- }
61
- resolveFontFamily(e) {
62
- return p(e, {
63
- customFonts: this.customFonts,
64
- defaultFallback: this.defaultFallbackFont
65
- });
66
- }
67
- };
68
- //#endregion
69
- //#region ../renderer/src/visibility.ts
70
- function E(e) {
71
- let t = e.visibility;
72
- return t ? !t.desktop && !t.mobile : !1;
73
- }
74
- function D(e, t = []) {
75
- let n = [O(e), ...t].filter((e) => e !== "").join(" ");
76
- return n === "" ? "" : ` css-class="${n}"`;
77
- }
78
- function O(e) {
79
- let t = e.visibility;
80
- if (!t) return "";
81
- let n = [];
82
- return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
83
- }
84
- //#endregion
85
- //#region ../renderer/src/unrenderable.ts
86
- var k = "templatical:unrenderable-block";
87
- function A(e) {
88
- return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
89
- }
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>`;
92
- }
93
- //#endregion
94
- //#region ../renderer/src/escape.ts
95
- var j = {
96
- "&": "&amp;",
97
- "<": "&lt;",
98
- ">": "&gt;",
99
- "\"": "&quot;",
100
- "'": "&#039;"
101
- }, se = /[&<>"']/g;
102
- function M(e) {
103
- return e === "" ? "" : e.replace(se, (e) => j[e] ?? e);
104
- }
105
- function N(e) {
106
- return e === "" ? "" : e.replace(se, (e) => j[e] ?? e);
107
- }
108
- function P(e) {
109
- return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
110
- }
111
- var ce = /[&<>"]/g;
112
- function F(e) {
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);
124
- break;
125
- }
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;
129
- continue;
130
- }
131
- let s = t(e, a + 5);
132
- if (s === -1) {
133
- r += e.substring(i);
134
- break;
135
- }
136
- let c = e.indexOf("</span>", s + 1);
137
- if (c === -1) {
138
- r += e.substring(i);
139
- break;
140
- }
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);
143
- }
144
- return r;
145
- }
146
- function L(e, t) {
147
- return ae(e, t);
148
- }
149
- //#endregion
150
- //#region ../renderer/src/padding.ts
151
- function R(e) {
152
- return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
153
- }
154
- //#endregion
155
- //#region ../renderer/src/utils.ts
156
- function z(e, t) {
157
- return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
158
- }
159
- function B(e) {
160
- return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
161
- }
162
- function V(e) {
163
- return Object.entries(i(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
164
- }
165
- function H(e) {
166
- let t = a(e);
167
- return t === null ? "" : ` border-radius="${t}"`;
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
- }
173
- //#endregion
174
- //#region ../renderer/src/rich-text.ts
175
- var W = "tpl-rich-text";
176
- function G(e) {
177
- return `${W}-${e}`;
178
- }
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)}`;
182
- return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
183
- }), a = t === "rtl" ? "padding-right" : "padding-left";
184
- return [
185
- ...i,
186
- `${r} ul, ${r} ol { margin: ${n.listMarginY}px 0; ${a}: ${n.listPaddingLeft}px; }`,
187
- `${r} li { margin: ${n.listItemMarginY}px 0; }`
188
- ].join("\n ");
189
- }
190
- function K(e) {
191
- return e ?? y.paragraphGap;
192
- }
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);
196
- else if (_(e)) for (let t of e.children) n(t);
197
- };
198
- for (let t of e) n(t);
199
- return t;
200
- }
201
- //#endregion
202
- //#region ../renderer/src/renderers/title.ts
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}`;
206
- return `<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>`;
212
- }
213
- function pe(e) {
214
- let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
215
- return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
216
- }
217
- function me(e, t) {
218
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
219
- }
220
- //#endregion
221
- //#region ../renderer/src/renderers/paragraph.ts
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))]);
225
- return `<mj-text
226
- line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
227
- padding="${n}"${r}${a}
228
- >${i}</mj-text>`;
229
- }
230
- //#endregion
231
- //#region ../renderer/src/renderers/image.ts
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 = "";
235
- e.linkUrl && (l = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (l += " target=\"_blank\" rel=\"noopener\""));
236
- let u = N(e.src), d = e.decorative === !0;
237
- return `<mj-image
238
- src="${u}"
239
- alt="${d ? "" : N(e.alt)}"
240
- width="${i}"${a}
241
- align="${e.align}"
242
- padding="${n}"${r}${c}${s}${l}${o}${d ? " role=\"presentation\"" : ""}
243
- />`;
244
- }
245
- //#endregion
246
- //#region ../renderer/src/renderers/button.ts
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] : []);
251
- return `<mj-button${o}${f}
252
- background-color="${s}"
253
- color="${c}"
254
- font-size="${l}px"
255
- font-weight="bold"
256
- border-radius="${u}"${V(e.border)}
257
- inner-padding="${i}"
258
- align="${e.align ?? "center"}"
259
- padding="${n}"${r}${p}${m}${h}
260
- >${d}</mj-button>`;
261
- }
262
- function ve(e) {
263
- return e.trim() === "" ? "transparent" : N(e);
264
- }
265
- function ye(e, t) {
266
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
267
- }
268
- function be(e) {
269
- return typeof e == "number" ? `${e}px` : a(e) ?? "0px";
270
- }
271
- function xe(e) {
272
- return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
273
- }
274
- //#endregion
275
- //#region ../renderer/src/renderers/divider.ts
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;
279
- return `<mj-divider
280
- border-width="${e.thickness}px"
281
- border-style="${e.lineStyle}"
282
- border-color="${N(e.color)}"
283
- width="${i}"
284
- padding="${n}"${r}${D(e)}
285
- />`;
286
- }
287
- //#endregion
288
- //#region ../renderer/src/renderers/spacer.ts
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)} />`;
291
- }
292
- //#endregion
293
- //#region ../renderer/src/renderers/html.ts
294
- function we(e, t) {
295
- if (E(e) || !t.allowHtmlBlocks) return "";
296
- let n = e.content;
297
- if (n === "") return "";
298
- let r = D(e);
299
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
300
- ${n}
301
- </mj-text>`;
302
- }
303
- //#endregion
304
- //#region ../renderer/src/renderers/social.ts
305
- function Te(e, t) {
306
- if (E(e)) return "";
307
- let n = e.icons;
308
- if (n.length === 0) return "";
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;
310
- switch (s) {
311
- case "small":
312
- f = 24;
313
- break;
314
- case "large":
315
- f = 48;
316
- break;
317
- default: f = 32;
318
- }
319
- let p;
320
- switch (c) {
321
- case "circle":
322
- p = "50%";
323
- break;
324
- case "rounded":
325
- p = "8px";
326
- break;
327
- case "square":
328
- p = "0";
329
- break;
330
- default: p = "4px";
331
- }
332
- let m = n.length;
333
- return `<mj-social
334
- mode="horizontal"
335
- align="${o}"
336
- icon-padding="0"
337
- padding="${r}"${i}${a}
338
- >
339
- ${n.map((e, n) => {
340
- let r = e.platform, i = N(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
341
- return `<mj-social-element src="${a}" href="${i}" icon-size="${f}px" padding="0 ${o}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
342
- }).join("\n")}
343
- </mj-social>`;
344
- }
345
- //#endregion
346
- //#region ../renderer/src/renderers/menu.ts
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;
350
- return `<mj-text
351
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
352
- align="${o}"
353
- line-height="1.5"
354
- padding="${n}"${r}${a}${i}
355
- >${De(e)}</mj-text>`;
356
- }
357
- function De(e) {
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;
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>`);
360
- return o.join("");
361
- }
362
- function Oe(e, t) {
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"];
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>`;
365
- }
366
- function ke(e, t) {
367
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
368
- }
369
- //#endregion
370
- //#region ../renderer/src/renderers/table.ts
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);
374
- return `<mj-text
375
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
376
- align="${e.textAlign}"
377
- line-height="1.5"
378
- padding="${n}"${r}${a}${i}
379
- >${je(e)}</mj-text>`;
380
- }
381
- function je(e) {
382
- let t = P(e.borderColor), n = e.borderWidth, r = "";
383
- for (let i = 0; i < e.rows.length; i++) {
384
- let a = e.rows[i];
385
- r += Me(a, e, e.hasHeaderRow && i === 0, t, n);
386
- }
387
- return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
388
- }
389
- function Me(e, t, n, r, i) {
390
- let a = "";
391
- for (let o of e.cells) a += Ne(o, t, n, r, i);
392
- return `<tr>${a}</tr>`;
393
- }
394
- function Ne(e, t, n, r, i) {
395
- let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
396
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${P(t.headerBackgroundColor)}`));
397
- let s = o.join("; "), c = M(I(e.content)), l = n ? "th" : "td";
398
- return `<${l} style="${s}">${c}</${l}>`;
399
- }
400
- function Pe(e, t) {
401
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
402
- }
403
- //#endregion
404
- //#region ../renderer/src/renderers/custom.ts
405
- function Fe(e, t) {
406
- if (E(e)) return "";
407
- let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
408
- if (!n || n === "") return "";
409
- let r = D(e);
410
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
411
- ${n}
412
- </mj-text>`;
413
- }
414
- //#endregion
415
- //#region ../renderer/src/columns.ts
416
- function J(e) {
417
- switch (e) {
418
- case "2": return ["50%", "50%"];
419
- case "3": return [
420
- "33.33%",
421
- "33.33%",
422
- "33.34%"
423
- ];
424
- case "1-2": return ["33.33%", "66.67%"];
425
- case "2-1": return ["66.67%", "33.33%"];
426
- default: return ["100%"];
427
- }
428
- }
429
- function Ie(e, t) {
430
- switch (e) {
431
- case "2": return [t * .5, t * .5];
432
- case "3": return [
433
- t / 3,
434
- t / 3,
435
- t / 3
436
- ];
437
- case "1-2": return [t / 3, t * 2 / 3];
438
- case "2-1": return [t * 2 / 3, t / 3];
439
- default: return [t];
440
- }
441
- }
442
- //#endregion
443
- //#region ../renderer/src/display-condition.ts
444
- function Y(e, t) {
445
- if (t === "") return "";
446
- let n = e.displayCondition;
447
- return n ? `<mj-raw>${n.before}</mj-raw>
448
- ` + t + `
449
- <mj-raw>${n.after}</mj-raw>` : t;
450
- }
451
- //#endregion
452
- //#region ../renderer/src/renderers/section.ts
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}>
459
- ${u === "" ? "<mj-text>&nbsp;</mj-text>" : u}
460
- </mj-column>`);
461
- }
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}
467
- </mj-section>`;
468
- }
469
- function Re(e, t) {
470
- return t ? e : e.filter((e) => e.type !== "html");
471
- }
472
- //#endregion
473
- //#region ../renderer/src/renderers/video.ts
474
- function ze(e, t) {
475
- if (t) return t;
476
- if (!e) return null;
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})/]) {
478
- let n = e.match(t);
479
- if (n) return `https://img.youtube.com/vi/${n[1]}/maxresdefault.jpg`;
480
- }
481
- let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
482
- return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
483
- }
484
- function Be(e, t) {
485
- if (E(e)) return "";
486
- let n = ze(e.url, e.thumbnailUrl);
487
- if (!n) return "";
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);
489
- return `<mj-image
490
- src="${N(n)}"
491
- alt="${N(e.alt)}"
492
- width="${a}"${o}
493
- align="${e.align}"
494
- padding="${r}"
495
- href="${N(e.url)}"
496
- target="_blank"
497
- rel="noopener"${i}${s}
498
- />`;
499
- }
500
- //#endregion
501
- //#region ../renderer/src/renderers/index.ts
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);
505
- }
506
- //#endregion
507
- //#region ../renderer/src/index.ts
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}
513
- <mj-attributes>
514
- <mj-all font-family="${F(g)}" />
515
- <mj-text font-size="14px"${v} />
516
- <mj-section padding="0" />
517
- <mj-column padding="0" />
518
- <mj-image fluid-on-mobile="true" />
519
- </mj-attributes>${S}
520
- <mj-style inline="inline">
521
- ${ue(de(h), p)}
522
- ${Ve}
523
- </mj-style>
524
- <mj-style>
525
- a { color: ${y}; text-decoration: ${b}; }
526
- @media only screen and (max-width: 480px) {
527
- .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
528
- }
529
- @media only screen and (min-width: 481px) {
530
- .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
531
- }
532
- </mj-style>${Xe(f)}
533
- </mj-head>
534
- <mj-body width="${m.containerWidth}px" background-color="${_}">
535
- ${x}
536
- </mj-body>
537
- </mjml>`;
538
- }
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"), {
541
- backgroundColor: e.styles.backgroundColor,
542
- padding: e.styles.padding,
543
- borderRadius: e.borderRadius,
544
- backgroundImage: e.backgroundImage
545
- }, t.contentDirection));
546
- if (m(e)) {
547
- let n = X(e, t);
548
- return Y(e, e.wrapper && n !== "" ? Z(n, e.wrapper, t.contentDirection) : n);
549
- }
550
- return Y(e, We(X(e, t), t.contentDirection));
551
- }
552
- function Z(e, t, n) {
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\"" : ""}>
554
- ${e}
555
- </mj-wrapper>`;
556
- }
557
- function We(e, t) {
558
- if (e === "") return "";
559
- let n = t === "rtl" ? " direction=\"rtl\"" : "";
560
- return `<mj-section${n}>
561
- <mj-column${n}>
562
- ${e}
563
- </mj-column>
564
- </mj-section>`;
565
- }
566
- function Ge(e) {
567
- return e.endsWith("/") ? e.slice(0, -1) : e;
568
- }
569
- function Ke(e) {
570
- if (!e) return "";
571
- let t = e.trim();
572
- return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
573
- }
574
- function qe(e) {
575
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
576
- }
577
- function Q(e, t) {
578
- return t ? e : e.filter((e) => e.type !== "html");
579
- }
580
- async function Je(e, t) {
581
- let n = /* @__PURE__ */ new Map();
582
- if (!t) return n;
583
- let r = [];
584
- if ($(e.blocks, r), r.length === 0) return n;
585
- let i = await Promise.all(r.map((e) => t(e)));
586
- for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
587
- return n;
588
- }
589
- function $(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);
592
- else _(n) && $(n.children, t);
593
- }
594
- function Ye(e, t) {
595
- let n = [];
596
- if ($(e.blocks, n), n.length === 0) return [];
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
- for (let e of n) {
601
- if (i.has(e.customType)) continue;
602
- i.add(e.customType);
603
- let n = t ? t(e.customType) : r.get(e.customType);
604
- if (!n) continue;
605
- let s = n.trim();
606
- s === "" || a.has(s) || (a.add(s), o.push(s));
607
- }
608
- return o;
609
- }
610
- function Xe(e) {
611
- return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
612
- }
613
- //#endregion
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
-
616
- //# sourceMappingURL=src-Bu0qBpbf.js.map