@templatical/editor 0.25.2 → 0.26.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 (179) hide show
  1. package/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-c-3yyjN1.js} +8 -8
  2. package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-B-COyG7k.js} +4 -4
  3. package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-CJPHGI93.js} +1 -1
  5. package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-BdSQ8hfv.js} +19 -19
  6. package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-mGoi6yye.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-CgYkySre.js} +6 -6
  11. package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
  12. package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-hAJgIKhw.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-DBG63S70.js} +19 -19
  16. package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
  17. package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-Dq9UVihi.js} +6 -6
  18. package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-CtFG4zeV.js} +7 -7
  19. package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-DNVdso_W.js} +1 -1
  20. package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-Cv4dIpP-.js} +2 -2
  21. package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-DsOtMHOV.js} +11 -11
  22. package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
  23. package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-CIwqtGfr.js} +7 -7
  24. package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-l6LDmBGM.js} +1 -1
  25. package/dist/{TitleEditor-DWSi998C.js → TitleEditor-imoBUynh.js} +8 -8
  26. package/dist/{TplModal-DKn0h2qe.js → TplModal-DDDHcoir.js} +1 -1
  27. package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-CfLN4A6t.js} +2 -2
  28. package/dist/bundle-stats.json +6 -6
  29. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-BHqNxNcX.js} +35 -35
  30. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
  31. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-D2AIDwEG.js} +11 -11
  32. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-D2AIDwEG.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-DH5ULGkw.js} +22 -22
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-C0nB1JfD.js} +65 -65
  38. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
  39. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
  40. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-f6Ni7KNH.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-DBoEBKxQ.js} +28 -28
  50. package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-DBoEBKxQ.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-D8iKvz7v.js} +20 -20
  56. package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-D8iKvz7v.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-Cuc83Blj.js} +43 -43
  62. package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-Cuc83Blj.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-B8KHhVkI.js} +43 -43
  66. package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
  70. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
  73. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-Srpzt2na.js} +26 -26
  74. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-Srpzt2na.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-DLeoJqaJ.js} +31 -31
  78. package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
  79. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
  80. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
  81. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-DzYRr18C.js} +35 -35
  82. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
  83. package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-byw7-3wg.js} +17 -17
  84. package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-byw7-3wg.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-CuItCnN_.js} +3 -3
  88. package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CuItCnN_.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-B7laxHjs.js} +22 -22
  96. package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-B7laxHjs.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-Aea1Vl1H.js → src-BYKYmEOD.js} +7 -6
  104. package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
  105. package/dist/cdn/chunks/{src-_GNJgPcS.js → src-Bi-Qhtfs.js} +2 -2
  106. package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-Bi-Qhtfs.js.map} +1 -1
  107. package/dist/cdn/chunks/{src-CRvTVX4F.js → src-C0N74uvF.js} +201 -201
  108. package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-C0N74uvF.js.map} +1 -1
  109. package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
  110. package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
  111. package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-C7s-VtJi.js} +1112 -1094
  112. package/dist/cdn/chunks/styles-C7s-VtJi.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-C_nUXiph.js} +268 -268
  120. package/dist/cdn/chunks/useEditorCore-C_nUXiph.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-CPa_9VOq.js} +4 -4
  124. package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-CPa_9VOq.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-C7-FhzMc.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-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
  140. package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
  141. package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
  142. package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
  143. package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
  144. package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
  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-CxwhoG8v.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-C_slTGwp.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-r4gWzCBA.js} +889 -889
  169. package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-C-_WxrgL.js} +1 -1
  170. package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
  171. package/package.json +22 -22
  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
