@templatical/editor 0.47.0 → 0.48.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 (247) hide show
  1. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-DxPHFNoT.js} +8 -8
  2. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-C8GVqu1d.js} +4 -4
  3. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BShkuJis.js} +2 -2
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-gXsTYoGG.js → CloudHeaderExtras-CUSftQdm.js} +2 -2
  6. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-Dgw7tb4R.js} +4 -4
  7. package/dist/{CollaboratorBar-BazGNMqN.js → CollaboratorBar-5rfopCPx.js} +2 -2
  8. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-DiWzYtnZ.js} +1 -1
  9. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-BOqj16Al.js} +10 -10
  10. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-C4y3Ft7H.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BWAi3eQQ.js} +7 -7
  12. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-C-x3I012.js} +5 -5
  13. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-B1_Wy0AN.js} +6 -6
  14. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-ByOvznRC.js} +1 -1
  15. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-9mDBv4aL.js} +1 -1
  16. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-fOewuF27.js} +1 -1
  17. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-BXamLcv7.js} +4 -4
  18. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-BVjOwwHx.js} +131 -131
  19. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BEKXx9xk.js} +3 -3
  20. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-D7kp7iig.js} +4 -4
  21. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-SJu0lecx.js} +32 -33
  22. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-DbmIS5uK.js} +9 -9
  23. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-Dr5Fxx9Z.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-DnEWBZJy.js} +2 -2
  25. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-ynbGl-sr.js} +11 -11
  26. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Bi01S3H3.js} +7 -7
  27. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-CbRY8HQx.js} +7 -7
  28. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-NAOmt3xi.js} +1 -1
  29. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-Cc3DHbuN.js} +8 -8
  30. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-Ozc7YU38.js} +1 -1
  31. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  32. package/dist/{TplModal-CoczSDma.js → TplModal-Bz4-IZ9R.js} +1 -1
  33. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-CjV1d1zk.js} +5 -5
  34. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-BtwxrKJn.js} +1 -1
  35. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-BLAei1kj.js} +1 -1
  36. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  37. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CEDZytqP.js} +49 -19
  38. package/dist/bundle-stats.json +8 -8
  39. package/dist/{cdn/chunks/ca-DMoGGP9L.js → ca-CbNzJM3I.js} +17 -3
  40. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-Dk0rJBQN.js} +7 -7
  41. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-B7b0w8ZS.js} +3 -3
  43. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-C7sdnkrF.js} +2 -2
  45. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-B4fhuwc_.js} +3 -3
  49. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-awqHfJqC.js} +4 -4
  51. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js → CollaboratorBar-CS0ivqkr.js} +3 -3
  53. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-CbzxwsyI.js} +2 -2
  55. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-DWPHZuQm.js} +13 -13
  57. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-Cqg8FUH-.js} +5 -5
  59. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  60. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-BW9cHnA9.js} +7 -7
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-cXf9ywA4.js} +4 -4
  63. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
  64. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BMB9vShs.js} +84 -84
  65. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  66. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-zXfcArr4.js} +2 -2
  67. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  68. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-Cp4XB_dH.js} +2 -2
  69. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-DLqrA9co.js} +2 -2
  71. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-BRiJzzn5.js} +3 -3
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-D4aq9eeC.js} +35 -35
  75. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-D4aq9eeC.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-BgR6RXSb.js} +5 -5
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-C4DMAn0g.js} +4 -4
  79. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BaIsQd09.js} +23 -24
  81. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-CtnB58p_.js} +6 -6
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-BhEOMzEQ.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-CcdqTEIp.js} +3 -3
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BrWqJCSP.js} +6 -6
  89. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-BkkWTDHD.js} +10 -10
  91. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-BkkWTDHD.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-V5mwHsUV.js} +9 -9
  93. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DxrKuctP.js} +2 -2
  95. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CsZiG3TT.js} +13 -13
  97. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  98. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-BB-bQADJ.js} +2 -2
  99. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  100. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  101. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  102. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DC_eodTV.js} +2 -2
  103. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DC_eodTV.js.map} +1 -1
  104. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-DXnM5Df2.js} +7 -7
  105. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DXSqmaLS.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-DKyN6BhO.js} +2 -2
  109. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  110. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  111. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  112. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  113. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  114. package/dist/{ca-DMoGGP9L.js → cdn/chunks/ca-CbNzJM3I.js} +19 -1
  115. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  116. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js → cloud-BHClP3e2.js} +2 -2
  117. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js.map → cloud-BHClP3e2.js.map} +1 -1
  118. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-Vd0N4elZ.js} +4 -4
  119. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js.map → createCloudRuntime-Vd0N4elZ.js.map} +1 -1
  120. package/dist/cdn/chunks/{de-DgAelLbM.js → de-DMquBpZM.js} +18 -2
  121. package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
  122. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-vEEmZ8Tu.js} +88 -88
  123. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  124. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-C8Mp71sO.js} +18 -2
  125. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  126. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  127. package/dist/cdn/chunks/{es-BaZzyidV.js → es-Byq4tthI.js} +18 -2
  128. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  129. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-hJ9VqzDc.js} +4 -4
  130. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  131. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-B3j35HEw.js} +19 -1
  132. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  133. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-aTYwH5-g.js} +123 -94
  134. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  135. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-D7txAuGS.js} +19 -1
  136. package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
  137. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-ClJ3BY3F.js} +19 -1
  138. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  139. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-ByfuSjtL.js} +2 -2
  140. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-ByfuSjtL.js.map} +1 -1
  141. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-DibcXcmv.js} +19 -1
  142. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  143. package/dist/cdn/chunks/{socialIcons-DACw1wA8.js → socialIcons-C_lnkpG6.js} +355 -179
  144. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  145. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-DYCDeBDM.js} +219 -181
  146. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  147. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-DlFlC9Tt.js} +267 -241
  148. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  149. package/dist/cdn/chunks/{src-Bu0qBpbf.js → src-dZ4D_tuP.js} +226 -193
  150. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
  151. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
  152. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  153. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-Bb2UcB20.js} +722 -717
  154. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-HsyUCQtl.js} +2 -2
  156. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-Dg9pE85U.js} +2 -2
  158. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  159. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-oLcATrQ8.js} +2 -2
  160. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  161. package/dist/cdn/editor.css +1 -1
  162. package/dist/cdn/editor.js +403 -397
  163. package/dist/cdn/editor.js.map +1 -1
  164. package/dist/{check-B5R4zXr7.js → check-ClwqRMgv.js} +1 -1
  165. package/dist/{chevron-down-BKyl85NV.js → chevron-down-te6qn-zE.js} +1 -1
  166. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-W2hbH1FM.js} +1 -1
  167. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Bf5Zo7o4.js} +1 -1
  168. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-CIEGV5DN.js} +1 -1
  169. package/dist/{clock-Dv9bxsSH.js → clock-Y4cx0gkJ.js} +1 -1
  170. package/dist/{cloud-DwjaAdwK.js → cloud-B5xwm_4X.js} +1 -1
  171. package/dist/{copy-BsKl4dcy.js → copy-BEcsAlfB.js} +1 -1
  172. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-zNPkF6T9.js} +3 -3
  173. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-CYHXK9hn.js} +5 -5
  174. package/dist/{de-DgAelLbM.js → de-DMquBpZM.js} +17 -1
  175. package/dist/{dist-C8koXLhl.js → dist-tsmnQugO.js} +285 -249
  176. package/dist/{editor-modal-BwyIUnV_.js → editor-modal-AlVLkU91.js} +23 -23
  177. package/dist/en-B0FUfNwz.js +1 -0
  178. package/dist/{en-Dekrl7HA.js → en-C8Mp71sO.js} +17 -1
  179. package/dist/{es-BaZzyidV.js → es-Byq4tthI.js} +17 -1
  180. package/dist/{extensions-DHyKjsNZ.js → extensions-pjO8VGkM.js} +3 -3
  181. package/dist/{eye-DQuinb9k.js → eye-Ddnz8nnm.js} +1 -1
  182. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-B3j35HEw.js} +17 -3
  183. package/dist/{image-up-yTfLjOrj.js → image-up-CM_HC0Dx.js} +1 -1
  184. package/dist/index.d.ts +66 -3
  185. package/dist/{info-C7OjlS11.js → info-DXLmzoeY.js} +1 -1
  186. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-D7txAuGS.js} +17 -3
  187. package/dist/{link-CrUFaZ0t.js → link-Cel46wgo.js} +1 -1
  188. package/dist/{list-CLgv6M-k.js → list-Cl0GwiV9.js} +1 -1
  189. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-uAwpvfys.js} +1 -1
  190. package/dist/{message-circle-BisdQ8H9.js → message-circle-DWU1pTM_.js} +1 -1
  191. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-ClJ3BY3F.js} +17 -3
  192. package/dist/{package-C1T4AxV1.js → package-CbyG_yU_.js} +1 -1
  193. package/dist/{pencil-oo2mwf4C.js → pencil-BzoDcwKu.js} +1 -1
  194. package/dist/{plus-BIilXopD.js → plus-8cDvoCjZ.js} +1 -1
  195. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-DMP5RuHl.js} +3 -3
  196. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-DibcXcmv.js} +17 -3
  197. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-9WinWixo.js} +1 -1
  198. package/dist/{search-DNu9lImk.js → search-CqgGq1gG.js} +1 -1
  199. package/dist/{send-DDNh3LoJ.js → send-Ceo3c9Db.js} +1 -1
  200. package/dist/{shield-check-aXM3o14f.js → shield-check-uDAwur5D.js} +1 -1
  201. package/dist/{smartphone-isccgDee.js → smartphone-CcLaCpGK.js} +1 -1
  202. package/dist/{socialIcons-BctavKBN.js → socialIcons-PTiwhLoC.js} +332 -153
  203. package/dist/{sparkles-CIMfFxKv.js → sparkles-Do9XjAuT.js} +1 -1
  204. package/dist/style.css +1 -1
  205. package/dist/templatical-editor.js +549 -543
  206. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-DvzC0HQA.js} +1 -1
  207. package/dist/timeouts-Cv2jvusx.js +4 -0
  208. package/dist/{trash-8ZD9pK_c.js → trash-vlINTx32.js} +1 -1
  209. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-MRYSJ9T2.js} +1 -1
  210. package/dist/{upload-DrNFmVes.js → upload-CtNOI6J2.js} +1 -1
  211. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-PvErWWsp.js} +963 -957
  212. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-BHn67tDd.js} +1 -1
  213. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-CRkm5Ig6.js} +1 -1
  214. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CXmcHQQN.js} +1 -1
  215. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-CxRGeHO3.js} +1 -1
  216. package/dist/{x-CBFKGLB1.js → x-Cd6SFw8r.js} +1 -1
  217. package/package.json +8 -8
  218. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  219. package/dist/Toolbar-OGakTBEg.js +0 -2851
  220. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  221. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  222. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  223. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  224. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  225. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  226. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  227. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  228. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  229. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  230. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  231. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  232. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  233. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  234. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  235. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  236. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  237. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  238. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  239. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  240. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  241. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  242. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  243. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  244. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  245. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  246. package/dist/en-CC-57eC_.js +0 -1
  247. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -82,7 +82,7 @@ function p(e) {
82
82
  }
