@templatical/editor 0.56.0 → 0.56.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 (171) hide show
  1. package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
  2. package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
  3. package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
  4. package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
  5. package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
  6. package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
  7. package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
  8. package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
  9. package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
  10. package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
  11. package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
  12. package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
  13. package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
  14. package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
  15. package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
  16. package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
  17. package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
  18. package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
  19. package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
  20. package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
  21. package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
  22. package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
  23. package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
  24. package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
  25. package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
  26. package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
  27. package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
  28. package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
  29. package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
  30. package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
  31. package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
  32. package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
  33. package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
  34. package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
  35. package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
  36. package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
  37. package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
  38. package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
  39. package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
  42. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
  43. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
  44. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
  46. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
  48. package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
  50. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
  51. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
  52. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
  53. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
  54. package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
  55. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
  56. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
  58. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
  59. package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
  60. package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
  62. package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
  63. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
  64. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
  65. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
  66. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
  67. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
  68. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
  69. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
  70. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
  71. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
  72. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
  73. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
  74. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
  75. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
  76. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
  77. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
  78. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
  80. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
  82. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
  83. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
  84. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
  86. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
  88. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
  90. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
  98. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
  100. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
  104. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
  106. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
  107. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
  108. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
  110. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
  115. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
  116. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
  117. package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
  118. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
  119. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
  120. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
  121. package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
  122. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
  123. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
  124. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
  125. package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
  126. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
  127. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
  128. package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
  129. package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
  130. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
  131. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
  132. package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
  133. package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
  134. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
  135. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
  136. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
  137. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
  138. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
  139. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
  140. package/dist/cdn/editor.js +325 -325
  141. package/dist/cdn/editor.js.map +1 -1
  142. package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
  143. package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
  144. package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
  145. package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
  146. package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
  147. package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
  148. package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
  149. package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
  150. package/dist/dist-CiYotUR8.js +406 -0
  151. package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
  152. package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
  153. package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
  154. package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
  155. package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
  156. package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
  157. package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
  158. package/dist/en-Dgs_-NBw.js +1 -0
  159. package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
  160. package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
  161. package/dist/templatical-editor.js +526 -526
  162. package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
  163. package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
  164. package/package.json +7 -7
  165. package/dist/LanguageMenu-B981Av-6.js +0 -403
  166. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
  167. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
  168. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  169. package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
  170. package/dist/dist-0alKVRc_.js +0 -406
  171. package/dist/en-De3uAutQ.js +0 -1
@@ -1,13 +1,13 @@
1
- import { Ft as e, M as t, Mt as n, O as r, Pt as i, U as a, W as o, Z as s, c, ct as l, d as u, et as d, f, l as p, u as m, y as h } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
- import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
- import { D as y, Yt as b, g as x, lt as S, ut as C, yt as w } from "./dist-BMUUt3zJ.js";
4
- import { a as T, o as E, s as D } from "./LogicTagInsertButton-DEOPc4RC.js";
5
- import { t as O } from "./useI18n-zeWYtWSv.js";
6
- import { t as k } from "./useMergeTag-IoWOO679.js";
7
- import { H as A, Kn as j, Qn as M, Zn as N, _n as ee, m as P, qn as te, s as F, u as I, v as ne } from "./dist-BWflWcpW.js";
8
- import { n as re, t as ie } from "./dist-fqSers8_.js";
1
+ import { H as e, Kn as t, Qn as n, Zn as r, _n as i, m as a, qn as o, s, u as c, v as l } from "./dist-C3avsUq9.js";
2
+ import { a as u, c as d, s as f } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
+ import { Ft as p, M as m, Mt as h, O as g, Pt as _, U as v, W as y, Z as b, c as x, ct as S, d as C, et as w, f as T, l as E, u as D, y as O } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
4
+ import { t as k } from "./useI18n-zeWYtWSv.js";
5
+ import { t as A } from "./useMergeTag-B5qlq8px.js";
6
+ import { D as j, Yt as M, g as N, lt as P, ut as F, yt as I } from "./dist-BMUUt3zJ.js";
7
+ import { n as ee, t as te } from "./dist-CCLRTtJP.js";
8
+ import { a as ne, o as re, s as ie } from "./LogicTagInsertButton-BSolF7Fd.js";
9
9
  // src/extensions/FontSize.ts
