@templatical/editor 0.39.4 → 0.40.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 (210) hide show
  1. package/dist/{AiChatSidebar-5qqrS6uy.js → AiChatSidebar-a8TPBAl2.js} +3 -3
  2. package/dist/{AiFeatureMenu-BBO_Ojlp.js → AiFeatureMenu-CbgDjLqk.js} +3 -3
  3. package/dist/{BlockIssueBadge-D5oGxOQP.js → BlockIssueBadge-D8KsGWY6.js} +2 -2
  4. package/dist/BlockPreviewCanvas-XNV83YGg.js +133 -0
  5. package/dist/{CloudHeaderExtras-Cg6uF-yQ.js → CloudHeaderExtras-C-tbLyfE.js} +2 -2
  6. package/dist/{CloudPanels-D1Gg4qrG.js → CloudPanels-DnWDrgnQ.js} +4 -4
  7. package/dist/{CollaboratorBar-Cmn0LccS.js → CollaboratorBar-DUmeCkyD.js} +2 -2
  8. package/dist/{CommentsPanel-twNhYUqZ.js → CommentsPanel-9k1q-79y.js} +1 -1
  9. package/dist/{CommentsSidebar-DDO0Qx8U.js → CommentsSidebar-Bc7nORmD.js} +2 -2
  10. package/dist/{CountdownBlock-DSvbf3qU.js → CountdownBlock-C6R-hn7D.js} +1 -1
  11. package/dist/{CountdownToolbar-nvHxu8Gu.js → CountdownToolbar-DkC-qSgq.js} +4 -4
  12. package/dist/{DesignReferenceSidebar-C8ohNhOd.js → DesignReferenceSidebar-OoiYJAKS.js} +3 -3
  13. package/dist/{IssuesPanel-Ck0EGoV5.js → IssuesPanel-Dnns3O9z.js} +3 -3
  14. package/dist/{LogicTagInsertButton-D8IwH-9Z.js → LogicTagInsertButton-BimKobaG.js} +67 -67
  15. package/dist/{MergeTagInput-QI-5KG2R.js → MergeTagInput-DqpVzhy7.js} +1 -1
  16. package/dist/{MergeTagModeToggle-D793Bj_E.js → MergeTagModeToggle-BkIiAgpQ.js} +4 -4
  17. package/dist/{ParagraphEditor-D6FRxr8Y.js → ParagraphEditor-D67Cqh-T.js} +19 -19
  18. package/dist/{RestoreVersionDialog--b0qfNaK.js → RestoreVersionDialog-BaKDuPCX.js} +2 -2
  19. package/dist/{RichTextEditorContent-BC5UTVnb.js → RichTextEditorContent-AEtfKvLz.js} +5 -5
  20. package/dist/{SaveBlockDialog-C0BdEGeL.js → SaveBlockDialog-BxkI52fN.js} +8 -8
  21. package/dist/{SavedBlocksBrowserModal-BzDgXtr4.js → SavedBlocksBrowserModal-C4_25Kvn.js} +6 -6
  22. package/dist/{SavedBlocksPanels-DN-bDZzy.js → SavedBlocksPanels-DQ0w9G1O.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-pEi9Et8Q.js → SavedBlocksPickBar-CtH-sfxh.js} +2 -2
  24. package/dist/{TemplateScoringPanel-B1wcfE0w.js → TemplateScoringPanel-Cs0TGtRF.js} +3 -3
  25. package/dist/{TemplateSettings-C_5leDdF.js → TemplateSettings-BD1WNP4C.js} +7 -7
  26. package/dist/{TestEmailModal-maM8SLBV.js → TestEmailModal-DZi58FU9.js} +70 -65
  27. package/dist/{TestEmailPanel-8iAZYpCK.js → TestEmailPanel-D__9Wvgz.js} +1 -1
  28. package/dist/{TitleEditor-L26QXwna.js → TitleEditor-v5p89Djs.js} +9 -9
  29. package/dist/{ToggleSwitch-JvQ_CmI1.js → ToggleSwitch-CJfQ8u57.js} +1 -1
  30. package/dist/{Toolbar-B2kDLFhn.js → Toolbar-C7SjilzH.js} +540 -525
  31. package/dist/{TplModal-DVMS_nAn.js → TplModal-B8uLyoXE.js} +3 -3
  32. package/dist/{VersionHistoryMenu-BVQityes.js → VersionHistoryMenu-b0A8mS2_.js} +2 -2
  33. package/dist/{VersionHistoryPanels-D8f8KvKX.js → VersionHistoryPanels-DfNrRT6y.js} +1 -1
  34. package/dist/{VersionPreviewBanner-BaMSgA1O.js → VersionPreviewBanner-xB9r83r0.js} +1 -1
  35. package/dist/WrapperBlock-yGmKw0T-.js +34 -0
  36. package/dist/{blockTypeIcons-CdXugKyV.js → blockTypeIcons-B0Bq1WT1.js} +1 -1
  37. package/dist/bundle-stats.json +6 -6
  38. package/dist/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +1 -0
  39. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js → AiChatSidebar-mKImUXi6.js} +7 -7
  40. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js.map → AiChatSidebar-mKImUXi6.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js → AiFeatureMenu-23HCL517.js} +4 -4
  42. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js.map → AiFeatureMenu-23HCL517.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js → BlockIssueBadge-DS1pUf5g.js} +3 -3
  44. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js.map → BlockIssueBadge-DS1pUf5g.js.map} +1 -1
  45. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js +135 -0
  46. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js.map +1 -0
  47. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js → CloudHeaderExtras-DOB_uWpt.js} +3 -3
  48. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js.map → CloudHeaderExtras-DOB_uWpt.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js → CloudPanels-DcAn5QW7.js} +5 -5
  50. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js.map → CloudPanels-DcAn5QW7.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js → CollaboratorBar-C0M8c2Vv.js} +3 -3
  52. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js.map → CollaboratorBar-C0M8c2Vv.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js → CommentsPanel-BtAGZfF6.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js.map → CommentsPanel-BtAGZfF6.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js → CommentsSidebar-Ws07MXYj.js} +3 -3
  56. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js.map → CommentsSidebar-Ws07MXYj.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js → CountdownBlock-sVDjKkRw.js} +2 -2
  58. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js.map → CountdownBlock-sVDjKkRw.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js → CountdownToolbar-Bu93WiS8.js} +5 -5
  60. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js.map → CountdownToolbar-Bu93WiS8.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js → DesignReferenceSidebar-BlSdh5B7.js} +4 -4
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js.map → DesignReferenceSidebar-BlSdh5B7.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js → IssuesPanel-CKkv9z9g.js} +4 -4
  64. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js.map → IssuesPanel-CKkv9z9g.js.map} +1 -1
  65. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js → LogicTagInsertButton-CHc1yZ9v.js} +165 -165
  66. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js.map → LogicTagInsertButton-CHc1yZ9v.js.map} +1 -1
  67. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js → MergeTagInput--qTYfCWk.js} +2 -2
  68. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js.map → MergeTagInput--qTYfCWk.js.map} +1 -1
  69. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js → MergeTagModeToggle-CdWIGo3Q.js} +5 -5
  70. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js.map → MergeTagModeToggle-CdWIGo3Q.js.map} +1 -1
  71. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js → ParagraphEditor-BilbVtrG.js} +17 -17
  72. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js.map → ParagraphEditor-BilbVtrG.js.map} +1 -1
  73. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js → RestoreVersionDialog-Q-a44Vjv.js} +3 -3
  74. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js.map → RestoreVersionDialog-Q-a44Vjv.js.map} +1 -1
  75. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js → RichTextEditorContent-Fzuu9pLP.js} +6 -6
  76. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js.map → RichTextEditorContent-Fzuu9pLP.js.map} +1 -1
  77. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js → SaveBlockDialog-DeW_M6kh.js} +9 -9
  78. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js.map → SaveBlockDialog-DeW_M6kh.js.map} +1 -1
  79. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js → SavedBlocksBrowserModal-BzQWibKG.js} +6 -6
  80. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js.map → SavedBlocksBrowserModal-BzQWibKG.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js → SavedBlocksPanels-Ce1RePjk.js} +2 -2
  82. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js.map → SavedBlocksPanels-Ce1RePjk.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js → SavedBlocksPickBar-DIDl6xfy.js} +3 -3
  84. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js.map → SavedBlocksPickBar-DIDl6xfy.js.map} +1 -1
  85. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js → TemplateScoringPanel-d_Ppowsq.js} +49 -49
  86. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js.map → TemplateScoringPanel-d_Ppowsq.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js → TemplateSettings-Dr5OJ0Gi.js} +8 -8
  88. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js.map → TemplateSettings-Dr5OJ0Gi.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-DId9Og-N.js → TestEmailModal-CWTmaJuT.js} +56 -51
  90. package/dist/cdn/chunks/TestEmailModal-CWTmaJuT.js.map +1 -0
  91. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js → TestEmailPanel-BdYsVHXA.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js.map → TestEmailPanel-BdYsVHXA.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js → TitleEditor-pJeeZ-PX.js} +9 -9
  94. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js.map → TitleEditor-pJeeZ-PX.js.map} +1 -1
  95. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js → ToggleSwitch-0dGCYnRY.js} +2 -2
  96. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js.map → ToggleSwitch-0dGCYnRY.js.map} +1 -1
  97. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js → Toolbar-BsiHW9gY.js} +493 -478
  98. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js.map → Toolbar-BsiHW9gY.js.map} +1 -1
  99. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js → TplModal-CEuGD7pt.js} +4 -4
  100. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js.map → TplModal-CEuGD7pt.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js → VersionHistoryMenu-B3-hNu9c.js} +3 -3
  102. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js.map → VersionHistoryMenu-B3-hNu9c.js.map} +1 -1
  103. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js → VersionHistoryPanels-C1yck5gT.js} +2 -2
  104. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js.map → VersionHistoryPanels-C1yck5gT.js.map} +1 -1
  105. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js → VersionPreviewBanner-PzVQSBJE.js} +2 -2
  106. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js.map → VersionPreviewBanner-PzVQSBJE.js.map} +1 -1
  107. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js +36 -0
  108. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js.map +1 -0
  109. package/dist/cdn/chunks/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +2 -1
  110. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +1 -0
  111. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js → cloud-CIT4yPp4.js} +2 -2
  112. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js.map → cloud-CIT4yPp4.js.map} +1 -1
  113. package/dist/cdn/chunks/{createCloudRuntime-D5bXzcTe.js → createCloudRuntime-COUxbPvd.js} +49 -40
  114. package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +1 -0
  115. package/dist/cdn/chunks/{de-CY6SlqBx.js → de-D4dweQw8.js} +2 -1
  116. package/dist/cdn/chunks/de-D4dweQw8.js.map +1 -0
  117. package/dist/{en-8V-2kDcp.js → cdn/chunks/en-VE7R7NyL.js} +3 -0
  118. package/dist/cdn/chunks/en-VE7R7NyL.js.map +1 -0
  119. package/dist/{es-Cmn1rT3l.js → cdn/chunks/es-B9OhP8H3.js} +3 -0
  120. package/dist/cdn/chunks/es-B9OhP8H3.js.map +1 -0
  121. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js → extensions-CafoGF65.js} +5 -5
  122. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js.map → extensions-CafoGF65.js.map} +1 -1
  123. package/dist/cdn/chunks/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +2 -1
  124. package/dist/cdn/chunks/fr-wrXhIi00.js.map +1 -0
  125. package/dist/cdn/chunks/keys-DCWeHkSF.js +12 -0
  126. package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -0
  127. package/dist/{nl-Bzk2zRI8.js → cdn/chunks/nl-DeFatKJe.js} +3 -0
  128. package/dist/cdn/chunks/nl-DeFatKJe.js.map +1 -0
  129. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js +21 -0
  130. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +1 -0
  131. package/dist/cdn/chunks/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +2 -1
  132. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +1 -0
  133. package/dist/cdn/chunks/{socialIcons-9VrG8X3m.js → socialIcons-BvYNMn1G.js} +264 -258
  134. package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +1 -0
  135. package/dist/cdn/chunks/{src-CqYYKcCI.js → src-CbGCES0u.js} +175 -168
  136. package/dist/cdn/chunks/src-CbGCES0u.js.map +1 -0
  137. package/dist/cdn/chunks/{src-CaNsA_WX.js → src-Cnc5E71L.js} +258 -247
  138. package/dist/cdn/chunks/src-Cnc5E71L.js.map +1 -0
  139. package/dist/cdn/chunks/{src-Dwgq7hf4.js → src-DveVYoWS.js} +281 -181
  140. package/dist/cdn/chunks/src-DveVYoWS.js.map +1 -0
  141. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js → useCloudI18n-CrjWbpbu.js} +2 -2
  142. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js.map → useCloudI18n-CrjWbpbu.js.map} +1 -1
  143. package/dist/cdn/chunks/{useEditorCore-CXYI14ux.js → useEditorCore-CQraU2s_.js} +421 -408
  144. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +1 -0
  145. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js → useEditorRoot-CshefZLP.js} +2 -2
  146. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js.map → useEditorRoot-CshefZLP.js.map} +1 -1
  147. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js → useI18n-CyO_Nmca.js} +2 -2
  148. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js.map → useI18n-CyO_Nmca.js.map} +1 -1
  149. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js → useLogicTag-DF7-l66G.js} +4 -4
  150. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js.map → useLogicTag-DF7-l66G.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js → useMergeTag-DbIHw4NG.js} +4 -4
  152. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js.map → useMergeTag-DbIHw4NG.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js → usePopoverPosition-BJRvAb-h.js} +2 -2
  154. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js.map → usePopoverPosition-BJRvAb-h.js.map} +1 -1
  155. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js → useScrollToBlock-DgHZJvID.js} +2 -2
  156. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js.map → useScrollToBlock-DgHZJvID.js.map} +1 -1
  157. package/dist/cdn/editor.css +1 -1
  158. package/dist/cdn/editor.js +484 -460
  159. package/dist/cdn/editor.js.map +1 -1
  160. package/dist/{cloud-C9xWZXhg.js → cloud-DsqqUfzh.js} +1 -1
  161. package/dist/{createCloudRuntime-BGd5--Bq.js → createCloudRuntime-iLflkYzP.js} +47 -38
  162. package/dist/{de-CY6SlqBx.js → de-D4dweQw8.js} +1 -0
  163. package/dist/{dist-tGkjkX-v.js → dist-DbUZvK04.js} +277 -176
  164. package/dist/{cdn/chunks/en-8V-2kDcp.js → en-VE7R7NyL.js} +1 -2
  165. package/dist/{cdn/chunks/es-Cmn1rT3l.js → es-B9OhP8H3.js} +1 -2
  166. package/dist/{extensions-DRN-elXT.js → extensions-DDhjuVKy.js} +4 -4
  167. package/dist/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +1 -0
  168. package/dist/index.d.ts +65 -0
  169. package/dist/keys-CDqfZIRt.js +10 -0
  170. package/dist/{cdn/chunks/nl-Bzk2zRI8.js → nl-DeFatKJe.js} +1 -2
  171. package/dist/preRenderCustomBlocks-BBSqQgke.js +19 -0
  172. package/dist/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +1 -0
  173. package/dist/{socialIcons-DkGcpEwC.js → socialIcons-O7PZCW2P.js} +245 -239
  174. package/dist/style.css +1 -1
  175. package/dist/templatical-editor.js +520 -496
  176. package/dist/{useCloudI18n-D1iedlP3.js → useCloudI18n-DpEsiLeR.js} +1 -1
  177. package/dist/{useEditorCore-BUVbQgwb.js → useEditorCore-Dt_VWNqX.js} +817 -804
  178. package/dist/{useEditorRoot-BOxn5EfP.js → useEditorRoot-CkB_5d0h.js} +1 -1
  179. package/dist/{useI18n-Ds_-druD.js → useI18n-B_CdcBwG.js} +1 -1
  180. package/dist/{useLogicTag-DoHfc08B.js → useLogicTag-D9pvgxQR.js} +3 -3
  181. package/dist/{useMergeTag-DXyum3kG.js → useMergeTag-BaVFPdlq.js} +5 -5
  182. package/dist/{usePopoverPosition-Du-Ah8E9.js → usePopoverPosition-DH7z3Ghm.js} +1 -1
  183. package/dist/{useScrollToBlock-DXQYPCnJ.js → useScrollToBlock-Dj4v3rxr.js} +1 -1
  184. package/package.json +7 -7
  185. package/dist/BlockPreviewCanvas-BMC16_QU.js +0 -131
  186. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js +0 -133
  187. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js.map +0 -1
  188. package/dist/cdn/chunks/TestEmailModal-DId9Og-N.js.map +0 -1
  189. package/dist/cdn/chunks/ca-Bqeygp1_.js.map +0 -1
  190. package/dist/cdn/chunks/createCloudRuntime-D5bXzcTe.js.map +0 -1
  191. package/dist/cdn/chunks/de-CY6SlqBx.js.map +0 -1
  192. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +0 -8
  193. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +0 -1
  194. package/dist/cdn/chunks/en-8V-2kDcp.js.map +0 -1
  195. package/dist/cdn/chunks/es-Cmn1rT3l.js.map +0 -1
  196. package/dist/cdn/chunks/fr-2yDa4zXM.js.map +0 -1
  197. package/dist/cdn/chunks/keys-dJbD1QPs.js +0 -12
  198. package/dist/cdn/chunks/keys-dJbD1QPs.js.map +0 -1
  199. package/dist/cdn/chunks/nl-Bzk2zRI8.js.map +0 -1
  200. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js +0 -23
  201. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js.map +0 -1
  202. package/dist/cdn/chunks/pt-BR-DqtSCTUi.js.map +0 -1
  203. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +0 -1
  204. package/dist/cdn/chunks/src-CaNsA_WX.js.map +0 -1
  205. package/dist/cdn/chunks/src-CqYYKcCI.js.map +0 -1
  206. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +0 -1
  207. package/dist/cdn/chunks/useEditorCore-CXYI14ux.js.map +0 -1
  208. package/dist/emailFrameWidth-BmFCN2dp.js +0 -6
  209. package/dist/keys-BdoSgsz9.js +0 -10
  210. package/dist/preRenderCustomBlocks-DFXH54Zr.js +0 -21
