@templatical/editor 0.44.2 → 0.45.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 (295) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-BlFWWhBv.js} +15 -19
  3. package/dist/{AiFeatureMenu-CgfLFHJw.js → AiFeatureMenu-CvWygUmC.js} +7 -7
  4. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  5. package/dist/{BlockPreviewCanvas-2vVu55yN.js → BlockPreviewCanvas-DwxJOTzH.js} +5 -5
  6. package/dist/{CloudHeaderExtras-BZ62q1aS.js → CloudHeaderExtras-BzM1QU1r.js} +5 -5
  7. package/dist/{CloudPanels-sv4aCKKE.js → CloudPanels-d36YXXyn.js} +8 -8
  8. package/dist/{CollaboratorBar-CSEFL7uC.js → CollaboratorBar-rwXe_Qd2.js} +4 -4
  9. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  10. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  11. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  12. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-lbjCc8ik.js} +62 -61
  13. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zlJQsP0X.js} +25 -26
  14. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-CHx3m8SP.js} +8 -8
  15. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  16. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-BvftbkL4.js} +13 -19
  17. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  18. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  19. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-CR1kcj8X.js} +2 -2
  20. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-DssKrVYb.js} +7 -7
  21. package/dist/{ParagraphEditor-C_p6yKLK.js → ParagraphEditor-DFizsZRc.js} +140 -139
  22. package/dist/{RestoreVersionDialog-CKHeCPG2.js → RestoreVersionDialog-Cp3q2mU4.js} +5 -5
  23. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-Cj3oaPMk.js} +9 -9
  24. package/dist/{SaveBlockDialog-q3_fjb9t.js → SaveBlockDialog-BR8vW_XF.js} +13 -13
  25. package/dist/SavedBlocksBrowserModal-DmwbmKxI.js +360 -0
  26. package/dist/{SavedBlocksPanels-DNpnl5cO.js → SavedBlocksPanels-D4XKrs-a.js} +2 -2
  27. package/dist/{SavedBlocksPickBar-Pq2bjpB_.js → SavedBlocksPickBar-gfc-o5sR.js} +4 -4
  28. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  29. package/dist/TemplateSettings-D7aNrd0d.js +246 -0
  30. package/dist/{TestEmailModal-BYCKpH7g.js → TestEmailModal-DUmtcSm-.js} +11 -11
  31. package/dist/{TestEmailPanel-lUXAFsT5.js → TestEmailPanel-s9gISTI8.js} +2 -2
  32. package/dist/{TitleEditor-CWPxXUp2.js → TitleEditor-C-uHqtml.js} +13 -13
  33. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-CTwwCIVA.js} +2 -2
  34. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CLpA36RO.js} +518 -520
  35. package/dist/{TplModal-D6lqrKls.js → TplModal-D6XtxusQ.js} +5 -5
  36. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  37. package/dist/{VersionHistoryPanels-C3XhpQO_.js → VersionHistoryPanels-Dvowtt7V.js} +2 -2
  38. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  39. package/dist/{WrapperBlock-ox8TMS_p.js → WrapperBlock-CzJa2Mxw.js} +3 -3
  40. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-D3aj5u_5.js} +2 -2
  41. package/dist/bundle-stats.json +7 -7
  42. package/dist/{ca-DSwai-th.js → ca-C__Dzq--.js} +6 -0
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-SRGBP-SL.js} +9 -13
  44. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-SRGBP-SL.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js → AiFeatureMenu-oZhlgsGh.js} +6 -6
  46. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js.map → AiFeatureMenu-oZhlgsGh.js.map} +1 -1
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  48. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js → BlockPreviewCanvas-hKxE6f-k.js} +6 -6
  50. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js.map → BlockPreviewCanvas-hKxE6f-k.js.map} +1 -1
  51. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js → CloudHeaderExtras-t-_ZlHwn.js} +5 -5
  52. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js.map → CloudHeaderExtras-t-_ZlHwn.js.map} +1 -1
  53. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js → CloudPanels-DR2eEcpX.js} +7 -7
  54. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js.map → CloudPanels-DR2eEcpX.js.map} +1 -1
  55. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js → CollaboratorBar-w8_2WPE0.js} +5 -5
  56. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js.map → CollaboratorBar-w8_2WPE0.js.map} +1 -1
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  58. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  60. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  62. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  63. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-CvNuDR5Z.js} +63 -62
  64. package/dist/cdn/chunks/CountdownToolbar-CvNuDR5Z.js.map +1 -0
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-CJg_5GXU.js} +21 -22
  66. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-CJg_5GXU.js.map} +1 -1
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-DXqlRk19.js} +6 -6
  68. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-DXqlRk19.js.map} +1 -1
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  70. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-DnHghQHb.js} +11 -17
  72. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-DnHghQHb.js.map} +1 -1
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  74. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  76. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-heTX9P_k.js} +3 -3
  78. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-heTX9P_k.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-C9EfuZIP.js} +6 -6
  80. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-C9EfuZIP.js.map} +1 -1
  81. package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js → ParagraphEditor-B5DN4Sy4.js} +145 -144
  82. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +1 -0
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js → RestoreVersionDialog-DBgJ-Nui.js} +5 -5
  84. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js.map → RestoreVersionDialog-DBgJ-Nui.js.map} +1 -1
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-LOas4rfU.js} +8 -8
  86. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-LOas4rfU.js.map} +1 -1
  87. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js → SaveBlockDialog-Dx-QVQCX.js} +11 -11
  88. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js.map → SaveBlockDialog-Dx-QVQCX.js.map} +1 -1
  89. package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js +357 -0
  90. package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js.map +1 -0
  91. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js → SavedBlocksPanels-BmRbvqqL.js} +3 -3
  92. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js.map → SavedBlocksPanels-BmRbvqqL.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js → SavedBlocksPickBar-BzwKojoJ.js} +5 -5
  94. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js.map → SavedBlocksPickBar-BzwKojoJ.js.map} +1 -1
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  96. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-G-yV7C1C.js} +48 -47
  98. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +1 -0
  99. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js → TestEmailModal-lOeztfTN.js} +10 -10
  100. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js.map → TestEmailModal-lOeztfTN.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js → TestEmailPanel-CZswVkk_.js} +3 -3
  102. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js.map → TestEmailPanel-CZswVkk_.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js → TitleEditor-CnTT2Y3H.js} +12 -12
  104. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js.map → TitleEditor-CnTT2Y3H.js.map} +1 -1
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-CLHteVMO.js} +3 -3
  106. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-CLHteVMO.js.map} +1 -1
  107. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-K4tIkpG1.js} +415 -417
  108. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +1 -0
  109. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js → TplModal-OOT36AjS.js} +5 -5
  110. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js.map → TplModal-OOT36AjS.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  112. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js → VersionHistoryPanels-BrpYRSfW.js} +3 -3
  114. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js.map → VersionHistoryPanels-BrpYRSfW.js.map} +1 -1
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  116. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  117. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js → WrapperBlock-DdrnwH80.js} +4 -4
  118. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js.map → WrapperBlock-DdrnwH80.js.map} +1 -1
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  120. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  121. package/dist/cdn/chunks/{ca-DSwai-th.js → ca-C__Dzq--.js} +7 -1
  122. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-bhW8qTnh.js} +4 -4
  124. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-bhW8qTnh.js.map} +1 -1
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-CeRJkLR2.js} +9 -12
  126. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-CeRJkLR2.js.map} +1 -1
  127. package/dist/{de-DOhKuphf.js → cdn/chunks/de-CGjbQ2mt.js} +8 -0
  128. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  130. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  132. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  134. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  136. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  137. package/dist/{en-BE28ZcUF.js → cdn/chunks/en-BTiiAC-B.js} +8 -0
  138. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  139. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  140. package/dist/{es-oQI-dfx2.js → cdn/chunks/es-CdTOcSTf.js} +8 -0
  141. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  142. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-xjRsIjMP.js} +9 -17
  143. package/dist/cdn/chunks/{extensions-ClmkNA8R.js.map → extensions-xjRsIjMP.js.map} +1 -1
  144. package/dist/{fr-rzLdCMSG.js → cdn/chunks/fr-B6lcLLzC.js} +8 -0
  145. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  147. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  149. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  150. package/dist/{ja-dyFc6Ghz.js → cdn/chunks/ja-BhdkqENz.js} +8 -0
  151. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  153. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  155. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  156. package/dist/{nl-BcQhRqKR.js → cdn/chunks/nl-CE3YItYg.js} +8 -0
  157. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-CFwa7nP9.js} +2 -2
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CFwa7nP9.js.map} +1 -1
  160. package/dist/{pt-BR-UombhTMO.js → cdn/chunks/pt-BR-CUIT4rq4.js} +8 -0
  161. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  163. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-CsYnPPll.js} +14 -24
  165. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +1 -0
  166. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-BcqNlDMe.js} +258 -237
  167. package/dist/cdn/chunks/src-BcqNlDMe.js.map +1 -0
  168. package/dist/cdn/chunks/{src-CLHnxvuS.js → src-CkXmV2I2.js} +174 -179
  169. package/dist/cdn/chunks/src-CkXmV2I2.js.map +1 -0
  170. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-HA9F2kvk.js} +141 -179
  171. package/dist/cdn/chunks/{src-B5-VKcRQ.js.map → src-HA9F2kvk.js.map} +1 -1
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  173. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  175. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  177. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  178. package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js → useEditorCore-BF1ZhcGu.js} +476 -520
  179. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +1 -0
  180. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  181. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  183. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-91bO_SOi.js} +4 -4
  185. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-91bO_SOi.js.map} +1 -1
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-hwifK582.js} +4 -4
  187. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-hwifK582.js.map} +1 -1
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  189. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  190. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-BDNJ25X1.js} +3 -3
  191. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js.map → useScrollToBlock-BDNJ25X1.js.map} +1 -1
  192. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +32 -0
  193. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +1 -0
  194. package/dist/cdn/editor.css +1 -1
  195. package/dist/cdn/editor.js +89 -118
  196. package/dist/cdn/editor.js.map +1 -1
  197. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  198. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  199. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  200. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  201. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  202. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  203. package/dist/{cloud-BNEL7bxL.js → cloud-CVfwPu19.js} +2 -2
  204. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  205. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-GRv_TDb2.js} +8 -11
  206. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  207. package/dist/{cdn/chunks/de-DOhKuphf.js → de-CGjbQ2mt.js} +6 -2
  208. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  209. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  210. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  211. package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
  212. package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
  213. package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
  214. package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
  215. package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
  216. package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
  217. package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
  218. package/dist/{dist-HjILVdTA.js → dist-CSaWqmWM.js} +143 -126
  219. package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  220. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  221. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  222. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  223. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  224. package/dist/{cdn/chunks/en-BE28ZcUF.js → en-BTiiAC-B.js} +6 -2
  225. package/dist/en-Bk4iCfjp.js +1 -0
  226. package/dist/{cdn/chunks/es-oQI-dfx2.js → es-CdTOcSTf.js} +6 -2
  227. package/dist/{extensions-DXSI8Dyj.js → extensions-B65sfZRk.js} +42 -58
  228. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  229. package/dist/{cdn/chunks/fr-rzLdCMSG.js → fr-B6lcLLzC.js} +6 -2
  230. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  231. package/dist/index.d.ts +12 -1
  232. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  233. package/dist/{cdn/chunks/ja-dyFc6Ghz.js → ja-BhdkqENz.js} +6 -2
  234. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  235. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  236. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  237. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  238. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  239. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  240. package/dist/{cdn/chunks/nl-BcQhRqKR.js → nl-CE3YItYg.js} +6 -2
  241. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  242. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  243. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  244. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → preRenderCustomBlocks-DAS48ZCp.js} +1 -1
  245. package/dist/{cdn/chunks/pt-BR-UombhTMO.js → pt-BR-CUIT4rq4.js} +6 -2
  246. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  247. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  248. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  249. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  250. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  251. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  252. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-CvAixjj8.js} +14 -24
  253. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  254. package/dist/style.css +1 -1
  255. package/dist/templatical-editor.js +101 -130
  256. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  257. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  258. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  259. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  260. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  261. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  262. package/dist/{useEditorCore-iuKC8yr5.js → useEditorCore-DQSeKPE9.js} +940 -1007
  263. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  264. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  265. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-BH87j1vZ.js} +3 -3
  266. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-DfPKX2Tk.js} +3 -3
  267. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  268. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-Dr7Sb6Tr.js} +3 -3
  269. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  270. package/dist/withCurrentFont-DeCbPVaE.js +30 -0
  271. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  272. package/package.json +12 -12
  273. package/dist/SavedBlocksBrowserModal-DeUo5aFV.js +0 -325
  274. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  275. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  276. package/dist/cdn/chunks/ParagraphEditor-BSDGOsja.js.map +0 -1
  277. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js +0 -322
  278. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +0 -1
  279. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  280. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  281. package/dist/cdn/chunks/ca-DSwai-th.js.map +0 -1
  282. package/dist/cdn/chunks/de-DOhKuphf.js.map +0 -1
  283. package/dist/cdn/chunks/en-BE28ZcUF.js.map +0 -1
  284. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  285. package/dist/cdn/chunks/es-oQI-dfx2.js.map +0 -1
  286. package/dist/cdn/chunks/fr-rzLdCMSG.js.map +0 -1
  287. package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +0 -1
  288. package/dist/cdn/chunks/nl-BcQhRqKR.js.map +0 -1
  289. package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +0 -1
  290. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  291. package/dist/cdn/chunks/src-CLHnxvuS.js.map +0 -1
  292. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  293. package/dist/cdn/chunks/useEditorCore-DjD7fJpq.js.map +0 -1
  294. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  295. package/dist/en-B-xoKkWi.js +0 -2
