reactjs-tiptap-editor 0.3.18 → 0.3.21

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 (251) hide show
  1. package/lib/{ActionMenuButton-Bp3NtBKu.cjs → ActionMenuButton-BTFBZyG2.cjs} +1 -1
  2. package/lib/{ActionMenuButton-CK00Dg3S.js → ActionMenuButton-DXwnYZhJ.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +28 -28
  5. package/lib/Attachment.d.ts +28 -28
  6. package/lib/Attachment.js +4 -4
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +28 -28
  9. package/lib/Blockquote.d.ts +28 -28
  10. package/lib/Blockquote.js +2 -2
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +28 -28
  13. package/lib/Bold.d.ts +28 -28
  14. package/lib/Bold.js +2 -2
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +28 -28
  17. package/lib/BulletList.d.ts +28 -28
  18. package/lib/BulletList.js +2 -2
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +28 -28
  21. package/lib/Clear.d.ts +28 -28
  22. package/lib/Clear.js +2 -2
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +28 -28
  25. package/lib/Code.d.ts +28 -28
  26. package/lib/Code.js +2 -2
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +28 -28
  29. package/lib/CodeBlock.d.ts +28 -28
  30. package/lib/CodeBlock.js +3 -3
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +28 -28
  33. package/lib/CodeView.d.ts +28 -28
  34. package/lib/CodeView.js +2 -2
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +28 -28
  37. package/lib/Color.d.ts +28 -28
  38. package/lib/Color.js +3 -3
  39. package/lib/Document.cjs +1 -1
  40. package/lib/Document.d.cts +28 -28
  41. package/lib/Document.d.ts +28 -28
  42. package/lib/Document.js +1 -1
  43. package/lib/{Drawer-D7O4q7Un.cjs → Drawer-BrHHs2E9.cjs} +1 -1
  44. package/lib/{Drawer-B5bTsUf8.js → Drawer-CVuwyG50.js} +4 -4
  45. package/lib/Drawer.cjs +1 -1
  46. package/lib/Drawer.d.cts +28 -28
  47. package/lib/Drawer.d.ts +28 -28
  48. package/lib/Drawer.js +4 -4
  49. package/lib/Emoji.cjs +1 -1
  50. package/lib/Emoji.d.cts +28 -28
  51. package/lib/Emoji.d.ts +28 -28
  52. package/lib/Emoji.js +5 -5
  53. package/lib/Excalidraw-Be_GDV4Q.cjs +1 -0
  54. package/lib/Excalidraw-frMX4K62.js +289 -0
  55. package/lib/Excalidraw.cjs +1 -1
  56. package/lib/Excalidraw.d.cts +28 -28
  57. package/lib/Excalidraw.d.ts +28 -28
  58. package/lib/Excalidraw.js +3 -3
  59. package/lib/ExportPdf.cjs +1 -1
  60. package/lib/ExportPdf.d.cts +28 -28
  61. package/lib/ExportPdf.d.ts +28 -28
  62. package/lib/ExportPdf.js +2 -2
  63. package/lib/ExportWord.cjs +1 -1
  64. package/lib/ExportWord.d.cts +28 -28
  65. package/lib/ExportWord.d.ts +28 -28
  66. package/lib/ExportWord.js +2 -2
  67. package/lib/FontFamily.cjs +1 -1
  68. package/lib/FontFamily.d.cts +28 -28
  69. package/lib/FontFamily.d.ts +28 -28
  70. package/lib/FontFamily.js +5 -5
  71. package/lib/FontSize.cjs +1 -1
  72. package/lib/FontSize.d.cts +28 -28
  73. package/lib/FontSize.d.ts +28 -28
  74. package/lib/FontSize.js +4 -4
  75. package/lib/FormatPainter.cjs +1 -1
  76. package/lib/FormatPainter.d.cts +28 -28
  77. package/lib/FormatPainter.d.ts +28 -28
  78. package/lib/FormatPainter.js +2 -2
  79. package/lib/Heading.cjs +1 -1
  80. package/lib/Heading.d.cts +28 -28
  81. package/lib/Heading.d.ts +28 -28
  82. package/lib/Heading.js +3 -3
  83. package/lib/Highlight.cjs +1 -1
  84. package/lib/Highlight.d.cts +28 -28
  85. package/lib/Highlight.d.ts +28 -28
  86. package/lib/Highlight.js +2 -2
  87. package/lib/History.cjs +1 -1
  88. package/lib/History.d.cts +28 -28
  89. package/lib/History.d.ts +28 -28
  90. package/lib/History.js +2 -2
  91. package/lib/HorizontalRule.cjs +1 -1
  92. package/lib/HorizontalRule.d.cts +28 -28
  93. package/lib/HorizontalRule.d.ts +28 -28
  94. package/lib/HorizontalRule.js +2 -2
  95. package/lib/Iframe.cjs +1 -1
  96. package/lib/Iframe.d.cts +28 -28
  97. package/lib/Iframe.d.ts +28 -28
  98. package/lib/Iframe.js +3 -3
  99. package/lib/Image.cjs +1 -1
  100. package/lib/Image.d.cts +29 -28
  101. package/lib/Image.d.ts +29 -28
  102. package/lib/Image.js +3 -3
  103. package/lib/ImageGif.cjs +1 -1
  104. package/lib/ImageGif.d.cts +28 -28
  105. package/lib/ImageGif.d.ts +28 -28
  106. package/lib/ImageGif.js +3 -3
  107. package/lib/ImportWord.cjs +74 -74
  108. package/lib/ImportWord.d.cts +28 -28
  109. package/lib/ImportWord.d.ts +28 -28
  110. package/lib/ImportWord.js +5015 -4998
  111. package/lib/Indent.cjs +1 -1
  112. package/lib/Indent.d.cts +28 -28
  113. package/lib/Indent.d.ts +28 -28
  114. package/lib/Indent.js +2 -2
  115. package/lib/Italic.cjs +1 -1
  116. package/lib/Italic.d.cts +28 -28
  117. package/lib/Italic.d.ts +28 -28
  118. package/lib/Italic.js +2 -2
  119. package/lib/Katex.cjs +1 -1
  120. package/lib/Katex.d.cts +28 -28
  121. package/lib/Katex.d.ts +28 -28
  122. package/lib/Katex.js +5 -5
  123. package/lib/LineHeight.cjs +1 -1
  124. package/lib/LineHeight.d.cts +28 -28
  125. package/lib/LineHeight.d.ts +28 -28
  126. package/lib/LineHeight.js +3 -3
  127. package/lib/Link.cjs +1 -1
  128. package/lib/Link.d.cts +28 -28
  129. package/lib/Link.d.ts +28 -28
  130. package/lib/Link.js +2 -2
  131. package/lib/ListItem.cjs +1 -1
  132. package/lib/ListItem.d.cts +28 -28
  133. package/lib/ListItem.d.ts +28 -28
  134. package/lib/ListItem.js +1 -1
  135. package/lib/Mention.cjs +1 -1
  136. package/lib/Mention.d.cts +28 -28
  137. package/lib/Mention.d.ts +28 -28
  138. package/lib/Mention.js +123 -91
  139. package/lib/Mermaid.cjs +1 -1
  140. package/lib/Mermaid.d.cts +28 -28
  141. package/lib/Mermaid.d.ts +28 -28
  142. package/lib/Mermaid.js +5 -5
  143. package/lib/MoreMark.cjs +1 -1
  144. package/lib/MoreMark.d.cts +28 -28
  145. package/lib/MoreMark.d.ts +28 -28
  146. package/lib/MoreMark.js +3 -3
  147. package/lib/MultiColumn.cjs +1 -1
  148. package/lib/MultiColumn.d.cts +28 -28
  149. package/lib/MultiColumn.d.ts +28 -28
  150. package/lib/MultiColumn.js +2 -2
  151. package/lib/OrderedList.cjs +1 -1
  152. package/lib/OrderedList.d.cts +28 -28
  153. package/lib/OrderedList.d.ts +28 -28
  154. package/lib/OrderedList.js +2 -2
  155. package/lib/RichTextEditor-CAxwVWUE.cjs +137 -0
  156. package/lib/{RichTextEditor-DWN9FEob.js → RichTextEditor-DjTnd5Uu.js} +2336 -2328
  157. package/lib/SearchAndReplace.cjs +1 -1
  158. package/lib/SearchAndReplace.d.cts +28 -28
  159. package/lib/SearchAndReplace.d.ts +28 -28
  160. package/lib/SearchAndReplace.js +3 -3
  161. package/lib/Selection.cjs +1 -1
  162. package/lib/Selection.d.cts +28 -28
  163. package/lib/Selection.d.ts +28 -28
  164. package/lib/Selection.js +1 -1
  165. package/lib/SlashCommand.cjs +1 -1
  166. package/lib/SlashCommand.d.cts +28 -28
  167. package/lib/SlashCommand.d.ts +28 -28
  168. package/lib/SlashCommand.js +5 -5
  169. package/lib/Strike.cjs +1 -1
  170. package/lib/Strike.d.cts +28 -28
  171. package/lib/Strike.d.ts +28 -28
  172. package/lib/Strike.js +2 -2
  173. package/lib/SubAndSuperScript.cjs +1 -1
  174. package/lib/SubAndSuperScript.d.cts +28 -28
  175. package/lib/SubAndSuperScript.d.ts +28 -28
  176. package/lib/SubAndSuperScript.js +3 -3
  177. package/lib/Table.cjs +1 -1
  178. package/lib/Table.d.cts +28 -28
  179. package/lib/Table.d.ts +28 -28
  180. package/lib/Table.js +3 -3
  181. package/lib/TableOfContent.cjs +1 -1
  182. package/lib/TableOfContent.d.cts +28 -28
  183. package/lib/TableOfContent.d.ts +28 -28
  184. package/lib/TableOfContent.js +4 -4
  185. package/lib/TaskList.cjs +1 -1
  186. package/lib/TaskList.d.cts +28 -28
  187. package/lib/TaskList.d.ts +28 -28
  188. package/lib/TaskList.js +37 -33
  189. package/lib/TextAlign.cjs +1 -1
  190. package/lib/TextAlign.d.cts +28 -28
  191. package/lib/TextAlign.d.ts +28 -28
  192. package/lib/TextAlign.js +2 -2
  193. package/lib/TextBubble.cjs +1 -1
  194. package/lib/TextBubble.d.cts +28 -28
  195. package/lib/TextBubble.d.ts +28 -28
  196. package/lib/TextBubble.js +3 -3
  197. package/lib/TextDirection.cjs +1 -1
  198. package/lib/TextDirection.d.cts +28 -28
  199. package/lib/TextDirection.d.ts +28 -28
  200. package/lib/TextDirection.js +2 -2
  201. package/lib/TextUnderline.cjs +1 -1
  202. package/lib/TextUnderline.d.cts +28 -28
  203. package/lib/TextUnderline.d.ts +28 -28
  204. package/lib/TextUnderline.js +2 -2
  205. package/lib/TrailingNode.cjs +1 -1
  206. package/lib/TrailingNode.d.cts +28 -28
  207. package/lib/TrailingNode.d.ts +28 -28
  208. package/lib/TrailingNode.js +1 -1
  209. package/lib/{Twitter-COZu8DI2.cjs → Twitter-V0OzBT_E.cjs} +1 -1
  210. package/lib/{Twitter-J0XtGXRC.js → Twitter-dRxbZOad.js} +4 -4
  211. package/lib/Twitter.cjs +1 -1
  212. package/lib/Twitter.d.cts +28 -28
  213. package/lib/Twitter.d.ts +28 -28
  214. package/lib/Twitter.js +3 -3
  215. package/lib/Video.cjs +1 -1
  216. package/lib/Video.d.cts +28 -28
  217. package/lib/Video.d.ts +28 -28
  218. package/lib/Video.js +3 -3
  219. package/lib/bubble-extra.cjs +2 -2
  220. package/lib/bubble-extra.d.cts +28 -28
  221. package/lib/bubble-extra.d.ts +28 -28
  222. package/lib/bubble-extra.js +26 -26
  223. package/lib/{dom-dataset-Cuy-pIfj.cjs → dom-dataset-Byuf1YmW.cjs} +5 -5
  224. package/lib/{dom-dataset-CHDbKz5J.js → dom-dataset-Di3tIRrR.js} +94 -83
  225. package/lib/index-BI-IcZcN.cjs +1 -0
  226. package/lib/{index-CSvnpArE.cjs → index-ByRfqzMr.cjs} +2 -2
  227. package/lib/index-C19MB4Al.cjs +1 -0
  228. package/lib/{index-DIPntess.js → index-C1fzuXpN.js} +1 -1
  229. package/lib/index-CbQQFj2T.js +133 -0
  230. package/lib/{index-BWx1Mchx.js → index-DI9T3iLd.js} +243 -243
  231. package/lib/{index-CrxasX7b.cjs → index-DclQSrIx.cjs} +1 -1
  232. package/lib/{index-DEFQHExY.js → index-LUL9mqY4.js} +1 -1
  233. package/lib/{index-zcKfSGd5.js → index-Tj3Ci7xM.js} +13 -8
  234. package/lib/{index-h9_SDuwc.cjs → index-Z4b9rzn-.cjs} +1 -1
  235. package/lib/index.cjs +1 -1
  236. package/lib/index.d.cts +28 -28
  237. package/lib/index.d.ts +28 -28
  238. package/lib/index.js +6 -6
  239. package/lib/locale-bundle.cjs +1 -1
  240. package/lib/locale-bundle.d.cts +33 -28
  241. package/lib/locale-bundle.d.ts +33 -28
  242. package/lib/locale-bundle.js +1 -1
  243. package/lib/{textarea-Bm0GTcEU.js → textarea-6c8drwXJ.js} +1 -1
  244. package/lib/{textarea-C_xhu0vT.cjs → textarea-BsJTSgT-.cjs} +1 -1
  245. package/package.json +67 -67
  246. package/lib/Excalidraw-CzAhPJ3k.cjs +0 -1
  247. package/lib/Excalidraw-D1EJKRER.js +0 -282
  248. package/lib/RichTextEditor-jtVXJcE2.cjs +0 -141
  249. package/lib/index-Cyh1yoFk.cjs +0 -1
  250. package/lib/index-jEB3jXoa.cjs +0 -1
  251. package/lib/index-oQutU45z.js +0 -129
@@ -1,4 +1,4 @@
1
- import { a as e, b as l, l as o, e as _, c, d as h } from "./index-zcKfSGd5.js";
1
+ import { a as e, b as l, l as o, e as _, c, d as h } from "./index-Tj3Ci7xM.js";
2
2
  export {
3
3
  e as en,
4
4
  l as hu_HU,
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import { d as o } from "./RichTextEditor-DWN9FEob.js";
3
+ import { d as o } from "./RichTextEditor-DjTnd5Uu.js";
4
4
  const x = c.forwardRef(
5
5
  ({ className: t, ...e }, r) => /* @__PURE__ */ i(
6
6
  "textarea",
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-jtVXJcE2.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=s(o),c=u.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),ref:t,...r}));c.displayName="Textarea";exports.Textarea=c;
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-CAxwVWUE.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=s(o),c=u.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),ref:t,...r}));c.displayName="Textarea";exports.Textarea=c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.3.18",
4
+ "version": "0.3.21",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",
@@ -791,62 +791,62 @@
791
791
  },
