@templatical/editor 0.44.3 → 0.46.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 (294) hide show
  1. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-DGcH4Lyo.js} +15 -19
  2. package/dist/{AiFeatureMenu-CXqrbDNb.js → AiFeatureMenu-B4q-0g1S.js} +7 -7
  3. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DCeZid0G.js → BlockPreviewCanvas-DIZ0KgUD.js} +5 -5
  5. package/dist/{CloudHeaderExtras-B38fU84y.js → CloudHeaderExtras-ehMYJP68.js} +5 -5
  6. package/dist/{CloudPanels-B2Mz-TwS.js → CloudPanels-BwOaAlKz.js} +8 -8
  7. package/dist/{CollaboratorBar-CL70aVnL.js → CollaboratorBar-qOZFRNPx.js} +4 -4
  8. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  9. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  10. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  11. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-BeF21SeB.js} +62 -61
  12. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zH93uB15.js} +25 -26
  13. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-Dltw9haP.js} +8 -8
  14. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  15. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-CHa-UD76.js} +22 -28
  16. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  17. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  18. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-B3ntd4dN.js} +2 -2
  19. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-C_06ZL0Q.js} +7 -7
  20. package/dist/{ParagraphEditor-CHlX3nAk.js → ParagraphEditor-CxuW3TV0.js} +140 -139
  21. package/dist/{RestoreVersionDialog-C8Qt-sJV.js → RestoreVersionDialog-B1n37M1Z.js} +5 -5
  22. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-CP_uULWB.js} +9 -9
  23. package/dist/{SaveBlockDialog-CsielLi1.js → SaveBlockDialog-BSKX_7_v.js} +12 -12
  24. package/dist/{SavedBlocksBrowserModal-RKo9mq3U.js → SavedBlocksBrowserModal-CHKrH1gO.js} +15 -18
  25. package/dist/{SavedBlocksPanels-B7IlFCQp.js → SavedBlocksPanels-B-xDqBcz.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-BYCwMUR6.js → SavedBlocksPickBar-D2J-g82g.js} +4 -4
  27. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  28. package/dist/TemplateSettings-D07K_Y4m.js +246 -0
  29. package/dist/{TestEmailModal-Btbk0B1s.js → TestEmailModal-BNPw_lID.js} +11 -11
  30. package/dist/{TestEmailPanel-kdF_QluO.js → TestEmailPanel-8klWo8hE.js} +2 -2
  31. package/dist/{TitleEditor-Cl6AmEy9.js → TitleEditor-CmC9OuhA.js} +13 -13
  32. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-COeyWGfT.js} +2 -2
  33. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CqhRb6EM.js} +522 -524
  34. package/dist/{TplModal-DD1xZyBq.js → TplModal-BGFawHY9.js} +5 -5
  35. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Caa2_niu.js → VersionHistoryPanels-DdbGjEOR.js} +2 -2
  37. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  38. package/dist/{WrapperBlock-Do8kLejT.js → WrapperBlock-CTkmA887.js} +3 -3
  39. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-CVKo6V_v.js} +2 -2
  40. package/dist/bundle-stats.json +7 -7
  41. package/dist/{ca-DES69VJW.js → ca-C__Dzq--.js} +5 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-kCK4NZM9.js} +9 -13
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js → AiFeatureMenu-K1dLeDft.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js → BlockPreviewCanvas-Djz9YAFx.js} +6 -6
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js → CloudHeaderExtras-5ONQ1RCa.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js → CloudPanels-_irSdWbi.js} +7 -7
  53. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js → CollaboratorBar-CZufI1On.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-BaXCefQM.js} +63 -62
  63. package/dist/cdn/chunks/CountdownToolbar-BaXCefQM.js.map +1 -0
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-GjkpHylX.js} +21 -22
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-C1Lv2y_O.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-BYjdrDnQ.js} +11 -17
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-Cx67J_vg.js} +3 -3
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-DZ4EuXVp.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-BWfx94pb.js → ParagraphEditor-DndEFXmR.js} +145 -144
  81. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js → RestoreVersionDialog-CFYs13a4.js} +5 -5
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-DKkDQ0dc.js} +8 -8
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js → SaveBlockDialog-BOA2RaC_.js} +10 -10
  87. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js → SavedBlocksBrowserModal-DQDVek3K.js} +11 -14
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js → SavedBlocksPanels-Lu3tJ3QA.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js → SavedBlocksPickBar-D7MtqG6r.js} +5 -5
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-rZiHmq24.js} +48 -47
  97. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js → TestEmailModal-DWEyHXH2.js} +10 -10
  99. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js → TestEmailPanel-XXMD-Lnr.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js → TitleEditor-D1F0YoE-.js} +12 -12
  103. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-B5U9cqhi.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-C_5HfUQq.js} +422 -424
  107. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js → TplModal-CYBbPCHL.js} +5 -5
  109. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js → VersionHistoryPanels-Dq12VsTX.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  116. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js → WrapperBlock-CJ0CLqi2.js} +4 -4
  117. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  118. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-DES69VJW.js → ca-C__Dzq--.js} +6 -1
  121. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-h1vaHp2p.js} +4 -4
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-h1vaHp2p.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-bJN9EM1H.js} +9 -12
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  126. package/dist/{de-MlrDhC3Y.js → cdn/chunks/de-CGjbQ2mt.js} +7 -0
  127. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  134. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  136. package/dist/{en-6vJh7KCM.js → cdn/chunks/en-BTiiAC-B.js} +7 -0
  137. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  138. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  139. package/dist/{es-ewL03EaP.js → cdn/chunks/es-CdTOcSTf.js} +7 -0
  140. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-CrmXF4MW.js} +11 -19
  142. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  143. package/dist/{fr-D1syuxs1.js → cdn/chunks/fr-B6lcLLzC.js} +7 -0
  144. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  145. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  147. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  149. package/dist/{ja-Dd_nytwe.js → cdn/chunks/ja-BhdkqENz.js} +7 -0
  150. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  151. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  153. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  155. package/dist/{nl-DD1t_qxS.js → cdn/chunks/nl-CE3YItYg.js} +7 -0
  156. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  157. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  159. package/dist/{pt-BR-BmtO0R7k.js → cdn/chunks/pt-BR-CUIT4rq4.js} +7 -0
  160. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  161. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  163. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-ClJVDZwt.js} +90 -119
  164. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  165. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-B0pZeTYO.js} +194 -215
  166. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  167. package/dist/cdn/chunks/{src-CjjJWoUZ.js → src-BMw3u-iV.js} +225 -232
  168. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  169. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-Bh0MoJ67.js} +360 -246
  170. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  171. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  173. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  175. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  177. package/dist/cdn/chunks/{useEditorCore-q0G4q-52.js → useEditorCore-DuC7kVti.js} +559 -599
  178. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  179. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  180. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  181. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  183. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-B3uV3XHG.js} +4 -4
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  185. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-DJLM-7WQ.js} +4 -4
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  187. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  189. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-CpmB5KxW.js} +4 -5
  190. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  191. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  192. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  193. package/dist/cdn/editor.css +1 -1
  194. package/dist/cdn/editor.js +472 -491
  195. package/dist/cdn/editor.js.map +1 -1
  196. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  197. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  198. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  199. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  200. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  201. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  202. package/dist/{cloud-BNEL7bxL.js → cloud-DPGjMGfv.js} +2 -2
  203. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  204. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-D0RRgWab.js} +8 -11
  205. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  206. package/dist/{cdn/chunks/de-MlrDhC3Y.js → de-CGjbQ2mt.js} +5 -2
  207. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  208. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  209. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  210. package/dist/{dist-HjILVdTA.js → dist-BI_LeQGl.js} +289 -201
  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-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  219. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  220. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  221. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  222. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  223. package/dist/{cdn/chunks/en-6vJh7KCM.js → en-BTiiAC-B.js} +5 -2
  224. package/dist/en-Bk4iCfjp.js +1 -0
  225. package/dist/{cdn/chunks/es-ewL03EaP.js → es-CdTOcSTf.js} +5 -2
  226. package/dist/{extensions-DXSI8Dyj.js → extensions-CYigjb1g.js} +52 -68
  227. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  228. package/dist/{cdn/chunks/fr-D1syuxs1.js → fr-B6lcLLzC.js} +5 -2
  229. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  230. package/dist/index.d.ts +46 -13
  231. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  232. package/dist/{cdn/chunks/ja-Dd_nytwe.js → ja-BhdkqENz.js} +5 -2
  233. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  234. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  235. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  236. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  237. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  238. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  239. package/dist/{cdn/chunks/nl-DD1t_qxS.js → nl-CE3YItYg.js} +5 -2
  240. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  241. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  242. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  243. package/dist/{cdn/chunks/preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  244. package/dist/{cdn/chunks/pt-BR-BmtO0R7k.js → pt-BR-CUIT4rq4.js} +5 -2
  245. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  246. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  247. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  248. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  249. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  250. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  251. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-Ct_IoqPQ.js} +112 -141
  252. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +504 -523
  255. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  256. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  257. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  258. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  259. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  260. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  261. package/dist/{useEditorCore-B1CWeFTj.js → useEditorCore-BJAQMvNW.js} +950 -1013
  262. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  263. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  264. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-B5gjcMzn.js} +3 -3
  265. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-BwsBIDzR.js} +5 -5
  266. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  267. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-JRxhT1u_.js} +4 -5
  268. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  269. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  270. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  271. package/package.json +12 -12
  272. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  273. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  274. package/dist/cdn/chunks/ParagraphEditor-BWfx94pb.js.map +0 -1
  275. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  277. package/dist/cdn/chunks/ca-DES69VJW.js.map +0 -1
  278. package/dist/cdn/chunks/de-MlrDhC3Y.js.map +0 -1
  279. package/dist/cdn/chunks/en-6vJh7KCM.js.map +0 -1
  280. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  281. package/dist/cdn/chunks/es-ewL03EaP.js.map +0 -1
  282. package/dist/cdn/chunks/extensions-ClmkNA8R.js.map +0 -1
  283. package/dist/cdn/chunks/fr-D1syuxs1.js.map +0 -1
  284. package/dist/cdn/chunks/ja-Dd_nytwe.js.map +0 -1
  285. package/dist/cdn/chunks/nl-DD1t_qxS.js.map +0 -1
  286. package/dist/cdn/chunks/pt-BR-BmtO0R7k.js.map +0 -1
  287. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  288. package/dist/cdn/chunks/src-B5-VKcRQ.js.map +0 -1
  289. package/dist/cdn/chunks/src-CjjJWoUZ.js.map +0 -1
  290. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  291. package/dist/cdn/chunks/useEditorCore-q0G4q-52.js.map +0 -1
  292. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  293. package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +0 -1
  294. package/dist/en-B-xoKkWi.js +0 -2
