@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
@@ -58,12 +58,12 @@ var s = {
58
58
  "left",
59
59
  "center",
60
60
  "right"
61
- ], ee = [
61
+ ], f = [
62
62
  "top",
63
63
  "center",
64
64
  "bottom"
65
65
  ];
66
- function te(e) {
66
+ function ee(e) {
67
67
  return {
68
68
  url: e,
69
69
  size: "cover",
@@ -74,7 +74,7 @@ function te(e) {
74
74
  repeat: !1
75
75
  };
76
76
  }
77
- function f(e) {
77
+ function p(e) {
78
78
  let t = "";
79
79
  for (let n of e) {
80
80
  let e = n.charCodeAt(0);
@@ -82,20 +82,58 @@ function f(e) {
82
82
  }
83
83
  return t;
84
84
  }
85
- function ne(e) {
85
+ function m(e) {
86
86
  let t = typeof e?.url == "string" ? e.url.trim() : "";
87
87
  if (!e || !t) return null;
88
- let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && ee.includes(r.y) ? r.y : "center";
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";
89
89
  return {
90
- url: f(t),
90
+ url: p(t),
91
91
  size: n,
92
92
  position: `${i} ${a}`,
93
93
  repeat: e.repeat ? "repeat" : "no-repeat"
94
94
  };
95
95
  }
96
96
  //#endregion
97
+ //#region ../types/src/hero.ts
98
+ var te = [
99
+ "top",
100
+ "middle",
101
+ "bottom"
102
+ ];
103
+ function ne(e) {
104
+ let t = e.hero;
105
+ if (!t || typeof t != "object") return null;
106
+ if (e.columns !== "1") return {
107
+ applied: !1,
108
+ reason: "columns"
109
+ };
110
+ let n = m(e.backgroundImage);
111
+ if (n === null) return {
112
+ applied: !1,
113
+ reason: "image"
114
+ };
115
+ let r = h(e.backgroundImage), i = re(t.height) ? Math.round(t.height) : "image";
116
+ return i === "image" && r === null ? {
117
+ applied: !1,
118
+ reason: "size"
119
+ } : {
120
+ applied: !0,
121
+ image: n,
122
+ height: i,
123
+ verticalAlign: te.includes(t.verticalAlign) ? t.verticalAlign : "middle",
124
+ aspectRatio: r
125
+ };
126
+ }
127
+ function re(e) {
128
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
129
+ }
130
+ function h(e) {
131
+ let t = e?.naturalWidth, n = e?.naturalHeight;
132
+ return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
133
+ }
134
+ //#endregion
97
135
  //#region ../types/src/social.ts
98
- var p = {
136
+ var g = {
99
137
  facebook: {
100
138
  color: "#1877F2",
101
139
  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"
@@ -164,84 +202,84 @@ var p = {
164
202
  color: "#1769FF",
165
203
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
166
204
  }
167
- }, m = {
205
+ }, _ = {
168
206
  dark: "#1f1f1f",
169
207
  light: "#ffffff"
170
208
  };
171
- function h(e) {
209
+ function v(e) {
172
210
  return e === "dark" || e === "light" ? e : void 0;
173
211
  }
174
- function re(e, t) {
175
- let n = h(t);
212
+ function ie(e, t) {
213
+ let n = v(t);
176
214
  return {
177
- fill: n ? m[n] : p[e].color,
178
- onFill: n === "light" ? m.dark : "#ffffff"
215
+ fill: n ? _[n] : g[e].color,
216
+ onFill: n === "light" ? _.dark : "#ffffff"
179
217
  };
180
218
  }
181
- function ie(e, t) {
182
- let n = h(t);
219
+ function ae(e, t) {
220
+ let n = v(t);
183
221
  return n ? `${e}-${n}` : e;
184
222
  }
185
- function ae(e, t) {
186
- if (h(t) === "dark" && (e === "plain" || e === "outlined")) return {
187
- color: m.light,
223
+ function oe(e, t) {
224
+ if (v(t) === "dark" && (e === "plain" || e === "outlined")) return {
225
+ color: _.light,
188
226
  opacity: .6,
189
227
  width: 1.4
190
228
  };
191
229
  }
192
- function oe(e) {
230
+ function se(e) {
193
231
  return e === "plain" ? .84 : .6;
194
232
  }
195
233
  //#endregion
196
234
  //#region ../types/src/guards.ts
197
- function g(e) {
235
+ function y(e) {
198
236
  return e.type === "section";
199
237
  }
200
- function se(e) {
238
+ function ce(e) {
201
239
  return e.type === "title";
202
240
  }
203
- function ce(e) {
241
+ function le(e) {
204
242
  return e.type === "paragraph";
205
243
  }
206
- function le(e) {
244
+ function ue(e) {
207
245
  return e.type === "image";
208
246
  }
209
- function ue(e) {
247
+ function de(e) {
210
248
  return e.type === "button";
211
249
  }
212
- function de(e) {
250
+ function fe(e) {
213
251
  return e.type === "divider";
214
252
  }
215
- function fe(e) {
253
+ function pe(e) {
216
254
  return e.type === "video";
217
255
  }
218
- function pe(e) {
256
+ function me(e) {
219
257
  return e.type === "social";
220
258
  }
221
- function me(e) {
259
+ function he(e) {
222
260
  return e.type === "spacer";
223
261
  }
224
- function he(e) {
262
+ function ge(e) {
225
263
  return e.type === "html";
226
264
  }
227
- function ge(e) {
265
+ function _e(e) {
228
266
  return e.type === "menu";
229
267
  }
230
- function _e(e) {
268
+ function ve(e) {
231
269
  return e.type === "table";
232
270
  }
233
- function ve(e) {
271
+ function ye(e) {
234
272
  return e.type === "custom";
235
273
  }
236
- function _(e) {
274
+ function b(e) {
237
275
  return e.type === "slot";
238
276
  }
239
- function v(e) {
277
+ function x(e) {
240
278
  return e.type === "wrapper";
241
279
  }
242
280
  //#endregion
243
281
  //#region ../types/src/defaults.ts
244
- var ye = {
282
+ var S = {
245
283
  content: "<p>Enter your title</p>",
246
284
  level: 2,
247
285
  textAlign: "left"
@@ -264,36 +302,36 @@ var ye = {
264
302
  left: 24
265
303
  },
266
304
  align: "center"
267
- }, y = {
305
+ }, Ce = {
268
306
  lineStyle: "solid",
269
307
  color: "#e0e0e0",
270
308
  thickness: 1,
271
309
  width: "full"
272
- }, b = { columns: "1" }, x = {
310
+ }, we = { columns: "1" }, Te = {
273
311
  url: "",
274
312
  thumbnailUrl: "",
275
313
  alt: "Video",
276
314
  width: "full",
277
315
  align: "center"
278
- }, S = {
316
+ }, Ee = {
279
317
  iconStyle: "solid",
280
318
  iconSize: "medium",
281
319
  spacing: 10,
282
320
  align: "center"
283
- }, C = { height: 24 }, w = { content: "" }, Ce = {
321
+ }, De = { height: 24 }, Oe = { content: "" }, ke = {
284
322
  fontSize: 15,
285
323
  textAlign: "center",
286
324
  separator: "|",
287
325
  separatorColor: "#e0e0e0",
288
326
  spacing: 10
289
- }, we = {
327
+ }, Ae = {
290
328
  hasHeaderRow: !0,
291
329
  borderColor: "#e0e0e0",
292
330
  borderWidth: 1,
293
331
  cellPadding: 8,
294
332
  fontSize: 15,
295
333
  textAlign: "left"
296
- }, Te = {
334
+ }, je = {
297
335
  targetDate: "",
298
336
  timezone: "UTC",
299
337
  showDays: !0,
@@ -313,21 +351,21 @@ var ye = {
313
351
  expiredMessage: "This offer has expired",
314
352
  expiredImageUrl: "",
315
353
  hideOnExpiry: !1
316
- }, Ee = {
317
- title: ye,
354
+ }, Me = {
355
+ title: S,
318
356
  paragraph: be,
319
357
  image: xe,
320
358
  button: Se,
321
- divider: y,
322
- section: b,
323
- video: x,
324
- social: S,
325
- spacer: C,
326
- html: w,
327
- menu: Ce,
328
- table: we,
329
- countdown: Te
330
- }, De = {
359
+ divider: Ce,
360
+ section: we,
361
+ video: Te,
362
+ social: Ee,
363
+ spacer: De,
364
+ html: Oe,
365
+ menu: ke,
366
+ table: Ae,
367
+ countdown: je
368
+ }, C = {
331
369
  width: 600,
332
370
  backgroundColor: "#ffffff",
333
371
  textColor: "#1a1a1a",
@@ -335,24 +373,24 @@ var ye = {
335
373
  fontFamily: "Arial",
336
374
  locale: "en"
337
375
  };
338
- function Oe(e) {
376
+ function w(e) {
339
377
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
340
378
  }
341
379
  function T(e, t) {
342
380
  let n = { ...e };
343
381
  for (let r of Object.keys(t)) {
344
382
  let i = e[r], a = t[r];
345
- a !== void 0 && (n[r] = Oe(i) && Oe(a) ? T(i, a) : a);
383
+ a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
346
384
  }
347
385
  return n;
348
386
  }
349
387
  //#endregion
350
388
  //#region ../types/src/template.ts
351
- function ke(e = "Arial", t) {
389
+ function Ne(e = "Arial", t) {
352
390
  return {
353
391
  blocks: [],
354
392
  settings: {
355
- ...De,
393
+ ...C,
356
394
  fontFamily: e,
357
395
  ...t
358
396
  }
@@ -360,7 +398,7 @@ function ke(e = "Arial", t) {
360
398
  }
361
399
  //#endregion
362
400
  //#region ../types/src/direction.ts
363
- var Ae = [
401
+ var Pe = [
364
402
  "ar",
365
403
  "he",
366
404
  "iw",
@@ -374,12 +412,12 @@ var Ae = [
374
412
  "ckb",
375
413
  "ks"
376
414
  ];
377
- function je(e) {
415
+ function Fe(e) {
378
416
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
379
- return !!t && Ae.includes(t);
417
+ return !!t && Pe.includes(t);
380
418
  }
381
- function Me(e) {
382
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : je(e.locale) ? "rtl" : "ltr";
419
+ function Ie(e) {
420
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Fe(e.locale) ? "rtl" : "ltr";
383
421
  }
384
422
  //#endregion
385
423
  //#region ../types/src/clone.ts
@@ -403,7 +441,7 @@ function O(e) {
403
441
  function k() {
404
442
  return crypto.randomUUID();
405
443
  }
406
- function Ne(e = 0) {
444
+ function Le(e = 0) {
407
445
  return {
408
446
  top: e,
409
447
  right: e,
@@ -412,13 +450,13 @@ function Ne(e = 0) {
412
450
  };
413
451
  }
414
452
  function A(e = 10) {
415
- return { padding: Ne(e) };
453
+ return { padding: Le(e) };
416
454
  }
417
455
  function j(e = {}) {
418
456
  return D({
419
457
  id: k(),
420
458
  type: "title",
421
- ...ye,
459
+ ...S,
422
460
  styles: A()
423
461
  }, e);
424
462
  }
@@ -450,7 +488,7 @@ function F(e = {}) {
450
488
  return D({
451
489
  id: k(),
452
490
  type: "divider",
453
- ...y,
491
+ ...Ce,
454
492
  styles: A(20)
455
493
  }, e);
456
494
  }
@@ -458,7 +496,7 @@ function I(e = {}) {
458
496
  return D({
459
497
  id: k(),
460
498
  type: "section",
461
- ...b,
499
+ ...we,
462
500
  children: [[]],
463
501
  styles: A(20)
464
502
  }, e);
@@ -467,7 +505,7 @@ function L(e = {}) {
467
505
  return D({
468
506
  id: k(),
469
507
  type: "video",
470
- ...x,
508
+ ...Te,
471
509
  styles: A()
472
510
  }, e);
473
511
  }
@@ -476,7 +514,7 @@ function R(e = {}) {
476
514
  id: k(),
477
515
  type: "social",
478
516
  icons: [],
479
- ...S,
517
+ ...Ee,
480
518
  styles: A()
481
519
  }, e);
482
520
  }
@@ -484,7 +522,7 @@ function z(e = {}) {
484
522
  return D({
485
523
  id: k(),
486
524
  type: "spacer",
487
- ...C,
525
+ ...De,
488
526
  styles: A(0)
489
527
  }, e);
490
528
  }
@@ -492,7 +530,7 @@ function B(e = {}) {
492
530
  return D({
493
531
  id: k(),
494
532
  type: "html",
495
- ...w,
533
+ ...Oe,
496
534
  styles: A()
497
535
  }, e);
498
536
  }
@@ -501,11 +539,11 @@ function V(e = {}) {
501
539
  id: k(),
502
540
  type: "menu",
503
541
  items: [],
504
- ...Ce,
542
+ ...ke,
505
543
  styles: A()
506
544
  }, e);
507
545
  }
508
- function Pe(e, t) {
546
+ function Re(e, t) {
509
547
  return Array.from({ length: t }, () => ({
510
548
  id: k(),
511
549
  cells: Array.from({ length: e }, () => ({
@@ -518,8 +556,8 @@ function H(e = {}) {
518
556
  return D({
519
557
  id: k(),
520
558
  type: "table",
521
- rows: Pe(3, 3),
522
- ...we,
559
+ rows: Re(3, 3),
560
+ ...Ae,
523
561
  styles: A()
524
562
  }, e);
525
563
  }
@@ -527,16 +565,16 @@ function U(e = {}) {
527
565
  return D({
528
566
  id: k(),
529
567
  type: "countdown",
530
- ...Te,
568
+ ...je,
531
569
  styles: A()
532
570
  }, e);
533
571
  }
534
- function Fe(e) {
572
+ function ze(e) {
535
573
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
536
574
  }
537
- function Ie(e) {
575
+ function Be(e) {
538
576
  let t = {};
539
- for (let n of e.fields) t[n.key] = O(Fe(n));
577
+ for (let n of e.fields) t[n.key] = O(ze(n));
540
578
  let n = D(A(), O(e.defaultStyles));
541
579
  return {
542
580
  id: k(),
@@ -547,14 +585,14 @@ function Ie(e) {
547
585
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
548
586
  };
549
587
  }
550
- function Le() {
588
+ function Ve() {
551
589
  return {
552
590
  id: k(),
553
591
  type: "slot",
554
592
  styles: A(0)
555
593
  };
556
594
  }
557
- function Re(e = {}) {
595
+ function He(e = {}) {
558
596
  return D({
559
597
  id: k(),
560
598
  type: "wrapper",
@@ -562,7 +600,7 @@ function Re(e = {}) {
562
600
  styles: A(0)
563
601
  }, e);
564
602
  }
565
- function ze(e, t) {
603
+ function Ue(e, t) {
566
604
  switch (e) {
567
605
  case "section": return I(O(t?.section));
568
606
  case "title": return j(O(t?.title));
@@ -594,73 +632,73 @@ function W(e) {
594
632
  }
595
633
  //#endregion
596
634
  //#region ../types/src/layout.ts
597
- var G = "[Templatical] layout: must contain exactly one slot block", Be = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ve = "[Templatical] layout: a wrapper cannot contain a wrapper", He = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Ue = "[Templatical] slot is not a valid content block", We = "[Templatical] wrapper is not a valid content block";
598
- function K(e, t, n = null, r = !1) {
599
- for (let i of e) if (t(i, n, r), g(i)) for (let e of i.children) K(e, t, i, !0);
600
- else v(i) && K(i.children, t, i, r);
635
+ var We = "[Templatical] layout: must contain exactly one slot block", Ge = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ke = "[Templatical] layout: a wrapper cannot contain a wrapper", qe = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Je = "[Templatical] slot is not a valid content block", Ye = "[Templatical] wrapper is not a valid content block";
636
+ function G(e, t, n = null, r = !1) {
637
+ for (let i of e) if (t(i, n, r), y(i)) for (let e of i.children) G(e, t, i, !0);
638
+ else x(i) && G(i.children, t, i, r);
601
639
  }
602
- function Ge(e) {
640
+ function Xe(e) {
603
641
  let t = 0;
604
- if (K(e.blocks, (e, n, r) => {
605
- if (_(e) && (t += 1, r)) throw Error(Be);
606
- if (v(e)) {
607
- if (r) throw Error(Be);
608
- if (e.children.some(v)) throw Error(Ve);
642
+ if (G(e.blocks, (e, n, r) => {
643
+ if (b(e) && (t += 1, r)) throw Error(Ge);
644
+ if (x(e)) {
645
+ if (r) throw Error(Ge);
646
+ if (e.children.some(x)) throw Error(Ke);
609
647
  }
610
- }), t !== 1) throw Error(G);
648
+ }), t !== 1) throw Error(We);
611
649
  }
612
- function Ke(e) {
613
- K(e.blocks, (e) => {
614
- if (_(e)) throw Error(Ue);
650
+ function Ze(e) {
651
+ G(e.blocks, (e) => {
652
+ if (b(e)) throw Error(Je);
615
653
  });
616
654
  }
617
- function qe(e) {
618
- K(e.blocks, (e) => {
619
- if (v(e)) throw Error(We);
655
+ function Qe(e) {
656
+ G(e.blocks, (e) => {
657
+ if (x(e)) throw Error(Ye);
620
658
  });
621
659
  }
622
- function Je(e) {
660
+ function $e(e) {
623
661
  let t = !1;
624
- return K(e.blocks, (e, n) => {
625
- _(e) && n !== null && v(n) && (t = !0);
662
+ return G(e.blocks, (e, n) => {
663
+ b(e) && n !== null && x(n) && (t = !0);
626
664
  }), t;
627
665
  }
628
- function Ye(e) {
629
- if (_(e)) return e;
630
- if (v(e)) {
666
+ function et(e) {
667
+ if (b(e)) return e;
668
+ if (x(e)) {
631
669
  let t = W({
632
670
  ...e,
633
671
  children: []
634
672
  });
635
- return t.children = e.children.map(Ye), t;
673
+ return t.children = e.children.map(et), t;
636
674
  }
637
675
  return W(e);
638
676
  }
639
- function Xe(e) {
677
+ function tt(e) {
640
678
  for (let t = 0; t < e.length; t++) {
641
679
  let n = e[t];
642
- if (_(n)) return {
680
+ if (b(n)) return {
643
681
  parent: e,
644
682
  index: t
645
683
  };
646
- if (v(n)) {
647
- let e = Xe(n.children);
684
+ if (x(n)) {
685
+ let e = tt(n.children);
648
686
  if (e) return e;
649
687
  }
650
688
  }
651
689
  return null;
652
690
  }
653
- function Ze(e) {
654
- for (let t of e) if (g(t)) {
691
+ function nt(e) {
692
+ for (let t of e) if (y(t)) {
655
693
  if (t.wrapper) return !0;
656
- for (let e of t.children) if (Ze(e)) return !0;
694
+ for (let e of t.children) if (nt(e)) return !0;
657
695
  }
658
696
  return !1;
659
697
  }
660
- function Qe(e, t) {
661
- if (Ge(e), Ke(t), qe(t), Je(e) && Ze(t.blocks)) throw Error(He);
662
- let n = e.blocks.map(Ye), r = Xe(n);
663
- if (!r) throw Error(G);
698
+ function rt(e, t) {
699
+ if (Xe(e), Ze(t), Qe(t), $e(e) && nt(t.blocks)) throw Error(qe);
700
+ let n = e.blocks.map(et), r = tt(n);
701
+ if (!r) throw Error(We);
664
702
  return r.parent.splice(r.index, 1, ...E(t.blocks)), {
665
703
  blocks: n,
666
704
  settings: {
@@ -671,24 +709,24 @@ function Qe(e, t) {
671
709
  }
672
710
  //#endregion
673
711
  //#region ../types/src/html-scan.ts
674
- var $e = /* @__PURE__ */ new Set(["\"", "'"]);
675
- function et(e, t) {
712
+ var it = /* @__PURE__ */ new Set(["\"", "'"]);
713
+ function at(e, t) {
676
714
  let n = null;
677
715
  for (let r = t; r < e.length; r++) {
678
716
  let t = e[r];
679
717
  if (n !== null) t === n && (n = null);
680
- else if ($e.has(t)) n = t;
718
+ else if (it.has(t)) n = t;
681
719
  else if (t === ">") return r;
682
720
  }
683
721
  return -1;
684
722
  }
685
- function tt(e) {
723
+ function ot(e) {
686
724
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
687
725
  }
688
- function q(e) {
726
+ function K(e) {
689
727
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
690
728
  }
691
- var nt = {
729
+ var st = {
692
730
  amp: "&",
693
731
  lt: "<",
694
732
  gt: ">",
@@ -696,56 +734,56 @@ var nt = {
696
734
  apos: "'",
697
735
  nbsp: "\xA0"
698
736
  };
699
- function rt(e) {
737
+ function ct(e) {
700
738
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
701
739
  if (t[0] === "#") {
702
740
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
703
741
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
704
742
  }
705
- return nt[t.toLowerCase()] ?? e;
743
+ return st[t.toLowerCase()] ?? e;
706
744
  }) : e;
707
745
  }
708
- function it(e, t) {
746
+ function lt(e, t) {
709
747
  let n = t.toLowerCase(), r = 0;
710
748
  for (; r < e.length;) {
711
- for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
749
+ for (; r < e.length && (K(e[r]) || e[r] === "/");) r++;
712
750
  if (r >= e.length) break;
713
751
  let t = r;
714
- for (; r < e.length && tt(e[r]);) r++;
752
+ for (; r < e.length && ot(e[r]);) r++;
715
753
  let i = e.substring(t, r).toLowerCase();
716
754
  if (i === "") {
717
755
  r++;
718
756
  continue;
719
757
  }
720
- for (; r < e.length && q(e[r]);) r++;
758
+ for (; r < e.length && K(e[r]);) r++;
721
759
  if (e[r] !== "=") continue;
722
- for (r++; r < e.length && q(e[r]);) r++;
760
+ for (r++; r < e.length && K(e[r]);) r++;
723
761
  let a = e[r];
724
- if ($e.has(a)) {
762
+ if (it.has(a)) {
725
763
  let t = r + 1, o = e.indexOf(a, t);
726
764
  if (o === -1) return null;
727
- if (i === n) return rt(e.substring(t, o));
765
+ if (i === n) return ct(e.substring(t, o));
728
766
  r = o + 1;
729
767
  continue;
730
768
  }
731
769
  let o = r;
732
- for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
733
- if (i === n) return rt(e.substring(o, r));
770
+ for (; r < e.length && !K(e[r]) && e[r] !== ">";) r++;
771
+ if (i === n) return ct(e.substring(o, r));
734
772
  }
735
773
  return null;
736
774
  }
737
775
  //#endregion
738
776
  //#region ../types/src/rich-text.ts
739
- var at = /<\/?p\b[^<>]*>/gi, ot = /<p\b([^<>]*)>\s*<\/p>/gi;
740
- function st(e) {
741
- return e.replace(at, "").trim() === "";
777
+ var ut = /<\/?p\b[^<>]*>/gi, dt = /<p\b([^<>]*)>\s*<\/p>/gi;
778
+ function ft(e) {
779
+ return e.replace(ut, "").trim() === "";
742
780
  }
743
- function ct(e) {
744
- return st(e) ? e : e.replace(ot, "<p$1>&nbsp;</p>");
781
+ function pt(e) {
782
+ return ft(e) ? e : e.replace(dt, "<p$1>&nbsp;</p>");
745
783
  }
746
784
  //#endregion
747
785
  //#region ../types/src/fonts.ts
748
- var lt = {
786
+ var mt = {
749
787
  arial: "Arial, sans-serif",
750
788
  helvetica: "Helvetica, sans-serif",
751
789
  georgia: "Georgia, serif",
@@ -754,13 +792,13 @@ var lt = {
754
792
  "trebuchet ms": "'Trebuchet MS', sans-serif",
755
793
  "courier new": "'Courier New', monospace",
756
794
  tahoma: "Tahoma, sans-serif"
757
- }, ut = /* @__PURE__ */ new Set([
795
+ }, ht = /* @__PURE__ */ new Set([
758
796
  "inherit",
759
797
  "initial",
760
798
  "unset",
761
799
  "revert",
762
800
  "revert-layer"
763
- ]), dt = /* @__PURE__ */ new Set([
801
+ ]), gt = /* @__PURE__ */ new Set([
764
802
  "serif",
765
803
  "sans-serif",
766
804
  "monospace",
@@ -775,14 +813,14 @@ var lt = {
775
813
  "math",
776
814
  "fangsong"
777
815
  ]);
778
- function ft(e) {
816
+ function _t(e) {
779
817
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
780
818
  }
781
- function J(e) {
819
+ function q(e) {
782
820
  if (typeof e != "string") return [];
783
821
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
784
822
  for (;;) {
785
- for (; r < t.length && ft(t[r]);) r++;
823
+ for (; r < t.length && _t(t[r]);) r++;
786
824
  if (r >= t.length) return [];
787
825
  let e = t[r];
788
826
  if (e === "\"" || e === "'") {
@@ -799,7 +837,7 @@ function J(e) {
799
837
  }
800
838
  }
801
839
  if (!o) return [];
802
- for (; a < t.length && ft(t[a]);) a++;
840
+ for (; a < t.length && _t(t[a]);) a++;
803
841
  if (a < t.length && t[a] !== ",") return [];
804
842
  n.push({
805
843
  name: i,
@@ -807,7 +845,7 @@ function J(e) {
807
845
  }), r = a;
808
846
  } else {
809
847
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
810
- if (a === "" || a.includes("\"") || a.includes("'") || ut.has(a.toLowerCase())) return [];
848
+ if (a === "" || a.includes("\"") || a.includes("'") || ht.has(a.toLowerCase())) return [];
811
849
  n.push({
812
850
  name: a,
813
851
  quoted: !1
@@ -817,22 +855,22 @@ function J(e) {
817
855
  r++;
818
856
  }
819
857
  }
820
- function pt(e) {
858
+ function J(e) {
821
859
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
822
860
  }
823
- function mt(e) {
824
- return !e.quoted && dt.has(e.name.toLowerCase());
861
+ function vt(e) {
862
+ return !e.quoted && gt.has(e.name.toLowerCase());
825
863
  }
826
- function ht(e) {
827
- return J(e)[0]?.name ?? "";
864
+ function yt(e) {
865
+ return q(e)[0]?.name ?? "";
828
866
  }
829
- function gt(e, t) {
830
- let n = (e) => `${pt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
867
+ function bt(e, t) {
868
+ let n = (e) => `${J(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
831
869
  if (i) return n(i);
832
- let a = J(e);
870
+ let a = q(e);
833
871
  if (a.length !== 1) return e;
834
872
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
835
- return c ? n(c) : lt[s] || (mt(o) ? e : `${pt(o.name)}, ${t.defaultFallback}`);
873
+ return c ? n(c) : mt[s] || (vt(o) ? e : `${J(o.name)}, ${t.defaultFallback}`);
836
874
  }
837
875
  //#endregion
838
876
  //#region ../types/src/merge-tags.ts
@@ -853,33 +891,33 @@ var Y = {
853
891
  value: /%%=.+?=%%/g,
854
892
  logic: /%%\[\s*(\w+).*?\]%%/g
855
893
  }
856
- }, _t = {
894
+ }, xt = {
857
895
  liquid: "{{",
858
896
  handlebars: "{{",
859
897
  mailchimp: "*|",
860
898
  ampscript: "%%="
861
- }, vt = {
899
+ }, St = {
862
900
  liquid: "}}",
863
901
  handlebars: "}}",
864
902
  mailchimp: "|*",
865
903
  ampscript: "=%%"
866
904
  };
867
- function yt(e) {
868
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return _t[t];
905
+ function Ct(e) {
906
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return xt[t];
869
907
  return null;
870
908
  }
871
- function bt(e) {
872
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return vt[t];
909
+ function wt(e) {
910
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return St[t];
873
911
  return null;
874
912
  }
875
- function xt(e) {
913
+ function Tt(e) {
876
914
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
877
915
  }
878
916
  function X(e) {
879
917
  let t = e.source, n = e.flags.replace("g", "");
880
918
  return RegExp(`^${t}$`, n);
881
919
  }
882
- function St(e, t) {
920
+ function Et(e, t) {
883
921
  let n = e?.trim() || "";
884
922
  return !X(t.logic).test(n) && X(t.value).test(n);
885
923
  }
@@ -887,41 +925,41 @@ function Z(e, t) {
887
925
  let n = t.find((t) => t.value === e);
888
926
  return n ? n.label : e;
889
927
  }
890
- function Ct(e, t) {
928
+ function Dt(e, t) {
891
929
  return $(e, "data-merge-tag", (e) => Z(e, t));
892
930
  }
893
931
  function Q(e, t) {
894
932
  return t.find((t) => t.value === e)?.sample;
895
933
  }
896
- function wt(e, t) {
897
- return $(e, "data-merge-tag", (e) => Dt(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
934
+ function Ot(e, t) {
935
+ return $(e, "data-merge-tag", (e) => jt(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
898
936
  }
899
- function Tt(e) {
937
+ function kt(e) {
900
938
  return e.some((e) => e.sample !== void 0);
901
939
  }
902
- function Et(e, t) {
940
+ function At(e, t) {
903
941
  if (!e) return e;
904
942
  let n = e;
905
943
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
906
944
  return n;
907
945
  }
908
- function Dt(e) {
946
+ function jt(e) {
909
947
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
910
948
  }
911
- function Ot(e, t) {
949
+ function Mt(e, t) {
912
950
  if (!e) return !1;
913
951
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
914
952
  return n.test(e) || r.test(e);
915
953
  }
916
- function kt(e, t) {
954
+ function Nt(e, t) {
917
955
  return X(t.logic).test(e?.trim() || "");
918
956
  }
919
- function At(e, t) {
957
+ function Pt(e, t) {
920
958
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
921
959
  return r && r[1] ? r[1].toUpperCase() : e;
922
960
  }
923
- function jt(e, t) {
924
- return $(e, "data-logic-merge-tag", (e) => At(e, t));
961
+ function Ft(e, t) {
962
+ return $(e, "data-logic-merge-tag", (e) => Pt(e, t));
925
963
  }
926
964
  function $(e, t, n, r) {
927
965
  let i = "", a = 0;
@@ -936,7 +974,7 @@ function $(e, t, n, r) {
936
974
  i += e.substring(a, o + 5), a = o + 5;
937
975
  continue;
938
976
  }
939
- let c = et(e, o + 5);
977
+ let c = at(e, o + 5);
940
978
  if (c === -1) {
941
979
  i += e.substring(a);
942
980
  break;
@@ -946,7 +984,7 @@ function $(e, t, n, r) {
946
984
  i += e.substring(a);
947
985
  break;
948
986
  }
949
- let u = it(e.substring(o + 5, c), t);
987
+ let u = lt(e.substring(o + 5, c), t);
950
988
  if (u === null) {
951
989
  i += e.substring(a, o + 5), a = o + 5;
952
990
  continue;
@@ -958,12 +996,12 @@ function $(e, t, n, r) {
958
996
  }
959
997
  //#endregion
960
998
  //#region ../types/src/preview-resolution.ts
961
- function Mt(e) {
999
+ function It(e) {
962
1000
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
963
1001
  }
964
1002
  //#endregion
965
1003
  //#region ../types/src/config.ts
966
- var Nt = class extends Error {
1004
+ var Lt = class extends Error {
967
1005
  statusCode;
968
1006
  constructor(e, t) {
969
1007
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -979,6 +1017,6 @@ var Nt = class extends Error {
979
1017
  }
980
1018
  };
981
1019
  //#endregion
982
- export { De as $, W as A, c as At, I as B, et as C, te as Ct, qe as D, e as Dt, Ke as E, i as Et, F, j as G, R as H, B as I, k as J, L as K, N as L, P as M, r as Mt, U as N, o as Nt, Je as O, s as Ot, Ie as P, t as Pt, Ee as Q, V as R, st as S, ee as St, Qe as T, ne as Tt, z as U, Le as V, H as W, Me as X, E as Y, ke as Z, Et as _, ie as _t, At as a, le as at, gt as b, ae as bt, bt as c, g as ct, kt as d, me as dt, T as et, St as f, _e as ft, wt as g, p as gt, xt as h, v as ht, Ot as i, he as it, ze as j, n as jt, Ge as k, l as kt, yt as l, _ as lt, Ct as m, fe as mt, Mt as n, ve as nt, Z as o, ge as ot, jt as p, se as pt, Re as q, Y as r, de as rt, Q as s, ce as st, Nt as t, ue as tt, Tt as u, pe as ut, ht as v, re as vt, it as w, f as wt, ct as x, d as xt, J as y, oe as yt, M as z };
1020
+ export { C as $, W as A, s as At, I as B, at as C, d as Ct, Qe as D, m as Dt, Ze as E, p as Et, F, o as Ft, j as G, R as H, B as I, t as It, k as J, L as K, N as L, P as M, c as Mt, U as N, n as Nt, $e as O, i as Ot, Be as P, r as Pt, Me as Q, V as R, ft as S, ne as St, rt as T, ee as Tt, z as U, Ve as V, H as W, Ie as X, E as Y, Ne as Z, At as _, ae as _t, Pt as a, ue as at, bt as b, oe as bt, wt as c, y as ct, Nt as d, he as dt, T as et, Et as f, ve as ft, Ot as g, g as gt, Tt as h, x as ht, Mt as i, ge as it, Ue as j, l as jt, Xe as k, e as kt, Ct as l, b as lt, Dt as m, pe as mt, It as n, ye as nt, Z as o, _e as ot, Ft as p, ce as pt, He as q, Y as r, fe as rt, Q as s, le as st, Lt as t, de as tt, kt as u, me as ut, yt as v, ie as vt, lt as w, f as wt, pt as x, h as xt, q as y, se as yt, M as z };
983
1021
 
984
- //# sourceMappingURL=src-BnJlDuyB.js.map
1022
+ //# sourceMappingURL=src-DYCDeBDM.js.map