792
792
  "dependencies": {
793
793
  "@excalidraw/excalidraw": "^0.18.0",
794
- "@radix-ui/react-checkbox": "^1.3.2",
795
- "@radix-ui/react-dialog": "^1.1.14",
796
- "@radix-ui/react-dropdown-menu": "^2.1.15",
794
+ "@radix-ui/react-checkbox": "^1.3.3",
795
+ "@radix-ui/react-dialog": "^1.1.15",
796
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
797
797
  "@radix-ui/react-icons": "^1.3.2",
798
798
  "@radix-ui/react-label": "^2.1.7",
799
- "@radix-ui/react-popover": "^1.1.14",
800
- "@radix-ui/react-select": "^2.2.5",
799
+ "@radix-ui/react-popover": "^1.1.15",
800
+ "@radix-ui/react-select": "^2.2.6",
801
801
  "@radix-ui/react-separator": "^1.1.7",
802
802
  "@radix-ui/react-slot": "^1.2.3",
803
- "@radix-ui/react-switch": "^1.2.5",
804
- "@radix-ui/react-tabs": "^1.1.12",
805
- "@radix-ui/react-toast": "^1.2.14",
806
- "@radix-ui/react-toggle": "^1.1.9",
807
- "@radix-ui/react-tooltip": "^1.2.7",
808
- "@tiptap/core": "^2.22.3",
809
- "@tiptap/extension-blockquote": "^2.22.3",
810
- "@tiptap/extension-bold": "^2.22.3",
811
- "@tiptap/extension-bubble-menu": "^2.22.3",
812
- "@tiptap/extension-bullet-list": "^2.22.3",
813
- "@tiptap/extension-character-count": "^2.22.3",
814
- "@tiptap/extension-code": "^2.22.3",
815
- "@tiptap/extension-color": "^2.22.3",
816
- "@tiptap/extension-document": "^2.22.3",
817
- "@tiptap/extension-dropcursor": "^2.22.3",
818
- "@tiptap/extension-focus": "^2.22.3",
819
- "@tiptap/extension-font-family": "^2.22.3",
820
- "@tiptap/extension-gapcursor": "^2.22.3",
821
- "@tiptap/extension-hard-break": "^2.22.3",
822
- "@tiptap/extension-heading": "^2.22.3",
823
- "@tiptap/extension-highlight": "^2.22.3",
824
- "@tiptap/extension-history": "^2.22.3",
825
- "@tiptap/extension-horizontal-rule": "^2.22.3",
826
- "@tiptap/extension-image": "^2.22.3",
827
- "@tiptap/extension-italic": "^2.22.3",
828
- "@tiptap/extension-link": "^2.22.3",
829
- "@tiptap/extension-list-item": "^2.22.3",
830
- "@tiptap/extension-mention": "^2.22.3",
831
- "@tiptap/extension-ordered-list": "^2.22.3",
832
- "@tiptap/extension-paragraph": "^2.22.3",
833
- "@tiptap/extension-placeholder": "^2.22.3",
834
- "@tiptap/extension-strike": "^2.22.3",
835
- "@tiptap/extension-subscript": "^2.22.3",
836
- "@tiptap/extension-superscript": "^2.22.3",
837
- "@tiptap/extension-table": "^2.22.3",
838
- "@tiptap/extension-table-cell": "^2.22.3",
839
- "@tiptap/extension-table-header": "^2.22.3",
840
- "@tiptap/extension-table-row": "^2.22.3",
841
- "@tiptap/extension-task-item": "^2.22.3",
842
- "@tiptap/extension-task-list": "^2.22.3",
843
- "@tiptap/extension-text": "^2.22.3",
844
- "@tiptap/extension-text-align": "^2.22.3",
845
- "@tiptap/extension-text-style": "^2.22.3",
846
- "@tiptap/extension-underline": "^2.22.3",
847
- "@tiptap/pm": "^2.22.3",
848
- "@tiptap/react": "^2.22.3",
849
- "@tiptap/suggestion": "^2.22.3",
803
+ "@radix-ui/react-switch": "^1.2.6",
804
+ "@radix-ui/react-tabs": "^1.1.13",
805
+ "@radix-ui/react-toast": "^1.2.15",
806
+ "@radix-ui/react-toggle": "^1.1.10",
807
+ "@radix-ui/react-tooltip": "^1.2.8",
808
+ "@tiptap/core": "^2.26.1",
809
+ "@tiptap/extension-blockquote": "^2.26.1",
810
+ "@tiptap/extension-bold": "^2.26.1",
811
+ "@tiptap/extension-bubble-menu": "^2.26.1",
812
+ "@tiptap/extension-bullet-list": "^2.26.1",
813
+ "@tiptap/extension-character-count": "^2.26.1",
814
+ "@tiptap/extension-code": "^2.26.1",
815
+ "@tiptap/extension-color": "^2.26.1",
816
+ "@tiptap/extension-document": "^2.26.1",
817
+ "@tiptap/extension-dropcursor": "^2.26.1",
818
+ "@tiptap/extension-focus": "^2.26.1",
819
+ "@tiptap/extension-font-family": "^2.26.1",
820
+ "@tiptap/extension-gapcursor": "^2.26.1",
821
+ "@tiptap/extension-hard-break": "^2.26.1",
822
+ "@tiptap/extension-heading": "^2.26.1",
823
+ "@tiptap/extension-highlight": "^2.26.1",
824
+ "@tiptap/extension-history": "^2.26.1",
825
+ "@tiptap/extension-horizontal-rule": "^2.26.1",
826
+ "@tiptap/extension-image": "^2.26.1",
827
+ "@tiptap/extension-italic": "^2.26.1",
828
+ "@tiptap/extension-link": "^2.26.1",
829
+ "@tiptap/extension-list-item": "^2.26.1",
830
+ "@tiptap/extension-mention": "^2.26.1",
831
+ "@tiptap/extension-ordered-list": "^2.26.1",
832
+ "@tiptap/extension-paragraph": "^2.26.1",
833
+ "@tiptap/extension-placeholder": "^2.26.1",
834
+ "@tiptap/extension-strike": "^2.26.1",
835
+ "@tiptap/extension-subscript": "^2.26.1",
836
+ "@tiptap/extension-superscript": "^2.26.1",
837
+ "@tiptap/extension-table": "^2.26.1",
838
+ "@tiptap/extension-table-cell": "^2.26.1",
839
+ "@tiptap/extension-table-header": "^2.26.1",
840
+ "@tiptap/extension-table-row": "^2.26.1",
841
+ "@tiptap/extension-task-item": "^2.26.1",
842
+ "@tiptap/extension-task-list": "^2.26.1",
843
+ "@tiptap/extension-text": "^2.26.1",
844
+ "@tiptap/extension-text-align": "^2.26.1",
845
+ "@tiptap/extension-text-style": "^2.26.1",
846
+ "@tiptap/extension-underline": "^2.26.1",
847
+ "@tiptap/pm": "^2.26.1",
848
+ "@tiptap/react": "^2.26.1",
849
+ "@tiptap/suggestion": "^2.26.1",
850
850
  "class-variance-authority": "^0.7.1",
851
851
  "clsx": "^2.1.1",
852
852
  "deep-equal": "^2.2.3",
@@ -856,7 +856,7 @@
856
856
  "katex": "^0.16.22",
857
857
  "lodash-es": "^4.17.21",
858
858
  "lucide-react": "^0.427.0",
859
- "mermaid": "^11.7.0",
859
+ "mermaid": "^11.11.0",
860
860
  "prism-code-editor-lightweight": "^0.0.3",
861
861
  "prosemirror-docx": "^0.2.1",
862
862
  "re-resizable": "^6.11.2",
@@ -873,34 +873,34 @@
873
873
  "react-dom": ">=17.0.2"
874
874
  },
