@templatical/editor 0.46.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 (317) hide show
  1. package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-DxPHFNoT.js} +14 -14
  2. package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-C8GVqu1d.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-BShkuJis.js} +5 -5
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-CUSftQdm.js} +5 -5
  6. package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-Dgw7tb4R.js} +9 -9
  7. package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-5rfopCPx.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-DiWzYtnZ.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-BOqj16Al.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-C4y3Ft7H.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-BWAi3eQQ.js} +13 -13
  13. package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-C-x3I012.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-B1_Wy0AN.js} +13 -13
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-ByOvznRC.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-9mDBv4aL.js} +2 -2
  18. package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-fOewuF27.js} +3 -3
  19. package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-BXamLcv7.js} +7 -7
  20. package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-BVjOwwHx.js} +100 -85
  21. package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-BEKXx9xk.js} +6 -6
  22. package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-D7kp7iig.js} +12 -12
  23. package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-SJu0lecx.js} +34 -35
  24. package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-DbmIS5uK.js} +14 -14
  25. package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-Dr5Fxx9Z.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DnEWBZJy.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-ynbGl-sr.js} +16 -16
  28. package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-Bi01S3H3.js} +12 -12
  29. package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-CbRY8HQx.js} +14 -14
  30. package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-NAOmt3xi.js} +2 -2
  31. package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-Cc3DHbuN.js} +15 -15
  32. package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-Ozc7YU38.js} +2 -2
  33. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  34. package/dist/{TplModal-BGFawHY9.js → TplModal-Bz4-IZ9R.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-CjV1d1zk.js} +10 -10
  36. package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-BtwxrKJn.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-BLAei1kj.js} +4 -4
  38. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  39. package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-CEDZytqP.js} +50 -20
  40. package/dist/bundle-stats.json +8 -8
  41. package/dist/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +38 -1
  42. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-Dk0rJBQN.js} +8 -8
  43. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-B7b0w8ZS.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-C7sdnkrF.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-B4fhuwc_.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-awqHfJqC.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-CS0ivqkr.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CbzxwsyI.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-DWPHZuQm.js} +8 -8
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js → CountdownToolbar-Cqg8FUH-.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BW9cHnA9.js} +12 -12
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-cXf9ywA4.js} +8 -8
  67. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js → LogicTagInsertButton-BMB9vShs.js} +89 -89
  71. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-zXfcArr4.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-Cp4XB_dH.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-DLqrA9co.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-BRiJzzn5.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-D4aq9eeC.js} +116 -101
  81. package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BgR6RXSb.js} +6 -6
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-C4DMAn0g.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BaIsQd09.js} +41 -42
  87. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-CtnB58p_.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-BhEOMzEQ.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-CcdqTEIp.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-BrWqJCSP.js} +9 -9
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-BkkWTDHD.js} +14 -14
  97. package/dist/cdn/chunks/TemplateSettings-BkkWTDHD.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-V5mwHsUV.js} +13 -13
  99. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-DxrKuctP.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-CsZiG3TT.js} +19 -19
  103. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BB-bQADJ.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  106. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  107. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-DC_eodTV.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-DC_eodTV.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-DXnM5Df2.js} +11 -11
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-DXSqmaLS.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-DKyN6BhO.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  117. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  118. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  119. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +39 -2
  121. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-BHClP3e2.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-BHClP3e2.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-Vd0N4elZ.js} +18 -9
  125. package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DMquBpZM.js} +39 -2
  127. package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-vEEmZ8Tu.js} +93 -93
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  136. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-C8Mp71sO.js} +39 -2
  137. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  138. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-Byq4tthI.js} +39 -2
  140. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-hJ9VqzDc.js} +7 -7
  142. package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +39 -2
  144. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-aTYwH5-g.js} +107 -78
  146. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  147. package/dist/{ja-BhdkqENz.js → cdn/chunks/ja-D7txAuGS.js} +40 -1
  148. package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-ClJ3BY3F.js} +40 -1
  152. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  153. package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-ByfuSjtL.js} +4 -2
  154. package/dist/cdn/chunks/preRenderCustomBlocks-ByfuSjtL.js.map +1 -0
  155. package/dist/{pt-BR-CUIT4rq4.js → cdn/chunks/pt-BR-DibcXcmv.js} +40 -1
  156. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +1279 -0
  158. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  159. package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-DYCDeBDM.js} +437 -256
  160. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  161. package/dist/cdn/chunks/{src-B0pZeTYO.js → src-DlFlC9Tt.js} +334 -268
  162. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  163. package/dist/cdn/chunks/src-dZ4D_tuP.js +649 -0
  164. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
  168. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  170. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  171. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  172. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  173. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  174. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  175. package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bb2UcB20.js} +780 -764
  176. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  177. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  178. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  179. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  180. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  181. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-HsyUCQtl.js} +4 -4
  182. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  183. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-Dg9pE85U.js} +4 -4
  184. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  185. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  186. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  187. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
  188. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
  189. package/dist/cdn/chunks/withCurrentFont-oLcATrQ8.js +21 -0
  190. package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  191. package/dist/cdn/editor.css +1 -1
  192. package/dist/cdn/editor.js +641 -631
  193. package/dist/cdn/editor.js.map +1 -1
  194. package/dist/{check-ZKvtMdpe.js → check-ClwqRMgv.js} +1 -1
  195. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-te6qn-zE.js} +1 -1
  196. package/dist/{chevron-right-CklHaa1U.js → chevron-right-W2hbH1FM.js} +1 -1
  197. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-Bf5Zo7o4.js} +1 -1
  198. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-CIEGV5DN.js} +1 -1
  199. package/dist/{clock-BEagNj21.js → clock-Y4cx0gkJ.js} +1 -1
  200. package/dist/{cloud-DPGjMGfv.js → cloud-B5xwm_4X.js} +2 -2
  201. package/dist/{copy-D6DNoSq1.js → copy-BEcsAlfB.js} +1 -1
  202. package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-zNPkF6T9.js} +17 -8
  203. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-CYHXK9hn.js} +6 -6
  204. package/dist/{de-CGjbQ2mt.js → de-DMquBpZM.js} +38 -1
  205. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  206. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  207. package/dist/dist-BPFcLKTw.js +5 -0
  208. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  209. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  210. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  211. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  212. package/dist/dist-D7Yj7E-F.js +5 -0
  213. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  214. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  215. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  216. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  217. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  218. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  219. package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-tsmnQugO.js} +207 -174
  220. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-AlVLkU91.js} +20 -20
  221. package/dist/en-B0FUfNwz.js +1 -0
  222. package/dist/{en-BTiiAC-B.js → en-C8Mp71sO.js} +38 -1
  223. package/dist/{es-CdTOcSTf.js → es-Byq4tthI.js} +38 -1
  224. package/dist/{extensions-CYigjb1g.js → extensions-pjO8VGkM.js} +9 -9
  225. package/dist/{eye-DvsTBI57.js → eye-Ddnz8nnm.js} +1 -1
  226. package/dist/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +38 -1
  227. package/dist/{image-up-BoFGZm5Q.js → image-up-CM_HC0Dx.js} +1 -1
  228. package/dist/index.d.ts +124 -11
  229. package/dist/{info-0bQQGjTV.js → info-DXLmzoeY.js} +1 -1
  230. package/dist/{cdn/chunks/ja-BhdkqENz.js → ja-D7txAuGS.js} +38 -3
  231. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  232. package/dist/{link-Cstrr3Ep.js → link-Cel46wgo.js} +1 -1
  233. package/dist/{list-Dx9Rmy5s.js → list-Cl0GwiV9.js} +1 -1
  234. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-uAwpvfys.js} +1 -1
  235. package/dist/{message-circle-D78ELX6I.js → message-circle-DWU1pTM_.js} +1 -1
  236. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-ClJ3BY3F.js} +38 -3
  237. package/dist/{package-DOvM9sHE.js → package-CbyG_yU_.js} +1 -1
  238. package/dist/{pencil-B6m0OG0n.js → pencil-BzoDcwKu.js} +1 -1
  239. package/dist/{plus-D-nEKxTc.js → plus-8cDvoCjZ.js} +1 -1
  240. package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-DMP5RuHl.js} +6 -4
  241. package/dist/{cdn/chunks/pt-BR-CUIT4rq4.js → pt-BR-DibcXcmv.js} +38 -3
  242. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-9WinWixo.js} +1 -1
  243. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  244. package/dist/{search-DSvil0jo.js → search-CqgGq1gG.js} +1 -1
  245. package/dist/{send-BBR28V94.js → send-Ceo3c9Db.js} +1 -1
  246. package/dist/{shield-check-ByxUnaU9.js → shield-check-uDAwur5D.js} +1 -1
  247. package/dist/{smartphone-CNOwGf5T.js → smartphone-CcLaCpGK.js} +1 -1
  248. package/dist/socialIcons-PTiwhLoC.js +1359 -0
  249. package/dist/{sparkles-DO1hzwzf.js → sparkles-Do9XjAuT.js} +1 -1
  250. package/dist/style.css +1 -1
  251. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  252. package/dist/templatical-editor.js +519 -509
  253. package/dist/{text-align-start-BKEKMheq.js → text-align-start-DvzC0HQA.js} +1 -1
  254. package/dist/timeouts-Cv2jvusx.js +4 -0
  255. package/dist/{trash-CKEQH4vH.js → trash-vlINTx32.js} +1 -1
  256. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-MRYSJ9T2.js} +1 -1
  257. package/dist/{upload-C8uO7KsR.js → upload-CtNOI6J2.js} +1 -1
  258. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  259. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  260. package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-PvErWWsp.js} +1002 -991
  261. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  262. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  263. package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-BHn67tDd.js} +3 -3
  264. package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-CRkm5Ig6.js} +5 -5
  265. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  266. package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-CXmcHQQN.js} +3 -3
  267. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  268. package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-CxRGeHO3.js} +1 -1
  269. package/dist/{x-gEC0yMci.js → x-Cd6SFw8r.js} +1 -1
  270. package/package.json +23 -23
  271. package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
  272. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  273. package/dist/Toolbar-CqhRb6EM.js +0 -2732
  274. package/dist/WrapperBlock-CTkmA887.js +0 -34
  275. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
  276. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
  277. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  278. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  279. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
  280. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js +0 -2646
  282. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
  283. package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
  284. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
  285. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
  286. package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js +0 -21
  287. package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js.map +0 -1
  288. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  289. package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
  290. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  291. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  292. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  293. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  294. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  295. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  296. package/dist/cdn/chunks/icons-Dr9erFGs.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  298. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  299. package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
  300. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  301. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
  302. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
  303. package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
  304. package/dist/cdn/chunks/src-BMw3u-iV.js +0 -614
  305. package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
  306. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
  307. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  308. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  309. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  310. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
  311. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  312. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
  313. package/dist/dist-CFC4pg2o.js +0 -5
  314. package/dist/dist-j2FavQmU.js +0 -5
  315. package/dist/en-Bk4iCfjp.js +0 -1
  316. package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
  317. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -1,4 +1,4 @@
