@remarkablejames/editor 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/lib/ActionMenuButton-B0EHT9CC.js +35 -0
  4. package/lib/ActionMenuButton-J1el_e6Z.cjs +1 -0
  5. package/lib/Attachment.cjs +19 -0
  6. package/lib/Attachment.js +273 -0
  7. package/lib/Blockquote.cjs +5 -0
  8. package/lib/Blockquote.js +107 -0
  9. package/lib/Bold.cjs +1 -0
  10. package/lib/Bold.js +123 -0
  11. package/lib/BulletList.cjs +1 -0
  12. package/lib/BulletList.js +53 -0
  13. package/lib/Callout.cjs +1 -0
  14. package/lib/Callout.js +225 -0
  15. package/lib/Clear.cjs +1 -0
  16. package/lib/Clear.js +49 -0
  17. package/lib/Code.cjs +1 -0
  18. package/lib/Code.js +100 -0
  19. package/lib/CodeBlock.cjs +44 -0
  20. package/lib/CodeBlock.js +4065 -0
  21. package/lib/CodeView.cjs +1 -0
  22. package/lib/CodeView.js +81 -0
  23. package/lib/Color.cjs +1 -0
  24. package/lib/Color.js +134 -0
  25. package/lib/Column.cjs +1 -0
  26. package/lib/Column.js +230 -0
  27. package/lib/Drawer-BCWVN-4l.js +1125 -0
  28. package/lib/Drawer-BTouEroZ.cjs +2 -0
  29. package/lib/Drawer.cjs +1 -0
  30. package/lib/Drawer.js +7 -0
  31. package/lib/Emoji.cjs +1 -0
  32. package/lib/Emoji.js +19888 -0
  33. package/lib/Excalidraw.cjs +1 -0
  34. package/lib/Excalidraw.js +276 -0
  35. package/lib/ExportPdf.cjs +39 -0
  36. package/lib/ExportPdf.js +142 -0
  37. package/lib/ExportWord.cjs +1 -0
  38. package/lib/ExportWord.js +107 -0
  39. package/lib/FontFamily.cjs +1 -0
  40. package/lib/FontFamily.js +84 -0
  41. package/lib/FontSize.cjs +1 -0
  42. package/lib/FontSize.js +106 -0
  43. package/lib/Heading.cjs +1 -0
  44. package/lib/Heading.js +167 -0
  45. package/lib/Highlight.cjs +1 -0
  46. package/lib/Highlight.js +203 -0
  47. package/lib/History.cjs +1 -0
  48. package/lib/History.js +990 -0
  49. package/lib/HorizontalRule.cjs +1 -0
  50. package/lib/HorizontalRule.js +118 -0
  51. package/lib/Iframe-BdgiWGml.js +416 -0
  52. package/lib/Iframe-BfBLILDA.cjs +1 -0
  53. package/lib/Iframe.cjs +1 -0
  54. package/lib/Iframe.js +7 -0
  55. package/lib/Image.cjs +1 -0
  56. package/lib/Image.js +6 -0
  57. package/lib/ImageGif.cjs +1 -0
  58. package/lib/ImageGif.js +400 -0
  59. package/lib/ImportWord.cjs +1 -0
  60. package/lib/ImportWord.js +145 -0
  61. package/lib/Indent-BpMcZKok.js +148 -0
  62. package/lib/Indent-Dvqz_WEn.cjs +1 -0
  63. package/lib/Indent.cjs +1 -0
  64. package/lib/Indent.js +6 -0
  65. package/lib/Italic.cjs +1 -0
  66. package/lib/Italic.js +123 -0
  67. package/lib/Katex-B8_uprkO.js +2753 -0
  68. package/lib/Katex-BQyeCeQ0.cjs +4 -0
  69. package/lib/Katex.cjs +1 -0
  70. package/lib/Katex.js +6 -0
  71. package/lib/LineHeight.cjs +1 -0
  72. package/lib/LineHeight.js +89 -0
  73. package/lib/Link.cjs +1 -0
  74. package/lib/Link.js +6 -0
  75. package/lib/LinkEditBlock-BX0fXXpF.js +1185 -0
  76. package/lib/LinkEditBlock-CIshn_8F.cjs +5 -0
  77. package/lib/Mention.cjs +1 -0
  78. package/lib/Mention.js +265 -0
  79. package/lib/Mermaid-0GiGVxn0.cjs +2 -0
  80. package/lib/Mermaid-D8bbIgAl.js +381 -0
  81. package/lib/Mermaid.cjs +1 -0
  82. package/lib/Mermaid.js +7 -0
  83. package/lib/MoreMark.cjs +1 -0
  84. package/lib/MoreMark.js +157 -0
  85. package/lib/OrderedList.cjs +1 -0
  86. package/lib/OrderedList.js +52 -0
  87. package/lib/SearchAndReplace.cjs +1 -0
  88. package/lib/SearchAndReplace.js +305 -0
  89. package/lib/SlashCommand.cjs +1 -0
  90. package/lib/SlashCommand.js +90 -0
  91. package/lib/SlashCommandNodeView-BcmtKbEE.js +249 -0
  92. package/lib/SlashCommandNodeView-rDJ7OjRd.cjs +1 -0
  93. package/lib/Strike.cjs +1 -0
  94. package/lib/Strike.js +112 -0
  95. package/lib/Table-BEhNBeuA.cjs +5 -0
  96. package/lib/Table-DbxuP5xh.js +1939 -0
  97. package/lib/Table.cjs +1 -0
  98. package/lib/Table.js +5 -0
  99. package/lib/TaskList.cjs +1 -0
  100. package/lib/TaskList.js +63 -0
  101. package/lib/TextAlign.cjs +1 -0
  102. package/lib/TextAlign.js +165 -0
  103. package/lib/TextDirection.cjs +1 -0
  104. package/lib/TextDirection.js +110 -0
  105. package/lib/TextUnderline.cjs +1 -0
  106. package/lib/TextUnderline.js +115 -0
  107. package/lib/Twitter-9I6BLNmg.js +1666 -0
  108. package/lib/Twitter-BuEBgpi9.cjs +1 -0
  109. package/lib/Twitter.cjs +1 -0
  110. package/lib/Twitter.js +6 -0
  111. package/lib/Video.cjs +1 -0
  112. package/lib/Video.js +7 -0
  113. package/lib/bubble.cjs +3 -0
  114. package/lib/bubble.d.ts +1 -0
  115. package/lib/bubble.js +9533 -0
  116. package/lib/clsx-CDyrfCnw.js +7391 -0
  117. package/lib/clsx-CXbNJWDD.cjs +54 -0
  118. package/lib/components/ActionButton.d.ts +23 -0
  119. package/lib/components/ActionMenuButton.d.ts +28 -0
  120. package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
  121. package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -0
  122. package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -0
  123. package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -0
  124. package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -0
  125. package/lib/components/Bubble/RichTextBubbleKatex.d.ts +1 -0
  126. package/lib/components/Bubble/RichTextBubbleLink.d.ts +6 -0
  127. package/lib/components/Bubble/RichTextBubbleMedia.d.ts +4 -0
  128. package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +1 -0
  129. package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -0
  130. package/lib/components/Bubble/RichTextBubbleTable.d.ts +5 -0
  131. package/lib/components/Bubble/RichTextBubbleText.d.ts +5 -0
  132. package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -0
  133. package/lib/components/Bubble/formatBubble.d.ts +55 -0
  134. package/lib/components/Bubble/index.d.ts +13 -0
  135. package/lib/components/ColorPicker.d.ts +11 -0
  136. package/lib/components/ReactBus.d.ts +11 -0
  137. package/lib/components/RichTextProvider.d.ts +8 -0
  138. package/lib/components/SizeSetter/SizeSetter.d.ts +13 -0
  139. package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -0
  140. package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -0
  141. package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +5 -0
  142. package/lib/components/icons/Activity.d.ts +2 -0
  143. package/lib/components/icons/Animas.d.ts +2 -0
  144. package/lib/components/icons/AspectRatio.d.ts +2 -0
  145. package/lib/components/icons/Blockquote.d.ts +2 -0
  146. package/lib/components/icons/CodeView.d.ts +1 -0
  147. package/lib/components/icons/ColumnAddLeft.d.ts +1 -0
  148. package/lib/components/icons/ColumnAddRight.d.ts +1 -0
  149. package/lib/components/icons/DeleteColumn.d.ts +2 -0
  150. package/lib/components/icons/DeleteRow.d.ts +2 -0
  151. package/lib/components/icons/Direction.d.ts +1 -0
  152. package/lib/components/icons/Excalidraw.d.ts +1 -0
  153. package/lib/components/icons/ExportPdf.d.ts +1 -0
  154. package/lib/components/icons/ExportWord.d.ts +2 -0
  155. package/lib/components/icons/FileWordOutline.d.ts +2 -0
  156. package/lib/components/icons/Flag.d.ts +2 -0
  157. package/lib/components/icons/Food.d.ts +2 -0
  158. package/lib/components/icons/GIfIcon.d.ts +1 -0
  159. package/lib/components/icons/Html.d.ts +1 -0
  160. package/lib/components/icons/Icon.d.ts +8 -0
  161. package/lib/components/icons/IconColorFill.d.ts +5 -0
  162. package/lib/components/icons/IconHighlightFill.d.ts +3 -0
  163. package/lib/components/icons/ImportWord.d.ts +2 -0
  164. package/lib/components/icons/LeftToRight.d.ts +1 -0
  165. package/lib/components/icons/LineHeight.d.ts +2 -0
  166. package/lib/components/icons/MenuDown.d.ts +2 -0
  167. package/lib/components/icons/Mermaid.d.ts +1 -0
  168. package/lib/components/icons/NoFill.d.ts +1 -0
  169. package/lib/components/icons/Object.d.ts +2 -0
  170. package/lib/components/icons/RightToLeft.d.ts +1 -0
  171. package/lib/components/icons/SizeL.d.ts +2 -0
  172. package/lib/components/icons/SizeM.d.ts +2 -0
  173. package/lib/components/icons/SizeS.d.ts +2 -0
  174. package/lib/components/icons/Symbol.d.ts +2 -0
  175. package/lib/components/icons/Travel.d.ts +2 -0
  176. package/lib/components/icons/Twitter.d.ts +1 -0
  177. package/lib/components/icons/icons.d.ts +1 -0
  178. package/lib/components/icons/index.d.ts +12 -0
  179. package/lib/components/index.d.ts +6 -0
  180. package/lib/components/ui/button.d.ts +11 -0
  181. package/lib/components/ui/checkbox.d.ts +4 -0
  182. package/lib/components/ui/dialog.d.ts +19 -0
  183. package/lib/components/ui/dropdown-menu.d.ts +27 -0
  184. package/lib/components/ui/emoji-picker.d.ts +7 -0
  185. package/lib/components/ui/index.d.ts +15 -0
  186. package/lib/components/ui/input.d.ts +5 -0
  187. package/lib/components/ui/label.d.ts +5 -0
  188. package/lib/components/ui/popover.d.ts +6 -0
  189. package/lib/components/ui/select.d.ts +13 -0
  190. package/lib/components/ui/separator.d.ts +4 -0
  191. package/lib/components/ui/switch.d.ts +4 -0
  192. package/lib/components/ui/tabs.d.ts +7 -0
  193. package/lib/components/ui/textarea.d.ts +5 -0
  194. package/lib/components/ui/toast.d.ts +15 -0
  195. package/lib/components/ui/toaster.d.ts +1 -0
  196. package/lib/components/ui/toggle.d.ts +12 -0
  197. package/lib/components/ui/tooltip.d.ts +7 -0
  198. package/lib/components/ui/use-toast.d.ts +44 -0
  199. package/lib/constants/index.d.ts +47 -0
  200. package/lib/constants/resetCSS.d.ts +1 -0
  201. package/lib/delete-node-CosiBes5.cjs +1 -0
  202. package/lib/delete-node-eQHsyyhR.js +24 -0
  203. package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
  204. package/lib/dom-dataset-CIEeltF6.js +47 -0
  205. package/lib/dropdown-menu-Bs69ZBbO.js +143 -0
  206. package/lib/dropdown-menu-DjWlG2-J.cjs +1 -0
  207. package/lib/extensions/Attachment/Attachment.d.ts +15 -0
  208. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -0
  209. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIconString.d.ts +1 -0
  210. package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -0
  211. package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -0
  212. package/lib/extensions/Attachment/index.d.ts +1 -0
  213. package/lib/extensions/Blockquote/Blockquote.d.ts +6 -0
  214. package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -0
  215. package/lib/extensions/Blockquote/index.d.ts +1 -0
  216. package/lib/extensions/Bold/Bold.d.ts +6 -0
  217. package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -0
  218. package/lib/extensions/Bold/index.d.ts +1 -0
  219. package/lib/extensions/BulletList/BulletList.d.ts +6 -0
  220. package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -0
  221. package/lib/extensions/BulletList/index.d.ts +1 -0
  222. package/lib/extensions/Callout/Callout.d.ts +18 -0
  223. package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
  224. package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
  225. package/lib/extensions/Callout/index.d.ts +1 -0
  226. package/lib/extensions/Clear/Clear.d.ts +6 -0
  227. package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -0
  228. package/lib/extensions/Clear/index.d.ts +1 -0
  229. package/lib/extensions/Code/Code.d.ts +6 -0
  230. package/lib/extensions/Code/components/RichTextCode.d.ts +1 -0
  231. package/lib/extensions/Code/index.d.ts +1 -0
  232. package/lib/extensions/CodeBlock/CodeBlock.d.ts +21 -0
  233. package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +1 -0
  234. package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +1 -0
  235. package/lib/extensions/CodeBlock/index.d.ts +1 -0
  236. package/lib/extensions/CodeView/CodeView.d.ts +17 -0
  237. package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -0
  238. package/lib/extensions/CodeView/index.d.ts +1 -0
  239. package/lib/extensions/Color/Color.d.ts +22 -0
  240. package/lib/extensions/Color/components/RichTextColor.d.ts +1 -0
  241. package/lib/extensions/Color/index.d.ts +1 -0
  242. package/lib/extensions/Column/Column.d.ts +17 -0
  243. package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -0
  244. package/lib/extensions/Column/index.d.ts +1 -0
  245. package/lib/extensions/Drawer/Drawer.d.ts +15 -0
  246. package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -0
  247. package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +28 -0
  248. package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -0
  249. package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +1 -0
  250. package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -0
  251. package/lib/extensions/Drawer/index.d.ts +1 -0
  252. package/lib/extensions/Emoji/Emoji.d.ts +5 -0
  253. package/lib/extensions/Emoji/components/EmojiList/EmojiNodeView.d.ts +11 -0
  254. package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +1 -0
  255. package/lib/extensions/Emoji/index.d.ts +1 -0
  256. package/lib/extensions/Excalidraw/Excalidraw.d.ts +17 -0
  257. package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -0
  258. package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -0
  259. package/lib/extensions/Excalidraw/index.d.ts +1 -0
  260. package/lib/extensions/ExportPdf/ExportPdf.d.ts +21 -0
  261. package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -0
  262. package/lib/extensions/ExportPdf/index.d.ts +1 -0
  263. package/lib/extensions/ExportWord/ExportWord.d.ts +13 -0
  264. package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -0
  265. package/lib/extensions/ExportWord/index.d.ts +1 -0
  266. package/lib/extensions/FontFamily/FontFamily.d.ts +10 -0
  267. package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +15 -0
  268. package/lib/extensions/FontFamily/index.d.ts +1 -0
  269. package/lib/extensions/FontSize/FontSize.d.ts +32 -0
  270. package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +12 -0
  271. package/lib/extensions/FontSize/index.d.ts +1 -0
  272. package/lib/extensions/Heading/Heading.d.ts +6 -0
  273. package/lib/extensions/Heading/components/RichTextHeading.d.ts +15 -0
  274. package/lib/extensions/Heading/index.d.ts +1 -0
  275. package/lib/extensions/Highlight/Highlight.d.ts +18 -0
  276. package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +1 -0
  277. package/lib/extensions/Highlight/index.d.ts +1 -0
  278. package/lib/extensions/History/History.d.ts +6 -0
  279. package/lib/extensions/History/components/RichTextHistory.d.ts +2 -0
  280. package/lib/extensions/History/index.d.ts +1 -0
  281. package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  282. package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -0
  283. package/lib/extensions/HorizontalRule/index.d.ts +1 -0
  284. package/lib/extensions/Iframe/Iframe.d.ts +16 -0
  285. package/lib/extensions/Iframe/components/IframeNodeView.d.ts +2 -0
  286. package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -0
  287. package/lib/extensions/Iframe/index.d.ts +1 -0
  288. package/lib/extensions/Iframe/utils.d.ts +9 -0
  289. package/lib/extensions/Image/Image.d.ts +64 -0
  290. package/lib/extensions/Image/components/ImageCropper.d.ts +1 -0
  291. package/lib/extensions/Image/components/ImageView.d.ts +2 -0
  292. package/lib/extensions/Image/components/RichTextImage.d.ts +1 -0
  293. package/lib/extensions/Image/index.d.ts +1 -0
  294. package/lib/extensions/ImageGif/ImageGif.d.ts +39 -0
  295. package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -0
  296. package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +1 -0
  297. package/lib/extensions/ImageGif/components/services.d.ts +458 -0
  298. package/lib/extensions/ImageGif/index.d.ts +1 -0
  299. package/lib/extensions/ImportWord/ImportWord.d.ts +18 -0
  300. package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -0
  301. package/lib/extensions/ImportWord/index.d.ts +1 -0
  302. package/lib/extensions/Indent/Indent.d.ts +23 -0
  303. package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -0
  304. package/lib/extensions/Indent/index.d.ts +1 -0
  305. package/lib/extensions/Italic/Italic.d.ts +6 -0
  306. package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -0
  307. package/lib/extensions/Italic/index.d.ts +1 -0
  308. package/lib/extensions/Katex/Katex.d.ts +17 -0
  309. package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -0
  310. package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -0
  311. package/lib/extensions/Katex/index.d.ts +1 -0
  312. package/lib/extensions/LineHeight/LineHeight.d.ts +7 -0
  313. package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -0
  314. package/lib/extensions/LineHeight/index.d.ts +1 -0
  315. package/lib/extensions/Link/Link.d.ts +6 -0
  316. package/lib/extensions/Link/components/LinkEditBlock.d.ts +9 -0
  317. package/lib/extensions/Link/components/LinkViewBlock.d.ts +8 -0
  318. package/lib/extensions/Link/components/RichTextLink.d.ts +1 -0
  319. package/lib/extensions/Link/index.d.ts +1 -0
  320. package/lib/extensions/Mention/Mention.d.ts +3 -0
  321. package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +16 -0
  322. package/lib/extensions/Mention/index.d.ts +1 -0
  323. package/lib/extensions/Mermaid/Mermaid.d.ts +27 -0
  324. package/lib/extensions/Mermaid/components/EditMermaidBlock.d.ts +9 -0
  325. package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +9 -0
  326. package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -0
  327. package/lib/extensions/Mermaid/index.d.ts +1 -0
  328. package/lib/extensions/MoreMark/MoreMark.d.ts +20 -0
  329. package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +14 -0
  330. package/lib/extensions/MoreMark/index.d.ts +1 -0
  331. package/lib/extensions/OrderedList/OrderedList.d.ts +6 -0
  332. package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -0
  333. package/lib/extensions/OrderedList/index.d.ts +1 -0
  334. package/lib/extensions/SearchAndReplace/SearchAndReplace.d.ts +36 -0
  335. package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -0
  336. package/lib/extensions/SearchAndReplace/index.d.ts +1 -0
  337. package/lib/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  338. package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +6 -0
  339. package/lib/extensions/SlashCommand/components/SlashCommandNodeView.d.ts +3 -0
  340. package/lib/extensions/SlashCommand/index.d.ts +1 -0
  341. package/lib/extensions/SlashCommand/renderCommandListDefault.d.ts +7 -0
  342. package/lib/extensions/SlashCommand/types.d.ts +20 -0
  343. package/lib/extensions/Strike/Strike.d.ts +6 -0
  344. package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -0
  345. package/lib/extensions/Strike/index.d.ts +1 -0
  346. package/lib/extensions/Table/Table.d.ts +21 -0
  347. package/lib/extensions/Table/TableCellBackground.d.ts +14 -0
  348. package/lib/extensions/Table/components/CreateTablePopover.d.ts +7 -0
  349. package/lib/extensions/Table/components/RichTextTable.d.ts +1 -0
  350. package/lib/extensions/Table/index.d.ts +1 -0
  351. package/lib/extensions/TaskList/TaskList.d.ts +11 -0
  352. package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -0
  353. package/lib/extensions/TaskList/index.d.ts +1 -0
  354. package/lib/extensions/TextAlign/TextAlign.d.ts +17 -0
  355. package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +14 -0
  356. package/lib/extensions/TextAlign/index.d.ts +1 -0
  357. package/lib/extensions/TextDirection/TextDirection.d.ts +5 -0
  358. package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +15 -0
  359. package/lib/extensions/TextDirection/index.d.ts +1 -0
  360. package/lib/extensions/TextUnderline/TextUnderline.d.ts +6 -0
  361. package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -0
  362. package/lib/extensions/TextUnderline/index.d.ts +1 -0
  363. package/lib/extensions/Twitter/Twitter.d.ts +46 -0
  364. package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +6 -0
  365. package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +8 -0
  366. package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -0
  367. package/lib/extensions/Twitter/index.d.ts +1 -0
  368. package/lib/extensions/Video/Video.d.ts +66 -0
  369. package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -0
  370. package/lib/extensions/Video/index.d.ts +1 -0
  371. package/lib/hooks/useActive.d.ts +21 -0
  372. package/lib/hooks/useAttributes.d.ts +2 -0
  373. package/lib/hooks/useButtonProps.d.ts +1 -0
  374. package/lib/hooks/useCopy.d.ts +5 -0
  375. package/lib/hooks/useExtension.d.ts +1 -0
  376. package/lib/hooks/useLocalStorage.d.ts +13 -0
  377. package/lib/index-4Q5IhypJ.js +1349 -0
  378. package/lib/index-BCzvbrf5.cjs +12 -0
  379. package/lib/index-BG0kQamI.js +285 -0
  380. package/lib/index-C-tDsIKJ.js +1631 -0
  381. package/lib/index-C1WCZhyA.js +237 -0
  382. package/lib/index-CjhjjJsN.cjs +1 -0
  383. package/lib/index-Cs6cp0Y6.cjs +1 -0
  384. package/lib/index-CsSfYR30.js +1351 -0
  385. package/lib/index-D9oM__YW.cjs +1 -0
  386. package/lib/index-DjDf4BK8.js +707 -0
  387. package/lib/index-NsYff_Ni.cjs +1 -0
  388. package/lib/index-bVGIXhRg.cjs +1 -0
  389. package/lib/index-lj3VWExo.js +4883 -0
  390. package/lib/index-neeeY2o7.cjs +4 -0
  391. package/lib/index.cjs +115 -0
  392. package/lib/index.d.ts +2 -0
  393. package/lib/index.js +338 -0
  394. package/lib/jsx-runtime-CT7Pcg-t.js +13 -0
  395. package/lib/jsx-runtime-C_NLcKys.cjs +1 -0
  396. package/lib/lib/utils.d.ts +2 -0
  397. package/lib/locale-bundle.cjs +1 -0
  398. package/lib/locale-bundle.d.ts +1 -0
  399. package/lib/locale-bundle.js +11 -0
  400. package/lib/locales/en.d.ts +196 -0
  401. package/lib/locales/fi.d.ts +196 -0
  402. package/lib/locales/hu.d.ts +196 -0
  403. package/lib/locales/index.d.ts +1198 -0
  404. package/lib/locales/pt-br.d.ts +196 -0
  405. package/lib/locales/vi.d.ts +196 -0
  406. package/lib/locales/zh-cn.d.ts +196 -0
  407. package/lib/plugins/image-upload.d.ts +13 -0
  408. package/lib/popover-CPr9bHYn.js +24 -0
  409. package/lib/popover-D-hUKDYu.cjs +1 -0
  410. package/lib/renderNodeView-BJSrgyGj.js +28 -0
  411. package/lib/renderNodeView-DfLmGrgA.cjs +1 -0
  412. package/lib/select-C2KF4RNg.cjs +1 -0
  413. package/lib/select-CuE_HaQJ.js +120 -0
  414. package/lib/separator-CHzYNMVt.js +293 -0
  415. package/lib/separator-_gvUNba_.cjs +1 -0
  416. package/lib/store/EditorEditableReactive.d.ts +1 -0
  417. package/lib/store/ThemeColorReactive.d.ts +1 -0
  418. package/lib/store/commandList.d.ts +2 -0
  419. package/lib/store/editor.d.ts +21 -0
  420. package/lib/store/store.d.ts +3 -0
  421. package/lib/style.css +1 -0
  422. package/lib/textarea-DZj6EY-N.cjs +1 -0
  423. package/lib/textarea-gEoNp9CA.js +20 -0
  424. package/lib/theme/theme.d.ts +369 -0
  425. package/lib/theme.cjs +1 -0
  426. package/lib/theme.js +395 -0
  427. package/lib/types.d.ts +230 -0
  428. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  429. package/lib/updatePosition-e90ZrFWW.js +16 -0
  430. package/lib/utils/base64.d.ts +2 -0
  431. package/lib/utils/checkIsVideoUrl.d.ts +1 -0
  432. package/lib/utils/color.d.ts +7 -0
  433. package/lib/utils/columns.d.ts +14 -0
  434. package/lib/utils/customEvents/events.constant.d.ts +6 -0
  435. package/lib/utils/delete-node.d.ts +2 -0
  436. package/lib/utils/dom-dataset.d.ts +28 -0
  437. package/lib/utils/download.d.ts +1 -0
  438. package/lib/utils/dynamicCSS.d.ts +25 -0
  439. package/lib/utils/editor-container-size.d.ts +4 -0
  440. package/lib/utils/file.d.ts +30 -0
  441. package/lib/utils/getRenderContainer.d.ts +3 -0
  442. package/lib/utils/indent.d.ts +14 -0
  443. package/lib/utils/is-mobile.d.ts +19 -0
  444. package/lib/utils/json.d.ts +2 -0
  445. package/lib/utils/lru-cache.d.ts +31 -0
  446. package/lib/utils/mitt.d.ts +24 -0
  447. package/lib/utils/node.d.ts +15 -0
  448. package/lib/utils/pdf.d.ts +3 -0
  449. package/lib/utils/plateform.d.ts +11 -0
  450. package/lib/utils/renderNodeView.d.ts +6 -0
  451. package/lib/utils/shortId.d.ts +1 -0
  452. package/lib/utils/storage.d.ts +2 -0
  453. package/lib/utils/updatePosition.d.ts +1 -0
  454. package/lib/utils/utils.d.ts +20 -0
  455. package/lib/utils/validateFile.d.ts +16 -0
  456. package/package.json +845 -0