@@ -119,66 +119,93 @@ var s = {
119
119
  color: "#1769FF",
120
120
  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
121
  }
122
+ }, u = {
123
+ dark: "#1f1f1f",
124
+ light: "#ffffff"
122
125
  };
126
+ function d(e) {
127
+ return e === "dark" || e === "light" ? e : void 0;
128
+ }
129
+ function ee(e, t) {
130
+ let n = d(t);
131
+ return {
132
+ fill: n ? u[n] : l[e].color,
133
+ onFill: n === "light" ? u.dark : "#ffffff"
134
+ };
135
+ }
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,
143
+ opacity: .6,
144
+ width: 1.4
145
+ };
146
+ }
147
+ function re(e) {
148
+ return e === "plain" ? .84 : .6;
149
+ }
123
150
  //#endregion
124
151
  //#region ../types/src/guards.ts
125
- function u(e) {
152
+ function f(e) {
126
153
  return e.type === "section";
127
154
  }
128
- function d(e) {
155
+ function ie(e) {
129
156
  return e.type === "title";
130
157
  }
131
- function ee(e) {
158
+ function ae(e) {
132
159
  return e.type === "paragraph";
133
160
  }
134
- function te(e) {
161
+ function oe(e) {
135
162
  return e.type === "image";
136
163
  }
137
- function ne(e) {
164
+ function se(e) {
138
165
  return e.type === "button";
139
166
  }
140
- function re(e) {
167
+ function ce(e) {
141
168
  return e.type === "divider";
142
169
  }
143
- function ie(e) {
170
+ function le(e) {
144
171
  return e.type === "video";
145
172
  }
146
- function ae(e) {
173
+ function ue(e) {
147
174
  return e.type === "social";
148
175
  }
149
- function oe(e) {
176
+ function de(e) {
150
177
  return e.type === "spacer";
151
178
  }
152
- function se(e) {
179
+ function fe(e) {
153
180
  return e.type === "html";
154
181
  }
155
- function ce(e) {
182
+ function pe(e) {
156
183
  return e.type === "menu";
157
184
  }
158
- function le(e) {
185
+ function me(e) {
159
186
  return e.type === "table";
160
187
  }
161
- function ue(e) {
188
+ function he(e) {
162
189
  return e.type === "custom";
163
190
  }
164
- function f(e) {
191
+ function p(e) {
165
192
  return e.type === "slot";
166
193
  }
167
- function p(e) {
194
+ function m(e) {
168
195
  return e.type === "wrapper";
169
196
  }
170
197
  //#endregion
171
198
  //#region ../types/src/defaults.ts
172
- var de = {
199
+ var h = {
173
200
  content: "<p>Enter your title</p>",
174
201
  level: 2,
175
202
  textAlign: "left"
176
- }, fe = { content: "<p>Enter your text here</p>" }, pe = {
203
+ }, g = { content: "<p>Enter your text here</p>" }, _ = {
177
204
  src: "",
178
205
  alt: "",
179
206
  width: "full",
180
207
  align: "center"
181
- }, me = {
208
+ }, v = {
182
209
  text: "Click Here",
183
210
  url: "",
184
211
  backgroundColor: "#333333",
@@ -192,36 +219,36 @@ var de = {
192
219
  left: 24
193
220
  },
194
221
  align: "center"
195
- }, m = {
222
+ }, ge = {
196
223
  lineStyle: "solid",
197
224
  color: "#e0e0e0",
198
225
  thickness: 1,
199
226
  width: "full"
200
- }, h = { columns: "1" }, g = {
227
+ }, _e = { columns: "1" }, ve = {
201
228
  url: "",
202
229
  thumbnailUrl: "",
203
230
  alt: "Video",
204
231
  width: "full",
205
232
  align: "center"
206
- }, _ = {
233
+ }, y = {
207
234
  iconStyle: "solid",
208
235
  iconSize: "medium",
209
236
  spacing: 10,
210
237
  align: "center"
211
- }, v = { height: 24 }, y = { content: "" }, b = {
238
+ }, b = { height: 24 }, x = { content: "" }, S = {
212
239
  fontSize: 15,
213
240
  textAlign: "center",
214
241
  separator: "|",
215
242
  separatorColor: "#e0e0e0",
216
243
  spacing: 10
217
- }, x = {
244
+ }, C = {
218
245
  hasHeaderRow: !0,
219
246
  borderColor: "#e0e0e0",
220
247
  borderWidth: 1,
221
248
  cellPadding: 8,
222
249
  fontSize: 15,
223
250
  textAlign: "left"
224
- }, S = {
251
+ }, w = {
225
252
  targetDate: "",
226
253
  timezone: "UTC",
227
254
  showDays: !0,
@@ -241,21 +268,21 @@ var de = {
241
268
  expiredMessage: "This offer has expired",
242
269
  expiredImageUrl: "",
243
270
  hideOnExpiry: !1
244
- }, he = {
245
- title: de,
246
- paragraph: fe,
247
- image: pe,
248
- button: me,
249
- divider: m,
250
- section: h,
251
- video: g,
252
- social: _,
253
- spacer: v,
254
- html: y,
255
- menu: b,
256
- table: x,
257
- countdown: S
258
- }, C = {
271
+ }, ye = {
272
+ title: h,
273
+ paragraph: g,
274
+ image: _,
275
+ button: v,
276
+ divider: ge,
277
+ section: _e,
278
+ video: ve,
279
+ social: y,
280
+ spacer: b,
281
+ html: x,
282
+ menu: S,
283
+ table: C,
284
+ countdown: w
285
+ }, T = {
259
286
  width: 600,
260
287
  backgroundColor: "#ffffff",
261
288
  textColor: "#1a1a1a",
@@ -263,24 +290,24 @@ var de = {
263
290
  fontFamily: "Arial",
264
291
  locale: "en"
265
292
  };
266
- function w(e) {
293
+ function E(e) {
267
294
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
268
295
  }
269
- function T(e, t) {
296
+ function D(e, t) {
270
297
  let n = { ...e };
271
298
  for (let r of Object.keys(t)) {
272
299
  let i = e[r], a = t[r];
273
- a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
300
+ a !== void 0 && (n[r] = E(i) && E(a) ? D(i, a) : a);
274
301
  }
275
302
  return n;
276
303
  }
277
304
  //#endregion
278
305
  //#region ../types/src/template.ts
279
- function ge(e = "Arial", t) {
306
+ function be(e = "Arial", t) {
280
307
  return {
281
308
  blocks: [],
282
309
  settings: {
283
- ...C,
310
+ ...T,
284
311
  fontFamily: e,
285
312
  ...t
286
313
  }
@@ -288,7 +315,7 @@ function ge(e = "Arial", t) {
288
315
  }
289
316
  //#endregion
290
317
  //#region ../types/src/direction.ts
291
- var _e = [
318
+ var xe = [
292
319
  "ar",
293
320
  "he",
294
321
  "iw",
@@ -302,22 +329,22 @@ var _e = [
302
329
  "ckb",
303
330
  "ks"
304
331
  ];
305
- function ve(e) {
332
+ function Se(e) {
306
333
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
307
- return !!t && _e.includes(t);
334
+ return !!t && xe.includes(t);
308
335
  }
309
- function ye(e) {
310
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ve(e.locale) ? "rtl" : "ltr";
336
+ function Ce(e) {
337
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Se(e.locale) ? "rtl" : "ltr";
311
338
  }
312
339
  //#endregion
313
340
  //#region ../types/src/factory.ts
314
- function E(e, t) {
315
- return !t || Object.keys(t).length === 0 ? e : T(e, t);
341
+ function O(e, t) {
342
+ return !t || Object.keys(t).length === 0 ? e : D(e, t);
316
343
  }
317
- function D() {
344
+ function k() {
318
345
  return crypto.randomUUID();
319
346
  }
320
- function be(e = 0) {
347
+ function we(e = 0) {
321
348
  return {
322
349
  top: e,
323
350
  right: e,
@@ -325,135 +352,135 @@ function be(e = 0) {
325
352
  left: e
326
353
  };
327
354
  }
328
- function O(e = 10) {
329
- return { padding: be(e) };
355
+ function A(e = 10) {
356
+ return { padding: we(e) };
330
357
  }
331
- function k(e = {}) {
332
- return E({
333
- id: D(),
358
+ function j(e = {}) {
359
+ return O({
360
+ id: k(),
334
361
  type: "title",
335
- ...de,
336
- styles: O()
362
+ ...h,
363
+ styles: A()
337
364
  }, e);
338
365
  }
339
- function A(e = {}) {
340
- return E({
341
- id: D(),
366
+ function M(e = {}) {
367
+ return O({
368
+ id: k(),
342
369
  type: "paragraph",
343
- ...fe,
344
- styles: O()
370
+ ...g,
371
+ styles: A()
345
372
  }, e);
346
373
  }
347
- function j(e = {}) {
348
- return E({
349
- id: D(),
374
+ function N(e = {}) {
375
+ return O({
376
+ id: k(),
350
377
  type: "image",
351
- ...pe,
352
- styles: O()
378
+ ..._,
379
+ styles: A()
353
380
  }, e);
354
381
  }
355
- function M(e = {}) {
356
- return E({
357
- id: D(),
382
+ function P(e = {}) {
383
+ return O({
384
+ id: k(),
358
385
  type: "button",
359
- ...me,
360
- styles: O()
386
+ ...v,
387
+ styles: A()
361
388
  }, e);
362
389
  }
363
- function N(e = {}) {
364
- return E({
365
- id: D(),
390
+ function F(e = {}) {
391
+ return O({
392
+ id: k(),
366
393
  type: "divider",
367
- ...m,
368
- styles: O(20)
394
+ ...ge,
395
+ styles: A(20)
369
396
  }, e);
370
397
  }
371
- function P(e = {}) {
372
- return E({
373
- id: D(),
398
+ function I(e = {}) {
399
+ return O({
400
+ id: k(),
374
401
  type: "section",
375
- ...h,
402
+ ..._e,
376
403
  children: [[]],
377
- styles: O(20)
404
+ styles: A(20)
378
405
  }, e);
379
406
  }
380
- function F(e = {}) {
381
- return E({
382
- id: D(),
407
+ function L(e = {}) {
408
+ return O({
409
+ id: k(),
383
410
  type: "video",
384
- ...g,
385
- styles: O()
411
+ ...ve,
412
+ styles: A()
386
413
  }, e);
387
414
  }
388
- function I(e = {}) {
389
- return E({
390
- id: D(),
415
+ function R(e = {}) {
416
+ return O({
417
+ id: k(),
391
418
  type: "social",
392
419
  icons: [],
393
- ..._,
394
- styles: O()
420
+ ...y,
421
+ styles: A()
395
422
  }, e);
396
423
  }
397
- function L(e = {}) {
398
- return E({
399
- id: D(),
424
+ function z(e = {}) {
425
+ return O({
426
+ id: k(),
400
427
  type: "spacer",
401
- ...v,
402
- styles: O(0)
428
+ ...b,
429
+ styles: A(0)
403
430
  }, e);
404
431
  }
405
- function xe(e = {}) {
406
- return E({
407
- id: D(),
432
+ function Te(e = {}) {
433
+ return O({
434
+ id: k(),
408
435
  type: "html",
409
- ...y,
410
- styles: O()
436
+ ...x,
437
+ styles: A()
411
438
  }, e);
412
439
  }
413
- function R(e = {}) {
414
- return E({
415
- id: D(),
440
+ function B(e = {}) {
441
+ return O({
442
+ id: k(),
416
443
  type: "menu",
417
444
  items: [],
418
- ...b,
419
- styles: O()
445
+ ...S,
446
+ styles: A()
420
447
  }, e);
421
448
  }
422
- function Se(e, t) {
449
+ function Ee(e, t) {
423
450
  return Array.from({ length: t }, () => ({
424
- id: D(),
451
+ id: k(),
425
452
  cells: Array.from({ length: e }, () => ({
426
- id: D(),
453
+ id: k(),
427
454
  content: ""
428
455
  }))
429
456
  }));
430
457
  }
431
- function z(e = {}) {
432
- return E({
433
- id: D(),
458
+ function V(e = {}) {
459
+ return O({
460
+ id: k(),
434
461
  type: "table",
435
- rows: Se(3, 3),
436
- ...x,
437
- styles: O()
462
+ rows: Ee(3, 3),
463
+ ...C,
464
+ styles: A()
438
465
  }, e);
439
466
  }
440
- function B(e = {}) {
441
- return E({
442
- id: D(),
467
+ function H(e = {}) {
468
+ return O({
469
+ id: k(),
443
470
  type: "countdown",
444
- ...S,
445
- styles: O()
471
+ ...w,
472
+ styles: A()
446
473
  }, e);
447
474
  }
448
- function Ce(e) {
475
+ function De(e) {
449
476
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
450
477
  }
451
- function we(e) {
478
+ function Oe(e) {
452
479
  let t = {};
453
- for (let n of e.fields) t[n.key] = Ce(n);
454
- let n = E(O(), e.defaultStyles);
480
+ for (let n of e.fields) t[n.key] = De(n);
481
+ let n = O(A(), e.defaultStyles);
455
482
  return {
456
- id: D(),
483
+ id: k(),
457
484
  type: "custom",
458
485
  customType: e.type,
459
486
  fieldValues: t,
@@ -461,48 +488,48 @@ function we(e) {
461
488
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
462
489
  };
463
490
  }
464
- function Te() {
491
+ function ke() {
465
492
  return {
466
- id: D(),
493
+ id: k(),
467
494
  type: "slot",
468
- styles: O(0)
495
+ styles: A(0)
469
496
  };
470
497
  }
471
- function Ee(e = {}) {
472
- return E({
473
- id: D(),
498
+ function Ae(e = {}) {
499
+ return O({
500
+ id: k(),
474
501
  type: "wrapper",
475
502
  children: [],
476
- styles: O(0)
503
+ styles: A(0)
477
504
  }, e);
478
505
  }
479
- function De(e, t) {
506
+ function je(e, t) {
480
507
  switch (e) {
481
- case "section": return P(t?.section);
482
- case "title": return k(t?.title);
483
- case "paragraph": return A(t?.paragraph);
484
- case "image": return j(t?.image);
485
- case "button": return M(t?.button);
486
- case "divider": return N(t?.divider);
487
- case "video": return F(t?.video);
488
- case "social": return I(t?.social);
489
- case "spacer": return L(t?.spacer);
490
- case "html": return xe(t?.html);
491
- case "menu": return R(t?.menu);
492
- case "table": return z(t?.table);
493
- case "countdown": return B(t?.countdown);
508
+ case "section": return I(t?.section);
509
+ case "title": return j(t?.title);
510
+ case "paragraph": return M(t?.paragraph);
511
+ case "image": return N(t?.image);
512
+ case "button": return P(t?.button);
513
+ case "divider": return F(t?.divider);
514
+ case "video": return L(t?.video);
515
+ case "social": return R(t?.social);
516
+ case "spacer": return z(t?.spacer);
517
+ case "html": return Te(t?.html);
518
+ case "menu": return B(t?.menu);
519
+ case "table": return V(t?.table);
520
+ case "countdown": return H(t?.countdown);
494
521
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
495
522
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
496
523
  default: throw Error(`Unknown block type: ${e}`);
497
524
  }
498
525
  }
499
- function V(e) {
526
+ function U(e) {
500
527
  let t = JSON.parse(JSON.stringify(e));
501
- return t.id = D(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => V(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => V(e))), t;
528
+ return t.id = k(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => U(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => U(e))), t;
502
529
  }
503
530
  //#endregion
504
531
  //#region ../types/src/clone.ts
505
- function H(e) {
532
+ function W(e) {
506
533
  let t = [];
507
534
  return JSON.parse(JSON.stringify(e, function(e, n) {
508
535
  if (typeof n != "object" || !n) return n;
@@ -512,107 +539,101 @@ function H(e) {
512
539
  }
513
540
  //#endregion
514
541
  //#region ../types/src/layout.ts
515
- var U = "[Templatical] layout: must contain exactly one slot block", W = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Oe = "[Templatical] layout: a wrapper cannot contain a wrapper", ke = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Ae = "[Templatical] slot is not a valid content block", je = "[Templatical] wrapper is not a valid content block";
516
- function G(e, t, n = null, r = !1) {
517
- for (let i of e) if (t(i, n, r), u(i)) for (let e of i.children) G(e, t, i, !0);
518
- else p(i) && G(i.children, t, i, r);
542
+ var G = "[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";
543
+ function K(e, t, n = null, r = !1) {
544
+ for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) K(e, t, i, !0);
545
+ else m(i) && K(i.children, t, i, r);
519
546
  }
520
- function K(e) {
547
+ function Le(e) {
521
548
  let t = 0;
522
- if (G(e.blocks, (e, n, r) => {
523
- if (f(e) && (t += 1, r)) throw Error(W);
524
- if (p(e)) {
525
- if (r) throw Error(W);
526
- if (e.children.some(p)) throw Error(Oe);
549
+ if (K(e.blocks, (e, n, r) => {
550
+ if (p(e) && (t += 1, r)) throw Error(Me);
551
+ if (m(e)) {
552
+ if (r) throw Error(Me);
553
+ if (e.children.some(m)) throw Error(Ne);
527
554
  }
528
- }), t !== 1) throw Error(U);
555
+ }), t !== 1) throw Error(G);
529
556
  }
530
- function q(e) {
531
- G(e.blocks, (e) => {
532
- if (f(e)) throw Error(Ae);
557
+ function Re(e) {
558
+ K(e.blocks, (e) => {
559
+ if (p(e)) throw Error(Fe);
533
560
  });
534
561
  }
535
- function Me(e) {
536
- G(e.blocks, (e) => {
537
- if (p(e)) throw Error(je);
562
+ function ze(e) {
563
+ K(e.blocks, (e) => {
564
+ if (m(e)) throw Error(Ie);
538
565
  });
539
566
  }
540
- function Ne(e) {
567
+ function Be(e) {
541
568
  let t = !1;
542
- return G(e.blocks, (e, n) => {
543
- f(e) && n !== null && p(n) && (t = !0);
569
+ return K(e.blocks, (e, n) => {
570
+ p(e) && n !== null && m(n) && (t = !0);
544
571
  }), t;
545
572
  }
546
- function Pe(e) {
547
- if (f(e)) return e;
548
- if (p(e)) {
549
- let t = V({
573
+ function Ve(e) {
574
+ if (p(e)) return e;
575
+ if (m(e)) {
576
+ let t = U({
550
577
  ...e,
551
578
  children: []
552
579
  });
553
- return t.children = e.children.map(Pe), t;
580
+ return t.children = e.children.map(Ve), t;
554
581
  }
555
- return V(e);
582
+ return U(e);
556
583
  }
557
- function Fe(e) {
584
+ function He(e) {
558
585
  for (let t = 0; t < e.length; t++) {
559
586
  let n = e[t];
560
- if (f(n)) return {
587
+ if (p(n)) return {
561
588
  parent: e,
562
589
  index: t
563
590
  };
564
- if (p(n)) {
565
- let e = Fe(n.children);
591
+ if (m(n)) {
592
+ let e = He(n.children);
566
593
  if (e) return e;
567
594
  }
568
595
  }
569
596
  return null;
570
597
  }
571
- function Ie(e) {
572
- for (let t of e) if (u(t)) {
598
+ function Ue(e) {
599
+ for (let t of e) if (f(t)) {
573
600
  if (t.wrapper) return !0;
574
- for (let e of t.children) if (Ie(e)) return !0;
601
+ for (let e of t.children) if (Ue(e)) return !0;
575
602
  }
576
603
  return !1;
577
604
  }
578
- function Le(e, t) {
579
- if (K(e), q(t), Me(t), Ne(e) && Ie(t.blocks)) throw Error(ke);
580
- let n = e.blocks.map(Pe), r = Fe(n);
581
- if (!r) throw Error(U);
582
- return r.parent.splice(r.index, 1, ...H(t.blocks)), {
605
+ function We(e, t) {
606
+ if (Le(e), Re(t), ze(t), Be(e) && Ue(t.blocks)) throw Error(Pe);
607
+ let n = e.blocks.map(Ve), r = He(n);
608
+ if (!r) throw Error(G);
609
+ return r.parent.splice(r.index, 1, ...W(t.blocks)), {
583
610
  blocks: n,
584
611
  settings: {
585
- ...H(t.settings),
612
+ ...W(t.settings),
586
613
  backgroundColor: e.settings.backgroundColor
587
614
  }
588
615
  };
589
616
  }
590
617
  //#endregion
591
618
  //#region ../types/src/html-scan.ts
592
- var Re = /* @__PURE__ */ new Set(["\"", "'"]);
593
- function ze(e, t) {
619
+ var Ge = /* @__PURE__ */ new Set(["\"", "'"]);
620
+ function q(e, t) {
594
621
  let n = null;
595
622
  for (let r = t; r < e.length; r++) {
596
623
  let t = e[r];
597
- if (n !== null) {
598
- t === n && (n = null);
599
- continue;
600
- }
601
- if (Re.has(t)) {
602
- n = t;
603
- continue;
604
- }
605
- if (t === ">") return r;
624
+ if (n !== null) t === n && (n = null);
625
+ else if (Ge.has(t)) n = t;
626
+ else if (t === ">") return r;
606
627
  }
607
628
  return -1;
608
629
  }
609
- function Be(e) {
630
+ function Ke(e) {
610
631
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
611
632
  }
612
633
  function J(e) {
613
634
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
614
635
  }
615
- var Ve = {
636
+ var qe = {
616
637
  amp: "&",
617
638
  lt: "<",
618
639
  gt: ">",
@@ -620,22 +641,22 @@ var Ve = {
620
641
  apos: "'",
621
642
  nbsp: "\xA0"
622
643
  };
623
- function He(e) {
644
+ function Je(e) {
624
645
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
625
646
  if (t[0] === "#") {
626
647
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
627
648
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
628
649
  }
629
- return Ve[t.toLowerCase()] ?? e;
650
+ return qe[t.toLowerCase()] ?? e;
630
651
  }) : e;
631
652
  }
632
- function Ue(e, t) {
653
+ function Ye(e, t) {
633
654
  let n = t.toLowerCase(), r = 0;
634
655
  for (; r < e.length;) {
635
656
  for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
636
657
  if (r >= e.length) break;
637
658
  let t = r;
638
- for (; r < e.length && Be(e[r]);) r++;
659
+ for (; r < e.length && Ke(e[r]);) r++;
639
660
  let i = e.substring(t, r).toLowerCase();
640
661
  if (i === "") {
641
662
  r++;
@@ -645,16 +666,16 @@ function Ue(e, t) {
645
666
  if (e[r] !== "=") continue;
646
667
  for (r++; r < e.length && J(e[r]);) r++;
647
668
  let a = e[r];
648
- if (Re.has(a)) {
669
+ if (Ge.has(a)) {
649
670
  let t = r + 1, o = e.indexOf(a, t);
650
671
  if (o === -1) return null;
651
- if (i === n) return He(e.substring(t, o));
672
+ if (i === n) return Je(e.substring(t, o));
652
673
  r = o + 1;
653
674
  continue;
654
675
  }
655
676
  let o = r;
656
677
  for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
657
- if (i === n) return He(e.substring(o, r));
678
+ if (i === n) return Je(e.substring(o, r));
658
679
  }
659
680
  return null;
660
681
  }
@@ -677,33 +698,33 @@ var Y = {
677
698
  value: /%%=.+?=%%/g,
678
699
  logic: /%%\[\s*(\w+).*?\]%%/g
679
700
  }
680
- }, We = {
701
+ }, Xe = {
681
702
  liquid: "{{",
682
703
  handlebars: "{{",
683
704
  mailchimp: "*|",
684
705
  ampscript: "%%="
685
- }, Ge = {
706
+ }, Ze = {
686
707
  liquid: "}}",
687
708
  handlebars: "}}",
688
709
  mailchimp: "|*",
689
710
  ampscript: "=%%"
690
711
  };
691
- function Ke(e) {
692
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
712
+ function Qe(e) {
713
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Xe[t];
693
714
  return null;
694
715
  }
695
- function qe(e) {
696
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
716
+ function $e(e) {
717
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ze[t];
697
718
  return null;
698
719
  }
699
- function Je(e) {
720
+ function et(e) {
700
721
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
701
722
  }
702
723
  function X(e) {
703
724
  let t = e.source, n = e.flags.replace("g", "");
704
725
  return RegExp(`^${t}$`, n);
705
726
  }
706
- function Ye(e, t) {
727
+ function tt(e, t) {
707
728
  let n = e?.trim() || "";
708
729
  return !X(t.logic).test(n) && X(t.value).test(n);
709
730
  }
@@ -711,41 +732,41 @@ function Z(e, t) {
711
732
  let n = t.find((t) => t.value === e);
712
733
  return n ? n.label : e;
713
734
  }
714
- function Xe(e, t) {
735
+ function nt(e, t) {
715
736
  return $(e, "data-merge-tag", (e) => Z(e, t));
716
737
  }
717
738
  function Q(e, t) {
718
739
  return t.find((t) => t.value === e)?.sample;
719
740
  }
720
- function Ze(e, t) {
721
- return $(e, "data-merge-tag", (e) => et(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
741
+ function rt(e, t) {
742
+ return $(e, "data-merge-tag", (e) => ot(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
722
743
  }
723
- function Qe(e) {
744
+ function it(e) {
724
745
  return e.some((e) => e.sample !== void 0);
725
746
  }
726
- function $e(e, t) {
747
+ function at(e, t) {
727
748
  if (!e) return e;
728
749
  let n = e;
729
750
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
730
751
  return n;
731
752
  }
732
- function et(e) {
753
+ function ot(e) {
733
754
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
734
755
  }
735
- function tt(e, t) {
756
+ function st(e, t) {
736
757
  if (!e) return !1;
737
758
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
738
759
  return n.test(e) || r.test(e);
739
760
  }
740
- function nt(e, t) {
761
+ function ct(e, t) {
741
762
  return X(t.logic).test(e?.trim() || "");
742
763
  }
743
- function rt(e, t) {
764
+ function lt(e, t) {
744
765
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
745
766
  return r && r[1] ? r[1].toUpperCase() : e;
746
767
  }
747
- function it(e, t) {
748
- return $(e, "data-logic-merge-tag", (e) => rt(e, t));
768
+ function ut(e, t) {
769
+ return $(e, "data-logic-merge-tag", (e) => lt(e, t));
749
770
  }
750
771
  function $(e, t, n, r) {
751
772
  let i = "", a = 0;
@@ -760,7 +781,7 @@ function $(e, t, n, r) {
760
781
  i += e.substring(a, o + 5), a = o + 5;
761
782
  continue;
762
783
  }
763
- let c = ze(e, o + 5);
784
+ let c = q(e, o + 5);
764
785
  if (c === -1) {
765
786
  i += e.substring(a);
766
787
  break;
@@ -770,7 +791,7 @@ function $(e, t, n, r) {
770
791
  i += e.substring(a);
771
792
  break;
772
793
  }
773
- let u = Ue(e.substring(o + 5, c), t);
794
+ let u = Ye(e.substring(o + 5, c), t);
774
795
  if (u === null) {
775
796
  i += e.substring(a, o + 5), a = o + 5;
776
797
  continue;
@@ -782,12 +803,12 @@ function $(e, t, n, r) {
782
803
  }
783
804
  //#endregion
784
805
  //#region ../types/src/preview-resolution.ts
785
- function at(e) {
806
+ function dt(e) {
786
807
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
787
808
  }
788
809
  //#endregion
789
810
  //#region ../types/src/config.ts
790
- var ot = class extends Error {
811
+ var ft = class extends Error {
791
812
  statusCode;
792
813
  constructor(e, t) {
793
814
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -803,6 +824,6 @@ var ot = class extends Error {
803
824
  }
804
825
  };
805
826
  //#endregion
806
- export { se as $, we as A, z as B, Ne as C, De as D, V as E, A as F, ye as G, F as H, P as I, C as J, ge as K, Te as L, xe as M, j as N, M as O, R as P, re as Q, I as R, Me as S, H as T, Ee as U, k as V, D as W, ne as X, T as Y, ue as Z, $e as _, r as _t, rt as a, ae as at, Le as b, qe as c, d as ct, nt as d, l as dt, te as et, Ye as f, i as ft, Ze as g, n as gt, Je as h, c as ht, tt as i, f as it, N as j, B as k, Ke as l, ie as lt, Xe as m, s as mt, at as n, ee as nt, Z as o, oe as ot, it as p, e as pt, he as q, Y as r, u as rt, Q as s, le as st, ot as t, ce as tt, Qe as u, p as ut, ze as v, o as vt, K as w, q as x, Ue as y, t as yt, L as z };
827
+ export { fe as $, Oe as A, V as B, Be as C, t as Ct, je as D, U as E, M as F, Ce as G, L as H, I, T as J, be as K, ke as L, Te as M, N, P as O, B as P, ce as Q, R, ze as S, o as St, W as T, Ae as U, j as V, k as W, se as X, D as Y, he as Z, at as _, e as _t, lt as a, ue as at, We as b, n as bt, $e as c, ie as ct, ct as d, l as dt, oe as et, tt as f, te as ft, rt as g, i as gt, et as h, ne as ht, st as i, p as it, F as j, H as k, Qe as l, le as lt, nt as m, re as mt, dt as n, ae as nt, Z as o, de as ot, ut as p, ee as pt, ye as q, Y as r, f as rt, Q as s, me as st, ft as t, pe as tt, it as u, m as ut, q as v, s as vt, Le as w, Re as x, r as xt, Ye as y, c as yt, z };
807
828
 
808
- //# sourceMappingURL=src-QIGNPFkl.js.map
829
+ //# sourceMappingURL=src-BcqNlDMe.js.map