reactjs-tiptap-editor 0.3.16 → 0.3.18

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 (221) hide show
  1. package/lib/{ActionMenuButton-Dqp7UQ7o.cjs → ActionMenuButton-Bp3NtBKu.cjs} +1 -1
  2. package/lib/{ActionMenuButton-Blixh0sY.js → ActionMenuButton-CK00Dg3S.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +22 -22
  5. package/lib/Attachment.d.ts +22 -22
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +22 -22
  9. package/lib/Blockquote.d.ts +22 -22
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +22 -22
  13. package/lib/Bold.d.ts +22 -22
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +22 -22
  17. package/lib/BulletList.d.ts +22 -22
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +22 -22
  21. package/lib/Clear.d.ts +22 -22
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +22 -22
  25. package/lib/Code.d.ts +22 -22
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +22 -22
  29. package/lib/CodeBlock.d.ts +22 -22
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +22 -22
  33. package/lib/CodeView.d.ts +22 -22
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +22 -22
  37. package/lib/Color.d.ts +22 -22
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +22 -22
  40. package/lib/Document.d.ts +22 -22
  41. package/lib/{Drawer-XpuScyFL.js → Drawer-B5bTsUf8.js} +1 -1
  42. package/lib/{Drawer-DRmsdhKK.cjs → Drawer-D7O4q7Un.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +22 -22
  45. package/lib/Drawer.d.ts +22 -22
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +22 -22
  49. package/lib/Emoji.d.ts +22 -22
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-CPiaxnoj.cjs → Excalidraw-CzAhPJ3k.cjs} +1 -1
  52. package/lib/{Excalidraw-CK40GI6U.js → Excalidraw-D1EJKRER.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +22 -22
  55. package/lib/Excalidraw.d.ts +22 -22
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +22 -22
  59. package/lib/ExportPdf.d.ts +22 -22
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +22 -22
  63. package/lib/ExportWord.d.ts +22 -22
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +22 -22
  67. package/lib/FontFamily.d.ts +22 -22
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +22 -22
  71. package/lib/FontSize.d.ts +22 -22
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +22 -22
  75. package/lib/FormatPainter.d.ts +22 -22
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +22 -22
  79. package/lib/Heading.d.ts +22 -22
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +22 -22
  83. package/lib/Highlight.d.ts +22 -22
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +22 -22
  87. package/lib/History.d.ts +22 -22
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +22 -22
  91. package/lib/HorizontalRule.d.ts +22 -22
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +22 -22
  95. package/lib/Iframe.d.ts +22 -22
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +22 -22
  99. package/lib/Image.d.ts +22 -22
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +22 -22
  103. package/lib/ImageGif.d.ts +22 -22
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +22 -22
  107. package/lib/ImportWord.d.ts +22 -22
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +22 -22
  111. package/lib/Indent.d.ts +22 -22
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +22 -22
  115. package/lib/Italic.d.ts +22 -22
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +22 -22
  119. package/lib/Katex.d.ts +22 -22
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +22 -22
  123. package/lib/LineHeight.d.ts +22 -22
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +22 -22
  127. package/lib/Link.d.ts +22 -22
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +22 -22
  130. package/lib/ListItem.d.ts +22 -22
  131. package/lib/Mention.d.cts +22 -22
  132. package/lib/Mention.d.ts +22 -22
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +22 -22
  135. package/lib/Mermaid.d.ts +22 -22
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +22 -22
  139. package/lib/MoreMark.d.ts +22 -22
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +22 -22
  143. package/lib/MultiColumn.d.ts +22 -22
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +22 -22
  147. package/lib/OrderedList.d.ts +22 -22
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-BTv7R2Z0.js → RichTextEditor-DWN9FEob.js} +1402 -1356
  150. package/lib/{RichTextEditor-Bca-oI9I.cjs → RichTextEditor-jtVXJcE2.cjs} +7 -7
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +22 -22
  153. package/lib/SearchAndReplace.d.ts +22 -22
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +22 -22
  156. package/lib/Selection.d.ts +22 -22
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +22 -22
  159. package/lib/SlashCommand.d.ts +22 -22
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +22 -22
  163. package/lib/Strike.d.ts +22 -22
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +22 -22
  167. package/lib/SubAndSuperScript.d.ts +22 -22
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +22 -22
  171. package/lib/Table.d.ts +22 -22
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +22 -22
  175. package/lib/TableOfContent.d.ts +22 -22
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +22 -22
  179. package/lib/TaskList.d.ts +22 -22
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +22 -22
  183. package/lib/TextAlign.d.ts +22 -22
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +22 -22
  187. package/lib/TextBubble.d.ts +22 -22
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +22 -22
  191. package/lib/TextDirection.d.ts +22 -22
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +22 -22
  195. package/lib/TextUnderline.d.ts +22 -22
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +22 -22
  198. package/lib/TrailingNode.d.ts +22 -22
  199. package/lib/{Twitter-tp6dT1fs.cjs → Twitter-COZu8DI2.cjs} +1 -1
  200. package/lib/{Twitter-DZTS9Uc4.js → Twitter-J0XtGXRC.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +22 -22
  203. package/lib/Twitter.d.ts +22 -22
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +22 -22
  207. package/lib/Video.d.ts +22 -22
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +22 -22
  211. package/lib/bubble-extra.d.ts +22 -22
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +22 -22
  215. package/lib/index.d.ts +22 -22
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +22 -22
  218. package/lib/locale-bundle.d.ts +22 -22
  219. package/lib/{textarea-DKyqOqL2.js → textarea-Bm0GTcEU.js} +1 -1
  220. package/lib/{textarea-Yr93rFW5.cjs → textarea-C_xhu0vT.cjs} +1 -1
  221. package/package.json +1 -1
package/lib/ListItem.d.ts CHANGED
@@ -46,8 +46,11 @@ declare module '@tiptap/core' {
46
46
 
47
47
  declare module '@tiptap/core' {
48
48
  interface Commands<ReturnType> {
49
- excalidraw: {
50
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
49
+ emoji: {
50
+ setEmoji: (emoji: {
51
+ name: string;
52
+ emoji: string;
53
+ }) => ReturnType;
51
54
  };
52
55
  }
53
56
  }
@@ -55,11 +58,8 @@ declare module '@tiptap/core' {
55
58
 
56
59
  declare module '@tiptap/core' {
57
60
  interface Commands<ReturnType> {
58
- emoji: {
59
- setEmoji: (emoji: {
60
- name: string;
61
- emoji: string;
62
- }) => ReturnType;
61
+ excalidraw: {
62
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
63
63
  };
64
64
  }
65
65
  }
@@ -101,6 +101,21 @@ declare module '@tiptap/core' {
101
101
  }
102
102
 
103
103
 
104
+ declare module '@tiptap/core' {
105
+ interface Commands<ReturnType> {
106
+ iframe: {
107
+ /**
108
+ * Add an iframe
109
+ */
110
+ setIframe: (options: {
111
+ src: string;
112
+ service: string;
113
+ }) => ReturnType;
114
+ };
115
+ }
116
+ }
117
+
118
+
104
119
  declare module '@tiptap/core' {
105
120
  interface Commands<ReturnType> {
106
121
  imageUpload: {
@@ -121,21 +136,6 @@ declare module '@tiptap/core' {
121
136
  }
122
137
 
123
138
 
124
- declare module '@tiptap/core' {
125
- interface Commands<ReturnType> {
126
- iframe: {
127
- /**
128
- * Add an iframe
129
- */
130
- setIframe: (options: {
131
- src: string;
132
- service: string;
133
- }) => ReturnType;
134
- };
135
- }
136
- }
137
-
138
-
139
139
  declare module '@tiptap/core' {
140
140
  interface Commands<ReturnType> {
141
141
  imageGifUpload: {
package/lib/Mention.d.cts CHANGED
@@ -49,8 +49,11 @@ declare module '@tiptap/core' {
49
49
 
50
50
  declare module '@tiptap/core' {
51
51
  interface Commands<ReturnType> {
52
- excalidraw: {
53
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
52
+ emoji: {
53
+ setEmoji: (emoji: {
54
+ name: string;
55
+ emoji: string;
56
+ }) => ReturnType;
54
57
  };
55
58
  }
56
59
  }
@@ -58,11 +61,8 @@ declare module '@tiptap/core' {
58
61
 
59
62
  declare module '@tiptap/core' {
60
63
  interface Commands<ReturnType> {
61
- emoji: {
62
- setEmoji: (emoji: {
63
- name: string;
64
- emoji: string;
65
- }) => ReturnType;
64
+ excalidraw: {
65
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
66
66
  };
67
67
  }
68
68
  }
@@ -104,6 +104,21 @@ declare module '@tiptap/core' {
104
104
  }
105
105
 
106
106
 
107
+ declare module '@tiptap/core' {
108
+ interface Commands<ReturnType> {
109
+ iframe: {
110
+ /**
111
+ * Add an iframe
112
+ */
113
+ setIframe: (options: {
114
+ src: string;
115
+ service: string;
116
+ }) => ReturnType;
117
+ };
118
+ }
119
+ }
120
+
121
+
107
122
  declare module '@tiptap/core' {
108
123
  interface Commands<ReturnType> {
109
124
  imageUpload: {
@@ -124,21 +139,6 @@ declare module '@tiptap/core' {
124
139
  }
125
140
 
126
141
 
127
- declare module '@tiptap/core' {
128
- interface Commands<ReturnType> {
129
- iframe: {
130
- /**
131
- * Add an iframe
132
- */
133
- setIframe: (options: {
134
- src: string;
135
- service: string;
136
- }) => ReturnType;
137
- };
138
- }
139
- }
140
-
141
-
142
142
  declare module '@tiptap/core' {
143
143
  interface Commands<ReturnType> {
144
144
  imageGifUpload: {
package/lib/Mention.d.ts CHANGED
@@ -49,8 +49,11 @@ declare module '@tiptap/core' {
49
49
 
50
50
  declare module '@tiptap/core' {
51
51
  interface Commands<ReturnType> {
52
- excalidraw: {
53
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
52
+ emoji: {
53
+ setEmoji: (emoji: {
54
+ name: string;
55
+ emoji: string;
56
+ }) => ReturnType;
54
57
  };
55
58
  }
56
59
  }
@@ -58,11 +61,8 @@ declare module '@tiptap/core' {
58
61
 
59
62
  declare module '@tiptap/core' {
60
63
  interface Commands<ReturnType> {
61
- emoji: {
62
- setEmoji: (emoji: {
63
- name: string;
64
- emoji: string;
65
- }) => ReturnType;
64
+ excalidraw: {
65
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
66
66
  };
67
67
  }
68
68
  }
@@ -104,6 +104,21 @@ declare module '@tiptap/core' {
104
104
  }
105
105
 
106
106
 
107
+ declare module '@tiptap/core' {
108
+ interface Commands<ReturnType> {
109
+ iframe: {
110
+ /**
111
+ * Add an iframe
112
+ */
113
+ setIframe: (options: {
114
+ src: string;
115
+ service: string;
116
+ }) => ReturnType;
117
+ };
118
+ }
119
+ }
120
+
121
+
107
122
  declare module '@tiptap/core' {
108
123
  interface Commands<ReturnType> {
109
124
  imageUpload: {
@@ -124,21 +139,6 @@ declare module '@tiptap/core' {
124
139
  }
125
140
 
126
141
 
127
- declare module '@tiptap/core' {
128
- interface Commands<ReturnType> {
129
- iframe: {
130
- /**
131
- * Add an iframe
132
- */
133
- setIframe: (options: {
134
- src: string;
135
- service: string;
136
- }) => ReturnType;
137
- };
138
- }
139
- }
140
-
141
-
142
142
  declare module '@tiptap/core' {
143
143
  interface Commands<ReturnType> {
144
144
  imageGifUpload: {
package/lib/Mermaid.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var W=Object.create;var G=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var J=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of U(e))!Y.call(t,l)&&l!==r&&G(t,l,{get:()=>e[l],enumerable:!(a=X(e,l))||a.enumerable});return t};var K=(t,e,r)=>(r=t!=null?W(Z(t)):{},J(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index-CSvnpArE.cjs"),u=require("./RichTextEditor-Bca-oI9I.cjs"),F=require("./dom-dataset-Cuy-pIfj.cjs"),o=require("react/jsx-runtime"),s=require("react"),P=require("./shortId-Bfj8TyNr.cjs"),Q=require("./textarea-Yr93rFW5.cjs"),S=require("./index-jEB3jXoa.cjs"),$=`graph TB
1
+ "use strict";var W=Object.create;var G=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var J=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of U(e))!Y.call(t,l)&&l!==r&&G(t,l,{get:()=>e[l],enumerable:!(a=X(e,l))||a.enumerable});return t};var K=(t,e,r)=>(r=t!=null?W(Z(t)):{},J(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index-CSvnpArE.cjs"),u=require("./RichTextEditor-jtVXJcE2.cjs"),F=require("./dom-dataset-Cuy-pIfj.cjs"),o=require("react/jsx-runtime"),s=require("react"),P=require("./shortId-Bfj8TyNr.cjs"),Q=require("./textarea-C_xhu0vT.cjs"),S=require("./index-jEB3jXoa.cjs"),$=`graph TB
2
2
  a-->b`,ee=({editor:t,upload:e})=>{const[r,a]=s.useState($),[l,v]=s.useState(""),[T,y]=s.useState(!1),A=s.useRef(null),[d,h]=s.useState(null),E=s.useCallback(c=>{c&&import("mermaid").then(x=>{h(x.default)})},[]),_=async c=>{try{const{svg:x}=await d.render("mermaid-svg",c);v(x)}catch{v("")}},L=()=>{d.initialize({darkMode:!1,startOnLoad:!1,fontSize:12,theme:"base"}),_(r)};s.useEffect(()=>{d&&T&&L()},[d,T]),s.useEffect(()=>{d&&T&&_(r)},[d&&r]);const R=async()=>{if(r!==""){if(r){const c=A.current.querySelector("svg"),{width:x,height:j}=c.getBoundingClientRect(),I=`mermaid-${P.shortId()}.svg`;let M=P.i(c.outerHTML);if(e){console.log({src:M});const H=u.dataURLtoFile(M,I);M=await e(H)}t==null||t.chain().focus().setMermaid({type:"mermaid",src:M,alt:encodeURIComponent(r),width:x,height:j},!!r).run()}y(!1)}};return o.jsxs(u.Dialog,{onOpenChange:y,open:T,children:[o.jsx(u.DialogTrigger,{asChild:!0,children:o.jsx(u.ActionButton,{action:()=>y(!0),icon:"Mermaid",tooltip:"Mermaid"})}),o.jsxs(u.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[o.jsx(u.DialogTitle,{children:"Mermaid"}),o.jsx("div",{ref:E,style:{height:"100%",border:"1px solid hsl(var(--border))"},children:o.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[o.jsx(Q.Textarea,{autoFocus:!0,className:"richtext-flex-1",defaultValue:$,onChange:c=>a(c.target.value),placeholder:"Text",required:!0,rows:10,value:r,style:{color:"hsl(var(--richtext-foreground))"}}),o.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:l},ref:A,style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),o.jsx(u.DialogFooter,{children:o.jsx(u.Button,{onClick:R,type:"button",children:"Save changes"})})]})]})},O={TOP_LEFT:"tl",TOP_RIGHT:"tr",BOTTOM_LEFT:"bl",BOTTOM_RIGHT:"br"};function te({editor:t,node:e,updateAttributes:r,getPos:a,selected:l}){const[v,T]=s.useState({width:S.IMAGE_MAX_SIZE,height:S.IMAGE_MAX_SIZE}),[y,A]=s.useState({width:0,height:0}),[d]=s.useState([O.TOP_LEFT,O.TOP_RIGHT,O.BOTTOM_LEFT,O.BOTTOM_RIGHT]),[h,E]=s.useState(!1),[_,L]=s.useState({x:0,y:0,w:0,h:0,dir:""}),{align:R}=e==null?void 0:e.attrs,c=s.useMemo(()=>{const{src:i,alt:m,width:f,height:b}=e==null?void 0:e.attrs,w=q.isNumber(f)?`${f}px`:f,n=q.isNumber(b)?`${b}px`:b;return{src:i||void 0,alt:m||void 0,style:{width:w||void 0,height:n||void 0}}},[e==null?void 0:e.attrs]),x=s.useMemo(()=>{const{style:{width:i}}=c;return{width:i==="100%"?i:void 0}},[c]);function j(i){A({width:i.target.width,height:i.target.height})}function I(){t.commands.setNodeSelection(a())}const M=s.useCallback(u.throttle(()=>{const{width:i}=getComputedStyle(t.view.dom);T(m=>({...m,width:Number.parseInt(i,10)}))},S.IMAGE_THROTTLE_WAIT_TIME),[t]);function H(i,m){i.preventDefault(),i.stopPropagation();const f=y.width,b=y.height,w=f/b;let n=Number(e.attrs.width),p=Number(e.attrs.height);const g=v.width;n&&!p?(n=n>g?g:n,p=Math.round(n/w)):p&&!n?(n=Math.round(p*w),n=n>g?g:n):!n&&!p?(n=f>g?g:f,p=Math.round(n/w)):n=n>g?g:n,E(!0),L({x:i.clientX,y:i.clientY,w:n,h:p,dir:m})}const N=s.useCallback(u.throttle(i=>{if(i.preventDefault(),i.stopPropagation(),!h)return;const{x:m,w:f,dir:b}=_,w=(i.clientX-m)*(/l/.test(b)?-1:1),{width:n,height:p}=e==null?void 0:e.attrs,g=n/p,B=u.clamp(f+w,S.IMAGE_MIN_SIZE,v.width),V=Math.round(B/g);r({width:B,height:V})},S.IMAGE_THROTTLE_WAIT_TIME),[h,_,v,r,e==null?void 0:e.attrs]),C=s.useCallback(i=>{i.preventDefault(),i.stopPropagation(),h&&(L({x:0,y:0,w:0,h:0,dir:""}),E(!1),I())},[h,I]),D=s.useCallback(()=>{document==null||document.addEventListener("mousemove",N,!0),document==null||document.addEventListener("mouseup",C,!0)},[N,C]),z=s.useCallback(()=>{document==null||document.removeEventListener("mousemove",N,!0),document==null||document.removeEventListener("mouseup",C,!0)},[N,C]);s.useEffect(()=>(h?D():z(),()=>{z()}),[h,D,z]);const k=s.useMemo(()=>new ResizeObserver(()=>M()),[M]);return s.useEffect(()=>(k.observe(t.view.dom),()=>{k.disconnect()}),[t.view.dom,k]),o.jsx(F.NodeViewWrapper,{className:"image-view",style:{...x,width:"100%",textAlign:R},children:o.jsxs("div",{"data-drag-handle":!0,draggable:"true",style:{...x,background:"#fff"},className:`image-view__body ${l?"image-view__body--focused":""} ${h?"image-view__body--resizing":""}`,children:[o.jsx("img",{alt:c.alt,className:"image-view__body__image block",height:"auto",onClick:I,onLoad:j,src:c.src,style:c.style}),t.view.editable&&(l||h)&&o.jsx("div",{className:"image-resizer",children:d==null?void 0:d.map(i=>o.jsx("span",{className:`image-resizer__handler image-resizer__handler--${i}`,onMouseDown:m=>H(m,i)},`image-dir-${i}`))})]})})}const re=u.Image.extend({name:"mermaid",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),inline:!1,content:"",marks:"",group:"block",draggable:!1,selectable:!0,atom:!0,HTMLAttributes:{class:"mermaid"},button:({editor:e,t:r,extension:a})=>{var l;return{component:ee,componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,editor:e,icon:"Mermaid",tooltip:r("editor.mermaid.tooltip"),upload:(l=a==null?void 0:a.options)==null?void 0:l.upload}}}}},addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),width:{default:null,parseHTML:e=>{const r=e.querySelector("img"),a=r==null?void 0:r.getAttribute("width");return a?Number.parseInt(a,10):320},renderHTML:e=>({width:e.width})},height:{default:null,parseHTML:e=>{const r=e.querySelector("img"),a=r==null?void 0:r.getAttribute("height");return a?Number.parseInt(a,10):212},renderHTML:e=>({height:e.height})},align:{default:"center",parseHTML:e=>e.getAttribute("align"),renderHTML:e=>({align:e.align})}}},addNodeView(){return F.ReactNodeViewRenderer(te)},addCommands(){return{setMermaid:(t,e)=>({commands:r,editor:a})=>e?r.insertContent({type:this.name,attrs:t}):r.insertContentAt(a.state.selection.anchor,{type:this.name,attrs:t}),setAlignImageMermaid:t=>({commands:e})=>e.updateAttributes(this.name,{align:t})}},renderHTML({HTMLAttributes:t}){const{align:e}=t;return["div",{style:e?`text-align: ${e};`:"",class:"imageMermaid"},["img",q.mergeAttributes(this.options.HTMLAttributes,t)]]},parseHTML(){return[{tag:"div[class=imageMermaid]",getAttrs:t=>{const e=t.querySelector("img"),r=e==null?void 0:e.getAttribute("width"),a=e==null?void 0:e.getAttribute("height");return{src:e==null?void 0:e.getAttribute("src"),alt:e==null?void 0:e.getAttribute("alt"),width:r?Number.parseInt(r,10):null,height:a?Number.parseInt(a,10):null,align:(e==null?void 0:e.getAttribute("align"))||t.style.textAlign||null}}}]}});exports.Mermaid=re;
package/lib/Mermaid.d.cts CHANGED
@@ -121,8 +121,11 @@ declare module '@tiptap/core' {
121
121
 
122
122
  declare module '@tiptap/core' {
123
123
  interface Commands<ReturnType> {
124
- excalidraw: {
125
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
124
+ emoji: {
125
+ setEmoji: (emoji: {
126
+ name: string;
127
+ emoji: string;
128
+ }) => ReturnType;
126
129
  };
127
130
  }
128
131
  }
@@ -130,11 +133,8 @@ declare module '@tiptap/core' {
130
133
 
131
134
  declare module '@tiptap/core' {
132
135
  interface Commands<ReturnType> {
133
- emoji: {
134
- setEmoji: (emoji: {
135
- name: string;
136
- emoji: string;
137
- }) => ReturnType;
136
+ excalidraw: {
137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
138
  };
139
139
  }
140
140
  }
@@ -176,6 +176,21 @@ declare module '@tiptap/core' {
176
176
  }
177
177
 
178
178
 
179
+ declare module '@tiptap/core' {
180
+ interface Commands<ReturnType> {
181
+ iframe: {
182
+ /**
183
+ * Add an iframe
184
+ */
185
+ setIframe: (options: {
186
+ src: string;
187
+ service: string;
188
+ }) => ReturnType;
189
+ };
190
+ }
191
+ }
192
+
193
+
179
194
  declare module '@tiptap/core' {
180
195
  interface Commands<ReturnType> {
181
196
  imageUpload: {
@@ -196,21 +211,6 @@ declare module '@tiptap/core' {
196
211
  }
197
212
 
198
213
 
199
- declare module '@tiptap/core' {
200
- interface Commands<ReturnType> {
201
- iframe: {
202
- /**
203
- * Add an iframe
204
- */
205
- setIframe: (options: {
206
- src: string;
207
- service: string;
208
- }) => ReturnType;
209
- };
210
- }
211
- }
212
-
213
-
214
214
  declare module '@tiptap/core' {
215
215
  interface Commands<ReturnType> {
216
216
  imageGifUpload: {
package/lib/Mermaid.d.ts CHANGED
@@ -121,8 +121,11 @@ declare module '@tiptap/core' {
121
121
 
122
122
  declare module '@tiptap/core' {
123
123
  interface Commands<ReturnType> {
124
- excalidraw: {
125
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
124
+ emoji: {
125
+ setEmoji: (emoji: {
126
+ name: string;
127
+ emoji: string;
128
+ }) => ReturnType;
126
129
  };
127
130
  }
128
131
  }
@@ -130,11 +133,8 @@ declare module '@tiptap/core' {
130
133
 
131
134
  declare module '@tiptap/core' {
132
135
  interface Commands<ReturnType> {
133
- emoji: {
134
- setEmoji: (emoji: {
135
- name: string;
136
- emoji: string;
137
- }) => ReturnType;
136
+ excalidraw: {
137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
138
  };
139
139
  }
140
140
  }
@@ -176,6 +176,21 @@ declare module '@tiptap/core' {
176
176
  }
177
177
 
178
178
 
179
+ declare module '@tiptap/core' {
180
+ interface Commands<ReturnType> {
181
+ iframe: {
182
+ /**
183
+ * Add an iframe
184
+ */
185
+ setIframe: (options: {
186
+ src: string;
187
+ service: string;
188
+ }) => ReturnType;
189
+ };
190
+ }
191
+ }
192
+
193
+
179
194
  declare module '@tiptap/core' {
180
195
  interface Commands<ReturnType> {
181
196
  imageUpload: {
@@ -196,21 +211,6 @@ declare module '@tiptap/core' {
196
211
  }
197
212
 
198
213
 
199
- declare module '@tiptap/core' {
200
- interface Commands<ReturnType> {
201
- iframe: {
202
- /**
203
- * Add an iframe
204
- */
205
- setIframe: (options: {
206
- src: string;
207
- service: string;
208
- }) => ReturnType;
209
- };
210
- }
211
- }
212
-
213
-
214
214
  declare module '@tiptap/core' {
215
215
  interface Commands<ReturnType> {
216
216
  imageGifUpload: {
package/lib/Mermaid.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { h as $, m as X } from "./index-BWx1Mchx.js";
2
- import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-BTv7R2Z0.js";
2
+ import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-DWN9FEob.js";
3
3
  import { N as st, R as nt } from "./dom-dataset-CHDbKz5J.js";
4
4
  import { jsxs as C, jsx as o } from "react/jsx-runtime";
5
5
  import { useState as g, useRef as ot, useCallback as y, useEffect as E, useMemo as k } from "react";
6
6
  import { s as lt, i as ct } from "./shortId-WJVkrvml.js";
7
- import { T as ht } from "./textarea-DKyqOqL2.js";
7
+ import { T as ht } from "./textarea-Bm0GTcEU.js";
8
8
  import { I as q, h as dt, i as W } from "./index-zcKfSGd5.js";
9
9
  const j = `graph TB
10
10
  a-->b`, ut = ({ editor: r, upload: t }) => {
package/lib/MoreMark.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-CSvnpArE.cjs"),l=require("./index-h9_SDuwc.cjs"),c=require("react/jsx-runtime"),x=require("react"),s=require("./RichTextEditor-Bca-oI9I.cjs");function b(t){var n;const i=x.useMemo(()=>{var r;const e=(r=t==null?void 0:t.items)==null?void 0:r.find(u=>u.isActive());return e&&!e.default?{...e,icon:e!=null&&e.icon?e==null?void 0:e.icon:t==null?void 0:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return c.jsxs(s.DropdownMenu,{children:[c.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:c.jsx(s.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,children:c.jsx(s.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),c.jsx(s.DropdownMenuContent,{className:"w-full",children:(n=t==null?void 0:t.items)==null?void 0:n.map((e,o)=>c.jsxs(s.DropdownMenuCheckboxItem,{checked:i.title===e.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:e.action,children:[c.jsx(s.IconComponent,{name:e==null?void 0:e.icon}),c.jsx("span",{className:"richtext-ml-1",children:e.title}),!!(e!=null&&e.shortcutKeys)&&c.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:s.getShortcutKeys(e.shortcutKeys)})]},`more-mark-${o}`))})]})}const m=h.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:i,extension:n,t:e}){const o=n.options.subscript,r=n.options.superscript,u={action:()=>i.commands.toggleSubscript(),isActive:()=>i.isActive("subscript")||!1,disabled:!i.can().toggleSubscript(),icon:"Subscript",title:e("editor.subscript.tooltip"),shortcutKeys:["mod","."]},d={action:()=>i.commands.toggleSuperscript(),isActive:()=>i.isActive("superscript")||!1,disabled:!i.can().toggleSuperscript(),icon:"Superscript",title:e("editor.superscript.tooltip"),shortcutKeys:["mod",","]},a=[];return o!==!1&&a.push(u),r!==!1&&a.push(d),{component:b,componentProps:{icon:"Type",tooltip:e("editor.moremark"),disabled:!i.isEditable,items:a}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(l.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(l.Superscript.configure(this.options.superscript)),t}});exports.MoreMark=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-CSvnpArE.cjs"),l=require("./index-h9_SDuwc.cjs"),c=require("react/jsx-runtime"),x=require("react"),s=require("./RichTextEditor-jtVXJcE2.cjs");function b(t){var n;const i=x.useMemo(()=>{var r;const e=(r=t==null?void 0:t.items)==null?void 0:r.find(u=>u.isActive());return e&&!e.default?{...e,icon:e!=null&&e.icon?e==null?void 0:e.icon:t==null?void 0:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return c.jsxs(s.DropdownMenu,{children:[c.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:c.jsx(s.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,children:c.jsx(s.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),c.jsx(s.DropdownMenuContent,{className:"w-full",children:(n=t==null?void 0:t.items)==null?void 0:n.map((e,o)=>c.jsxs(s.DropdownMenuCheckboxItem,{checked:i.title===e.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:e.action,children:[c.jsx(s.IconComponent,{name:e==null?void 0:e.icon}),c.jsx("span",{className:"richtext-ml-1",children:e.title}),!!(e!=null&&e.shortcutKeys)&&c.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:s.getShortcutKeys(e.shortcutKeys)})]},`more-mark-${o}`))})]})}const m=h.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:i,extension:n,t:e}){const o=n.options.subscript,r=n.options.superscript,u={action:()=>i.commands.toggleSubscript(),isActive:()=>i.isActive("subscript")||!1,disabled:!i.can().toggleSubscript(),icon:"Subscript",title:e("editor.subscript.tooltip"),shortcutKeys:["mod","."]},d={action:()=>i.commands.toggleSuperscript(),isActive:()=>i.isActive("superscript")||!1,disabled:!i.can().toggleSuperscript(),icon:"Superscript",title:e("editor.superscript.tooltip"),shortcutKeys:["mod",","]},a=[];return o!==!1&&a.push(u),r!==!1&&a.push(d),{component:b,componentProps:{icon:"Type",tooltip:e("editor.moremark"),disabled:!i.isEditable,items:a}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(l.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(l.Superscript.configure(this.options.superscript)),t}});exports.MoreMark=m;
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
132
132
 
133
133
  declare module '@tiptap/core' {
134
134
  interface Commands<ReturnType> {
135
- excalidraw: {
136
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
135
+ emoji: {
136
+ setEmoji: (emoji: {
137
+ name: string;
138
+ emoji: string;
139
+ }) => ReturnType;
137
140
  };
138
141
  }
139
142
  }
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
141
144
 
142
145
  declare module '@tiptap/core' {
143
146
  interface Commands<ReturnType> {
144
- emoji: {
145
- setEmoji: (emoji: {
146
- name: string;
147
- emoji: string;
148
- }) => ReturnType;
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
149
  };
150
150
  }
151
151
  }
@@ -187,6 +187,21 @@ declare module '@tiptap/core' {
187
187
  }
188
188
 
189
189
 
190
+ declare module '@tiptap/core' {
191
+ interface Commands<ReturnType> {
192
+ iframe: {
193
+ /**
194
+ * Add an iframe
195
+ */
196
+ setIframe: (options: {
197
+ src: string;
198
+ service: string;
199
+ }) => ReturnType;
200
+ };
201
+ }
202
+ }
203
+
204
+
190
205
  declare module '@tiptap/core' {
191
206
  interface Commands<ReturnType> {
192
207
  imageUpload: {
@@ -207,21 +222,6 @@ declare module '@tiptap/core' {
207
222
  }
208
223
 
209
224
 
210
- declare module '@tiptap/core' {
211
- interface Commands<ReturnType> {
212
- iframe: {
213
- /**
214
- * Add an iframe
215
- */
216
- setIframe: (options: {
217
- src: string;
218
- service: string;
219
- }) => ReturnType;
220
- };
221
- }
222
- }
223
-
224
-
225
225
  declare module '@tiptap/core' {
226
226
  interface Commands<ReturnType> {
227
227
  imageGifUpload: {
package/lib/MoreMark.d.ts CHANGED
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
132
132
 
133
133
  declare module '@tiptap/core' {
134
134
  interface Commands<ReturnType> {
135
- excalidraw: {
136
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
135
+ emoji: {
136
+ setEmoji: (emoji: {
137
+ name: string;
138
+ emoji: string;
139
+ }) => ReturnType;
137
140
  };
138
141
  }
139
142
  }
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
141
144
 
142
145
  declare module '@tiptap/core' {
143
146
  interface Commands<ReturnType> {
144
- emoji: {
145
- setEmoji: (emoji: {
146
- name: string;
147
- emoji: string;
148
- }) => ReturnType;
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
149
  };
150
150
  }
151
151
  }
@@ -187,6 +187,21 @@ declare module '@tiptap/core' {
187
187
  }
188
188
 
189
189
 
190
+ declare module '@tiptap/core' {
191
+ interface Commands<ReturnType> {
192
+ iframe: {
193
+ /**
194
+ * Add an iframe
195
+ */
196
+ setIframe: (options: {
197
+ src: string;
198
+ service: string;
199
+ }) => ReturnType;
200
+ };
201
+ }
202
+ }
203
+
204
+
190
205
  declare module '@tiptap/core' {
191
206
  interface Commands<ReturnType> {
192
207
  imageUpload: {
@@ -207,21 +222,6 @@ declare module '@tiptap/core' {
207
222
  }
208
223
 
209
224
 
210
- declare module '@tiptap/core' {
211
- interface Commands<ReturnType> {
212
- iframe: {
213
- /**
214
- * Add an iframe
215
- */
216
- setIframe: (options: {
217
- src: string;
218
- service: string;
219
- }) => ReturnType;
220
- };
221
- }
222
- }
223
-
224
-
225
225
  declare module '@tiptap/core' {
226
226
  interface Commands<ReturnType> {
227
227
  imageGifUpload: {
package/lib/MoreMark.js CHANGED
@@ -2,7 +2,7 @@ import { E as h } from "./index-BWx1Mchx.js";
2
2
  import { S as d, a as m } from "./index-DEFQHExY.js";
3
3
  import { jsxs as u, jsx as c } from "react/jsx-runtime";
4
4
  import { useMemo as f } from "react";
5
- import { D as x, e as b, A as g, M, f as S, h as k, k as A, g as w } from "./RichTextEditor-BTv7R2Z0.js";
5
+ import { D as x, e as b, A as g, M, f as S, h as k, k as A, g as w } from "./RichTextEditor-DWN9FEob.js";
6
6
  function y(t) {
7
7
  var s;
8
8
  const i = f(() => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-CSvnpArE.cjs");const o=require("./RichTextEditor-Bca-oI9I.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-CSvnpArE.cjs");const o=require("./RichTextEditor-jtVXJcE2.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
@@ -54,8 +54,11 @@ declare module '@tiptap/core' {
54
54
 
55
55
  declare module '@tiptap/core' {
56
56
  interface Commands<ReturnType> {
57
- excalidraw: {
58
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
57
+ emoji: {
58
+ setEmoji: (emoji: {
59
+ name: string;
60
+ emoji: string;
61
+ }) => ReturnType;
59
62
  };
60
63
  }
61
64
  }
@@ -63,11 +66,8 @@ declare module '@tiptap/core' {
63
66
 
64
67
  declare module '@tiptap/core' {
65
68
  interface Commands<ReturnType> {
66
- emoji: {
67
- setEmoji: (emoji: {
68
- name: string;
69
- emoji: string;
70
- }) => ReturnType;
69
+ excalidraw: {
70
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
71
71
  };
72
72
  }
73
73
  }
@@ -109,6 +109,21 @@ declare module '@tiptap/core' {
109
109
  }
110
110
 
111
111
 
112
+ declare module '@tiptap/core' {
113
+ interface Commands<ReturnType> {
114
+ iframe: {
115
+ /**
116
+ * Add an iframe
117
+ */
118
+ setIframe: (options: {
119
+ src: string;
120
+ service: string;
121
+ }) => ReturnType;
122
+ };
123
+ }
124
+ }
125
+
126
+
112
127
  declare module '@tiptap/core' {
113
128
  interface Commands<ReturnType> {
114
129
  imageUpload: {
@@ -129,21 +144,6 @@ declare module '@tiptap/core' {
129
144
  }
130
145
 
131
146
 
132
- declare module '@tiptap/core' {
133
- interface Commands<ReturnType> {
134
- iframe: {
135
- /**
136
- * Add an iframe
137
- */
138
- setIframe: (options: {
139
- src: string;
140
- service: string;
141
- }) => ReturnType;
142
- };
143
- }
144
- }
145
-
146
-
147
147
  declare module '@tiptap/core' {
148
148
  interface Commands<ReturnType> {
149
149
  imageGifUpload: {