10
- var ae = F.create({
10
+ var ae = s.create({
11
11
  name: "fontSize",
12
12
  addOptions() {
13
13
  return { types: ["textStyle"] };
@@ -28,7 +28,7 @@ var ae = F.create({
28
28
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
29
29
  };
30
30
  }
31
- }), oe = F.create({
31
+ }), oe = s.create({
32
32
  name: "letterSpacing",
33
33
  addOptions() {
34
34
  return { types: ["textStyle"] };
@@ -49,7 +49,7 @@ var ae = F.create({
49
49
  unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
50
50
  };
51
51
  }
52
- }), se = F.create({
52
+ }), se = s.create({
53
53
  name: "lineBoundaryKeys",
54
54
  addKeyboardShortcuts() {
55
55
  let e = (e) => ({ editor: t }) => {
@@ -63,7 +63,7 @@ var ae = F.create({
63
63
  Home: e("backward")
64
64
  };
65
65
  }
66
- }), ce = F.create({
66
+ }), ce = s.create({
67
67
  name: "lineHeight",
68
68
  addOptions() {
69
69
  return {
@@ -91,7 +91,7 @@ var ae = F.create({
91
91
  "aria-label",
92
92
  "data-tooltip",
93
93
  "onKeydown"
94
- ], ue = ["aria-label", "onKeydown"], de = ["aria-label"], fe = /* @__PURE__ */ h({
94
+ ], ue = ["aria-label", "onKeydown"], de = ["aria-label"], fe = /* @__PURE__ */ O({
95
95
  __name: "LogicMergeTagNodeView",
96
96
  props: {
97
97
  node: {},
@@ -100,64 +100,64 @@ var ae = F.create({
100
100
  deleteNode: { type: Function },
101
101
  updateAttributes: { type: Function }
102
102
  },
103
- setup(s) {
104
- let h = s, { syntax: y } = k(), { t: b } = O(), x = c(() => w(h.node.attrs.value, y)), C = c(() => S(h.node.attrs.value, y)), T = d(!1), E = d(""), D = d(null), A = !1;
105
- function j() {
106
- E.value = h.node.attrs.value, A = !1, T.value = !0, r(() => {
107
- D.value?.focus(), D.value?.select();
103
+ setup(e) {
104
+ let t = e, { syntax: n } = A(), { t: r } = k(), i = x(() => I(t.node.attrs.value, n)), a = x(() => P(t.node.attrs.value, n)), o = w(!1), s = w(""), c = w(null), l = !1;
105
+ function b() {
106
+ s.value = t.node.attrs.value, l = !1, o.value = !0, g(() => {
107
+ c.value?.focus(), c.value?.select();
108
108
  });
109
109
  }
110
- function M() {
111
- if (A) return;
112
- A = !0;
113
- let e = E.value.trim();
114
- e && e !== h.node.attrs.value && h.updateAttributes({
110
+ function O() {
111
+ if (l) return;
112
+ l = !0;
113
+ let e = s.value.trim();
114
+ e && e !== t.node.attrs.value && t.updateAttributes({
115
115
  value: e,
116
- keyword: w(e, y) ? S(e, y) : ""
117
- }), T.value = !1;
116
+ keyword: I(e, n) ? P(e, n) : ""
117
+ }), o.value = !1;
118
118
  }
119
- function N(e) {
120
- e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
119
+ function j(e) {
120
+ e.key === "Enter" ? (e.preventDefault(), O()) : e.key === "Escape" && (o.value = !1);
121
121
  }
122
- return (r, c) => (t(), m(l(ie), {
122
+ return (t, n) => (m(), D(S(te), {
123
123
  as: "span",
124
- class: n(x.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
125
- style: i(x.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
124
+ class: h(i.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
125
+ style: _(i.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
126
126
  contenteditable: "false"
127
127
  }, {
128
- default: a(() => [T.value ? o((t(), f("input", {
128
+ default: v(() => [o.value ? y((m(), T("input", {
129
129
  key: 0,
130
130
  ref_key: "inputRef",
131
- ref: D,
132
- "onUpdate:modelValue": c[0] ||= (e) => E.value = e,
131
+ ref: c,
132
+ "onUpdate:modelValue": n[0] ||= (e) => s.value = e,
133
133
  type: "text",
134
134
  class: "tpl:w-40 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:normal-case tpl:outline-none tpl:text-[var(--tpl-primary)]",
135
- onBlur: M,
136
- onKeydown: N
137
- }, null, 544)), [[g, E.value]]) : x.value ? (t(), f("span", {
135
+ onBlur: O,
136
+ onKeydown: j
137
+ }, null, 544)), [[u, s.value]]) : i.value ? (m(), T("span", {
138
138
  key: 1,
139
139
  role: "button",
140
140
  tabindex: "0",
141
- "aria-label": l(b).mergeTag.editValue,
141
+ "aria-label": S(r).mergeTag.editValue,
142
142
  class: "tpl-tooltip tpl:cursor-pointer",
143
- "data-tooltip": s.node.attrs.value,
144
- onClick: _(j, ["stop"]),
145
- onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
146
- }, e(C.value), 41, le)) : (t(), f("span", {
143
+ "data-tooltip": e.node.attrs.value,
144
+ onClick: d(b, ["stop"]),
145
+ onKeydown: [f(d(b, ["stop"]), ["enter"]), f(d(b, ["prevent", "stop"]), ["space"])]
146
+ }, p(a.value), 41, le)) : (m(), T("span", {
147
147
  key: 2,
148
148
  role: "button",
149
149
  tabindex: "0",
150
- "aria-label": l(b).mergeTag.editValue,
151
- onClick: _(j, ["stop"]),
152
- onKeydown: [v(_(j, ["stop"]), ["enter"]), v(_(j, ["prevent", "stop"]), ["space"])]
153
- }, e(s.node.attrs.value), 41, ue)), x.value ? (t(), f("button", {
150
+ "aria-label": S(r).mergeTag.editValue,
151
+ onClick: d(b, ["stop"]),
152
+ onKeydown: [f(d(b, ["stop"]), ["enter"]), f(d(b, ["prevent", "stop"]), ["space"])]
153
+ }, p(e.node.attrs.value), 41, ue)), i.value ? (m(), T("button", {
154
154
  key: 3,
155
155
  type: "button",
156
- "aria-label": l(b).mergeTag.deleteMergeTag,
156
+ "aria-label": S(r).mergeTag.deleteMergeTag,
157
157
  class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
158
158
  contenteditable: "false",
159
- onClick: c[1] ||= _((...e) => s.deleteNode && s.deleteNode(...e), ["stop", "prevent"])
160
- }, [...c[2] ||= [p("svg", {
159
+ onClick: n[1] ||= d((...t) => e.deleteNode && e.deleteNode(...t), ["stop", "prevent"])
160
+ }, [...n[2] ||= [E("svg", {
161
161
  width: "10",
162
162
  height: "10",
163
163
  viewBox: "0 0 24 24",
@@ -165,17 +165,17 @@ var ae = F.create({
165
165
  stroke: "currentColor",
166
166
  "stroke-width": "3",
167
167
  "aria-hidden": "true"
168
- }, [p("line", {
168
+ }, [E("line", {
169
169
  x1: "18",
170
170
  y1: "6",
171
171
  x2: "6",
172
172
  y2: "18"
173
- }), p("line", {
173
+ }), E("line", {
174
174
  x1: "6",
175
175
  y1: "6",
176
176
  x2: "18",
177
177
  y2: "18"
178
- })], -1)]], 8, de)) : u("", !0)]),
178
+ })], -1)]], 8, de)) : C("", !0)]),
179
179
  _: 1
180
180
  }, 8, ["class", "style"]));
181
181
  }
@@ -187,16 +187,16 @@ function pe(e, t) {
187
187
  }
188
188
  // src/extensions/renderVueNodeView.ts
189
189
  function me(e) {
190
- return re(e);
190
+ return ee(e);
191
191
  }
192
192
  // src/extensions/LogicMergeTagNode.ts
193
- var he = P.create({
193
+ var he = a.create({
194
194
  name: "logicMergeTagNode",
195
195
  group: "inline",
196
196
  inline: !0,
197
197
  atom: !0,
198
198
  addOptions() {
199
- return { syntax: x.liquid };
199
+ return { syntax: N.liquid };
200
200
  },
201
201
  addAttributes() {
202
202
  return {
@@ -216,15 +216,15 @@ var he = P.create({
216
216
  return [{ tag: "span[data-logic-merge-tag]" }];
217
217
  },
218
218
  renderHTML({ node: e, HTMLAttributes: t }) {
219
- if (!w(e.attrs.value, this.options.syntax)) return [
219
+ if (!I(e.attrs.value, this.options.syntax)) return [
220
220
  "span",
221
221
  {},
222
222
  e.attrs.value
223
223
  ];
224
- let n = S(e.attrs.value, this.options.syntax);
224
+ let n = P(e.attrs.value, this.options.syntax);
225
225
  return [
226
226
  "span",
227
- ee(t, {
227
+ i(t, {
228
228
  "data-logic-merge-tag": e.attrs.value,
229
229
  "data-keyword": n
230
230
  }),
@@ -242,12 +242,12 @@ var he = P.create({
242
242
  },
243
243
  addInputRules() {
244
244
  let e = RegExp(this.options.syntax.logic.source + "$", "");
245
- return [new I({
245
+ return [new c({
246
246
  find: e,
247
247
  handler: ({ state: e, range: t, match: n }) => {
248
248
  let r = n[0];
249
- if (!w(r, this.options.syntax)) return;
250
- let i = S(r, this.options.syntax), a = this.type.create({
249
+ if (!I(r, this.options.syntax)) return;
250
+ let i = P(r, this.options.syntax), a = this.type.create({
251
251
  value: r,
252
252
  keyword: i
253
253
  });
@@ -256,16 +256,16 @@ var he = P.create({
256
256
  })];
257
257
  },
258
258
  addPasteRules() {
259
- let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "logic").map((e) => ({
259
+ let e = this.options.syntax, t = j(e) ? (t) => M(t, e, "logic").map((e) => ({
260
260
  index: e.index,
261
261
  text: e.value
262
262
  })) : new RegExp(e.logic.source, "g");
263
- return [new ne({
263
+ return [new l({
264
264
  find: t,
265
265
  handler: ({ state: e, range: t, match: n }) => {
266
266
  let r = n[0];
267
- if (!w(r, this.options.syntax)) return;
268
- let i = S(r, this.options.syntax), a = this.type.create({
267
+ if (!I(r, this.options.syntax)) return;
268
+ let i = P(r, this.options.syntax), a = this.type.create({
269
269
  value: r,
270
270
  keyword: i
271
271
  });
@@ -277,82 +277,82 @@ var he = P.create({
277
277
  "aria-label",
278
278
  "data-tooltip",
279
279
  "onKeydown"
280
- ], ve = ["aria-label"], ye = /* @__PURE__ */ h({
280
+ ], ve = ["aria-label"], ye = /* @__PURE__ */ O({
281
281
  __name: "MergeTagNodeView",
282
282
  props: {
283
283
  node: {},
284
284
  deleteNode: { type: Function },
285
285
  updateAttributes: { type: Function }
286
286
  },
287
- setup(i) {
288
- let u = i, { getMergeTagLabel: h, getMergeTagDisplayLabel: y, findMergeTag: b, canRepickMergeTag: x, showRawValue: S, isMergeTagValue: C, requestMergeTag: w } = k(), { t: T, format: E } = O(), D = c(() => y(u.node.attrs.value, u.node.attrs.label)), A = c(() => x(u.node.attrs.value)), j = d(!1), M = d(""), N = d(null), ee = !1;
289
- s(() => {
290
- ee = !0;
287
+ setup(e) {
288
+ let t = e, { getMergeTagLabel: n, getMergeTagDisplayLabel: r, findMergeTag: i, canRepickMergeTag: a, showRawValue: o, isMergeTagValue: s, requestMergeTag: c } = A(), { t: l, format: _ } = k(), C = x(() => r(t.node.attrs.value, t.node.attrs.label)), O = x(() => a(t.node.attrs.value)), j = w(!1), M = w(""), N = w(null), P = !1;
289
+ b(() => {
290
+ P = !0;
291
291
  });
292
- let P = c(() => M.value.trim() === "" || C(M.value.trim()));
293
- async function te() {
294
- let e = await w({
292
+ let F = x(() => M.value.trim() === "" || s(M.value.trim()));
293
+ async function I() {
294
+ let e = await c({
295
295
  reason: "edit",
296
- current: b(u.node.attrs.value)
296
+ current: i(t.node.attrs.value)
297
297
  });
298
- !ee && e && u.updateAttributes({
298
+ !P && e && t.updateAttributes({
299
299
  value: e.value,
300
300
  label: e.label
301
301
  });
302
302
  }
303
- function F() {
304
- M.value = u.node.attrs.value, j.value = !0, r(() => {
303
+ function ee() {
304
+ M.value = t.node.attrs.value, j.value = !0, g(() => {
305
305
  N.value?.focus(), N.value?.select();
306
306
  });
307
307
  }
308
- function I() {
309
- A.value ? te() : F();
310
- }
311
308
  function ne() {
309
+ O.value ? I() : ee();
310
+ }
311
+ function re() {
312
312
  let e = M.value.trim();
313
- e && e !== u.node.attrs.value && C(e) && u.updateAttributes({
313
+ e && e !== t.node.attrs.value && s(e) && t.updateAttributes({
314
314
  value: e,
315
- label: h(e)
315
+ label: n(e)
316
316
  }), j.value = !1;
317
317
  }
318
- function re(e) {
318
+ function ie(e) {
319
319
  if (e.key === "Enter") {
320
- if (e.preventDefault(), !P.value) return;
321
- ne();
320
+ if (e.preventDefault(), !F.value) return;
321
+ re();
322
322
  } else e.key === "Escape" && (j.value = !1);
323
323
  }
324
- return (r, s) => (t(), m(l(ie), {
324
+ return (t, n) => (m(), D(S(te), {
325
325
  as: "span",
326
326
  class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
327
327
  style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
328
328
  contenteditable: "false"
329
329
  }, {
330
- default: a(() => [j.value ? o((t(), f("input", {
330
+ default: v(() => [j.value ? y((m(), T("input", {
331
331
  key: 0,
332
332
  ref_key: "inputRef",
333
333
  ref: N,
334
- "onUpdate:modelValue": s[0] ||= (e) => M.value = e,
334
+ "onUpdate:modelValue": n[0] ||= (e) => M.value = e,
335
335
  type: "text",
336
- "aria-invalid": P.value ? void 0 : "true",
337
- class: n(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", P.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
338
- onBlur: ne,
339
- onKeydown: re
340
- }, null, 42, ge)), [[g, M.value]]) : (t(), f("span", {
336
+ "aria-invalid": F.value ? void 0 : "true",
337
+ class: h(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", F.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
338
+ onBlur: re,
339
+ onKeydown: ie
340
+ }, null, 42, ge)), [[u, M.value]]) : (m(), T("span", {
341
341
  key: 1,
342
342
  role: "button",
343
343
  tabindex: "0",
344
- "aria-label": A.value ? l(E)(l(T).mergeTag.changeTag, { label: D.value }) : l(T).mergeTag.editValue,
345
- class: n(["tpl:cursor-pointer", l(S) ? "tpl-tooltip" : ""]),
346
- "data-tooltip": l(S) ? i.node.attrs.value : void 0,
347
- onClick: _(I, ["stop"]),
348
- onKeydown: [v(_(I, ["stop"]), ["enter"]), v(_(I, ["prevent", "stop"]), ["space"])]
349
- }, e(D.value), 43, _e)), p("button", {
344
+ "aria-label": O.value ? S(_)(S(l).mergeTag.changeTag, { label: C.value }) : S(l).mergeTag.editValue,
345
+ class: h(["tpl:cursor-pointer", S(o) ? "tpl-tooltip" : ""]),
346
+ "data-tooltip": S(o) ? e.node.attrs.value : void 0,
347
+ onClick: d(ne, ["stop"]),
348
+ onKeydown: [f(d(ne, ["stop"]), ["enter"]), f(d(ne, ["prevent", "stop"]), ["space"])]
349
+ }, p(C.value), 43, _e)), E("button", {
350
350
  type: "button",
351
- "aria-label": l(T).mergeTag.deleteMergeTag,
351
+ "aria-label": S(l).mergeTag.deleteMergeTag,
352
352
  class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
353
353
  contenteditable: "false",
354
- onClick: s[1] ||= _((...e) => i.deleteNode && i.deleteNode(...e), ["stop", "prevent"])
355
- }, [...s[2] ||= [p("svg", {
354
+ onClick: n[1] ||= d((...t) => e.deleteNode && e.deleteNode(...t), ["stop", "prevent"])
355
+ }, [...n[2] ||= [E("svg", {
356
356
  width: "10",
357
357
  height: "10",
358
358
  viewBox: "0 0 24 24",
@@ -360,12 +360,12 @@ var he = P.create({
360
360
  stroke: "currentColor",
361
361
  "stroke-width": "3",
362
362
  "aria-hidden": "true"
363
- }, [p("line", {
363
+ }, [E("line", {
364
364
  x1: "18",
365
365
  y1: "6",
366
366
  x2: "6",
367
367
  y2: "18"
368
- }), p("line", {
368
+ }), E("line", {
369
369
  x1: "6",
370
370
  y1: "6",
371
371
  x2: "18",
@@ -374,7 +374,7 @@ var he = P.create({
374
374
  _: 1
375
375
  }));
376
376
  }
377
- }), be = P.create({
377
+ }), be = a.create({
378
378
  name: "mergeTagNode",
379
379
  group: "inline",
380
380
  inline: !0,
@@ -382,7 +382,7 @@ var he = P.create({
382
382
  addOptions() {
383
383
  return {
384
384
  mergeTags: () => [],
385
- syntax: x.liquid
385
+ syntax: N.liquid
386
386
  };
387
387
  },
388
388
  addAttributes() {
@@ -403,10 +403,10 @@ var he = P.create({
403
403
  return [{ tag: "span[data-merge-tag]" }];
404
404
  },
405
405
  renderHTML({ node: e, HTMLAttributes: t }) {
406
- let n = C(e.attrs.value, this.options.mergeTags());
406
+ let n = F(e.attrs.value, this.options.mergeTags());
407
407
  return [
408
408
  "span",
409
- ee(t, {
409
+ i(t, {
410
410
  "data-merge-tag": e.attrs.value,
411
411
  "data-label": n
412
412
  }),
@@ -433,10 +433,10 @@ var he = P.create({
433
433
  },
434
434
  addInputRules() {
435
435
  let e = RegExp(this.options.syntax.value.source + "$", "");
436
- return [new I({
436
+ return [new c({
437
437
  find: e,
438
438
  handler: ({ state: e, range: t, match: n }) => {
439
- let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
439
+ let r = n[0], i = F(r, this.options.mergeTags()), a = this.type.create({
440
440
  label: i,
441
441
  value: r
442
442
  });
@@ -445,14 +445,14 @@ var he = P.create({
445
445
  })];
446
446
  },
447
447
  addPasteRules() {
448
- let e = this.options.syntax, t = y(e) ? (t) => b(t, e, "value").map((e) => ({
448
+ let e = this.options.syntax, t = j(e) ? (t) => M(t, e, "value").map((e) => ({
449
449
  index: e.index,
450
450
  text: e.value
451
451
  })) : new RegExp(e.value.source, "g");
452
- return [new ne({
452
+ return [new l({
453
453
  find: t,
454
454
  handler: ({ state: e, range: t, match: n }) => {
455
- let r = n[0], i = C(r, this.options.mergeTags()), a = this.type.create({
455
+ let r = n[0], i = F(r, this.options.mergeTags()), a = this.type.create({
456
456
  label: i,
457
457
  value: r
458
458
  });
@@ -1158,21 +1158,21 @@ var Rt = Ye, zt = Ke, Bt = (e, t, n) => {
1158
1158
  });
1159
1159
  };
1160
1160
  // ../../node_modules/.pnpm/@tiptap+suggestion@3.32.2_@floating-ui+dom@1.8.0_@tiptap+core@3.32.2_@tiptap+pm@3.32.2__@tiptap+pm@3.32.2/node_modules/@tiptap/suggestion/dist/index.js
1161
- function Vt(e) {
1162
- let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = A(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
1163
- if (!p) return null;
1164
- let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
1165
- if (!h || h.input === void 0 || h.index === void 0) return null;
1166
- let g = h.input.slice(Math.max(0, h.index - 1), h.index), _ = RegExp(`^[${i?.map(A).join("")}\0]?$`).test(g);
1167
- if (i !== null && !_) return null;
1168
- let v = m + h.index, y = v + h[0].length;
1169
- return s && l.test(p.slice(y - 1, y + 1)) && (h[0] += " ", y += 1), v < o.pos && y >= o.pos ? {
1161
+ function Vt(t) {
1162
+ let { char: n, allowSpaces: r, allowToIncludeChar: i, allowedPrefixes: a, startOfLine: o, $position: s } = t, c = r && !i, l = e(n), u = RegExp(`\\s${l}$`), d = o ? "^" : "", f = i ? "" : l, p = RegExp(c ? `${d}${l}.*?(?=\\s${f}|$)` : `${d}(?:^)?${l}[^\\s${f}]*`, "gm"), m = s.nodeBefore?.isText && s.nodeBefore.text;
1163
+ if (!m) return null;
1164
+ let h = s.pos - m.length, g = Array.from(m.matchAll(p)).pop();
1165
+ if (!g || g.input === void 0 || g.index === void 0) return null;
1166
+ let _ = g.input.slice(Math.max(0, g.index - 1), g.index), v = RegExp(`^[${a?.map(e).join("")}\0]?$`).test(_);
1167
+ if (a !== null && !v) return null;
1168
+ let y = h + g.index, b = y + g[0].length;
1169
+ return c && u.test(m.slice(b - 1, b + 1)) && (g[0] += " ", b += 1), y < s.pos && b >= s.pos ? {
1170
1170
  range: {
1171
- from: v,
1172
- to: y
1171
+ from: y,
1172
+ to: b
1173
1173
  },
1174
- query: h[0].slice(t.length),
1175
- text: h[0]
1174
+ query: g[0].slice(n.length),
1175
+ text: g[0]
1176
1176
  } : null;
1177
1177
  }
1178
1178
  function Ht(e) {
@@ -1213,35 +1213,35 @@ function Kt({ view: e, pluginKeyRef: t }) {
1213
1213
  let n = e.state.tr.setMeta(t, { exit: !0 });
1214
1214
  e.dispatch(n);
1215
1215
  }
1216
- function qt({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
1216
+ function qt({ pluginKey: e, decorationTag: n, decorationClass: r, decorationContent: i, decorationEmptyClass: a, renderer: s, dispatchExit: c }) {
1217
1217
  return {
1218
1218
  handleKeyDown(t, n) {
1219
1219
  var r;
1220
1220
  let i = e.getState(t.state);
1221
1221
  if (!i.active) return !1;
1222
1222
  if (n.key === "Escape" || n.key === "Esc") {
1223
- var s;
1224
- return a == null || (s = a.onKeyDown) == null || s.call(a, {
1223
+ var a;
1224
+ return s == null || (a = s.onKeyDown) == null || a.call(s, {
1225
1225
  view: t,
1226
1226
  event: n,
1227
1227
  range: i.range
1228
- }), o(t), !0;
1228
+ }), c(t), !0;
1229
1229
  }
1230
- return (a == null || (r = a.onKeyDown) == null ? void 0 : r.call(a, {
1230
+ return (s == null || (r = s.onKeyDown) == null ? void 0 : r.call(s, {
1231
1231
  view: t,
1232
1232
  event: n,
1233
1233
  range: i.range
1234
1234
  })) || !1;
1235
1235
  },
1236
- decorations(a) {
1237
- let { active: o, range: s, decorationId: c, query: l } = e.getState(a);
1238
- if (!o) return null;
1239
- let u = !l?.length, d = [n];
1240
- return u && d.push(i), te.create(a.doc, [j.inline(s.from, s.to, {
1241
- nodeName: t,
1242
- class: d.join(" "),
1243
- "data-decoration-id": c || void 0,
1244
- "data-decoration-content": r
1236
+ decorations(s) {
1237
+ let { active: c, range: l, decorationId: u, query: d } = e.getState(s);
1238
+ if (!c) return null;
1239
+ let f = !d?.length, p = [r];
1240
+ return f && p.push(a), o.create(s.doc, [t.inline(l.from, l.to, {
1241
+ nodeName: n,
1242
+ class: p.join(" "),
1243
+ "data-decoration-id": u || void 0,
1244
+ "data-decoration-content": i
1245
1245
  })]);
1246
1246
  }
1247
1247
  };
@@ -1503,62 +1503,62 @@ function $t({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
1503
1503
  }
1504
1504
  };
1505
1505
  }
1506
- var en = new M("suggestion");
1507
- function tn({ pluginKey: e = en, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], minQueryLength: p = 0, debounce: m = 0, initialItems: h, placement: g = "bottom-start", offset: _ = {}, container: v, flip: y = !0, floatingUi: b, dismissOnOutsideClick: x = !0, render: S = () => ({}), allow: C = () => !0, findSuggestionMatch: w = Vt, shouldShow: T, shouldResetDismissed: E }) {
1508
- let D = S?.(), O = r && !i, k = (n, r) => Wt(t, n, r, e);
1509
- function A(e) {
1506
+ var en = new n("suggestion");
1507
+ function tn({ pluginKey: e = en, editor: t, char: n = "@", allowSpaces: i = !1, allowToIncludeChar: a = !1, allowedPrefixes: o = [" "], startOfLine: s = !1, decorationTag: c = "span", decorationClass: l = "suggestion", decorationContent: u = "", decorationEmptyClass: d = "is-empty", command: f = () => null, items: p = () => [], minQueryLength: m = 0, debounce: h = 0, initialItems: g, placement: _ = "bottom-start", offset: v = {}, container: y, flip: b = !0, floatingUi: x, dismissOnOutsideClick: S = !0, render: C = () => ({}), allow: w = () => !0, findSuggestionMatch: T = Vt, shouldShow: E, shouldResetDismissed: D }) {
1508
+ let O = C?.(), k = i && !a, A = (n, r) => Wt(t, n, r, e);
1509
+ function j(e) {
1510
1510
  return Gt({
1511
1511
  ...e,
1512
1512
  editor: t,
1513
- shouldResetDismissed: E,
1514
- effectiveAllowSpaces: O
1513
+ shouldResetDismissed: D,
1514
+ effectiveAllowSpaces: k
1515
1515
  });
1516
1516
  }
1517
- let j = (t) => Kt({
1517
+ let M = (t) => Kt({
1518
1518
  view: t,
1519
1519
  pluginKeyRef: e
1520
1520
  });
1521
- return new N({
1521
+ return new r({
1522
1522
  key: e,
1523
1523
  view: () => $t({
1524
1524
  editor: t,
1525
1525
  pluginKey: e,
1526
- items: f,
1527
- renderer: D,
1528
- minQueryLength: p,
1529
- debounce: m,
1530
- initialItems: h,
1531
- placement: g,
1532
- offset: _,
1533
- container: v,
1534
- flip: y,
1535
- floatingUi: b,
1536
- dismissOnOutsideClick: x,
1537
- command: d,
1538
- clientRectFor: k,
1539
- dispatchExit: j
1526
+ items: p,
1527
+ renderer: O,
1528
+ minQueryLength: m,
1529
+ debounce: h,
1530
+ initialItems: g,
1531
+ placement: _,
1532
+ offset: v,
1533
+ container: y,
1534
+ flip: b,
1535
+ floatingUi: x,
1536
+ dismissOnOutsideClick: S,
1537
+ command: f,
1538
+ clientRectFor: A,
1539
+ dispatchExit: M
1540
1540
  }),
1541
1541
  state: Jt({
1542
1542
  editor: t,
1543
1543
  char: n,
1544
- effectiveAllowSpaces: O,
1545
- allowToIncludeChar: i,
1546
- allowedPrefixes: a,
1547
- startOfLine: o,
1548
- findSuggestionMatch: w,
1549
- allow: C,
1550
- shouldShow: T,
1551
- shouldKeepDismissed: A,
1544
+ effectiveAllowSpaces: k,
1545
+ allowToIncludeChar: a,
1546
+ allowedPrefixes: o,
1547
+ startOfLine: s,
1548
+ findSuggestionMatch: T,
1549
+ allow: w,
1550
+ shouldShow: E,
1551
+ shouldKeepDismissed: j,
1552
1552
  pluginKey: e
1553
1553
  }),
1554
1554
  props: qt({
1555
1555
  pluginKey: e,
1556
- decorationTag: s,
1557
- decorationClass: c,
1558
- decorationContent: l,
1559
- decorationEmptyClass: u,
1560
- renderer: D,
1561
- dispatchExit: j
1556
+ decorationTag: c,
1557
+ decorationClass: l,
1558
+ decorationContent: u,
1559
+ decorationEmptyClass: d,
1560
+ renderer: O,
1561
+ dispatchExit: M
1562
1562
  })
1563
1563
  });
1564
1564
  }
@@ -1566,7 +1566,7 @@ var nn = tn;
1566
1566
  // src/extensions/MergeTagSuggestion.ts
1567
1567
  function rn(e, t) {
1568
1568
  return () => {
1569
- let n = T(e, t);
1569
+ let n = ne(e, t);
1570
1570
  return {
1571
1571
  onStart: (e) => {
1572
1572
  let t = e.editor.view?.dom;
@@ -1589,7 +1589,7 @@ function rn(e, t) {
1589
1589
  };
1590
1590
  };
1591
1591
  }
1592
- var an = F.create({
1592
+ var an = s.create({
1593
1593
  name: "mergeTagSuggestion",
1594
1594
  addOptions() {
1595
1595
  return {
@@ -1605,7 +1605,7 @@ var an = F.create({
1605
1605
  allowSpaces: !1,
1606
1606
  startOfLine: !1,
1607
1607
  allowedPrefixes: null,
1608
- items: ({ query: t }) => E(e(), t),
1608
+ items: ({ query: t }) => re(e(), t),
1609
1609
  command: ({ editor: e, range: t, props: n }) => {
1610
1610
  e.isEditable && e.chain().focus().insertContentAt(t, {
1611
1611
  type: "mergeTagNode",
@@ -1623,4 +1623,4 @@ var an = F.create({
1623
1623
  })];
1624
1624
  }
1625
1625
  });
1626
- export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, he as LogicMergeTagNode, be as MergeTagNode, an as MergeTagSuggestion, E as filterMergeTags, D as handleSuggestionKeyDown };
1626
+ export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, he as LogicMergeTagNode, be as MergeTagNode, an as MergeTagSuggestion, re as filterMergeTags, ie as handleSuggestionKeyDown };