react-reason-editor 1.0.24

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 (871) hide show
  1. package/README.md +225 -0
  2. package/dist/ActionMenuButton-BGj7ODjl.cjs +1 -0
  3. package/dist/ActionMenuButton-DHYJFTev.js +2 -0
  4. package/dist/Attachment-DGzsbPZZ.js +4 -0
  5. package/dist/Attachment.cjs +1 -0
  6. package/dist/Attachment.js +1 -0
  7. package/dist/Blockquote-CQ6HlDnL.js +2 -0
  8. package/dist/Blockquote.cjs +1 -0
  9. package/dist/Blockquote.js +1 -0
  10. package/dist/Bold-Ciuvp1pM.js +2 -0
  11. package/dist/Bold-M6IKTPME.cjs +1 -0
  12. package/dist/Bold.cjs +1 -0
  13. package/dist/Bold.js +1 -0
  14. package/dist/BulletList.cjs +1 -0
  15. package/dist/BulletList.js +1 -0
  16. package/dist/Callout-DOHjjQtT.cjs +1 -0
  17. package/dist/Callout-heY7R-Zu.js +11 -0
  18. package/dist/Callout.cjs +1 -0
  19. package/dist/Callout.js +1 -0
  20. package/dist/Clear.cjs +1 -0
  21. package/dist/Clear.js +1 -0
  22. package/dist/Code-B17BQJf-.js +1 -0
  23. package/dist/Code-BsD1D1sK.cjs +1 -0
  24. package/dist/Code.cjs +1 -0
  25. package/dist/Code.js +1 -0
  26. package/dist/CodeBlock-B7Wklup8.js +1 -0
  27. package/dist/CodeBlock-D2OKvGCF.cjs +1 -0
  28. package/dist/CodeBlock.cjs +1 -0
  29. package/dist/CodeBlock.js +1 -0
  30. package/dist/CodeView.cjs +1 -0
  31. package/dist/CodeView.js +1 -0
  32. package/dist/Color-BxzxtvJH.cjs +1 -0
  33. package/dist/Color-VWGwmpsG.js +5 -0
  34. package/dist/Color.cjs +1 -0
  35. package/dist/Color.js +1 -0
  36. package/dist/Column-D4FgAp5K.js +1 -0
  37. package/dist/Column-I4gS_xKw.cjs +1 -0
  38. package/dist/Column.cjs +1 -0
  39. package/dist/Column.js +1 -0
  40. package/dist/Comment-DEtjWTFF.js +14 -0
  41. package/dist/Comment-DaHgAu2h.cjs +1 -0
  42. package/dist/Comment.cjs +1 -0
  43. package/dist/Comment.js +1 -0
  44. package/dist/Drawer-Dunw22Q1.js +63 -0
  45. package/dist/Drawer-DxCO6TBr.cjs +1 -0
  46. package/dist/Drawer.cjs +1 -0
  47. package/dist/Drawer.js +1 -0
  48. package/dist/Drawio-Bx8zt_CW.cjs +1 -0
  49. package/dist/Drawio-eqEGDkwW.js +6 -0
  50. package/dist/Drawio.cjs +1 -0
  51. package/dist/Drawio.js +1 -0
  52. package/dist/Emoji-BU-itkPp.js +12 -0
  53. package/dist/Emoji.cjs +1 -0
  54. package/dist/Emoji.js +1 -0
  55. package/dist/ExportPdf-DPeFg2GG.js +1 -0
  56. package/dist/ExportPdf.cjs +1 -0
  57. package/dist/ExportPdf.js +1 -0
  58. package/dist/ExportWord-TFEb3HXz.js +1 -0
  59. package/dist/ExportWord.cjs +1 -0
  60. package/dist/ExportWord.js +1 -0
  61. package/dist/FontFamily.cjs +1 -0
  62. package/dist/FontFamily.js +2 -0
  63. package/dist/FontSize.cjs +1 -0
  64. package/dist/FontSize.js +8 -0
  65. package/dist/Harper-1cMMY1sx.cjs +1 -0
  66. package/dist/Harper-BMTF3gpj.js +1 -0
  67. package/dist/Harper.cjs +1 -0
  68. package/dist/Harper.js +1 -0
  69. package/dist/Heading-YSJHyWCU.js +2 -0
  70. package/dist/Heading.cjs +1 -0
  71. package/dist/Heading.js +1 -0
  72. package/dist/Highlight-BeqLxfbY.cjs +1 -0
  73. package/dist/Highlight-OkaWwhRk.js +5 -0
  74. package/dist/Highlight.cjs +1 -0
  75. package/dist/Highlight.js +1 -0
  76. package/dist/History-C6yBYB2w.js +1 -0
  77. package/dist/History.cjs +1 -0
  78. package/dist/History.js +1 -0
  79. package/dist/HorizontalRule-kAw8TV0V.js +1 -0
  80. package/dist/HorizontalRule.cjs +1 -0
  81. package/dist/HorizontalRule.js +1 -0
  82. package/dist/Icon-CJJ9AQtR.js +1 -0
  83. package/dist/Icon-DQdA22_-.cjs +1 -0
  84. package/dist/Iframe-B-0W9YYq.js +2 -0
  85. package/dist/Iframe-DS5N9EFx.cjs +1 -0
  86. package/dist/Iframe.cjs +1 -0
  87. package/dist/Iframe.js +1 -0
  88. package/dist/Image.cjs +1 -0
  89. package/dist/Image.js +1 -0
  90. package/dist/ImageCropper-BAWOk69J.cjs +1 -0
  91. package/dist/ImageCropper-Dlz4nJQu.js +11 -0
  92. package/dist/ImageGif-CWfgVc6e.cjs +1 -0
  93. package/dist/ImageGif-D5Qw_Xf-.js +3 -0
  94. package/dist/ImageGif.cjs +1 -0
  95. package/dist/ImageGif.js +1 -0
  96. package/dist/ImportWord-BCcs3dYp.js +1 -0
  97. package/dist/ImportWord.cjs +1 -0
  98. package/dist/ImportWord.js +1 -0
  99. package/dist/Indent-6tc8tB62.cjs +1 -0
  100. package/dist/Indent-DpTPoZMk.js +1 -0
  101. package/dist/Indent.cjs +1 -0
  102. package/dist/Indent.js +1 -0
  103. package/dist/Italic-Brjxxqsi.cjs +1 -0
  104. package/dist/Italic-CZkbT3Dd.js +1 -0
  105. package/dist/Italic.cjs +1 -0
  106. package/dist/Italic.js +1 -0
  107. package/dist/Katex-Bo_vfXrd.js +10 -0
  108. package/dist/Katex-D_vF5gsD.cjs +1 -0
  109. package/dist/Katex.cjs +1 -0
  110. package/dist/Katex.js +1 -0
  111. package/dist/LineHeight.cjs +1 -0
  112. package/dist/LineHeight.js +1 -0
  113. package/dist/Link-C0cNnjXo.js +6 -0
  114. package/dist/Link.cjs +1 -0
  115. package/dist/Link.js +1 -0
  116. package/dist/LinkEditBlock-Or1HIYih.cjs +1 -0
  117. package/dist/MarkdownPaste-C5jQ33SR.js +1 -0
  118. package/dist/MarkdownPaste.cjs +1 -0
  119. package/dist/MarkdownPaste.js +1 -0
  120. package/dist/Mention-DEkbeL04.js +1 -0
  121. package/dist/Mention.cjs +1 -0
  122. package/dist/Mention.js +1 -0
  123. package/dist/Mermaid-BB15qd24.cjs +1 -0
  124. package/dist/Mermaid-DxpFRVu0.js +5 -0
  125. package/dist/Mermaid.cjs +1 -0
  126. package/dist/Mermaid.js +1 -0
  127. package/dist/MoreMark-CXudh2cm.js +3 -0
  128. package/dist/MoreMark.cjs +1 -0
  129. package/dist/MoreMark.js +1 -0
  130. package/dist/OfficePaste-BmPshTAb.js +1 -0
  131. package/dist/OfficePaste-Day0T6Ox.cjs +1 -0
  132. package/dist/OfficePaste.cjs +1 -0
  133. package/dist/OfficePaste.js +1 -0
  134. package/dist/OrderedList.cjs +1 -0
  135. package/dist/OrderedList.js +1 -0
  136. package/dist/Pagination-B8rfYYi_.js +1 -0
  137. package/dist/Pagination-yjRu_qJK.cjs +1 -0
  138. package/dist/Pagination.cjs +1 -0
  139. package/dist/Pagination.js +1 -0
  140. package/dist/SearchAndReplace.cjs +1 -0
  141. package/dist/SearchAndReplace.js +11 -0
  142. package/dist/SlashCommand-8LkH8bHy.js +1 -0
  143. package/dist/SlashCommand.cjs +1 -0
  144. package/dist/SlashCommand.js +1 -0
  145. package/dist/Strike-BsMuOhxs.js +1 -0
  146. package/dist/Strike.cjs +1 -0
  147. package/dist/Strike.js +1 -0
  148. package/dist/Table-B4KNW7Yq.cjs +1 -0
  149. package/dist/Table-C9t-k9Qu.js +3 -0
  150. package/dist/Table.cjs +1 -0
  151. package/dist/Table.js +1 -0
  152. package/dist/TableOfContents.cjs +1 -0
  153. package/dist/TableOfContents.js +1 -0
  154. package/dist/TaskList.cjs +1 -0
  155. package/dist/TaskList.js +1 -0
  156. package/dist/TextAlign-6ElUYI4_.cjs +1 -0
  157. package/dist/TextAlign-C75gn_OM.js +1 -0
  158. package/dist/TextAlign.cjs +1 -0
  159. package/dist/TextAlign.js +1 -0
  160. package/dist/TextDirection.cjs +1 -0
  161. package/dist/TextDirection.js +1 -0
  162. package/dist/TextUnderline-BaV7bhwo.js +1 -0
  163. package/dist/TextUnderline-ofstnQx_.cjs +1 -0
  164. package/dist/TextUnderline.cjs +1 -0
  165. package/dist/TextUnderline.js +1 -0
  166. package/dist/Twitter-D5UNfT-K.js +5 -0
  167. package/dist/Twitter-DyrQT0n4.cjs +1 -0
  168. package/dist/Twitter.cjs +1 -0
  169. package/dist/Twitter.js +1 -0
  170. package/dist/Video-BSH5k6Jd.cjs +1 -0
  171. package/dist/Video-_YlAC2R_.js +5 -0
  172. package/dist/Video.cjs +1 -0
  173. package/dist/Video.js +1 -0
  174. package/dist/WordCount.cjs +1 -0
  175. package/dist/WordCount.js +2 -0
  176. package/dist/app-hooks/use-mobile.d.ts +5 -0
  177. package/dist/app-hooks/useDocumentSync.d.ts +27 -0
  178. package/dist/app-hooks/useLocalStorage.d.ts +11 -0
  179. package/dist/app-theme/theme-dropdown.d.ts +1 -0
  180. package/dist/app-types/document.d.ts +81 -0
  181. package/dist/app-types/fileSource.d.ts +124 -0
  182. package/dist/app-types/team.d.ts +52 -0
  183. package/dist/app-types/toc.d.ts +2 -0
  184. package/dist/app-ui/FileTypeIcon.d.ts +11 -0
  185. package/dist/app-ui/alert-dialog.d.ts +14 -0
  186. package/dist/app-ui/avatar.d.ts +6 -0
  187. package/dist/app-ui/badge.d.ts +13 -0
  188. package/dist/app-ui/breadcrumb.d.ts +15 -0
  189. package/dist/app-ui/button.d.ts +15 -0
  190. package/dist/app-ui/context-menu.d.ts +28 -0
  191. package/dist/app-ui/dialog.d.ts +15 -0
  192. package/dist/app-ui/dropdown-menu.d.ts +25 -0
  193. package/dist/app-ui/input.d.ts +7 -0
  194. package/dist/app-ui/label.d.ts +4 -0
  195. package/dist/app-ui/radio-group.d.ts +5 -0
  196. package/dist/app-ui/scroll-area.d.ts +5 -0
  197. package/dist/app-ui/select.d.ts +13 -0
  198. package/dist/app-ui/separator.d.ts +4 -0
  199. package/dist/app-ui/sheet.d.ts +13 -0
  200. package/dist/app-ui/sidebar.d.ts +70 -0
  201. package/dist/app-ui/skeleton.d.ts +3 -0
  202. package/dist/app-ui/switch.d.ts +4 -0
  203. package/dist/app-ui/tabs.d.ts +7 -0
  204. package/dist/app-ui/textarea.d.ts +7 -0
  205. package/dist/app-ui/tooltip.d.ts +7 -0
  206. package/dist/app-ui/tree.d.ts +19 -0
  207. package/dist/app-ui/visually-hidden.d.ts +6 -0
  208. package/dist/app-utils/file-sources/sources.d.ts +37 -0
  209. package/dist/app-utils/utils.d.ts +1 -0
  210. package/dist/bubble---c27x7L.js +80 -0
  211. package/dist/bubble.cjs +1 -0
  212. package/dist/bubble.d.ts +4 -0
  213. package/dist/bubble.js +1 -0
  214. package/dist/button-CXcuJkiM.js +1 -0
  215. package/dist/button-CYMsgP3Y.cjs +1 -0
  216. package/dist/cdn-loader-D76eUWN7.cjs +1 -0
  217. package/dist/cdn-loader-w67sLKk9.js +1 -0
  218. package/dist/checkbox-BtMvSk4V.cjs +1 -0
  219. package/dist/checkbox-zfuPZBhD.js +1 -0
  220. package/dist/comments/CommentsSidebar.d.ts +14 -0
  221. package/dist/comments/commentMarks.d.ts +40 -0
  222. package/dist/comments/useCommentThreads.d.ts +29 -0
  223. package/dist/components/ActionButton.d.ts +23 -0
  224. package/dist/components/ActionMenuButton.d.ts +28 -0
  225. package/dist/components/Bubble/RichTextBubbleCallout.d.ts +4 -0
  226. package/dist/components/Bubble/RichTextBubbleCodeBlock.d.ts +4 -0
  227. package/dist/components/Bubble/RichTextBubbleColumns.d.ts +4 -0
  228. package/dist/components/Bubble/RichTextBubbleDrawer.d.ts +4 -0
  229. package/dist/components/Bubble/RichTextBubbleDrawio.d.ts +4 -0
  230. package/dist/components/Bubble/RichTextBubbleIframe.d.ts +4 -0
  231. package/dist/components/Bubble/RichTextBubbleKatex.d.ts +2 -0
  232. package/dist/components/Bubble/RichTextBubbleLink.d.ts +6 -0
  233. package/dist/components/Bubble/RichTextBubbleMedia.d.ts +7 -0
  234. package/dist/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +2 -0
  235. package/dist/components/Bubble/RichTextBubbleMermaid.d.ts +4 -0
  236. package/dist/components/Bubble/RichTextBubbleTable.d.ts +8 -0
  237. package/dist/components/Bubble/RichTextBubbleText.d.ts +8 -0
  238. package/dist/components/Bubble/RichTextBubbleTwitter.d.ts +4 -0
  239. package/dist/components/Bubble/formatBubble.d.ts +55 -0
  240. package/dist/components/Bubble/index.d.ts +17 -0
  241. package/dist/components/ColorPicker.d.ts +11 -0
  242. package/dist/components/ReactBus.d.ts +11 -0
  243. package/dist/components/RichTextProvider.d.ts +8 -0
  244. package/dist/components/SizeSetter/SizeSetter.d.ts +16 -0
  245. package/dist/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +4 -0
  246. package/dist/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +4 -0
  247. package/dist/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +6 -0
  248. package/dist/components/ToolbarMenuItem.d.ts +15 -0
  249. package/dist/components/icons/Activity.d.ts +3 -0
  250. package/dist/components/icons/Animas.d.ts +3 -0
  251. package/dist/components/icons/AspectRatio.d.ts +2 -0
  252. package/dist/components/icons/Blockquote.d.ts +2 -0
  253. package/dist/components/icons/CodeView.d.ts +4 -0
  254. package/dist/components/icons/ColumnAddLeft.d.ts +4 -0
  255. package/dist/components/icons/ColumnAddRight.d.ts +4 -0
  256. package/dist/components/icons/DeleteColumn.d.ts +5 -0
  257. package/dist/components/icons/DeleteRow.d.ts +5 -0
  258. package/dist/components/icons/Direction.d.ts +4 -0
  259. package/dist/components/icons/Drawio.d.ts +4 -0
  260. package/dist/components/icons/ExportPdf.d.ts +4 -0
  261. package/dist/components/icons/ExportWord.d.ts +3 -0
  262. package/dist/components/icons/FileWordOutline.d.ts +2 -0
  263. package/dist/components/icons/Flag.d.ts +3 -0
  264. package/dist/components/icons/Food.d.ts +3 -0
  265. package/dist/components/icons/GIfIcon.d.ts +4 -0
  266. package/dist/components/icons/Html.d.ts +4 -0
  267. package/dist/components/icons/Icon.d.ts +8 -0
  268. package/dist/components/icons/IconColorFill.d.ts +8 -0
  269. package/dist/components/icons/IconHighlightFill.d.ts +6 -0
  270. package/dist/components/icons/ImportWord.d.ts +3 -0
  271. package/dist/components/icons/LeftToRight.d.ts +4 -0
  272. package/dist/components/icons/LineHeight.d.ts +2 -0
  273. package/dist/components/icons/MenuDown.d.ts +2 -0
  274. package/dist/components/icons/Mermaid.d.ts +4 -0
  275. package/dist/components/icons/NoFill.d.ts +4 -0
  276. package/dist/components/icons/Object.d.ts +3 -0
  277. package/dist/components/icons/RightToLeft.d.ts +4 -0
  278. package/dist/components/icons/SizeL.d.ts +2 -0
  279. package/dist/components/icons/SizeM.d.ts +2 -0
  280. package/dist/components/icons/SizeS.d.ts +2 -0
  281. package/dist/components/icons/Symbol.d.ts +3 -0
  282. package/dist/components/icons/Travel.d.ts +3 -0
  283. package/dist/components/icons/Twitter.d.ts +4 -0
  284. package/dist/components/icons/icons.d.ts +4 -0
  285. package/dist/components/icons/index.d.ts +15 -0
  286. package/dist/components/index.d.ts +10 -0
  287. package/dist/components/ui/FileTypeIcon.d.ts +11 -0
  288. package/dist/components/ui/alert-dialog.d.ts +14 -0
  289. package/dist/components/ui/avatar.d.ts +6 -0
  290. package/dist/components/ui/badge.d.ts +13 -0
  291. package/dist/components/ui/breadcrumb.d.ts +15 -0
  292. package/dist/components/ui/button.d.ts +11 -0
  293. package/dist/components/ui/card.d.ts +13 -0
  294. package/dist/components/ui/checkbox.d.ts +7 -0
  295. package/dist/components/ui/context-menu.d.ts +28 -0
  296. package/dist/components/ui/dialog.d.ts +22 -0
  297. package/dist/components/ui/dropdown-menu.d.ts +30 -0
  298. package/dist/components/ui/emoji-picker.d.ts +22 -0
  299. package/dist/components/ui/index.d.ts +33 -0
  300. package/dist/components/ui/input.d.ts +8 -0
  301. package/dist/components/ui/label.d.ts +8 -0
  302. package/dist/components/ui/popover.d.ts +9 -0
  303. package/dist/components/ui/radio-group.d.ts +5 -0
  304. package/dist/components/ui/scroll-area.d.ts +5 -0
  305. package/dist/components/ui/select.d.ts +16 -0
  306. package/dist/components/ui/separator.d.ts +7 -0
  307. package/dist/components/ui/sheet.d.ts +13 -0
  308. package/dist/components/ui/sidebar.d.ts +70 -0
  309. package/dist/components/ui/skeleton.d.ts +3 -0
  310. package/dist/components/ui/switch.d.ts +7 -0
  311. package/dist/components/ui/tabs.d.ts +10 -0
  312. package/dist/components/ui/textarea.d.ts +8 -0
  313. package/dist/components/ui/toast.d.ts +18 -0
  314. package/dist/components/ui/toaster.d.ts +4 -0
  315. package/dist/components/ui/toggle.d.ts +15 -0
  316. package/dist/components/ui/tooltip.d.ts +7 -0
  317. package/dist/components/ui/tree.d.ts +19 -0
  318. package/dist/components/ui/use-toast.d.ts +47 -0
  319. package/dist/components/ui/visually-hidden.d.ts +6 -0
  320. package/dist/constants/index.d.ts +50 -0
  321. package/dist/constants/resetCSS.d.ts +4 -0
  322. package/dist/demo/alternatives.html +23 -0
  323. package/dist/demo/assets/BinaryModule-DTTQwokQ-8eah-8sx.js +4 -0
  324. package/dist/demo/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  325. package/dist/demo/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  326. package/dist/demo/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  327. package/dist/demo/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  328. package/dist/demo/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  329. package/dist/demo/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  330. package/dist/demo/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  331. package/dist/demo/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  332. package/dist/demo/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  333. package/dist/demo/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  334. package/dist/demo/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  335. package/dist/demo/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  336. package/dist/demo/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  337. package/dist/demo/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  338. package/dist/demo/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  339. package/dist/demo/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  340. package/dist/demo/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  341. package/dist/demo/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  342. package/dist/demo/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  343. package/dist/demo/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  344. package/dist/demo/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  345. package/dist/demo/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  346. package/dist/demo/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  347. package/dist/demo/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  348. package/dist/demo/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  349. package/dist/demo/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  350. package/dist/demo/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  351. package/dist/demo/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  352. package/dist/demo/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  353. package/dist/demo/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  354. package/dist/demo/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  355. package/dist/demo/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  356. package/dist/demo/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  357. package/dist/demo/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  358. package/dist/demo/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  359. package/dist/demo/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  360. package/dist/demo/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  361. package/dist/demo/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  362. package/dist/demo/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  363. package/dist/demo/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  364. package/dist/demo/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  365. package/dist/demo/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  366. package/dist/demo/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  367. package/dist/demo/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  368. package/dist/demo/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  369. package/dist/demo/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  370. package/dist/demo/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  371. package/dist/demo/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  372. package/dist/demo/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  373. package/dist/demo/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  374. package/dist/demo/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  375. package/dist/demo/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  376. package/dist/demo/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  377. package/dist/demo/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  378. package/dist/demo/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  379. package/dist/demo/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  380. package/dist/demo/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  381. package/dist/demo/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  382. package/dist/demo/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  383. package/dist/demo/assets/abnfDiagram-VRR7QNED-Dfd140vw.js +1 -0
  384. package/dist/demo/assets/alternatives-B9ZaH43Q.js +34 -0
  385. package/dist/demo/assets/arc-DgAnSXoo.js +1 -0
  386. package/dist/demo/assets/architecture-TIHT7OUA-PKWnSAaw.js +1 -0
  387. package/dist/demo/assets/architectureDiagram-ZJ3FMSHR-DKbvCH_5.js +36 -0
  388. package/dist/demo/assets/archiver-web.es-9DdX0ee3.js +1 -0
  389. package/dist/demo/assets/array-BifhSqXX.js +1 -0
  390. package/dist/demo/assets/binary-C5gJtLso.js +1 -0
  391. package/dist/demo/assets/blockDiagram-677ZJIJ3-CG98KmMB.js +132 -0
  392. package/dist/demo/assets/c4Diagram-LMCZKHZV-DMoYN41z.js +10 -0
  393. package/dist/demo/assets/channel-KwEJ8erK.js +1 -0
  394. package/dist/demo/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  395. package/dist/demo/assets/chunk-32BRIVSS-urznovFN.js +1 -0
  396. package/dist/demo/assets/chunk-52WLFC77-CVCkOQ0G.js +10 -0
  397. package/dist/demo/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  398. package/dist/demo/assets/chunk-7BUUIJ7U-Bb538aSH.js +1 -0
  399. package/dist/demo/assets/chunk-C7G6YPKG-3KR4wxr6.js +1 -0
  400. package/dist/demo/assets/chunk-EX3LRPZG-7H4O5zer.js +231 -0
  401. package/dist/demo/assets/chunk-FWX5IMBZ-Cr5hG-Ne.js +2 -0
  402. package/dist/demo/assets/chunk-HOUHSVGY-D-1II34k.js +1 -0
  403. package/dist/demo/assets/chunk-ICXQ74PX-6-sSSj2J.js +2 -0
  404. package/dist/demo/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  405. package/dist/demo/assets/chunk-KEIR6QF5-DEvma7oi.js +161 -0
  406. package/dist/demo/assets/chunk-MOJQB5TN-BI6A8dXC.js +88 -0
  407. package/dist/demo/assets/chunk-OGEWGWER-CbUWwSGR.js +1 -0
  408. package/dist/demo/assets/chunk-PUDLZKDR-DZFGcS0W.js +156 -0
  409. package/dist/demo/assets/chunk-Q4XR5HBZ-DZGKW5Hb.js +70 -0
  410. package/dist/demo/assets/chunk-RYQCIY6F-ngGojZR9.js +1 -0
  411. package/dist/demo/assets/chunk-V7JOEXUC-BHAISEav.js +206 -0
  412. package/dist/demo/assets/chunk-VAUOI2AC-DJJNd7f5.js +1 -0
  413. package/dist/demo/assets/chunk-VR4S4FIN-BohNhf6y.js +1 -0
  414. package/dist/demo/assets/chunk-WYO6CB5R-B4Oap74a.js +127 -0
  415. package/dist/demo/assets/chunk-XXDRQBXY-CazVBYiP.js +1 -0
  416. package/dist/demo/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  417. package/dist/demo/assets/chunk-ZGVPDNZ5-BIzSs0a_.js +62 -0
  418. package/dist/demo/assets/chunk-ZIRB5QZD-BpeS1aZ7.js +32 -0
  419. package/dist/demo/assets/classDiagram-OUVF2IWQ-DHWWAQXA.js +1 -0
  420. package/dist/demo/assets/classDiagram-v2-EOCWNBFH-DHWWAQXA.js +1 -0
  421. package/dist/demo/assets/cose-bilkent-JH36ORCC-BX8lNO9u.js +1 -0
  422. package/dist/demo/assets/cynefin-VYW2F7L2-BgajGb2C.js +1 -0
  423. package/dist/demo/assets/cynefinDiagram-TSTJHNR4-DzhUAZoU.js +62 -0
  424. package/dist/demo/assets/cytoscape.esm-C3UvhD5t.js +321 -0
  425. package/dist/demo/assets/dagre-Do4loULv.js +1 -0
  426. package/dist/demo/assets/dagre-VKFMJZFB-BsopUNng.js +4 -0
  427. package/dist/demo/assets/defaultLocale-BFoDCU3G.js +1 -0
  428. package/dist/demo/assets/diagram-FQU43EPY-CnINkZTL.js +3 -0
  429. package/dist/demo/assets/diagram-G47NLZAW-Dz3Rtzen.js +24 -0
  430. package/dist/demo/assets/diagram-NH7WQ7WH-Be_1UuNu.js +24 -0
  431. package/dist/demo/assets/diagram-OA4YK3LP-CoSIFO2U.js +30 -0
  432. package/dist/demo/assets/diagram-WEI45ONY-BSRZnbDT.js +41 -0
  433. package/dist/demo/assets/dist-Cs1z76FA.js +3464 -0
  434. package/dist/demo/assets/dist-Cz2MTljl.js +1 -0
  435. package/dist/demo/assets/dist-D6vyGdj4.js +1 -0
  436. package/dist/demo/assets/ebnfDiagram-CCIWWBDH-CyNs0RvY.js +1 -0
  437. package/dist/demo/assets/editorConfig-DhK0JFvA.js +1355 -0
  438. package/dist/demo/assets/editorConfig-DsFwDEyj.css +2 -0
  439. package/dist/demo/assets/erDiagram-Q63AITRT-Duw2zQw3.js +85 -0
  440. package/dist/demo/assets/eventmodeling-45OFAUF4-BMPwBTgC.js +1 -0
  441. package/dist/demo/assets/flowDiagram-23GEKE2U-vnvQkbfP.js +1 -0
  442. package/dist/demo/assets/ganttDiagram-NO4QXBWP-BUQaZ9pm.js +292 -0
  443. package/dist/demo/assets/gitGraph-TEB2WS4Q-Bqyr024o.js +1 -0
  444. package/dist/demo/assets/gitGraphDiagram-IHSO6WYX-BHYVHdDB.js +106 -0
  445. package/dist/demo/assets/graphlib-0Qhce9xj.js +1 -0
  446. package/dist/demo/assets/harper_wasm_bg-C0DPov_6.wasm +0 -0
  447. package/dist/demo/assets/html-to-docx.esm-C-vYVLZ6.js +75 -0
  448. package/dist/demo/assets/index-CLlAnStL-Ad588yu1.js +18 -0
  449. package/dist/demo/assets/info-DKCQHKI2-CFeY2ca_.js +1 -0
  450. package/dist/demo/assets/infoDiagram-FWYZ7A6U-DL4MXbtI.js +2 -0
  451. package/dist/demo/assets/init-C-OQMol4.js +1 -0
  452. package/dist/demo/assets/isObject-BNleAbAq.js +1 -0
  453. package/dist/demo/assets/ishikawaDiagram-FXEZZL3T-DmCRB68D.js +70 -0
  454. package/dist/demo/assets/journeyDiagram-5HDEW3XC-CweGyybk.js +139 -0
  455. package/dist/demo/assets/kanban-definition-HUTT4EX6-C66P6IsH.js +89 -0
  456. package/dist/demo/assets/katex-DolUETbr.js +257 -0
  457. package/dist/demo/assets/line-BidjcqCQ.js +1 -0
  458. package/dist/demo/assets/linear-CilxpIUn.js +1 -0
  459. package/dist/demo/assets/main-B9AIVkTk.js +10 -0
  460. package/dist/demo/assets/main-BprCJcmy.css +1 -0
  461. package/dist/demo/assets/map-CD2wglgO.js +1 -0
  462. package/dist/demo/assets/mermaid-parser.core-9KJPT0XG.js +7 -0
  463. package/dist/demo/assets/mermaid.core-laQQcj-T.js +11 -0
  464. package/dist/demo/assets/mindmap-definition-LN4V7U3C-BQN-bZLe.js +96 -0
  465. package/dist/demo/assets/ordinal-DtR4qwUh.js +1 -0
  466. package/dist/demo/assets/packet-7NZHBO7P-DxBPLOYy.js +1 -0
  467. package/dist/demo/assets/path-COt_16Va.js +1 -0
  468. package/dist/demo/assets/pegDiagram-2B236MQR-BpHXi9RG.js +1 -0
  469. package/dist/demo/assets/pie-RZYD4A2V-DrQV2Hpi.js +1 -0
  470. package/dist/demo/assets/pieDiagram-ENE6RG2P-CG5jHfId.js +39 -0
  471. package/dist/demo/assets/quadrantDiagram-ABIIQ3AL-Dcu2-MJ0.js +7 -0
  472. package/dist/demo/assets/radar-I7S5WNFK-tVb61Efp.js +1 -0
  473. package/dist/demo/assets/railroad-3IZDKUUU-DkJtB_j_.js +1 -0
  474. package/dist/demo/assets/railroad-abnf-AHOZXSZD-CfCTKFr3.js +1 -0
  475. package/dist/demo/assets/railroad-ebnf-EBAXGLYW-_v-6l-Ly.js +1 -0
  476. package/dist/demo/assets/railroad-peg-LSFZ7HO6-BBeu0SHC.js +1 -0
  477. package/dist/demo/assets/railroadDiagram-RFXS5EU6-Bv3QCzUt.js +1 -0
  478. package/dist/demo/assets/requirementDiagram-TGXJPOKE-DBRcoYhq.js +84 -0
  479. package/dist/demo/assets/rolldown-runtime-C0FnF6B9.js +1 -0
  480. package/dist/demo/assets/rough.esm-By172zw-.js +1 -0
  481. package/dist/demo/assets/sankeyDiagram-HTMAVEWB-BUvv1AGS.js +40 -0
  482. package/dist/demo/assets/sequenceDiagram-DBY2YBRQ-DF4ltyiE.js +162 -0
  483. package/dist/demo/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +1 -0
  484. package/dist/demo/assets/src-CllyRBe0.js +1 -0
  485. package/dist/demo/assets/stateDiagram-2N3HPSRC-hdEszuU_.js +1 -0
  486. package/dist/demo/assets/stateDiagram-v2-6OUMAXLB-frodkCZE.js +1 -0
  487. package/dist/demo/assets/swimlanes-5IMT3BWC-BXUPe25m.js +2 -0
  488. package/dist/demo/assets/swimlanesDiagram-G3AALYLV-CN1oenl6.js +8 -0
  489. package/dist/demo/assets/timeline-definition-FHXFAJF6-Dphs5ING.js +120 -0
  490. package/dist/demo/assets/treeView-QDETBFTQ-MqbtC4u9.js +1 -0
  491. package/dist/demo/assets/treemap-6X3UGDF4-BExpaQPn.js +1 -0
  492. package/dist/demo/assets/v4-DDdyfk2q.js +1 -0
  493. package/dist/demo/assets/vennDiagram-L72KCM5P-BKVdTvjh.js +34 -0
  494. package/dist/demo/assets/wardley-OPB4EBWU-e6QJ2uBL.js +1 -0
  495. package/dist/demo/assets/wardleyDiagram-EHGQE667-DCxRFNx3.js +78 -0
  496. package/dist/demo/assets/xychartDiagram-FW5EYKEG-OnzZBgPH.js +7 -0
  497. package/dist/demo/index.html +23 -0
  498. package/dist/dialog-CxZ2oxD2.cjs +1 -0
  499. package/dist/dialog-DgdVbRUv.js +3 -0
  500. package/dist/dialogs/FileManagerModal.d.ts +9 -0
  501. package/dist/dialogs/InviteModal.d.ts +13 -0
  502. package/dist/dialogs/filemanager-data.d.ts +12 -0
  503. package/dist/dist-BEFKWXG8.js +1 -0
  504. package/dist/dist-BZqs5TU5.js +1 -0
  505. package/dist/dist-C5TeAoJ9.cjs +1 -0
  506. package/dist/dist-Cn_OUKh6.cjs +1 -0
  507. package/dist/dist-CsCFCV4K.js +29 -0
  508. package/dist/dist-D0RROJPB.cjs +1 -0
  509. package/dist/dist-GxnWmQlw.cjs +1 -0
  510. package/dist/dist-ICzvPVCE.cjs +1 -0
  511. package/dist/dist-fiA_WbbM.js +1 -0
  512. package/dist/documents/DocumentTree.d.ts +59 -0
  513. package/dist/documents/defaultDocuments.d.ts +7 -0
  514. package/dist/dom-dataset-D3Nz0h73.js +1 -0
  515. package/dist/dom-dataset-w2ZYeuXJ.cjs +1 -0
  516. package/dist/dropdown-menu-CVJhYAPA.cjs +1 -0
  517. package/dist/dropdown-menu-CfGzSpIy.js +2 -0
  518. package/dist/editor/EditorArea.d.ts +42 -0
  519. package/dist/editor/ReasonDocs.d.ts +7 -0
  520. package/dist/editor/ReasonDocsDialogs.d.ts +47 -0
  521. package/dist/editor/RightPanel.d.ts +43 -0
  522. package/dist/editor/TiptapEditorWrapper.d.ts +56 -0
  523. package/dist/editor/useReasonDocsState.d.ts +108 -0
  524. package/dist/editor/useSyncStore.d.ts +16 -0
  525. package/dist/events.constant-BkYOoqSk.cjs +1 -0
  526. package/dist/events.constant-DYciHxmk.js +2 -0
  527. package/dist/extensions/Attachment/Attachment.d.ts +15 -0
  528. package/dist/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +4 -0
  529. package/dist/extensions/Attachment/components/NodeViewAttachment/FileIconString.d.ts +4 -0
  530. package/dist/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +4 -0
  531. package/dist/extensions/Attachment/components/RichTextAttachment.d.ts +4 -0
  532. package/dist/extensions/Attachment/index.d.ts +4 -0
  533. package/dist/extensions/Blockquote/Blockquote.d.ts +6 -0
  534. package/dist/extensions/Blockquote/components/RichTextBlockquote.d.ts +4 -0
  535. package/dist/extensions/Blockquote/index.d.ts +4 -0
  536. package/dist/extensions/Bold/Bold.d.ts +6 -0
  537. package/dist/extensions/Bold/components/RichTextBold.d.ts +4 -0
  538. package/dist/extensions/Bold/index.d.ts +4 -0
  539. package/dist/extensions/BulletList/BulletList.d.ts +6 -0
  540. package/dist/extensions/BulletList/components/RichTextBulletList.d.ts +4 -0
  541. package/dist/extensions/BulletList/index.d.ts +4 -0
  542. package/dist/extensions/Callout/Callout.d.ts +18 -0
  543. package/dist/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +4 -0
  544. package/dist/extensions/Callout/components/RichTextCallout.d.ts +4 -0
  545. package/dist/extensions/Callout/index.d.ts +4 -0
  546. package/dist/extensions/Clear/Clear.d.ts +6 -0
  547. package/dist/extensions/Clear/components/RichTextClear.d.ts +4 -0
  548. package/dist/extensions/Clear/index.d.ts +4 -0
  549. package/dist/extensions/Code/Code.d.ts +6 -0
  550. package/dist/extensions/Code/components/RichTextCode.d.ts +4 -0
  551. package/dist/extensions/Code/index.d.ts +4 -0
  552. package/dist/extensions/CodeBlock/CodeBlock.d.ts +6 -0
  553. package/dist/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +2 -0
  554. package/dist/extensions/CodeBlock/index.d.ts +4 -0
  555. package/dist/extensions/CodeView/CodeView.d.ts +17 -0
  556. package/dist/extensions/CodeView/components/RichTextCodeView.d.ts +4 -0
  557. package/dist/extensions/CodeView/index.d.ts +4 -0
  558. package/dist/extensions/Color/Color.d.ts +22 -0
  559. package/dist/extensions/Color/components/RichTextColor.d.ts +4 -0
  560. package/dist/extensions/Color/index.d.ts +4 -0
  561. package/dist/extensions/Column/Column.d.ts +25 -0
  562. package/dist/extensions/Column/components/RichTextColumn.d.ts +4 -0
  563. package/dist/extensions/Column/index.d.ts +4 -0
  564. package/dist/extensions/Comment/Comment.d.ts +41 -0
  565. package/dist/extensions/Comment/components/CommentView.d.ts +17 -0
  566. package/dist/extensions/Comment/index.d.ts +5 -0
  567. package/dist/extensions/Drawer/Drawer.d.ts +15 -0
  568. package/dist/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +3 -0
  569. package/dist/extensions/Drawer/components/ControlDrawer/icon.d.ts +28 -0
  570. package/dist/extensions/Drawer/components/EditDrawerBlock.d.ts +4 -0
  571. package/dist/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +2 -0
  572. package/dist/extensions/Drawer/components/RichTextDrawer.d.ts +4 -0
  573. package/dist/extensions/Drawer/index.d.ts +4 -0
  574. package/dist/extensions/Drawio/Drawio.d.ts +17 -0
  575. package/dist/extensions/Drawio/components/NodeViewDrawio/NodeViewDrawio.d.ts +3 -0
  576. package/dist/extensions/Drawio/components/RichTextDrawio.d.ts +4 -0
  577. package/dist/extensions/Drawio/index.d.ts +4 -0
  578. package/dist/extensions/Emoji/Emoji.d.ts +5 -0
  579. package/dist/extensions/Emoji/components/EmojiList/EmojiNodeView.d.ts +11 -0
  580. package/dist/extensions/Emoji/components/RichTextEmoji.d.ts +2 -0
  581. package/dist/extensions/Emoji/index.d.ts +4 -0
  582. package/dist/extensions/ExportPdf/ExportPdf.d.ts +21 -0
  583. package/dist/extensions/ExportPdf/components/RichTextExportPdf.d.ts +4 -0
  584. package/dist/extensions/ExportPdf/index.d.ts +4 -0
  585. package/dist/extensions/ExportWord/ExportWord.d.ts +13 -0
  586. package/dist/extensions/ExportWord/components/RichTextExportWord.d.ts +4 -0
  587. package/dist/extensions/ExportWord/index.d.ts +4 -0
  588. package/dist/extensions/FontFamily/FontFamily.d.ts +10 -0
  589. package/dist/extensions/FontFamily/components/RichTextFontFamily.d.ts +15 -0
  590. package/dist/extensions/FontFamily/index.d.ts +4 -0
  591. package/dist/extensions/FontSize/FontSize.d.ts +32 -0
  592. package/dist/extensions/FontSize/components/RichTextFontSize.d.ts +12 -0
  593. package/dist/extensions/FontSize/index.d.ts +4 -0
  594. package/dist/extensions/Harper/Harper.d.ts +73 -0
  595. package/dist/extensions/Harper/components/RichTextHarper.d.ts +15 -0
  596. package/dist/extensions/Harper/index.d.ts +9 -0
  597. package/dist/extensions/Harper/lib/createHarperLinter.d.ts +22 -0
  598. package/dist/extensions/Harper/lib/extractTextWithMap.d.ts +33 -0
  599. package/dist/extensions/Heading/Heading.d.ts +6 -0
  600. package/dist/extensions/Heading/components/RichTextHeading.d.ts +17 -0
  601. package/dist/extensions/Heading/index.d.ts +4 -0
  602. package/dist/extensions/Highlight/Highlight.d.ts +18 -0
  603. package/dist/extensions/Highlight/components/RichTextHighlight.d.ts +2 -0
  604. package/dist/extensions/Highlight/index.d.ts +4 -0
  605. package/dist/extensions/History/History.d.ts +6 -0
  606. package/dist/extensions/History/components/RichTextHistory.d.ts +3 -0
  607. package/dist/extensions/History/index.d.ts +4 -0
  608. package/dist/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  609. package/dist/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +4 -0
  610. package/dist/extensions/HorizontalRule/index.d.ts +4 -0
  611. package/dist/extensions/Iframe/Iframe.d.ts +16 -0
  612. package/dist/extensions/Iframe/components/IframeNodeView.d.ts +5 -0
  613. package/dist/extensions/Iframe/components/RichTextIframe.d.ts +4 -0
  614. package/dist/extensions/Iframe/index.d.ts +4 -0
  615. package/dist/extensions/Iframe/utils.d.ts +9 -0
  616. package/dist/extensions/Image/Image.d.ts +57 -0
  617. package/dist/extensions/Image/components/ImageCropper.d.ts +2 -0
  618. package/dist/extensions/Image/components/ImageView.d.ts +3 -0
  619. package/dist/extensions/Image/components/RichTextImage.d.ts +4 -0
  620. package/dist/extensions/Image/index.d.ts +4 -0
  621. package/dist/extensions/ImageGif/ImageGif.d.ts +39 -0
  622. package/dist/extensions/ImageGif/components/ImageGifView.d.ts +3 -0
  623. package/dist/extensions/ImageGif/components/RichTextImageGif.d.ts +2 -0
  624. package/dist/extensions/ImageGif/components/services.d.ts +461 -0
  625. package/dist/extensions/ImageGif/index.d.ts +4 -0
  626. package/dist/extensions/ImportWord/ImportWord.d.ts +16 -0
  627. package/dist/extensions/ImportWord/components/RichTextImportWord.d.ts +4 -0
  628. package/dist/extensions/ImportWord/docx-to-html.d.ts +24 -0
  629. package/dist/extensions/ImportWord/index.d.ts +4 -0
  630. package/dist/extensions/Indent/Indent.d.ts +23 -0
  631. package/dist/extensions/Indent/components/RichTextIndent.d.ts +4 -0
  632. package/dist/extensions/Indent/index.d.ts +4 -0
  633. package/dist/extensions/Italic/Italic.d.ts +6 -0
  634. package/dist/extensions/Italic/components/RichTextItalic.d.ts +4 -0
  635. package/dist/extensions/Italic/index.d.ts +4 -0
  636. package/dist/extensions/Katex/Katex.d.ts +17 -0
  637. package/dist/extensions/Katex/components/KatexWrapper.d.ts +4 -0
  638. package/dist/extensions/Katex/components/RichTextKatex.d.ts +4 -0
  639. package/dist/extensions/Katex/index.d.ts +4 -0
  640. package/dist/extensions/LineHeight/LineHeight.d.ts +7 -0
  641. package/dist/extensions/LineHeight/components/RichTextLightHeight.d.ts +4 -0
  642. package/dist/extensions/LineHeight/index.d.ts +4 -0
  643. package/dist/extensions/Link/Link.d.ts +6 -0
  644. package/dist/extensions/Link/components/LinkEditBlock.d.ts +12 -0
  645. package/dist/extensions/Link/components/LinkViewBlock.d.ts +9 -0
  646. package/dist/extensions/Link/components/RichTextLink.d.ts +4 -0
  647. package/dist/extensions/Link/index.d.ts +4 -0
  648. package/dist/extensions/MarkdownPaste/MarkdownPaste.d.ts +5 -0
  649. package/dist/extensions/MarkdownPaste/index.d.ts +4 -0
  650. package/dist/extensions/Mention/Mention.d.ts +3 -0
  651. package/dist/extensions/Mention/components/NodeViewMentionList.d.ts +16 -0
  652. package/dist/extensions/Mention/index.d.ts +4 -0
  653. package/dist/extensions/Mermaid/Mermaid.d.ts +15 -0
  654. package/dist/extensions/Mermaid/components/EditMermaidBlock.d.ts +8 -0
  655. package/dist/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +2 -0
  656. package/dist/extensions/Mermaid/components/RichTextMermaid.d.ts +4 -0
  657. package/dist/extensions/Mermaid/index.d.ts +4 -0
  658. package/dist/extensions/MoreMark/MoreMark.d.ts +20 -0
  659. package/dist/extensions/MoreMark/components/RichTextMoreMark.d.ts +14 -0
  660. package/dist/extensions/MoreMark/index.d.ts +4 -0
  661. package/dist/extensions/OfficePaste/OfficePaste.d.ts +7 -0
  662. package/dist/extensions/OfficePaste/index.d.ts +4 -0
  663. package/dist/extensions/OrderedList/OrderedList.d.ts +6 -0
  664. package/dist/extensions/OrderedList/components/RichTextOrderedList.d.ts +4 -0
  665. package/dist/extensions/OrderedList/index.d.ts +4 -0
  666. package/dist/extensions/Pagination/Pagination.d.ts +37 -0
  667. package/dist/extensions/Pagination/components/RichTextPagination.d.ts +4 -0
  668. package/dist/extensions/Pagination/index.d.ts +5 -0
  669. package/dist/extensions/SearchAndReplace/SearchAndReplace.d.ts +36 -0
  670. package/dist/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +4 -0
  671. package/dist/extensions/SearchAndReplace/index.d.ts +4 -0
  672. package/dist/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  673. package/dist/extensions/SlashCommand/components/SlashCommandList.d.ts +6 -0
  674. package/dist/extensions/SlashCommand/components/SlashCommandNodeView.d.ts +3 -0
  675. package/dist/extensions/SlashCommand/index.d.ts +4 -0
  676. package/dist/extensions/SlashCommand/renderCommandListDefault.d.ts +7 -0
  677. package/dist/extensions/SlashCommand/types.d.ts +20 -0
  678. package/dist/extensions/Strike/Strike.d.ts +6 -0
  679. package/dist/extensions/Strike/components/RichTextStrike.d.ts +4 -0
  680. package/dist/extensions/Strike/index.d.ts +4 -0
  681. package/dist/extensions/Subscript/components/RichTextSubscript.d.ts +4 -0
  682. package/dist/extensions/Superscript/components/RichTextSuperscript.d.ts +4 -0
  683. package/dist/extensions/Table/Table.d.ts +21 -0
  684. package/dist/extensions/Table/TableCellBackground.d.ts +14 -0
  685. package/dist/extensions/Table/components/CreateTablePopover.d.ts +8 -0
  686. package/dist/extensions/Table/components/RichTextTable.d.ts +2 -0
  687. package/dist/extensions/Table/index.d.ts +4 -0
  688. package/dist/extensions/TableOfContents/TableOfContents.d.ts +15 -0
  689. package/dist/extensions/TableOfContents/components/RichTextTableOfContents.d.ts +8 -0
  690. package/dist/extensions/TableOfContents/components/RichTextTableOfContentsPanel.d.ts +19 -0
  691. package/dist/extensions/TableOfContents/index.d.ts +6 -0
  692. package/dist/extensions/TaskList/TaskList.d.ts +11 -0
  693. package/dist/extensions/TaskList/components/RichTextTaskList.d.ts +4 -0
  694. package/dist/extensions/TaskList/index.d.ts +4 -0
  695. package/dist/extensions/TextAlign/TextAlign.d.ts +17 -0
  696. package/dist/extensions/TextAlign/components/RichTextAlign.d.ts +14 -0
  697. package/dist/extensions/TextAlign/index.d.ts +4 -0
  698. package/dist/extensions/TextDirection/TextDirection.d.ts +5 -0
  699. package/dist/extensions/TextDirection/components/RichTextTextDirection.d.ts +15 -0
  700. package/dist/extensions/TextDirection/index.d.ts +4 -0
  701. package/dist/extensions/TextUnderline/TextUnderline.d.ts +6 -0
  702. package/dist/extensions/TextUnderline/components/RichTextUnderline.d.ts +4 -0
  703. package/dist/extensions/TextUnderline/index.d.ts +4 -0
  704. package/dist/extensions/Twitter/Twitter.d.ts +46 -0
  705. package/dist/extensions/Twitter/components/FormEditLinkTwitter.d.ts +9 -0
  706. package/dist/extensions/Twitter/components/NodeViewTweet.d.ts +8 -0
  707. package/dist/extensions/Twitter/components/RichTextTwitter.d.ts +4 -0
  708. package/dist/extensions/Twitter/index.d.ts +4 -0
  709. package/dist/extensions/Video/Video.d.ts +66 -0
  710. package/dist/extensions/Video/components/RichTextVideo.d.ts +4 -0
  711. package/dist/extensions/Video/index.d.ts +4 -0
  712. package/dist/extensions/WordCount/WordCount.d.ts +7 -0
  713. package/dist/extensions/WordCount/components/RichTextWordCount.d.ts +4 -0
  714. package/dist/extensions/WordCount/index.d.ts +4 -0
  715. package/dist/extensions/WordCount/utils/wordCount.d.ts +25 -0
  716. package/dist/extensions/Zoom/components/RichTextZoom.d.ts +2 -0
  717. package/dist/features/ai-rewrite/AIRewriteSuggestion.d.ts +27 -0
  718. package/dist/features/ai-rewrite/rewriteModes.d.ts +37 -0
  719. package/dist/features/settings/Settings.d.ts +11 -0
  720. package/dist/features/settings/sections/AIRewriteModesSection.d.ts +6 -0
  721. package/dist/features/settings/sections/AboutSection.d.ts +1 -0
  722. package/dist/features/settings/sections/AppearanceSection.d.ts +6 -0
  723. package/dist/features/settings/sections/FileSourcesSection.d.ts +6 -0
  724. package/dist/features/settings/sections/StorageSection.d.ts +6 -0
  725. package/dist/features/tags/TagManagementDialog.d.ts +18 -0
  726. package/dist/features/team/TeamManagement.d.ts +13 -0
  727. package/dist/file-B1Z0XcVJ.cjs +1 -0
  728. package/dist/file-aBzFF1LO.js +1 -0
  729. package/dist/file-tree/FileTreeContextMenu.d.ts +18 -0
  730. package/dist/file-tree/documentUtils.d.ts +57 -0
  731. package/dist/file-tree/filetree.d.ts +28 -0
  732. package/dist/file-tree/index.d.ts +8 -0
  733. package/dist/file-tree/useFileTreeOperations.d.ts +27 -0
  734. package/dist/floating-ui.dom-D9FglguG.cjs +1 -0
  735. package/dist/floating-ui.dom-DledU50u.js +1 -0
  736. package/dist/hooks/use-mobile.d.ts +5 -0
  737. package/dist/hooks/useActive.d.ts +24 -0
  738. package/dist/hooks/useAttributes.d.ts +2 -0
  739. package/dist/hooks/useButtonProps.d.ts +4 -0
  740. package/dist/hooks/useCopy.d.ts +8 -0
  741. package/dist/hooks/useExtension.d.ts +4 -0
  742. package/dist/hooks/useLocalStorage.d.ts +13 -0
  743. package/dist/html-to-docx.esm-BSqAFns8.cjs +1 -0
  744. package/dist/html-to-docx.esm-DkztZsL5-DQYdhD3B.cjs +1 -0
  745. package/dist/html-to-docx.esm-DkztZsL5.js +1 -0
  746. package/dist/index.cjs +1 -0
  747. package/dist/index.d.ts +10 -0
  748. package/dist/index.js +1 -0
  749. package/dist/input-AvqqajGM.cjs +1 -0
  750. package/dist/input-CMD6LZFr.js +1 -0
  751. package/dist/isNumber-7Fi2iQVS.js +1 -0
  752. package/dist/isNumber-CmHpmrpR.cjs +1 -0
  753. package/dist/jsx-runtime-BLWGWoMZ.cjs +1 -0
  754. package/dist/jsx-runtime-DqgyBF0N.js +1 -0
  755. package/dist/jszip.min-3Yxv_4wz.cjs +1 -0
  756. package/dist/jszip.min-BUJ6OksG.js +1 -0
  757. package/dist/label-DPSH3PiY.cjs +1 -0
  758. package/dist/label-Dx1mMx8l.js +1 -0
  759. package/dist/layout/Sidebar.d.ts +7 -0
  760. package/dist/layout/sidebar/Sidebar.d.ts +2 -0
  761. package/dist/layout/sidebar/SidebarContent.d.ts +76 -0
  762. package/dist/layout/sidebar/SidebarFooter.d.ts +45 -0
  763. package/dist/layout/sidebar/SidebarToolbar.d.ts +85 -0
  764. package/dist/layout/sidebar/SidebarViewMenu.d.ts +24 -0
  765. package/dist/layout/sidebar/fileSourceUtils.d.ts +2 -0
  766. package/dist/layout/sidebar/index.d.ts +12 -0
  767. package/dist/layout/sidebar/panelOptions.d.ts +29 -0
  768. package/dist/layout/sidebar/types.d.ts +68 -0
  769. package/dist/lib/utils.d.ts +2 -0
  770. package/dist/locale-bundle.cjs +1 -0
  771. package/dist/locale-bundle.d.ts +4 -0
  772. package/dist/locale-bundle.js +1 -0
  773. package/dist/locales/ar.d.ts +201 -0
  774. package/dist/locales/de.d.ts +201 -0
  775. package/dist/locales/en.d.ts +201 -0
  776. package/dist/locales/es.d.ts +201 -0
  777. package/dist/locales/fa.d.ts +201 -0
  778. package/dist/locales/fi.d.ts +201 -0
  779. package/dist/locales/fr.d.ts +201 -0
  780. package/dist/locales/he.d.ts +201 -0
  781. package/dist/locales/hi.d.ts +201 -0
  782. package/dist/locales/hu.d.ts +201 -0
  783. package/dist/locales/index.d.ts +3576 -0
  784. package/dist/locales/it.d.ts +201 -0
  785. package/dist/locales/ja.d.ts +201 -0
  786. package/dist/locales/ko.d.ts +201 -0
  787. package/dist/locales/nl.d.ts +201 -0
  788. package/dist/locales/pt-br.d.ts +201 -0
  789. package/dist/locales/ru.d.ts +201 -0
  790. package/dist/locales/tr.d.ts +201 -0
  791. package/dist/locales/uk.d.ts +201 -0
  792. package/dist/locales/vi.d.ts +201 -0
  793. package/dist/locales/zh-cn.d.ts +201 -0
  794. package/dist/locales-DfkG6-1b.js +1 -0
  795. package/dist/locales-Dg9XL0yP.cjs +1 -0
  796. package/dist/plugins/image-upload.d.ts +13 -0
  797. package/dist/popover-DEGqjF2J.cjs +1 -0
  798. package/dist/popover-DGEv-NbL.js +1 -0
  799. package/dist/reason-docs.cjs +1 -0
  800. package/dist/reason-docs.d.ts +1 -0
  801. package/dist/reason-docs.js +1 -0
  802. package/dist/renderCommandListDefault-CJd5Cd3Q.js +1 -0
  803. package/dist/renderCommandListDefault-CykwYpTX.cjs +1 -0
  804. package/dist/renderNodeView-Bis8Vxth.cjs +1 -0
  805. package/dist/renderNodeView-EV3OWici.js +1 -0
  806. package/dist/rolldown-runtime-BeavJI0R.cjs +1 -0
  807. package/dist/rolldown-runtime-Drgf5FY8-7XpCJKyX.cjs +1 -0
  808. package/dist/rolldown-runtime-Drgf5FY8.js +1 -0
  809. package/dist/search/DynamicIslandTOC.d.ts +14 -0
  810. package/dist/search/OutlineView.d.ts +29 -0
  811. package/dist/search/SearchModal.d.ts +26 -0
  812. package/dist/separator-BHN46aj5.cjs +1 -0
  813. package/dist/separator-CTa6o9S_.js +10 -0
  814. package/dist/shortId-B25DIOpW.cjs +1 -0
  815. package/dist/shortId-COE42cHb.js +1 -0
  816. package/dist/src-C7k3RYxJ.js +646 -0
  817. package/dist/src-DYbBlAjR.cjs +1 -0
  818. package/dist/store/EditorEditableReactive.d.ts +4 -0
  819. package/dist/store/ThemeColorReactive.d.ts +4 -0
  820. package/dist/store/commandList.d.ts +2 -0
  821. package/dist/store/editor.d.ts +21 -0
  822. package/dist/store/store.d.ts +6 -0
  823. package/dist/style.css +5 -0
  824. package/dist/tabs-BovAV0Y3.js +1 -0
  825. package/dist/tabs-CoJRfGS8.cjs +1 -0
  826. package/dist/textarea-BFbGcrSO.cjs +1 -0
  827. package/dist/textarea-uEPOPNqf.js +1 -0
  828. package/dist/theme/theme.d.ts +372 -0
  829. package/dist/theme.cjs +1 -0
  830. package/dist/theme.js +1 -0
  831. package/dist/throttle-BpbN7uB1.js +1 -0
  832. package/dist/throttle-COe5rswR.cjs +1 -0
  833. package/dist/toggle-BXl_NYYh.js +2 -0
  834. package/dist/toggle-CRftKzl0.cjs +1 -0
  835. package/dist/tooltip-CzY0Diit.cjs +1 -0
  836. package/dist/tooltip-DC3DBc55.js +5 -0
  837. package/dist/types.d.ts +223 -0
  838. package/dist/updatePosition-CBT0mUIB.js +1 -0
  839. package/dist/updatePosition-DMu5F8JX.cjs +1 -0
  840. package/dist/useButtonProps-D2Hd5DbR.cjs +1 -0
  841. package/dist/useButtonProps-DSIajp_B.js +1 -0
  842. package/dist/utils/base64.d.ts +5 -0
  843. package/dist/utils/cdn-loader.d.ts +10 -0
  844. package/dist/utils/checkIsVideoUrl.d.ts +4 -0
  845. package/dist/utils/color.d.ts +10 -0
  846. package/dist/utils/columns.d.ts +14 -0
  847. package/dist/utils/customEvents/events.constant.d.ts +9 -0
  848. package/dist/utils/delete-node.d.ts +2 -0
  849. package/dist/utils/dom-dataset.d.ts +31 -0
  850. package/dist/utils/download.d.ts +4 -0
  851. package/dist/utils/dynamicCSS.d.ts +28 -0
  852. package/dist/utils/editor-container-size.d.ts +4 -0
  853. package/dist/utils/file.d.ts +30 -0
  854. package/dist/utils/getRenderContainer.d.ts +3 -0
  855. package/dist/utils/indent.d.ts +14 -0
  856. package/dist/utils/is-mobile.d.ts +22 -0
  857. package/dist/utils/json.d.ts +5 -0
  858. package/dist/utils/lru-cache.d.ts +34 -0
  859. package/dist/utils/mitt.d.ts +24 -0
  860. package/dist/utils/node.d.ts +15 -0
  861. package/dist/utils/pdf.d.ts +3 -0
  862. package/dist/utils/plateform.d.ts +14 -0
  863. package/dist/utils/renderNodeView.d.ts +9 -0
  864. package/dist/utils/shortId.d.ts +4 -0
  865. package/dist/utils/storage.d.ts +7 -0
  866. package/dist/utils/updatePosition.d.ts +4 -0
  867. package/dist/utils/utils.d.ts +20 -0
  868. package/dist/utils/validateFile.d.ts +16 -0
  869. package/dist/which-typed-array-Dj_53908.js +1 -0
  870. package/dist/which-typed-array-MFmINaJW.cjs +1 -0
  871. package/package.json +912 -0