@@ -120,18 +120,24 @@ function ne(e) {
120
120
  function re(e) {
121
121
  return e.type === "custom";
122
122
  }
123
+ function f(e) {
124
+ return e.type === "slot";
125
+ }
126
+ function p(e) {
127
+ return e.type === "wrapper";
128
+ }
123
129
  //#endregion
124
130
  //#region ../types/src/defaults.ts
125
- var f = {
131
+ var m = {
126
132
  content: "<p>Enter your title</p>",
127
133
  level: 2,
128
134
  textAlign: "left"
129
- }, p = { content: "<p>Enter your text here</p>" }, m = {
135
+ }, h = { content: "<p>Enter your text here</p>" }, g = {
130
136
  src: "",
131
137
  alt: "",
132
138
  width: "full",
133
139
  align: "center"
134
- }, h = {
140
+ }, _ = {
135
141
  text: "Click Here",
136
142
  url: "",
137
143
  backgroundColor: "#333333",
@@ -145,36 +151,36 @@ var f = {
145
151
  left: 24
146
152
  },
147
153
  align: "center"
148
- }, g = {
154
+ }, ie = {
149
155
  lineStyle: "solid",
150
156
  color: "#e0e0e0",
151
157
  thickness: 1,
152
158
  width: "full"
153
- }, _ = { columns: "1" }, ie = {
159
+ }, ae = { columns: "1" }, oe = {
154
160
  url: "",
155
161
  thumbnailUrl: "",
156
162
  alt: "Video",
157
163
  width: "full",
158
164
  align: "center"
159
- }, v = {
165
+ }, se = {
160
166
  iconStyle: "solid",
161
167
  iconSize: "medium",
162
168
  spacing: 10,
163
169
  align: "center"
164
- }, y = { height: 24 }, b = { content: "" }, x = {
170
+ }, ce = { height: 24 }, le = { content: "" }, ue = {
165
171
  fontSize: 15,
166
172
  textAlign: "center",
167
173
  separator: "|",
168
174
  separatorColor: "#e0e0e0",
169
175
  spacing: 10
170
- }, S = {
176
+ }, v = {
171
177
  hasHeaderRow: !0,
172
178
  borderColor: "#e0e0e0",
173
179
  borderWidth: 1,
174
180
  cellPadding: 8,
175
181
  fontSize: 15,
176
182
  textAlign: "left"
177
- }, C = {
183
+ }, y = {
178
184
  targetDate: "",
179
185
  timezone: "UTC",
180
186
  showDays: !0,
@@ -194,21 +200,21 @@ var f = {
194
200
  expiredMessage: "This offer has expired",
195
201
  expiredImageUrl: "",
196
202
  hideOnExpiry: !1
197
- }, ae = {
198
- title: f,
199
- paragraph: p,
200
- image: m,
201
- button: h,
202
- divider: g,
203
- section: _,
204
- video: ie,
205
- social: v,
206
- spacer: y,
207
- html: b,
208
- menu: x,
209
- table: S,
210
- countdown: C
211
- }, w = {
203
+ }, de = {
204
+ title: m,
205
+ paragraph: h,
206
+ image: g,
207
+ button: _,
208
+ divider: ie,
209
+ section: ae,
210
+ video: oe,
211
+ social: se,
212
+ spacer: ce,
213
+ html: le,
214
+ menu: ue,
215
+ table: v,
216
+ countdown: y
217
+ }, b = {
212
218
  width: 600,
213
219
  backgroundColor: "#ffffff",
214
220
  textColor: "#1a1a1a",
@@ -216,24 +222,24 @@ var f = {
216
222
  fontFamily: "Arial",
217
223
  locale: "en"
218
224
  };
219
- function T(e) {
225
+ function x(e) {
220
226
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
221
227
  }
222
- function E(e, t) {
228
+ function S(e, t) {
223
229
  let n = { ...e };
224
230
  for (let r of Object.keys(t)) {
225
231
  let i = e[r], a = t[r];
226
- a !== void 0 && (n[r] = T(i) && T(a) ? E(i, a) : a);
232
+ a !== void 0 && (n[r] = x(i) && x(a) ? S(i, a) : a);
227
233
  }
228
234
  return n;
229
235
  }
230
236
  //#endregion
231
237
  //#region ../types/src/template.ts
232
- function oe(e = "Arial", t) {
238
+ function fe(e = "Arial", t) {
233
239
  return {
234
240
  blocks: [],
235
241
  settings: {
236
- ...w,
242
+ ...b,
237
243
  fontFamily: e,
238
244
  ...t
239
245
  }
@@ -241,7 +247,7 @@ function oe(e = "Arial", t) {
241
247
  }
242
248
  //#endregion
243
249
  //#region ../types/src/direction.ts
244
- var se = [
250
+ var pe = [
245
251
  "ar",
246
252
  "he",
247
253
  "iw",
@@ -255,22 +261,22 @@ var se = [
255
261
  "ckb",
256
262
  "ks"
257
263
  ];
258
- function ce(e) {
264
+ function me(e) {
259
265
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
260
- return !!t && se.includes(t);
266
+ return !!t && pe.includes(t);
261
267
  }
262
- function le(e) {
263
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ce(e.locale) ? "rtl" : "ltr";
268
+ function he(e) {
269
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : me(e.locale) ? "rtl" : "ltr";
264
270
  }
265
271
  //#endregion
266
272
  //#region ../types/src/factory.ts
267
- function D(e, t) {
268
- return !t || Object.keys(t).length === 0 ? e : E(e, t);
273
+ function C(e, t) {
274
+ return !t || Object.keys(t).length === 0 ? e : S(e, t);
269
275
  }
270
- function O() {
276
+ function w() {
271
277
  return crypto.randomUUID();
272
278
  }
273
- function ue(e = 0) {
279
+ function ge(e = 0) {
274
280
  return {
275
281
  top: e,
276
282
  right: e,
@@ -278,135 +284,135 @@ function ue(e = 0) {
278
284
  left: e
279
285
  };
280
286
  }
281
- function k(e = 10) {
282
- return { padding: ue(e) };
287
+ function T(e = 10) {
288
+ return { padding: ge(e) };
283
289
  }
284
- function A(e = {}) {
285
- return D({
286
- id: O(),
290
+ function E(e = {}) {
291
+ return C({
292
+ id: w(),
287
293
  type: "title",
288
- ...f,
289
- styles: k()
294
+ ...m,
295
+ styles: T()
290
296
  }, e);
291
297
  }
292
- function j(e = {}) {
293
- return D({
294
- id: O(),
298
+ function D(e = {}) {
299
+ return C({
300
+ id: w(),
295
301
  type: "paragraph",
296
- ...p,
297
- styles: k()
302
+ ...h,
303
+ styles: T()
298
304
  }, e);
299
305
  }
300
- function M(e = {}) {
301
- return D({
302
- id: O(),
306
+ function O(e = {}) {
307
+ return C({
308
+ id: w(),
303
309
  type: "image",
304
- ...m,
305
- styles: k()
310
+ ...g,
311
+ styles: T()
306
312
  }, e);
307
313
  }
308
- function N(e = {}) {
309
- return D({
310
- id: O(),
314
+ function k(e = {}) {
315
+ return C({
316
+ id: w(),
311
317
  type: "button",
312
- ...h,
313
- styles: k()
318
+ ..._,
319
+ styles: T()
314
320
  }, e);
315
321
  }
316
- function P(e = {}) {
317
- return D({
318
- id: O(),
322
+ function A(e = {}) {
323
+ return C({
324
+ id: w(),
319
325
  type: "divider",
320
- ...g,
321
- styles: k(20)
326
+ ...ie,
327
+ styles: T(20)
322
328
  }, e);
323
329
  }
324
- function F(e = {}) {
325
- return D({
326
- id: O(),
330
+ function j(e = {}) {
331
+ return C({
332
+ id: w(),
327
333
  type: "section",
328
- ..._,
334
+ ...ae,
329
335
  children: [[]],
330
- styles: k(20)
336
+ styles: T(20)
331
337
  }, e);
332
338
  }
333
- function I(e = {}) {
334
- return D({
335
- id: O(),
339
+ function M(e = {}) {
340
+ return C({
341
+ id: w(),
336
342
  type: "video",
337
- ...ie,
338
- styles: k()
343
+ ...oe,
344
+ styles: T()
339
345
  }, e);
340
346
  }
341
- function L(e = {}) {
342
- return D({
343
- id: O(),
347
+ function N(e = {}) {
348
+ return C({
349
+ id: w(),
344
350
  type: "social",
345
351
  icons: [],
346
- ...v,
347
- styles: k()
352
+ ...se,
353
+ styles: T()
348
354
  }, e);
349
355
  }
350
- function R(e = {}) {
351
- return D({
352
- id: O(),
356
+ function P(e = {}) {
357
+ return C({
358
+ id: w(),
353
359
  type: "spacer",
354
- ...y,
355
- styles: k(0)
360
+ ...ce,
361
+ styles: T(0)
356
362
  }, e);
357
363
  }
358
- function de(e = {}) {
359
- return D({
360
- id: O(),
364
+ function F(e = {}) {
365
+ return C({
366
+ id: w(),
361
367
  type: "html",
362
- ...b,
363
- styles: k()
368
+ ...le,
369
+ styles: T()
364
370
  }, e);
365
371
  }
366
- function z(e = {}) {
367
- return D({
368
- id: O(),
372
+ function I(e = {}) {
373
+ return C({
374
+ id: w(),
369
375
  type: "menu",
370
376
  items: [],
371
- ...x,
372
- styles: k()
377
+ ...ue,
378
+ styles: T()
373
379
  }, e);
374
380
  }
375
- function fe(e, t) {
381
+ function _e(e, t) {
376
382
  return Array.from({ length: t }, () => ({
377
- id: O(),
383
+ id: w(),
378
384
  cells: Array.from({ length: e }, () => ({
379
- id: O(),
385
+ id: w(),
380
386
  content: ""
381
387
  }))
382
388
  }));
383
389
  }
384
- function B(e = {}) {
385
- return D({
386
- id: O(),
390
+ function L(e = {}) {
391
+ return C({
392
+ id: w(),
387
393
  type: "table",
388
- rows: fe(3, 3),
389
- ...S,
390
- styles: k()
394
+ rows: _e(3, 3),
395
+ ...v,
396
+ styles: T()
391
397
  }, e);
392
398
  }
393
- function V(e = {}) {
394
- return D({
395
- id: O(),
399
+ function R(e = {}) {
400
+ return C({
401
+ id: w(),
396
402
  type: "countdown",
397
- ...C,
398
- styles: k()
403
+ ...y,
404
+ styles: T()
399
405
  }, e);
400
406
  }
401
- function pe(e) {
407
+ function ve(e) {
402
408
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
403
409
  }
404
- function me(e) {
410
+ function ye(e) {
405
411
  let t = {};
406
- for (let n of e.fields) t[n.key] = pe(n);
407
- let n = D(k(), e.defaultStyles);
412
+ for (let n of e.fields) t[n.key] = ve(n);
413
+ let n = C(T(), e.defaultStyles);
408
414
  return {
409
- id: O(),
415
+ id: w(),
410
416
  type: "custom",
411
417
  customType: e.type,
412
418
  fieldValues: t,
@@ -414,31 +420,48 @@ function me(e) {
414
420
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
415
421
  };
416
422
  }
417
- function he(e, t) {
423
+ function be() {
424
+ return {
425
+ id: w(),
426
+ type: "slot",
427
+ styles: T(0)
428
+ };
429
+ }
430
+ function xe(e = {}) {
431
+ return C({
432
+ id: w(),
433
+ type: "wrapper",
434
+ children: [],
435
+ styles: T(0)
436
+ }, e);
437
+ }
438
+ function Se(e, t) {
418
439
  switch (e) {
419
- case "section": return F(t?.section);
420
- case "title": return A(t?.title);
421
- case "paragraph": return j(t?.paragraph);
422
- case "image": return M(t?.image);
423
- case "button": return N(t?.button);
424
- case "divider": return P(t?.divider);
425
- case "video": return I(t?.video);
426
- case "social": return L(t?.social);
427
- case "spacer": return R(t?.spacer);
428
- case "html": return de(t?.html);
429
- case "menu": return z(t?.menu);
430
- case "table": return B(t?.table);
431
- case "countdown": return V(t?.countdown);
440
+ case "section": return j(t?.section);
441
+ case "title": return E(t?.title);
442
+ case "paragraph": return D(t?.paragraph);
443
+ case "image": return O(t?.image);
444
+ case "button": return k(t?.button);
445
+ case "divider": return A(t?.divider);
446
+ case "video": return M(t?.video);
447
+ case "social": return N(t?.social);
448
+ case "spacer": return P(t?.spacer);
449
+ case "html": return F(t?.html);
450
+ case "menu": return I(t?.menu);
451
+ case "table": return L(t?.table);
452
+ case "countdown": return R(t?.countdown);
453
+ case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
454
+ case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
432
455
  default: throw Error(`Unknown block type: ${e}`);
433
456
  }
434
457
  }
435
- function H(e) {
458
+ function z(e) {
436
459
  let t = JSON.parse(JSON.stringify(e));
437
- return t.id = O(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => H(e)))), t;
460
+ return t.id = w(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => z(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => z(e))), t;
438
461
  }
439
462
  //#endregion
440
463
  //#region ../types/src/clone.ts
441
- function ge(e) {
464
+ function B(e) {
442
465
  let t = /* @__PURE__ */ new WeakSet();
443
466
  return JSON.parse(JSON.stringify(e, (e, n) => {
444
467
  if (typeof n == "object" && n) {
@@ -449,9 +472,86 @@ function ge(e) {
449
472
  }));
450
473
  }
451
474
  //#endregion
475
+ //#region ../types/src/layout.ts
476
+ var V = "[Templatical] layout: must contain exactly one slot block", H = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ce = "[Templatical] layout: a wrapper cannot contain a wrapper", we = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Te = "[Templatical] slot is not a valid content block", Ee = "[Templatical] wrapper is not a valid content block";
477
+ function U(e, t, n = null, i = !1) {
478
+ for (let a of e) if (t(a, n, i), r(a)) for (let e of a.children) U(e, t, a, !0);
479
+ else p(a) && U(a.children, t, a, i);
480
+ }
481
+ function W(e) {
482
+ let t = 0;
483
+ if (U(e.blocks, (e, n, r) => {
484
+ if (f(e) && (t += 1, r)) throw Error(H);
485
+ if (p(e)) {
486
+ if (r) throw Error(H);
487
+ if (e.children.some(p)) throw Error(Ce);
488
+ }
489
+ }), t !== 1) throw Error(V);
490
+ }
491
+ function G(e) {
492
+ U(e.blocks, (e) => {
493
+ if (f(e)) throw Error(Te);
494
+ });
495
+ }
496
+ function K(e) {
497
+ U(e.blocks, (e) => {
498
+ if (p(e)) throw Error(Ee);
499
+ });
500
+ }
501
+ function q(e) {
502
+ let t = !1;
503
+ return U(e.blocks, (e, n) => {
504
+ f(e) && n !== null && p(n) && (t = !0);
505
+ }), t;
506
+ }
507
+ function De(e) {
508
+ if (f(e)) return e;
509
+ if (p(e)) {
510
+ let t = z({
511
+ ...e,
512
+ children: []
513
+ });
514
+ return t.children = e.children.map(De), t;
515
+ }
516
+ return z(e);
517
+ }
518
+ function Oe(e) {
519
+ for (let t = 0; t < e.length; t++) {
520
+ let n = e[t];
521
+ if (f(n)) return {
522
+ parent: e,
523
+ index: t
524
+ };
525
+ if (p(n)) {
526
+ let e = Oe(n.children);
527
+ if (e) return e;
528
+ }
529
+ }
530
+ return null;
531
+ }
532
+ function ke(e) {
533
+ for (let t of e) if (r(t)) {
534
+ if (t.wrapper) return !0;
535
+ for (let e of t.children) if (ke(e)) return !0;
536
+ }
537
+ return !1;
538
+ }
539
+ function Ae(e, t) {
540
+ if (W(e), G(t), K(t), q(e) && ke(t.blocks)) throw Error(we);
541
+ let n = e.blocks.map(De), r = Oe(n);
542
+ if (!r) throw Error(V);
543
+ return r.parent.splice(r.index, 1, ...B(t.blocks)), {
544
+ blocks: n,
545
+ settings: {
546
+ ...B(t.settings),
547
+ backgroundColor: e.settings.backgroundColor
548
+ }
549
+ };
550
+ }
551
+ //#endregion
452
552
  //#region ../types/src/html-scan.ts
453
- var U = /* @__PURE__ */ new Set(["\"", "'"]);
454
- function W(e, t) {
553
+ var je = /* @__PURE__ */ new Set(["\"", "'"]);
554
+ function Me(e, t) {
455
555
  let n = null;
456
556
  for (let r = t; r < e.length; r++) {
457
557
  let t = e[r];
@@ -459,7 +559,7 @@ function W(e, t) {
459
559
  t === n && (n = null);
460
560
  continue;
461
561
  }
462
- if (U.has(t)) {
562
+ if (je.has(t)) {
463
563
  n = t;
464
564
  continue;
465
565
  }
@@ -467,13 +567,13 @@ function W(e, t) {
467
567
  }
468
568
  return -1;
469
569
  }
470
- function _e(e) {
570
+ function Ne(e) {
471
571
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
472
572
  }
473
- function G(e) {
573
+ function J(e) {
474
574
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
475
575
  }
476
- var ve = {
576
+ var Pe = {
477
577
  amp: "&",
478
578
  lt: "<",
479
579
  gt: ">",
@@ -481,47 +581,47 @@ var ve = {
481
581
  apos: "'",
482
582
  nbsp: "\xA0"
483
583
  };
484
- function K(e) {
584
+ function Fe(e) {
485
585
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
486
586
  if (t[0] === "#") {
487
587
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
488
588
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
489
589
  }
490
- return ve[t.toLowerCase()] ?? e;
590
+ return Pe[t.toLowerCase()] ?? e;
491
591
  }) : e;
492
592
  }
493
- function q(e, t) {
593
+ function Ie(e, t) {
494
594
  let n = t.toLowerCase(), r = 0;
495
595
  for (; r < e.length;) {
496
- for (; r < e.length && (G(e[r]) || e[r] === "/");) r++;
596
+ for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
497
597
  if (r >= e.length) break;
498
598
  let t = r;
499
- for (; r < e.length && _e(e[r]);) r++;
599
+ for (; r < e.length && Ne(e[r]);) r++;
500
600
  let i = e.substring(t, r).toLowerCase();
501
601
  if (i === "") {
502
602
  r++;
503
603
  continue;
504
604
  }
505
- for (; r < e.length && G(e[r]);) r++;
605
+ for (; r < e.length && J(e[r]);) r++;
506
606
  if (e[r] !== "=") continue;
507
- for (r++; r < e.length && G(e[r]);) r++;
607
+ for (r++; r < e.length && J(e[r]);) r++;
508
608
  let a = e[r];
509
- if (U.has(a)) {
609
+ if (je.has(a)) {
510
610
  let t = r + 1, o = e.indexOf(a, t);
511
611
  if (o === -1) return null;
512
- if (i === n) return K(e.substring(t, o));
612
+ if (i === n) return Fe(e.substring(t, o));
513
613
  r = o + 1;
514
614
  continue;
515
615
  }
516
616
  let o = r;
517
- for (; r < e.length && !G(e[r]) && e[r] !== ">";) r++;
518
- if (i === n) return K(e.substring(o, r));
617
+ for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
618
+ if (i === n) return Fe(e.substring(o, r));
519
619
  }
520
620
  return null;
521
621
  }
522
622
  //#endregion
523
623
  //#region ../types/src/merge-tags.ts
524
- var J = {
624
+ var Y = {
525
625
  liquid: {
526
626
  value: /\{\{.+?\}\}/g,
527
627
  logic: /\{%-?\s*(\w+).*?-?%\}/g
@@ -538,75 +638,75 @@ var J = {
538
638
  value: /%%=.+?=%%/g,
539
639
  logic: /%%\[\s*(\w+).*?\]%%/g
540
640
  }
541
- }, ye = {
641
+ }, Le = {
542
642
  liquid: "{{",
543
643
  handlebars: "{{",
544
644
  mailchimp: "*|",
545
645
  ampscript: "%%="
546
- }, be = {
646
+ }, Re = {
547
647
  liquid: "}}",
548
648
  handlebars: "}}",
549
649
  mailchimp: "|*",
550
650
  ampscript: "=%%"
551
651
  };
552
- function xe(e) {
553
- for (let t of Object.keys(J)) if (J[t].value.source === e.value.source) return ye[t];
652
+ function ze(e) {
653
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Le[t];
554
654
  return null;
555
655
  }
556
- function Se(e) {
557
- for (let t of Object.keys(J)) if (J[t].value.source === e.value.source) return be[t];
656
+ function Be(e) {
657
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Re[t];
558
658
  return null;
559
659
  }
560
- function Ce(e) {
561
- return e ? typeof e == "string" ? J[e] ?? J.liquid : e : J.liquid;
660
+ function Ve(e) {
661
+ return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
562
662
  }
563
- function Y(e) {
663
+ function X(e) {
564
664
  let t = e.source, n = e.flags.replace("g", "");
565
665
  return RegExp(`^${t}$`, n);
566
666
  }
567
- function we(e, t) {
667
+ function He(e, t) {
568
668
  let n = e?.trim() || "";
569
- return !Y(t.logic).test(n) && Y(t.value).test(n);
669
+ return !X(t.logic).test(n) && X(t.value).test(n);
570
670
  }
571
- function X(e, t) {
671
+ function Z(e, t) {
572
672
  let n = t.find((t) => t.value === e);
573
673
  return n ? n.label : e;
574
674
  }
575
- function Te(e, t) {
576
- return $(e, "data-merge-tag", (e) => X(e, t));
675
+ function Ue(e, t) {
676
+ return $(e, "data-merge-tag", (e) => Z(e, t));
577
677
  }
578
- function Z(e, t) {
678
+ function Q(e, t) {
579
679
  return t.find((t) => t.value === e)?.sample;
580
680
  }
581
- function Ee(e, t) {
582
- return $(e, "data-merge-tag", (e) => ke(Z(e, t) ?? X(e, t)), { unwrap: (e) => Z(e, t) !== void 0 });
681
+ function We(e, t) {
682
+ return $(e, "data-merge-tag", (e) => qe(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
583
683
  }
584
- function De(e) {
684
+ function Ge(e) {
585
685
  return e.some((e) => e.sample !== void 0);
586
686
  }
587
- function Oe(e, t) {
687
+ function Ke(e, t) {
588
688
  if (!e) return e;
589
689
  let n = e;
590
690
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
591
691
  return n;
592
692
  }
593
- function ke(e) {
693
+ function qe(e) {
594
694
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
595
695
  }
596
- function Ae(e, t) {
696
+ function Je(e, t) {
597
697
  if (!e) return !1;
598
698
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
599
699
  return n.test(e) || r.test(e);
600
700
  }
601
- function je(e, t) {
602
- return Y(t.logic).test(e?.trim() || "");
701
+ function Ye(e, t) {
702
+ return X(t.logic).test(e?.trim() || "");
603
703
  }
604
- function Q(e, t) {
704
+ function Xe(e, t) {
605
705
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
606
706
  return r && r[1] ? r[1].toUpperCase() : e;
607
707
  }
608
- function Me(e, t) {
609
- return $(e, "data-logic-merge-tag", (e) => Q(e, t));
708
+ function Ze(e, t) {
709
+ return $(e, "data-logic-merge-tag", (e) => Xe(e, t));
610
710
  }
611
711
  function $(e, t, n, r) {
612
712
  let i = "", a = 0;
@@ -621,7 +721,7 @@ function $(e, t, n, r) {
621
721
  i += e.substring(a, o + 5), a = o + 5;
622
722
  continue;
623
723
  }
624
- let c = W(e, o + 5);
724
+ let c = Me(e, o + 5);
625
725
  if (c === -1) {
626
726
  i += e.substring(a);
627
727
  break;
@@ -631,7 +731,7 @@ function $(e, t, n, r) {
631
731
  i += e.substring(a);
632
732
  break;
633
733
  }
634
- let u = q(e.substring(o + 5, c), t);
734
+ let u = Ie(e.substring(o + 5, c), t);
635
735
  if (u === null) {
636
736
  i += e.substring(a, o + 5), a = o + 5;
637
737
  continue;
@@ -643,12 +743,12 @@ function $(e, t, n, r) {
643
743
  }
644
744
  //#endregion
645
745
  //#region ../types/src/preview-resolution.ts
646
- function Ne(e) {
746
+ function Qe(e) {
647
747
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
648
748
  }
649
749
  //#endregion
650
750
  //#region ../types/src/config.ts
651
- var Pe = class extends Error {
751
+ var $e = class extends Error {
652
752
  statusCode;
653
753
  constructor(e, t) {
654
754
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -664,6 +764,6 @@ var Pe = class extends Error {
664
764
  }
665
765
  };
666
766
  //#endregion
667
- export { ne as $, j as A, ae as B, N as C, de as D, P as E, A as F, c as G, E as H, I, te as J, ee as K, O as L, L as M, R as N, M as O, B as P, d as Q, le as R, he as S, me as T, s as U, w as V, re as W, r as X, a as Y, u as Z, Oe as _, Q as a, ge as b, Se as c, je as d, i as et, we as f, Ee as g, Ce as h, Ae as i, t as it, F as j, z as k, xe as l, Te as m, Ne as n, n as nt, X as o, Me as p, o as q, J as r, e as rt, Z as s, Pe as t, l as tt, De as u, W as v, V as w, H as x, q as y, oe as z };
767
+ export { ee as $, ye as A, L as B, q as C, Se as D, z as E, D as F, he as G, M as H, j as I, b as J, fe as K, be as L, F as M, O as N, k as O, I as P, c as Q, N as R, K as S, B as T, xe as U, E as V, w as W, s as X, S as Y, re as Z, Ke as _, Xe as a, u as at, Ae as b, Be as c, i as ct, Ye as d, n as dt, o as et, He as f, e as ft, We as g, Ve as h, Je as i, f as it, A as j, R as k, ze as l, l as lt, Ue as m, Qe as n, a as nt, Z as o, d as ot, Ze as p, t as pt, de as q, Y as r, r as rt, Q as s, ne as st, $e as t, te as tt, Ge as u, p as ut, Me as v, W as w, G as x, Ie as y, P as z };
668
768
 
669
- //# sourceMappingURL=src-Dwgq7hf4.js.map
769
+ //# sourceMappingURL=src-DveVYoWS.js.map