1
- //#region ../types/src/blocks.ts
1
+ //#region ../types/dist/index.js
2
2
  var e = [
3
3
  "top",
4
4
  "right",
@@ -37,7 +37,7 @@ function a(e) {
37
37
  }
38
38
  function o(e) {
39
39
  if (e == null) return null;
40
- let t = i.map(typeof e == "number" ? () => a(e) : (t) => a(e[t]));
40
+ let t = typeof e == "number" ? i.map(() => a(e)) : i.map((t) => a(e[t]));
41
41
  return t.every((e) => e === 0) ? null : t.every((e) => e === t[0]) ? `${t[0]}px` : t.map((e) => `${e}px`).join(" ");
42
42
  }
43
43
  var s = {
@@ -45,12 +45,91 @@ var s = {
45
45
  2: 28,
46
46
  3: 22,
47
47
  4: 18
48
- }, c = {
48
+ }, c = 1.3, l = {
49
49
  paragraphGap: 8,
50
50
  listMarginY: 8,
51
51
  listPaddingLeft: 24,
52
52
  listItemMarginY: 4
53
- }, l = {
53
+ }, u = [
54
+ "cover",
55
+ "contain",
56
+ "auto"
57
+ ], d = [
58
+ "left",
59
+ "center",
60
+ "right"
61
+ ], f = [
62
+ "top",
63
+ "center",
64
+ "bottom"
65
+ ];
66
+ function ee(e) {
67
+ return {
68
+ url: e,
69
+ size: "cover",
70
+ position: {
71
+ x: "center",
72
+ y: "center"
73
+ },
74
+ repeat: !1
75
+ };
76
+ }
77
+ function p(e) {
78
+ let t = "";
79
+ for (let n of e) {
80
+ let e = n.charCodeAt(0);
81
+ t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
82
+ }
83
+ return t;
84
+ }
85
+ function m(e) {
86
+ let t = typeof e?.url == "string" ? e.url.trim() : "";
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 && f.includes(r.y) ? r.y : "center";
89
+ return {
90
+ url: p(t),
91
+ size: n,
92
+ position: `${i} ${a}`,
93
+ repeat: e.repeat ? "repeat" : "no-repeat"
94
+ };
95
+ }
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 = {
54
133
  facebook: {
55
134
  color: "#1877F2",
56
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"
@@ -119,93 +198,52 @@ var s = {
119
198
  color: "#1769FF",
120
199
  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"
121
200
  }
122
- }, u = {
201
+ }, h = {
123
202
  dark: "#1f1f1f",
124
203
  light: "#ffffff"
125
204
  };
126
- function d(e) {
205
+ function oe(e) {
127
206
  return e === "dark" || e === "light" ? e : void 0;
128
207
  }
129
- function ee(e, t) {
130
- let n = d(t);
208
+ function se(e, t) {
209
+ let n = oe(t);
131
210
  return {
132
- fill: n ? u[n] : l[e].color,
133
- onFill: n === "light" ? u.dark : "#ffffff"
211
+ fill: n ? h[n] : ae[e].color,
212
+ onFill: n === "light" ? h.dark : "#ffffff"
134
213
  };
135
214
  }
136
- function te(e, t) {
137
- let n = d(t);
138
- return n ? `${e}-${n}` : e;
139
- }
140
- function ne(e, t) {
141
- if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
142
- color: u.light,
215
+ function ce(e, t) {
216
+ if (oe(t) === "dark" && (e === "plain" || e === "outlined")) return {
217
+ color: h.light,
143
218
  opacity: .6,
144
219
  width: 1.4
145
220
  };
146
221
  }
147
- function re(e) {
222
+ function le(e) {
148
223
  return e === "plain" ? .84 : .6;
149
224
  }
150
- //#endregion
151
- //#region ../types/src/guards.ts
152
- function f(e) {
225
+ function g(e) {
153
226
  return e.type === "section";
154
227
  }
155
- function ie(e) {
156
- return e.type === "title";
157
- }
158
- function ae(e) {
159
- return e.type === "paragraph";
160
- }
161
- function oe(e) {
162
- return e.type === "image";
163
- }
164
- function se(e) {
165
- return e.type === "button";
166
- }
167
- function ce(e) {
168
- return e.type === "divider";
169
- }
170
- function le(e) {
171
- return e.type === "video";
172
- }
173
228
  function ue(e) {
174
- return e.type === "social";
175
- }
176
- function de(e) {
177
- return e.type === "spacer";
178
- }
179
- function fe(e) {
180
- return e.type === "html";
181
- }
182
- function pe(e) {
183
- return e.type === "menu";
184
- }
185
- function me(e) {
186
- return e.type === "table";
187
- }
188
- function he(e) {
189
229
  return e.type === "custom";
190
230
  }
191
- function p(e) {
231
+ function _(e) {
192
232
  return e.type === "slot";
193
233
  }
194
- function m(e) {
234
+ function v(e) {
195
235
  return e.type === "wrapper";
196
236
  }
197
- //#endregion
198
- //#region ../types/src/defaults.ts
199
- var h = {
237
+ var de = {
200
238
  content: "<p>Enter your title</p>",
201
239
  level: 2,
202
240
  textAlign: "left"
203
- }, g = { content: "<p>Enter your text here</p>" }, _ = {
241
+ }, fe = { content: "<p>Enter your text here</p>" }, pe = {
204
242
  src: "",
205
243
  alt: "",
206
244
  width: "full",
207
245
  align: "center"
208
- }, ge = {
246
+ }, me = {
209
247
  text: "Click Here",
210
248
  url: "",
211
249
  backgroundColor: "#333333",
@@ -219,7 +257,7 @@ var h = {
219
257
  left: 24
220
258
  },
221
259
  align: "center"
222
- }, v = {
260
+ }, he = {
223
261
  lineStyle: "solid",
224
262
  color: "#e0e0e0",
225
263
  thickness: 1,
@@ -268,12 +306,12 @@ var h = {
268
306
  expiredMessage: "This offer has expired",
269
307
  expiredImageUrl: "",
270
308
  hideOnExpiry: !1
271
- }, _e = {
272
- title: h,
273
- paragraph: g,
274
- image: _,
275
- button: ge,
276
- divider: v,
309
+ }, ge = {
310
+ title: de,
311
+ paragraph: fe,
312
+ image: pe,
313
+ button: me,
314
+ divider: he,
277
315
  section: y,
278
316
  video: b,
279
317
  social: x,
@@ -301,9 +339,7 @@ function k(e, t) {
301
339
  }
302
340
  return n;
303
341
  }
304
- //#endregion
305
- //#region ../types/src/template.ts
306
- function ve(e = "Arial", t) {
342
+ function _e(e = "Arial", t) {
307
343
  return {
308
344
  blocks: [],
309
345
  settings: {
@@ -313,9 +349,7 @@ function ve(e = "Arial", t) {
313
349
  }
314
350
  };
315
351
  }
316
- //#endregion
317
- //#region ../types/src/direction.ts
318
- var ye = [
352
+ var ve = [
319
353
  "ar",
320
354
  "he",
321
355
  "iw",
@@ -329,15 +363,13 @@ var ye = [
329
363
  "ckb",
330
364
  "ks"
331
365
  ];
332
- function be(e) {
366
+ function ye(e) {
333
367
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
334
- return !!t && ye.includes(t);
368
+ return !!t && ve.includes(t);
335
369
  }
336
- function xe(e) {
337
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : be(e.locale) ? "rtl" : "ltr";
370
+ function be(e) {
371
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ye(e.locale) ? "rtl" : "ltr";
338
372
  }
339
- //#endregion
340
- //#region ../types/src/clone.ts
341
373
  function A(e) {
342
374
  let t = [];
343
375
  return JSON.parse(JSON.stringify(e, function(e, n) {
@@ -346,8 +378,6 @@ function A(e) {
346
378
  if (!t.includes(n)) return t.push(n), n;
347
379
  }));
348
380
  }
349
- //#endregion
350
- //#region ../types/src/factory.ts
351
381
  function j(e, t) {
352
382
  let n = A(e);
353
383
  return !t || Object.keys(t).length === 0 ? n : k(n, t);
@@ -358,7 +388,7 @@ function M(e) {
358
388
  function N() {
359
389
  return crypto.randomUUID();
360
390
  }
361
- function Se(e = 0) {
391
+ function xe(e = 0) {
362
392
  return {
363
393
  top: e,
364
394
  right: e,
@@ -367,13 +397,13 @@ function Se(e = 0) {
367
397
  };
368
398
  }
369
399
  function P(e = 10) {
370
- return { padding: Se(e) };
400
+ return { padding: xe(e) };
371
401
  }
372
402
  function F(e = {}) {
373
403
  return j({
374
404
  id: N(),
375
405
  type: "title",
376
- ...h,
406
+ ...de,
377
407
  styles: P()
378
408
  }, e);
379
409
  }
@@ -381,7 +411,7 @@ function I(e = {}) {
381
411
  return j({
382
412
  id: N(),
383
413
  type: "paragraph",
384
- ...g,
414
+ ...fe,
385
415
  styles: P()
386
416
  }, e);
387
417
  }
@@ -389,7 +419,7 @@ function L(e = {}) {
389
419
  return j({
390
420
  id: N(),
391
421
  type: "image",
392
- ..._,
422
+ ...pe,
393
423
  styles: P()
394
424
  }, e);
395
425
  }
@@ -397,7 +427,7 @@ function R(e = {}) {
397
427
  return j({
398
428
  id: N(),
399
429
  type: "button",
400
- ...ge,
430
+ ...me,
401
431
  styles: P()
402
432
  }, e);
403
433
  }
@@ -405,7 +435,7 @@ function z(e = {}) {
405
435
  return j({
406
436
  id: N(),
407
437
  type: "divider",
408
- ...v,
438
+ ...he,
409
439
  styles: P(20)
410
440
  }, e);
411
441
  }
@@ -426,7 +456,7 @@ function V(e = {}) {
426
456
  styles: P()
427
457
  }, e);
428
458
  }
429
- function H(e = {}) {
459
+ function Se(e = {}) {
430
460
  return j({
431
461
  id: N(),
432
462
  type: "social",
@@ -435,7 +465,7 @@ function H(e = {}) {
435
465
  styles: P()
436
466
  }, e);
437
467
  }
438
- function U(e = {}) {
468
+ function H(e = {}) {
439
469
  return j({
440
470
  id: N(),
441
471
  type: "spacer",
@@ -443,7 +473,7 @@ function U(e = {}) {
443
473
  styles: P(0)
444
474
  }, e);
445
475
  }
446
- function W(e = {}) {
476
+ function U(e = {}) {
447
477
  return j({
448
478
  id: N(),
449
479
  type: "html",
@@ -451,7 +481,7 @@ function W(e = {}) {
451
481
  styles: P()
452
482
  }, e);
453
483
  }
454
- function G(e = {}) {
484
+ function W(e = {}) {
455
485
  return j({
456
486
  id: N(),
457
487
  type: "menu",
@@ -526,10 +556,10 @@ function Ae(e, t) {
526
556
  case "button": return R(M(t?.button));
527
557
  case "divider": return z(M(t?.divider));
528
558
  case "video": return V(M(t?.video));
529
- case "social": return H(M(t?.social));
530
- case "spacer": return U(M(t?.spacer));
531
- case "html": return W(M(t?.html));
532
- case "menu": return G(M(t?.menu));
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));
533
563
  case "table": return we(M(t?.table));
534
564
  case "countdown": return Te(M(t?.countdown));
535
565
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
@@ -537,7 +567,7 @@ function Ae(e, t) {
537
567
  default: throw Error(`Unknown block type: ${e}`);
538
568
  }
539
569
  }
540
- function K(e) {
570
+ function G(e) {
541
571
  let t = JSON.parse(JSON.stringify(e));
542
572
  if (t.id = N(), t.type === "table") for (let e of t.rows) {
543
573
  e.id = N();
@@ -545,60 +575,58 @@ function K(e) {
545
575
  }
546
576
  if (t.type === "menu") for (let e of t.items) e.id = N();
547
577
  if (t.type === "social") for (let e of t.icons) e.id = N();
548
- return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => K(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => K(e))), t;
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;
549
579
  }
550
- //#endregion
551
- //#region ../types/src/layout.ts
552
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";
553
- function q(e, t, n = null, r = !1) {
554
- for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) q(e, t, i, !0);
555
- else m(i) && q(i.children, t, i, r);
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);
556
584
  }
557
585
  function Le(e) {
558
586
  let t = 0;
559
- if (q(e.blocks, (e, n, r) => {
560
- if (p(e) && (t += 1, r)) throw Error(Me);
561
- if (m(e)) {
587
+ if (K(e.blocks, (e, n, r) => {
588
+ if (_(e) && (t += 1, r)) throw Error(Me);
589
+ if (v(e)) {
562
590
  if (r) throw Error(Me);
563
- if (e.children.some(m)) throw Error(Ne);
591
+ if (e.children.some(v)) throw Error(Ne);
564
592
  }
565
593
  }), t !== 1) throw Error(je);
566
594
  }
567
595
  function Re(e) {
568
- q(e.blocks, (e) => {
569
- if (p(e)) throw Error(Fe);
596
+ K(e.blocks, (e) => {
597
+ if (_(e)) throw Error(Fe);
570
598
  });
571
599
  }
572
600
  function ze(e) {
573
- q(e.blocks, (e) => {
574
- if (m(e)) throw Error(Ie);
601
+ K(e.blocks, (e) => {
602
+ if (v(e)) throw Error(Ie);
575
603
  });
576
604
  }
577
605
  function Be(e) {
578
606
  let t = !1;
579
- return q(e.blocks, (e, n) => {
580
- p(e) && n !== null && m(n) && (t = !0);
607
+ return K(e.blocks, (e, n) => {
608
+ _(e) && n !== null && v(n) && (t = !0);
581
609
  }), t;
582
610
  }
583
611
  function Ve(e) {
584
- if (p(e)) return e;
585
- if (m(e)) {
586
- let t = K({
612
+ if (_(e)) return e;
613
+ if (v(e)) {
614
+ let t = G({
587
615
  ...e,
588
616
  children: []
589
617
  });
590
618
  return t.children = e.children.map(Ve), t;
591
619
  }
592
- return K(e);
620
+ return G(e);
593
621
  }
594
622
  function He(e) {
595
623
  for (let t = 0; t < e.length; t++) {
596
624
  let n = e[t];
597
- if (p(n)) return {
625
+ if (_(n)) return {
598
626
  parent: e,
599
627
  index: t
600
628
  };
601
- if (m(n)) {
629
+ if (v(n)) {
602
630
  let e = He(n.children);
603
631
  if (e) return e;
604
632
  }
@@ -606,7 +634,7 @@ function He(e) {
606
634
  return null;
607
635
  }
608
636
  function Ue(e) {
609
- for (let t of e) if (f(t)) {
637
+ for (let t of e) if (g(t)) {
610
638
  if (t.wrapper) return !0;
611
639
  for (let e of t.children) if (Ue(e)) return !0;
612
640
  }
@@ -624,8 +652,6 @@ function We(e, t) {
624
652
  }
625
653
  };
626
654
  }
627
- //#endregion
628
- //#region ../types/src/html-scan.ts
629
655
  var Ge = /* @__PURE__ */ new Set(["\"", "'"]);
630
656
  function Ke(e, t) {
631
657
  let n = null;
@@ -640,7 +666,7 @@ function Ke(e, t) {
640
666
  function qe(e) {
641
667
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
642
668
  }
643
- function J(e) {
669
+ function q(e) {
644
670
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
645
671
  }
646
672
  var Je = {
@@ -663,7 +689,7 @@ function Ye(e) {
663
689
  function Xe(e, t) {
664
690
  let n = t.toLowerCase(), r = 0;
665
691
  for (; r < e.length;) {
666
- for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
692
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
667
693
  if (r >= e.length) break;
668
694
  let t = r;
669
695
  for (; r < e.length && qe(e[r]);) r++;
@@ -672,9 +698,9 @@ function Xe(e, t) {
672
698
  r++;
673
699
  continue;
674
700
  }
675
- for (; r < e.length && J(e[r]);) r++;
701
+ for (; r < e.length && q(e[r]);) r++;
676
702
  if (e[r] !== "=") continue;
677
- for (r++; r < e.length && J(e[r]);) r++;
703
+ for (r++; r < e.length && q(e[r]);) r++;
678
704
  let a = e[r];
679
705
  if (Ge.has(a)) {
680
706
  let t = r + 1, o = e.indexOf(a, t);
@@ -684,14 +710,19 @@ function Xe(e, t) {
684
710
  continue;
685
711
  }
686
712
  let o = r;
687
- for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
713
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
688
714
  if (i === n) return Ye(e.substring(o, r));
689
715
  }
690
716
  return null;
691
717
  }
692
- //#endregion
693
- //#region ../types/src/fonts.ts
694
- var Ze = {
718
+ var Ze = /<\/?p\b[^<>]*>/gi, Qe = /<p\b([^<>]*)>\s*<\/p>/gi;
719
+ function $e(e) {
720
+ return e.replace(Ze, "").trim() === "";
721
+ }
722
+ function et(e) {
723
+ return $e(e) ? e : e.replace(Qe, "<p$1>&nbsp;</p>");
724
+ }
725
+ var tt = {
695
726
  arial: "Arial, sans-serif",
696
727
  helvetica: "Helvetica, sans-serif",
697
728
  georgia: "Georgia, serif",
@@ -700,13 +731,13 @@ var Ze = {
700
731
  "trebuchet ms": "'Trebuchet MS', sans-serif",
701
732
  "courier new": "'Courier New', monospace",
702
733
  tahoma: "Tahoma, sans-serif"
703
- }, Qe = /* @__PURE__ */ new Set([
734
+ }, nt = /* @__PURE__ */ new Set([
704
735
  "inherit",
705
736
  "initial",
706
737
  "unset",
707
738
  "revert",
708
739
  "revert-layer"
709
- ]), $e = /* @__PURE__ */ new Set([
740
+ ]), rt = /* @__PURE__ */ new Set([
710
741
  "serif",
711
742
  "sans-serif",
712
743
  "monospace",
@@ -721,14 +752,14 @@ var Ze = {
721
752
  "math",
722
753
  "fangsong"
723
754
  ]);
724
- function et(e) {
755
+ function it(e) {
725
756
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
726
757
  }
727
- function tt(e) {
758
+ function J(e) {
728
759
  if (typeof e != "string") return [];
729
760
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
730
761
  for (;;) {
731
- for (; r < t.length && et(t[r]);) r++;
762
+ for (; r < t.length && it(t[r]);) r++;
732
763
  if (r >= t.length) return [];
733
764
  let e = t[r];
734
765
  if (e === "\"" || e === "'") {
@@ -745,7 +776,7 @@ function tt(e) {
745
776
  }
746
777
  }
747
778
  if (!o) return [];
748
- for (; a < t.length && et(t[a]);) a++;
779
+ for (; a < t.length && it(t[a]);) a++;
749
780
  if (a < t.length && t[a] !== ",") return [];
750
781
  n.push({
751
782
  name: i,
@@ -753,7 +784,7 @@ function tt(e) {
753
784
  }), r = a;
754
785
  } else {
755
786
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
756
- if (a === "" || a.includes("\"") || a.includes("'") || Qe.has(a.toLowerCase())) return [];
787
+ if (a === "" || a.includes("\"") || a.includes("'") || nt.has(a.toLowerCase())) return [];
757
788
  n.push({
758
789
  name: a,
759
790
  quoted: !1
@@ -763,17 +794,23 @@ function tt(e) {
763
794
  r++;
764
795
  }
765
796
  }
766
- function nt(e) {
797
+ function at(e) {
767
798
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
768
799
  }
769
- function rt(e) {
770
- return !e.quoted && $e.has(e.name.toLowerCase());
800
+ function ot(e) {
801
+ return !e.quoted && rt.has(e.name.toLowerCase());
771
802
  }
772
- function it(e) {
773
- return tt(e)[0]?.name ?? "";
803
+ function st(e) {
804
+ return J(e)[0]?.name ?? "";
805
+ }
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);
808
+ if (i) return n(i);
809
+ let a = J(e);
810
+ if (a.length !== 1) return e;
811
+ let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
812
+ return c ? n(c) : tt[s] || (ot(o) ? e : `${at(o.name)}, ${t.defaultFallback}`);
774
813
  }
775
- //#endregion
776
- //#region ../types/src/merge-tags.ts
777
814
  var Y = {
778
815
  liquid: {
779
816
  value: /\{\{.+?\}\}/g,
@@ -791,33 +828,33 @@ var Y = {
791
828
  value: /%%=.+?=%%/g,
792
829
  logic: /%%\[\s*(\w+).*?\]%%/g
793
830
  }
794
- }, at = {
831
+ }, lt = {
795
832
  liquid: "{{",
796
833
  handlebars: "{{",
797
834
  mailchimp: "*|",
798
835
  ampscript: "%%="
799
- }, ot = {
836
+ }, ut = {
800
837
  liquid: "}}",
801
838
  handlebars: "}}",
802
839
  mailchimp: "|*",
803
840
  ampscript: "=%%"
804
841
  };
805
- function st(e) {
806
- 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];
807
844
  return null;
808
845
  }
809
- function ct(e) {
810
- 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];
811
848
  return null;
812
849
  }
813
- function lt(e) {
850
+ function pt(e) {
814
851
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
815
852
  }
816
853
  function X(e) {
817
854
  let t = e.source, n = e.flags.replace("g", "");
818
855
  return RegExp(`^${t}$`, n);
819
856
  }
820
- function ut(e, t) {
857
+ function mt(e, t) {
821
858
  let n = e?.trim() || "";
822
859
  return !X(t.logic).test(n) && X(t.value).test(n);
823
860
  }
@@ -825,41 +862,41 @@ function Z(e, t) {
825
862
  let n = t.find((t) => t.value === e);
826
863
  return n ? n.label : e;
827
864
  }
828
- function dt(e, t) {
865
+ function ht(e, t) {
829
866
  return $(e, "data-merge-tag", (e) => Z(e, t));
830
867
  }
831
868
  function Q(e, t) {
832
869
  return t.find((t) => t.value === e)?.sample;
833
870
  }
834
- function ft(e, t) {
835
- 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 });
836
873
  }
837
- function pt(e) {
874
+ function _t(e) {
838
875
  return e.some((e) => e.sample !== void 0);
839
876
  }
840
- function mt(e, t) {
877
+ function vt(e, t) {
841
878
  if (!e) return e;
842
879
  let n = e;
843
880
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
844
881
  return n;
845
882
  }
846
- function ht(e) {
883
+ function yt(e) {
847
884
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
848
885
  }
849
- function gt(e, t) {
886
+ function bt(e, t) {
850
887
  if (!e) return !1;
851
888
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
852
889
  return n.test(e) || r.test(e);
853
890
  }
854
- function _t(e, t) {
891
+ function xt(e, t) {
855
892
  return X(t.logic).test(e?.trim() || "");
856
893
  }
857
- function vt(e, t) {
894
+ function St(e, t) {
858
895
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
859
896
  return r && r[1] ? r[1].toUpperCase() : e;
860
897
  }
861
- function yt(e, t) {
862
- 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));
863
900
  }
864
901
  function $(e, t, n, r) {
865
902
  let i = "", a = 0;
@@ -894,14 +931,12 @@ function $(e, t, n, r) {
894
931
  }
895
932
  return i;
896
933
  }
897
- //#endregion
898
- //#region ../types/src/preview-resolution.ts
899
- function bt(e) {
900
- return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
934
+ function wt(e) {
935
+ if (typeof e != "object" || !e) return !1;
936
+ let t = e;
937
+ return Array.isArray(t.blocks);
901
938
  }
902
- //#endregion
903
- //#region ../types/src/config.ts
904
- var xt = class extends Error {
939
+ var Tt = class extends Error {
905
940
  statusCode;
906
941
  constructor(e, t) {
907
942
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -917,6 +952,4 @@ var xt = class extends Error {
917
952
  }
918
953
  };
919
954
  //#endregion
920
- export { D as $, K as A, B, Ke as C, s as Ct, ze as D, o as Dt, Re as E, r as Et, z as F, F as G, H, W as I, N as J, V as K, L, R as M, Te as N, Be as O, t as Ot, De as P, _e as Q, G as R, nt as S, e as St, We as T, n as Tt, U, Oe as V, we as W, xe as X, A as Y, ve as Z, mt as _, te as _t, vt as a, oe as at, rt as b, ne as bt, ct as c, f as ct, _t as d, de as dt, k as et, ut as f, me as ft, ft as g, l as gt, lt as h, m as ht, gt as i, fe as it, Ae as j, Le as k, st as l, p as lt, dt as m, le as mt, bt as n, he as nt, Z as o, pe as ot, yt as p, ie as pt, ke as q, Y as r, ce as rt, Q as s, ae as st, xt as t, se as tt, pt as u, ue as ut, Ze as v, ee as vt, Xe as w, c as wt, tt as x, i as xt, it as y, re as yt, I as z };
921
-
922
- //# sourceMappingURL=src-Bh0MoJ67.js.map
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 };