@templatical/editor 0.25.0 → 0.25.2

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 (216) hide show
  1. package/dist/{AiChatSidebar-CIkS8DsO.js → AiChatSidebar-JLsbPnsH.js} +14 -14
  2. package/dist/{AiFeatureMenu-Cji1LBJJ.js → AiFeatureMenu-BvA-lViN.js} +7 -7
  3. package/dist/{BlockIssueBadge-BQiT0FML.js → BlockIssueBadge-Cf0-GC3o.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DAnwZofk.js → BlockPreviewCanvas-CnJIM5TO.js} +3 -3
  5. package/dist/{CloudEditor-CXaft6Ej.js → CloudEditor-Caq7z4-7.js} +25 -25
  6. package/dist/{CollaboratorBar-BR-rL2wG.js → CollaboratorBar-BFz4LgA0.js} +4 -4
  7. package/dist/{ColorPicker-B4ArSUhy.js → ColorPicker-B5xXWWX5.js} +6 -6
  8. package/dist/{CommentsSidebar-Bm5GLDts.js → CommentsSidebar-CGihWwn9.js} +15 -15
  9. package/dist/{CountdownBlock-CIVAQDVu.js → CountdownBlock-DuyvGcr8.js} +3 -3
  10. package/dist/{CountdownToolbar-DBmb3tlb.js → CountdownToolbar-DpNCZAUI.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-CnyJ8L-j.js → DesignReferenceSidebar-CiIHHiil.js} +11 -11
  12. package/dist/{IssuesPanel-D3XgmYCt.js → IssuesPanel-CUkmAC_S.js} +8 -8
  13. package/dist/{LoadingTrack-XK_eeUdq.js → LoadingTrack-BexpNuTV.js} +1 -1
  14. package/dist/{MergeTagModeToggle-BK0fI3P2.js → MergeTagModeToggle-C6nS3qri.js} +5 -5
  15. package/dist/{MergeTagSuggestion-D0OHRv7L.js → MergeTagSuggestion-98fAcuM-.js} +26 -24
  16. package/dist/{NumberWithSuffix-Cjj9UNIp.js → NumberWithSuffix-DB-1GNvx.js} +2 -2
  17. package/dist/{ParagraphEditor-jGnbJEA2.js → ParagraphEditor-NgW-T9YV.js} +114 -97
  18. package/dist/{RichTextEditorContent-DaaKdzjb.js → RichTextEditorContent-CN7OVR6u.js} +8 -8
  19. package/dist/{SaveBlockDialog-B3ngEldp.js → SaveBlockDialog-lgcmhAsO.js} +10 -10
  20. package/dist/{SavedBlocksBrowserModal-DawN3XaB.js → SavedBlocksBrowserModal-3u247V2z.js} +11 -11
  21. package/dist/{SavedBlocksPanels-eDC9Y46N.js → SavedBlocksPanels-Dh6dABJt.js} +2 -2
  22. package/dist/{SavedBlocksPickBar-CQbbXmzj.js → SavedBlocksPickBar-Bo82D3Qy.js} +4 -4
  23. package/dist/{SnapshotHistory-COxKtHM-.js → SnapshotHistory-Dsb1i40w.js} +16 -16
  24. package/dist/{TemplateScoringPanel-bUuqOO1z.js → TemplateScoringPanel-Bzd_YSag.js} +15 -15
  25. package/dist/{TestEmailModal-CytkbZVQ.js → TestEmailModal-DvqDTOcO.js} +10 -10
  26. package/dist/{TestEmailPanel-CHUY7VZn.js → TestEmailPanel-BXoVnAqu.js} +2 -2
  27. package/dist/{TitleEditor-aMR1bOyY.js → TitleEditor-DWSi998C.js} +12 -12
  28. package/dist/{TplModal-fmYNYdyp.js → TplModal-DKn0h2qe.js} +5 -5
  29. package/dist/{blockTypeIcons-C6b9rg88.js → blockTypeIcons-DKlza6aR.js} +2 -2
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/{ca-8Dvbwo50.js → ca-D1zgI9fQ.js} +1 -0
  32. package/dist/cdn/chunks/{AiChatSidebar-bkBKpNgE.js → AiChatSidebar-BY1Iy-e8.js} +14 -14
  33. package/dist/cdn/chunks/{AiChatSidebar-bkBKpNgE.js.map → AiChatSidebar-BY1Iy-e8.js.map} +1 -1
  34. package/dist/cdn/chunks/{AiFeatureMenu-CI4SYTq2.js → AiFeatureMenu-BS4Rek6j.js} +6 -6
  35. package/dist/cdn/chunks/{AiFeatureMenu-CI4SYTq2.js.map → AiFeatureMenu-BS4Rek6j.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockIssueBadge-CRnx8Dv9.js → BlockIssueBadge-BcIQUe_Q.js} +5 -5
  37. package/dist/cdn/chunks/{BlockIssueBadge-CRnx8Dv9.js.map → BlockIssueBadge-BcIQUe_Q.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-CXCWhqbp.js → BlockPreviewCanvas-oND1iXLL.js} +4 -4
  39. package/dist/cdn/chunks/{BlockPreviewCanvas-CXCWhqbp.js.map → BlockPreviewCanvas-oND1iXLL.js.map} +1 -1
  40. package/dist/cdn/chunks/{CloudEditor-D-t7RyDh.js → CloudEditor-BaqiFbf0.js} +28 -28
  41. package/dist/cdn/chunks/{CloudEditor-D-t7RyDh.js.map → CloudEditor-BaqiFbf0.js.map} +1 -1
  42. package/dist/cdn/chunks/{CollaboratorBar-DcXYo47v.js → CollaboratorBar-DF02nTwF.js} +5 -5
  43. package/dist/cdn/chunks/{CollaboratorBar-DcXYo47v.js.map → CollaboratorBar-DF02nTwF.js.map} +1 -1
  44. package/dist/cdn/chunks/{ColorPicker-_1O7YU2z.js → ColorPicker-BXH44v2H.js} +7 -7
  45. package/dist/cdn/chunks/{ColorPicker-_1O7YU2z.js.map → ColorPicker-BXH44v2H.js.map} +1 -1
  46. package/dist/cdn/chunks/{CommentsSidebar-BEgLBYX-.js → CommentsSidebar-B9bWvvbl.js} +10 -10
  47. package/dist/cdn/chunks/{CommentsSidebar-BEgLBYX-.js.map → CommentsSidebar-B9bWvvbl.js.map} +1 -1
  48. package/dist/cdn/chunks/{CountdownBlock-CPnQA44g.js → CountdownBlock-BTpRd0Hn.js} +4 -4
  49. package/dist/cdn/chunks/{CountdownBlock-CPnQA44g.js.map → CountdownBlock-BTpRd0Hn.js.map} +1 -1
  50. package/dist/cdn/chunks/{CountdownToolbar-Cdo-30U4.js → CountdownToolbar-CW10rbWt.js} +5 -5
  51. package/dist/cdn/chunks/{CountdownToolbar-Cdo-30U4.js.map → CountdownToolbar-CW10rbWt.js.map} +1 -1
  52. package/dist/cdn/chunks/{DesignReferenceSidebar-DPqBr-ut.js → DesignReferenceSidebar-BXjH47QC.js} +9 -9
  53. package/dist/cdn/chunks/{DesignReferenceSidebar-DPqBr-ut.js.map → DesignReferenceSidebar-BXjH47QC.js.map} +1 -1
  54. package/dist/cdn/chunks/{IssuesPanel-DoQWb23r.js → IssuesPanel-DStHCHfr.js} +7 -7
  55. package/dist/cdn/chunks/{IssuesPanel-DoQWb23r.js.map → IssuesPanel-DStHCHfr.js.map} +1 -1
  56. package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js → LoadingTrack-DQowK3MV.js} +2 -2
  57. package/dist/cdn/chunks/{LoadingTrack-G2tuXqCJ.js.map → LoadingTrack-DQowK3MV.js.map} +1 -1
  58. package/dist/cdn/chunks/{MergeTagModeToggle-CWuVC3MU.js → MergeTagModeToggle-BCmQg4Qe.js} +5 -5
  59. package/dist/cdn/chunks/{MergeTagModeToggle-CWuVC3MU.js.map → MergeTagModeToggle-BCmQg4Qe.js.map} +1 -1
  60. package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js → MergeTagSuggestion-BgExdloL.js} +3 -3
  61. package/dist/cdn/chunks/{MergeTagSuggestion-Ces5Ua78.js.map → MergeTagSuggestion-BgExdloL.js.map} +1 -1
  62. package/dist/cdn/chunks/{NumberWithSuffix-DQ4sgvt5.js → NumberWithSuffix-BANVbpT0.js} +3 -3
  63. package/dist/cdn/chunks/{NumberWithSuffix-DQ4sgvt5.js.map → NumberWithSuffix-BANVbpT0.js.map} +1 -1
  64. package/dist/cdn/chunks/{ParagraphEditor-Uv5LPF3W.js → ParagraphEditor-DqilB4_f.js} +142 -132
  65. package/dist/cdn/chunks/ParagraphEditor-DqilB4_f.js.map +1 -0
  66. package/dist/cdn/chunks/{RichTextEditorContent-Bt3s09qY.js → RichTextEditorContent-BeJx4LVH.js} +7 -7
  67. package/dist/cdn/chunks/{RichTextEditorContent-Bt3s09qY.js.map → RichTextEditorContent-BeJx4LVH.js.map} +1 -1
  68. package/dist/cdn/chunks/{SaveBlockDialog-BAew6EFd.js → SaveBlockDialog-Dm31xRZy.js} +8 -8
  69. package/dist/cdn/chunks/{SaveBlockDialog-BAew6EFd.js.map → SaveBlockDialog-Dm31xRZy.js.map} +1 -1
  70. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Dn4IJDJW.js → SavedBlocksBrowserModal-Tp37b4y7.js} +9 -9
  71. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Dn4IJDJW.js.map → SavedBlocksBrowserModal-Tp37b4y7.js.map} +1 -1
  72. package/dist/cdn/chunks/{SavedBlocksPanels-B62U5DYW.js → SavedBlocksPanels-ElerTTa_.js} +3 -3
  73. package/dist/cdn/chunks/{SavedBlocksPanels-B62U5DYW.js.map → SavedBlocksPanels-ElerTTa_.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksPickBar-CyRKZg2T.js → SavedBlocksPickBar-QHJ-Mjx0.js} +7 -7
  75. package/dist/cdn/chunks/{SavedBlocksPickBar-CyRKZg2T.js.map → SavedBlocksPickBar-QHJ-Mjx0.js.map} +1 -1
  76. package/dist/cdn/chunks/{SnapshotHistory-QQt0DKey.js → SnapshotHistory-jogWGLB-.js} +12 -12
  77. package/dist/cdn/chunks/{SnapshotHistory-QQt0DKey.js.map → SnapshotHistory-jogWGLB-.js.map} +1 -1
  78. package/dist/cdn/chunks/{TemplateScoringPanel-BwyCMcit.js → TemplateScoringPanel-B2XIOTl-.js} +52 -52
  79. package/dist/cdn/chunks/{TemplateScoringPanel-BwyCMcit.js.map → TemplateScoringPanel-B2XIOTl-.js.map} +1 -1
  80. package/dist/cdn/chunks/{TestEmailModal-B5UQkDJp.js → TestEmailModal-BcPjQygV.js} +9 -9
  81. package/dist/cdn/chunks/{TestEmailModal-B5UQkDJp.js.map → TestEmailModal-BcPjQygV.js.map} +1 -1
  82. package/dist/cdn/chunks/{TestEmailPanel-CvuBq4RA.js → TestEmailPanel-1zxRa00s.js} +3 -3
  83. package/dist/cdn/chunks/{TestEmailPanel-CvuBq4RA.js.map → TestEmailPanel-1zxRa00s.js.map} +1 -1
  84. package/dist/cdn/chunks/{TitleEditor-B9W954u9.js → TitleEditor-DTrmublj.js} +14 -14
  85. package/dist/cdn/chunks/{TitleEditor-B9W954u9.js.map → TitleEditor-DTrmublj.js.map} +1 -1
  86. package/dist/cdn/chunks/{TplModal-B8UsvWc8.js → TplModal-By50gtwa.js} +5 -5
  87. package/dist/cdn/chunks/{TplModal-B8UsvWc8.js.map → TplModal-By50gtwa.js.map} +1 -1
  88. package/dist/cdn/chunks/blockTypeIcons-BhFhHuFt.js +21 -0
  89. package/dist/cdn/chunks/{blockTypeIcons-B8s3_ahs.js.map → blockTypeIcons-BhFhHuFt.js.map} +1 -1
  90. package/dist/cdn/chunks/{ca-8Dvbwo50.js → ca-D1zgI9fQ.js} +2 -1
  91. package/dist/cdn/chunks/ca-D1zgI9fQ.js.map +1 -0
  92. package/dist/cdn/chunks/{cloud-DOaGUdR0.js → cloud-B0f7Ub8f.js} +3 -3
  93. package/dist/cdn/chunks/{cloud-DOaGUdR0.js.map → cloud-B0f7Ub8f.js.map} +1 -1
  94. package/dist/cdn/chunks/{de-CieSMCUp.js → de-DHra3lvx.js} +2 -1
  95. package/dist/cdn/chunks/de-DHra3lvx.js.map +1 -0
  96. package/dist/cdn/chunks/{dist-lZgXNk4G.js → dist-B4VIlp1g.js} +3 -3
  97. package/dist/cdn/chunks/{dist-lZgXNk4G.js.map → dist-B4VIlp1g.js.map} +1 -1
  98. package/dist/cdn/chunks/{dist-B8AX9np4.js → dist-H51neg3K.js} +10 -8
  99. package/dist/cdn/chunks/{dist-B8AX9np4.js.map → dist-H51neg3K.js.map} +1 -1
  100. package/dist/cdn/chunks/{draggable-JcMTNF3U.js → draggable-Z4XXmbPC.js} +556 -522
  101. package/dist/cdn/chunks/draggable-Z4XXmbPC.js.map +1 -0
  102. package/dist/cdn/chunks/{en-D0t_2Fq_.js → en-DlqX2YWZ.js} +2 -1
  103. package/dist/cdn/chunks/en-DlqX2YWZ.js.map +1 -0
  104. package/dist/cdn/chunks/{es-DwDoNuLM.js → es-Cuss2snv.js} +2 -1
  105. package/dist/cdn/chunks/es-Cuss2snv.js.map +1 -0
  106. package/dist/cdn/chunks/{extensions-5jgtarD-.js → extensions-Dq0D79tq.js} +6 -6
  107. package/dist/cdn/chunks/{extensions-5jgtarD-.js.map → extensions-Dq0D79tq.js.map} +1 -1
  108. package/dist/cdn/chunks/{fr-CSEEzv1_.js → fr-Cm85vB2g.js} +2 -1
  109. package/dist/cdn/chunks/fr-Cm85vB2g.js.map +1 -0
  110. package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
  111. package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
  112. package/dist/cdn/chunks/{icons-Cp4ZIJw-.js → icons-C_kRN0_C.js} +104 -97
  113. package/dist/cdn/chunks/icons-C_kRN0_C.js.map +1 -0
  114. package/dist/cdn/chunks/{keys-BxPCfHBH.js → keys-DsoX52o_.js} +2 -2
  115. package/dist/cdn/chunks/{keys-BxPCfHBH.js.map → keys-DsoX52o_.js.map} +1 -1
  116. package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-DrGys_ek.js} +22 -20
  117. package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js.map → liquid.browser-DrGys_ek.js.map} +1 -1
  118. package/dist/cdn/chunks/{nl-xyk1T2mA.js → nl-dmiIX7oT.js} +2 -1
  119. package/dist/cdn/chunks/nl-dmiIX7oT.js.map +1 -0
  120. package/dist/cdn/chunks/{pt-BR-yr6uOJgn.js → pt-BR-CaIG-7EM.js} +2 -1
  121. package/dist/cdn/chunks/pt-BR-CaIG-7EM.js.map +1 -0
  122. package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
  123. package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
  124. package/dist/cdn/chunks/{src-C417zeUg.js → src-Aea1Vl1H.js} +2 -2
  125. package/dist/cdn/chunks/{src-C417zeUg.js.map → src-Aea1Vl1H.js.map} +1 -1
  126. package/dist/cdn/chunks/{src-Dpj0x27M.js → src-CRvTVX4F.js} +427 -424
  127. package/dist/cdn/chunks/{src-Dpj0x27M.js.map → src-CRvTVX4F.js.map} +1 -1
  128. package/dist/cdn/chunks/{src-B8W42vT-.js → src-_GNJgPcS.js} +216 -176
  129. package/dist/cdn/chunks/src-_GNJgPcS.js.map +1 -0
  130. package/dist/cdn/chunks/{styles-DANwMzW2.js → styles-znpPfrFd.js} +79 -79
  131. package/dist/cdn/chunks/{styles-DANwMzW2.js.map → styles-znpPfrFd.js.map} +1 -1
  132. package/dist/cdn/chunks/{tiptap-rsib432n.js → tiptap-C5vzWlHv.js} +225 -183
  133. package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +1 -0
  134. package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js → useAliveFlag-4IDYQRNu.js} +2 -2
  135. package/dist/cdn/chunks/{useAliveFlag-CseYNikC.js.map → useAliveFlag-4IDYQRNu.js.map} +1 -1
  136. package/dist/cdn/chunks/{useCloudI18n-CjVzv11v.js → useCloudI18n-D4JpHTPk.js} +3 -3
  137. package/dist/cdn/chunks/{useCloudI18n-CjVzv11v.js.map → useCloudI18n-D4JpHTPk.js.map} +1 -1
  138. package/dist/cdn/chunks/{useEditorCore-DfW-thCr.js → useEditorCore-BMXBmdd8.js} +28 -28
  139. package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +1 -0
  140. package/dist/cdn/chunks/{useI18n-DniEFeIl.js → useI18n-BvcEYzrI.js} +3 -3
  141. package/dist/cdn/chunks/{useI18n-DniEFeIl.js.map → useI18n-BvcEYzrI.js.map} +1 -1
  142. package/dist/cdn/chunks/{useMergeTag-Bk9_f5cc.js → useMergeTag-BSdxMUzg.js} +3 -3
  143. package/dist/cdn/chunks/{useMergeTag-Bk9_f5cc.js.map → useMergeTag-BSdxMUzg.js.map} +1 -1
  144. package/dist/cdn/chunks/{usePopoverPosition-C4xFJCJ2.js → usePopoverPosition-ig-71caO.js} +3 -3
  145. package/dist/cdn/chunks/{usePopoverPosition-C4xFJCJ2.js.map → usePopoverPosition-ig-71caO.js.map} +1 -1
  146. package/dist/cdn/editor.js +15 -15
  147. package/dist/{check-CIhIDh4h.js → check-COV27dGb.js} +1 -1
  148. package/dist/{chevron-down-CZ0m6G3s.js → chevron-down-vsU88vcr.js} +1 -1
  149. package/dist/{chevron-up-BH_tJLeb.js → chevron-up-RrZ0Rjn9.js} +1 -1
  150. package/dist/{circle-alert-DkEXnGPV.js → circle-alert-B6GlHmmi.js} +1 -1
  151. package/dist/{clock-BDIJZUET.js → clock-egOt8zjQ.js} +1 -1
  152. package/dist/{cloud-BZn3jqoL.js → cloud-D-2StbvU.js} +1 -1
  153. package/dist/{createLucideIcon-AEltGIse.js → createLucideIcon-D6cqT5Pm.js} +3 -3
  154. package/dist/{de-CieSMCUp.js → de-DHra3lvx.js} +1 -0
  155. package/dist/{dist-iCEDH3cC.js → dist-B56SufAv.js} +1 -1
  156. package/dist/{dist-CkPvZCld.js → dist-BQZkRg05.js} +1 -1
  157. package/dist/{dist-DT1XnEnj.js → dist-BpKxrUi2.js} +2 -2
  158. package/dist/{dist-CcQFPJMF.js → dist-CHxPjcxA.js} +181 -145
  159. package/dist/{dist-BxbTVeY0.js → dist-CqV4XslQ.js} +1 -1
  160. package/dist/{dist-Dx71pluS.js → dist-D4GoAr2g.js} +9 -7
  161. package/dist/{dist-DSIgxp0v.js → dist-DHwnYYx0.js} +1 -1
  162. package/dist/{dist-DX4x6mQ1.js → dist-Du95Y9M3.js} +1 -1
  163. package/dist/{dist-B6Px6GPj.js → dist-DzzTB4eE.js} +1 -1
  164. package/dist/{dist-DyCHUyRR.js → dist-GUZZpDK3.js} +1 -1
  165. package/dist/{dist-nR6mxyqI.js → dist-MwT7T6Xp.js} +1 -1
  166. package/dist/{dist-CIqhVQ1O.js → dist-UkG5ZJ1P.js} +17 -15
  167. package/dist/{dist-CRH880TV.js → dist-vpuiQ7_Q.js} +1 -1
  168. package/dist/{en-D0t_2Fq_.js → en-DlqX2YWZ.js} +1 -0
  169. package/dist/{es-DwDoNuLM.js → es-Cuss2snv.js} +1 -0
  170. package/dist/{extensions-BjvyU9Ea.js → extensions-y6KjLr9t.js} +7 -7
  171. package/dist/{fr-CSEEzv1_.js → fr-Cm85vB2g.js} +1 -0
  172. package/dist/{image-up-8ktdYdaZ.js → image-up-CycES-MQ.js} +1 -1
  173. package/dist/{info-CvrCgTLH.js → info-BUdvm046.js} +1 -1
  174. package/dist/{keys-BFPiNAIn.js → keys-fwF3qZax.js} +1 -1
  175. package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-Di5zMIEx.js} +21 -19
  176. package/dist/{list-checks-yzGT93ZL.js → list-checks-BAeuuATD.js} +1 -1
  177. package/dist/{loader-circle-B6euendB.js → loader-circle-L5yuAx_j.js} +1 -1
  178. package/dist/{message-circle-BMldLVcA.js → message-circle-DRdaapVc.js} +1 -1
  179. package/dist/{nl-xyk1T2mA.js → nl-dmiIX7oT.js} +1 -0
  180. package/dist/{pencil-CkKkSd6N.js → pencil-BfErVPf_.js} +1 -1
  181. package/dist/{pt-BR-yr6uOJgn.js → pt-BR-CaIG-7EM.js} +1 -0
  182. package/dist/{refresh-cw-fBPgB97G.js → refresh-cw-D0PYatER.js} +1 -1
  183. package/dist/{runtime-dom.esm-bundler-CBbDt7sw.js → runtime-dom.esm-bundler-CepEmvwF.js} +172 -168
  184. package/dist/{scan-line-CRoEOUiK.js → scan-line-Byi3fJcr.js} +1 -1
  185. package/dist/{send-B9Tt2qBi.js → send-DuyNexMY.js} +1 -1
  186. package/dist/{shield-check-QfZkYeIo.js → shield-check-BkkN_1qw.js} +1 -1
  187. package/dist/{sparkles-8UeMmZb8.js → sparkles-DAw2sBXk.js} +1 -1
  188. package/dist/{styles-C9GM-bBC.js → styles-BzwheHH_.js} +32 -32
  189. package/dist/templatical-editor.js +17 -17
  190. package/dist/{text-align-start-Dn8uIheW.js → text-align-start-Ba3xJKn6.js} +1 -1
  191. package/dist/{trash-2-DDyvqj0E.js → trash-2-CapEBXBI.js} +1 -1
  192. package/dist/{triangle-alert-B3PydLzl.js → triangle-alert-52pdw8jI.js} +1 -1
  193. package/dist/{upload-hE8ItfyG.js → upload-oAgigC31.js} +1 -1
  194. package/dist/{useAliveFlag-AfoTE_AY.js → useAliveFlag-cvyBxHp7.js} +1 -1
  195. package/dist/{useCloudI18n-B2lItQ6O.js → useCloudI18n-DKVm6PCa.js} +2 -2
  196. package/dist/{useEditorCore-Ck_hBiGA.js → useEditorCore-BhjEMSeE.js} +23 -23
  197. package/dist/{useI18n-C1KcdX_K.js → useI18n-DoVKdCTH.js} +2 -2
  198. package/dist/{useMergeTag-DHCwRMfH.js → useMergeTag-DTSOQnyr.js} +2 -2
  199. package/dist/{usePopoverPosition-ClnEh_Cp.js → usePopoverPosition-C0dPEF4X.js} +4 -4
  200. package/dist/{vue.runtime.esm-bundler-Xpz-L9Fn.js → vue.runtime.esm-bundler-D1diBMsm.js} +297 -251
  201. package/dist/{x-C4lETLDx.js → x-DvBgbDuf.js} +1 -1
  202. package/package.json +11 -11
  203. package/dist/cdn/chunks/ParagraphEditor-Uv5LPF3W.js.map +0 -1
  204. package/dist/cdn/chunks/blockTypeIcons-B8s3_ahs.js +0 -21
  205. package/dist/cdn/chunks/ca-8Dvbwo50.js.map +0 -1
  206. package/dist/cdn/chunks/de-CieSMCUp.js.map +0 -1
  207. package/dist/cdn/chunks/draggable-JcMTNF3U.js.map +0 -1
  208. package/dist/cdn/chunks/en-D0t_2Fq_.js.map +0 -1
  209. package/dist/cdn/chunks/es-DwDoNuLM.js.map +0 -1
  210. package/dist/cdn/chunks/fr-CSEEzv1_.js.map +0 -1
  211. package/dist/cdn/chunks/icons-Cp4ZIJw-.js.map +0 -1
  212. package/dist/cdn/chunks/nl-xyk1T2mA.js.map +0 -1
  213. package/dist/cdn/chunks/pt-BR-yr6uOJgn.js.map +0 -1
  214. package/dist/cdn/chunks/src-B8W42vT-.js.map +0 -1
  215. package/dist/cdn/chunks/tiptap-rsib432n.js.map +0 -1
  216. package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