875
875
  "devDependencies": {
876
- "@hunghg255/eslint-config": "^0.1.1",
876
+ "@hunghg255/eslint-config": "^1.0.1",
877
877
  "@types/deep-equal": "^1.0.4",
878
878
  "@types/katex": "^0.16.7",
879
879
  "@types/lodash-es": "^4.17.12",
880
- "@types/node": "^22.15.32",
881
- "@types/react": "^19.1.8",
882
- "@types/react-dom": "^19.1.6",
883
- "@vitejs/plugin-react": "^4.6.0",
880
+ "@types/node": "^22.18.1",
881
+ "@types/react": "^19.1.12",
882
+ "@types/react-dom": "^19.1.9",
883
+ "@vitejs/plugin-react": "^4.7.0",
884
884
  "autoprefixer": "^10.4.21",
885
- "bumpp": "^9.11.1",
885
+ "bumpp": "^10.2.3",
886
886
  "contributorkit": "^0.0.4",
887
- "eslint": "^9.29.0",
888
- "eslint-plugin-tailwindcss": "^3.18.0",
887
+ "eslint": "^9.35.0",
888
+ "eslint-plugin-tailwindcss": "^3.18.2",
889
889
  "esno": "^4.8.0",
890
890
  "execa": "^9.6.0",
891
891
  "git-scm-hooks": "^0.0.11",
892
892
  "globby": "^14.1.0",
893
- "mammoth": "^1.9.1",
893
+ "mammoth": "^1.10.0",
894
894
  "md5": "^2.3.0",
895
895
  "postcss": "^8.5.6",
896
896
  "postcss-replace": "^2.0.1",
897
897
  "postcss-scss": "^4.0.9",
898
- "react": "^19.1.0",
899
- "react-dom": "^19.1.0",
900
- "sass": "^1.89.2",
898
+ "react": "^19.1.1",
899
+ "react-dom": "^19.1.1",
900
+ "sass": "^1.92.1",
901
901
  "tailwind-merge": "^2.6.0",
902
902
  "tailwindcss": "^3.4.17",
903
- "typescript": "^5.8.3",
903
+ "typescript": "^5.9.2",
904
904
  "verify-commit-msg": "^0.0.14",
905
905
  "vite": "^6.3.5",
906
906
  "vite-plugin-dts": "^4.5.4"
@@ -1 +0,0 @@
1
- "use strict";var W=Object.create;var y=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var B=(e,t,s,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Z(t))!z.call(e,i)&&i!==s&&y(e,i,{get:()=>t[i],enumerable:!(l=H(t,i))||l.enumerable});return e};var M=(e,t,s)=>(s=e!=null?W(q(e)):{},B(t||!e||!e.__esModule?y(s,"default",{value:e,enumerable:!0}):s,e));const _=require("./index-CSvnpArE.cjs"),p=require("./dom-dataset-Cuy-pIfj.cjs"),n=require("react/jsx-runtime"),a=require("react"),d=require("./RichTextEditor-jtVXJcE2.cjs"),P=require("./index-jEB3jXoa.cjs"),V=require("re-resizable");let L;function I(){try{return L||(L=P.mitt()),L}catch{throw new Error("Error EventEmitter")}}const D="OPEN_EXCALIDRAW_SETTING_MODAL";function $(e,t){I().on(e,t)}function U(e,t){I().off(e,t)}function X(e){I().emit(D,e)}const F=({editor:e})=>{const[t,s]=a.useState(null),[l,i]=a.useState({}),[h,f]=a.useState({elements:[],appState:{isLoading:!1},files:null}),[m,o]=a.useState(!1),[w,x]=a.useState(!0),[E,g]=a.useState(null),S=a.useCallback(c=>{c&&import("@excalidraw/excalidraw").then(r=>{s(r.Excalidraw)}).catch(g).finally(()=>x(!1))},[x]),j=a.useCallback(c=>{setTimeout(()=>{c.refresh()})},[]),T=a.useCallback((c,r,u)=>{i({elements:c,appState:{isLoading:!1},files:u})},[]),v=a.useCallback(()=>{if(!t){o(!1);return}e.chain().focus().setExcalidraw({data:l}).run(),o(!1)},[t,e,l,o]);return a.useEffect(()=>{const c=r=>{(r==null?void 0:r.editor)===e&&(o(!0),r&&f(r.data))};return $(D,c),()=>{U(D,c)}},[e,o]),a.useEffect(()=>{!w&&t&&m&&setTimeout(()=>{window.dispatchEvent(new Event("resize"))},400)},[w,t,m]),n.jsxs(d.Dialog,{onOpenChange:o,open:m,children:[n.jsx(d.DialogTrigger,{asChild:!0,children:n.jsx(d.ActionButton,{action:()=>o(!0),icon:"Excalidraw",tooltip:"Excalidraw"})}),n.jsxs(d.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[n.jsx(d.DialogTitle,{children:"Excalidraw"}),n.jsxs("div",{style:{height:"100%",borderWidth:1},children:[w&&n.jsx("p",{children:"Loading..."}),E&&n.jsx("p",{children:E&&E.message||"Error"}),n.jsx("div",{ref:S,style:{width:"100%",height:600},children:!w&&!E&&t?n.jsx(t,{initialData:h,langCode:"en",onChange:T,ref:j}):null})]}),n.jsx(d.DialogFooter,{children:n.jsx(d.Button,{onClick:v,type:"button",children:"Save changes"})})]})]})},G="_wrap_15k3c_1",Y="_renderWrap_15k3c_7",J="_handlerWrap_15k3c_30",A={wrap:G,renderWrap:Y,handlerWrap:J},K=10,Q=200,C=15,O={width:"100%",height:"100%",maxWidth:"100%"};function ee({editor:e,node:t,updateAttributes:s}){const l=a.useRef(null),i=e.isActive(k.name),{data:h,width:f,height:m}=t.attrs,[o,w]=a.useState(null),[x,E]=a.useState(!0),[g,S]=a.useState(null),[j,T]=a.useState(100),v=a.useCallback(r=>()=>{T(u=>d.clamp(r==="minus"?u-C:u+C,K,Q))},[]);a.useEffect(()=>{let r=!1;return import("@excalidraw/excalidraw").then(u=>{r||(l.current=u.exportToSvg)}).catch(u=>!r&&S(u)).finally(()=>!r&&E(!1)),()=>{r=!0}},[h]),a.useEffect(()=>{let r=!1;return(async()=>{if(!l.current||r||x||g||!h)return;const b=await l.current(h);r||(b.setAttribute("width","100%"),b.setAttribute("height","100%"),b.setAttribute("display","block"),w(b))})(),()=>{r=!0}},[h,x,g]);const c=r=>{s({width:r.width,height:r.height})};return n.jsx(p.NodeViewWrapper,{className:p.clsx(A.wrap,i&&A.isActive),children:n.jsx(V.Resizable,{size:{width:Number.parseInt(f),height:Number.parseInt(m)},onResizeStop:(r,u,b,N)=>{c({width:Number.parseInt(f)+N.width,height:Number.parseInt(m)+N.height})},children:n.jsxs("div",{className:p.clsx(A.renderWrap,"render-wrapper"),style:{...O,overflow:"hidden"},children:[g&&n.jsx("div",{style:O,children:n.jsx("p",{children:g.message||g})}),x&&n.jsx("p",{children:"Loading..."}),!x&&!g&&o&&n.jsx("div",{dangerouslySetInnerHTML:{__html:(o==null?void 0:o.outerHTML)??""},style:{height:"100%",maxHeight:"100%",padding:24,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",transform:`scale(${j/100})`,transition:"all ease-in-out .3s"}}),n.jsxs("div",{className:A.handlerWrap,children:[n.jsx(d.ActionButton,{action:v("minus"),icon:"ZoomOut",tooltip:"Zoom Out"}),n.jsx(d.ActionButton,{action:v("plus"),icon:"ZoomIn",tooltip:"Zoom In"})]})]})})})}const R={elements:[]},k=_.Node.create({name:"excalidraw",group:"block",selectable:!0,atom:!0,draggable:!0,inline:!1,addAttributes(){return{defaultShowPicker:{default:!1},createUser:{default:null},width:{default:"100%",parseHTML:p.getDatasetAttribute("width")},height:{default:240,parseHTML:p.getDatasetAttribute("height")},data:{default:R,parseHTML:p.getDatasetAttribute("data",!0)}}},addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),HTMLAttributes:{class:"excalidraw"},button:({editor:t})=>({component:F,componentProps:{editor:t}})}},parseHTML(){return[{tag:"div[class=excalidraw]"}]},renderHTML({HTMLAttributes:e,node:t}){return["div",_.mergeAttributes(this.options.HTMLAttributes,e,p.nodeAttrsToDataset(t))]},addCommands(){return{setExcalidraw:e=>({tr:t,commands:s,chain:l})=>{var i,h,f;return e=e||{},e.data=e.data||R,((f=(h=(i=t.selection)==null?void 0:i.node)==null?void 0:h.type)==null?void 0:f.name)==this.name?s.updateAttributes(this.name,e):l().insertContent({type:this.name,attrs:e}).run()}}},addNodeView(){return p.ReactNodeViewRenderer(ee)},addInputRules(){return[_.nodeInputRule({find:/^\$excalidraw\$$/,type:this.type,getAttributes:()=>({width:"100%"})})]}});exports.Excalidraw=k;exports.triggerOpenExcalidrawSettingModal=X;
@@ -1,282 +0,0 @@
1
- import { N as Z, n as k, m as z } from "./index-BWx1Mchx.js";
2
- import { N as j, c as C, R as P, n as V, g as y } from "./dom-dataset-CHDbKz5J.js";
3
- import { jsxs as x, jsx as n } from "react/jsx-runtime";
4
- import { useState as o, useCallback as v, useEffect as T, useRef as B } from "react";
5
- import { w as U, x as $, A as M, y as F, z as X, F as G, B as K, K as Y } from "./RichTextEditor-DWN9FEob.js";
6
- import { n as q } from "./index-zcKfSGd5.js";
7
- import { Resizable as J } from "re-resizable";
8
- let I;
9
- function D() {
10
- try {
11
- return I || (I = q()), I;
12
- } catch {
13
- throw new Error("Error EventEmitter");
14
- }
15
- }
16
- const S = "OPEN_EXCALIDRAW_SETTING_MODAL";
17
- function Q(e, r) {
18
- D().on(e, r);
19
- }
20
- function ee(e, r) {
21
- D().off(e, r);
22
- }
23
- function fe(e) {
24
- D().emit(S, e);
25
- }
26
- const te = ({ editor: e }) => {
27
- const [r, u] = o(null), [c, m] = o({}), [l, h] = o({ elements: [], appState: { isLoading: !1 }, files: null }), [g, a] = o(!1), [f, p] = o(!0), [w, d] = o(null), _ = v(
28
- (i) => {
29
- i && import("@excalidraw/excalidraw").then((t) => {
30
- u(t.Excalidraw);
31
- }).catch(d).finally(() => p(!1));
32
- },
33
- [p]
34
- ), N = v((i) => {
35
- setTimeout(() => {
36
- i.refresh();
37
- });
38
- }, []), L = v((i, t, s) => {
39
- m({
40
- elements: i,
41
- appState: { isLoading: !1 },
42
- files: s
43
- });
44
- }, []), b = v(() => {
45
- if (!r) {
46
- a(!1);
47
- return;
48
- }
49
- e.chain().focus().setExcalidraw({ data: c }).run(), a(!1);
50
- }, [r, e, c, a]);
51
- return T(() => {
52
- const i = (t) => {
53
- (t == null ? void 0 : t.editor) === e && (a(!0), t && h(t.data));
54
- };
55
- return Q(S, i), () => {
56
- ee(S, i);
57
- };
58
- }, [e, a]), T(() => {
59
- !f && r && g && setTimeout(() => {
60
- window.dispatchEvent(new Event("resize"));
61
- }, 400);
62
- }, [f, r, g]), /* @__PURE__ */ x(
63
- U,
64
- {
65
- onOpenChange: a,
66
- open: g,
67
- children: [
68
- /* @__PURE__ */ n($, { asChild: !0, children: /* @__PURE__ */ n(
69
- M,
70
- {
71
- action: () => a(!0),
72
- icon: "Excalidraw",
73
- tooltip: "Excalidraw"
74
- }
75
- ) }),
76
- /* @__PURE__ */ x(F, { className: "richtext-z-[99999] !richtext-max-w-[1300px]", children: [
77
- /* @__PURE__ */ n(X, { children: "Excalidraw" }),
78
- /* @__PURE__ */ x("div", { style: { height: "100%", borderWidth: 1 }, children: [
79
- f && /* @__PURE__ */ n("p", { children: "Loading..." }),
80
- w && /* @__PURE__ */ n("p", { children: w && w.message || "Error" }),
81
- /* @__PURE__ */ n(
82
- "div",
83
- {
84
- ref: _,
85
- style: { width: "100%", height: 600 },
86
- children: !f && !w && r ? /* @__PURE__ */ n(
87
- r,
88
- {
89
- initialData: l,
90
- langCode: "en",
91
- onChange: L,
92
- ref: N
93
- }
94
- ) : null
95
- }
96
- )
97
- ] }),
98
- /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(
99
- K,
100
- {
101
- onClick: b,
102
- type: "button",
103
- children: "Save changes"
104
- }
105
- ) })
106
- ] })
107
- ]
108
- }
109
- );
110
- }, re = "_wrap_15k3c_1", ne = "_renderWrap_15k3c_7", ae = "_handlerWrap_15k3c_30", A = {
111
- wrap: re,
112
- renderWrap: ne,
113
- handlerWrap: ae
114
- }, ie = 10, se = 200, R = 15, W = { width: "100%", height: "100%", maxWidth: "100%" };
115
- function oe({ editor: e, node: r, updateAttributes: u }) {
116
- const c = B(null), m = e.isActive(le.name), { data: l, width: h, height: g } = r.attrs, [a, f] = o(null), [p, w] = o(!0), [d, _] = o(null), [N, L] = o(100), b = v((t) => () => {
117
- L(
118
- (s) => Y(t === "minus" ? s - R : s + R, ie, se)
119
- );
120
- }, []);
121
- T(() => {
122
- let t = !1;
123
- return import("@excalidraw/excalidraw").then((s) => {
124
- t || (c.current = s.exportToSvg);
125
- }).catch((s) => !t && _(s)).finally(() => !t && w(!1)), () => {
126
- t = !0;
127
- };
128
- }, [l]), T(() => {
129
- let t = !1;
130
- return (async () => {
131
- if (!c.current || t || p || d || !l)
132
- return;
133
- const E = await c.current(l);
134
- t || (E.setAttribute("width", "100%"), E.setAttribute("height", "100%"), E.setAttribute("display", "block"), f(E));
135
- })(), () => {
136
- t = !0;
137
- };
138
- }, [l, p, d]);
139
- const i = (t) => {
140
- u({ width: t.width, height: t.height });
141
- };
142
- return /* @__PURE__ */ n(j, { className: C(A.wrap, m && A.isActive), children: /* @__PURE__ */ n(
143
- J,
144
- {
145
- size: { width: Number.parseInt(h), height: Number.parseInt(g) },
146
- onResizeStop: (t, s, E, O) => {
147
- i({
148
- width: Number.parseInt(h) + O.width,
149
- height: Number.parseInt(g) + O.height
150
- });
151
- },
152
- children: /* @__PURE__ */ x(
153
- "div",
154
- {
155
- className: C(A.renderWrap, "render-wrapper"),
156
- style: { ...W, overflow: "hidden" },
157
- children: [
158
- d && /* @__PURE__ */ n("div", { style: W, children: /* @__PURE__ */ n("p", { children: d.message || d }) }),
159
- p && /* @__PURE__ */ n("p", { children: "Loading..." }),
160
- !p && !d && a && /* @__PURE__ */ n(
161
- "div",
162
- {
163
- dangerouslySetInnerHTML: { __html: (a == null ? void 0 : a.outerHTML) ?? "" },
164
- style: {
165
- height: "100%",
166
- maxHeight: "100%",
167
- padding: 24,
168
- overflow: "hidden",
169
- display: "flex",
170
- justifyContent: "center",
171
- alignItems: "center",
172
- transform: `scale(${N / 100})`,
173
- transition: "all ease-in-out .3s"
174
- }
175
- }
176
- ),
177
- /* @__PURE__ */ x("div", { className: A.handlerWrap, children: [
178
- /* @__PURE__ */ n(
179
- M,
180
- {
181
- action: b("minus"),
182
- icon: "ZoomOut",
183
- tooltip: "Zoom Out"
184
- }
185
- ),
186
- /* @__PURE__ */ n(
187
- M,
188
- {
189
- action: b("plus"),
190
- icon: "ZoomIn",
191
- tooltip: "Zoom In"
192
- }
193
- )
194
- ] })
195
- ]
196
- }
197
- )
198
- }
199
- ) });
200
- }
201
- const H = { elements: [] }, le = /* @__PURE__ */ Z.create({
202
- name: "excalidraw",
203
- group: "block",
204
- selectable: !0,
205
- atom: !0,
206
- draggable: !0,
207
- inline: !1,
208
- addAttributes() {
209
- return {
210
- defaultShowPicker: {
211
- default: !1
212
- },
213
- createUser: {
214
- default: null
215
- },
216
- width: {
217
- default: "100%",
218
- parseHTML: y("width")
219
- },
220
- height: {
221
- default: 240,
222
- parseHTML: y("height")
223
- },
224
- data: {
225
- default: H,
226
- parseHTML: y("data", !0)
227
- }
228
- };
229
- },
230
- addOptions() {
231
- var e;
232
- return {
233
- ...(e = this.parent) == null ? void 0 : e.call(this),
234
- HTMLAttributes: {
235
- class: "excalidraw"
236
- },
237
- button: ({ editor: r }) => ({
238
- component: te,
239
- componentProps: {
240
- editor: r
241
- }
242
- })
243
- };
244
- },
245
- parseHTML() {
246
- return [
247
- {
248
- tag: "div[class=excalidraw]"
249
- }
250
- ];
251
- },
252
- renderHTML({ HTMLAttributes: e, node: r }) {
253
- return ["div", z(this.options.HTMLAttributes, e, V(r))];
254
- },
255
- addCommands() {
256
- return {
257
- setExcalidraw: (e) => ({ tr: r, commands: u, chain: c }) => {
258
- var m, l, h;
259
- return e = e || {}, e.data = e.data || H, ((h = (l = (m = r.selection) == null ? void 0 : m.node) == null ? void 0 : l.type) == null ? void 0 : h.name) == this.name ? u.updateAttributes(this.name, e) : c().insertContent({
260
- type: this.name,
261
- attrs: e
262
- }).run();
263
- }
264
- };
265
- },
266
- addNodeView() {
267
- return P(oe);
268
- },
269
- addInputRules() {
270
- return [
271
- k({
272
- find: /^\$excalidraw\$$/,
273
- type: this.type,
274
- getAttributes: () => ({ width: "100%" })
275
- })
276
- ];
277
- }
278
- });
279
- export {
280
- le as E,
281
- fe as t
282
- };