@templatical/editor 0.29.0 → 0.30.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 (246) hide show
  1. package/LICENSE +84 -31
  2. package/dist/{AiChatSidebar-KeS30iRG.js → AiChatSidebar-Bq99wU01.js} +14 -14
  3. package/dist/{AiFeatureMenu-CCdTgCy7.js → AiFeatureMenu-F-C59LAV.js} +7 -7
  4. package/dist/{BlockIssueBadge-DQ6jBV1T.js → BlockIssueBadge-Dhk7Hv4m.js} +5 -5
  5. package/dist/{BlockPreviewCanvas-MgXVXOG_.js → BlockPreviewCanvas-CqU1kwmG.js} +3 -3
  6. package/dist/{CloudHeaderExtras-L_b51XVJ.js → CloudHeaderExtras-vnGV_mLD.js} +5 -5
  7. package/dist/{CloudPanels-XUtScYFl.js → CloudPanels-Dv-MD1Tc.js} +7 -7
  8. package/dist/{CollaboratorBar-Cx5klY7H.js → CollaboratorBar-DmssyJoB.js} +4 -4
  9. package/dist/{ColorPicker-DjfecH79.js → ColorPicker-CXPSbnRD.js} +7 -7
  10. package/dist/{CommentsPanel-5QxgkKF-.js → CommentsPanel-DnWdgQHg.js} +2 -2
  11. package/dist/{CommentsSidebar-CScszOsC.js → CommentsSidebar-ZOqmuo4D.js} +16 -16
  12. package/dist/{CountdownBlock-Drr1WErd.js → CountdownBlock-BgNK7fZY.js} +3 -3
  13. package/dist/{CountdownToolbar-CiBrLbq0.js → CountdownToolbar-SwmE7CIk.js} +19 -19
  14. package/dist/{DesignReferenceSidebar-B1__DJJI.js → DesignReferenceSidebar-9cLTzOqP.js} +11 -11
  15. package/dist/{NumberWithSuffix-C1D0WFrN.js → FieldRow-0-UbQR4a.js} +24 -17
  16. package/dist/{IssuesPanel-CkuV9Fjp.js → IssuesPanel-CDk7lUna.js} +8 -8
  17. package/dist/{LoadingTrack-Db9j_aBr.js → LoadingTrack-5KBr5cE8.js} +1 -1
  18. package/dist/{MergeTagModeToggle-oX-n91fH.js → MergeTagModeToggle-DtD_Xl9w.js} +6 -6
  19. package/dist/{MergeTagSuggestion-BUozNVtA.js → MergeTagSuggestion-DPfXtDzP.js} +4 -4
  20. package/dist/{ParagraphEditor-BVlMj-YW.js → ParagraphEditor-C0NbqDmV.js} +25 -25
  21. package/dist/{RestoreVersionDialog-CZRLWoqP.js → RestoreVersionDialog-DCX0rJiV.js} +5 -5
  22. package/dist/{RichTextEditorContent-BN6RBSZG.js → RichTextEditorContent-DZ6GiAUi.js} +8 -8
  23. package/dist/{SaveBlockDialog-KNQVLcUG.js → SaveBlockDialog-e5LtQRVk.js} +10 -10
  24. package/dist/{SavedBlocksBrowserModal-D7qatvfw.js → SavedBlocksBrowserModal-ZQIQoARO.js} +11 -11
  25. package/dist/{SavedBlocksPanels-bizAFdNK.js → SavedBlocksPanels-pGZWjSmp.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-BXUSoa38.js → SavedBlocksPickBar-OZaOG1Si.js} +4 -4
  27. package/dist/{TemplateScoringPanel-Dm83xt9R.js → TemplateScoringPanel-CDwlSFEe.js} +15 -15
  28. package/dist/{TestEmailModal-DAdO9Gmo.js → TestEmailModal-PVa1VL2p.js} +11 -11
  29. package/dist/{TestEmailPanel-DORs6xk0.js → TestEmailPanel-RekBdAtO.js} +2 -2
  30. package/dist/{TitleEditor-B_aWxZER.js → TitleEditor-Cs2tELCL.js} +12 -12
  31. package/dist/{TplModal-7623HR5x.js → TplModal-Bw1i8_eE.js} +5 -5
  32. package/dist/{VersionHistoryMenu-D7lgozpw.js → VersionHistoryMenu-B6zAcmAC.js} +8 -8
  33. package/dist/{VersionHistoryPanels-Dor0p1Ur.js → VersionHistoryPanels-TqTC4ofA.js} +2 -2
  34. package/dist/{VersionPreviewBanner-CQt2il1L.js → VersionPreviewBanner-CQlSzQ2B.js} +3 -3
  35. package/dist/{blockTypeIcons-Di4AsjQx.js → blockTypeIcons-C7WedEOG.js} +2 -2
  36. package/dist/bundle-stats.json +6 -6
  37. package/dist/{cdn/chunks/ca-DY0AYOLG.js → ca-DZSrLNXK.js} +2 -2
  38. package/dist/cdn/chunks/{AiChatSidebar-Cwr9eqTh.js → AiChatSidebar-DmZ1Nvxo.js} +11 -11
  39. package/dist/cdn/chunks/{AiChatSidebar-Cwr9eqTh.js.map → AiChatSidebar-DmZ1Nvxo.js.map} +1 -1
  40. package/dist/cdn/chunks/{AiFeatureMenu-CT2QiHmi.js → AiFeatureMenu-D4tax9j3.js} +6 -6
  41. package/dist/cdn/chunks/{AiFeatureMenu-CT2QiHmi.js.map → AiFeatureMenu-D4tax9j3.js.map} +1 -1
  42. package/dist/cdn/chunks/{BlockIssueBadge-CXlXn9Sm.js → BlockIssueBadge-Bry71Wjz.js} +5 -5
  43. package/dist/cdn/chunks/{BlockIssueBadge-CXlXn9Sm.js.map → BlockIssueBadge-Bry71Wjz.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockPreviewCanvas-BisO3JEy.js → BlockPreviewCanvas-DDOqFJlT.js} +4 -4
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-BisO3JEy.js.map → BlockPreviewCanvas-DDOqFJlT.js.map} +1 -1
  46. package/dist/cdn/chunks/{CloudHeaderExtras-MRCYqip8.js → CloudHeaderExtras-g-_SFPna.js} +5 -5
  47. package/dist/cdn/chunks/{CloudHeaderExtras-MRCYqip8.js.map → CloudHeaderExtras-g-_SFPna.js.map} +1 -1
  48. package/dist/cdn/chunks/{CloudPanels-Bb9qSwKJ.js → CloudPanels-Cnh07_2G.js} +7 -7
  49. package/dist/cdn/chunks/{CloudPanels-Bb9qSwKJ.js.map → CloudPanels-Cnh07_2G.js.map} +1 -1
  50. package/dist/cdn/chunks/{CollaboratorBar-CG13kDHu.js → CollaboratorBar-CLGB0prG.js} +5 -5
  51. package/dist/cdn/chunks/{CollaboratorBar-CG13kDHu.js.map → CollaboratorBar-CLGB0prG.js.map} +1 -1
  52. package/dist/cdn/chunks/{ColorPicker-UpN24AsB.js → ColorPicker-Ww4xHHMI.js} +7 -7
  53. package/dist/cdn/chunks/{ColorPicker-UpN24AsB.js.map → ColorPicker-Ww4xHHMI.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CIcIXzOB.js → CommentsPanel-DjId-XH-.js} +3 -3
  55. package/dist/cdn/chunks/{CommentsPanel-CIcIXzOB.js.map → CommentsPanel-DjId-XH-.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-CB5Z8xNz.js → CommentsSidebar-DXXGWSr4.js} +5 -5
  57. package/dist/cdn/chunks/{CommentsSidebar-CB5Z8xNz.js.map → CommentsSidebar-DXXGWSr4.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownBlock-_7TUBqJS.js → CountdownBlock-CWeJBC0L.js} +4 -4
  59. package/dist/cdn/chunks/{CountdownBlock-_7TUBqJS.js.map → CountdownBlock-CWeJBC0L.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-B1L0IK1T.js → CountdownToolbar-CO6xLgYc.js} +20 -20
  61. package/dist/cdn/chunks/{CountdownToolbar-B1L0IK1T.js.map → CountdownToolbar-CO6xLgYc.js.map} +1 -1
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-BwsfOFsc.js → DesignReferenceSidebar-DRGqm33h.js} +7 -7
  63. package/dist/cdn/chunks/{DesignReferenceSidebar-BwsfOFsc.js.map → DesignReferenceSidebar-DRGqm33h.js.map} +1 -1
  64. package/dist/cdn/chunks/{NumberWithSuffix-CWvM_I3T.js → FieldRow-CbcpsxZ4.js} +25 -18
  65. package/dist/cdn/chunks/FieldRow-CbcpsxZ4.js.map +1 -0
  66. package/dist/cdn/chunks/{IssuesPanel-3nTCyKgK.js → IssuesPanel-iC2hgrXx.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-3nTCyKgK.js.map → IssuesPanel-iC2hgrXx.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-D_wweXVz.js → LoadingTrack-Cz1sT0wP.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-D_wweXVz.js.map → LoadingTrack-Cz1sT0wP.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagModeToggle-BUNsRKs6.js → MergeTagModeToggle-DZtnCj0F.js} +6 -6
  71. package/dist/cdn/chunks/{MergeTagModeToggle-BUNsRKs6.js.map → MergeTagModeToggle-DZtnCj0F.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagSuggestion-Dt6I8bZi.js → MergeTagSuggestion-VP_nC-8W.js} +3 -3
  73. package/dist/cdn/chunks/{MergeTagSuggestion-Dt6I8bZi.js.map → MergeTagSuggestion-VP_nC-8W.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-BtzkHfv2.js → ParagraphEditor-BalgLjBt.js} +27 -27
  75. package/dist/cdn/chunks/{ParagraphEditor-BtzkHfv2.js.map → ParagraphEditor-BalgLjBt.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-DNoo-EBT.js → RestoreVersionDialog-DGOXQ0ou.js} +5 -5
  77. package/dist/cdn/chunks/{RestoreVersionDialog-DNoo-EBT.js.map → RestoreVersionDialog-DGOXQ0ou.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-BQATmyd9.js → RichTextEditorContent-DpvOKKH-.js} +7 -7
  79. package/dist/cdn/chunks/{RichTextEditorContent-BQATmyd9.js.map → RichTextEditorContent-DpvOKKH-.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-DB37Vmqt.js → SaveBlockDialog-Dod3jX9X.js} +8 -8
  81. package/dist/cdn/chunks/{SaveBlockDialog-DB37Vmqt.js.map → SaveBlockDialog-Dod3jX9X.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CTU2rGWQ.js → SavedBlocksBrowserModal-BysGB8zb.js} +9 -9
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CTU2rGWQ.js.map → SavedBlocksBrowserModal-BysGB8zb.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B9h9wI6d.js → SavedBlocksPanels-DJ4fceEM.js} +3 -3
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B9h9wI6d.js.map → SavedBlocksPanels-DJ4fceEM.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-CTY5WZum.js → SavedBlocksPickBar-DGgbqAsb.js} +5 -5
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-CTY5WZum.js.map → SavedBlocksPickBar-DGgbqAsb.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-DZ0cpe_D.js → TemplateScoringPanel-B0YcaJsR.js} +6 -6
  89. package/dist/cdn/chunks/{TemplateScoringPanel-DZ0cpe_D.js.map → TemplateScoringPanel-B0YcaJsR.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-Dqx1RyDE.js → TestEmailModal-DvZFnhWa.js} +10 -10
  91. package/dist/cdn/chunks/{TestEmailModal-Dqx1RyDE.js.map → TestEmailModal-DvZFnhWa.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DrcQhnON.js → TestEmailPanel-BdxpMiWc.js} +3 -3
  93. package/dist/cdn/chunks/{TestEmailPanel-DrcQhnON.js.map → TestEmailPanel-BdxpMiWc.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-CSeDvWVn.js → TitleEditor-CfHWnThg.js} +12 -12
  95. package/dist/cdn/chunks/{TitleEditor-CSeDvWVn.js.map → TitleEditor-CfHWnThg.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-BNBLwBxJ.js → TplModal-BMTW5bEN.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-BNBLwBxJ.js.map → TplModal-BMTW5bEN.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-cZlb0sMi.js → VersionHistoryMenu-DJGcA_RX.js} +5 -5
  99. package/dist/cdn/chunks/{VersionHistoryMenu-cZlb0sMi.js.map → VersionHistoryMenu-DJGcA_RX.js.map} +1 -1
  100. package/dist/cdn/chunks/{VersionHistoryPanels-DgrjTK3z.js → VersionHistoryPanels-2l_FLtix.js} +3 -3
  101. package/dist/cdn/chunks/{VersionHistoryPanels-DgrjTK3z.js.map → VersionHistoryPanels-2l_FLtix.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-BNq7PRun.js → VersionPreviewBanner-C8pfES5A.js} +4 -4
  103. package/dist/cdn/chunks/{VersionPreviewBanner-BNq7PRun.js.map → VersionPreviewBanner-C8pfES5A.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-BNGmmzB_.js → blockTypeIcons-JUwZtKaq.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-BNGmmzB_.js.map → blockTypeIcons-JUwZtKaq.js.map} +1 -1
  106. package/dist/{ca-DY0AYOLG.js → cdn/chunks/ca-DZSrLNXK.js} +4 -0
  107. package/dist/cdn/chunks/ca-DZSrLNXK.js.map +1 -0
  108. package/dist/cdn/chunks/{cloud-CRCcXTc5.js → cloud-CITqEHEc.js} +3 -3
  109. package/dist/cdn/chunks/{cloud-CRCcXTc5.js.map → cloud-CITqEHEc.js.map} +1 -1
  110. package/dist/cdn/chunks/{createCloudRuntime-B_HRgFxU.js → createCloudRuntime-jLhuyKds.js} +8 -8
  111. package/dist/cdn/chunks/{createCloudRuntime-B_HRgFxU.js.map → createCloudRuntime-jLhuyKds.js.map} +1 -1
  112. package/dist/{de-CYLWugqb.js → cdn/chunks/de-DbayqpK-.js} +4 -0
  113. package/dist/cdn/chunks/{de-CYLWugqb.js.map → de-DbayqpK-.js.map} +1 -1
  114. package/dist/cdn/chunks/{dist-eKG4m5Wx.js → dist-CgR3inPR.js} +3 -3
  115. package/dist/cdn/chunks/{dist-eKG4m5Wx.js.map → dist-CgR3inPR.js.map} +1 -1
  116. package/dist/cdn/chunks/{dist-2fOlspdg.js → dist-El3fQnfk.js} +4 -4
  117. package/dist/cdn/chunks/{dist-2fOlspdg.js.map → dist-El3fQnfk.js.map} +1 -1
  118. package/dist/cdn/chunks/{draggable-BLMjz0GK.js → draggable-D2vo-aQI.js} +1465 -1435
  119. package/dist/cdn/chunks/draggable-D2vo-aQI.js.map +1 -0
  120. package/dist/cdn/chunks/en-CwXyUb6-.js +2 -0
  121. package/dist/{en-C3TM249M.js → cdn/chunks/en-l0ib5X0f.js} +4 -0
  122. package/dist/cdn/chunks/en-l0ib5X0f.js.map +1 -0
  123. package/dist/cdn/chunks/{es-D1SF4nCR.js → es-CMQ-5PJP.js} +3 -1
  124. package/dist/cdn/chunks/es-CMQ-5PJP.js.map +1 -0
  125. package/dist/cdn/chunks/{extensions-Deqilwp8.js → extensions-D30V0hzj.js} +7 -7
  126. package/dist/cdn/chunks/{extensions-Deqilwp8.js.map → extensions-D30V0hzj.js.map} +1 -1
  127. package/dist/cdn/chunks/{fr-CdLhJ7kw.js → fr-DNXmZWAq.js} +3 -1
  128. package/dist/cdn/chunks/fr-DNXmZWAq.js.map +1 -0
  129. package/dist/cdn/chunks/{icons-C2kP4vOJ.js → icons-BTdLXRXn.js} +13 -13
  130. package/dist/cdn/chunks/icons-BTdLXRXn.js.map +1 -0
  131. package/dist/cdn/chunks/{keys-D7OpfE2s.js → keys-BJ770Mwm.js} +2 -2
  132. package/dist/cdn/chunks/{keys-D7OpfE2s.js.map → keys-BJ770Mwm.js.map} +1 -1
  133. package/dist/cdn/chunks/{liquid.browser-UlAOKBjI.js → liquid.browser-BPvKXNfO.js} +2 -2
  134. package/dist/cdn/chunks/{liquid.browser-UlAOKBjI.js.map → liquid.browser-BPvKXNfO.js.map} +1 -1
  135. package/dist/{nl-BvsLoyKp.js → cdn/chunks/nl-BylRRHYJ.js} +4 -0
  136. package/dist/cdn/chunks/nl-BylRRHYJ.js.map +1 -0
  137. package/dist/cdn/chunks/{preRenderCustomBlocks-CbA3RcAy.js → preRenderCustomBlocks-DyCIgmqJ.js} +2 -2
  138. package/dist/cdn/chunks/{preRenderCustomBlocks-CbA3RcAy.js.map → preRenderCustomBlocks-DyCIgmqJ.js.map} +1 -1
  139. package/dist/cdn/chunks/{pt-BR-CAGS5YXp.js → pt-BR-BVoJhpie.js} +3 -1
  140. package/dist/cdn/chunks/pt-BR-BVoJhpie.js.map +1 -0
  141. package/dist/cdn/chunks/{src-CgIXdQlX.js → src-65H3RNcb.js} +8 -8
  142. package/dist/cdn/chunks/{src-CgIXdQlX.js.map → src-65H3RNcb.js.map} +1 -1
  143. package/dist/cdn/chunks/{src-Cx70q30o.js → src-6J-yyZoD.js} +2 -2
  144. package/dist/cdn/chunks/{src-Cx70q30o.js.map → src-6J-yyZoD.js.map} +1 -1
  145. package/dist/cdn/chunks/{src-B_QJduQD.js → src-BD60gqPW.js} +72 -67
  146. package/dist/cdn/chunks/src-BD60gqPW.js.map +1 -0
  147. package/dist/cdn/chunks/{src-CnQgwcsc.js → src-CLTXM4PM.js} +166 -136
  148. package/dist/cdn/chunks/src-CLTXM4PM.js.map +1 -0
  149. package/dist/cdn/chunks/{tiptap-DOw5Yb4H.js → tiptap-Bqy-H6CT.js} +2295 -2205
  150. package/dist/cdn/chunks/tiptap-Bqy-H6CT.js.map +1 -0
  151. package/dist/cdn/chunks/{useAliveFlag-C1pwLtPO.js → useAliveFlag-DrXxPV8V.js} +2 -2
  152. package/dist/cdn/chunks/{useAliveFlag-C1pwLtPO.js.map → useAliveFlag-DrXxPV8V.js.map} +1 -1
  153. package/dist/cdn/chunks/{useCloudI18n-D4gzxtqF.js → useCloudI18n-D0AoLV0a.js} +3 -3
  154. package/dist/cdn/chunks/{useCloudI18n-D4gzxtqF.js.map → useCloudI18n-D0AoLV0a.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-Dq5gdn5i.js → useEditorCore-BQeEwEQ9.js} +356 -361
  156. package/dist/cdn/chunks/{useEditorCore-Dq5gdn5i.js.map → useEditorCore-BQeEwEQ9.js.map} +1 -1
  157. package/dist/cdn/chunks/useEditorRoot-BFGRBGts.js +10 -0
  158. package/dist/cdn/chunks/{useEditorRoot-BY-amddA.js.map → useEditorRoot-BFGRBGts.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-DYb1SgLB.js → useI18n-DIhawILp.js} +3 -3
  160. package/dist/cdn/chunks/{useI18n-DYb1SgLB.js.map → useI18n-DIhawILp.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-D-SE_XN8.js → useMergeTag-lWo7So18.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-D-SE_XN8.js.map → useMergeTag-lWo7So18.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-CJZ6EkS4.js → usePopoverPosition-DkiTLnBm.js} +3 -3
  164. package/dist/cdn/chunks/{usePopoverPosition-CJZ6EkS4.js.map → usePopoverPosition-DkiTLnBm.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-D6gyIzT1.js → useScrollToBlock-KcSAuXKz.js} +3 -3
  166. package/dist/cdn/chunks/{useScrollToBlock-D6gyIzT1.js.map → useScrollToBlock-KcSAuXKz.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1036 -1002
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/{check-Cv96tY88.js → check-CTe6VejT.js} +1 -1
  171. package/dist/{chevron-down-BwEyjSjd.js → chevron-down-BBThVMu-.js} +1 -1
  172. package/dist/{chevron-up-C6Ye-Nzc.js → chevron-up-iECwf-Bc.js} +1 -1
  173. package/dist/{circle-alert-BLt_gkcU.js → circle-alert-Z_eeykrO.js} +1 -1
  174. package/dist/{clock-D-2BI0Co.js → clock-CEj1c29j.js} +1 -1
  175. package/dist/{cloud-DXFUA8H_.js → cloud-DwJ8ebNl.js} +2 -2
  176. package/dist/{createCloudRuntime-CWPQ7puE.js → createCloudRuntime-CdXQdl34.js} +6 -6
  177. package/dist/{createLucideIcon-DGRWivCX.js → createLucideIcon-DphAT3tw.js} +3 -3
  178. package/dist/{cdn/chunks/de-CYLWugqb.js → de-DbayqpK-.js} +2 -2
  179. package/dist/{dist-DQ_4a0hb.js → dist-9fjN9cuD.js} +2 -2
  180. package/dist/{dist-WE11SQGe.js → dist-BUpBA58N.js} +2 -2
  181. package/dist/{dist-DAR13YWM.js → dist-BdIwIlKz.js} +2 -2
  182. package/dist/{dist-Btz6cFCI.js → dist-BfcqryVg.js} +4 -4
  183. package/dist/{dist-q3Puexqv.js → dist-CaR5TLiM.js} +2 -2
  184. package/dist/{dist-CkSgS-K9.js → dist-CuuPnIMy.js} +3 -3
  185. package/dist/dist-CzMzshfS.js +5 -0
  186. package/dist/{dist-B1kLn1rs.js → dist-CzVIVbSa.js} +90 -85
  187. package/dist/{dist-BIFUEhwQ.js → dist-D2P8U3p6.js} +2 -2
  188. package/dist/{dist-BtPhkQ2u.js → dist-DLaIQ5H5.js} +12 -8
  189. package/dist/{dist-BG2cHdqw.js → dist-DSgmnQ-f.js} +2 -2
  190. package/dist/dist-DTVuNn8M.js +5 -0
  191. package/dist/{dist-CHp21juN.js → dist-DifptC-U.js} +2 -2
  192. package/dist/{dist-BpHkLruF.js → dist-gWM8H2hz.js} +4 -4
  193. package/dist/{dist-BUh4MT4D.js → dist-nmzPlqlz.js} +266 -176
  194. package/dist/{cdn/chunks/en-C3TM249M.js → en-l0ib5X0f.js} +2 -2
  195. package/dist/{es-D1SF4nCR.js → es-CMQ-5PJP.js} +2 -0
  196. package/dist/{extensions-BlYe3NFn.js → extensions-Bjsdx6Vm.js} +18 -18
  197. package/dist/{fr-CdLhJ7kw.js → fr-DNXmZWAq.js} +2 -0
  198. package/dist/{image-up-KRq0lcdU.js → image-up-W1INxCu8.js} +1 -1
  199. package/dist/{info-DbmE2JAo.js → info-5t4WYKfh.js} +1 -1
  200. package/dist/{keys-CAor2T5q.js → keys-BJtoezGU.js} +1 -1
  201. package/dist/{liquid.browser-B-rGrnrQ.js → liquid.browser-CJgDDvQz.js} +1 -1
  202. package/dist/{loader-circle-dSap9DfQ.js → loader-circle-DJCZ_JMY.js} +1 -1
  203. package/dist/{message-circle-qSKKLbac.js → message-circle-Biu6lHh_.js} +1 -1
  204. package/dist/{cdn/chunks/nl-BvsLoyKp.js → nl-BylRRHYJ.js} +2 -2
  205. package/dist/{pencil-DMP8vL2F.js → pencil-DkPlMca7.js} +1 -1
  206. package/dist/{preRenderCustomBlocks-BebjKtmw.js → preRenderCustomBlocks-2KyBJocY.js} +1 -1
  207. package/dist/{pt-BR-CAGS5YXp.js → pt-BR-BVoJhpie.js} +2 -0
  208. package/dist/{refresh-cw-WXtBeMva.js → refresh-cw-DHbpkkol.js} +1 -1
  209. package/dist/{runtime-dom.esm-bundler-CHEsXNQz.js → runtime-dom.esm-bundler-Co_SPqAz.js} +180 -166
  210. package/dist/{scan-line-BTrngVuN.js → scan-line-DojwGzjU.js} +1 -1
  211. package/dist/{send-CLa8Cxmh.js → send-c6ppcE9I.js} +1 -1
  212. package/dist/{shield-check-42WZrKQu.js → shield-check-F9T4ylNK.js} +1 -1
  213. package/dist/{sparkles-DcOb0umz.js → sparkles-D-0OiTZD.js} +1 -1
  214. package/dist/style.css +1 -1
  215. package/dist/templatical-editor.js +1083 -1049
  216. package/dist/{text-align-start-zoZhXJ2T.js → text-align-start-kEEtoRrD.js} +1 -1
  217. package/dist/{trash-2-Capv4cSE.js → trash-2-DRQzhY9R.js} +1 -1
  218. package/dist/{triangle-alert-CnJUGX-6.js → triangle-alert-Bt4-GU3t.js} +1 -1
  219. package/dist/{upload-Bc0ZTywl.js → upload-D2wtjvH8.js} +1 -1
  220. package/dist/{useAliveFlag-1yBub211.js → useAliveFlag-AFbwfHlJ.js} +1 -1
  221. package/dist/{useCloudI18n-Dwo7usTl.js → useCloudI18n-BA69BpQ_.js} +2 -2
  222. package/dist/{useEditorCore-CIjO_NM9.js → useEditorCore-Du9Vx-qr.js} +873 -878
  223. package/dist/{useEditorRoot-CUIzpMYc.js → useEditorRoot-Cdo8Vhxa.js} +2 -2
  224. package/dist/{useI18n-DT_DKupw.js → useI18n-B135ASaG.js} +2 -2
  225. package/dist/{useMergeTag-CcHQCcPN.js → useMergeTag-Cx36rtrt.js} +5 -5
  226. package/dist/{usePopoverPosition-DaHz1kqb.js → usePopoverPosition-DAOHr_iM.js} +2 -2
  227. package/dist/{useScrollToBlock-C2-9xCr7.js → useScrollToBlock-B0Qpjfa4.js} +3 -3
  228. package/dist/{vue.runtime.esm-bundler-CdH_W9qX.js → vue.runtime.esm-bundler-BhOUdXMi.js} +1244 -1204
  229. package/dist/{x-CvPZ3OAd.js → x-YiG-TUGN.js} +1 -1
  230. package/package.json +25 -25
  231. package/dist/cdn/chunks/NumberWithSuffix-CWvM_I3T.js.map +0 -1
  232. package/dist/cdn/chunks/ca-DY0AYOLG.js.map +0 -1
  233. package/dist/cdn/chunks/draggable-BLMjz0GK.js.map +0 -1
  234. package/dist/cdn/chunks/en-BZlZVGwM.js +0 -2
  235. package/dist/cdn/chunks/en-C3TM249M.js.map +0 -1
  236. package/dist/cdn/chunks/es-D1SF4nCR.js.map +0 -1
  237. package/dist/cdn/chunks/fr-CdLhJ7kw.js.map +0 -1
  238. package/dist/cdn/chunks/icons-C2kP4vOJ.js.map +0 -1
  239. package/dist/cdn/chunks/nl-BvsLoyKp.js.map +0 -1
  240. package/dist/cdn/chunks/pt-BR-CAGS5YXp.js.map +0 -1
  241. package/dist/cdn/chunks/src-B_QJduQD.js.map +0 -1
  242. package/dist/cdn/chunks/src-CnQgwcsc.js.map +0 -1
  243. package/dist/cdn/chunks/tiptap-DOw5Yb4H.js.map +0 -1
  244. package/dist/cdn/chunks/useEditorRoot-BY-amddA.js +0 -10
  245. package/dist/dist-CCfNhI54.js +0 -5
  246. package/dist/dist-CMcNDUcw.js +0 -5
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@tiptap+core@3.30.3_@tiptap+pm@3.30.3/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js
1
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.30.5_@tiptap+pm@3.30.5/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js
2
2
  var e = Object.defineProperty, t = (t, n) => {
3
3
  let r = {};
4
4
  for (var i in t) e(r, i, {
@@ -3920,7 +3920,7 @@ function Er(e) {
3920
3920
  };
3921
3921
  }
3922
3922
  //#endregion
3923
- //#region ../../node_modules/.pnpm/prosemirror-view@1.42.2/node_modules/prosemirror-view/dist/index.js
3923
+ //#region ../../node_modules/.pnpm/prosemirror-view@1.42.3/node_modules/prosemirror-view/dist/index.js
3924
3924
  var M = function(e) {
3925
3925
  for (var t = 0;; t++) if (e = e.previousSibling, !e) return t;
3926
3926
  }, Dr = function(e) {
@@ -4683,7 +4683,7 @@ var B = 0, Ni = 1, Pi = 2, V = 3, Fi = class {
4683
4683
  let e = document.createElement("span");
4684
4684
  e.appendChild(a), a = e;
4685
4685
  }
4686
- a.contentEditable = "false", a.classList.add("ProseMirror-widget");
4686
+ a.hasAttribute("contenteditable") || (a.contentEditable = "false"), a.classList.add("ProseMirror-widget");
4687
4687
  }
4688
4688
  super(e, [], a, null), this.widget = t, this.widget = t, i = this;
4689
4689
  }
@@ -5725,7 +5725,14 @@ function Xa() {
5725
5725
  var Za = null;
5726
5726
  function Qa(e) {
5727
5727
  let t = window.trustedTypes;
5728
- return t ? (Za ||= t.defaultPolicy || t.createPolicy("ProseMirrorClipboard", { createHTML: (e) => e }), Za.createHTML(e)) : e;
5728
+ if (!t) return e;
5729
+ if (!Za) {
5730
+ if (Za = t.defaultPolicy) try {
5731
+ return Za.createHTML(e);
5732
+ } catch {}
5733
+ Za = t.createPolicy("ProseMirrorClipboard", { createHTML: (e) => e });
5734
+ }
5735
+ return Za.createHTML(e);
5729
5736
  }
5730
5737
  function $a(e) {
5731
5738
  let t = /^(\s*<meta [^>]*>)*/.exec(e);
@@ -5763,6 +5770,11 @@ function to(e, t) {
5763
5770
  for (let e = r.length - 2; e >= 0; e -= 2) {
5764
5771
  let t = n.nodes[r[e]];
5765
5772
  if (!t || t.hasRequiredAttrs()) break;
5773
+ try {
5774
+ t.checkAttrs(r[e + 1]);
5775
+ } catch {
5776
+ break;
5777
+ }
5766
5778
  i = s.from(t.create(r[e + 1], i)), a++, o++;
5767
5779
  }
5768
5780
  return new p(i, a, o);
@@ -7343,7 +7355,7 @@ function Ys(e) {
7343
7355
  };
7344
7356
  }
7345
7357
  //#endregion
7346
- //#region ../../node_modules/.pnpm/@tiptap+core@3.30.3_@tiptap+pm@3.30.3/node_modules/@tiptap/core/dist/index.js
7358
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.30.5_@tiptap+pm@3.30.5/node_modules/@tiptap/core/dist/index.js
7347
7359
  function Xs(e) {
7348
7360
  let { state: t, transaction: n } = e, { selection: r } = n, { doc: i } = n, { storedMarks: a } = n;
7349
7361
  return {
@@ -8077,6 +8089,15 @@ function Tl(...e) {
8077
8089
  return e.filter((e) => !!e).reduce((e, t) => {
8078
8090
  let n = { ...e };
8079
8091
  return Object.entries(t).forEach(([e, t]) => {
8092
+ if (e === "__proto__") {
8093
+ Object.defineProperty(n, e, {
8094
+ configurable: !0,
8095
+ enumerable: !0,
8096
+ value: t,
8097
+ writable: !0
8098
+ });
8099
+ return;
8100
+ }
8080
8101
  if (!n[e]) {
8081
8102
  n[e] = t;
8082
8103
  return;
@@ -8126,9 +8147,9 @@ function Al(e) {
8126
8147
  return !(e != null && (t = e.attribute) != null && t.isRequired) && "default" in (e?.attribute || {}) && (r.default = e.attribute.default), (e == null || (n = e.attribute) == null ? void 0 : n.validate) !== void 0 && (r.validate = e.attribute.validate), [e.name, r];
8127
8148
  }
8128
8149
  function jl(e, t) {
8129
- let n = Sl(e), { nodeExtensions: r, markExtensions: i } = xl(e);
8150
+ let n = Sl(e), { nodeExtensions: r, markExtensions: i } = xl(e), a = r.find((e) => Z(e, "topNode"))?.name;
8130
8151
  return new Fe({
8131
- topNode: r.find((e) => Z(e, "topNode"))?.name,
8152
+ topNode: a,
8132
8153
  nodes: Object.fromEntries(r.map((r) => {
8133
8154
  let i = n.filter((e) => e.type === r.name), a = {
8134
8155
  name: r.name,
@@ -9370,28 +9391,100 @@ function Vd(e) {
9370
9391
  return typeof e == "string";
9371
9392
  }
9372
9393
  function Hd(e) {
9373
- if (!e?.trim()) return {};
9374
- let t = {}, n = [], r = e.replace(/["']([^"']*)["']/g, (e) => (n.push(e), `__QUOTED_${n.length - 1}__`)), i = r.match(/(?:^|\s)\.([\w-]+)/g);
9375
- i && (t.class = i.map((e) => e.trim().slice(1)).join(" "));
9376
- let a = r.match(/(?:^|\s)#([\w-]+)/);
9377
- a && (t.id = a[1]), Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([, e, r]) => {
9378
- let i = parseInt(r.match(/__QUOTED_(\d+)__/)?.[1] || "0", 10), a = n[i];
9379
- a && (t[e] = a.slice(1, -1));
9380
- });
9381
- let o = r.replace(/(?:^|\s)\.([\w-]+)/g, "").replace(/(?:^|\s)#([\w-]+)/g, "").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g, "").trim();
9382
- return o && o.split(/\s+/).filter(Boolean).forEach((e) => {
9383
- e.match(/^[a-zA-Z][\w-]*$/) && (t[e] = !0);
9384
- }), t;
9394
+ return /\s/.test(e);
9385
9395
  }
9386
9396
  function Ud(e) {
9397
+ return /^[a-zA-Z]$/.test(e);
9398
+ }
9399
+ function Wd(e) {
9400
+ return /^\w$/.test(e);
9401
+ }
9402
+ function Gd(e, t) {
9403
+ for (; t < e.length && Hd(e[t]);) t += 1;
9404
+ return t;
9405
+ }
9406
+ function Kd(e, t) {
9407
+ for (; t < e.length && !Hd(e[t]);) t += 1;
9408
+ return t;
9409
+ }
9410
+ function qd(e, t, n) {
9411
+ for (; t < e.length && (Wd(e[t]) || n && e[t] === "-");) t += 1;
9412
+ return t;
9413
+ }
9414
+ function Jd(e, t) {
9415
+ let n = e[t], r = t + 1, i = qd(e, r, !0);
9416
+ return i === r ? { nextIndex: Kd(e, i) } : {
9417
+ token: {
9418
+ type: n === "." ? "class" : "id",
9419
+ name: e.slice(r, i)
9420
+ },
9421
+ nextIndex: Kd(e, i)
9422
+ };
9423
+ }
9424
+ function Yd(e, t) {
9425
+ let n = e.indexOf(e[t], t + 1);
9426
+ return { nextIndex: Kd(e, n === -1 ? t : n + 1) };
9427
+ }
9428
+ function Xd(e, t, n, r) {
9429
+ let i = r ? Gd(e, n) : n;
9430
+ if (e[i] !== "=") return;
9431
+ i = r ? Gd(e, i + 1) : i + 1;
9432
+ let a = e[i];
9433
+ if (a !== "\"" && a !== "'") return;
9434
+ let o = e.indexOf(a, i + 1);
9435
+ if (o !== -1) return {
9436
+ token: {
9437
+ type: "keyValue",
9438
+ name: t,
9439
+ value: e.slice(i + 1, o)
9440
+ },
9441
+ nextIndex: Kd(e, o + 1)
9442
+ };
9443
+ }
9444
+ function Zd(e, t, n) {
9445
+ let r = n === "pandoc", i = qd(e, t + 1, r), a = e.slice(t, i), o = Xd(e, a, i, r);
9446
+ if (o) return o;
9447
+ let s = i === e.length || Hd(e[i]);
9448
+ return {
9449
+ token: r && s ? {
9450
+ type: "boolean",
9451
+ name: a
9452
+ } : void 0,
9453
+ nextIndex: n === "shortcode" ? Kd(e, i) : i
9454
+ };
9455
+ }
9456
+ function Qd(e, t, n) {
9457
+ let r = e[t];
9458
+ return n === "pandoc" && (r === "." || r === "#") ? Jd(e, t) : r === "\"" || r === "'" ? Yd(e, t) : (n === "pandoc" ? Ud(r) : Wd(r)) ? Zd(e, t, n) : { nextIndex: Kd(e, t) };
9459
+ }
9460
+ function $d(e, t) {
9461
+ let n = [], r = 0;
9462
+ for (; r < e.length && (r = Gd(e, r), !(r >= e.length));) {
9463
+ let i = Qd(e, r, t);
9464
+ i.token && n.push(i.token), r = i.nextIndex;
9465
+ }
9466
+ return n;
9467
+ }
9468
+ function ef(e) {
9469
+ let t = {}, n = e.filter((e) => e.type === "class").map((e) => e.name), r = e.find((e) => e.type === "id");
9470
+ return n.length > 0 && (t.class = n.join(" ")), r && (t.id = r.name), e.forEach((e) => {
9471
+ e.type === "keyValue" && (t[e.name] = e.value);
9472
+ }), e.forEach((e) => {
9473
+ e.type === "boolean" && (t[e.name] = !0);
9474
+ }), t;
9475
+ }
9476
+ function tf(e) {
9477
+ return e?.trim() ? ef($d(e, "pandoc")) : {};
9478
+ }
9479
+ function nf(e) {
9387
9480
  if (!e || Object.keys(e).length === 0) return "";
9388
9481
  let t = [];
9389
9482
  return e.class && String(e.class).split(/\s+/).filter(Boolean).forEach((e) => t.push(`.${e}`)), e.id && t.push(`#${e.id}`), Object.entries(e).forEach(([e, n]) => {
9390
9483
  e !== "class" && e !== "id" && (n === !0 ? t.push(e) : n !== !1 && n != null && t.push(`${e}="${String(n)}"`));
9391
9484
  }), t.join(" ");
9392
9485
  }
9393
- function Wd(e) {
9394
- let { nodeName: t, name: n, parseAttributes: r = Hd, serializeAttributes: i = Ud, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
9486
+ function rf(e) {
9487
+ let { nodeName: t, name: n, parseAttributes: r = tf, serializeAttributes: i = nf, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
9395
9488
  if (!s) return e;
9396
9489
  let t = {};
9397
9490
  return s.forEach((n) => {
@@ -9430,8 +9523,8 @@ function Wd(e) {
9430
9523
  }
9431
9524
  };
9432
9525
  }
9433
- function Gd(e) {
9434
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Hd, serializeAttributes: a = Ud, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
9526
+ function af(e) {
9527
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = tf, serializeAttributes: a = nf, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
9435
9528
  if (!c) return e;
9436
9529
  let t = {};
9437
9530
  return c.forEach((n) => {
@@ -9503,20 +9596,17 @@ function Gd(e) {
9503
9596
  }
9504
9597
  };
9505
9598
  }
9506
- function Kd(e) {
9507
- if (!e.trim()) return {};
9508
- let t = {}, n = /(\w+)=(?:"([^"]*)"|'([^']*)')/g, r = n.exec(e);
9509
- for (; r !== null;) {
9510
- let [, i, a, o] = r;
9511
- t[i] = a || o, r = n.exec(e);
9512
- }
9513
- return t;
9599
+ function of(e) {
9600
+ let t = {};
9601
+ return $d(e, "shortcode").forEach((e) => {
9602
+ e.type === "keyValue" && (t[e.name] = e.value);
9603
+ }), t;
9514
9604
  }
9515
- function qd(e) {
9605
+ function sf(e) {
9516
9606
  return Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => `${e}="${t}"`).join(" ");
9517
9607
  }
9518
- function Jd(e) {
9519
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Kd, serializeAttributes: a = qd, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
9608
+ function cf(e) {
9609
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = of, serializeAttributes: a = sf, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
9520
9610
  if (!c) return e;
9521
9611
  let t = {};
9522
9612
  return c.forEach((n) => {
@@ -9573,7 +9663,7 @@ function Jd(e) {
9573
9663
  }
9574
9664
  };
9575
9665
  }
9576
- function Yd(e, t, n) {
9666
+ function lf(e, t, n) {
9577
9667
  let r = e.split("\n"), i = [], a = "", o = 0, s = t.baseIndentSize || 2;
9578
9668
  for (; o < r.length;) {
9579
9669
  let e = r[o], u = e.match(t.itemPattern);
@@ -9617,7 +9707,7 @@ function Yd(e, t, n) {
9617
9707
  raw: a
9618
9708
  };
9619
9709
  }
9620
- function Xd(e, t, n, r) {
9710
+ function uf(e, t, n, r) {
9621
9711
  if (!e || !Array.isArray(e.content)) return "";
9622
9712
  let i = typeof n == "function" ? n(r) : n, [a, ...o] = e.content, s = `${i}${t.renderChildren([a])}`;
9623
9713
  return o && o.length > 0 && o.forEach((e, n) => {
@@ -9628,33 +9718,33 @@ function Xd(e, t, n, r) {
9628
9718
  }
9629
9719
  }), s;
9630
9720
  }
9631
- var Zd = /* @__PURE__ */ t({
9632
- createAtomBlockMarkdownSpec: () => Wd,
9633
- createBlockMarkdownSpec: () => Gd,
9634
- createInlineMarkdownSpec: () => Jd,
9635
- parseAttributes: () => Hd,
9636
- parseIndentedBlocks: () => Yd,
9637
- renderNestedMarkdownContent: () => Xd,
9638
- serializeAttributes: () => Ud
9721
+ var df = /* @__PURE__ */ t({
9722
+ createAtomBlockMarkdownSpec: () => rf,
9723
+ createBlockMarkdownSpec: () => af,
9724
+ createInlineMarkdownSpec: () => cf,
9725
+ parseAttributes: () => tf,
9726
+ parseIndentedBlocks: () => lf,
9727
+ renderNestedMarkdownContent: () => uf,
9728
+ serializeAttributes: () => nf
9639
9729
  });
9640
- function Qd(e) {
9730
+ function ff(e) {
9641
9731
  return typeof e.type == "string" ? e.type : e.type.name;
9642
9732
  }
9643
- function $d(e, t) {
9733
+ function pf(e, t) {
9644
9734
  if (e.length !== t.length) return !1;
9645
9735
  let n = Array.from({ length: t.length }, () => !1);
9646
9736
  return e.every((e) => {
9647
- let r = Qd(e), i = t.findIndex((t, i) => !n[i] && r === Qd(t) && Ad(e.attrs, t.attrs));
9737
+ let r = ff(e), i = t.findIndex((t, i) => !n[i] && r === ff(t) && Ad(e.attrs, t.attrs));
9648
9738
  return i !== -1 && (n[i] = !0, !0);
9649
9739
  });
9650
9740
  }
9651
- function ef(e, t) {
9741
+ function mf(e, t) {
9652
9742
  let n = { ...e };
9653
9743
  return Bd(e) && Bd(t) && Object.keys(t).forEach((r) => {
9654
- Bd(t[r]) && Bd(e[r]) ? n[r] = ef(e[r], t[r]) : n[r] = t[r];
9744
+ Bd(t[r]) && Bd(e[r]) ? n[r] = mf(e[r], t[r]) : n[r] = t[r];
9655
9745
  }), n;
9656
9746
  }
9657
- function tf(e, t, n = {}) {
9747
+ function hf(e, t, n = {}) {
9658
9748
  let { state: r } = t, { doc: i, tr: a } = r, o = e;
9659
9749
  i.descendants((t, r) => {
9660
9750
  let i = a.mapping.map(r), s = a.mapping.map(r) + t.nodeSize, c = null;
@@ -9674,7 +9764,7 @@ function tf(e, t, n = {}) {
9674
9764
  }
9675
9765
  }), a.docChanged && t.view.dispatch(a);
9676
9766
  }
9677
- var nf = class {
9767
+ var gf = class {
9678
9768
  constructor(e, t, n) {
9679
9769
  this.component = e, this.editor = t.editor, this.options = { ...n }, this.mark = t.mark, this.HTMLAttributes = t.HTMLAttributes;
9680
9770
  }
@@ -9685,23 +9775,23 @@ var nf = class {
9685
9775
  return null;
9686
9776
  }
9687
9777
  updateAttributes(e, t) {
9688
- tf(t || this.mark, this.editor, e);
9778
+ hf(t || this.mark, this.editor, e);
9689
9779
  }
9690
9780
  ignoreMutation(e) {
9691
9781
  return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (Cc() || Sc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" || !this.contentDOM.contains(e.target);
9692
9782
  }
9693
- }, rf = class {
9783
+ }, _f = class {
9694
9784
  constructor(e) {
9695
9785
  this.find = e.find, this.handler = e.handler, this.undoable = e.undoable ?? !0;
9696
9786
  }
9697
- }, af = (e, t) => {
9787
+ }, vf = (e, t) => {
9698
9788
  if (pc(t)) return t.exec(e);
9699
9789
  let n = t(e);
9700
9790
  if (!n) return null;
9701
9791
  let r = [n.text];
9702
9792
  return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn("[tiptap warn]: \"inputRuleMatch.replaceWith\" must be part of \"inputRuleMatch.text\"."), r.push(n.replaceWith)), r;
9703
9793
  };
9704
- function of(e) {
9794
+ function yf(e) {
9705
9795
  let { editor: t, from: n, to: r, text: i, rules: a, plugin: o } = e, { view: s } = t;
9706
9796
  if (s.composing) return !1;
9707
9797
  let c = s.state.doc.resolve(n);
@@ -9709,7 +9799,7 @@ function of(e) {
9709
9799
  let l = !1, u = $l(c) + i;
9710
9800
  return a.forEach((e) => {
9711
9801
  if (l) return;
9712
- let a = af(u, e.find);
9802
+ let a = vf(u, e.find);
9713
9803
  if (!a) return;
9714
9804
  let d = a[0].length - i.length;
9715
9805
  if (d > 0) {
@@ -9741,7 +9831,7 @@ function of(e) {
9741
9831
  }), s.dispatch(f), l = !0);
9742
9832
  }), l;
9743
9833
  }
9744
- function sf(e) {
9834
+ function bf(e) {
9745
9835
  let { editor: t, rules: n } = e, r = new A({
9746
9836
  state: {
9747
9837
  init() {
@@ -9755,7 +9845,7 @@ function sf(e) {
9755
9845
  let { text: e } = c;
9756
9846
  e = typeof e == "string" ? e : vl(s.from(e), a.schema);
9757
9847
  let { from: i } = c, o = i + e.length;
9758
- of({
9848
+ yf({
9759
9849
  editor: t,
9760
9850
  from: i,
9761
9851
  to: o,
@@ -9768,7 +9858,7 @@ function sf(e) {
9768
9858
  },
9769
9859
  props: {
9770
9860
  handleTextInput(e, i, a, o) {
9771
- return of({
9861
+ return yf({
9772
9862
  editor: t,
9773
9863
  from: i,
9774
9864
  to: a,
@@ -9779,7 +9869,7 @@ function sf(e) {
9779
9869
  },
9780
9870
  handleDOMEvents: { compositionend: (e) => (setTimeout(() => {
9781
9871
  let { $cursor: i } = e.state.selection;
9782
- i && of({
9872
+ i && yf({
9783
9873
  editor: t,
9784
9874
  from: i.pos,
9785
9875
  to: i.pos,
@@ -9791,7 +9881,7 @@ function sf(e) {
9791
9881
  handleKeyDown(e, i) {
9792
9882
  if (i.key !== "Enter") return !1;
9793
9883
  let { $cursor: a } = e.state.selection;
9794
- return a ? of({
9884
+ return a ? yf({
9795
9885
  editor: t,
9796
9886
  from: a.pos,
9797
9887
  to: a.pos,
@@ -9805,7 +9895,7 @@ function sf(e) {
9805
9895
  });
9806
9896
  return r;
9807
9897
  }
9808
- var cf = class {
9898
+ var xf = class {
9809
9899
  constructor(e = {}) {
9810
9900
  this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = { name: this.name }, this.config = {
9811
9901
  ...this.config,
@@ -9824,7 +9914,7 @@ var cf = class {
9824
9914
  configure(e = {}) {
9825
9915
  let t = this.extend({
9826
9916
  ...this.config,
9827
- addOptions: () => ef(this.options, e)
9917
+ addOptions: () => mf(this.options, e)
9828
9918
  });
9829
9919
  return t.name = this.name, t.parent = this.parent, this.child = null, t;
9830
9920
  }
@@ -9835,7 +9925,7 @@ var cf = class {
9835
9925
  });
9836
9926
  return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
9837
9927
  }
9838
- }, lf = class e extends cf {
9928
+ }, Sf = class e extends xf {
9839
9929
  constructor(...e) {
9840
9930
  super(...e), this.type = "mark";
9841
9931
  }
@@ -9860,11 +9950,11 @@ var cf = class {
9860
9950
  let t = typeof e == "function" ? e() : e;
9861
9951
  return super.extend(t);
9862
9952
  }
9863
- }, uf = class {
9953
+ }, Cf = class {
9864
9954
  constructor(e) {
9865
9955
  this.find = e.find, this.handler = e.handler;
9866
9956
  }
9867
- }, df = (e, t, n) => {
9957
+ }, wf = (e, t, n) => {
9868
9958
  if (pc(t)) return [...e.matchAll(t)];
9869
9959
  let r = t(e, n);
9870
9960
  return r ? r.map((t) => {
@@ -9872,7 +9962,7 @@ var cf = class {
9872
9962
  return n.index = t.index, n.input = e, n.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn("[tiptap warn]: \"pasteRuleMatch.replaceWith\" must be part of \"pasteRuleMatch.text\"."), n.push(t.replaceWith)), n;
9873
9963
  }) : [];
9874
9964
  };
9875
- function ff(e) {
9965
+ function Tf(e) {
9876
9966
  let { editor: t, state: n, from: r, to: i, rule: a, pasteEvent: o, dropEvent: s } = e, { commands: c, chain: l, can: u } = new Zs({
9877
9967
  editor: t,
9878
9968
  state: n
@@ -9881,7 +9971,7 @@ function ff(e) {
9881
9971
  var f;
9882
9972
  if ((f = e.type) != null && (f = f.spec) != null && f.code || !(e.isText || e.isTextblock || e.isInline)) return;
9883
9973
  let p = e.content?.size ?? e.nodeSize ?? 0, m = Math.max(r, t), h = Math.min(i, t + p);
9884
- m >= h || df(e.isText ? e.text || "" : e.textBetween(m - t, h - t, void 0, ""), a.find, o).forEach((e) => {
9974
+ m >= h || wf(e.isText ? e.text || "" : e.textBetween(m - t, h - t, void 0, ""), a.find, o).forEach((e) => {
9885
9975
  if (e.index === void 0) return;
9886
9976
  let t = m + e.index + 1, r = t + e[0].length, i = {
9887
9977
  from: n.tr.mapping.map(t),
@@ -9900,12 +9990,12 @@ function ff(e) {
9900
9990
  });
9901
9991
  }), d.every((e) => e !== null);
9902
9992
  }
9903
- var pf = null, mf = (e) => {
9993
+ var Ef = null, Df = (e) => {
9904
9994
  var t;
9905
9995
  let n = new ClipboardEvent("paste", { clipboardData: new DataTransfer() });
9906
9996
  return (t = n.clipboardData) == null || t.setData("text/html", e), n;
9907
9997
  };
9908
- function hf(e) {
9998
+ function Of(e) {
9909
9999
  let { editor: t, rules: n } = e, r = null, i = !1, a = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, c;
9910
10000
  try {
9911
10001
  c = typeof DragEvent < "u" ? new DragEvent("drop") : null;
@@ -9917,7 +10007,7 @@ function hf(e) {
9917
10007
  state: e,
9918
10008
  transaction: s
9919
10009
  });
9920
- if (!(!ff({
10010
+ if (!(!Tf({
9921
10011
  editor: t,
9922
10012
  state: l,
9923
10013
  from: Math.max(n - 1, 0),
@@ -9937,9 +10027,9 @@ function hf(e) {
9937
10027
  return n.map((e) => new A({
9938
10028
  view(e) {
9939
10029
  let n = (n) => {
9940
- r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (pf = t);
10030
+ r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (Ef = t);
9941
10031
  }, i = () => {
9942
- pf &&= null;
10032
+ Ef &&= null;
9943
10033
  };
9944
10034
  return window.addEventListener("dragstart", n), window.addEventListener("dragend", i), { destroy() {
9945
10035
  window.removeEventListener("dragstart", n), window.removeEventListener("dragend", i);
@@ -9948,7 +10038,7 @@ function hf(e) {
9948
10038
  props: { handleDOMEvents: {
9949
10039
  drop: (e, t) => {
9950
10040
  if (a = r === e.dom.parentElement, c = t, !a) {
9951
- let e = pf;
10041
+ let e = Ef;
9952
10042
  e?.isEditable && setTimeout(() => {
9953
10043
  let t = e.state.selection;
9954
10044
  t && e.commands.deleteRange({
@@ -9970,7 +10060,7 @@ function hf(e) {
9970
10060
  if (p) {
9971
10061
  let { text: t } = f;
9972
10062
  t = typeof t == "string" ? t : vl(s.from(t), r.schema);
9973
- let { from: n } = f, i = n + t.length, a = mf(t);
10063
+ let { from: n } = f, i = n + t.length, a = Df(t);
9974
10064
  return l({
9975
10065
  rule: e,
9976
10066
  state: r,
@@ -9990,7 +10080,7 @@ function hf(e) {
9990
10080
  }
9991
10081
  }));
9992
10082
  }
9993
- var gf = class {
10083
+ var kf = class {
9994
10084
  constructor(e, t) {
9995
10085
  this.splittableMarks = [], this.nonClearableMarks = [], this.decorationManager = null, this.editor = t, this.baseExtensions = e, this.extensions = Pl(e), this.schema = jl(this.extensions, t), this.setupExtensions();
9996
10086
  }
@@ -10018,7 +10108,7 @@ var gf = class {
10018
10108
  editor: e,
10019
10109
  type: Zl(t.name, this.schema)
10020
10110
  }, r = [], i = Z(t, "addKeyboardShortcuts", n), a = {};
10021
- if (t.type === "mark" && Z(t, "exitable", n) && (a.ArrowRight = () => lf.handleExit({
10111
+ if (t.type === "mark" && Z(t, "exitable", n) && (a.ArrowRight = () => Sf.handleExit({
10022
10112
  editor: e,
10023
10113
  mark: t
10024
10114
  })), i) {
@@ -10034,7 +10124,7 @@ var gf = class {
10034
10124
  if (iu(t, e.options.enableInputRules) && s) {
10035
10125
  let t = s();
10036
10126
  if (t && t.length) {
10037
- let n = sf({
10127
+ let n = bf({
10038
10128
  editor: e,
10039
10129
  rules: t
10040
10130
  }), i = Array.isArray(n) ? n : [n];
@@ -10045,7 +10135,7 @@ var gf = class {
10045
10135
  if (iu(t, e.options.enablePasteRules) && c) {
10046
10136
  let t = c();
10047
10137
  if (t && t.length) {
10048
- let n = hf({
10138
+ let n = Of({
10049
10139
  editor: e,
10050
10140
  rules: t
10051
10141
  });
@@ -10167,7 +10257,7 @@ var gf = class {
10167
10257
  extension: t,
10168
10258
  HTMLAttributes: s,
10169
10259
  updateAttributes: (t) => {
10170
- tf(i, e, t);
10260
+ hf(i, e, t);
10171
10261
  }
10172
10262
  });
10173
10263
  }] : [];
@@ -10199,8 +10289,8 @@ var gf = class {
10199
10289
  });
10200
10290
  }
10201
10291
  };
10202
- gf.resolve = Pl, gf.sort = Nl, gf.flatten = _l;
10203
- var $ = class e extends cf {
10292
+ kf.resolve = Pl, kf.sort = Nl, kf.flatten = _l;
10293
+ var $ = class e extends xf {
10204
10294
  constructor(...e) {
10205
10295
  super(...e), this.type = "extension";
10206
10296
  }
@@ -10215,7 +10305,7 @@ var $ = class e extends cf {
10215
10305
  let t = typeof e == "function" ? e() : e;
10216
10306
  return super.extend(t);
10217
10307
  }
10218
- }, _f = $.create({
10308
+ }, Af = $.create({
10219
10309
  name: "clipboardTextSerializer",
10220
10310
  addOptions() {
10221
10311
  return { blockSeparator: void 0 };
@@ -10235,12 +10325,12 @@ var $ = class e extends cf {
10235
10325
  } }
10236
10326
  })];
10237
10327
  }
10238
- }), vf = $.create({
10328
+ }), jf = $.create({
10239
10329
  name: "commands",
10240
10330
  addCommands() {
10241
10331
  return { ...id };
10242
10332
  }
10243
- }), yf = $.create({
10333
+ }), Mf = $.create({
10244
10334
  name: "delete",
10245
10335
  onUpdate({ transaction: e, appendedTransactions: t }) {
10246
10336
  var n;
@@ -10294,7 +10384,7 @@ var $ = class e extends cf {
10294
10384
  };
10295
10385
  ((n = this.editor.options.coreExtensionOptions) == null || (n = n.delete) == null ? void 0 : n.async) ?? !0 ? setTimeout(r, 0) : r();
10296
10386
  }
10297
- }), bf = $.create({
10387
+ }), Nf = $.create({
10298
10388
  name: "drop",
10299
10389
  addProseMirrorPlugins() {
10300
10390
  return [new A({
@@ -10309,7 +10399,7 @@ var $ = class e extends cf {
10309
10399
  } }
10310
10400
  })];
10311
10401
  }
10312
- }), xf = $.create({
10402
+ }), Pf = $.create({
10313
10403
  name: "editable",
10314
10404
  addProseMirrorPlugins() {
10315
10405
  return [new A({
@@ -10317,12 +10407,12 @@ var $ = class e extends cf {
10317
10407
  props: { editable: () => this.editor.options.editable }
10318
10408
  })];
10319
10409
  }
10320
- }), Sf = new j("focusEvents"), Cf = $.create({
10410
+ }), Ff = new j("focusEvents"), If = $.create({
10321
10411
  name: "focusEvents",
10322
10412
  addProseMirrorPlugins() {
10323
10413
  let { editor: e } = this;
10324
10414
  return [new A({
10325
- key: Sf,
10415
+ key: Ff,
10326
10416
  props: { handleDOMEvents: {
10327
10417
  focus: (t, n) => {
10328
10418
  e.isFocused = !0;
@@ -10337,7 +10427,7 @@ var $ = class e extends cf {
10337
10427
  } }
10338
10428
  })];
10339
10429
  }
10340
- }), wf = $.create({
10430
+ }), Lf = $.create({
10341
10431
  name: "keymap",
10342
10432
  addKeyboardShortcuts() {
10343
10433
  let e = () => this.editor.commands.first(({ commands: e }) => [
@@ -10401,7 +10491,7 @@ var $ = class e extends cf {
10401
10491
  }
10402
10492
  })];
10403
10493
  }
10404
- }), Tf = $.create({
10494
+ }), Rf = $.create({
10405
10495
  name: "paste",
10406
10496
  addProseMirrorPlugins() {
10407
10497
  return [new A({
@@ -10415,7 +10505,7 @@ var $ = class e extends cf {
10415
10505
  } }
10416
10506
  })];
10417
10507
  }
10418
- }), Ef = $.create({
10508
+ }), zf = $.create({
10419
10509
  name: "tabindex",
10420
10510
  addOptions() {
10421
10511
  return { value: void 0 };
@@ -10426,7 +10516,7 @@ var $ = class e extends cf {
10426
10516
  props: { attributes: () => !this.editor.isEditable && this.options.value === void 0 ? {} : { tabindex: this.options.value ?? "0" } }
10427
10517
  })];
10428
10518
  }
10429
- }), Df = $.create({
10519
+ }), Bf = $.create({
10430
10520
  name: "textDirection",
10431
10521
  addOptions() {
10432
10522
  return { direction: void 0 };
@@ -10455,22 +10545,22 @@ var $ = class e extends cf {
10455
10545
  } }
10456
10546
  })];
10457
10547
  }
10458
- }), Of = /* @__PURE__ */ t({
10459
- ClipboardTextSerializer: () => _f,
10460
- Commands: () => vf,
10461
- Delete: () => yf,
10462
- Drop: () => bf,
10463
- Editable: () => xf,
10464
- FocusEvents: () => Cf,
10465
- Keymap: () => wf,
10466
- Paste: () => Tf,
10467
- Tabindex: () => Ef,
10468
- TextDirection: () => Df,
10469
- focusEventsPluginKey: () => Sf
10470
- }), kf = !1;
10471
- function Af(e) {
10472
- if (kf) return;
10473
- kf = !0;
10548
+ }), Vf = /* @__PURE__ */ t({
10549
+ ClipboardTextSerializer: () => Af,
10550
+ Commands: () => jf,
10551
+ Delete: () => Mf,
10552
+ Drop: () => Nf,
10553
+ Editable: () => Pf,
10554
+ FocusEvents: () => If,
10555
+ Keymap: () => Lf,
10556
+ Paste: () => Rf,
10557
+ Tabindex: () => zf,
10558
+ TextDirection: () => Bf,
10559
+ focusEventsPluginKey: () => Ff
10560
+ }), Hf = !1;
10561
+ function Uf(e) {
10562
+ if (Hf) return;
10563
+ Hf = !0;
10474
10564
  let t;
10475
10565
  try {
10476
10566
  t = w.fromJSON(e, {
@@ -10482,7 +10572,7 @@ function Af(e) {
10482
10572
  }
10483
10573
  t instanceof s || console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.");
10484
10574
  }
10485
- var jf = class e {
10575
+ var Wf = class e {
10486
10576
  get name() {
10487
10577
  return this.node.type.name;
10488
10578
  }
@@ -10604,7 +10694,7 @@ var jf = class e {
10604
10694
  ...e
10605
10695
  }), this.editor.view.dispatch(t);
10606
10696
  }
10607
- }, Mf = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", Nf = class extends cd {
10697
+ }, Gf = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", Kf = class extends cd {
10608
10698
  constructor(e = {}) {
10609
10699
  super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.destroyed = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.hasWarnedStaleDecorationRead = !1, this.options = {
10610
10700
  element: typeof document < "u" ? document.createElement("div") : null,
@@ -10653,7 +10743,7 @@ var jf = class e {
10653
10743
  selection: e || void 0
10654
10744
  });
10655
10745
  }
10656
- Af(this.schema), this.options.element && this.mount(this.options.element);
10746
+ Uf(this.schema), this.options.element && this.mount(this.options.element);
10657
10747
  }
10658
10748
  mount(e) {
10659
10749
  if (typeof document > "u") throw Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
@@ -10687,7 +10777,7 @@ var jf = class e {
10687
10777
  return this.commandManager ? this.commandManager.can() : Zs.createFallbackCan();
10688
10778
  }
10689
10779
  injectCSS() {
10690
- this.options.injectCSS && typeof document < "u" && (this.css = Md(Mf, this.options.injectNonce));
10780
+ this.options.injectCSS && typeof document < "u" && (this.css = Md(Gf, this.options.injectNonce));
10691
10781
  }
10692
10782
  setOptions(e = {}) {
10693
10783
  this.options = {
@@ -10745,22 +10835,22 @@ var jf = class e {
10745
10835
  createExtensionManager() {
10746
10836
  var e, t;
10747
10837
  let n = [...this.options.enableCoreExtensions ? [
10748
- xf,
10749
- _f.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
10750
- vf,
10751
- Cf,
10752
- wf,
10753
- Ef.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
10754
- bf,
10755
- Tf,
10756
- yf,
10757
- Df.configure({ direction: this.options.textDirection })
10838
+ Pf,
10839
+ Af.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
10840
+ jf,
10841
+ If,
10842
+ Lf,
10843
+ zf.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
10844
+ Nf,
10845
+ Rf,
10846
+ Mf,
10847
+ Bf.configure({ direction: this.options.textDirection })
10758
10848
  ].filter((e) => typeof this.options.enableCoreExtensions != "object" || this.options.enableCoreExtensions[e.name] !== !1) : [], ...this.options.extensions].filter((e) => [
10759
10849
  "extension",
10760
10850
  "node",
10761
10851
  "mark"
10762
10852
  ].includes(e?.type));
10763
- this.extensionManager = new gf(n, this);
10853
+ this.extensionManager = new kf(n, this);
10764
10854
  }
10765
10855
  createCommandManager() {
10766
10856
  this.commandManager = new Zs({ editor: this });
@@ -10901,23 +10991,23 @@ var jf = class e {
10901
10991
  }
10902
10992
  $pos(e) {
10903
10993
  let t = this.state.doc.resolve(e), n = e > 0 && t.nodeAfter && !t.nodeAfter.isText && t.nodeAfter.isAtom ? t.nodeAfter : null;
10904
- return new jf(t, this, !1, n);
10994
+ return new Wf(t, this, !1, n);
10905
10995
  }
10906
10996
  get $doc() {
10907
10997
  return this.$pos(0);
10908
10998
  }
10909
- }, Pf = class {
10999
+ }, qf = class {
10910
11000
  static Inline(e, t, n = {}, r) {
10911
- return new Ff(e, t, n, r);
11001
+ return new Jf(e, t, n, r);
10912
11002
  }
10913
11003
  static Node(e, t, n = {}, r) {
10914
- return new If(e, t, n, r);
11004
+ return new Yf(e, t, n, r);
10915
11005
  }
10916
11006
  static Widget(e, t, n) {
10917
11007
  let { key: r, ...i } = n;
10918
- return new Lf(e, t, r, i);
11008
+ return new Xf(e, t, r, i);
10919
11009
  }
10920
- }, Ff = class extends Pf {
11010
+ }, Jf = class extends qf {
10921
11011
  constructor(e, t, n = {}, r) {
10922
11012
  super(), this.kind = "inline", this.from = e, this.to = t, this.attrs = n, this.spec = r;
10923
11013
  }
@@ -10931,7 +11021,7 @@ var jf = class e {
10931
11021
  } : this.spec;
10932
11022
  return W.inline(this.from, this.to, this.attrs, t);
10933
11023
  }
10934
- }, If = class extends Pf {
11024
+ }, Yf = class extends qf {
10935
11025
  constructor(e, t, n = {}, r) {
10936
11026
  super(), this.kind = "node", this.from = e, this.to = t, this.attrs = n, this.spec = r;
10937
11027
  }
@@ -10945,7 +11035,7 @@ var jf = class e {
10945
11035
  } : this.spec;
10946
11036
  return W.node(this.from, this.to, this.attrs, t);
10947
11037
  }
10948
- }, Lf = class extends Pf {
11038
+ }, Xf = class extends qf {
10949
11039
  constructor(e, t, n, r) {
10950
11040
  super(), this.kind = "widget", this.pos = e, this.render = t, this.key = n, this.spec = r;
10951
11041
  }
@@ -10964,7 +11054,7 @@ var jf = class e {
10964
11054
  return W.widget(this.pos, this.render, t);
10965
11055
  }
10966
11056
  };
10967
- function Rf(e, t) {
11057
+ function Zf(e, t) {
10968
11058
  let n = e, r = n[t];
10969
11059
  if (!r) {
10970
11060
  r = {
@@ -10980,7 +11070,7 @@ function Rf(e, t) {
10980
11070
  }
10981
11071
  return r;
10982
11072
  }
10983
- function zf(e) {
11073
+ function Qf(e) {
10984
11074
  e.flushScheduled = !1;
10985
11075
  for (let [t, n] of e.pendingProps) {
10986
11076
  let r = e.renderers.get(t);
@@ -10988,13 +11078,13 @@ function zf(e) {
10988
11078
  }
10989
11079
  e.pendingProps.clear();
10990
11080
  }
10991
- function Bf(e) {
10992
- let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h = Rf(t, a);
11081
+ function $f(e) {
11082
+ let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h = Zf(t, a);
10993
11083
  if (h.renderers.has(r)) {
10994
11084
  let e = h.pendingProps.get(r) ?? h.props.get(r);
10995
- (!e || !Ad(e, i)) && (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() => zf(h))));
11085
+ (!e || !Ad(e, i)) && (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() => Qf(h))));
10996
11086
  }
10997
- return Pf.Widget(n, (e, t) => {
11087
+ return qf.Widget(n, (e, t) => {
10998
11088
  let n = {
10999
11089
  ...i,
11000
11090
  ...o(t)
@@ -11017,8 +11107,8 @@ function Bf(e) {
11017
11107
  }
11018
11108
  });
11019
11109
  }
11020
- function Vf(e) {
11021
- return new rf({
11110
+ function ep(e) {
11111
+ return new _f({
11022
11112
  find: e.find,
11023
11113
  handler: ({ state: t, range: n, match: r }) => {
11024
11114
  let i = Q(e.getAttributes, void 0, r);
@@ -11035,8 +11125,8 @@ function Vf(e) {
11035
11125
  undoable: e.undoable
11036
11126
  });
11037
11127
  }
11038
- function Hf(e) {
11039
- return new rf({
11128
+ function tp(e) {
11129
+ return new _f({
11040
11130
  find: e.find,
11041
11131
  handler: ({ state: t, range: n, match: r }) => {
11042
11132
  let i = Q(e.getAttributes, void 0, r) || {}, { tr: a } = t, o = n.from, s = n.to, c = e.type.create(i);
@@ -11054,8 +11144,8 @@ function Hf(e) {
11054
11144
  undoable: e.undoable
11055
11145
  });
11056
11146
  }
11057
- function Uf(e) {
11058
- return new rf({
11147
+ function np(e) {
11148
+ return new _f({
11059
11149
  find: e.find,
11060
11150
  handler: ({ state: t, range: n, match: r }) => {
11061
11151
  let i = t.doc.resolve(n.from), a = Q(e.getAttributes, void 0, r) || {};
@@ -11065,8 +11155,8 @@ function Uf(e) {
11065
11155
  undoable: e.undoable
11066
11156
  });
11067
11157
  }
11068
- function Wf(e) {
11069
- return new rf({
11158
+ function rp(e) {
11159
+ return new _f({
11070
11160
  find: e.find,
11071
11161
  handler: ({ state: t, range: n, match: r }) => {
11072
11162
  let i = e.replace, a = n.from, o = n.to;
@@ -11081,8 +11171,8 @@ function Wf(e) {
11081
11171
  undoable: e.undoable
11082
11172
  });
11083
11173
  }
11084
- function Gf(e) {
11085
- return new rf({
11174
+ function ip(e) {
11175
+ return new _f({
11086
11176
  find: e.find,
11087
11177
  handler: ({ state: t, range: n, match: r, chain: i }) => {
11088
11178
  let a = Q(e.getAttributes, void 0, r) || {}, o = t.tr.delete(n.from, n.to), s = o.doc.resolve(n.from).blockRange(), c = s && jt(s, e.type, a);
@@ -11104,49 +11194,49 @@ function Gf(e) {
11104
11194
  undoable: e.undoable
11105
11195
  });
11106
11196
  }
11107
- var Kf = /* @__PURE__ */ new WeakSet(), qf = /* @__PURE__ */ new WeakSet();
11108
- function Jf(e) {
11197
+ var ap = /* @__PURE__ */ new WeakSet(), op = /* @__PURE__ */ new WeakSet();
11198
+ function sp(e) {
11109
11199
  let t = e;
11110
- return Kf.add(t), t;
11200
+ return ap.add(t), t;
11111
11201
  }
11112
- function Yf(e) {
11113
- return Array.isArray(e) && Kf.has(e);
11202
+ function cp(e) {
11203
+ return Array.isArray(e) && ap.has(e);
11114
11204
  }
11115
- function Xf(e) {
11116
- return e.flatMap((e) => e == null ? [] : Array.isArray(e) && qf.has(e) && !Yf(e) ? Xf(e) : [e]);
11205
+ function lp(e) {
11206
+ return e.flatMap((e) => e == null ? [] : Array.isArray(e) && op.has(e) && !cp(e) ? lp(e) : [e]);
11117
11207
  }
11118
- function Zf(e) {
11119
- return qf.add(e.children), e.children;
11208
+ function up(e) {
11209
+ return op.add(e.children), e.children;
11120
11210
  }
11121
- function Qf(e, t) {
11211
+ function dp(e, t) {
11122
11212
  if (e === "slot") return 0;
11123
11213
  if (e instanceof Function) {
11124
11214
  let n = e(t);
11125
- return Array.isArray(n) && !Yf(n) && !qf.has(n) ? Jf(n) : n;
11215
+ return Array.isArray(n) && !cp(n) && !op.has(n) ? sp(n) : n;
11126
11216
  }
11127
11217
  let { children: n, ...r } = t ?? {};
11128
11218
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
11129
11219
  if (Array.isArray(n)) {
11130
- if (Yf(n)) return Jf([
11220
+ if (cp(n)) return sp([
11131
11221
  e,
11132
11222
  r,
11133
11223
  n
11134
11224
  ]);
11135
- if (n.length === 0) return Jf([e, r]);
11136
- let t = Xf(n);
11137
- return t.length === 0 ? Jf([e, r]) : Jf([
11225
+ if (n.length === 0) return sp([e, r]);
11226
+ let t = lp(n);
11227
+ return t.length === 0 ? sp([e, r]) : sp([
11138
11228
  e,
11139
11229
  r,
11140
11230
  ...t
11141
11231
  ]);
11142
11232
  }
11143
- return Jf(n == null ? [e, r] : [
11233
+ return sp(n == null ? [e, r] : [
11144
11234
  e,
11145
11235
  r,
11146
11236
  n
11147
11237
  ]);
11148
11238
  }
11149
- var $f = (e, t) => Qf(e, t), ep = (e) => "touches" in e, tp = class {
11239
+ var fp = (e, t) => dp(e, t), pp = (e) => "touches" in e, mp = class {
11150
11240
  constructor(e) {
11151
11241
  var t;
11152
11242
  this.directions = [
@@ -11236,7 +11326,7 @@ var $f = (e, t) => Qf(e, t), ep = (e) => "touches" in e, tp = class {
11236
11326
  e ? (this.element.style.width = `${e}px`, this.initialWidth = e) : this.initialWidth = this.element.offsetWidth, t ? (this.element.style.height = `${t}px`, this.initialHeight = t) : this.initialHeight = this.element.offsetHeight, this.initialWidth > 0 && this.initialHeight > 0 && (this.aspectRatio = this.initialWidth / this.initialHeight);
11237
11327
  }
11238
11328
  handleResizeStart(e, t) {
11239
- e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, ep(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11329
+ e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, pp(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11240
11330
  }
11241
11331
  handleResize(e, t) {
11242
11332
  if (!this.activeHandle) return;
@@ -11276,7 +11366,7 @@ var $f = (e, t) => Qf(e, t), ep = (e) => "touches" in e, tp = class {
11276
11366
  height: e / this.aspectRatio
11277
11367
  };
11278
11368
  }
11279
- }, np = tp, rp = class e extends cf {
11369
+ }, hp = mp, gp = class e extends xf {
11280
11370
  constructor(...e) {
11281
11371
  super(...e), this.type = "node";
11282
11372
  }
@@ -11291,7 +11381,7 @@ var $f = (e, t) => Qf(e, t), ep = (e) => "touches" in e, tp = class {
11291
11381
  let t = typeof e == "function" ? e() : e;
11292
11382
  return super.extend(t);
11293
11383
  }
11294
- }, ip = class {
11384
+ }, _p = class {
11295
11385
  constructor(e, t, n) {
11296
11386
  this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
11297
11387
  stopEvent: null,
@@ -11389,8 +11479,8 @@ var $f = (e, t) => Qf(e, t), ep = (e) => "touches" in e, tp = class {
11389
11479
  });
11390
11480
  }
11391
11481
  };
11392
- function ap(e) {
11393
- return new uf({
11482
+ function vp(e) {
11483
+ return new Cf({
11394
11484
  find: e.find,
11395
11485
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
11396
11486
  let a = Q(e.getAttributes, void 0, r, i);
@@ -11404,8 +11494,8 @@ function ap(e) {
11404
11494
  }
11405
11495
  });
11406
11496
  }
11407
- function op(e) {
11408
- return new uf({
11497
+ function yp(e) {
11498
+ return new Cf({
11409
11499
  find: e.find,
11410
11500
  handler({ match: t, chain: n, range: r, pasteEvent: i }) {
11411
11501
  let a = Q(e.getAttributes, void 0, t, i), o = Q(e.getContent, void 0, a);
@@ -11418,8 +11508,8 @@ function op(e) {
11418
11508
  }
11419
11509
  });
11420
11510
  }
11421
- function sp(e) {
11422
- return new uf({
11511
+ function bp(e) {
11512
+ return new Cf({
11423
11513
  find: e.find,
11424
11514
  handler: ({ state: t, range: n, match: r }) => {
11425
11515
  let i = e.replace, a = n.from, o = n.to;
@@ -11433,7 +11523,7 @@ function sp(e) {
11433
11523
  }
11434
11524
  });
11435
11525
  }
11436
- var cp = class {
11526
+ var xp = class {
11437
11527
  constructor(e) {
11438
11528
  this.transaction = e, this.currentStep = this.transaction.steps.length;
11439
11529
  }
@@ -11449,4 +11539,4 @@ var cp = class {
11449
11539
  }
11450
11540
  };
11451
11541
  //#endregion
11452
- export { Vl as $, _u as $t, Xs as A, Ou as An, Sc as At, kc as B, Ys as Bn, Jc as Bt, Ad as C, Yd as Cn, $l as Ct, id as D, Xd as Dn, Ol as Dt, fl as E, Wl as En, $f as Et, Md as F, Wf as Fn, Ld as Ft, ml as G, j as Gn, Bd as Gt, Nd as H, G as Hn, su as Ht, Bf as I, sp as In, yl as It, hl as J, _t as Jn, fu as Jt, Ml as K, E as Kn, uu as Kt, Fd as L, Uf as Ln, au as Lt, Jd as M, Ud as Mn, ru as Mt, Tu as N, Nl as Nn, bl as Nt, Wd as O, Pl as On, sf as Ot, jc as P, xl as Pn, iu as Pt, Ll as Q, gu as Qt, Fc as R, tf as Rn, Gc as Rt, Lf as S, Hd as Sn, Rl as St, jd as T, Eu as Tn, wu as Tt, Of as U, O as Un, cu as Ut, Id as V, W as Vn, ou as Vt, pl as W, A as Wn, Rd as Wt, Dl as X, s as Xn, mu as Xt, _l as Y, Yt as Yn, pu as Yt, Il as Z, p as Zn, hu as Zt, ip as _, ef as _n, Zl as _t, Nf as a, Su as an, vl as at, np as b, op as bn, Pd as bt, Zf as c, Vd as cn, Y as ct, Cu as d, Od as dn, Hl as dt, vu as en, Ul as et, lf as f, Vf as fn, J as ft, jf as g, Tl as gn, jl as gt, If as h, $d as hn, Fl as ht, kd as i, lu as in, Z as it, ll as j, Nc as jn, nu as jt, Gd as k, xc as kn, tu as kt, Ff as l, bc as ln, Jl as lt, rp as m, Zd as mn, El as mt, ed as n, bu as nn, Kl as nt, cf as o, pc as on, dl as ot, nf as p, ap as pn, Xl as pt, gl as q, D as qn, du as qt, Pf as r, xu as rn, ql as rt, $ as s, wc as sn, _c as st, Zs as t, yu as tn, Sl as tt, rf as u, Cc as un, Yl as ut, uf as v, X as vn, $c as vt, Q as w, hf as wn, Bl as wt, cp as x, mc as xn, zl as xt, tp as y, Hf as yn, Ql as yt, el as z, Gf as zn, eu as zt };
11542
+ export { Vl as $, _u as $t, Xs as A, Ou as An, Sc as At, kc as B, Ys as Bn, Jc as Bt, Ad as C, lf as Cn, $l as Ct, id as D, uf as Dn, Ol as Dt, fl as E, Wl as En, fp as Et, Md as F, rp as Fn, Ld as Ft, ml as G, j as Gn, Bd as Gt, Nd as H, G as Hn, su as Ht, $f as I, bp as In, yl as It, hl as J, _t as Jn, fu as Jt, Ml as K, E as Kn, uu as Kt, Fd as L, np as Ln, au as Lt, cf as M, nf as Mn, ru as Mt, Tu as N, Nl as Nn, bl as Nt, rf as O, Pl as On, bf as Ot, jc as P, xl as Pn, iu as Pt, Ll as Q, gu as Qt, Fc as R, hf as Rn, Gc as Rt, Xf as S, tf as Sn, Rl as St, jd as T, Eu as Tn, wu as Tt, Vf as U, O as Un, cu as Ut, Id as V, W as Vn, ou as Vt, pl as W, A as Wn, Rd as Wt, Dl as X, s as Xn, mu as Xt, _l as Y, Yt as Yn, pu as Yt, Il as Z, p as Zn, hu as Zt, _p as _, mf as _n, Zl as _t, Kf as a, Su as an, vl as at, hp as b, yp as bn, Pd as bt, up as c, Vd as cn, Y as ct, Cu as d, Od as dn, Hl as dt, vu as en, Ul as et, Sf as f, ep as fn, J as ft, Wf as g, Tl as gn, jl as gt, Yf as h, pf as hn, Fl as ht, kd as i, lu as in, Z as it, ll as j, Nc as jn, nu as jt, af as k, xc as kn, tu as kt, Jf as l, bc as ln, Jl as lt, gp as m, df as mn, El as mt, ed as n, bu as nn, Kl as nt, xf as o, pc as on, dl as ot, gf as p, vp as pn, Xl as pt, gl as q, D as qn, du as qt, qf as r, xu as rn, ql as rt, $ as s, wc as sn, _c as st, Zs as t, yu as tn, Sl as tt, _f as u, Cc as un, Yl as ut, Cf as v, X as vn, $c as vt, Q as w, Of as wn, Bl as wt, xp as x, mc as xn, zl as xt, mp as y, tp as yn, Ql as yt, el as z, ip as zn, eu as zt };