package/lib/History.js ADDED
@@ -0,0 +1,990 @@
1
+ import { O as N, x as te, F as V, v as G, T as H, u as _, S as A, Q as W, U as ne, E as C, V as re, W as ie, X as oe, q as se } from "./clsx-CDyrfCnw.js";
2
+ import { Plugin as I, PluginKey as b } from "@tiptap/pm/state";
3
+ import { DecorationSet as O, Decoration as R } from "@tiptap/pm/view";
4
+ import { k as le, D as ae, a as de } from "./index-C-tDsIKJ.js";
5
+ import { jsx as T, Fragment as j } from "react/jsx-runtime";
6
+ import { u as U, e as X, A as Y, i as ce } from "./index-lj3VWExo.js";
7
+ import "react";
8
+ import "./theme.js";
9
+ function ue(i = {}) {
10
+ return new N({
11
+ view(e) {
12
+ return new pe(e, i);
13
+ }
14
+ });
15
+ }
16
+ class pe {
17
+ constructor(e, t) {
18
+ var n;
19
+ this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (n = t.width) !== null && n !== void 0 ? n : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((r) => {
20
+ let o = (s) => {
21
+ this[r](s);
22
+ };
23
+ return e.dom.addEventListener(r, o), { name: r, handler: o };
24
+ });
25
+ }
26
+ destroy() {
27
+ this.handlers.forEach(({ name: e, handler: t }) => this.editorView.dom.removeEventListener(e, t));
28
+ }
29
+ update(e, t) {
30
+ this.cursorPos != null && t.doc != e.state.doc && (this.cursorPos > e.state.doc.content.size ? this.setCursor(null) : this.updateOverlay());
31
+ }
32
+ setCursor(e) {
33
+ e != this.cursorPos && (this.cursorPos = e, e == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
34
+ }
35
+ updateOverlay() {
36
+ let e = this.editorView.state.doc.resolve(this.cursorPos), t = !e.parent.inlineContent, n, r = this.editorView.dom, o = r.getBoundingClientRect(), s = o.width / r.offsetWidth, l = o.height / r.offsetHeight;
37
+ if (t) {
38
+ let c = e.nodeBefore, p = e.nodeAfter;
39
+ if (c || p) {
40
+ let h = this.editorView.nodeDOM(this.cursorPos - (c ? c.nodeSize : 0));
41
+ if (h) {
42
+ let g = h.getBoundingClientRect(), M = c ? g.bottom : g.top;
43
+ c && p && (M = (M + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
44
+ let P = this.width / 2 * l;
45
+ n = { left: g.left, right: g.right, top: M - P, bottom: M + P };
46
+ }
47
+ }
48
+ }
49
+ if (!n) {
50
+ let c = this.editorView.coordsAtPos(this.cursorPos), p = this.width / 2 * s;
51
+ n = { left: c.left - p, right: c.left + p, top: c.top, bottom: c.bottom };
52
+ }
53
+ let a = this.editorView.dom.offsetParent;
54
+ this.element || (this.element = a.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", t), this.element.classList.toggle("prosemirror-dropcursor-inline", !t);
55
+ let d, u;
56
+ if (!a || a == document.body && getComputedStyle(a).position == "static")
57
+ d = -pageXOffset, u = -pageYOffset;
58
+ else {
59
+ let c = a.getBoundingClientRect(), p = c.width / a.offsetWidth, h = c.height / a.offsetHeight;
60
+ d = c.left - a.scrollLeft * p, u = c.top - a.scrollTop * h;
61
+ }
62
+ this.element.style.left = (n.left - d) / s + "px", this.element.style.top = (n.top - u) / l + "px", this.element.style.width = (n.right - n.left) / s + "px", this.element.style.height = (n.bottom - n.top) / l + "px";
63
+ }
64
+ scheduleRemoval(e) {
65
+ clearTimeout(this.timeout), this.timeout = setTimeout(() => this.setCursor(null), e);
66
+ }
67
+ dragover(e) {
68
+ if (!this.editorView.editable)
69
+ return;
70
+ let t = this.editorView.posAtCoords({ left: e.clientX, top: e.clientY }), n = t && t.inside >= 0 && this.editorView.state.doc.nodeAt(t.inside), r = n && n.type.spec.disableDropCursor, o = typeof r == "function" ? r(this.editorView, t, e) : r;
71
+ if (t && !o) {
72
+ let s = t.pos;
73
+ if (this.editorView.dragging && this.editorView.dragging.slice) {
74
+ let l = te(this.editorView.state.doc, s, this.editorView.dragging.slice);
75
+ l != null && (s = l);
76
+ }
77
+ this.setCursor(s), this.scheduleRemoval(5e3);
78
+ }
79
+ }
80
+ dragend() {
81
+ this.scheduleRemoval(20);
82
+ }
83
+ drop() {
84
+ this.scheduleRemoval(20);
85
+ }
86
+ dragleave(e) {
87
+ this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
88
+ }
89
+ }
90
+ class f extends A {
91
+ /**
92
+ Create a gap cursor.
93
+ */
94
+ constructor(e) {
95
+ super(e, e);
96
+ }
97
+ map(e, t) {
98
+ let n = e.resolve(t.map(this.head));
99
+ return f.valid(n) ? new f(n) : A.near(n);
100
+ }
101
+ content() {
102
+ return G.empty;
103
+ }
104
+ eq(e) {
105
+ return e instanceof f && e.head == this.head;
106
+ }
107
+ toJSON() {
108
+ return { type: "gapcursor", pos: this.head };
109
+ }
110
+ /**
111
+ @internal
112
+ */
113
+ static fromJSON(e, t) {
114
+ if (typeof t.pos != "number")
115
+ throw new RangeError("Invalid input for GapCursor.fromJSON");
116
+ return new f(e.resolve(t.pos));
117
+ }
118
+ /**
119
+ @internal
120
+ */
121
+ getBookmark() {
122
+ return new F(this.anchor);
123
+ }
124
+ /**
125
+ @internal
126
+ */
127
+ static valid(e) {
128
+ let t = e.parent;
129
+ if (t.isTextblock || !fe(e) || !he(e))
130
+ return !1;
131
+ let n = t.type.spec.allowGapCursor;
132
+ if (n != null)
133
+ return n;
134
+ let r = t.contentMatchAt(e.index()).defaultType;
135
+ return r && r.isTextblock;
136
+ }
137
+ /**
138
+ @internal
139
+ */
140
+ static findGapCursorFrom(e, t, n = !1) {
141
+ e: for (; ; ) {
142
+ if (!n && f.valid(e))
143
+ return e;
144
+ let r = e.pos, o = null;
145
+ for (let s = e.depth; ; s--) {
146
+ let l = e.node(s);
147
+ if (t > 0 ? e.indexAfter(s) < l.childCount : e.index(s) > 0) {
148
+ o = l.child(t > 0 ? e.indexAfter(s) : e.index(s) - 1);
149
+ break;
150
+ } else if (s == 0)
151
+ return null;
152
+ r += t;
153
+ let a = e.doc.resolve(r);
154
+ if (f.valid(a))
155
+ return a;
156
+ }
157
+ for (; ; ) {
158
+ let s = t > 0 ? o.firstChild : o.lastChild;
159
+ if (!s) {
160
+ if (o.isAtom && !o.isText && !_.isSelectable(o)) {
161
+ e = e.doc.resolve(r + o.nodeSize * t), n = !1;
162
+ continue e;
163
+ }
164
+ break;
165
+ }
166
+ o = s, r += t;
167
+ let l = e.doc.resolve(r);
168
+ if (f.valid(l))
169
+ return l;
170
+ }
171
+ return null;
172
+ }
173
+ }
174
+ }
175
+ f.prototype.visible = !1;
176
+ f.findFrom = f.findGapCursorFrom;
177
+ A.jsonID("gapcursor", f);
178
+ class F {
179
+ constructor(e) {
180
+ this.pos = e;
181
+ }
182
+ map(e) {
183
+ return new F(e.map(this.pos));
184
+ }
185
+ resolve(e) {
186
+ let t = e.resolve(this.pos);
187
+ return f.valid(t) ? new f(t) : A.near(t);
188
+ }
189
+ }
190
+ function J(i) {
191
+ return i.isAtom || i.spec.isolating || i.spec.createGapCursor;
192
+ }
193
+ function fe(i) {
194
+ for (let e = i.depth; e >= 0; e--) {
195
+ let t = i.index(e), n = i.node(e);
196
+ if (t == 0) {
197
+ if (n.type.spec.isolating)
198
+ return !0;
199
+ continue;
200
+ }
201
+ for (let r = n.child(t - 1); ; r = r.lastChild) {
202
+ if (r.childCount == 0 && !r.inlineContent || J(r.type))
203
+ return !0;
204
+ if (r.inlineContent)
205
+ return !1;
206
+ }
207
+ }
208
+ return !0;
209
+ }
210
+ function he(i) {
211
+ for (let e = i.depth; e >= 0; e--) {
212
+ let t = i.indexAfter(e), n = i.node(e);
213
+ if (t == n.childCount) {
214
+ if (n.type.spec.isolating)
215
+ return !0;
216
+ continue;
217
+ }
218
+ for (let r = n.child(t); ; r = r.firstChild) {
219
+ if (r.childCount == 0 && !r.inlineContent || J(r.type))
220
+ return !0;
221
+ if (r.inlineContent)
222
+ return !1;
223
+ }
224
+ }
225
+ return !0;
226
+ }
227
+ function me() {
228
+ return new N({
229
+ props: {
230
+ decorations: ye,
231
+ createSelectionBetween(i, e, t) {
232
+ return e.pos == t.pos && f.valid(t) ? new f(t) : null;
233
+ },
234
+ handleClick: ve,
235
+ handleKeyDown: ge,
236
+ handleDOMEvents: { beforeinput: we }
237
+ }
238
+ });
239
+ }
240
+ const ge = le({
241
+ ArrowLeft: x("horiz", -1),
242
+ ArrowRight: x("horiz", 1),
243
+ ArrowUp: x("vert", -1),
244
+ ArrowDown: x("vert", 1)
245
+ });
246
+ function x(i, e) {
247
+ const t = i == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
248
+ return function(n, r, o) {
249
+ let s = n.selection, l = e > 0 ? s.$to : s.$from, a = s.empty;
250
+ if (s instanceof H) {
251
+ if (!o.endOfTextblock(t) || l.depth == 0)
252
+ return !1;
253
+ a = !1, l = n.doc.resolve(e > 0 ? l.after() : l.before());
254
+ }
255
+ let d = f.findGapCursorFrom(l, e, a);
256
+ return d ? (r && r(n.tr.setSelection(new f(d))), !0) : !1;
257
+ };
258
+ }
259
+ function ve(i, e, t) {
260
+ if (!i || !i.editable)
261
+ return !1;
262
+ let n = i.state.doc.resolve(e);
263
+ if (!f.valid(n))
264
+ return !1;
265
+ let r = i.posAtCoords({ left: t.clientX, top: t.clientY });
266
+ return r && r.inside > -1 && _.isSelectable(i.state.doc.nodeAt(r.inside)) ? !1 : (i.dispatch(i.state.tr.setSelection(new f(n))), !0);
267
+ }
268
+ function we(i, e) {
269
+ if (e.inputType != "insertCompositionText" || !(i.state.selection instanceof f))
270
+ return !1;
271
+ let { $from: t } = i.state.selection, n = t.parent.contentMatchAt(t.index()).findWrapping(i.state.schema.nodes.text);
272
+ if (!n)
273
+ return !1;
274
+ let r = V.empty;
275
+ for (let s = n.length - 1; s >= 0; s--)
276
+ r = V.from(n[s].createAndFill(null, r));
277
+ let o = i.state.tr.replace(t.pos, t.pos, new G(r, 0, 0));
278
+ return o.setSelection(H.near(o.doc.resolve(t.pos + 1))), i.dispatch(o), !1;
279
+ }
280
+ function ye(i) {
281
+ if (!(i.selection instanceof f))
282
+ return null;
283
+ let e = document.createElement("div");
284
+ return e.className = "ProseMirror-gapcursor", ae.create(i.doc, [de.widget(i.selection.head, e, { key: "gapcursor" })]);
285
+ }
286
+ var D = 200, m = function() {
287
+ };
288
+ m.prototype.append = function(e) {
289
+ return e.length ? (e = m.from(e), !this.length && e || e.length < D && this.leafAppend(e) || this.length < D && e.leafPrepend(this) || this.appendInner(e)) : this;
290
+ };
291
+ m.prototype.prepend = function(e) {
292
+ return e.length ? m.from(e).append(this) : this;
293
+ };
294
+ m.prototype.appendInner = function(e) {
295
+ return new Ce(this, e);
296
+ };
297
+ m.prototype.slice = function(e, t) {
298
+ return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? m.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
299
+ };
300
+ m.prototype.get = function(e) {
301
+ if (!(e < 0 || e >= this.length))
302
+ return this.getInner(e);
303
+ };
304
+ m.prototype.forEach = function(e, t, n) {
305
+ t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
306
+ };
307
+ m.prototype.map = function(e, t, n) {
308
+ t === void 0 && (t = 0), n === void 0 && (n = this.length);
309
+ var r = [];
310
+ return this.forEach(function(o, s) {
311
+ return r.push(e(o, s));
312
+ }, t, n), r;
313
+ };
314
+ m.from = function(e) {
315
+ return e instanceof m ? e : e && e.length ? new Z(e) : m.empty;
316
+ };
317
+ var Z = /* @__PURE__ */ (function(i) {
318
+ function e(n) {
319
+ i.call(this), this.values = n;
320
+ }
321
+ i && (e.__proto__ = i), e.prototype = Object.create(i && i.prototype), e.prototype.constructor = e;
322
+ var t = { length: { configurable: !0 }, depth: { configurable: !0 } };
323
+ return e.prototype.flatten = function() {
324
+ return this.values;
325
+ }, e.prototype.sliceInner = function(r, o) {
326
+ return r == 0 && o == this.length ? this : new e(this.values.slice(r, o));
327
+ }, e.prototype.getInner = function(r) {
328
+ return this.values[r];
329
+ }, e.prototype.forEachInner = function(r, o, s, l) {
330
+ for (var a = o; a < s; a++)
331
+ if (r(this.values[a], l + a) === !1)
332
+ return !1;
333
+ }, e.prototype.forEachInvertedInner = function(r, o, s, l) {
334
+ for (var a = o - 1; a >= s; a--)
335
+ if (r(this.values[a], l + a) === !1)
336
+ return !1;
337
+ }, e.prototype.leafAppend = function(r) {
338
+ if (this.length + r.length <= D)
339
+ return new e(this.values.concat(r.flatten()));
340
+ }, e.prototype.leafPrepend = function(r) {
341
+ if (this.length + r.length <= D)
342
+ return new e(r.flatten().concat(this.values));
343
+ }, t.length.get = function() {
344
+ return this.values.length;
345
+ }, t.depth.get = function() {
346
+ return 0;
347
+ }, Object.defineProperties(e.prototype, t), e;
348
+ })(m);
349
+ m.empty = new Z([]);
350
+ var Ce = /* @__PURE__ */ (function(i) {
351
+ function e(t, n) {
352
+ i.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
353
+ }
354
+ return i && (e.__proto__ = i), e.prototype = Object.create(i && i.prototype), e.prototype.constructor = e, e.prototype.flatten = function() {
355
+ return this.left.flatten().concat(this.right.flatten());
356
+ }, e.prototype.getInner = function(n) {
357
+ return n < this.left.length ? this.left.get(n) : this.right.get(n - this.left.length);
358
+ }, e.prototype.forEachInner = function(n, r, o, s) {
359
+ var l = this.left.length;
360
+ if (r < l && this.left.forEachInner(n, r, Math.min(o, l), s) === !1 || o > l && this.right.forEachInner(n, Math.max(r - l, 0), Math.min(this.length, o) - l, s + l) === !1)
361
+ return !1;
362
+ }, e.prototype.forEachInvertedInner = function(n, r, o, s) {
363
+ var l = this.left.length;
364
+ if (r > l && this.right.forEachInvertedInner(n, r - l, Math.max(o, l) - l, s + l) === !1 || o < l && this.left.forEachInvertedInner(n, Math.min(r, l), o, s) === !1)
365
+ return !1;
366
+ }, e.prototype.sliceInner = function(n, r) {
367
+ if (n == 0 && r == this.length)
368
+ return this;
369
+ var o = this.left.length;
370
+ return r <= o ? this.left.slice(n, r) : n >= o ? this.right.slice(n - o, r - o) : this.left.slice(n, o).append(this.right.slice(0, r - o));
371
+ }, e.prototype.leafAppend = function(n) {
372
+ var r = this.right.leafAppend(n);
373
+ if (r)
374
+ return new e(this.left, r);
375
+ }, e.prototype.leafPrepend = function(n) {
376
+ var r = this.left.leafPrepend(n);
377
+ if (r)
378
+ return new e(r, this.right);
379
+ }, e.prototype.appendInner = function(n) {
380
+ return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new e(this.left, new e(this.right, n)) : new e(this, n);
381
+ }, e;
382
+ })(m);
383
+ const Ee = 500;
384
+ class v {
385
+ constructor(e, t) {
386
+ this.items = e, this.eventCount = t;
387
+ }
388
+ // Pop the latest event off the branch's history and apply it
389
+ // to a document transform.
390
+ popEvent(e, t) {
391
+ if (this.eventCount == 0)
392
+ return null;
393
+ let n = this.items.length;
394
+ for (; ; n--)
395
+ if (this.items.get(n - 1).selection) {
396
+ --n;
397
+ break;
398
+ }
399
+ let r, o;
400
+ t && (r = this.remapping(n, this.items.length), o = r.maps.length);
401
+ let s = e.tr, l, a, d = [], u = [];
402
+ return this.items.forEach((c, p) => {
403
+ if (!c.step) {
404
+ r || (r = this.remapping(n, p + 1), o = r.maps.length), o--, u.push(c);
405
+ return;
406
+ }
407
+ if (r) {
408
+ u.push(new w(c.map));
409
+ let h = c.step.map(r.slice(o)), g;
410
+ h && s.maybeStep(h).doc && (g = s.mapping.maps[s.mapping.maps.length - 1], d.push(new w(g, void 0, void 0, d.length + u.length))), o--, g && r.appendMap(g, o);
411
+ } else
412
+ s.maybeStep(c.step);
413
+ if (c.selection)
414
+ return l = r ? c.selection.map(r.slice(o)) : c.selection, a = new v(this.items.slice(0, n).append(u.reverse().concat(d)), this.eventCount - 1), !1;
415
+ }, this.items.length, 0), { remaining: a, transform: s, selection: l };
416
+ }
417
+ // Create a new branch with the given transform added.
418
+ addTransform(e, t, n, r) {
419
+ let o = [], s = this.eventCount, l = this.items, a = !r && l.length ? l.get(l.length - 1) : null;
420
+ for (let u = 0; u < e.steps.length; u++) {
421
+ let c = e.steps[u].invert(e.docs[u]), p = new w(e.mapping.maps[u], c, t), h;
422
+ (h = a && a.merge(p)) && (p = h, u ? o.pop() : l = l.slice(0, l.length - 1)), o.push(p), t && (s++, t = void 0), r || (a = p);
423
+ }
424
+ let d = s - n.depth;
425
+ return d > Pe && (l = Me(l, d), s -= d), new v(l.append(o), s);
426
+ }
427
+ remapping(e, t) {
428
+ let n = new ne();
429
+ return this.items.forEach((r, o) => {
430
+ let s = r.mirrorOffset != null && o - r.mirrorOffset >= e ? n.maps.length - r.mirrorOffset : void 0;
431
+ n.appendMap(r.map, s);
432
+ }, e, t), n;
433
+ }
434
+ addMaps(e) {
435
+ return this.eventCount == 0 ? this : new v(this.items.append(e.map((t) => new w(t))), this.eventCount);
436
+ }
437
+ // When the collab module receives remote changes, the history has
438
+ // to know about those, so that it can adjust the steps that were
439
+ // rebased on top of the remote changes, and include the position
440
+ // maps for the remote changes in its array of items.
441
+ rebased(e, t) {
442
+ if (!this.eventCount)
443
+ return this;
444
+ let n = [], r = Math.max(0, this.items.length - t), o = e.mapping, s = e.steps.length, l = this.eventCount;
445
+ this.items.forEach((p) => {
446
+ p.selection && l--;
447
+ }, r);
448
+ let a = t;
449
+ this.items.forEach((p) => {
450
+ let h = o.getMirror(--a);
451
+ if (h == null)
452
+ return;
453
+ s = Math.min(s, h);
454
+ let g = o.maps[h];
455
+ if (p.step) {
456
+ let M = e.steps[h].invert(e.docs[h]), P = p.selection && p.selection.map(o.slice(a + 1, h));
457
+ P && l++, n.push(new w(g, M, P));
458
+ } else
459
+ n.push(new w(g));
460
+ }, r);
461
+ let d = [];
462
+ for (let p = t; p < s; p++)
463
+ d.push(new w(o.maps[p]));
464
+ let u = this.items.slice(0, r).append(d).append(n), c = new v(u, l);
465
+ return c.emptyItemCount() > Ee && (c = c.compress(this.items.length - n.length)), c;
466
+ }
467
+ emptyItemCount() {
468
+ let e = 0;
469
+ return this.items.forEach((t) => {
470
+ t.step || e++;
471
+ }), e;
472
+ }
473
+ // Compressing a branch means rewriting it to push the air (map-only
474
+ // items) out. During collaboration, these naturally accumulate
475
+ // because each remote change adds one. The `upto` argument is used
476
+ // to ensure that only the items below a given level are compressed,
477
+ // because `rebased` relies on a clean, untouched set of items in
478
+ // order to associate old items with rebased steps.
479
+ compress(e = this.items.length) {
480
+ let t = this.remapping(0, e), n = t.maps.length, r = [], o = 0;
481
+ return this.items.forEach((s, l) => {
482
+ if (l >= e)
483
+ r.push(s), s.selection && o++;
484
+ else if (s.step) {
485
+ let a = s.step.map(t.slice(n)), d = a && a.getMap();
486
+ if (n--, d && t.appendMap(d, n), a) {
487
+ let u = s.selection && s.selection.map(t.slice(n));
488
+ u && o++;
489
+ let c = new w(d.invert(), a, u), p, h = r.length - 1;
490
+ (p = r.length && r[h].merge(c)) ? r[h] = p : r.push(c);
491
+ }
492
+ } else s.map && n--;
493
+ }, this.items.length, 0), new v(m.from(r.reverse()), o);
494
+ }
495
+ }
496
+ v.empty = new v(m.empty, 0);
497
+ function Me(i, e) {
498
+ let t;
499
+ return i.forEach((n, r) => {
500
+ if (n.selection && e-- == 0)
501
+ return t = r, !1;
502
+ }), i.slice(t);
503
+ }
504
+ class w {
505
+ constructor(e, t, n, r) {
506
+ this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
507
+ }
508
+ merge(e) {
509
+ if (this.step && e.step && !e.selection) {
510
+ let t = e.step.merge(this.step);
511
+ if (t)
512
+ return new w(t.getMap().invert(), t, this.selection);
513
+ }
514
+ }
515
+ }
516
+ class y {
517
+ constructor(e, t, n, r, o) {
518
+ this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = o;
519
+ }
520
+ }
521
+ const Pe = 20;
522
+ function Ie(i, e, t, n) {
523
+ let r = t.getMeta(E), o;
524
+ if (r)
525
+ return r.historyState;
526
+ t.getMeta(Se) && (i = new y(i.done, i.undone, null, 0, -1));
527
+ let s = t.getMeta("appendedTransaction");
528
+ if (t.steps.length == 0)
529
+ return i;
530
+ if (s && s.getMeta(E))
531
+ return s.getMeta(E).redo ? new y(i.done.addTransform(t, void 0, n, S(e)), i.undone, L(t.mapping.maps), i.prevTime, i.prevComposition) : new y(i.done, i.undone.addTransform(t, void 0, n, S(e)), null, i.prevTime, i.prevComposition);
532
+ if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
533
+ let l = t.getMeta("composition"), a = i.prevTime == 0 || !s && i.prevComposition != l && (i.prevTime < (t.time || 0) - n.newGroupDelay || !be(t, i.prevRanges)), d = s ? k(i.prevRanges, t.mapping) : L(t.mapping.maps);
534
+ return new y(i.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, S(e)), v.empty, d, t.time, l ?? i.prevComposition);
535
+ } else return (o = t.getMeta("rebased")) ? new y(i.done.rebased(t, o), i.undone.rebased(t, o), k(i.prevRanges, t.mapping), i.prevTime, i.prevComposition) : new y(i.done.addMaps(t.mapping.maps), i.undone.addMaps(t.mapping.maps), k(i.prevRanges, t.mapping), i.prevTime, i.prevComposition);
536
+ }
537
+ function be(i, e) {
538
+ if (!e)
539
+ return !1;
540
+ if (!i.docChanged)
541
+ return !0;
542
+ let t = !1;
543
+ return i.mapping.maps[0].forEach((n, r) => {
544
+ for (let o = 0; o < e.length; o += 2)
545
+ n <= e[o + 1] && r >= e[o] && (t = !0);
546
+ }), t;
547
+ }
548
+ function L(i) {
549
+ let e = [];
550
+ for (let t = i.length - 1; t >= 0 && e.length == 0; t--)
551
+ i[t].forEach((n, r, o, s) => e.push(o, s));
552
+ return e;
553
+ }
554
+ function k(i, e) {
555
+ if (!i)
556
+ return null;
557
+ let t = [];
558
+ for (let n = 0; n < i.length; n += 2) {
559
+ let r = e.map(i[n], 1), o = e.map(i[n + 1], -1);
560
+ r <= o && t.push(r, o);
561
+ }
562
+ return t;
563
+ }
564
+ function xe(i, e, t) {
565
+ let n = S(e), r = E.get(e).spec.config, o = (t ? i.undone : i.done).popEvent(e, n);
566
+ if (!o)
567
+ return null;
568
+ let s = o.selection.resolve(o.transform.doc), l = (t ? i.done : i.undone).addTransform(o.transform, e.selection.getBookmark(), r, n), a = new y(t ? l : o.remaining, t ? o.remaining : l, null, 0, -1);
569
+ return o.transform.setSelection(s).setMeta(E, { redo: t, historyState: a });
570
+ }
571
+ let z = !1, B = null;
572
+ function S(i) {
573
+ let e = i.plugins;
574
+ if (B != e) {
575
+ z = !1, B = e;
576
+ for (let t = 0; t < e.length; t++)
577
+ if (e[t].spec.historyPreserveItems) {
578
+ z = !0;
579
+ break;
580
+ }
581
+ }
582
+ return z;
583
+ }
584
+ const E = new W("history"), Se = new W("closeHistory");
585
+ function Ae(i = {}) {
586
+ return i = {
587
+ depth: i.depth || 100,
588
+ newGroupDelay: i.newGroupDelay || 500
589
+ }, new N({
590
+ key: E,
591
+ state: {
592
+ init() {
593
+ return new y(v.empty, v.empty, null, 0, -1);
594
+ },
595
+ apply(e, t, n) {
596
+ return Ie(t, n, e, i);
597
+ }
598
+ },
599
+ config: i,
600
+ props: {
601
+ handleDOMEvents: {
602
+ beforeinput(e, t) {
603
+ let n = t.inputType, r = n == "historyUndo" ? q : n == "historyRedo" ? $ : null;
604
+ return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
605
+ }
606
+ }
607
+ }
608
+ });
609
+ }
610
+ function Q(i, e) {
611
+ return (t, n) => {
612
+ let r = E.getState(t);
613
+ if (!r || (i ? r.undone : r.done).eventCount == 0)
614
+ return !1;
615
+ if (n) {
616
+ let o = xe(r, t, i);
617
+ o && n(e ? o.scrollIntoView() : o);
618
+ }
619
+ return !0;
620
+ };
621
+ }
622
+ const q = Q(!1, !0), $ = Q(!0, !0);
623
+ C.create({
624
+ name: "characterCount",
625
+ addOptions() {
626
+ return {
627
+ limit: null,
628
+ mode: "textSize",
629
+ textCounter: (i) => i.length,
630
+ wordCounter: (i) => i.split(" ").filter((e) => e !== "").length
631
+ };
632
+ },
633
+ addStorage() {
634
+ return {
635
+ characters: () => 0,
636
+ words: () => 0
637
+ };
638
+ },
639
+ onBeforeCreate() {
640
+ this.storage.characters = (i) => {
641
+ const e = (i == null ? void 0 : i.node) || this.editor.state.doc;
642
+ if (((i == null ? void 0 : i.mode) || this.options.mode) === "textSize") {
643
+ const n = e.textBetween(0, e.content.size, void 0, " ");
644
+ return this.options.textCounter(n);
645
+ }
646
+ return e.nodeSize;
647
+ }, this.storage.words = (i) => {
648
+ const e = (i == null ? void 0 : i.node) || this.editor.state.doc, t = e.textBetween(0, e.content.size, " ", " ");
649
+ return this.options.wordCounter(t);
650
+ };
651
+ },
652
+ addProseMirrorPlugins() {
653
+ let i = !1;
654
+ return [
655
+ new I({
656
+ key: new b("characterCount"),
657
+ appendTransaction: (e, t, n) => {
658
+ if (i)
659
+ return;
660
+ const r = this.options.limit;
661
+ if (r == null || r === 0) {
662
+ i = !0;
663
+ return;
664
+ }
665
+ const o = this.storage.characters({ node: n.doc });
666
+ if (o > r) {
667
+ const s = o - r, l = 0, a = s;
668
+ console.warn(
669
+ `[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`
670
+ );
671
+ const d = n.tr.deleteRange(l, a);
672
+ return i = !0, d;
673
+ }
674
+ i = !0;
675
+ },
676
+ filterTransaction: (e, t) => {
677
+ const n = this.options.limit;
678
+ if (!e.docChanged || n === 0 || n === null || n === void 0)
679
+ return !0;
680
+ const r = this.storage.characters({ node: t.doc }), o = this.storage.characters({ node: e.doc });
681
+ if (o <= n || r > n && o > n && o <= r)
682
+ return !0;
683
+ if (r > n && o > n && o > r || !e.getMeta("paste"))
684
+ return !1;
685
+ const l = e.selection.$head.pos, a = o - n, d = l - a, u = l;
686
+ return e.deleteRange(d, u), !(this.storage.characters({ node: e.doc }) > n);
687
+ }
688
+ })
689
+ ];
690
+ }
691
+ });
692
+ C.create({
693
+ name: "dropCursor",
694
+ addOptions() {
695
+ return {
696
+ color: "currentColor",
697
+ width: 1,
698
+ class: void 0
699
+ };
700
+ },
701
+ addProseMirrorPlugins() {
702
+ return [ue(this.options)];
703
+ }
704
+ });
705
+ C.create({
706
+ name: "focus",
707
+ addOptions() {
708
+ return {
709
+ className: "has-focus",
710
+ mode: "all"
711
+ };
712
+ },
713
+ addProseMirrorPlugins() {
714
+ return [
715
+ new I({
716
+ key: new b("focus"),
717
+ props: {
718
+ decorations: ({ doc: i, selection: e }) => {
719
+ const { isEditable: t, isFocused: n } = this.editor, { anchor: r } = e, o = [];
720
+ if (!t || !n)
721
+ return O.create(i, []);
722
+ let s = 0;
723
+ this.options.mode === "deepest" && i.descendants((a, d) => {
724
+ if (a.isText)
725
+ return;
726
+ if (!(r >= d && r <= d + a.nodeSize - 1))
727
+ return !1;
728
+ s += 1;
729
+ });
730
+ let l = 0;
731
+ return i.descendants((a, d) => {
732
+ if (a.isText || !(r >= d && r <= d + a.nodeSize - 1))
733
+ return !1;
734
+ if (l += 1, this.options.mode === "deepest" && s - l > 0 || this.options.mode === "shallowest" && l > 1)
735
+ return this.options.mode === "deepest";
736
+ o.push(
737
+ R.node(d, d + a.nodeSize, {
738
+ class: this.options.className
739
+ })
740
+ );
741
+ }), O.create(i, o);
742
+ }
743
+ }
744
+ })
745
+ ];
746
+ }
747
+ });
748
+ C.create({
749
+ name: "gapCursor",
750
+ addProseMirrorPlugins() {
751
+ return [me()];
752
+ },
753
+ extendNodeSchema(i) {
754
+ var e;
755
+ const t = {
756
+ name: i.name,
757
+ options: i.options,
758
+ storage: i.storage
759
+ };
760
+ return {
761
+ allowGapCursor: (e = re(ie(i, "allowGapCursor", t))) != null ? e : null
762
+ };
763
+ }
764
+ });
765
+ C.create({
766
+ name: "placeholder",
767
+ addOptions() {
768
+ return {
769
+ emptyEditorClass: "is-editor-empty",
770
+ emptyNodeClass: "is-empty",
771
+ placeholder: "Write something …",
772
+ showOnlyWhenEditable: !0,
773
+ showOnlyCurrent: !0,
774
+ includeChildren: !1
775
+ };
776
+ },
777
+ addProseMirrorPlugins() {
778
+ return [
779
+ new I({
780
+ key: new b("placeholder"),
781
+ props: {
782
+ decorations: ({ doc: i, selection: e }) => {
783
+ const t = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: n } = e, r = [];
784
+ if (!t)
785
+ return null;
786
+ const o = this.editor.isEmpty;
787
+ return i.descendants((s, l) => {
788
+ const a = n >= l && n <= l + s.nodeSize, d = !s.isLeaf && oe(s);
789
+ if ((a || !this.options.showOnlyCurrent) && d) {
790
+ const u = [this.options.emptyNodeClass];
791
+ o && u.push(this.options.emptyEditorClass);
792
+ const c = R.node(l, l + s.nodeSize, {
793
+ class: u.join(" "),
794
+ "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
795
+ editor: this.editor,
796
+ node: s,
797
+ pos: l,
798
+ hasAnchor: a
799
+ }) : this.options.placeholder
800
+ });
801
+ r.push(c);
802
+ }
803
+ return this.options.includeChildren;
804
+ }), O.create(i, r);
805
+ }
806
+ }
807
+ })
808
+ ];
809
+ }
810
+ });
811
+ C.create({
812
+ name: "selection",
813
+ addOptions() {
814
+ return {
815
+ className: "selection"
816
+ };
817
+ },
818
+ addProseMirrorPlugins() {
819
+ const { editor: i, options: e } = this;
820
+ return [
821
+ new I({
822
+ key: new b("selection"),
823
+ props: {
824
+ decorations(t) {
825
+ return t.selection.empty || i.isFocused || !i.isEditable || se(t.selection) || i.view.dragging ? null : O.create(t.doc, [
826
+ R.inline(t.selection.from, t.selection.to, {
827
+ class: e.className
828
+ })
829
+ ]);
830
+ }
831
+ }
832
+ })
833
+ ];
834
+ }
835
+ });
836
+ function K({ types: i, node: e }) {
837
+ return e && Array.isArray(i) && i.includes(e.type) || (e == null ? void 0 : e.type) === i;
838
+ }
839
+ C.create({
840
+ name: "trailingNode",
841
+ addOptions() {
842
+ return {
843
+ node: void 0,
844
+ notAfter: []
845
+ };
846
+ },
847
+ addProseMirrorPlugins() {
848
+ var i;
849
+ const e = new b(this.name), t = this.options.node || ((i = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : i.name) || "paragraph", n = Object.entries(this.editor.schema.nodes).map(([, r]) => r).filter((r) => (this.options.notAfter || []).concat(t).includes(r.name));
850
+ return [
851
+ new I({
852
+ key: e,
853
+ appendTransaction: (r, o, s) => {
854
+ const { doc: l, tr: a, schema: d } = s, u = e.getState(s), c = l.content.size, p = d.nodes[t];
855
+ if (u)
856
+ return a.insert(c, p.create());
857
+ },
858
+ state: {
859
+ init: (r, o) => {
860
+ const s = o.tr.doc.lastChild;
861
+ return !K({ node: s, types: n });
862
+ },
863
+ apply: (r, o) => {
864
+ if (!r.docChanged || r.getMeta("__uniqueIDTransaction"))
865
+ return o;
866
+ const s = r.doc.lastChild;
867
+ return !K({ node: s, types: n });
868
+ }
869
+ }
870
+ })
871
+ ];
872
+ }
873
+ });
874
+ var Oe = C.create({
875
+ name: "undoRedo",
876
+ addOptions() {
877
+ return {
878
+ depth: 100,
879
+ newGroupDelay: 500
880
+ };
881
+ },
882
+ addCommands() {
883
+ return {
884
+ undo: () => ({ state: i, dispatch: e }) => q(i, e),
885
+ redo: () => ({ state: i, dispatch: e }) => $(i, e)
886
+ };
887
+ },
888
+ addProseMirrorPlugins() {
889
+ return [Ae(this.options)];
890
+ },
891
+ addKeyboardShortcuts() {
892
+ return {
893
+ "Mod-z": () => this.editor.commands.undo(),
894
+ "Shift-Mod-z": () => this.editor.commands.redo(),
895
+ "Mod-y": () => this.editor.commands.redo(),
896
+ // Russian keyboard layouts
897
+ "Mod-я": () => this.editor.commands.undo(),
898
+ "Shift-Mod-я": () => this.editor.commands.redo()
899
+ };
900
+ }
901
+ });
902
+ function Le() {
903
+ var u;
904
+ const i = U(ee.name), {
905
+ icon: e = void 0,
906
+ tooltip: t = void 0,
907
+ shortcutKeys: n = void 0,
908
+ tooltipOptions: r = {},
909
+ action: o = void 0,
910
+ isActive: s = void 0
911
+ } = ((u = i == null ? void 0 : i.componentProps) == null ? void 0 : u.undo) ?? {}, { disabled: l } = X(s), a = ce[e], d = () => {
912
+ l || o && o();
913
+ };
914
+ return !i || !a ? /* @__PURE__ */ T(j, {}) : /* @__PURE__ */ T(
915
+ Y,
916
+ {
917
+ action: d,
918
+ disabled: l,
919
+ icon: e,
920
+ shortcutKeys: n,
921
+ tooltip: t,
922
+ tooltipOptions: r
923
+ }
924
+ );
925
+ }
926
+ function Be() {
927
+ var d;
928
+ const i = U(ee.name), {
929
+ icon: e = void 0,
930
+ tooltip: t = void 0,
931
+ shortcutKeys: n = void 0,
932
+ tooltipOptions: r = {},
933
+ action: o = void 0,
934
+ isActive: s = void 0
935
+ } = ((d = i == null ? void 0 : i.componentProps) == null ? void 0 : d.redo) ?? {}, { disabled: l } = X(s), a = () => {
936
+ l || o && o();
937
+ };
938
+ return i ? /* @__PURE__ */ T(
939
+ Y,
940
+ {
941
+ action: a,
942
+ disabled: l,
943
+ icon: e,
944
+ shortcutKeys: n,
945
+ tooltip: t,
946
+ tooltipOptions: r
947
+ }
948
+ ) : /* @__PURE__ */ T(j, {});
949
+ }
950
+ const ee = /* @__PURE__ */ Oe.extend({
951
+ //@ts-expect-error
952
+ addOptions() {
953
+ var i;
954
+ return {
955
+ ...(i = this.parent) == null ? void 0 : i.call(this),
956
+ depth: 100,
957
+ newGroupDelay: 500,
958
+ button: ({ editor: e, t, extension: n }) => {
959
+ var r, o;
960
+ return {
961
+ componentProps: {
962
+ undo: {
963
+ action: () => {
964
+ e.chain().focus().undo().run();
965
+ },
966
+ shortcutKeys: ((r = n.options.shortcutKeys) == null ? void 0 : r[0]) ?? ["mod", "Z"],
967
+ isActive: () => e.can().undo(),
968
+ icon: "Undo2",
969
+ tooltip: t("editor.undo.tooltip")
970
+ },
971
+ redo: {
972
+ action: () => {
973
+ e.chain().focus().redo().run();
974
+ },
975
+ shortcutKeys: ((o = n.options.shortcutKeys) == null ? void 0 : o[1]) ?? ["shift", "mod", "Z"],
976
+ isActive: () => e.can().redo(),
977
+ icon: "Redo2",
978
+ tooltip: t("editor.redo.tooltip")
979
+ }
980
+ }
981
+ };
982
+ }
983
+ };
984
+ }
985
+ });
986
+ export {
987
+ ee as History,
988
+ Be as RichTextRedo,
989
+ Le as RichTextUndo
990
+ };