@@ -0,0 +1,223 @@
1
+ import { Editor as CoreEditor, Extension, JSONContent } from '@tiptap/core';
2
+ import { Editor } from '@tiptap/react';
3
+ import { ActionButtonProps } from './components';
4
+ export type { Editor, JSONContent } from '@tiptap/core';
5
+ /**
6
+ * Represents the onChange event for EchoEditor.
7
+ */
8
+ export interface EchoEditorOnChange {
9
+ /** Editor object */
10
+ editor: CoreEditor;
11
+ /** Output content, can be a string or JSON content */
12
+ output: string | JSONContent;
13
+ }
14
+ /**
15
+ * Represents the keys for different extensions.
16
+ */
17
+ export type ExtensionNameKeys = 'bold' | 'italic' | 'underline' | 'strike' | 'color' | 'highlight' | 'heading' | 'textAlign' | 'bulletList' | 'orderedList' | 'taskList' | 'indent' | 'link' | 'image' | 'video' | 'table' | 'blockquote' | 'horizontalRule' | 'code' | 'codeBlock' | 'clear' | 'history' | 'twitter' | 'katex' | 'mermaid' | 'drawer';
18
+ /**
19
+ * Represents the general options for Tiptap extensions.
20
+ */
21
+ export interface GeneralOptions<T> {
22
+ /** Enabled divider */
23
+ divider: boolean;
24
+ /** Enabled spacer */
25
+ spacer: boolean;
26
+ /** Button view function */
27
+ button: ButtonView<T>;
28
+ /** Show on Toolbar */
29
+ toolbar?: boolean;
30
+ /** Shortcut keys override */
31
+ shortcutKeys?: string[] | string[][];
32
+ }
33
+ /**
34
+ * Represents the props for the ButtonView component.
35
+ */
36
+ export interface ButtonViewReturnComponentProps {
37
+ /** Method triggered when action is performed */
38
+ action?: (value?: any) => void;
39
+ /** Whether it is in the active state */
40
+ isActive?: () => boolean;
41
+ /** Button icon */
42
+ icon?: any;
43
+ /** Text displayed on hover */
44
+ tooltip?: string;
45
+ [x: string]: any;
46
+ }
47
+ /**
48
+ * Represents the slots for the ButtonView component.
49
+ */
50
+ export interface ButtonViewReturnComponentSlots {
51
+ /** Dialog slot */
52
+ dialog: () => any;
53
+ [x: string]: () => any;
54
+ }
55
+ /**
56
+ * Represents the return value for the ButtonView component.
57
+ */
58
+ export interface ButtonViewReturn {
59
+ /** Component */
60
+ component: unknown;
61
+ /** Component props */
62
+ componentProps: ButtonViewReturnComponentProps;
63
+ /** Component slots */
64
+ componentSlots?: ButtonViewReturnComponentSlots;
65
+ }
66
+ /**
67
+ * Represents the parameters for the ButtonView function.
68
+ */
69
+ export interface ButtonViewParams<T = any> {
70
+ /** Editor object */
71
+ editor: Editor;
72
+ /** Extension object */
73
+ extension: Extension<T>;
74
+ /** Translation function */
75
+ t: (path: string) => string;
76
+ }
77
+ /**
78
+ * Represents the ButtonView function.
79
+ */
80
+ export type ButtonView<T = any> = (options: ButtonViewParams<T>) => ButtonViewReturn | ButtonViewReturn[];
81
+ /**
82
+ * Represents the BubbleMenuRenderProps.
83
+ */
84
+ export interface BubbleMenuRenderProps {
85
+ editor: Editor;
86
+ disabled: boolean;
87
+ bubbleMenu: BubbleMenuProps;
88
+ extensionsNames: string[];
89
+ }
90
+ export interface TableMenuConfig {
91
+ /**
92
+ * @description Column menu hidden
93
+ * @default false
94
+ */
95
+ hidden?: boolean;
96
+ /**
97
+ * custom menu actions
98
+ */
99
+ actions?: ActionButtonProps[];
100
+ /**
101
+ * hidden default actions, if any
102
+ */
103
+ hiddenActions?: string[];
104
+ }
105
+ /**
106
+ * Represents the BubbleMenuProps.
107
+ */
108
+ export interface BubbleMenuProps {
109
+ columnConfig?: {
110
+ /**
111
+ * @description Column menu hidden
112
+ * @default false
113
+ */
114
+ hidden?: boolean;
115
+ };
116
+ tableConfig?: TableMenuConfig;
117
+ floatingMenuConfig?: {
118
+ /**
119
+ * @description Floating menu hidden
120
+ * @default false
121
+ */
122
+ hidden?: boolean;
123
+ };
124
+ linkConfig?: {
125
+ /**
126
+ * @description Link menu hidden
127
+ * @default false
128
+ */
129
+ hidden?: boolean;
130
+ };
131
+ textConfig?: {
132
+ /**
133
+ * @description Text menu hidden
134
+ * @default false
135
+ */
136
+ hidden?: boolean;
137
+ };
138
+ imageConfig?: {
139
+ /**
140
+ * @description Image menu hidden
141
+ * @default false
142
+ */
143
+ hidden?: boolean;
144
+ };
145
+ imageGifConfig?: {
146
+ /**
147
+ * @description Image menu hidden
148
+ * @default false
149
+ */
150
+ hidden?: boolean;
151
+ };
152
+ videoConfig?: {
153
+ /**
154
+ * @description Video menu hidden
155
+ * @default false
156
+ */
157
+ hidden?: boolean;
158
+ };
159
+ katexConfig?: {
160
+ /**
161
+ * @description katex menu hidden
162
+ * @default false
163
+ */
164
+ hidden?: boolean;
165
+ };
166
+ iframeConfig?: {
167
+ /**
168
+ * @description iframe menu hidden
169
+ * @default false
170
+ */
171
+ hidden?: boolean;
172
+ };
173
+ mermaidConfig?: {
174
+ /**
175
+ * @description mermaid menu hidden
176
+ * @default false
177
+ */
178
+ hidden?: boolean;
179
+ };
180
+ twitterConfig?: {
181
+ /**
182
+ * @description twitter menu hidden
183
+ * @default false
184
+ */
185
+ hidden?: boolean;
186
+ };
187
+ drawerConfig?: {
188
+ /**
189
+ * @description twitter menu hidden
190
+ * @default false
191
+ */
192
+ hidden?: boolean;
193
+ };
194
+ render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
195
+ }
196
+ /**
197
+ * Represents the ToolbarItemProps.
198
+ */
199
+ export interface ToolbarItemProps {
200
+ button: {
201
+ component: React.ComponentType<any>;
202
+ componentProps: Record<string, any>;
203
+ };
204
+ divider: boolean;
205
+ spacer: boolean;
206
+ type: string;
207
+ name: string;
208
+ }
209
+ export interface ToolbarRenderProps {
210
+ editor: Editor;
211
+ disabled: boolean;
212
+ }
213
+ export interface ToolbarProps {
214
+ render?: (props: ToolbarRenderProps, toolbarItems: ToolbarItemProps[], dom: any[], containerDom: (innerContent: React.ReactNode) => React.ReactNode) => React.ReactNode;
215
+ tooltipSide?: 'top' | 'bottom';
216
+ }
217
+ export interface NameValueOption<T = string> {
218
+ name: string;
219
+ value: T;
220
+ }
221
+ export type VideoAlignment = 'flex-start' | 'center' | 'flex-end';
222
+ export type PaperSize = 'Legal' | 'Letter' | 'Tabloid' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5';
223
+ export type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
@@ -0,0 +1 @@
1
+ import{a as e,i as t,l as n,r as i,u as o}from"./floating-ui.dom-DledU50u.js";import{posToDOMRect as a}from"@tiptap/react";import{escapeForRegEx as s}from"@tiptap/core";import{Plugin as r,PluginKey as l}from"@tiptap/pm/state";import{Decoration as d,DecorationSet as c}from"@tiptap/pm/view";function u(e){var t;const{char:n,allowSpaces:i,allowToIncludeChar:o,allowedPrefixes:a,startOfLine:r,$position:l}=e,d=i&&!o,c=s(n),u=new RegExp(`\\s${c}$`),m=r?"^":"",g=o?"":c,p=d?new RegExp(`${m}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${m}(?:^)?${c}[^\\s${g}]*`,"gm"),f=(null==(t=l.nodeBefore)?void 0:t.isText)&&l.nodeBefore.text;if(!f)return null;const v=l.pos-f.length,y=Array.from(f.matchAll(p)).pop();if(!y||void 0===y.input||void 0===y.index)return null;const h=y.input.slice(Math.max(0,y.index-1),y.index),w=new RegExp(`^[${null==a?void 0:a.join("")}\0]?$`).test(h);if(null!==a&&!w)return null;const x=v+y.index;let R=x+y[0].length;return d&&u.test(f.slice(R-1,R+1))&&(y[0]+=" ",R+=1),x<l.pos&&R>=l.pos?{range:{from:x,to:R},query:y[0].slice(n.length),text:y[0]}:null}function m(e,t,n,i){return n?()=>{const n=i.getState(e.state),o=null==n?void 0:n.decorationId,a=t.dom.querySelector(`[data-decoration-id="${o}"]`);return(null==a?void 0:a.getBoundingClientRect())||null}:function(e){return()=>{const t=e.state.selection.$anchor.pos,{top:n,right:i,bottom:o,left:a}=e.view.coordsAtPos(t);try{return new DOMRect(a,n,i-a,o-n)}catch{return null}}}(e)}function g({pluginKey:e,decorationTag:t,decorationClass:n,decorationContent:i,decorationEmptyClass:o,renderer:a,dispatchExit:s}){return{handleKeyDown(t,n){var i,o;const r=e.getState(t.state);return!!r.active&&("Escape"===n.key||"Esc"===n.key?(null==(i=null==a?void 0:a.onKeyDown)||i.call(a,{view:t,event:n,range:r.range}),s(t),!0):(null==(o=null==a?void 0:a.onKeyDown)?void 0:o.call(a,{view:t,event:n,range:r.range}))||!1)},decorations(a){const{active:s,range:r,decorationId:l,query:u}=e.getState(a);if(!s)return null;const m=!(null==u?void 0:u.length),g=[n];return m&&g.push(o),c.create(a.doc,[d.inline(r.from,r.to,{nodeName:t,class:g.join(" "),"data-decoration-id":l||void 0,"data-decoration-content":i})])}}}function p({editor:e,char:t,effectiveAllowSpaces:n,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,findSuggestionMatch:s,allow:r,shouldShow:l,shouldKeepDismissed:d,pluginKey:c}){return{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}),apply(u,m,g,p){const{isEditable:f}=e,{composing:v}=e.view,{selection:y}=u,{empty:h,from:w}=y,x={...m},R=u.getMeta(c);if(R&&R.exit)return x.active=!1,x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null,x.dismissedRange=m.active?{...m.range}:m.dismissedRange,x;if(x.composing=v,u.docChanged&&null!==x.dismissedRange&&(x.dismissedRange={from:u.mapping.map(x.dismissedRange.from),to:u.mapping.map(x.dismissedRange.to)}),f&&(h||e.view.composing)){!(w<m.range.from||w>m.range.to)||v||m.composing||(x.active=!1);const c=s({char:t,allowSpaces:n,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,$position:y.$from}),g=`id_${Math.floor(4294967295*Math.random())}`;c&&r({editor:e,state:p,range:c.range,isActive:m.active})&&(!l||l({editor:e,range:c.range,query:c.query,text:c.text,transaction:u}))?(null===x.dismissedRange||d({match:c,dismissedRange:x.dismissedRange,state:p,transaction:u})||(x.dismissedRange=null),null===x.dismissedRange?(x.active=!0,x.decorationId=m.decorationId||g,x.range=c.range,x.query=c.query,x.text=c.text):x.active=!1):(c||(x.dismissedRange=null),x.active=!1)}else x.active=!1;return x.active||(x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null),x}}}function f({editor:e,items:t}){let n=null,i=null,o=null;const a=()=>{n?.abort(),null!==i&&(clearTimeout(i),i=null),o?.(),o=null,n=null};return{abort:a,fetch:async(s,r)=>{a(),n=new AbortController;const l=n;var d;if(r>0&&await(d=r,new Promise(e=>{o=e,i=setTimeout(()=>{i=null;const e=o;o=null,e?.()},d)})),n!==l||l.signal.aborted)return{status:"aborted"};try{const i=await t({editor:e,query:s,signal:l.signal});return n!==l||l.signal.aborted?{status:"aborted"}:{status:"resolved",items:i}}catch{return n!==l||l.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function v({placement:t,offset:i,flip:o,floatingUi:a}){var s,r,l,d;const c=[n({mainAxis:null!=(s=i.mainAxis)?s:4,crossAxis:null!=(r=i.crossAxis)?r:0})];return o&&c.push(e()),(null==(l=null==a?void 0:a.middleware)?void 0:l.length)&&c.push(...a.middleware),{placement:t,strategy:null!=(d=null==a?void 0:a.strategy)?d:"absolute",middleware:c}}function y({getReferenceRect:e,contextElement:n,config:o,container:a,dismissOnOutsideClick:s,dismiss:r}){return(l,d={})=>{const c={getBoundingClientRect:()=>{var t;return null!=(t=e())?t:new DOMRect},contextElement:n};let u=!1;const m=!l.isConnected;m&&function(e){if(e instanceof HTMLElement)return e;if("string"==typeof e)try{const t=document.querySelector(e);if(t)return t}catch{return document.body}return document.body}(a).appendChild(l),d.onPosition||(l.style.visibility="hidden",l.style.width="max-content");const g=i(c,l,()=>{t(c,l,{placement:o.placement,strategy:o.strategy,middleware:o.middleware}).then(({x:e,y:t,placement:n,strategy:i})=>{d.onPosition?d.onPosition({x:e,y:t,placement:n,strategy:i}):(Object.assign(l.style,{position:i,left:`${e}px`,top:`${t}px`}),u||(u=!0,l.style.visibility=""))})},d.autoUpdate);let p;return s&&(p=e=>{const t=e.target;t instanceof Node&&!l.contains(t)&&!n.contains(t)&&r()},document.addEventListener("pointerdown",p,!0)),()=>{g(),p&&document.removeEventListener("pointerdown",p,!0),m&&l.remove()}}}var h=new l("suggestion");function w({pluginKey:e=h,editor:t,char:n="@",allowSpaces:i=!1,allowToIncludeChar:o=!1,allowedPrefixes:a=[" "],startOfLine:s=!1,decorationTag:l="span",decorationClass:d="suggestion",decorationContent:c="",decorationEmptyClass:w="is-empty",command:x=()=>null,items:R=()=>[],minQueryLength:b=0,debounce:C=0,initialItems:S,placement:E="bottom-start",offset:$={},container:q,flip:O=!0,floatingUi:A,dismissOnOutsideClick:I=!0,render:K=()=>({}),allow:T=()=>!0,findSuggestionMatch:L=u,shouldShow:M,shouldResetDismissed:k}){const D=null==K?void 0:K(),P=i&&!o,U=(n,i)=>m(t,n,i,e);const B=t=>function({view:e,pluginKeyRef:t}){const n=e.state.tr.setMeta(t,{exit:!0});e.dispatch(n)}({view:t,pluginKeyRef:e});return new r({key:e,view:()=>function({editor:e,pluginKey:t,items:n,renderer:i,minQueryLength:o,debounce:a,initialItems:s,placement:r,offset:l,container:d,flip:c,floatingUi:u,dismissOnOutsideClick:m,command:g,clientRectFor:p,dispatchExit:h}){let w;const x=f({editor:e,items:n}),R=v({placement:r,offset:l,flip:c,floatingUi:u});function b(e,t){var n,o,a;switch(e){case"started":null==(n=null==i?void 0:i.onStart)||n.call(i,t);break;case"updated":null==(o=null==i?void 0:i.onUpdate)||o.call(i,t);break;case"stopped":null==(a=null==i?void 0:i.onExit)||a.call(i,t)}}return{update:async(n,u)=>{var f,v,C,S;const E=t.getState(u),$=t.getState(n.state);if(!E||!$)return;let q=null;const O=E.query!==$.query,A=E.text!==$.text,I=E.range.from!==$.range.from||E.range.to!==$.range.to,K=O||A||I;if(!E.active&&$.active)q="started";else if(E.active&&!$.active)q="stopped";else{if(!$.active||!K)return;q="updated"}const T="stopped"===q?E:$,L=n.dom.querySelector(`[data-decoration-id="${T.decorationId}"]`),M=p(n,L),k=0===o||!!T.query&&T.query.length>=o,D=("started"===q||"updated"===q)&&k;if(w={editor:e,range:T.range,query:T.query||"",text:T.text||"",items:null!=s?s:[],command:t=>g({editor:e,range:T.range,props:t}),decorationNode:L,clientRect:M,loading:D,placement:r,offset:{mainAxis:null!=(f=l.mainAxis)?f:4,crossAxis:null!=(v=l.crossAxis)?v:0},container:d,flip:c,floatingUi:R,mount:y({getReferenceRect:M,contextElement:n.dom,config:R,container:d,dismissOnOutsideClick:m,dismiss:()=>h(e.view)})},"started"===q&&(null==(C=null==i?void 0:i.onBeforeStart)||C.call(i,w)),"updated"===q&&(null==(S=null==i?void 0:i.onBeforeUpdate)||S.call(i,w)),"started"===q&&b(q,w),"started"===q||"updated"===q)if(D){w={...w,items:null!=s?s:[],loading:!0},q="updated",b(q,w);const e=await x.fetch(T.query||"",a);if("aborted"===e.status)return;const i=t.getState(n.state);if(!(null==i?void 0:i.active))return void x.abort();w="resolved"===e.status?{...w,items:e.items,loading:!1}:{...w,loading:!1}}else x.abort(),w={...w,items:null!=s?s:[],loading:!1};if("stopped"===q)return x.abort(),b(q,w),void(w=void 0);"updated"===q&&b(q,w)},destroy:()=>{var e;x.abort(),w&&(null==(e=null==i?void 0:i.onExit)||e.call(i,w))}}}({editor:t,pluginKey:e,items:R,renderer:D,minQueryLength:b,debounce:C,initialItems:S,placement:E,offset:$,container:q,flip:O,floatingUi:A,dismissOnOutsideClick:I,command:x,clientRectFor:U,dispatchExit:B}),state:p({editor:t,char:n,effectiveAllowSpaces:P,allowToIncludeChar:o,allowedPrefixes:a,startOfLine:s,findSuggestionMatch:L,allow:T,shouldShow:M,shouldKeepDismissed:function(e){return function({match:e,dismissedRange:t,state:n,transaction:i,editor:o,shouldResetDismissed:a,effectiveAllowSpaces:s}){return!(null==a?void 0:a({editor:o,state:n,range:t,match:e,transaction:i,allowSpaces:s}))&&(s?e.range.from===t.from:e.range.from===t.from&&!function(e){return!!e.docChanged&&e.steps.some(e=>{const t=e.slice;if(!(null==t?void 0:t.content))return!1;const n=t.content.textBetween(0,t.content.size,"\n");return/\s/.test(n)})}(i))}({...e,editor:t,shouldResetDismissed:k,effectiveAllowSpaces:P})},pluginKey:e}),props:g({pluginKey:e,decorationTag:l,decorationClass:d,decorationContent:c,decorationEmptyClass:w,renderer:D,dispatchExit:B})})}function x(n,i){t({getBoundingClientRect:()=>a(n.view,n.state.selection.from,n.state.selection.to)},i,{placement:"bottom-start",strategy:"absolute",middleware:[o(),e()]}).then(({x:e,y:t,strategy:n})=>{i.style.width="max-content",i.style.position=n,i.style.left=`${e}px`,i.style.top=`${t}px`})}export{w as n,x as t};
@@ -0,0 +1 @@
1
+ const e=require("./floating-ui.dom-D9FglguG.cjs");let t=require("@tiptap/react"),n=require("@tiptap/core"),i=require("@tiptap/pm/state"),o=require("@tiptap/pm/view");function a(e){var t;const{char:i,allowSpaces:o,allowToIncludeChar:a,allowedPrefixes:s,startOfLine:r,$position:l}=e,d=o&&!a,c=(0,n.escapeForRegEx)(i),u=new RegExp(`\\s${c}$`),m=r?"^":"",g=a?"":c,p=d?new RegExp(`${m}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${m}(?:^)?${c}[^\\s${g}]*`,"gm"),f=(null==(t=l.nodeBefore)?void 0:t.isText)&&l.nodeBefore.text;if(!f)return null;const v=l.pos-f.length,y=Array.from(f.matchAll(p)).pop();if(!y||void 0===y.input||void 0===y.index)return null;const h=y.input.slice(Math.max(0,y.index-1),y.index),w=new RegExp(`^[${null==s?void 0:s.join("")}\0]?$`).test(h);if(null!==s&&!w)return null;const x=v+y.index;let R=x+y[0].length;return d&&u.test(f.slice(R-1,R+1))&&(y[0]+=" ",R+=1),x<l.pos&&R>=l.pos?{range:{from:x,to:R},query:y[0].slice(i.length),text:y[0]}:null}function s(e,t,n,i){return n?()=>{const n=i.getState(e.state),o=null==n?void 0:n.decorationId,a=t.dom.querySelector(`[data-decoration-id="${o}"]`);return(null==a?void 0:a.getBoundingClientRect())||null}:function(e){return()=>{const t=e.state.selection.$anchor.pos,{top:n,right:i,bottom:o,left:a}=e.view.coordsAtPos(t);try{return new DOMRect(a,n,i-a,o-n)}catch{return null}}}(e)}function r({pluginKey:e,decorationTag:t,decorationClass:n,decorationContent:i,decorationEmptyClass:a,renderer:s,dispatchExit:r}){return{handleKeyDown(t,n){var i,o;const a=e.getState(t.state);return!!a.active&&("Escape"===n.key||"Esc"===n.key?(null==(i=null==s?void 0:s.onKeyDown)||i.call(s,{view:t,event:n,range:a.range}),r(t),!0):(null==(o=null==s?void 0:s.onKeyDown)?void 0:o.call(s,{view:t,event:n,range:a.range}))||!1)},decorations(s){const{active:r,range:l,decorationId:d,query:c}=e.getState(s);if(!r)return null;const u=!(null==c?void 0:c.length),m=[n];return u&&m.push(a),o.DecorationSet.create(s.doc,[o.Decoration.inline(l.from,l.to,{nodeName:t,class:m.join(" "),"data-decoration-id":d||void 0,"data-decoration-content":i})])}}}function l({editor:e,char:t,effectiveAllowSpaces:n,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,findSuggestionMatch:s,allow:r,shouldShow:l,shouldKeepDismissed:d,pluginKey:c}){return{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}),apply(u,m,g,p){const{isEditable:f}=e,{composing:v}=e.view,{selection:y}=u,{empty:h,from:w}=y,x={...m},R=u.getMeta(c);if(R&&R.exit)return x.active=!1,x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null,x.dismissedRange=m.active?{...m.range}:m.dismissedRange,x;if(x.composing=v,u.docChanged&&null!==x.dismissedRange&&(x.dismissedRange={from:u.mapping.map(x.dismissedRange.from),to:u.mapping.map(x.dismissedRange.to)}),f&&(h||e.view.composing)){!(w<m.range.from||w>m.range.to)||v||m.composing||(x.active=!1);const c=s({char:t,allowSpaces:n,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:a,$position:y.$from}),g=`id_${Math.floor(4294967295*Math.random())}`;c&&r({editor:e,state:p,range:c.range,isActive:m.active})&&(!l||l({editor:e,range:c.range,query:c.query,text:c.text,transaction:u}))?(null===x.dismissedRange||d({match:c,dismissedRange:x.dismissedRange,state:p,transaction:u})||(x.dismissedRange=null),null===x.dismissedRange?(x.active=!0,x.decorationId=m.decorationId||g,x.range=c.range,x.query=c.query,x.text=c.text):x.active=!1):(c||(x.dismissedRange=null),x.active=!1)}else x.active=!1;return x.active||(x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null),x}}}function d({editor:e,items:t}){let n=null,i=null,o=null;const a=()=>{n?.abort(),null!==i&&(clearTimeout(i),i=null),o?.(),o=null,n=null};return{abort:a,fetch:async(s,r)=>{a(),n=new AbortController;const l=n;var d;if(r>0&&await(d=r,new Promise(e=>{o=e,i=setTimeout(()=>{i=null;const e=o;o=null,e?.()},d)})),n!==l||l.signal.aborted)return{status:"aborted"};try{const i=await t({editor:e,query:s,signal:l.signal});return n!==l||l.signal.aborted?{status:"aborted"}:{status:"resolved",items:i}}catch{return n!==l||l.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function c({getReferenceRect:t,contextElement:n,config:i,container:o,dismissOnOutsideClick:a,dismiss:s}){return(r,l={})=>{const d={getBoundingClientRect:()=>{var e;return null!=(e=t())?e:new DOMRect},contextElement:n};let c=!1;const u=!r.isConnected;u&&function(e){if(e instanceof HTMLElement)return e;if("string"==typeof e)try{const t=document.querySelector(e);if(t)return t}catch{return document.body}return document.body}(o).appendChild(r),l.onPosition||(r.style.visibility="hidden",r.style.width="max-content");const m=e.autoUpdate(d,r,()=>{e.computePosition(d,r,{placement:i.placement,strategy:i.strategy,middleware:i.middleware}).then(({x:e,y:t,placement:n,strategy:i})=>{l.onPosition?l.onPosition({x:e,y:t,placement:n,strategy:i}):(Object.assign(r.style,{position:i,left:`${e}px`,top:`${t}px`}),c||(c=!0,r.style.visibility=""))})},l.autoUpdate);let g;return a&&(g=e=>{const t=e.target;t instanceof Node&&!r.contains(t)&&!n.contains(t)&&s()},document.addEventListener("pointerdown",g,!0)),()=>{m(),g&&document.removeEventListener("pointerdown",g,!0),u&&r.remove()}}}function u({editor:t,pluginKey:n,items:i,renderer:o,minQueryLength:a,debounce:s,initialItems:r,placement:l,offset:u,container:m,flip:g,floatingUi:p,dismissOnOutsideClick:f,command:v,clientRectFor:y,dispatchExit:h}){let w;const x=d({editor:t,items:i}),R=function({placement:t,offset:n,flip:i,floatingUi:o}){var a,s,r,l;const d=[e.offset({mainAxis:null!=(a=n.mainAxis)?a:4,crossAxis:null!=(s=n.crossAxis)?s:0})];return i&&d.push(e.flip()),(null==(r=null==o?void 0:o.middleware)?void 0:r.length)&&d.push(...o.middleware),{placement:t,strategy:null!=(l=null==o?void 0:o.strategy)?l:"absolute",middleware:d}}({placement:l,offset:u,flip:g,floatingUi:p});function b(e,t){var n,i,a;switch(e){case"started":null==(n=null==o?void 0:o.onStart)||n.call(o,t);break;case"updated":null==(i=null==o?void 0:o.onUpdate)||i.call(o,t);break;case"stopped":null==(a=null==o?void 0:o.onExit)||a.call(o,t)}}return{update:async(e,i)=>{var d,p,C,S;const q=n.getState(i),E=n.getState(e.state);if(!q||!E)return;let $=null;const O=q.query!==E.query,A=q.text!==E.text,P=q.range.from!==E.range.from||q.range.to!==E.range.to,I=O||A||P;if(!q.active&&E.active)$="started";else if(q.active&&!E.active)$="stopped";else{if(!E.active||!I)return;$="updated"}const K="stopped"===$?q:E,D=e.dom.querySelector(`[data-decoration-id="${K.decorationId}"]`),T=y(e,D),M=0===a||!!K.query&&K.query.length>=a,L=("started"===$||"updated"===$)&&M;if(w={editor:t,range:K.range,query:K.query||"",text:K.text||"",items:null!=r?r:[],command:e=>v({editor:t,range:K.range,props:e}),decorationNode:D,clientRect:T,loading:L,placement:l,offset:{mainAxis:null!=(d=u.mainAxis)?d:4,crossAxis:null!=(p=u.crossAxis)?p:0},container:m,flip:g,floatingUi:R,mount:c({getReferenceRect:T,contextElement:e.dom,config:R,container:m,dismissOnOutsideClick:f,dismiss:()=>h(t.view)})},"started"===$&&(null==(C=null==o?void 0:o.onBeforeStart)||C.call(o,w)),"updated"===$&&(null==(S=null==o?void 0:o.onBeforeUpdate)||S.call(o,w)),"started"===$&&b($,w),"started"===$||"updated"===$)if(L){w={...w,items:null!=r?r:[],loading:!0},$="updated",b($,w);const t=await x.fetch(K.query||"",s);if("aborted"===t.status)return;const i=n.getState(e.state);if(!(null==i?void 0:i.active))return void x.abort();w="resolved"===t.status?{...w,items:t.items,loading:!1}:{...w,loading:!1}}else x.abort(),w={...w,items:null!=r?r:[],loading:!1};if("stopped"===$)return x.abort(),b($,w),void(w=void 0);"updated"===$&&b($,w)},destroy:()=>{var e;x.abort(),w&&(null==(e=null==o?void 0:o.onExit)||e.call(o,w))}}}var m=new i.PluginKey("suggestion");function g({pluginKey:e=m,editor:t,char:n="@",allowSpaces:o=!1,allowToIncludeChar:d=!1,allowedPrefixes:c=[" "],startOfLine:g=!1,decorationTag:p="span",decorationClass:f="suggestion",decorationContent:v="",decorationEmptyClass:y="is-empty",command:h=()=>null,items:w=()=>[],minQueryLength:x=0,debounce:R=0,initialItems:b,placement:C="bottom-start",offset:S={},container:q,flip:E=!0,floatingUi:$,dismissOnOutsideClick:O=!0,render:A=()=>({}),allow:P=()=>!0,findSuggestionMatch:I=a,shouldShow:K,shouldResetDismissed:D}){const T=null==A?void 0:A(),M=o&&!d,L=(n,i)=>s(t,n,i,e);const k=t=>function({view:e,pluginKeyRef:t}){const n=e.state.tr.setMeta(t,{exit:!0});e.dispatch(n)}({view:t,pluginKeyRef:e});return new i.Plugin({key:e,view:()=>u({editor:t,pluginKey:e,items:w,renderer:T,minQueryLength:x,debounce:R,initialItems:b,placement:C,offset:S,container:q,flip:E,floatingUi:$,dismissOnOutsideClick:O,command:h,clientRectFor:L,dispatchExit:k}),state:l({editor:t,char:n,effectiveAllowSpaces:M,allowToIncludeChar:d,allowedPrefixes:c,startOfLine:g,findSuggestionMatch:I,allow:P,shouldShow:K,shouldKeepDismissed:function(e){return function({match:e,dismissedRange:t,state:n,transaction:i,editor:o,shouldResetDismissed:a,effectiveAllowSpaces:s}){return!(null==a?void 0:a({editor:o,state:n,range:t,match:e,transaction:i,allowSpaces:s}))&&(s?e.range.from===t.from:e.range.from===t.from&&!function(e){return!!e.docChanged&&e.steps.some(e=>{const t=e.slice;if(!(null==t?void 0:t.content))return!1;const n=t.content.textBetween(0,t.content.size,"\n");return/\s/.test(n)})}(i))}({...e,editor:t,shouldResetDismissed:D,effectiveAllowSpaces:M})},pluginKey:e}),props:r({pluginKey:e,decorationTag:p,decorationClass:f,decorationContent:v,decorationEmptyClass:y,renderer:T,dispatchExit:k})})}function p(n,i){e.computePosition({getBoundingClientRect:()=>(0,t.posToDOMRect)(n.view,n.state.selection.from,n.state.selection.to)},i,{placement:"bottom-start",strategy:"absolute",middleware:[e.shift(),e.flip()]}).then(({x:e,y:t,strategy:n})=>{i.style.width="max-content",i.style.position=n,i.style.left=`${e}px`,i.style.top=`${t}px`})}Object.defineProperty(exports,"Suggestion",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"updatePosition",{enumerable:!0,get:function(){return p}});
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-BeavJI0R.cjs"),t=require("./locales-Dg9XL0yP.cjs"),n=require("./dist-GxnWmQlw.cjs");let r=require("@tiptap/react"),o=require("react"),u=e.__toESM(o,1);function i(){return function(e){const{editor:t}=(0,r.useCurrentEditor)(),n=u.useMemo(()=>e||t,[e,t]);return(0,r.useEditorState)({editor:n,selector:e=>e.editor?{editor:e.editor,editorState:e.editor.state,canCommand:e.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}})||{editor:null}}().editor}o=e.__toESM(o);var s=n.y(!1);function a(){return n.b(s)}function c(){return n.S(s)}var f=()=>!1;function d(e=f){const t=a(),[n,r]=(0,u.useState)(()=>{const t=e();return"boolean"==typeof t?!t:t}),o=i();return(0,u.useEffect)(()=>{if(!o||!e)return;const t=()=>{const t=e();r("boolean"==typeof t?!t:t)};return t(),o.on("selectionUpdate",t),o.on("transaction",t),()=>{o.off("selectionUpdate",t),o.off("transaction",t)}},[o,e]),{disabled:(0,u.useMemo)(()=>!t||!o||"boolean"==typeof n&&n,[t,o,n]),dataState:n,editorDisabled:(0,u.useMemo)(()=>!t||!o,[t,o])}}function l(e=f){const t=a(),[n,r]=(0,u.useState)({}),[o,s]=(0,u.useState)(e()),c=i();return(0,u.useEffect)(()=>{if(!c||!e)return;const t=()=>{s(e())};return t(),c.on("selectionUpdate",t),()=>{c.off("selectionUpdate",t)}},[n,c,e]),{disabled:(0,u.useMemo)(()=>!t||!c,[t,c]),dataState:o,editorDisabled:(0,u.useMemo)(()=>!t||!c,[t,c]),update:()=>r({})}}function p(e){const t=i();return(0,u.useMemo)(()=>t?t.extensionManager.extensions.find(t=>t.name===e):null,[t,e])}function b(e,t,n){return e<t?t:e>n?n:e}function m(e,t="px"){if(!e)return e;const n=(e=>"number"==typeof e)(e)?String(e):e,r=Number.parseFloat(n),o=n.match(/[%a-z]+$/i),u=o?o[0]:t;return Number.isNaN(r)?e:r+u}function x(e,t){if(!e)return!1;const{extensions:n=[]}=e?.extensionManager??{};return!!n.find(e=>e.name===t)}function g(e){return e.map(e=>"string"==typeof e?{value:e,name:e}:e)}function y(e){const n=i(),r=p(e),{t:o}=t.useLocale();return(0,u.useMemo)(()=>{if(!n||!r||!o)return null;const{button:e}=r.options;return e&&"function"==typeof e?e({editor:n,extension:r,t:o}):null},[n,r,o])}Object.defineProperty(exports,"clamp",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"ensureNameValueOptions",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"getCssUnitWithDefault",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"hasExtension",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"useActive",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"useButtonProps",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"useEditableEditor",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"useEditorInstance",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"useExtension",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"useStoreEditableEditor",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"useToggleActive",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1 @@
1
+ import{n as t}from"./locales-DfkG6-1b.js";import{a as n,r as e,t as o}from"./dist-fiA_WbbM.js";import{useCurrentEditor as r,useEditorState as a}from"@tiptap/react";import*as i from"react";import{useEffect as s,useMemo as u,useState as c}from"react";function f(){return function(t){const{editor:n}=r(),e=i.useMemo(()=>t||n,[t,n]);return a({editor:e,selector:t=>t.editor?{editor:t.editor,editorState:t.editor.state,canCommand:t.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}})||{editor:null}}().editor}var d=n(!1);function l(){return e(d)}function m(){return o(d)}var p=()=>!1;function b(t=p){const n=l(),[e,o]=c(()=>{const n=t();return"boolean"==typeof n?!n:n}),r=f();return s(()=>{if(!r||!t)return;const n=()=>{const n=t();o("boolean"==typeof n?!n:n)};return n(),r.on("selectionUpdate",n),r.on("transaction",n),()=>{r.off("selectionUpdate",n),r.off("transaction",n)}},[r,t]),{disabled:u(()=>!n||!r||"boolean"==typeof e&&e,[n,r,e]),dataState:e,editorDisabled:u(()=>!n||!r,[n,r])}}function x(t=p){const n=l(),[e,o]=c({}),[r,a]=c(t()),i=f();return s(()=>{if(!i||!t)return;const n=()=>{a(t())};return n(),i.on("selectionUpdate",n),()=>{i.off("selectionUpdate",n)}},[e,i,t]),{disabled:u(()=>!n||!i,[n,i]),dataState:r,editorDisabled:u(()=>!n||!i,[n,i]),update:()=>o({})}}function y(t){const n=f();return u(()=>n?n.extensionManager.extensions.find(n=>n.name===t):null,[n,t])}function v(t,n,e){return t<n?n:t>e?e:t}function S(t,n="px"){if(!t)return t;const e=(t=>"number"==typeof t)(t)?String(t):t,o=Number.parseFloat(e),r=e.match(/[%a-z]+$/i),a=r?r[0]:n;return Number.isNaN(o)?t:o+a}function g(t,n){if(!t)return!1;const{extensions:e=[]}=t?.extensionManager??{};return!!e.find(t=>t.name===n)}function N(t){return t.map(t=>"string"==typeof t?{value:t,name:t}:t)}function U(n){const e=f(),o=y(n),{t:r}=t();return u(()=>{if(!e||!o||!r)return null;const{button:t}=o.options;return t&&"function"==typeof t?t({editor:e,extension:o,t:r}):null},[e,o,r])}export{g as a,x as c,f as d,S as i,l,v as n,y as o,N as r,b as s,U as t,m as u};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Base64 encoding and decoding helpers. Used for inline data URIs and file handling.
3
+ */
4
+ export declare function base64ToBlob(base64: any, mimeType: any): Blob;
5
+ export declare function blobToFile(blob: any, fileName: any): File;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Lazily loads external scripts and styles from a CDN at runtime. Used to defer heavy dependencies until a feature actually needs them.
3
+ */
4
+ export declare function loadScript(url: string): Promise<void>;
5
+ export declare function loadStylesheet(url: string): Promise<void>;
6
+ export declare function loadKatex(): Promise<any>;
7
+ export declare function loadMermaid(): Promise<any>;
8
+ export declare function loadDrawio(): Promise<{
9
+ mxGraph: any;
10
+ } | null>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Utility that detects whether a URL points to a video. Used when deciding how to embed pasted or entered links.
3
+ */
4
+ export declare function checkIsVideoUrl(url: string, allowedProviders?: string[]): boolean;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Color parsing and conversion helpers. Used by the color pickers and the color/highlight extensions.
3
+ */
4
+ export declare const getRandomColor: () => string;
5
+ /**
6
+ * @param hexCode
7
+ * @param opacity
8
+ * @returns
9
+ */
10
+ export declare function convertColorToRGBA(hexCode: string, opacity?: number): string;
@@ -0,0 +1,14 @@
1
+ import { EditorState } from '@tiptap/pm/state';
2
+ export declare function createColumn(colType: any, index: any, colContent?: null): any;
3
+ export declare function getColumnsNodeTypes(schema: any): any;
4
+ export declare function createColumns(schema: any, colsCount: any, colContent?: null): any;
5
+ export declare function addOrDeleteCol({ state, dispatch, type, }: {
6
+ state: EditorState;
7
+ dispatch: any;
8
+ type: 'addBefore' | 'addAfter' | 'delete';
9
+ }): boolean;
10
+ export declare function gotoCol({ state, dispatch, type, }: {
11
+ state: EditorState;
12
+ dispatch: any;
13
+ type: 'before' | 'after';
14
+ }): boolean;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Defines the string constants for the editor's custom DOM and bus events. Centralizes event names so emitters and listeners stay in sync.
3
+ */
4
+ export declare const EVENTS: {
5
+ readonly UPLOAD_IMAGE: (id: any) => string;
6
+ readonly UPLOAD_VIDEO: (id: string) => string;
7
+ readonly DRAWIO: (id: string) => string;
8
+ };
9
+ export type EventValues = any;
@@ -0,0 +1,2 @@
1
+ import { Editor } from '@tiptap/core';
2
+ export declare function deleteNode(nodeType: string, editor: Editor): boolean;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Helpers for reading and writing `data-*` attributes on DOM elements. Used when syncing node attributes with their rendered elements.
3
+ */
4
+ /**
5
+ * @param json
6
+ */
7
+ export declare function jsonToStr(json: Record<string, unknown>): string;
8
+ /**
9
+ * @param str
10
+ */
11
+ export declare function strToJSON(str: string): any;
12
+ /**
13
+ * @param element
14
+ * @param json
15
+ */
16
+ export declare function jsonToDOMDataset(json: Record<string, unknown>): {
17
+ key: string;
18
+ value: string;
19
+ }[];
20
+ /**
21
+ * @param element
22
+ * @param attribute
23
+ * @param transformToJSON
24
+ */
25
+ export declare function getDatasetAttribute(attribute: string, transformToJSON?: boolean): (element: HTMLElement) => any;
26
+ /**
27
+ * 将节点属性转换为 dataset
28
+ * @param node
29
+ * @returns
30
+ */
31
+ export declare function nodeAttrsToDataset(node: Node): any;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Helper for triggering browser downloads of generated files and blobs. Used by the export features to save their output.
3
+ */
4
+ export declare function downloadFromBlob(blob: Blob, filename: string): Promise<void>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Utilities for injecting and removing `<style>` rules at runtime. Used to apply theme variables and other scoped styles dynamically.
3
+ */
4
+ export type ContainerType = Element | ShadowRoot;
5
+ export type Prepend = boolean | 'queue';
6
+ export type AppendType = 'prependQueue' | 'append' | 'prepend';
7
+ export default function contains(root: Node | null | undefined, n?: Node): boolean;
8
+ interface Options {
9
+ attachTo?: ContainerType;
10
+ csp?: {
11
+ nonce?: string;
12
+ };
13
+ prepend?: Prepend;
14
+ /**
15
+ * Config the `priority` of `prependQueue`. Default is `0`.
16
+ * It's useful if you need to insert style before other style.
17
+ */
18
+ priority?: number;
19
+ mark?: string;
20
+ }
21
+ export declare function injectCSS(css: string, option?: Options): HTMLStyleElement;
22
+ export declare function removeCSS(key: string, option?: Options): void;
23
+ /**
24
+ * manually clear container cache to avoid global cache in unit testes
25
+ */
26
+ export declare function clearContainerCache(): void;
27
+ export declare function updateCSS(css: string, key: string, option?: Options): HTMLStyleElement;
28
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/core';
2
+ export declare function getEditorContainerDOMSize(editor: Editor): {
3
+ width: number;
4
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 获取文件名
3
+ *
4
+ * @example
5
+ * > extractFilename('https://gitlab.com/images/logo-full.png')
6
+ * < 'logo-full'
7
+ *
8
+ * @param {string} src The URL to extract filename from
9
+ * @returns {string}
10
+ */
11
+ export declare function extractFilename(src: any): any;
12
+ /**
13
+ * extractFileExtension
14
+ * @param {string} fileName The file name to extract extension from
15
+ * @returns {string}
16
+ */
17
+ export declare function extractFileExtension(fileName: any): any;
18
+ export declare function normalizeFileSize(size: any): string;
19
+ export type FileType = 'image' | 'audio' | 'video' | 'pdf' | 'word' | 'excel' | 'ppt' | 'file';
20
+ export declare function normalizeFileType(fileType: any): FileType;
21
+ export declare function readImageAsBase64(file: File): Promise<{
22
+ alt: string;
23
+ src: string;
24
+ }>;
25
+ export declare function getImageWidthHeight(url: string): Promise<{
26
+ width: number | string;
27
+ height: number | string;
28
+ }>;
29
+ export declare const FILE_CHUNK_SIZE: number;
30
+ export declare function dataURLtoFile(dataurl: string, filename: string): File;
@@ -0,0 +1,3 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export declare function getRenderContainer(editor: Editor, nodeType: string): any;
3
+ export default getRenderContainer;
@@ -0,0 +1,14 @@
1
+ import { Command } from '@tiptap/core';
2
+ import { Transaction } from '@tiptap/pm/state';
3
+ export declare const enum IndentProps {
4
+ max = 7,
5
+ min = 0,
6
+ more = 1,
7
+ less = -1
8
+ }
9
+ export declare function clamp(val: number, min: number, max: number): number;
10
+ export declare function setNodeIndentMarkup(tr: Transaction, pos: number, delta: number): Transaction;
11
+ export declare function createIndentCommand({ delta, types }: {
12
+ delta: number;
13
+ types: string[];
14
+ }): Command;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Detects whether the editor is running in a mobile-sized viewport. Used to adapt UI and behavior for small screens.
3
+ */
4
+ interface HttpRequestHeadersInterfaceMock {
5
+ [id: string]: string | string[] | undefined;
6
+ }
7
+ interface HttpRequestInterfaceMock {
8
+ headers: HttpRequestHeadersInterfaceMock;
9
+ [id: string]: any;
10
+ }
11
+ export interface IsMobileOptions {
12
+ ua?: string | HttpRequestInterfaceMock;
13
+ tablet?: boolean;
14
+ featureDetect?: boolean;
15
+ }
16
+ /**
17
+ * Determines if the current device is a mobile or tablet device.
18
+ * @param opts - Options for the detection.
19
+ * @returns `true` if the device is mobile or tablet, `false` otherwise.
20
+ */
21
+ export declare function isMobile(opts?: IsMobileOptions): boolean;
22
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Safe JSON parsing and stringifying helpers. Used to serialize editor content and settings without throwing on bad input.
3
+ */
4
+ export declare function safeJSONParse(str: any, defaultValue?: {}): any;
5
+ export declare function safeJSONStringify(obj: any, defaultValue?: string): string;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * A small least-recently-used (LRU) cache implementation. Used to memoize expensive results with a bounded size.
3
+ */
4
+ declare class Node {
5
+ key: string;
6
+ value: string | number;
7
+ prev: Node | null;
8
+ next: Node | null;
9
+ constructor(key: any, value: any);
10
+ }
11
+ export declare class LRUCache {
12
+ private capacity;
13
+ private usedCapacity;
14
+ private head;
15
+ private tail;
16
+ private store;
17
+ constructor(capacity: any);
18
+ private removeNode;
19
+ private addToHead;
20
+ private moveToHead;
21
+ private removeTail;
22
+ get(key: any): string | number;
23
+ put(key: any, value: any): void;
24
+ keys(): any[];
25
+ values(): any[];
26
+ toJSON(): Record<string, Node>;
27
+ }
28
+ export declare function createKeysLocalStorageLRUCache(storageKey: any, capacity: any): {
29
+ syncFromStorage(): void;
30
+ syncToStorage(): void;
31
+ put(key: any): void;
32
+ get(key?: string): string | number | any[];
33
+ };
34
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * copy to https://github.com/developit/mitt
3
+ */
4
+ export type EventType = string | symbol;
5
+ export type Handler<T = unknown> = (event: T) => void;
6
+ export type WildcardHandler<T = Record<string, unknown>> = (type: keyof T, event: T[keyof T]) => void;
7
+ export type EventHandlerList<T = unknown> = Array<Handler<T>>;
8
+ export type WildCardEventHandlerList<T = Record<string, unknown>> = Array<WildcardHandler<T>>;
9
+ export type EventHandlerMap<Events extends Record<EventType, unknown>> = Map<keyof Events | '*', EventHandlerList<Events[keyof Events]> | WildCardEventHandlerList<Events>>;
10
+ export interface Emitter<Events extends Record<EventType, unknown>> {
11
+ all: EventHandlerMap<Events>;
12
+ on<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>): void;
13
+ on(type: '*', handler: WildcardHandler<Events>): void;
14
+ off<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>): void;
15
+ off(type: '*', handler: WildcardHandler<Events>): void;
16
+ emit<Key extends keyof Events>(type: Key, event: Events[Key]): void;
17
+ emit<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never): void;
18
+ }
19
+ /**
20
+ * Mitt: Tiny (~200b) functional event emitter / pubsub.
21
+ * @name mitt
22
+ * @returns {Mitt}
23
+ */
24
+ export default function mitt<Events extends Record<EventType, unknown>>(all?: EventHandlerMap<Events>): Emitter<Events>;
@@ -0,0 +1,15 @@
1
+ import { Editor } from '@tiptap/core';
2
+ import { Node } from '@tiptap/pm/model';
3
+ import { EditorState } from '@tiptap/pm/state';
4
+ export declare function isTitleNode(node: Node): boolean;
5
+ export declare function isBulletListNode(node: Node): boolean;
6
+ export declare function isOrderedListNode(node: Node): boolean;
7
+ export declare function isTodoListNode(node: Node): boolean;
8
+ export declare function isListNode(node: Node): boolean;
9
+ export declare function getCurrentNode(state: EditorState): any;
10
+ export declare function getNodeAtPos(state: EditorState, pos: number): any;
11
+ export declare function isInCustomNode(state: EditorState, nodeName: string): boolean;
12
+ export declare function isInCodeBlock(state: EditorState): boolean;
13
+ export declare function isInTitle(state: EditorState): boolean;
14
+ export declare function isInCallout(state: EditorState): boolean;
15
+ export declare function findNode(editor: Editor, name: string): any[];
@@ -0,0 +1,3 @@
1
+ import { ExportPdfOptions } from '../extensions/ExportPdf';
2
+ import { Editor } from '@tiptap/core';
3
+ export declare function printEditorContent(editor: Editor, exportPdfOptions: ExportPdfOptions): boolean;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Platform-detection helpers (macOS, touch device) and keyboard-shortcut formatting. Lets the UI show correct modifier keys and adapt to the device.
3
+ */
4
+ /**
5
+ * Return true if the user is using a Mac (as opposed to Windows, etc.) device.
6
+ */
7
+ export declare function isMac(): boolean;
8
+ /**
9
+ * 根据 Mac 和非 Mac 平台,返回应该用于键盘快捷键的修饰键的可读版本。用于直观地指示应该按哪个键。
10
+ */
11
+ export declare function getShortcutKey(key: string): string;
12
+ export declare function getShortcutKeys(keys: string[]): string;
13
+ /** Return true if the user is using a touch-based device. */
14
+ export declare function isTouchDevice(): boolean;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Helper for rendering React node views into the ProseMirror document. Bridges Tiptap node views with their React components.
3
+ */
4
+ export declare function renderNodeViewClosure(node: any): () => {
5
+ onStart: (props: any) => void;
6
+ onUpdate(props: any): void;
7
+ onKeyDown(props: any): any;
8
+ onExit(): void;
9
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generates short, unique identifiers. Used to give nodes and elements stable keys and ids.
3
+ */
4
+ export declare function shortId(length?: number): string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Thin wrapper around browser storage for reading and writing persisted values. Centralizes storage access for the editor.
3
+ */
4
+ export declare function getStorage(key: any, defaultValue?: null): any;
5
+ export declare function setStorage(key: any, value: any): void;
6
+ /** `window.localStorage` on the client, or a no-op stand-in during SSR. */
7
+ export declare const ssrSafeLocalStorage: Storage;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Recomputes the on-screen position of floating UI relative to the current selection. Keeps bubble menus and popovers anchored correctly as the document changes.
3
+ */
4
+ export declare function updatePosition(editor: any, element: any): void;