@@ -1,147 +1,171 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { E as t, G as n, L as r, Q as i, T as a, V as o, Y as s, Z as ee, _ as c, k as l, nt as te, q as u, v as ne, w as re, y as d } from "./vue.runtime.esm-bundler-D1diBMsm.js";
3
- import { r as f } from "./runtime-dom.esm-bundler-CepEmvwF.js";
4
- import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as Oe, a as ke, an as Ae, at as je, b as Me, bt as Ne, c as Pe, cn as Fe, ct as Ie, d as Le, dn as Re, dt as ze, en as W, et as Be, f as G, fn as Ve, ft as He, g as Ue, gn as We, gt as Ge, h as Ke, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as K, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as dt, ot as ft, p as pt, pn as mt, pt as ht, q as gt, qt as _t, r as vt, rn as yt, rt as bt, s as xt, sn as St, st as Ct, t as wt, tn as Tt, tt as Et, u as Dt, un as Ot, ut as kt, v as At, vt as q, w as jt, wt as Mt, x as Nt, xt as Pt, y as Ft, yt as It, z as Lt, zt as Rt } from "./dist-CHxPjcxA.js";
5
- //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.29.2_@floating-ui+dom@1.8.0_@tiptap+core@3.29.2_@tiptap+pm@3.29.2__@tip_82ae703f9716de2fe82106636b634245/node_modules/@tiptap/vue-3/dist/index.js
6
- var zt = /* @__PURE__ */ e({
7
- CommandManager: () => wt,
8
- Editor: () => Y,
9
- EditorContent: () => Bt,
10
- Extendable: () => vt,
11
- Extension: () => Ye,
12
- Fragment: () => ke,
13
- InputRule: () => ut,
14
- MappablePosition: () => xt,
15
- Mark: () => Pe,
16
- MarkView: () => K,
17
- MarkViewContent: () => Wt,
18
- Node: () => Dt,
19
- NodePos: () => Le,
20
- NodeView: () => G,
21
- NodeViewContent: () => Vt,
22
- NodeViewWrapper: () => X,
23
- PasteRule: () => pt,
24
- ResizableNodeView: () => it,
25
- ResizableNodeview: () => Ke,
26
- Tracker: () => Ue,
27
- VueMarkView: () => Q,
28
- VueMarkViewRenderer: () => Gt,
29
- VueNodeViewRenderer: () => $,
30
- VueRenderer: () => Z,
31
- attrsEqual: () => De,
32
- callOrReturn: () => At,
33
- canInsertNode: () => Ft,
34
- combineTransactionSteps: () => Me,
35
- commands: () => Nt,
36
- createAtomBlockMarkdownSpec: () => de,
37
- createBlockMarkdownSpec: () => ue,
38
- createChainableState: () => jt,
39
- createDocument: () => pe,
40
- createElement: () => q,
41
- createInlineMarkdownSpec: () => g,
42
- createMappablePosition: () => m,
43
- createNodeFromContent: () => I,
44
- createStyleTag: () => et,
45
- decodeHtmlEntities: () => oe,
46
- defaultBlockAt: () => Qe,
47
- deleteProps: () => M,
48
- elementFromString: () => P,
49
- encodeHtmlEntities: () => R,
50
- escapeForRegEx: () => v,
51
- extensions: () => w,
52
- findChildren: () => A,
53
- findChildrenInRange: () => H,
54
- findDuplicates: () => Lt,
55
- findParentNode: () => ce,
56
- findParentNodeClosestToPos: () => _e,
57
- flattenExtensions: () => S,
58
- fromString: () => he,
59
- generateHTML: () => ye,
60
- generateJSON: () => b,
61
- generateText: () => O,
62
- getAttributes: () => gt,
63
- getAttributesFromExtensions: () => E,
64
- getChangedRanges: () => Ce,
65
- getDebugJSON: () => xe,
66
- getExtensionField: () => Te,
67
- getHTMLFromFragment: () => B,
68
- getMarkAttributes: () => ie,
69
- getMarkRange: () => Be,
70
- getMarkType: () => Et,
71
- getMarksBetween: () => lt,
72
- getNodeAtPosition: () => bt,
73
- getNodeAttributes: () => Ze,
74
- getNodeType: () => je,
75
- getRenderedAttributes: () => ft,
76
- getSchema: () => Ct,
77
- getSchemaByResolvedExtensions: () => Ie,
78
- getSchemaTypeByName: () => rt,
79
- getSchemaTypeNameByName: () => kt,
80
- getSplittedAttributes: () => ze,
81
- getStyleProperty: () => He,
82
- getText: () => ht,
83
- getTextBetween: () => ot,
84
- getTextContentFromNodes: () => Je,
85
- getTextSerializersFromSchema: () => Ge,
86
- getUpdatedPosition: () => Oe,
87
- h: () => q,
88
- injectExtensionAttributesToParseRule: () => It,
89
- inputRulesPlugin: () => Ne,
90
- isActive: () => Pt,
91
- isAndroid: () => fe,
92
- isAtEndOfNode: () => p,
93
- isAtStartOfNode: () => Mt,
2
+ import { E as t, G as n, L as r, Q as i, T as a, V as o, Y as s, Z as ee, _ as c, at as l, k as u, nt as te, q as d, v as f, w as ne, y as p } from "./vue.runtime.esm-bundler-D1diBMsm.js";
3
+ import { r as m } from "./runtime-dom.esm-bundler-CepEmvwF.js";
4
+ import { $ as re, $t as ie, A as ae, An as oe, At as se, B as ce, Bt as le, C as ue, Cn as de, Ct as fe, D as h, Dn as g, Dt as _, E as v, En as y, Et as b, F as x, Fn as S, Ft as C, G as w, Gt as T, H as E, Ht as D, I as O, In as k, It as A, J as j, Jt as M, K as N, Kt as P, L as F, Ln as I, Lt as L, M as R, Mn as z, Mt as B, N as V, Nn as pe, Nt as me, O as he, On as ge, Ot as _e, P as ve, Pn as ye, Pt as be, Q as xe, Qt as Se, R as Ce, Rn as we, Rt as Te, S as Ee, Sn as De, St as Oe, T as ke, Tn as Ae, Tt as je, U as Me, Ut as H, V as Ne, Vt as Pe, W as Fe, Wt as Ie, X as Le, Xt as Re, Y as ze, Yt as Be, Z as Ve, Zt as He, _ as U, _n as Ue, _t as We, a as Ge, an as Ke, at as qe, b as Je, bn as Ye, bt as Xe, c as Ze, cn as Qe, ct as $e, d as et, dn as tt, dt as W, en as nt, et as rt, f as it, fn as at, ft as ot, g as st, gn as ct, gt as lt, h as ut, hn as dt, ht as ft, i as pt, in as mt, it as ht, j as gt, jn as _t, jt as vt, k as yt, kn as bt, kt as xt, l as St, ln as Ct, lt as wt, m as Tt, mn as Et, mt as Dt, n as Ot, nn as kt, nt as At, o as jt, on as Mt, ot as Nt, p as G, pn as Pt, pt as Ft, q as It, qt as Lt, r as Rt, rn as zt, rt as Bt, s as Vt, sn as Ht, st as Ut, t as Wt, tn as Gt, tt as Kt, u as qt, un as Jt, ut as Yt, v as Xt, vn as Zt, vt as Qt, w as $t, wn as en, wt as tn, x as nn, xn as rn, xt as an, y as on, yn as sn, yt as cn, z as ln, zn as un, zt as dn } from "./dist-ChYLhoJ4.js";
5
+ //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.30.1_@floating-ui+dom@1.8.0_@tiptap+core@3.30.1_@tiptap+pm@3.30.1__@tip_771dbc12d4bdce024804a32b81522205/node_modules/@tiptap/vue-3/dist/index.js
6
+ var fn = /* @__PURE__ */ e({
7
+ CommandManager: () => Wt,
8
+ DECORATION_MANAGER_PLUGIN_KEY: () => Ot,
9
+ Decoration: () => Rt,
10
+ DecorationManager: () => pt,
11
+ Editor: () => q,
12
+ EditorContent: () => pn,
13
+ Extendable: () => jt,
14
+ Extension: () => Vt,
15
+ Fragment: () => Ze,
16
+ InlineDecoration: () => St,
17
+ InputRule: () => qt,
18
+ MappablePosition: () => et,
19
+ Mark: () => it,
20
+ MarkView: () => G,
21
+ MarkViewContent: () => _n,
22
+ Node: () => Tt,
23
+ NodeDecoration: () => ut,
24
+ NodePos: () => st,
25
+ NodeView: () => U,
26
+ NodeViewContent: () => mn,
27
+ NodeViewWrapper: () => J,
28
+ PasteRule: () => Xt,
29
+ ResizableNodeView: () => on,
30
+ ResizableNodeview: () => Je,
31
+ Tracker: () => nn,
32
+ VueMarkView: () => X,
33
+ VueMarkViewRenderer: () => vn,
34
+ VueNodeViewRenderer: () => Z,
35
+ VueRenderer: () => Y,
36
+ VueWidgetRenderer: () => wn,
37
+ WidgetDecoration: () => Ee,
38
+ attrsEqual: () => ue,
39
+ callOrReturn: () => $t,
40
+ canInsertNode: () => ke,
41
+ combineTransactionSteps: () => v,
42
+ commands: () => h,
43
+ createAtomBlockMarkdownSpec: () => he,
44
+ createBlockMarkdownSpec: () => yt,
45
+ createChainableState: () => ae,
46
+ createDocument: () => gt,
47
+ createElement: () => b,
48
+ createInlineMarkdownSpec: () => R,
49
+ createMappablePosition: () => V,
50
+ createNodeFromContent: () => ve,
51
+ createStyleTag: () => x,
52
+ createWidgetDecoration: () => O,
53
+ decodeHtmlEntities: () => F,
54
+ defaultBlockAt: () => Ce,
55
+ deleteProps: () => ln,
56
+ elementFromString: () => ce,
57
+ encodeHtmlEntities: () => Ne,
58
+ escapeForRegEx: () => E,
59
+ extensions: () => Me,
60
+ findChildren: () => Fe,
61
+ findChildrenInRange: () => w,
62
+ findDuplicates: () => N,
63
+ findParentNode: () => It,
64
+ findParentNodeClosestToPos: () => j,
65
+ flattenExtensions: () => ze,
66
+ fromString: () => Le,
67
+ generateHTML: () => Ve,
68
+ generateJSON: () => xe,
69
+ generateText: () => re,
70
+ getAttributes: () => rt,
71
+ getAttributesFromExtensions: () => Kt,
72
+ getChangedRanges: () => At,
73
+ getDebugJSON: () => Bt,
74
+ getExtensionField: () => ht,
75
+ getHTMLFromFragment: () => qe,
76
+ getMarkAttributes: () => Nt,
77
+ getMarkRange: () => Ut,
78
+ getMarkType: () => $e,
79
+ getMarksBetween: () => wt,
80
+ getNodeAtPosition: () => Yt,
81
+ getNodeAttributes: () => W,
82
+ getNodeType: () => ot,
83
+ getPreviousBlockSibling: () => Ft,
84
+ getRenderedAttributes: () => Dt,
85
+ getSchema: () => ft,
86
+ getSchemaByResolvedExtensions: () => lt,
87
+ getSchemaTypeByName: () => We,
88
+ getSchemaTypeNameByName: () => Qt,
89
+ getSplittedAttributes: () => cn,
90
+ getStyleProperty: () => Xe,
91
+ getText: () => an,
92
+ getTextBetween: () => Oe,
93
+ getTextContentFromNodes: () => fe,
94
+ getTextSerializersFromSchema: () => tn,
95
+ getUpdatedPosition: () => je,
96
+ h: () => b,
97
+ injectExtensionAttributesToParseRule: () => _,
98
+ inputRulesPlugin: () => _e,
99
+ isActive: () => xt,
100
+ isAndroid: () => se,
101
+ isAtEndOfNode: () => vt,
102
+ isAtStartOfNode: () => B,
94
103
  isEmptyObject: () => me,
95
- isExtensionRulesEnabled: () => _,
96
- isFirefox: () => h,
97
- isFunction: () => L,
98
- isList: () => tt,
99
- isMacOS: () => se,
100
- isMarkActive: () => $e,
101
- isNodeActive: () => N,
102
- isNodeEmpty: () => F,
103
- isNodeSelection: () => z,
104
- isNodeViewSelected: () => y,
105
- isNumber: () => T,
106
- isPlainObject: () => j,
107
- isRegExp: () => U,
108
- isSafari: () => Rt,
109
- isString: () => le,
110
- isTextSelection: () => ve,
111
- isiOS: () => C,
112
- markInputRule: () => ge,
113
- markPasteRule: () => be,
114
- markViewProps: () => Ut,
115
- markdown: () => x,
116
- marksEqual: () => k,
117
- mergeAttributes: () => _t,
118
- mergeDeep: () => D,
119
- minMax: () => we,
120
- nodeInputRule: () => Se,
121
- nodePasteRule: () => Ee,
122
- nodeViewProps: () => Kt,
123
- objectIncludes: () => V,
124
- parseAttributes: () => ae,
125
- parseIndentedBlocks: () => W,
126
- pasteRulesPlugin: () => Tt,
127
- posToDOMRect: () => ct,
128
- removeDuplicates: () => yt,
129
- renderNestedMarkdownContent: () => Xe,
130
- resolveExtensions: () => Ae,
131
- resolveFocusPosition: () => dt,
132
- rewriteUnknownContent: () => St,
133
- selectionToInsertionEnd: () => Fe,
134
- serializeAttributes: () => nt,
135
- sortExtensions: () => Ot,
136
- splitExtensions: () => Re,
137
- textInputRule: () => Ve,
138
- textPasteRule: () => mt,
139
- textblockTypeInputRule: () => at,
140
- updateMarkViewAttributes: () => qe,
141
- useEditor: () => Ht,
142
- wrappingInputRule: () => We
104
+ isExtensionRulesEnabled: () => be,
105
+ isFirefox: () => C,
106
+ isFunction: () => A,
107
+ isList: () => L,
108
+ isMacOS: () => Te,
109
+ isMarkActive: () => dn,
110
+ isNodeActive: () => le,
111
+ isNodeEmpty: () => Pe,
112
+ isNodeSelection: () => D,
113
+ isNodeViewSelected: () => H,
114
+ isNumber: () => Ie,
115
+ isPlainObject: () => T,
116
+ isProseMirrorAddMarkStep: () => P,
117
+ isProseMirrorAddNodeMarkStep: () => Lt,
118
+ isProseMirrorAttrStep: () => M,
119
+ isProseMirrorCellSelection: () => Be,
120
+ isProseMirrorDocAttrStep: () => Re,
121
+ isProseMirrorFragment: () => He,
122
+ isProseMirrorNodeSelection: () => Se,
123
+ isProseMirrorRemoveMarkStep: () => ie,
124
+ isProseMirrorRemoveNodeMarkStep: () => nt,
125
+ isProseMirrorReplaceAroundStep: () => Gt,
126
+ isProseMirrorReplaceStep: () => kt,
127
+ isProseMirrorSlice: () => zt,
128
+ isProseMirrorStep: () => mt,
129
+ isProseMirrorStepResult: () => Ke,
130
+ isRegExp: () => Mt,
131
+ isSafari: () => Ht,
132
+ isString: () => Qe,
133
+ isTextSelection: () => Ct,
134
+ isiOS: () => Jt,
135
+ liveWidgetKeys: () => tt,
136
+ markInputRule: () => at,
137
+ markPasteRule: () => Pt,
138
+ markViewProps: () => gn,
139
+ markdown: () => Et,
140
+ marksEqual: () => dt,
141
+ mergeAttributes: () => ct,
142
+ mergeDeep: () => Ue,
143
+ minMax: () => Zt,
144
+ nodeInputRule: () => sn,
145
+ nodePasteRule: () => Ye,
146
+ nodeViewProps: () => yn,
147
+ objectIncludes: () => rn,
148
+ parseAttributes: () => De,
149
+ parseIndentedBlocks: () => de,
150
+ pasteRulesPlugin: () => en,
151
+ posToDOMRect: () => Ae,
152
+ removeDuplicates: () => y,
153
+ renderNestedMarkdownContent: () => g,
154
+ resolveExtensions: () => ge,
155
+ resolveFocusPosition: () => bt,
156
+ rewriteUnknownContent: () => oe,
157
+ selectionToInsertionEnd: () => _t,
158
+ serializeAttributes: () => z,
159
+ sortExtensions: () => pe,
160
+ splitExtensions: () => ye,
161
+ textInputRule: () => S,
162
+ textPasteRule: () => k,
163
+ textblockTypeInputRule: () => I,
164
+ updateMarkViewAttributes: () => we,
165
+ useEditor: () => hn,
166
+ wrappingInputRule: () => un
143
167
  });
144
- function J(e) {
168
+ function K(e) {
145
169
  return o((t, n) => ({
146
170
  get() {
147
171
  return t(), e;
@@ -155,9 +179,9 @@ function J(e) {
155
179
  }
156
180
  }));
157
181
  }
158
- var Y = class extends st {
182
+ var q = class extends Ge {
159
183
  constructor(e = {}) {
160
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
184
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = K(this.view.state), this.reactiveExtensionStorage = K(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
161
185
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
162
186
  }), n(this);
163
187
  }
@@ -175,17 +199,17 @@ var Y = class extends st {
175
199
  let t = super.unregisterPlugin(e);
176
200
  return this.reactiveState && t && (this.reactiveState.value = t), t;
177
201
  }
178
- }, Bt = c({
202
+ }, pn = c({
179
203
  name: "EditorContent",
180
204
  props: { editor: {
181
205
  default: null,
182
206
  type: Object
183
207
  } },
184
208
  setup(e) {
185
- let t = s(), n = ne();
209
+ let t = s(), n = f();
186
210
  return r(() => {
187
211
  let r = e.editor;
188
- r && r.options.element && t.value && re(() => {
212
+ r && r.options.element && t.value && ne(() => {
189
213
  if (!t.value || !r.view.dom?.parentNode) return;
190
214
  let e = te(t.value);
191
215
  t.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
@@ -199,11 +223,11 @@ var Y = class extends st {
199
223
  }), { rootEl: t };
200
224
  },
201
225
  render() {
202
- return d("div", { ref: (e) => {
226
+ return p("div", { ref: (e) => {
203
227
  this.rootEl = e;
204
228
  } });
205
229
  }
206
- }), Vt = c({
230
+ }), mn = c({
207
231
  name: "NodeViewContent",
208
232
  props: { as: {
209
233
  type: String,
@@ -219,12 +243,12 @@ var Y = class extends st {
219
243
  e && e(null);
220
244
  },
221
245
  render() {
222
- return d(this.as, {
246
+ return p(this.as, {
223
247
  style: { whiteSpace: "pre-wrap" },
224
248
  "data-node-view-content": ""
225
249
  });
226
250
  }
227
- }), X = c({
251
+ }), J = c({
228
252
  name: "NodeViewWrapper",
229
253
  props: { as: {
230
254
  type: String,
@@ -233,24 +257,24 @@ var Y = class extends st {
233
257
  inject: ["onDragStart", "decorationClasses"],
234
258
  render() {
235
259
  var e;
236
- return d(this.as, {
260
+ return p(this.as, {
237
261
  class: this.decorationClasses,
238
262
  style: { whiteSpace: "normal" },
239
263
  "data-node-view-wrapper": "",
240
264
  onDragstart: this.onDragStart
241
265
  }, (e = this.$slots).default?.call(e));
242
266
  }
243
- }), Ht = (e = {}) => {
267
+ }), hn = (e = {}) => {
244
268
  let n = ee();
245
269
  return t(() => {
246
- n.value = new Y(e);
270
+ n.value = new q(e);
247
271
  }), a(() => {
248
272
  var e;
249
273
  (e = n.value) == null || e.destroy();
250
274
  }), n;
251
- }, Z = class {
275
+ }, Y = class {
252
276
  constructor(e, { props: t = {}, editor: r }) {
253
- this.destroyed = !1, this.editor = r, this.component = n(e), this.el = document.createElement("div"), this.props = u(t), this.renderedComponent = this.renderComponent();
277
+ this.destroyed = !1, this.editor = r, this.component = n(e), this.el = document.createElement("div"), this.props = d(t), this.renderedComponent = this.renderComponent();
254
278
  }
255
279
  get element() {
256
280
  return this.renderedComponent.el;
@@ -260,11 +284,11 @@ var Y = class extends st {
260
284
  }
261
285
  renderComponent() {
262
286
  if (this.destroyed) return this.renderedComponent;
263
- let e = d(this.component, this.props);
264
- return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && f(e, this.el), {
287
+ let e = p(this.component, this.props);
288
+ return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && m(e, this.el), {
265
289
  vNode: e,
266
290
  destroy: () => {
267
- this.el && f(null, this.el), this.el = null, e = null;
291
+ this.el && m(null, this.el), this.el = null, e = null;
268
292
  },
269
293
  el: this.el ? this.el.firstElementChild : null
270
294
  };
@@ -277,7 +301,7 @@ var Y = class extends st {
277
301
  destroy() {
278
302
  this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
279
303
  }
280
- }, Ut = {
304
+ }, gn = {
281
305
  editor: {
282
306
  type: Object,
283
307
  required: !0
@@ -306,19 +330,19 @@ var Y = class extends st {
306
330
  type: Object,
307
331
  required: !0
308
332
  }
309
- }, Wt = c({
333
+ }, _n = c({
310
334
  name: "MarkViewContent",
311
335
  props: { as: {
312
336
  type: String,
313
337
  default: "span"
314
338
  } },
315
339
  render() {
316
- return d(this.as, {
340
+ return p(this.as, {
317
341
  style: { whiteSpace: "inherit" },
318
342
  "data-mark-view-content": ""
319
343
  });
320
344
  }
321
- }), Q = class extends K {
345
+ }), X = class extends G {
322
346
  constructor(e, t, n) {
323
347
  super(e, t, n);
324
348
  let r = {
@@ -334,7 +358,7 @@ var Y = class extends st {
334
358
  __name: e.__name,
335
359
  __file: e.__file
336
360
  });
337
- this.renderer = new Z(i, {
361
+ this.renderer = new Y(i, {
338
362
  editor: this.editor,
339
363
  props: r
340
364
  });
@@ -353,10 +377,10 @@ var Y = class extends st {
353
377
  this.renderer.destroy();
354
378
  }
355
379
  };
356
- function Gt(e, t = {}) {
357
- return (n) => n.editor.contentComponent ? new Q(e, n, t) : {};
380
+ function vn(e, t = {}) {
381
+ return (n) => n.editor.contentComponent ? new X(e, n, t) : {};
358
382
  }
359
- var Kt = {
383
+ var yn = {
360
384
  editor: {
361
385
  type: Object,
362
386
  required: !0
@@ -401,7 +425,7 @@ var Kt = {
401
425
  type: Object,
402
426
  required: !0
403
427
  }
404
- }, qt = class extends G {
428
+ }, bn = class extends U {
405
429
  constructor(e, t, n) {
406
430
  super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
407
431
  let e = this.getPos();
@@ -438,7 +462,7 @@ var Kt = {
438
462
  template: this.component.template,
439
463
  setup: (e) => {
440
464
  var t;
441
- return l("onDragStart", n), l("decorationClasses", this.decorationClasses), l("nodeViewContentRef", (e) => {
465
+ return u("onDragStart", n), u("decorationClasses", this.decorationClasses), u("nodeViewContentRef", (e) => {
442
466
  if (!(!e || e === this.contentDOMElement)) {
443
467
  if (this.contentDOMElement) for (; this.contentDOMElement.firstChild;) e.appendChild(this.contentDOMElement.firstChild);
444
468
  this.contentDOMElement = e;
@@ -450,7 +474,7 @@ var Kt = {
450
474
  __name: this.component.__name,
451
475
  __file: this.component.__file
452
476
  });
453
- this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Z(r, {
477
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Y(r, {
454
478
  editor: this.editor,
455
479
  props: t
456
480
  });
@@ -465,7 +489,7 @@ var Kt = {
465
489
  handleSelectionUpdate() {
466
490
  let e = this.getPos();
467
491
  if (typeof e == "number") {
468
- if (y({
492
+ if (H({
469
493
  selection: this.editor.state.selection,
470
494
  pos: e,
471
495
  nodeSize: this.node.nodeSize,
@@ -524,8 +548,70 @@ var Kt = {
524
548
  this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate), this.contentDOMElement = null;
525
549
  }
526
550
  };
551
+ function Z(e, t) {
552
+ return (n) => n.editor.contentComponent ? new bn(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
553
+ }
554
+ function Q(e, t) {
555
+ var n;
556
+ let r = e;
557
+ if (!r) return;
558
+ (n = r.mixins) == null || n.forEach((e) => Q(e, t)), Q(r.extends, t);
559
+ let { props: i } = r;
560
+ Array.isArray(i) ? i.forEach((e) => t.add(l(e))) : i && Object.keys(i).forEach((e) => t.add(l(e)));
561
+ }
527
562
  function $(e, t) {
528
- return (n) => n.editor.contentComponent ? new qt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
563
+ let n = /* @__PURE__ */ new Set();
564
+ Q(e, n);
565
+ let r = {};
566
+ for (let e of [
567
+ "editor",
568
+ "getPos",
569
+ ...Object.keys(t)
570
+ ]) n.has(l(e)) || (r[e] = null);
571
+ return r;
572
+ }
573
+ function xn(e, t) {
574
+ return Array.isArray(e) ? [...e, ...Object.keys(t)] : {
575
+ ...e,
576
+ ...t
577
+ };
578
+ }
579
+ function Sn(e, t) {
580
+ let n = (t, n) => e(t, n);
581
+ return n.props = xn(e.props, $(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
582
+ }
583
+ var Cn = /* @__PURE__ */ Symbol("tiptapVueWidgetCache");
584
+ function wn(e, t) {
585
+ let { editor: r, props: i = {} } = t, a = Tn(e) ? Sn(e, i) : En(e, i);
586
+ return O({
587
+ ...t,
588
+ props: i,
589
+ cacheKey: Cn,
590
+ context: (e) => ({
591
+ editor: n(r),
592
+ getPos: e
593
+ }),
594
+ create: (e) => new Y(a, {
595
+ editor: r,
596
+ props: e
597
+ }),
598
+ materialize: (e) => e.element
599
+ });
600
+ }
601
+ function Tn(e) {
602
+ return typeof e == "function";
603
+ }
604
+ function En(e, t) {
605
+ return c({
606
+ extends: { ...e },
607
+ props: $(e, t),
608
+ template: e.template,
609
+ setup: (t, n) => e.setup?.call(e, t, n),
610
+ __scopeId: e.__scopeId,
611
+ __cssModules: e.__cssModules,
612
+ __name: e.__name,
613
+ __file: e.__file
614
+ });
529
615
  }
530
616
  //#endregion
531
- export { $ as n, zt as r, X as t };
617
+ export { Z as n, fn as r, J as t };
@@ -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",