@templatical/editor 0.25.2 → 0.26.1

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 (179) hide show
  1. package/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
  2. package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
  3. package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
  5. package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
  6. package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
  7. package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
  8. package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
  9. package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
  11. package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
  12. package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
  13. package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
  14. package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
  15. package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
  16. package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
  17. package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
  18. package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
  19. package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
  20. package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
  21. package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
  22. package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
  23. package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
  24. package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
  25. package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
  26. package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
  27. package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
  28. package/dist/bundle-stats.json +6 -6
  29. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
  30. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
  31. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
  32. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
  33. package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
  34. package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
  38. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
  39. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
  40. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
  41. package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
  42. package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
  43. package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
  44. package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
  45. package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
  46. package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
  47. package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
  48. package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
  49. package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
  50. package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
  51. package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
  52. package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
  53. package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
  54. package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
  55. package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
  56. package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
  57. package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
  58. package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
  59. package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
  60. package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
  61. package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
  62. package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
  63. package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
  64. package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
  65. package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
  66. package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
  70. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
  73. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
  74. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
  75. package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
  76. package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
  77. package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
  78. package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
  79. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
  80. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
  81. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
  82. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
  83. package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
  84. package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
  85. package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
  86. package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
  88. package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
  89. package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
  90. package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
  91. package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
  92. package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
  93. package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
  94. package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
  95. package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
  96. package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
  97. package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
  98. package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
  99. package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
  100. package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
  101. package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
  102. package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
  103. package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
  104. package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
  105. package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
  106. package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
  107. package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
  108. package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
  109. package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
  110. package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
  111. package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
  112. package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
  113. package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
  114. package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
  115. package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
  116. package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
  117. package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
  118. package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
  119. package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
  120. package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
  121. package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
  122. package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
  123. package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
  124. package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
  125. package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
  126. package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
  127. package/dist/cdn/editor.js +47 -47
  128. package/dist/cdn/editor.js.map +1 -1
  129. package/dist/{check-COV27dGb.js → check-On4TSac-.js} +1 -1
  130. package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
  131. package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
  132. package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
  133. package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
  134. package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
  135. package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
  136. package/dist/dist-6YJAWMuf.js +5 -0
  137. package/dist/dist-8vlm9kfO.js +5 -0
  138. package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
  139. package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
  140. package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
  141. package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
  142. package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
  143. package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
  144. package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
  145. package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
  146. package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
  147. package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
  148. package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
  149. package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
  150. package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
  151. package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
  152. package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
  153. package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
  154. package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
  155. package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
  156. package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
  157. package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
  158. package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
  159. package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
  160. package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
  161. package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
  162. package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
  163. package/dist/templatical-editor.js +9 -9
  164. package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
  165. package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
  166. package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
  167. package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
  168. package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
  169. package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
  170. package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
  171. package/package.json +23 -23
  172. package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
  173. package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
  174. package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
  175. package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
  176. package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
  177. package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
  178. package/dist/dist-B56SufAv.js +0 -5
  179. package/dist/dist-BQZkRg05.js +0 -5
@@ -98,7 +98,8 @@ var r = {
98
98
  right: 24,
99
99
  bottom: 12,
100
100
  left: 24
101
- }
101
+ },
102
+ align: "center"
102
103
  }, s = {
103
104
  lineStyle: "solid",
104
105
  color: "#e0e0e0",
@@ -299,7 +300,7 @@ function P(e = {}) {
299
300
  styles: C()
300
301
  }, e);
301
302
  }