@@ -119,20 +119,43 @@ 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
  };
123
- function u(e) {
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
+ if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
138
+ color: u.light,
139
+ opacity: .6,
140
+ width: 1.4
141
+ };
142
+ }
143
+ function ne(e) {
144
+ return e === "plain" ? .84 : .6;
145
+ }
146
+ function f(e) {
124
147
  return e.type === "section";
125
148
  }
126
- function d(e) {
149
+ function re(e) {
127
150
  return e.type === "custom";
128
151
  }
129
- function f(e) {
152
+ function p(e) {
130
153
  return e.type === "slot";
131
154
  }
132
- function p(e) {
155
+ function m(e) {
133
156
  return e.type === "wrapper";
134
157
  }
135
- var m = {
158
+ var ie = {
136
159
  content: "<p>Enter your title</p>",
137
160
  level: 2,
138
161
  textAlign: "left"
@@ -171,20 +194,20 @@ var m = {
171
194
  iconSize: "medium",
172
195
  spacing: 10,
173
196
  align: "center"
174
- }, ee = { height: 24 }, te = { content: "" }, ne = {
197
+ }, ae = { height: 24 }, oe = { content: "" }, se = {
175
198
  fontSize: 15,
176
199
  textAlign: "center",
177
200
  separator: "|",
178
201
  separatorColor: "#e0e0e0",
179
202
  spacing: 10
180
- }, re = {
203
+ }, ce = {
181
204
  hasHeaderRow: !0,
182
205
  borderColor: "#e0e0e0",
183
206
  borderWidth: 1,
184
207
  cellPadding: 8,
185
208
  fontSize: 15,
186
209
  textAlign: "left"
187
- }, ie = {
210
+ }, le = {
188
211
  targetDate: "",
189
212
  timezone: "UTC",
190
213
  showDays: !0,
@@ -204,8 +227,8 @@ var m = {
204
227
  expiredMessage: "This offer has expired",
205
228
  expiredImageUrl: "",
206
229
  hideOnExpiry: !1
207
- }, ae = {
208
- title: m,
230
+ }, ue = {
231
+ title: ie,
209
232
  paragraph: h,
210
233
  image: g,
211
234
  button: _,
@@ -213,12 +236,12 @@ var m = {
213
236
  section: y,
214
237
  video: b,
215
238
  social: x,
216
- spacer: ee,
217
- html: te,
218
- menu: ne,
219
- table: re,
220
- countdown: ie
221
- }, oe = {
239
+ spacer: ae,
240
+ html: oe,
241
+ menu: se,
242
+ table: ce,
243
+ countdown: le
244
+ }, de = {
222
245
  width: 600,
223
246
  backgroundColor: "#ffffff",
224
247
  textColor: "#1a1a1a",
@@ -226,28 +249,28 @@ var m = {
226
249
  fontFamily: "Arial",
227
250
  locale: "en"
228
251
  };
229
- function S(e) {
252
+ function fe(e) {
230
253
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
231
254
  }
232
- function C(e, t) {
255
+ function S(e, t) {
233
256
  let n = { ...e };
234
257
  for (let r of Object.keys(t)) {
235
258
  let i = e[r], a = t[r];
236
- a !== void 0 && (n[r] = S(i) && S(a) ? C(i, a) : a);
259
+ a !== void 0 && (n[r] = fe(i) && fe(a) ? S(i, a) : a);
237
260
  }
238
261
  return n;
239
262
  }
240
- function se(e = "Arial", t) {
263
+ function pe(e = "Arial", t) {
241
264
  return {
242
265
  blocks: [],
243
266
  settings: {
244
- ...oe,
267
+ ...de,
245
268
  fontFamily: e,
246
269
  ...t
247
270
  }
248
271
  };
249
272
  }
250
- var ce = [
273
+ var me = [
251
274
  "ar",
252
275
  "he",
253
276
  "iw",
@@ -261,20 +284,32 @@ var ce = [
261
284
  "ckb",
262
285
  "ks"
263
286
  ];
264
- function le(e) {
287
+ function he(e) {
265
288
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
266
- return !!t && ce.includes(t);
289
+ return !!t && me.includes(t);
267
290
  }
268
- function ue(e) {
269
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : le(e.locale) ? "rtl" : "ltr";
291
+ function ge(e) {
292
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : he(e.locale) ? "rtl" : "ltr";
293
+ }
294
+ function C(e) {
295
+ let t = [];
296
+ return JSON.parse(JSON.stringify(e, function(e, n) {
297
+ if (typeof n != "object" || !n) return n;
298
+ for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
299
+ if (!t.includes(n)) return t.push(n), n;
300
+ }));
270
301
  }
271
302
  function w(e, t) {
272
- return !t || Object.keys(t).length === 0 ? e : C(e, t);
303
+ let n = C(e);
304
+ return !t || Object.keys(t).length === 0 ? n : S(n, t);
273
305
  }
274
- function T() {
306
+ function T(e) {
307
+ return e === void 0 ? void 0 : C(e);
308
+ }
309
+ function E() {
275
310
  return crypto.randomUUID();
276
311
  }
277
- function de(e = 0) {
312
+ function _e(e = 0) {
278
313
  return {
279
314
  top: e,
280
315
  right: e,
@@ -282,135 +317,135 @@ function de(e = 0) {
282
317
  left: e
283
318
  };
284
319
  }
285
- function E(e = 10) {
286
- return { padding: de(e) };
320
+ function D(e = 10) {
321
+ return { padding: _e(e) };
287
322
  }
288
- function D(e = {}) {
323
+ function O(e = {}) {
289
324
  return w({
290
- id: T(),
325
+ id: E(),
291
326
  type: "title",
292
- ...m,
293
- styles: E()
327
+ ...ie,
328
+ styles: D()
294
329
  }, e);
295
330
  }
296
- function O(e = {}) {
331
+ function k(e = {}) {
297
332
  return w({
298
- id: T(),
333
+ id: E(),
299
334
  type: "paragraph",
300
335
  ...h,
301
- styles: E()
336
+ styles: D()
302
337
  }, e);
303
338
  }
304
- function k(e = {}) {
339
+ function A(e = {}) {
305
340
  return w({
306
- id: T(),
341
+ id: E(),
307
342
  type: "image",
308
343
  ...g,
309
- styles: E()
344
+ styles: D()
310
345
  }, e);
311
346
  }
312
- function A(e = {}) {
347
+ function j(e = {}) {
313
348
  return w({
314
- id: T(),
349
+ id: E(),
315
350
  type: "button",
316
351
  ..._,
317
- styles: E()
352
+ styles: D()
318
353
  }, e);
319
354
  }
320
- function j(e = {}) {
355
+ function M(e = {}) {
321
356
  return w({
322
- id: T(),
357
+ id: E(),
323
358
  type: "divider",
324
359
  ...v,
325
- styles: E(20)
360
+ styles: D(20)
326
361
  }, e);
327
362
  }
328
- function M(e = {}) {
363
+ function N(e = {}) {
329
364
  return w({
330
- id: T(),
365
+ id: E(),
331
366
  type: "section",
332
367
  ...y,
333
368
  children: [[]],
334
- styles: E(20)
369
+ styles: D(20)
335
370
  }, e);
336
371
  }
337
- function N(e = {}) {
372
+ function P(e = {}) {
338
373
  return w({
339
- id: T(),
374
+ id: E(),
340
375
  type: "video",
341
376
  ...b,
342
- styles: E()
377
+ styles: D()
343
378
  }, e);
344
379
  }
345
- function P(e = {}) {
380
+ function F(e = {}) {
346
381
  return w({
347
- id: T(),
382
+ id: E(),
348
383
  type: "social",
349
384
  icons: [],
350
385
  ...x,
351
- styles: E()
386
+ styles: D()
352
387
  }, e);
353
388
  }
354
- function F(e = {}) {
389
+ function I(e = {}) {
355
390
  return w({
356
- id: T(),
391
+ id: E(),
357
392
  type: "spacer",
358
- ...ee,
359
- styles: E(0)
393
+ ...ae,
394
+ styles: D(0)
360
395
  }, e);
361
396
  }
362
- function I(e = {}) {
397
+ function L(e = {}) {
363
398
  return w({
364
- id: T(),
399
+ id: E(),
365
400
  type: "html",
366
- ...te,
367
- styles: E()
401
+ ...oe,
402
+ styles: D()
368
403
  }, e);
369
404
  }
370
- function L(e = {}) {
405
+ function R(e = {}) {
371
406
  return w({
372
- id: T(),
407
+ id: E(),
373
408
  type: "menu",
374
409
  items: [],
375
- ...ne,
376
- styles: E()
410
+ ...se,
411
+ styles: D()
377
412
  }, e);
378
413
  }
379
- function fe(e, t) {
414
+ function ve(e, t) {
380
415
  return Array.from({ length: t }, () => ({
381
- id: T(),
416
+ id: E(),
382
417
  cells: Array.from({ length: e }, () => ({
383
- id: T(),
418
+ id: E(),
384
419
  content: ""
385
420
  }))
386
421
  }));
387
422
  }
388
- function R(e = {}) {
423
+ function z(e = {}) {
389
424
  return w({
390
- id: T(),
425
+ id: E(),
391
426
  type: "table",
392
- rows: fe(3, 3),
393
- ...re,
394
- styles: E()
427
+ rows: ve(3, 3),
428
+ ...ce,
429
+ styles: D()
395
430
  }, e);
396
431
  }
397
- function z(e = {}) {
432
+ function B(e = {}) {
398
433
  return w({
399
- id: T(),
434
+ id: E(),
400
435
  type: "countdown",
401
- ...ie,
402
- styles: E()
436
+ ...le,
437
+ styles: D()
403
438
  }, e);
404
439
  }
405
- function pe(e) {
440
+ function ye(e) {
406
441
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
407
442
  }
408
- function me(e) {
443
+ function be(e) {
409
444
  let t = {};
410
- for (let n of e.fields) t[n.key] = pe(n);
411
- let n = w(E(), e.defaultStyles);
445
+ for (let n of e.fields) t[n.key] = T(ye(n));
446
+ let n = w(D(), T(e.defaultStyles));
412
447
  return {
413
- id: T(),
448
+ id: E(),
414
449
  type: "custom",
415
450
  customType: e.type,
416
451
  fieldValues: t,
@@ -418,152 +453,144 @@ function me(e) {
418
453
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
419
454
  };
420
455
  }
421
- function he() {
456
+ function xe() {
422
457
  return {
423
- id: T(),
458
+ id: E(),
424
459
  type: "slot",
425
- styles: E(0)
460
+ styles: D(0)
426
461
  };
427
462
  }
428
- function ge(e = {}) {
463
+ function Se(e = {}) {
429
464
  return w({
430
- id: T(),
465
+ id: E(),
431
466
  type: "wrapper",
432
467
  children: [],
433
- styles: E(0)
468
+ styles: D(0)
434
469
  }, e);
435
470
  }
436
- function _e(e, t) {
471
+ function Ce(e, t) {
437
472
  switch (e) {
438
- case "section": return M(t?.section);
439
- case "title": return D(t?.title);
440
- case "paragraph": return O(t?.paragraph);
441
- case "image": return k(t?.image);
442
- case "button": return A(t?.button);
443
- case "divider": return j(t?.divider);
444
- case "video": return N(t?.video);
445
- case "social": return P(t?.social);
446
- case "spacer": return F(t?.spacer);
447
- case "html": return I(t?.html);
448
- case "menu": return L(t?.menu);
449
- case "table": return R(t?.table);
450
- case "countdown": return z(t?.countdown);
473
+ case "section": return N(T(t?.section));
474
+ case "title": return O(T(t?.title));
475
+ case "paragraph": return k(T(t?.paragraph));
476
+ case "image": return A(T(t?.image));
477
+ case "button": return j(T(t?.button));
478
+ case "divider": return M(T(t?.divider));
479
+ case "video": return P(T(t?.video));
480
+ case "social": return F(T(t?.social));
481
+ case "spacer": return I(T(t?.spacer));
482
+ case "html": return L(T(t?.html));
483
+ case "menu": return R(T(t?.menu));
484
+ case "table": return z(T(t?.table));
485
+ case "countdown": return B(T(t?.countdown));
451
486
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
452
487
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
453
488
  default: throw Error(`Unknown block type: ${e}`);
454
489
  }
455
490
  }
456
- function B(e) {
457
- let t = JSON.parse(JSON.stringify(e));
458
- return t.id = T(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => B(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => B(e))), t;
459
- }
460
491
  function V(e) {
461
- let t = [];
462
- return JSON.parse(JSON.stringify(e, function(e, n) {
463
- if (typeof n != "object" || !n) return n;
464
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
465
- if (!t.includes(n)) return t.push(n), n;
466
- }));
492
+ let t = JSON.parse(JSON.stringify(e));
493
+ if (t.id = E(), t.type === "table") for (let e of t.rows) {
494
+ e.id = E();
495
+ for (let t of e.cells) t.id = E();
496
+ }
497
+ if (t.type === "menu") for (let e of t.items) e.id = E();
498
+ if (t.type === "social") for (let e of t.icons) e.id = E();
499
+ return 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;
467
500
  }
468
- var H = "[Templatical] layout: must contain exactly one slot block", U = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", ve = "[Templatical] layout: a wrapper cannot contain a wrapper", ye = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", be = "[Templatical] slot is not a valid content block", xe = "[Templatical] wrapper is not a valid content block";
469
- function W(e, t, n = null, r = !1) {
470
- for (let i of e) if (t(i, n, r), u(i)) for (let e of i.children) W(e, t, i, !0);
471
- else p(i) && W(i.children, t, i, r);
501
+ var H = "[Templatical] layout: must contain exactly one slot block", we = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Te = "[Templatical] layout: a wrapper cannot contain a wrapper", Ee = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", De = "[Templatical] slot is not a valid content block", Oe = "[Templatical] wrapper is not a valid content block";
502
+ function U(e, t, n = null, r = !1) {
503
+ for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) U(e, t, i, !0);
504
+ else m(i) && U(i.children, t, i, r);
472
505
  }
473
- function G(e) {
506
+ function W(e) {
474
507
  let t = 0;
475
- if (W(e.blocks, (e, n, r) => {
476
- if (f(e) && (t += 1, r)) throw Error(U);
477
- if (p(e)) {
478
- if (r) throw Error(U);
479
- if (e.children.some(p)) throw Error(ve);
508
+ if (U(e.blocks, (e, n, r) => {
509
+ if (p(e) && (t += 1, r)) throw Error(we);
510
+ if (m(e)) {
511
+ if (r) throw Error(we);
512
+ if (e.children.some(m)) throw Error(Te);
480
513
  }
481
514
  }), t !== 1) throw Error(H);
482
515
  }
483
- function K(e) {
484
- W(e.blocks, (e) => {
485
- if (f(e)) throw Error(be);
516
+ function G(e) {
517
+ U(e.blocks, (e) => {
518
+ if (p(e)) throw Error(De);
486
519
  });
487
520
  }
488
- function q(e) {
489
- W(e.blocks, (e) => {
490
- if (p(e)) throw Error(xe);
521
+ function K(e) {
522
+ U(e.blocks, (e) => {
523
+ if (m(e)) throw Error(Oe);
491
524
  });
492
525
  }
493
- function Se(e) {
526
+ function ke(e) {
494
527
  let t = !1;
495
- return W(e.blocks, (e, n) => {
496
- f(e) && n !== null && p(n) && (t = !0);
528
+ return U(e.blocks, (e, n) => {
529
+ p(e) && n !== null && m(n) && (t = !0);
497
530
  }), t;
498
531
  }
499
- function Ce(e) {
500
- if (f(e)) return e;
501
- if (p(e)) {
502
- let t = B({
532
+ function Ae(e) {
533
+ if (p(e)) return e;
534
+ if (m(e)) {
535
+ let t = V({
503
536
  ...e,
504
537
  children: []
505
538
  });
506
- return t.children = e.children.map(Ce), t;
539
+ return t.children = e.children.map(Ae), t;
507
540
  }
508
- return B(e);
541
+ return V(e);
509
542
  }
510
- function we(e) {
543
+ function je(e) {
511
544
  for (let t = 0; t < e.length; t++) {
512
545
  let n = e[t];
513
- if (f(n)) return {
546
+ if (p(n)) return {
514
547
  parent: e,
515
548
  index: t
516
549
  };
517
- if (p(n)) {
518
- let e = we(n.children);
550
+ if (m(n)) {
551
+ let e = je(n.children);
519
552
  if (e) return e;
520
553
  }
521
554
  }
522
555
  return null;
523
556
  }
524
- function Te(e) {
525
- for (let t of e) if (u(t)) {
557
+ function Me(e) {
558
+ for (let t of e) if (f(t)) {
526
559
  if (t.wrapper) return !0;
527
- for (let e of t.children) if (Te(e)) return !0;
560
+ for (let e of t.children) if (Me(e)) return !0;
528
561
  }
529
562
  return !1;
530
563
  }
531
- function Ee(e, t) {
532
- if (G(e), K(t), q(t), Se(e) && Te(t.blocks)) throw Error(ye);
533
- let n = e.blocks.map(Ce), r = we(n);
564
+ function Ne(e, t) {
565
+ if (W(e), G(t), K(t), ke(e) && Me(t.blocks)) throw Error(Ee);
566
+ let n = e.blocks.map(Ae), r = je(n);
534
567
  if (!r) throw Error(H);
535
- return r.parent.splice(r.index, 1, ...V(t.blocks)), {
568
+ return r.parent.splice(r.index, 1, ...C(t.blocks)), {
536
569
  blocks: n,
537
570
  settings: {
538
- ...V(t.settings),
571
+ ...C(t.settings),
539
572
  backgroundColor: e.settings.backgroundColor
540
573
  }
541
574
  };
542
575
  }
543
- var De = /* @__PURE__ */ new Set(["\"", "'"]);
544
- function Oe(e, t) {
576
+ var Pe = /* @__PURE__ */ new Set(["\"", "'"]);
577
+ function Fe(e, t) {
545
578
  let n = null;
546
579
  for (let r = t; r < e.length; r++) {
547
580
  let t = e[r];
548
- if (n !== null) {
549
- t === n && (n = null);
550
- continue;
551
- }
552
- if (De.has(t)) {
553
- n = t;
554
- continue;
555
- }
556
- if (t === ">") return r;
581
+ if (n !== null) t === n && (n = null);
582
+ else if (Pe.has(t)) n = t;
583
+ else if (t === ">") return r;
557
584
  }
558
585
  return -1;
559
586
  }
560
- function ke(e) {
587
+ function Ie(e) {
561
588
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
562
589
  }
563
- function J(e) {
590
+ function q(e) {
564
591
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
565
592
  }
566
- var Ae = {
593
+ var Le = {
567
594
  amp: "&",
568
595
  lt: "<",
569
596
  gt: ">",
@@ -571,44 +598,105 @@ var Ae = {
571
598
  apos: "'",
572
599
  nbsp: "\xA0"
573
600
  };
574
- function je(e) {
601
+ function Re(e) {
575
602
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
576
603
  if (t[0] === "#") {
577
604
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
578
605
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
579
606
  }
580
- return Ae[t.toLowerCase()] ?? e;
607
+ return Le[t.toLowerCase()] ?? e;
581
608
  }) : e;
582
609
  }
583
- function Me(e, t) {
610
+ function ze(e, t) {
584
611
  let n = t.toLowerCase(), r = 0;
585
612
  for (; r < e.length;) {
586
- for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
613
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
587
614
  if (r >= e.length) break;
588
615
  let t = r;
589
- for (; r < e.length && ke(e[r]);) r++;
616
+ for (; r < e.length && Ie(e[r]);) r++;
590
617
  let i = e.substring(t, r).toLowerCase();
591
618
  if (i === "") {
592
619
  r++;
593
620
  continue;
594
621
  }
595
- for (; r < e.length && J(e[r]);) r++;
622
+ for (; r < e.length && q(e[r]);) r++;
596
623
  if (e[r] !== "=") continue;
597
- for (r++; r < e.length && J(e[r]);) r++;
624
+ for (r++; r < e.length && q(e[r]);) r++;
598
625
  let a = e[r];
599
- if (De.has(a)) {
626
+ if (Pe.has(a)) {
600
627
  let t = r + 1, o = e.indexOf(a, t);
601
628
  if (o === -1) return null;
602
- if (i === n) return je(e.substring(t, o));
629
+ if (i === n) return Re(e.substring(t, o));
603
630
  r = o + 1;
604
631
  continue;
605
632
  }
606
633
  let o = r;
607
- for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
608
- if (i === n) return je(e.substring(o, r));
634
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
635
+ if (i === n) return Re(e.substring(o, r));
609
636
  }
610
637
  return null;
611
638
  }
639
+ var Be = {
640
+ arial: "Arial, sans-serif",
641
+ helvetica: "Helvetica, sans-serif",
642
+ georgia: "Georgia, serif",
643
+ "times new roman": "'Times New Roman', serif",
644
+ verdana: "Verdana, sans-serif",
645
+ "trebuchet ms": "'Trebuchet MS', sans-serif",
646
+ "courier new": "'Courier New', monospace",
647
+ tahoma: "Tahoma, sans-serif"
648
+ }, Ve = /* @__PURE__ */ new Set([
649
+ "inherit",
650
+ "initial",
651
+ "unset",
652
+ "revert",
653
+ "revert-layer"
654
+ ]);
655
+ function He(e) {
656
+ return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
657
+ }
658
+ function J(e) {
659
+ if (typeof e != "string") return [];
660
+ let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
661
+ for (;;) {
662
+ for (; r < t.length && He(t[r]);) r++;
663
+ if (r >= t.length) return [];
664
+ let e = t[r];
665
+ if (e === "\"" || e === "'") {
666
+ let i = "", a = r + 1, o = !1;
667
+ for (; a < t.length;) {
668
+ let n = t[a];
669
+ if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
670
+ else {
671
+ if (n === e) {
672
+ o = !0, a++;
673
+ break;
674
+ }
675
+ i += n, a++;
676
+ }
677
+ }
678
+ if (!o) return [];
679
+ for (; a < t.length && He(t[a]);) a++;
680
+ if (a < t.length && t[a] !== ",") return [];
681
+ n.push({
682
+ name: i,
683
+ quoted: !0
684
+ }), r = a;
685
+ } else {
686
+ let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
687
+ if (a === "" || a.includes("\"") || a.includes("'") || Ve.has(a.toLowerCase())) return [];
688
+ n.push({
689
+ name: a,
690
+ quoted: !1
691
+ }), r = i;
692
+ }
693
+ if (r >= t.length) return n;
694
+ r++;
695
+ }
696
+ }
697
+ function Ue(e) {
698
+ return J(e)[0]?.name ?? "";
699
+ }
612
700
  var Y = {
613
701
  liquid: {
614
702
  value: /\{\{.+?\}\}/g,
@@ -626,33 +714,33 @@ var Y = {
626
714
  value: /%%=.+?=%%/g,
627
715
  logic: /%%\[\s*(\w+).*?\]%%/g
628
716
  }
629
- }, Ne = {
717
+ }, We = {
630
718
  liquid: "{{",
631
719
  handlebars: "{{",
632
720
  mailchimp: "*|",
633
721
  ampscript: "%%="
634
- }, Pe = {
722
+ }, Ge = {
635
723
  liquid: "}}",
636
724
  handlebars: "}}",
637
725
  mailchimp: "|*",
638
726
  ampscript: "=%%"
639
727
  };
640
- function Fe(e) {
641
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ne[t];
728
+ function Ke(e) {
729
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
642
730
  return null;
643
731
  }
644
- function Ie(e) {
645
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Pe[t];
732
+ function qe(e) {
733
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
646
734
  return null;
647
735
  }
648
- function Le(e) {
736
+ function Je(e) {
649
737
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
650
738
  }
651
739
  function X(e) {
652
740
  let t = e.source, n = e.flags.replace("g", "");
653
741
  return RegExp(`^${t}$`, n);
654
742
  }
655
- function Re(e, t) {
743
+ function Ye(e, t) {
656
744
  let n = e?.trim() || "";
657
745
  return !X(t.logic).test(n) && X(t.value).test(n);
658
746
  }
@@ -660,41 +748,41 @@ function Z(e, t) {
660
748
  let n = t.find((t) => t.value === e);
661
749
  return n ? n.label : e;
662
750
  }
663
- function ze(e, t) {
751
+ function Xe(e, t) {
664
752
  return $(e, "data-merge-tag", (e) => Z(e, t));
665
753
  }
666
754
  function Q(e, t) {
667
755
  return t.find((t) => t.value === e)?.sample;
668
756
  }
669
- function Be(e, t) {
670
- return $(e, "data-merge-tag", (e) => Ue(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
757
+ function Ze(e, t) {
758
+ return $(e, "data-merge-tag", (e) => et(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
671
759
  }
672
- function Ve(e) {
760
+ function Qe(e) {
673
761
  return e.some((e) => e.sample !== void 0);
674
762
  }
675
- function He(e, t) {
763
+ function $e(e, t) {
676
764
  if (!e) return e;
677
765
  let n = e;
678
766
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
679
767
  return n;
680
768
  }
681
- function Ue(e) {
769
+ function et(e) {
682
770
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
683
771
  }
684
- function We(e, t) {
772
+ function tt(e, t) {
685
773
  if (!e) return !1;
686
774
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
687
775
  return n.test(e) || r.test(e);
688
776
  }
689
- function Ge(e, t) {
777
+ function nt(e, t) {
690
778
  return X(t.logic).test(e?.trim() || "");
691
779
  }
692
- function Ke(e, t) {
780
+ function rt(e, t) {
693
781
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
694
782
  return r && r[1] ? r[1].toUpperCase() : e;
695
783
  }
696
- function qe(e, t) {
697
- return $(e, "data-logic-merge-tag", (e) => Ke(e, t));
784
+ function it(e, t) {
785
+ return $(e, "data-logic-merge-tag", (e) => rt(e, t));
698
786
  }
699
787
  function $(e, t, n, r) {
700
788
  let i = "", a = 0;
@@ -709,7 +797,7 @@ function $(e, t, n, r) {
709
797
  i += e.substring(a, o + 5), a = o + 5;
710
798
  continue;
711
799
  }
712
- let c = Oe(e, o + 5);
800
+ let c = Fe(e, o + 5);
713
801
  if (c === -1) {
714
802
  i += e.substring(a);
715
803
  break;
@@ -719,7 +807,7 @@ function $(e, t, n, r) {
719
807
  i += e.substring(a);
720
808
  break;
721
809
  }
722
- let u = Me(e.substring(o + 5, c), t);
810
+ let u = ze(e.substring(o + 5, c), t);
723
811
  if (u === null) {
724
812
  i += e.substring(a, o + 5), a = o + 5;
725
813
  continue;
@@ -729,12 +817,12 @@ function $(e, t, n, r) {
729
817
  }
730
818
  return i;
731
819
  }
732
- function Je(e) {
820
+ function at(e) {
733
821
  if (typeof e != "object" || !e) return !1;
734
822
  let t = e;
735
823
  return Array.isArray(t.blocks);
736
824
  }
737
- var Ye = class extends Error {
825
+ var ot = class extends Error {
738
826
  statusCode;
739
827
  constructor(e, t) {
740
828
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -750,4 +838,4 @@ var Ye = class extends Error {
750
838
  }
751
839
  };
752
840
  //#endregion
753
- export { V as $, D as A, Ve as B, L as C, P as D, he as E, Ke as F, u as G, Ge as H, Z as I, Se as J, f as K, Q as L, ge as M, C as N, F as O, T as P, Le as Q, Ie as R, k as S, M as T, Re as U, d as V, Je as W, qe as X, ue as Y, ze as Z, z as _, s as a, t as at, j as b, Y as c, K as d, Be as et, q as f, A as g, _e as h, oe as i, o as it, N as j, R as k, Ye as l, We as m, e as n, n as nt, c as o, G as ot, B as p, p as q, ae as r, r as rt, l as s, i as t, He as tt, Ee as u, me as v, O as w, I as x, se as y, Fe as z };
841
+ export { it as $, z as A, qe as B, A as C, xe as D, N as E, Ue as F, Ye as G, Qe as H, E as I, p as J, at as K, rt as L, P as M, Se as N, F as O, S as P, ge as Q, Z as R, L as S, k as T, re as U, Ke as V, nt as W, ke as X, m as Y, J as Z, j as _, de as a, te as at, pe as b, l as c, n as ct, Ne as d, t as dt, Xe as et, G as f, W as ft, Ce as g, tt as h, ue as i, ne as it, O as j, I as k, Y as l, r as lt, V as m, e as n, C as nt, s as o, Ze as ot, K as p, f as q, Be as r, ee as rt, c as s, $e as st, i as t, Je as tt, ot as u, o as ut, B as v, R as w, M as x, be as y, Q as z };