- import { $ as t, A as n, B as r, C as i, N as a, O as o, S as s, W as c, Y as l, Z as u, et as d, i as f, it as p, k as m, q as h, x as g } from "./draggable-JcMTNF3U.js";
2
+ import { $ as t, A as n, B as r, C as i, N as a, O as o, S as s, W as c, Y as l, Z as u, et as d, i as f, it as p, k as m, q as h, x as g } from "./draggable-Z4XXmbPC.js";
3
3
  //#region ../../node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.js
4
4
  function _(e) {
5
5
  this.content = e;
@@ -1550,12 +1550,13 @@ var rt = class {
1550
1550
  }
1551
1551
  addElementByRule(e, t, n, r) {
1552
1552
  let i, a;
1553
- if (t.node) if (a = this.parser.schema.nodes[t.node], a.isLeaf) this.insertNode(a.create(t.attrs), n, e.nodeName == "BR") || this.leafFallback(e, n);
1554
- else {
1555
- let e = this.enter(a, t.attrs || null, n, t.preserveWhitespace);
1556
- e && (i = !0, n = e);
1557
- }
1558
- else {
1553
+ if (t.node) {
1554
+ if (a = this.parser.schema.nodes[t.node], a.isLeaf) this.insertNode(a.create(t.attrs), n, e.nodeName == "BR") || this.leafFallback(e, n);
1555
+ else {
1556
+ let e = this.enter(a, t.attrs || null, n, t.preserveWhitespace);
1557
+ e && (i = !0, n = e);
1558
+ }
1559
+ } else {
1559
1560
  let e = this.parser.schema.marks[t.mark];
1560
1561
  n = n.concat(e.create(t.attrs));
1561
1562
  }
@@ -1798,9 +1799,12 @@ function pt(e) {
1798
1799
  function mt(e) {
1799
1800
  let t = null;
1800
1801
  function n(e) {
1801
- if (e && typeof e == "object") if (Array.isArray(e)) if (typeof e[0] == "string") t ||= [], t.push(e);
1802
- else for (let t = 0; t < e.length; t++) n(e[t]);
1803
- else for (let t in e) n(e[t]);
1802
+ if (e && typeof e == "object") {
1803
+ if (Array.isArray(e)) {
1804
+ if (typeof e[0] == "string") t ||= [], t.push(e);
1805
+ else for (let t = 0; t < e.length; t++) n(e[t]);
1806
+ } else for (let t in e) n(e[t]);
1807
+ }
1804
1808
  }
1805
1809
  return n(e), t;
1806
1810
  }
@@ -3697,28 +3701,30 @@ var pr = (e, t) => {
3697
3701
  };
3698
3702
  function gr(e) {
3699
3703
  return (t, n) => {
3700
- let { $from: r, $to: i } = t.selection;
3701
- if (t.selection instanceof M && t.selection.node.isBlock) return !r.parentOffset || !Qt(t.doc, r.pos) ? !1 : (n && n(t.tr.split(r.pos).scrollIntoView()), !0);
3702
- if (!r.depth) return !1;
3703
- let a = [], o, s, c = !1, l = !1;
3704
- for (let t = r.depth;; t--) if (r.node(t).isBlock) {
3705
- c = r.end(t) == r.pos + (r.depth - t), l = r.start(t) == r.pos - (r.depth - t), s = fr(r.node(t - 1).contentMatchAt(r.indexAfter(t - 1)));
3706
- let n = e && e(i.parent, c, r);
3707
- a.unshift(n || (c && s ? { type: s } : null)), o = t;
3704
+ if (t.selection instanceof M && t.selection.node.isBlock) {
3705
+ let { $from: e } = t.selection;
3706
+ return !e.parentOffset || !Qt(t.doc, e.pos) ? !1 : (n && n(t.tr.split(e.pos).scrollIntoView()), !0);
3707
+ }
3708
+ if (!t.selection.$from.depth) return !1;
3709
+ let r = t.tr;
3710
+ !t.selection.empty && (t.selection instanceof j || t.selection instanceof Nn) && r.deleteSelection();
3711
+ let { $from: i } = r.selection, a = r.steps.length, o = [], s, c, l = !1, u = !1;
3712
+ for (let t = i.depth;; t--) if (i.node(t).isBlock) {
3713
+ l = i.end(t) == i.pos + (i.depth - t), u = i.start(t) == i.pos - (i.depth - t), c = fr(i.node(t - 1).contentMatchAt(i.indexAfter(t - 1)));
3714
+ let n = e && e(i.parent, l, i);
3715
+ o.unshift(n || (l && c ? { type: c } : null)), s = t;
3708
3716
  break;
3709
3717
  } else {
3710
3718
  if (t == 1) return !1;
3711
- a.unshift(null);
3719
+ o.unshift(null);
3712
3720
  }
3713
- let u = t.tr;
3714
- (t.selection instanceof j || t.selection instanceof Nn) && u.deleteSelection();
3715
- let d = u.mapping.map(r.pos), f = Qt(u.doc, d, a.length, a);
3716
- if (f ||= (a[0] = s ? { type: s } : null, Qt(u.doc, d, a.length, a)), !f) return !1;
3717
- if (u.split(d, a.length, a), !c && l && r.node(o).type != s) {
3718
- let e = u.mapping.map(r.before(o)), t = u.doc.resolve(e);
3719
- s && r.node(o - 1).canReplaceWith(t.index(), t.index() + 1, s) && u.setNodeMarkup(u.mapping.map(r.before(o)), s);
3721
+ let d = i.pos, f = Qt(r.doc, d, o.length, o);
3722
+ if (f ||= (o[0] = c ? { type: c } : null, Qt(r.doc, d, o.length, o)), !f) return !1;
3723
+ if (r.split(d, o.length, o), !l && u && i.node(s).type != c) {
3724
+ let e = r.mapping.slice(a), t = e.map(i.before(s)), n = r.doc.resolve(t);
3725
+ c && i.node(s - 1).canReplaceWith(n.index(), n.index() + 1, c) && r.setNodeMarkup(e.map(i.before(s)), c);
3720
3726
  }
3721
- return n && n(u.scrollIntoView()), !0;
3727
+ return n && n(r.scrollIntoView()), !0;
3722
3728
  };
3723
3729
  }
3724
3730
  var _r = gr(), vr = (e, t) => {
@@ -3785,10 +3791,12 @@ function Er(e, t = null) {
3785
3791
  let { $from: { pos: a }, $to: { pos: o } } = n.selection.ranges[r];
3786
3792
  n.doc.nodesBetween(a, o, (r, a) => {
3787
3793
  if (i) return !1;
3788
- if (!(!r.isTextblock || r.hasMarkup(e, t))) if (r.type == e) i = !0;
3789
- else {
3790
- let t = n.doc.resolve(a), r = t.index();
3791
- i = t.parent.canReplaceWith(r, r + 1, e);
3794
+ if (!(!r.isTextblock || r.hasMarkup(e, t))) {
3795
+ if (r.type == e) i = !0;
3796
+ else {
3797
+ let t = n.doc.resolve(a), r = t.index();
3798
+ i = t.parent.canReplaceWith(r, r + 1, e);
3799
+ }
3792
3800
  }
3793
3801
  });
3794
3802
  }
@@ -3925,9 +3933,10 @@ function Gr(e, t, n, r, i) {
3925
3933
  t = F(e) + (i < 0 ? 0 : 1), e = n;
3926
3934
  } else if (e.nodeType == 1) {
3927
3935
  let n = e.childNodes[t + (i < 0 ? -1 : 0)];
3928
- if (n.nodeType == 1 && n.contentEditable == "false") if (n.pmViewDesc?.ignoreForSelection) t += i;
3929
- else return !1;
3930
- else e = n, t = i < 0 ? Kr(e) : 0;
3936
+ if (n.nodeType == 1 && n.contentEditable == "false") {
3937
+ if (n.pmViewDesc?.ignoreForSelection) t += i;
3938
+ else return !1;
3939
+ } else e = n, t = i < 0 ? Kr(e) : 0;
3931
3940
  } else return !1;
3932
3941
  }
3933
3942
  }
@@ -4033,17 +4042,19 @@ function xi(e, t, n) {
4033
4042
  continue;
4034
4043
  }
4035
4044
  let e = o, n = e == a.body, s = n ? vi(a) : bi(e), c = 0, l = 0;
4036
- if (t.top < s.top + yi(r, "top") ? l = -(s.top - t.top + yi(i, "top")) : t.bottom > s.bottom - yi(r, "bottom") && (l = t.bottom - t.top > s.bottom - s.top ? t.top + yi(i, "top") - s.top : t.bottom - s.bottom + yi(i, "bottom")), t.left < s.left + yi(r, "left") ? c = -(s.left - t.left + yi(i, "left")) : t.right > s.right - yi(r, "right") && (c = t.right - s.right + yi(i, "right")), c || l) if (n) a.defaultView.scrollBy(c, l);
4037
- else {
4038
- let n = e.scrollLeft, r = e.scrollTop;
4039
- l && (e.scrollTop += l), c && (e.scrollLeft += c);
4040
- let i = e.scrollLeft - n, a = e.scrollTop - r;
4041
- t = {
4042
- left: t.left - i,
4043
- top: t.top - a,
4044
- right: t.right - i,
4045
- bottom: t.bottom - a
4046
- };
4045
+ if (t.top < s.top + yi(r, "top") ? l = -(s.top - t.top + yi(i, "top")) : t.bottom > s.bottom - yi(r, "bottom") && (l = t.bottom - t.top > s.bottom - s.top ? t.top + yi(i, "top") - s.top : t.bottom - s.bottom + yi(i, "bottom")), t.left < s.left + yi(r, "left") ? c = -(s.left - t.left + yi(i, "left")) : t.right > s.right - yi(r, "right") && (c = t.right - s.right + yi(i, "right")), c || l) {
4046
+ if (n) a.defaultView.scrollBy(c, l);
4047
+ else {
4048
+ let n = e.scrollLeft, r = e.scrollTop;
4049
+ l && (e.scrollTop += l), c && (e.scrollLeft += c);
4050
+ let i = e.scrollLeft - n, a = e.scrollTop - r;
4051
+ t = {
4052
+ left: t.left - i,
4053
+ top: t.top - a,
4054
+ right: t.right - i,
4055
+ bottom: t.bottom - a
4056
+ };
4057
+ }
4047
4058
  }
4048
4059
  let u = n ? "fixed" : getComputedStyle(o).position;
4049
4060
  if (/^(fixed|sticky)$/.test(u)) break;
@@ -4222,19 +4233,22 @@ function Li(e, t) {
4222
4233
  var Ri = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
4223
4234
  function zi(e, t, n) {
4224
4235
  let { node: r, offset: i, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), o = gi || li;
4225
- if (r.nodeType == 3) if (o && (Ri.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
4226
- let e = Li(Vr(r, i, i), n);
4227
- if (li && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
4228
- let t = Li(Vr(r, i - 1, i - 1), -1);
4229
- if (t.top == e.top) {
4230
- let n = Li(Vr(r, i, i + 1), -1);
4231
- if (n.top != e.top) return Bi(n, n.left < t.left);
4236
+ if (r.nodeType == 3) {
4237
+ if (o && (Ri.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
4238
+ let e = Li(Vr(r, i, i), n);
4239
+ if (li && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
4240
+ let t = Li(Vr(r, i - 1, i - 1), -1);
4241
+ if (t.top == e.top) {
4242
+ let n = Li(Vr(r, i, i + 1), -1);
4243
+ if (n.top != e.top) return Bi(n, n.left < t.left);
4244
+ }
4232
4245
  }
4246
+ return e;
4247
+ }
4248
+ {
4249
+ let e = i, t = i, a = n < 0 ? 1 : -1;
4250
+ return n < 0 && !i ? (t++, a = -1) : n >= 0 && i == r.nodeValue.length ? (e--, a = 1) : n < 0 ? e-- : t++, Bi(Li(Vr(r, e, t), a), a < 0);
4233
4251
  }
4234
- return e;
4235
- } else {
4236
- let e = i, t = i, a = n < 0 ? 1 : -1;
4237
- return n < 0 && !i ? (t++, a = -1) : n >= 0 && i == r.nodeValue.length ? (e--, a = 1) : n < 0 ? e-- : t++, Bi(Li(Vr(r, e, t), a), a < 0);
4238
4252
  }
4239
4253
  if (!e.state.doc.resolve(t - (a || 0)).parent.inlineContent) {
4240
4254
  if (a == null && i && (n < 0 || i == Kr(r))) {
@@ -4388,24 +4402,27 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
4388
4402
  return this.posAtStart + this.size - 2 * this.border;
4389
4403
  }
4390
4404
  localPosFromDOM(e, t, n) {
4391
- if (this.contentDOM && this.contentDOM.contains(e.nodeType == 1 ? e : e.parentNode)) if (n < 0) {
4392
- let n, r;
4393
- if (e == this.contentDOM) n = e.childNodes[t - 1];
4394
- else {
4395
- for (; e.parentNode != this.contentDOM;) e = e.parentNode;
4396
- n = e.previousSibling;
4405
+ if (this.contentDOM && this.contentDOM.contains(e.nodeType == 1 ? e : e.parentNode)) {
4406
+ if (n < 0) {
4407
+ let n, r;
4408
+ if (e == this.contentDOM) n = e.childNodes[t - 1];
4409
+ else {
4410
+ for (; e.parentNode != this.contentDOM;) e = e.parentNode;
4411
+ n = e.previousSibling;
4412
+ }
4413
+ for (; n && !((r = n.pmViewDesc) && r.parent == this);) n = n.previousSibling;
4414
+ return n ? this.posBeforeChild(r) + r.size : this.posAtStart;
4397
4415
  }
4398
- for (; n && !((r = n.pmViewDesc) && r.parent == this);) n = n.previousSibling;
4399
- return n ? this.posBeforeChild(r) + r.size : this.posAtStart;
4400
- } else {
4401
- let n, r;
4402
- if (e == this.contentDOM) n = e.childNodes[t];
4403
- else {
4404
- for (; e.parentNode != this.contentDOM;) e = e.parentNode;
4405
- n = e.nextSibling;
4416
+ {
4417
+ let n, r;
4418
+ if (e == this.contentDOM) n = e.childNodes[t];
4419
+ else {
4420
+ for (; e.parentNode != this.contentDOM;) e = e.parentNode;
4421
+ n = e.nextSibling;
4422
+ }
4423
+ for (; n && !((r = n.pmViewDesc) && r.parent == this);) n = n.nextSibling;
4424
+ return n ? this.posBeforeChild(r) : this.posAtEnd;
4406
4425
  }
4407
- for (; n && !((r = n.pmViewDesc) && r.parent == this);) n = n.nextSibling;
4408
- return n ? this.posBeforeChild(r) : this.posAtEnd;
4409
4426
  }
4410
4427
  let r;
4411
4428
  if (e == this.dom && this.contentDOM) r = t > F(this.contentDOM);
@@ -4431,8 +4448,10 @@ var Xi = 0, Zi = 1, Qi = 2, $i = 3, ea = class {
4431
4448
  nearestDesc(e, t = !1) {
4432
4449
  for (let n = !0, r = e; r; r = r.parentNode) {
4433
4450
  let i = this.getDesc(r), a;
4434
- if (i && (!t || i.node)) if (n && (a = i.nodeDOM) && !(a.nodeType == 1 ? a.contains(e.nodeType == 1 ? e : e.parentNode) : a == e)) n = !1;
4435
- else return i;
4451
+ if (i && (!t || i.node)) {
4452
+ if (n && (a = i.nodeDOM) && !(a.nodeType == 1 ? a.contains(e.nodeType == 1 ? e : e.parentNode) : a == e)) n = !1;
4453
+ else return i;
4454
+ }
4436
4455
  }
4437
4456
  }
4438
4457
  getDesc(e) {
@@ -5188,10 +5207,12 @@ function xa(e, t, n, r) {
5188
5207
  let e = i[o++];
5189
5208
  e.widget && (u ? (d ||= [u]).push(e) : u = e);
5190
5209
  }
5191
- if (u) if (d) {
5192
- d.sort(ba);
5193
- for (let e = 0; e < d.length; e++) n(d[e], l, !!c);
5194
- } else n(u, l, !!c);
5210
+ if (u) {
5211
+ if (d) {
5212
+ d.sort(ba);
5213
+ for (let e = 0; e < d.length; e++) n(d[e], l, !!c);
5214
+ } else n(u, l, !!c);
5215
+ }
5195
5216
  let f, p;
5196
5217
  if (c) p = -1, f = c, c = null;
5197
5218
  else if (l < e.childCount) p = l, f = e.child(l++);
@@ -5785,12 +5806,14 @@ function Ao(e, t) {
5785
5806
  }
5786
5807
  z.keydown = (e, t) => {
5787
5808
  let n = t;
5788
- if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !qo(e) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(hi && I && n.keyCode == 13))) if (n.keyCode != 229 && e.domObserver.forceFlush(), fi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
5789
- let t = Date.now();
5790
- e.input.lastIOSEnter = t, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
5791
- e.input.lastIOSEnter == t && (e.someProp("handleKeyDown", (t) => t(e, Qr(13, "Enter"))), e.input.lastIOSEnter = 0);
5792
- }, 200);
5793
- } else e.someProp("handleKeyDown", (t) => t(e, n)) || io(e, n) ? n.preventDefault() : To(e, "key");
5809
+ if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !qo(e) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(hi && I && n.keyCode == 13))) {
5810
+ if (n.keyCode != 229 && e.domObserver.forceFlush(), fi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
5811
+ let t = Date.now();
5812
+ e.input.lastIOSEnter = t, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
5813
+ e.input.lastIOSEnter == t && (e.someProp("handleKeyDown", (t) => t(e, Qr(13, "Enter"))), e.input.lastIOSEnter = 0);
5814
+ }, 200);
5815
+ } else e.someProp("handleKeyDown", (t) => t(e, n)) || io(e, n) ? n.preventDefault() : To(e, "key");
5816
+ }
5794
5817
  }, z.keyup = (e, t) => {
5795
5818
  t.keyCode == 16 && (e.input.shiftKey = !1);
5796
5819
  }, z.keypress = (e, t) => {
@@ -6391,10 +6414,12 @@ var V = B.empty, vs = class e {
6391
6414
  let t, n = !0;
6392
6415
  for (let r = 0; r < this.members.length; r++) {
6393
6416
  let i = this.members[r].localsInner(e);
6394
- if (i.length) if (!t) t = i;
6395
- else {
6396
- n &&= (t = t.slice(), !1);
6397
- for (let e = 0; e < i.length; e++) t.push(i[e]);
6417
+ if (i.length) {
6418
+ if (!t) t = i;
6419
+ else {
6420
+ n &&= (t = t.slice(), !1);
6421
+ for (let e = 0; e < i.length; e++) t.push(i[e]);
6422
+ }
6398
6423
  }
6399
6424
  }
6400
6425
  return t ? Es(n ? t : t.sort(Ts)) : gs;
@@ -6826,20 +6851,22 @@ function Us(e, t, n, r, i) {
6826
6851
  e.input.lastIOSEnter = 0;
6827
6852
  return;
6828
6853
  }
6829
- if (!m) if (r && c instanceof j && !c.empty && c.$head.sameParent(c.$anchor) && !e.composing && !(l.sel && l.sel.anchor != l.sel.head)) m = {
6830
- start: c.from,
6831
- endA: c.to,
6832
- endB: c.to
6833
- };
6834
- else {
6835
- if (l.sel) {
6836
- let t = Ws(e, e.state.doc, l.sel);
6837
- if (t && !t.eq(e.state.selection)) {
6838
- let n = e.state.tr.setSelection(t);
6839
- a && n.setMeta("composition", a), e.dispatch(n);
6854
+ if (!m) {
6855
+ if (r && c instanceof j && !c.empty && c.$head.sameParent(c.$anchor) && !e.composing && !(l.sel && l.sel.anchor != l.sel.head)) m = {
6856
+ start: c.from,
6857
+ endA: c.to,
6858
+ endB: c.to
6859
+ };
6860
+ else {
6861
+ if (l.sel) {
6862
+ let t = Ws(e, e.state.doc, l.sel);
6863
+ if (t && !t.eq(e.state.selection)) {
6864
+ let n = e.state.tr.setSelection(t);
6865
+ a && n.setMeta("composition", a), e.dispatch(n);
6866
+ }
6840
6867
  }
6868
+ return;
6841
6869
  }
6842
- return;
6843
6870
  }
6844
6871
  e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof j && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= l.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= l.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), si && ci <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > l.from && l.doc.textBetween(m.start - l.from - 1, m.start - l.from + 1) == " \xA0" && (m.start--, m.endA--, m.endB--);
6845
6872
  let h = l.doc.resolveNoCache(m.start - l.from), g = l.doc.resolveNoCache(m.endB - l.from), _ = u.resolve(m.start), v = h.sameParent(g) && h.parent.inlineContent && _.end() >= m.endA;
@@ -6864,18 +6891,19 @@ function Us(e, t, n, r, i) {
6864
6891
  }
6865
6892
  return a && n.setMeta("composition", a), n.scrollIntoView();
6866
6893
  }, S;
6867
- if (v) if (h.pos == g.pos) {
6868
- si && ci <= 11 && h.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => Da(e), 20));
6869
- let t = x(e.state.tr.delete(y, b)), n = u.resolve(m.start).marksAcross(u.resolve(m.endA));
6870
- n && t.ensureMarks(n), e.dispatch(t);
6871
- } else if (m.endA == m.endB && (S = Gs(h.parent.content.cut(h.parentOffset, g.parentOffset), _.parent.content.cut(_.parentOffset, m.endA - _.start())))) {
6872
- let t = x(e.state.tr);
6873
- S.type == "add" ? t.addMark(y, b, S.mark) : t.removeMark(y, b, S.mark), e.dispatch(t);
6874
- } else if (h.parent.child(h.index()).isText && h.index() == g.index() - +!g.textOffset) {
6875
- let t = h.parent.textBetween(h.parentOffset, g.parentOffset), n = () => x(e.state.tr.insertText(t, y, b));
6876
- e.someProp("handleTextInput", (r) => r(e, y, b, t, n)) || e.dispatch(n());
6894
+ if (v) {
6895
+ if (h.pos == g.pos) {
6896
+ si && ci <= 11 && h.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => Da(e), 20));
6897
+ let t = x(e.state.tr.delete(y, b)), n = u.resolve(m.start).marksAcross(u.resolve(m.endA));
6898
+ n && t.ensureMarks(n), e.dispatch(t);
6899
+ } else if (m.endA == m.endB && (S = Gs(h.parent.content.cut(h.parentOffset, g.parentOffset), _.parent.content.cut(_.parentOffset, m.endA - _.start())))) {
6900
+ let t = x(e.state.tr);
6901
+ S.type == "add" ? t.addMark(y, b, S.mark) : t.removeMark(y, b, S.mark), e.dispatch(t);
6902
+ } else if (h.parent.child(h.index()).isText && h.index() == g.index() - +!g.textOffset) {
6903
+ let t = h.parent.textBetween(h.parentOffset, g.parentOffset), n = () => x(e.state.tr.insertText(t, y, b));
6904
+ e.someProp("handleTextInput", (r) => r(e, y, b, t, n)) || e.dispatch(n());
6905
+ } else e.dispatch(x());
6877
6906
  } else e.dispatch(x());
6878
- else e.dispatch(x());
6879
6907
  }
6880
6908
  function Ws(e, t, n) {
6881
6909
  return Math.max(n.anchor, n.head) > t.content.size ? null : Ia(e, t.resolve(n.anchor), t.resolve(n.head));
@@ -6992,10 +7020,12 @@ var Ys = class {
6992
7020
  }
6993
7021
  scrollToSelection() {
6994
7022
  let e = this.domSelectionRange().focusNode;
6995
- if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode)) && !this.someProp("handleScrollToSelection", (e) => e(this))) if (this.state.selection instanceof M) {
6996
- let t = this.docView.domAfterPos(this.state.selection.from);
6997
- t.nodeType == 1 && xi(this, t.getBoundingClientRect(), e);
6998
- } else xi(this, this.coordsAtPos(this.state.selection.head, 1), e);
7023
+ if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode)) && !this.someProp("handleScrollToSelection", (e) => e(this))) {
7024
+ if (this.state.selection instanceof M) {
7025
+ let t = this.docView.domAfterPos(this.state.selection.from);
7026
+ t.nodeType == 1 && xi(this, t.getBoundingClientRect(), e);
7027
+ } else xi(this, this.coordsAtPos(this.state.selection.head, 1), e);
7028
+ }
6999
7029
  }
7000
7030
  destroyPluginViews() {
7001
7031
  let e;
@@ -8550,24 +8580,26 @@ function Lu(e, t, n) {
8550
8580
  }
8551
8581
  var Ru = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8552
8582
  let { selection: a } = n, { empty: o, ranges: s } = a, c = Vc(e, r.schema);
8553
- if (i) if (o) {
8554
- let e = Fl(r, c);
8555
- n.addStoredMark(c.create({
8556
- ...e,
8557
- ...t
8558
- }));
8559
- } else s.forEach((e) => {
8560
- let i = e.$from.pos, a = e.$to.pos;
8561
- r.doc.nodesBetween(i, a, (e, r) => {
8562
- let o = Math.max(r, i), s = Math.min(r + e.nodeSize, a);
8563
- e.marks.find((e) => e.type === c) ? e.marks.forEach((e) => {
8564
- c === e.type && n.addMark(o, s, c.create({
8565
- ...e.attrs,
8566
- ...t
8567
- }));
8568
- }) : n.addMark(o, s, c.create(t));
8583
+ if (i) {
8584
+ if (o) {
8585
+ let e = Fl(r, c);
8586
+ n.addStoredMark(c.create({
8587
+ ...e,
8588
+ ...t
8589
+ }));
8590
+ } else s.forEach((e) => {
8591
+ let i = e.$from.pos, a = e.$to.pos;
8592
+ r.doc.nodesBetween(i, a, (e, r) => {
8593
+ let o = Math.max(r, i), s = Math.min(r + e.nodeSize, a);
8594
+ e.marks.find((e) => e.type === c) ? e.marks.forEach((e) => {
8595
+ c === e.type && n.addMark(o, s, c.create({
8596
+ ...e.attrs,
8597
+ ...t
8598
+ }));
8599
+ }) : n.addMark(o, s, c.create(t));
8600
+ });
8569
8601
  });
8570
- });
8602
+ }
8571
8603
  return Lu(r, n, c);
8572
8604
  }, zu = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), Bu = (e, t = {}) => ({ state: n, dispatch: r, chain: i }) => {
8573
8605
  let a = U(e, n.schema), o;
@@ -9013,14 +9045,16 @@ function Dd(e) {
9013
9045
  let a = g.slice(0, i);
9014
9046
  m = a.trim();
9015
9047
  let o = e.slice(0, p + i + n[0].length), c = [];
9016
- if (m) if (s === "block") for (c = r.blockTokens(a), c.forEach((e) => {
9017
- e.text && (!e.tokens || e.tokens.length === 0) && (e.tokens = r.inlineTokens(e.text));
9018
- }); c.length > 0;) {
9019
- let e = c[c.length - 1];
9020
- if (e.type === "paragraph" && (!e.text || e.text.trim() === "")) c.pop();
9021
- else break;
9048
+ if (m) {
9049
+ if (s === "block") for (c = r.blockTokens(a), c.forEach((e) => {
9050
+ e.text && (!e.tokens || e.tokens.length === 0) && (e.tokens = r.inlineTokens(e.text));
9051
+ }); c.length > 0;) {
9052
+ let e = c[c.length - 1];
9053
+ if (e.type === "paragraph" && (!e.text || e.text.trim() === "")) c.pop();
9054
+ else break;
9055
+ }
9056
+ else c = r.inlineTokens(m);
9022
9057
  }
9023
- else c = r.inlineTokens(m);
9024
9058
  return {
9025
9059
  type: t,
9026
9060
  raw: o,
@@ -10071,13 +10105,15 @@ var q = class e extends Hd {
10071
10105
  closest(e, t = {}) {
10072
10106
  let n = null, r = this.parent;
10073
10107
  for (; r && !n;) {
10074
- if (r.node.type.name === e) if (Object.keys(t).length > 0) {
10075
- let e = r.node.attrs, n = Object.keys(t);
10076
- for (let r = 0; r < n.length; r += 1) {
10077
- let i = n[r];
10078
- if (e[i] !== t[i]) break;
10079
- }
10080
- } else n = r;
10108
+ if (r.node.type.name === e) {
10109
+ if (Object.keys(t).length > 0) {
10110
+ let e = r.node.attrs, n = Object.keys(t);
10111
+ for (let r = 0; r < n.length; r += 1) {
10112
+ let i = n[r];
10113
+ if (e[i] !== t[i]) break;
10114
+ }
10115
+ } else n = r;
10116
+ }
10081
10117
  r = r.parent;
10082
10118
  }
10083
10119
  return n;
@@ -11800,31 +11836,33 @@ function Cm({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
11800
11836
  dismissOnOutsideClick: f,
11801
11837
  dismiss: () => h(e.view)
11802
11838
  })
11803
- }, w === "started" && ((b = r?.onBeforeStart) == null || b.call(r, g)), w === "updated" && ((x = r?.onBeforeUpdate) == null || x.call(r, g)), w === "started" && y(w, g), w === "started" || w === "updated") if (!ne) _.abort(), g = {
11804
- ...g,
11805
- items: o ?? [],
11806
- loading: !1
11807
- };
11808
- else {
11809
- g = {
11839
+ }, w === "started" && ((b = r?.onBeforeStart) == null || b.call(r, g)), w === "updated" && ((x = r?.onBeforeUpdate) == null || x.call(r, g)), w === "started" && y(w, g), w === "started" || w === "updated") {
11840
+ if (!ne) _.abort(), g = {
11810
11841
  ...g,
11811
11842
  items: o ?? [],
11812
- loading: !0
11813
- }, w = "updated", y(w, g);
11814
- let e = await _.fetch(T.query || "", a);
11815
- if (e.status === "aborted") return;
11816
- if (!t.getState(n.state)?.active) {
11817
- _.abort();
11818
- return;
11819
- }
11820
- g = e.status === "resolved" ? {
11821
- ...g,
11822
- items: e.items,
11823
- loading: !1
11824
- } : {
11825
- ...g,
11826
11843
  loading: !1
11827
11844
  };
11845
+ else {
11846
+ g = {
11847
+ ...g,
11848
+ items: o ?? [],
11849
+ loading: !0
11850
+ }, w = "updated", y(w, g);
11851
+ let e = await _.fetch(T.query || "", a);
11852
+ if (e.status === "aborted") return;
11853
+ if (!t.getState(n.state)?.active) {
11854
+ _.abort();
11855
+ return;
11856
+ }
11857
+ g = e.status === "resolved" ? {
11858
+ ...g,
11859
+ items: e.items,
11860
+ loading: !1
11861
+ } : {
11862
+ ...g,
11863
+ loading: !1
11864
+ };
11865
+ }
11828
11866
  }
11829
11867
  if (w === "stopped") {
11830
11868
  _.abort(), y(w, g), g = void 0;
@@ -14803,10 +14841,12 @@ var hy = class {
14803
14841
  this.handlers.forEach(({ name: e, handler: t }) => this.editorView.dom.removeEventListener(e, t));
14804
14842
  }
14805
14843
  update(e, t) {
14806
- if (this.cursorPos != null && t.doc != e.state.doc) if (this.lastDragEvent) {
14807
- let e = this.computeTarget(this.lastDragEvent);
14808
- e == this.cursorPos ? this.updateOverlay() : this.setCursor(e);
14809
- } else this.updateOverlay();
14844
+ if (this.cursorPos != null && t.doc != e.state.doc) {
14845
+ if (this.lastDragEvent) {
14846
+ let e = this.computeTarget(this.lastDragEvent);
14847
+ e == this.cursorPos ? this.updateOverlay() : this.setCursor(e);
14848
+ } else this.updateOverlay();
14849
+ }
14810
14850
  }
14811
14851
  setCursor(e) {
14812
14852
  e != this.cursorPos && (this.cursorPos = e, e == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
@@ -16247,17 +16287,19 @@ var Lb = {
16247
16287
  }
16248
16288
  handleSelectionUpdate() {
16249
16289
  let e = this.getPos();
16250
- if (typeof e == "number") if (Au({
16251
- selection: this.editor.state.selection,
16252
- pos: e,
16253
- nodeSize: this.node.nodeSize,
16254
- selectedOnTextSelection: this.options.selectedOnTextSelection
16255
- })) {
16256
- if (this.renderer.props.selected) return;
16257
- this.selectNode();
16258
- } else {
16259
- if (!this.renderer.props.selected) return;
16260
- this.deselectNode();
16290
+ if (typeof e == "number") {
16291
+ if (Au({
16292
+ selection: this.editor.state.selection,
16293
+ pos: e,
16294
+ nodeSize: this.node.nodeSize,
16295
+ selectedOnTextSelection: this.options.selectedOnTextSelection
16296
+ })) {
16297
+ if (this.renderer.props.selected) return;
16298
+ this.selectNode();
16299
+ } else {
16300
+ if (!this.renderer.props.selected) return;
16301
+ this.deselectNode();
16302
+ }
16261
16303
  }
16262
16304
  }
16263
16305
  update(e, t, n) {
@@ -16311,4 +16353,4 @@ function zb(e, t) {
16311
16353
  //#endregion
16312
16354
  export { J as _, D_ as a, v_ as c, Bm as d, Rm as f, Rd as g, q as h, Sb as i, Yg as l, Em as m, zb as n, w_ as o, Dm as p, Tb as r, x_ as s, Ab as t, Hm as u, Wd as v, K as y };
16313
16355
 
16314
- //# sourceMappingURL=tiptap-rsib432n.js.map
16356
+ //# sourceMappingURL=tiptap-C5vzWlHv.js.map