302
- function F(e, t) {
303
+ function te(e, t) {
303
304
  return Array.from({ length: t }, () => ({
304
305
  id: S(),
305
306
  cells: Array.from({ length: e }, () => ({
@@ -308,16 +309,16 @@ function F(e, t) {
308
309
  }))
309
310
  }));
310
311
  }
311
- function I(e = {}) {
312
+ function F(e = {}) {
312
313
  return x({
313
314
  id: S(),
314
315
  type: "table",
315
- rows: F(3, 3),
316
+ rows: te(3, 3),
316
317
  ...m,
317
318
  styles: C()
318
319
  }, e);
319
320
  }
320
- function L(e = {}) {
321
+ function I(e = {}) {
321
322
  return x({
322
323
  id: S(),
323
324
  type: "countdown",
@@ -325,12 +326,12 @@ function L(e = {}) {
325
326
  styles: C()
326
327
  }, e);
327
328
  }
328
- function te(e) {
329
+ function ne(e) {
329
330
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
330
331
  }
331
- function ne(e) {
332
+ function re(e) {
332
333
  let t = {};
333
- for (let n of e.fields) t[n.key] = te(n);
334
+ for (let n of e.fields) t[n.key] = ne(n);
334
335
  let n = x(C(), e.defaultStyles);
335
336
  return {
336
337
  id: S(),
@@ -341,7 +342,7 @@ function ne(e) {
341
342
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
342
343
  };
343
344
  }
344
- function re(e, t) {
345
+ function ie(e, t) {
345
346
  switch (e) {
346
347
  case "section": return k(t?.section);
347
348
  case "title": return w(t?.title);
@@ -354,16 +355,16 @@ function re(e, t) {
354
355
  case "spacer": return M(t?.spacer);
355
356
  case "html": return N(t?.html);
356
357
  case "menu": return P(t?.menu);
357
- case "table": return I(t?.table);
358
- case "countdown": return L(t?.countdown);
358
+ case "table": return F(t?.table);
359
+ case "countdown": return I(t?.countdown);
359
360
  default: throw Error(`Unknown block type: ${e}`);
360
361
  }
361
362
  }
362
- function R(e) {
363
+ function L(e) {
363
364
  let t = JSON.parse(JSON.stringify(e));
364
- return t.id = S(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => R(e)))), t;
365
+ return t.id = S(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => L(e)))), t;
365
366
  }
366
- function z(e) {
367
+ function ae(e) {
367
368
  let t = /* @__PURE__ */ new WeakSet();
368
369
  return JSON.parse(JSON.stringify(e, (e, n) => {
369
370
  if (typeof n == "object" && n) {
@@ -373,7 +374,59 @@ function z(e) {
373
374
  return n;
374
375
  }));
375
376
  }
376
- var B = {
377
+ var R = /* @__PURE__ */ new Set(["\"", "'"]);
378
+ function z(e, t) {
379
+ let n = null;
380
+ for (let r = t; r < e.length; r++) {
381
+ let t = e[r];
382
+ if (n !== null) {
383
+ t === n && (n = null);
384
+ continue;
385
+ }
386
+ if (R.has(t)) {
387
+ n = t;
388
+ continue;
389
+ }
390
+ if (t === ">") return r;
391
+ }
392
+ return -1;
393
+ }
394
+ function B(e) {
395
+ return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
396
+ }
397
+ function V(e) {
398
+ return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
399
+ }
400
+ function H(e, t) {
401
+ let n = t.toLowerCase(), r = 0;
402
+ for (; r < e.length;) {
403
+ for (; r < e.length && (V(e[r]) || e[r] === "/");) r++;
404
+ if (r >= e.length) break;
405
+ let t = r;
406
+ for (; r < e.length && B(e[r]);) r++;
407
+ let i = e.substring(t, r).toLowerCase();
408
+ if (i === "") {
409
+ r++;
410
+ continue;
411
+ }
412
+ for (; r < e.length && V(e[r]);) r++;
413
+ if (e[r] !== "=") continue;
414
+ for (r++; r < e.length && V(e[r]);) r++;
415
+ let a = e[r];
416
+ if (R.has(a)) {
417
+ let t = r + 1, o = e.indexOf(a, t);
418
+ if (o === -1) return null;
419
+ if (i === n) return e.substring(t, o);
420
+ r = o + 1;
421
+ continue;
422
+ }
423
+ let o = r;
424
+ for (; r < e.length && !V(e[r]) && e[r] !== ">";) r++;
425
+ if (i === n) return e.substring(o, r);
426
+ }
427
+ return null;
428
+ }
429
+ var U = {
377
430
  liquid: {
378
431
  value: /\{\{.+?\}\}/g,
379
432
  logic: /\{%-?\s*(\w+).*?-?%\}/g
@@ -390,115 +443,115 @@ var B = {
390
443
  value: /%%=.+?=%%/g,
391
444
  logic: /%%\[\s*(\w+).*?\]%%/g
392
445
  }
393
- }, V = {
446
+ }, W = {
394
447
  liquid: "{{",
395
448
  handlebars: "{{",
396
449
  mailchimp: "*|",
397
450
  ampscript: "%%="
398
- }, H = {
451
+ }, G = {
399
452
  liquid: "}}",
400
453
  handlebars: "}}",
401
454
  mailchimp: "|*",
402
455
  ampscript: "=%%"
403
456
  };
404
- function U(e) {
405
- for (let t of Object.keys(B)) if (B[t].value.source === e.value.source) return V[t];
457
+ function K(e) {
458
+ for (let t of Object.keys(U)) if (U[t].value.source === e.value.source) return W[t];
406
459
  return null;
407
460
  }
408
- function W(e) {
409
- for (let t of Object.keys(B)) if (B[t].value.source === e.value.source) return H[t];
461
+ function q(e) {
462
+ for (let t of Object.keys(U)) if (U[t].value.source === e.value.source) return G[t];
410
463
  return null;
411
464
  }
412
- function G(e) {
413
- return e ? typeof e == "string" ? B[e] ?? B.liquid : e : B.liquid;
465
+ function oe(e) {
466
+ return e ? typeof e == "string" ? U[e] ?? U.liquid : e : U.liquid;
414
467
  }
415
- function K(e) {
468
+ function J(e) {
416
469
  let t = e.source, n = e.flags.replace("g", "");
417
470
  return RegExp(`^${t}$`, n);
418
471
  }
419
- function q(e, t) {
472
+ function se(e, t) {
420
473
  let n = e?.trim() || "";
421
- return !K(t.logic).test(n) && K(t.value).test(n);
474
+ return !J(t.logic).test(n) && J(t.value).test(n);
422
475
  }
423
- function J(e, t) {
476
+ function Y(e, t) {
424
477
  let n = t.find((t) => t.value === e);
425
478
  return n ? n.label : e;
426
479
  }
427
- function Y(e, t) {
428
- return $(e, "data-merge-tag", (e) => J(e, t));
480
+ function ce(e, t) {
481
+ return $(e, "data-merge-tag", (e) => Y(e, t));
429
482
  }
430
483
  function X(e, t) {
431
484
  return t.find((t) => t.value === e)?.sample;
432
485
  }
433
- function ie(e, t) {
434
- return $(e, "data-merge-tag", (e) => se(X(e, t) ?? J(e, t)), { unwrap: (e) => X(e, t) !== void 0 });
486
+ function Z(e, t) {
487
+ return $(e, "data-merge-tag", (e) => de(X(e, t) ?? Y(e, t)), { unwrap: (e) => X(e, t) !== void 0 });
435
488
  }
436
- function ae(e) {
489
+ function le(e) {
437
490
  return e.some((e) => e.sample !== void 0);
438
491
  }
439
- function oe(e, t) {
492
+ function ue(e, t) {
440
493
  if (!e) return e;
441
494
  let n = e;
442
495
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
443
496
  return n;
444
497
  }
445
- function se(e) {
498
+ function de(e) {
446
499
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
447
500
  }
448
- function ce(e, t) {
501
+ function fe(e, t) {
449
502
  if (!e) return !1;
450
503
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
451
504
  return n.test(e) || r.test(e);
452
505
  }
453
- function Z(e, t) {
454
- return K(t.logic).test(e?.trim() || "");
506
+ function pe(e, t) {
507
+ return J(t.logic).test(e?.trim() || "");
455
508
  }
456
509
  function Q(e, t) {
457
510
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
458
511
  return r && r[1] ? r[1].toUpperCase() : e;
459
512
  }
460
- function le(e, t) {
513
+ function me(e, t) {
461
514
  return $(e, "data-logic-merge-tag", (e) => Q(e, t));
462
515
  }
463
516
  function $(e, t, n, r) {
464
- let i = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`), a = "", o = 0;
465
- for (; o < e.length;) {
466
- let t = e.indexOf("<span", o);
467
- if (t === -1) {
468
- a += e.substring(o);
517
+ let i = "", a = 0;
518
+ for (; a < e.length;) {
519
+ let o = e.indexOf("<span", a);
520
+ if (o === -1) {
521
+ i += e.substring(a);
469
522
  break;
470
523
  }
471
- let s = e[t + 5];
524
+ let s = e[o + 5];
472
525
  if (s !== ">" && s !== " " && s !== " " && s !== "\n" && s !== "\r" && s !== "/") {
473
- a += e.substring(o, t + 5), o = t + 5;
526
+ i += e.substring(a, o + 5), a = o + 5;
474
527
  continue;
475
528
  }
476
- let c = e.indexOf(">", t + 5);
529
+ let c = z(e, o + 5);
477
530
  if (c === -1) {
478
- a += e.substring(o);
531
+ i += e.substring(a);
479
532
  break;
480
533
  }
481
534
  let l = e.indexOf("</span>", c + 1);
482
535
  if (l === -1) {
483
- a += e.substring(o);
536
+ i += e.substring(a);
484
537
  break;
485
538
  }
486
- let u = e.substring(t + 5, c), d = i.exec(u);
487
- if (!d) {
488
- a += e.substring(o, t + 5), o = t + 5;
539
+ let u = H(e.substring(o + 5, c), t);
540
+ if (u === null) {
541
+ i += e.substring(a, o + 5), a = o + 5;
489
542
  continue;
490
543
  }
491
- let f = d[1], p = n(f);
492
- r?.unwrap?.(f) ? (a += e.substring(o, t), a += p) : (a += e.substring(o, c + 1), a += p, a += "</span>"), o = l + 7;
544
+ let d = n(u);
545
+ r?.unwrap?.(u) ? (i += e.substring(a, o), i += d) : (i += e.substring(a, c + 1), i += d, i += "</span>"), a = l + 7;
493
546
  }
494
- return a;
547
+ return i;
495
548
  }
496
- function ue(e) {
549
+ function he(e) {
497
550
  if (typeof e != "object" || !e) return !1;
498
551
  let t = e;
499
552
  return Array.isArray(t.blocks);
500
553
  }
501
- var de = class extends Error {
554
+ var ge = class extends Error {
502
555
  statusCode;
503
556
  constructor(e, t) {
504
557
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -514,4 +567,4 @@ var de = class extends Error {
514
567
  }
515
568
  };
516
569
  //#endregion
517
- export { U as A, ie as B, w as C, J as D, Q as E, ue as F, le as I, Y as L, n as M, Z as N, X as O, q as P, G as R, I as S, S as T, oe as V, P as _, B as a, j as b, ce as c, L as d, ne as f, E as g, N as h, t as i, ae as j, W as k, re as l, O as m, _ as n, de as o, b as p, e as r, R as s, g as t, D as u, T as v, A as w, M as x, k as y, z };
570
+ export { K as A, Z as B, w as C, Y as D, Q as E, he as F, me as I, ce as L, n as M, pe as N, X as O, se as P, oe as R, F as S, S as T, ue as V, P as _, U as a, j as b, fe as c, I as d, re as f, E as g, N as h, t as i, le as j, q as k, ie as l, O as m, _ as n, ge as o, b as p, e as r, L as s, g as t, D as u, T as v, A as w, M as x, k as y, ae as z };
@@ -1,6 +1,6 @@
1
- import { Ut as e, Wt as t, c as n, ft as r, qt as i } from "./dist-CHxPjcxA.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.29.2_@tiptap+core@3.29.2_@tiptap+pm@3.29.2_/node_modules/@tiptap/extension-highlight/dist/index.js
3
- var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, s = n.create({
1
+ import { bt as e, f as t, fn as n, gn as r, pn as i } from "./dist-ChYLhoJ4.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1_/node_modules/@tiptap/extension-highlight/dist/index.js
3
+ var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, s = t.create({
4
4
  name: "highlight",
5
5
  addOptions() {
6
6
  return {
@@ -11,7 +11,7 @@ var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==
11
11
  addAttributes() {
12
12
  return this.options.multicolor ? { color: {
13
13
  default: null,
14
- parseHTML: (e) => e.getAttribute("data-color") || r(e, "background-color") || e.style.backgroundColor,
14
+ parseHTML: (t) => t.getAttribute("data-color") || e(t, "background-color") || t.style.backgroundColor,
15
15
  renderHTML: (e) => e.color ? {
16
16
  "data-color": e.color,
17
17
  style: `background-color: ${e.color}; color: inherit`
@@ -24,7 +24,7 @@ var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==
24
24
  renderHTML({ HTMLAttributes: e }) {
25
25
  return [
26
26
  "mark",
27
- i(this.options.HTMLAttributes, e),
27
+ r(this.options.HTMLAttributes, e),
28
28
  0
29
29
  ];
30
30
  },
@@ -58,13 +58,13 @@ var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==
58
58
  return { "Mod-Shift-h": () => this.editor.commands.toggleHighlight() };
59
59
  },
60
60
  addInputRules() {
61
- return [e({
61
+ return [n({
62
62
  find: a,
63
63
  type: this.type
64
64
  })];
65
65
  },
66
66
  addPasteRules() {
67
- return [t({
67
+ return [i({
68
68
  find: o,
69
69
  type: this.type
70
70
  })];
@@ -1,5 +1,5 @@
1
- import { c as e, ft as t, i as n, qt as r } from "./dist-CHxPjcxA.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.29.2_@tiptap+core@3.29.2_@tiptap+pm@3.29.2_/node_modules/@tiptap/extension-text-style/dist/index.js
1
+ import { bt as e, f as t, gn as n, s as r } from "./dist-ChYLhoJ4.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1_/node_modules/@tiptap/extension-text-style/dist/index.js
3
3
  var i = 20, a = (e, t = 0) => {
4
4
  let n = [];
5
5
  return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
@@ -12,7 +12,7 @@ var i = 20, a = (e, t = 0) => {
12
12
  let t = e.getAttribute("style"), n = (e.parentElement?.closest("span"))?.getAttribute("style");
13
13
  e.setAttribute("style", `${n};${t}`);
14
14
  });
15
- }, s = e.create({
15
+ }, s = t.create({
16
16
  name: "textStyle",
17
17
  priority: 101,
18
18
  addOptions() {
@@ -31,7 +31,7 @@ var i = 20, a = (e, t = 0) => {
31
31
  renderHTML({ HTMLAttributes: e }) {
32
32
  return [
33
33
  "span",
34
- r(this.options.HTMLAttributes, e),
34
+ n(this.options.HTMLAttributes, e),
35
35
  0
36
36
  ];
37
37
  },
@@ -47,7 +47,7 @@ var i = 20, a = (e, t = 0) => {
47
47
  }
48
48
  };
49
49
  }
50
- }), c = n.create({
50
+ }), c = r.create({
51
51
  name: "backgroundColor",
52
52
  addOptions() {
53
53
  return { types: ["textStyle"] };
@@ -57,7 +57,7 @@ var i = 20, a = (e, t = 0) => {
57
57
  types: this.options.types,
58
58
  attributes: { backgroundColor: {
59
59
  default: null,
60
- parseHTML: (e) => (t(e, "background-color") ?? e.style.backgroundColor)?.replace(/['"]+/g, ""),
60
+ parseHTML: (t) => (e(t, "background-color") ?? t.style.backgroundColor)?.replace(/['"]+/g, ""),
61
61
  renderHTML: (e) => e.backgroundColor ? { style: `background-color: ${e.backgroundColor}` } : {}
62
62
  } }
63
63
  }];
@@ -68,7 +68,7 @@ var i = 20, a = (e, t = 0) => {
68
68
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
69
69
  };
70
70
  }
71
- }), l = n.create({
71
+ }), l = r.create({
72
72
  name: "color",
73
73
  addOptions() {
74
74
  return { types: ["textStyle"] };
@@ -78,7 +78,7 @@ var i = 20, a = (e, t = 0) => {
78
78
  types: this.options.types,
79
79
  attributes: { color: {
80
80
  default: null,
81
- parseHTML: (e) => (t(e, "color") ?? e.style.color)?.replace(/['"]+/g, ""),
81
+ parseHTML: (t) => (e(t, "color") ?? t.style.color)?.replace(/['"]+/g, ""),
82
82
  renderHTML: (e) => e.color ? { style: `color: ${e.color}` } : {}
83
83
  } }
84
84
  }];
@@ -89,7 +89,7 @@ var i = 20, a = (e, t = 0) => {
89
89
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
90
90
  };
91
91
  }
92
- }), u = n.create({
92
+ }), u = r.create({
93
93
  name: "fontFamily",
94
94
  addOptions() {
95
95
  return { types: ["textStyle"] };
@@ -99,7 +99,7 @@ var i = 20, a = (e, t = 0) => {
99
99
  types: this.options.types,
100
100
  attributes: { fontFamily: {
101
101
  default: null,
102
- parseHTML: (e) => t(e, "font-family") ?? e.style.fontFamily,
102
+ parseHTML: (t) => e(t, "font-family") ?? t.style.fontFamily,
103
103
  renderHTML: (e) => e.fontFamily ? { style: `font-family: ${e.fontFamily}` } : {}
104
104
  } }
105
105
  }];
@@ -110,7 +110,7 @@ var i = 20, a = (e, t = 0) => {
110
110
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
111
111
  };
112
112
  }
113
- }), d = n.create({
113
+ }), d = r.create({
114
114
  name: "fontSize",
115
115
  addOptions() {
116
116
  return { types: ["textStyle"] };
@@ -120,7 +120,7 @@ var i = 20, a = (e, t = 0) => {
120
120
  types: this.options.types,
121
121
  attributes: { fontSize: {
122
122
  default: null,
123
- parseHTML: (e) => t(e, "font-size") ?? e.style.fontSize,
123
+ parseHTML: (t) => e(t, "font-size") ?? t.style.fontSize,
124
124
  renderHTML: (e) => e.fontSize ? { style: `font-size: ${e.fontSize}` } : {}
125
125
  } }
126
126
  }];
@@ -131,7 +131,7 @@ var i = 20, a = (e, t = 0) => {
131
131
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
132
132
  };
133
133
  }
134
- }), f = n.create({
134
+ }), f = r.create({
135
135
  name: "lineHeight",
136
136
  addOptions() {
137
137
  return { types: ["textStyle"] };
@@ -141,7 +141,7 @@ var i = 20, a = (e, t = 0) => {
141
141
  types: this.options.types,
142
142
  attributes: { lineHeight: {
143
143
  default: null,
144
- parseHTML: (e) => t(e, "line-height") ?? e.style.lineHeight,
144
+ parseHTML: (t) => e(t, "line-height") ?? t.style.lineHeight,
145
145
  renderHTML: (e) => e.lineHeight ? { style: `line-height: ${e.lineHeight}` } : {}
146
146
  } }
147
147
  }];
@@ -152,7 +152,7 @@ var i = 20, a = (e, t = 0) => {
152
152
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
153
153
  };
154
154
  }
155
- }), p = n.create({
155
+ }), p = r.create({
156
156
  name: "textStyleKit",
157
157
  addExtensions() {
158
158
  let e = [];
@@ -1,5 +1,5 @@
1
- import { c as e, qt as t } from "./dist-CHxPjcxA.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.29.2_@tiptap+core@3.29.2_@tiptap+pm@3.29.2__@tiptap+pm@3.29.2/node_modules/@tiptap/extension-superscript/dist/index.js
1
+ import { f as e, gn as t } from "./dist-ChYLhoJ4.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tiptap+pm@3.30.1/node_modules/@tiptap/extension-superscript/dist/index.js
3
3
  var n = e.create({
4
4
  name: "superscript",
5
5
  addOptions() {