83
83
  return t;
84
84
  }
85
- function te(e) {
85
+ function m(e) {
86
86
  let t = typeof e?.url == "string" ? e.url.trim() : "";
87
87
  if (!e || !t) return null;
88
88
  let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && f.includes(r.y) ? r.y : "center";
@@ -93,7 +93,43 @@ function te(e) {
93
93
  repeat: e.repeat ? "repeat" : "no-repeat"
94
94
  };
95
95
  }
96
- var m = {
96
+ var te = [
97
+ "top",
98
+ "middle",
99
+ "bottom"
100
+ ];
101
+ function ne(e) {
102
+ let t = e.hero;
103
+ if (!t || typeof t != "object") return null;
104
+ if (e.columns !== "1") return {
105
+ applied: !1,
106
+ reason: "columns"
107
+ };
108
+ let n = m(e.backgroundImage);
109
+ if (n === null) return {
110
+ applied: !1,
111
+ reason: "image"
112
+ };
113
+ let r = ie(e.backgroundImage), i = re(t.height) ? Math.round(t.height) : "image";
114
+ return i === "image" && r === null ? {
115
+ applied: !1,
116
+ reason: "size"
117
+ } : {
118
+ applied: !0,
119
+ image: n,
120
+ height: i,
121
+ verticalAlign: te.includes(t.verticalAlign) ? t.verticalAlign : "middle",
122
+ aspectRatio: r
123
+ };
124
+ }
125
+ function re(e) {
126
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
127
+ }
128
+ function ie(e) {
129
+ let t = e?.naturalWidth, n = e?.naturalHeight;
130
+ return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
131
+ }
132
+ var ae = {
97
133
  facebook: {
98
134
  color: "#1877F2",
99
135
  path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
@@ -166,48 +202,48 @@ var m = {
166
202
  dark: "#1f1f1f",
167
203
  light: "#ffffff"
168
204
  };
169
- function g(e) {
205
+ function oe(e) {
170
206
  return e === "dark" || e === "light" ? e : void 0;
171
207
  }
172
- function ne(e, t) {
173
- let n = g(t);
208
+ function se(e, t) {
209
+ let n = oe(t);
174
210
  return {
175
- fill: n ? h[n] : m[e].color,
211
+ fill: n ? h[n] : ae[e].color,
176
212
  onFill: n === "light" ? h.dark : "#ffffff"
177
213
  };
178
214
  }
179
- function re(e, t) {
180
- if (g(t) === "dark" && (e === "plain" || e === "outlined")) return {
215
+ function ce(e, t) {
216
+ if (oe(t) === "dark" && (e === "plain" || e === "outlined")) return {
181
217
  color: h.light,
182
218
  opacity: .6,
183
219
  width: 1.4
184
220
  };
185
221
  }
186
- function ie(e) {
222
+ function le(e) {
187
223
  return e === "plain" ? .84 : .6;
188
224
  }
189
- function _(e) {
225
+ function g(e) {
190
226
  return e.type === "section";
191
227
  }
192
- function ae(e) {
228
+ function ue(e) {
193
229
  return e.type === "custom";
194
230
  }
195
- function v(e) {
231
+ function _(e) {
196
232
  return e.type === "slot";
197
233
  }
198
- function y(e) {
234
+ function v(e) {
199
235
  return e.type === "wrapper";
200
236
  }
201
- var b = {
237
+ var de = {
202
238
  content: "<p>Enter your title</p>",
203
239
  level: 2,
204
240
  textAlign: "left"
205
- }, x = { content: "<p>Enter your text here</p>" }, S = {
241
+ }, fe = { content: "<p>Enter your text here</p>" }, pe = {
206
242
  src: "",
207
243
  alt: "",
208
244
  width: "full",
209
245
  align: "center"
210
- }, oe = {
246
+ }, me = {
211
247
  text: "Click Here",
212
248
  url: "",
213
249
  backgroundColor: "#333333",
@@ -221,36 +257,36 @@ var b = {
221
257
  left: 24
222
258
  },
223
259
  align: "center"
224
- }, se = {
260
+ }, he = {
225
261
  lineStyle: "solid",
226
262
  color: "#e0e0e0",
227
263
  thickness: 1,
228
264
  width: "full"
229
- }, ce = { columns: "1" }, le = {
265
+ }, y = { columns: "1" }, b = {
230
266
  url: "",
231
267
  thumbnailUrl: "",
232
268
  alt: "Video",
233
269
  width: "full",
234
270
  align: "center"
235
- }, ue = {
271
+ }, x = {
236
272
  iconStyle: "solid",
237
273
  iconSize: "medium",
238
274
  spacing: 10,
239
275
  align: "center"
240
- }, de = { height: 24 }, fe = { content: "" }, pe = {
276
+ }, S = { height: 24 }, C = { content: "" }, w = {
241
277
  fontSize: 15,
242
278
  textAlign: "center",
243
279
  separator: "|",
244
280
  separatorColor: "#e0e0e0",
245
281
  spacing: 10
246
- }, me = {
282
+ }, T = {
247
283
  hasHeaderRow: !0,
248
284
  borderColor: "#e0e0e0",
249
285
  borderWidth: 1,
250
286
  cellPadding: 8,
251
287
  fontSize: 15,
252
288
  textAlign: "left"
253
- }, he = {
289
+ }, E = {
254
290
  targetDate: "",
255
291
  timezone: "UTC",
256
292
  showDays: !0,
@@ -271,20 +307,20 @@ var b = {
271
307
  expiredImageUrl: "",
272
308
  hideOnExpiry: !1
273
309
  }, ge = {
274
- title: b,
275
- paragraph: x,
276
- image: S,
277
- button: oe,
278
- divider: se,
279
- section: ce,
280
- video: le,
281
- social: ue,
282
- spacer: de,
283
- html: fe,
284
- menu: pe,
285
- table: me,
286
- countdown: he
287
- }, C = {
310
+ title: de,
311
+ paragraph: fe,
312
+ image: pe,
313
+ button: me,
314
+ divider: he,
315
+ section: y,
316
+ video: b,
317
+ social: x,
318
+ spacer: S,
319
+ html: C,
320
+ menu: w,
321
+ table: T,
322
+ countdown: E
323
+ }, D = {
288
324
  width: 600,
289
325
  backgroundColor: "#ffffff",
290
326
  textColor: "#1a1a1a",
@@ -292,14 +328,14 @@ var b = {
292
328
  fontFamily: "Arial",
293
329
  locale: "en"
294
330
  };
295
- function w(e) {
331
+ function O(e) {
296
332
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
297
333
  }
298
- function T(e, t) {
334
+ function k(e, t) {
299
335
  let n = { ...e };
300
336
  for (let r of Object.keys(t)) {
301
337
  let i = e[r], a = t[r];
302
- a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
338
+ a !== void 0 && (n[r] = O(i) && O(a) ? k(i, a) : a);
303
339
  }
304
340
  return n;
305
341
  }
@@ -307,7 +343,7 @@ function _e(e = "Arial", t) {
307
343
  return {
308
344
  blocks: [],
309
345
  settings: {
310
- ...C,
346
+ ...D,
311
347
  fontFamily: e,
312
348
  ...t
313
349
  }
@@ -334,7 +370,7 @@ function ye(e) {
334
370
  function be(e) {
335
371
  return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ye(e.locale) ? "rtl" : "ltr";
336
372
  }
337
- function E(e) {
373
+ function A(e) {
338
374
  let t = [];
339
375
  return JSON.parse(JSON.stringify(e, function(e, n) {
340
376
  if (typeof n != "object" || !n) return n;
@@ -342,14 +378,14 @@ function E(e) {
342
378
  if (!t.includes(n)) return t.push(n), n;
343
379
  }));
344
380
  }
345
- function D(e, t) {
346
- let n = E(e);
347
- return !t || Object.keys(t).length === 0 ? n : T(n, t);
381
+ function j(e, t) {
382
+ let n = A(e);
383
+ return !t || Object.keys(t).length === 0 ? n : k(n, t);
348
384
  }
349
- function O(e) {
350
- return e === void 0 ? void 0 : E(e);
385
+ function M(e) {
386
+ return e === void 0 ? void 0 : A(e);
351
387
  }
352
- function k() {
388
+ function N() {
353
389
  return crypto.randomUUID();
354
390
  }
355
391
  function xe(e = 0) {
@@ -360,135 +396,135 @@ function xe(e = 0) {
360
396
  left: e
361
397
  };
362
398
  }
363
- function A(e = 10) {
399
+ function P(e = 10) {
364
400
  return { padding: xe(e) };
365
401
  }
366
- function j(e = {}) {
367
- return D({
368
- id: k(),
402
+ function F(e = {}) {
403
+ return j({
404
+ id: N(),
369
405
  type: "title",
370
- ...b,
371
- styles: A()
406
+ ...de,
407
+ styles: P()
372
408
  }, e);
373
409
  }
374
- function M(e = {}) {
375
- return D({
376
- id: k(),
410
+ function I(e = {}) {
411
+ return j({
412
+ id: N(),
377
413
  type: "paragraph",
378
- ...x,
379
- styles: A()
414
+ ...fe,
415
+ styles: P()
380
416
  }, e);
381
417
  }
382
- function N(e = {}) {
383
- return D({
384
- id: k(),
418
+ function L(e = {}) {
419
+ return j({
420
+ id: N(),
385
421
  type: "image",
386
- ...S,
387
- styles: A()
422
+ ...pe,
423
+ styles: P()
388
424
  }, e);
389
425
  }
390
- function P(e = {}) {
391
- return D({
392
- id: k(),
426
+ function R(e = {}) {
427
+ return j({
428
+ id: N(),
393
429
  type: "button",
394
- ...oe,
395
- styles: A()
430
+ ...me,
431
+ styles: P()
396
432
  }, e);
397
433
  }
398
- function F(e = {}) {
399
- return D({
400
- id: k(),
434
+ function z(e = {}) {
435
+ return j({
436
+ id: N(),
401
437
  type: "divider",
402
- ...se,
403
- styles: A(20)
438
+ ...he,
439
+ styles: P(20)
404
440
  }, e);
405
441
  }
406
- function I(e = {}) {
407
- return D({
408
- id: k(),
442
+ function B(e = {}) {
443
+ return j({
444
+ id: N(),
409
445
  type: "section",
410
- ...ce,
446
+ ...y,
411
447
  children: [[]],
412
- styles: A(20)
448
+ styles: P(20)
413
449
  }, e);
414
450
  }
415
- function L(e = {}) {
416
- return D({
417
- id: k(),
451
+ function V(e = {}) {
452
+ return j({
453
+ id: N(),
418
454
  type: "video",
419
- ...le,
420
- styles: A()
455
+ ...b,
456
+ styles: P()
421
457
  }, e);
422
458
  }
423
- function R(e = {}) {
424
- return D({
425
- id: k(),
459
+ function Se(e = {}) {
460
+ return j({
461
+ id: N(),
426
462
  type: "social",
427
463
  icons: [],
428
- ...ue,
429
- styles: A()
464
+ ...x,
465
+ styles: P()
430
466
  }, e);
431
467
  }
432
- function z(e = {}) {
433
- return D({
434
- id: k(),
468
+ function H(e = {}) {
469
+ return j({
470
+ id: N(),
435
471
  type: "spacer",
436
- ...de,
437
- styles: A(0)
472
+ ...S,
473
+ styles: P(0)
438
474
  }, e);
439
475
  }
440
- function B(e = {}) {
441
- return D({
442
- id: k(),
476
+ function U(e = {}) {
477
+ return j({
478
+ id: N(),
443
479
  type: "html",
444
- ...fe,
445
- styles: A()
480
+ ...C,
481
+ styles: P()
446
482
  }, e);
447
483
  }
448
- function V(e = {}) {
449
- return D({
450
- id: k(),
484
+ function W(e = {}) {
485
+ return j({
486
+ id: N(),
451
487
  type: "menu",
452
488
  items: [],
453
- ...pe,
454
- styles: A()
489
+ ...w,
490
+ styles: P()
455
491
  }, e);
456
492
  }
457
- function Se(e, t) {
493
+ function Ce(e, t) {
458
494
  return Array.from({ length: t }, () => ({
459
- id: k(),
495
+ id: N(),
460
496
  cells: Array.from({ length: e }, () => ({
461
- id: k(),
497
+ id: N(),
462
498
  content: ""
463
499
  }))
464
500
  }));
465
501
  }
466
- function H(e = {}) {
467
- return D({
468
- id: k(),
502
+ function we(e = {}) {
503
+ return j({
504
+ id: N(),
469
505
  type: "table",
470
- rows: Se(3, 3),
471
- ...me,
472
- styles: A()
506
+ rows: Ce(3, 3),
507
+ ...T,
508
+ styles: P()
473
509
  }, e);
474
510
  }
475
- function Ce(e = {}) {
476
- return D({
477
- id: k(),
511
+ function Te(e = {}) {
512
+ return j({
513
+ id: N(),
478
514
  type: "countdown",
479
- ...he,
480
- styles: A()
515
+ ...E,
516
+ styles: P()
481
517
  }, e);
482
518
  }
483
- function we(e) {
519
+ function Ee(e) {
484
520
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
485
521
  }
486
- function Te(e) {
522
+ function De(e) {
487
523
  let t = {};
488
- for (let n of e.fields) t[n.key] = O(we(n));
489
- let n = D(A(), O(e.defaultStyles));
524
+ for (let n of e.fields) t[n.key] = M(Ee(n));
525
+ let n = j(P(), M(e.defaultStyles));
490
526
  return {
491
- id: k(),
527
+ id: N(),
492
528
  type: "custom",
493
529
  customType: e.type,
494
530
  fieldValues: t,
@@ -496,144 +532,144 @@ function Te(e) {
496
532
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
497
533
  };
498
534
  }
499
- function Ee() {
535
+ function Oe() {
500
536
  return {
501
- id: k(),
537
+ id: N(),
502
538
  type: "slot",
503
- styles: A(0)
539
+ styles: P(0)
504
540
  };
505
541
  }
506
- function De(e = {}) {
507
- return D({
508
- id: k(),
542
+ function ke(e = {}) {
543
+ return j({
544
+ id: N(),
509
545
  type: "wrapper",
510
546
  children: [],
511
- styles: A(0)
547
+ styles: P(0)
512
548
  }, e);
513
549
  }
514
- function Oe(e, t) {
550
+ function Ae(e, t) {
515
551
  switch (e) {
516
- case "section": return I(O(t?.section));
517
- case "title": return j(O(t?.title));
518
- case "paragraph": return M(O(t?.paragraph));
519
- case "image": return N(O(t?.image));
520
- case "button": return P(O(t?.button));
521
- case "divider": return F(O(t?.divider));
522
- case "video": return L(O(t?.video));
523
- case "social": return R(O(t?.social));
524
- case "spacer": return z(O(t?.spacer));
525
- case "html": return B(O(t?.html));
526
- case "menu": return V(O(t?.menu));
527
- case "table": return H(O(t?.table));
528
- case "countdown": return Ce(O(t?.countdown));
552
+ case "section": return B(M(t?.section));
553
+ case "title": return F(M(t?.title));
554
+ case "paragraph": return I(M(t?.paragraph));
555
+ case "image": return L(M(t?.image));
556
+ case "button": return R(M(t?.button));
557
+ case "divider": return z(M(t?.divider));
558
+ case "video": return V(M(t?.video));
559
+ case "social": return Se(M(t?.social));
560
+ case "spacer": return H(M(t?.spacer));
561
+ case "html": return U(M(t?.html));
562
+ case "menu": return W(M(t?.menu));
563
+ case "table": return we(M(t?.table));
564
+ case "countdown": return Te(M(t?.countdown));
529
565
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
530
566
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
531
567
  default: throw Error(`Unknown block type: ${e}`);
532
568
  }
533
569
  }
534
- function U(e) {
570
+ function G(e) {
535
571
  let t = JSON.parse(JSON.stringify(e));
536
- if (t.id = k(), t.type === "table") for (let e of t.rows) {
537
- e.id = k();
538
- for (let t of e.cells) t.id = k();
572
+ if (t.id = N(), t.type === "table") for (let e of t.rows) {
573
+ e.id = N();
574
+ for (let t of e.cells) t.id = N();
539
575
  }
540
- if (t.type === "menu") for (let e of t.items) e.id = k();
541
- if (t.type === "social") for (let e of t.icons) e.id = k();
542
- return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => U(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => U(e))), t;
576
+ if (t.type === "menu") for (let e of t.items) e.id = N();
577
+ if (t.type === "social") for (let e of t.icons) e.id = N();
578
+ return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => G(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => G(e))), t;
543
579
  }
544
- var W = "[Templatical] layout: must contain exactly one slot block", ke = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ae = "[Templatical] layout: a wrapper cannot contain a wrapper", je = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Me = "[Templatical] slot is not a valid content block", Ne = "[Templatical] wrapper is not a valid content block";
545
- function G(e, t, n = null, r = !1) {
546
- for (let i of e) if (t(i, n, r), _(i)) for (let e of i.children) G(e, t, i, !0);
547
- else y(i) && G(i.children, t, i, r);
580
+ var je = "[Templatical] layout: must contain exactly one slot block", Me = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ne = "[Templatical] layout: a wrapper cannot contain a wrapper", Pe = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Fe = "[Templatical] slot is not a valid content block", Ie = "[Templatical] wrapper is not a valid content block";
581
+ function K(e, t, n = null, r = !1) {
582
+ for (let i of e) if (t(i, n, r), g(i)) for (let e of i.children) K(e, t, i, !0);
583
+ else v(i) && K(i.children, t, i, r);
548
584
  }
549
- function Pe(e) {
585
+ function Le(e) {
550
586
  let t = 0;
551
- if (G(e.blocks, (e, n, r) => {
552
- if (v(e) && (t += 1, r)) throw Error(ke);
553
- if (y(e)) {
554
- if (r) throw Error(ke);
555
- if (e.children.some(y)) throw Error(Ae);
587
+ if (K(e.blocks, (e, n, r) => {
588
+ if (_(e) && (t += 1, r)) throw Error(Me);
589
+ if (v(e)) {
590
+ if (r) throw Error(Me);
591
+ if (e.children.some(v)) throw Error(Ne);
556
592
  }
557
- }), t !== 1) throw Error(W);
593
+ }), t !== 1) throw Error(je);
558
594
  }
559
- function Fe(e) {
560
- G(e.blocks, (e) => {
561
- if (v(e)) throw Error(Me);
595
+ function Re(e) {
596
+ K(e.blocks, (e) => {
597
+ if (_(e)) throw Error(Fe);
562
598
  });
563
599
  }
564
- function Ie(e) {
565
- G(e.blocks, (e) => {
566
- if (y(e)) throw Error(Ne);
600
+ function ze(e) {
601
+ K(e.blocks, (e) => {
602
+ if (v(e)) throw Error(Ie);
567
603
  });
568
604
  }
569
- function Le(e) {
605
+ function Be(e) {
570
606
  let t = !1;
571
- return G(e.blocks, (e, n) => {
572
- v(e) && n !== null && y(n) && (t = !0);
607
+ return K(e.blocks, (e, n) => {
608
+ _(e) && n !== null && v(n) && (t = !0);
573
609
  }), t;
574
610
  }
575
- function Re(e) {
576
- if (v(e)) return e;
577
- if (y(e)) {
578
- let t = U({
611
+ function Ve(e) {
612
+ if (_(e)) return e;
613
+ if (v(e)) {
614
+ let t = G({
579
615
  ...e,
580
616
  children: []
581
617
  });
582
- return t.children = e.children.map(Re), t;
618
+ return t.children = e.children.map(Ve), t;
583
619
  }
584
- return U(e);
620
+ return G(e);
585
621
  }
586
- function ze(e) {
622
+ function He(e) {
587
623
  for (let t = 0; t < e.length; t++) {
588
624
  let n = e[t];
589
- if (v(n)) return {
625
+ if (_(n)) return {
590
626
  parent: e,
591
627
  index: t
592
628
  };
593
- if (y(n)) {
594
- let e = ze(n.children);
629
+ if (v(n)) {
630
+ let e = He(n.children);
595
631
  if (e) return e;
596
632
  }
597
633
  }
598
634
  return null;
599
635
  }
600
- function Be(e) {
601
- for (let t of e) if (_(t)) {
636
+ function Ue(e) {
637
+ for (let t of e) if (g(t)) {
602
638
  if (t.wrapper) return !0;
603
- for (let e of t.children) if (Be(e)) return !0;
639
+ for (let e of t.children) if (Ue(e)) return !0;
604
640
  }
605
641
  return !1;
606
642
  }
607
- function Ve(e, t) {
608
- if (Pe(e), Fe(t), Ie(t), Le(e) && Be(t.blocks)) throw Error(je);
609
- let n = e.blocks.map(Re), r = ze(n);
610
- if (!r) throw Error(W);
611
- return r.parent.splice(r.index, 1, ...E(t.blocks)), {
643
+ function We(e, t) {
644
+ if (Le(e), Re(t), ze(t), Be(e) && Ue(t.blocks)) throw Error(Pe);
645
+ let n = e.blocks.map(Ve), r = He(n);
646
+ if (!r) throw Error(je);
647
+ return r.parent.splice(r.index, 1, ...A(t.blocks)), {
612
648
  blocks: n,
613
649
  settings: {
614
- ...E(t.settings),
650
+ ...A(t.settings),
615
651
  backgroundColor: e.settings.backgroundColor
616
652
  }
617
653
  };
618
654
  }
619
- var He = /* @__PURE__ */ new Set(["\"", "'"]);
620
- function Ue(e, t) {
655
+ var Ge = /* @__PURE__ */ new Set(["\"", "'"]);
656
+ function Ke(e, t) {
621
657
  let n = null;
622
658
  for (let r = t; r < e.length; r++) {
623
659
  let t = e[r];
624
660
  if (n !== null) t === n && (n = null);
625
- else if (He.has(t)) n = t;
661
+ else if (Ge.has(t)) n = t;
626
662
  else if (t === ">") return r;
627
663
  }
628
664
  return -1;
629
665
  }
630
- function We(e) {
666
+ function qe(e) {
631
667
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
632
668
  }
633
- function K(e) {
669
+ function q(e) {
634
670
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
635
671
  }
636
- var Ge = {
672
+ var Je = {
637
673
  amp: "&",
638
674
  lt: "<",
639
675
  gt: ">",
@@ -641,52 +677,52 @@ var Ge = {
641
677
  apos: "'",
642
678
  nbsp: "\xA0"
643
679
  };
644
- function Ke(e) {
680
+ function Ye(e) {
645
681
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
646
682
  if (t[0] === "#") {
647
683
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
648
684
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
649
685
  }
650
- return Ge[t.toLowerCase()] ?? e;
686
+ return Je[t.toLowerCase()] ?? e;
651
687
  }) : e;
652
688
  }
653
- function qe(e, t) {
689
+ function Xe(e, t) {
654
690
  let n = t.toLowerCase(), r = 0;
655
691
  for (; r < e.length;) {
656
- for (; r < e.length && (K(e[r]) || e[r] === "/");) r++;
692
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
657
693
  if (r >= e.length) break;
658
694
  let t = r;
659
- for (; r < e.length && We(e[r]);) r++;
695
+ for (; r < e.length && qe(e[r]);) r++;
660
696
  let i = e.substring(t, r).toLowerCase();
661
697
  if (i === "") {
662
698
  r++;
663
699
  continue;
664
700
  }
665
- for (; r < e.length && K(e[r]);) r++;
701
+ for (; r < e.length && q(e[r]);) r++;
666
702
  if (e[r] !== "=") continue;
667
- for (r++; r < e.length && K(e[r]);) r++;
703
+ for (r++; r < e.length && q(e[r]);) r++;
668
704
  let a = e[r];
669
- if (He.has(a)) {
705
+ if (Ge.has(a)) {
670
706
  let t = r + 1, o = e.indexOf(a, t);
671
707
  if (o === -1) return null;
672
- if (i === n) return Ke(e.substring(t, o));
708
+ if (i === n) return Ye(e.substring(t, o));
673
709
  r = o + 1;
674
710
  continue;
675
711
  }
676
712
  let o = r;
677
- for (; r < e.length && !K(e[r]) && e[r] !== ">";) r++;
678
- if (i === n) return Ke(e.substring(o, r));
713
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
714
+ if (i === n) return Ye(e.substring(o, r));
679
715
  }
680
716
  return null;
681
717
  }
682
- var Je = /<\/?p\b[^<>]*>/gi, Ye = /<p\b([^<>]*)>\s*<\/p>/gi;
683
- function Xe(e) {
684
- return e.replace(Je, "").trim() === "";
718
+ var Ze = /<\/?p\b[^<>]*>/gi, Qe = /<p\b([^<>]*)>\s*<\/p>/gi;
719
+ function $e(e) {
720
+ return e.replace(Ze, "").trim() === "";
685
721
  }
686
- function Ze(e) {
687
- return Xe(e) ? e : e.replace(Ye, "<p$1>&nbsp;</p>");
722
+ function et(e) {
723
+ return $e(e) ? e : e.replace(Qe, "<p$1>&nbsp;</p>");
688
724
  }
689
- var Qe = {
725
+ var tt = {
690
726
  arial: "Arial, sans-serif",
691
727
  helvetica: "Helvetica, sans-serif",
692
728
  georgia: "Georgia, serif",
@@ -695,13 +731,13 @@ var Qe = {
695
731
  "trebuchet ms": "'Trebuchet MS', sans-serif",
696
732
  "courier new": "'Courier New', monospace",
697
733
  tahoma: "Tahoma, sans-serif"
698
- }, $e = /* @__PURE__ */ new Set([
734
+ }, nt = /* @__PURE__ */ new Set([
699
735
  "inherit",
700
736
  "initial",
701
737
  "unset",
702
738
  "revert",
703
739
  "revert-layer"
704
- ]), et = /* @__PURE__ */ new Set([
740
+ ]), rt = /* @__PURE__ */ new Set([
705
741
  "serif",
706
742
  "sans-serif",
707
743
  "monospace",
@@ -716,14 +752,14 @@ var Qe = {
716
752
  "math",
717
753
  "fangsong"
718
754
  ]);
719
- function q(e) {
755
+ function it(e) {
720
756
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
721
757
  }
722
758
  function J(e) {
723
759
  if (typeof e != "string") return [];
724
760
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
725
761
  for (;;) {
726
- for (; r < t.length && q(t[r]);) r++;
762
+ for (; r < t.length && it(t[r]);) r++;
727
763
  if (r >= t.length) return [];
728
764
  let e = t[r];
729
765
  if (e === "\"" || e === "'") {
@@ -740,7 +776,7 @@ function J(e) {
740
776
  }
741
777
  }
742
778
  if (!o) return [];
743
- for (; a < t.length && q(t[a]);) a++;
779
+ for (; a < t.length && it(t[a]);) a++;
744
780
  if (a < t.length && t[a] !== ",") return [];
745
781
  n.push({
746
782
  name: i,
@@ -748,7 +784,7 @@ function J(e) {
748
784
  }), r = a;
749
785
  } else {
750
786
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
751
- if (a === "" || a.includes("\"") || a.includes("'") || $e.has(a.toLowerCase())) return [];
787
+ if (a === "" || a.includes("\"") || a.includes("'") || nt.has(a.toLowerCase())) return [];
752
788
  n.push({
753
789
  name: a,
754
790
  quoted: !1
@@ -758,22 +794,22 @@ function J(e) {
758
794
  r++;
759
795
  }
760
796
  }
761
- function tt(e) {
797
+ function at(e) {
762
798
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
763
799
  }
764
- function nt(e) {
765
- return !e.quoted && et.has(e.name.toLowerCase());
800
+ function ot(e) {
801
+ return !e.quoted && rt.has(e.name.toLowerCase());
766
802
  }
767
- function rt(e) {
803
+ function st(e) {
768
804
  return J(e)[0]?.name ?? "";
769
805
  }
770
- function it(e, t) {
771
- let n = (e) => `${tt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
806
+ function ct(e, t) {
807
+ let n = (e) => `${at(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
772
808
  if (i) return n(i);
773
809
  let a = J(e);
774
810
  if (a.length !== 1) return e;
775
811
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
776
- return c ? n(c) : Qe[s] || (nt(o) ? e : `${tt(o.name)}, ${t.defaultFallback}`);
812
+ return c ? n(c) : tt[s] || (ot(o) ? e : `${at(o.name)}, ${t.defaultFallback}`);
777
813
  }
778
814
  var Y = {
779
815
  liquid: {
@@ -792,33 +828,33 @@ var Y = {
792
828
  value: /%%=.+?=%%/g,
793
829
  logic: /%%\[\s*(\w+).*?\]%%/g
794
830
  }
795
- }, at = {
831
+ }, lt = {
796
832
  liquid: "{{",
797
833
  handlebars: "{{",
798
834
  mailchimp: "*|",
799
835
  ampscript: "%%="
800
- }, ot = {
836
+ }, ut = {
801
837
  liquid: "}}",
802
838
  handlebars: "}}",
803
839
  mailchimp: "|*",
804
840
  ampscript: "=%%"
805
841
  };
806
- function st(e) {
807
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return at[t];
842
+ function dt(e) {
843
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return lt[t];
808
844
  return null;
809
845
  }
810
- function ct(e) {
811
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return ot[t];
846
+ function ft(e) {
847
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return ut[t];
812
848
  return null;
813
849
  }
814
- function lt(e) {
850
+ function pt(e) {
815
851
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
816
852
  }
817
853
  function X(e) {
818
854
  let t = e.source, n = e.flags.replace("g", "");
819
855
  return RegExp(`^${t}$`, n);
820
856
  }
821
- function ut(e, t) {
857
+ function mt(e, t) {
822
858
  let n = e?.trim() || "";
823
859
  return !X(t.logic).test(n) && X(t.value).test(n);
824
860
  }
@@ -826,41 +862,41 @@ function Z(e, t) {
826
862
  let n = t.find((t) => t.value === e);
827
863
  return n ? n.label : e;
828
864
  }
829
- function dt(e, t) {
865
+ function ht(e, t) {
830
866
  return $(e, "data-merge-tag", (e) => Z(e, t));
831
867
  }
832
868
  function Q(e, t) {
833
869
  return t.find((t) => t.value === e)?.sample;
834
870
  }
835
- function ft(e, t) {
836
- return $(e, "data-merge-tag", (e) => ht(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
871
+ function gt(e, t) {
872
+ return $(e, "data-merge-tag", (e) => yt(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
837
873
  }
838
- function pt(e) {
874
+ function _t(e) {
839
875
  return e.some((e) => e.sample !== void 0);
840
876
  }
841
- function mt(e, t) {
877
+ function vt(e, t) {
842
878
  if (!e) return e;
843
879
  let n = e;
844
880
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
845
881
  return n;
846
882
  }
847
- function ht(e) {
883
+ function yt(e) {
848
884
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
849
885
  }
850
- function gt(e, t) {
886
+ function bt(e, t) {
851
887
  if (!e) return !1;
852
888
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
853
889
  return n.test(e) || r.test(e);
854
890
  }
855
- function _t(e, t) {
891
+ function xt(e, t) {
856
892
  return X(t.logic).test(e?.trim() || "");
857
893
  }
858
- function vt(e, t) {
894
+ function St(e, t) {
859
895
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
860
896
  return r && r[1] ? r[1].toUpperCase() : e;
861
897
  }
862
- function yt(e, t) {
863
- return $(e, "data-logic-merge-tag", (e) => vt(e, t));
898
+ function Ct(e, t) {
899
+ return $(e, "data-logic-merge-tag", (e) => St(e, t));
864
900
  }
865
901
  function $(e, t, n, r) {
866
902
  let i = "", a = 0;
@@ -875,7 +911,7 @@ function $(e, t, n, r) {
875
911
  i += e.substring(a, o + 5), a = o + 5;
876
912
  continue;
877
913
  }
878
- let c = Ue(e, o + 5);
914
+ let c = Ke(e, o + 5);
879
915
  if (c === -1) {
880
916
  i += e.substring(a);
881
917
  break;
@@ -885,7 +921,7 @@ function $(e, t, n, r) {
885
921
  i += e.substring(a);
886
922
  break;
887
923
  }
888
- let u = qe(e.substring(o + 5, c), t);
924
+ let u = Xe(e.substring(o + 5, c), t);
889
925
  if (u === null) {
890
926
  i += e.substring(a, o + 5), a = o + 5;
891
927
  continue;
@@ -895,12 +931,12 @@ function $(e, t, n, r) {
895
931
  }
896
932
  return i;
897
933
  }
898
- function bt(e) {
934
+ function wt(e) {
899
935
  if (typeof e != "object" || !e) return !1;
900
936
  let t = e;
901
937
  return Array.isArray(t.blocks);
902
938
  }
903
- var xt = class extends Error {
939
+ var Tt = class extends Error {
904
940
  statusCode;
905
941
  constructor(e, t) {
906
942
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -916,4 +952,4 @@ var xt = class extends Error {
916
952
  }
917
953
  };
918
954
  //#endregion
919
- export { v as $, Ee as A, rt as B, _e as C, V as D, N as E, L as F, ct as G, vt as H, De as I, ae as J, st as K, T as L, z as M, H as N, M as O, j as P, _ as Q, p as R, Te as S, B as T, Z as U, k as V, Q as W, ut as X, _t as Y, bt as Z, gt as _, o as _t, ge as a, it as at, P as b, l as c, lt as ct, xt as d, ie as dt, y as et, c as f, re as ft, U as g, r as gt, Ie as h, n as ht, e as i, be as it, R as j, I as k, m as l, E as lt, Fe as m, mt, f as n, J as nt, C as o, yt as ot, Ve as p, ft as pt, pt as q, i as r, te as rt, s, dt as st, d as t, Le as tt, Y as u, ne as ut, ee as v, t as vt, F as w, Ce as x, Oe as y, Pe as yt, Ze as z };
955
+ export { g as $, Oe as A, st as B, _e as C, W as D, L as E, V as F, ft as G, St as H, ke as I, ie as J, dt as K, k as L, H as M, we as N, I as O, F as P, wt as Q, p as R, De as S, U as T, Z as U, N as V, Q as W, xt as X, ue as Y, mt as Z, bt as _, n as _t, ge as a, be as at, R as b, t as bt, l as c, Ct as ct, Tt as d, A as dt, _ as et, c as f, se as ft, G as g, vt as gt, ze as h, gt as ht, e as i, m as it, Se as j, B as k, ae as l, ht as lt, Re as m, ce as mt, f as n, Be as nt, D as o, ct as ot, We as p, le as pt, _t as q, i as r, J as rt, s, ne as st, d as t, v as tt, Y as u, pt as ut, ee as v, r as vt, z as w, Te as x, Le as xt, Ae as y, o as yt, et as z };