reactjs-tiptap-editor 0.2.29 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/lib/ActionMenuButton-BllDdN2-.js +33 -0
  2. package/lib/ActionMenuButton-tLPdHfCT.cjs +1 -0
  3. package/lib/Attachment.cjs +19 -0
  4. package/lib/Attachment.d.cts +344 -0
  5. package/lib/Attachment.d.ts +344 -0
  6. package/lib/Attachment.js +259 -0
  7. package/lib/Blockquote.cjs +1 -0
  8. package/lib/Blockquote.d.cts +343 -0
  9. package/lib/Blockquote.d.ts +343 -0
  10. package/lib/Blockquote.js +65 -0
  11. package/lib/Bold.cjs +1 -0
  12. package/lib/Bold.d.cts +343 -0
  13. package/lib/Bold.d.ts +343 -0
  14. package/lib/Bold.js +90 -0
  15. package/lib/BulletList.cjs +1 -0
  16. package/lib/BulletList.d.cts +343 -0
  17. package/lib/BulletList.d.ts +343 -0
  18. package/lib/BulletList.js +72 -0
  19. package/lib/Clear.cjs +1 -0
  20. package/lib/Clear.d.cts +342 -0
  21. package/lib/Clear.d.ts +342 -0
  22. package/lib/Clear.js +23 -0
  23. package/lib/Code.cjs +1 -0
  24. package/lib/Code.d.cts +343 -0
  25. package/lib/Code.d.ts +343 -0
  26. package/lib/Code.js +70 -0
  27. package/lib/CodeBlock.cjs +44 -0
  28. package/lib/CodeBlock.d.cts +352 -0
  29. package/lib/CodeBlock.d.ts +352 -0
  30. package/lib/CodeBlock.js +4189 -0
  31. package/lib/Color.cjs +1 -0
  32. package/lib/Color.d.cts +350 -0
  33. package/lib/Color.d.ts +350 -0
  34. package/lib/Color.js +141 -0
  35. package/lib/Document.cjs +1 -0
  36. package/lib/Document.d.cts +272 -0
  37. package/lib/Document.d.ts +272 -0
  38. package/lib/Document.js +13 -0
  39. package/lib/Drawer-BBmEHEAp.cjs +1 -0
  40. package/lib/Drawer-hyBIiEP6.js +1367 -0
  41. package/lib/Drawer.cjs +1 -0
  42. package/lib/Drawer.d.cts +344 -0
  43. package/lib/Drawer.d.ts +344 -0
  44. package/lib/Drawer.js +7 -0
  45. package/lib/Emoji.cjs +1 -0
  46. package/lib/Emoji.d.cts +277 -0
  47. package/lib/Emoji.d.ts +277 -0
  48. package/lib/Emoji.js +2168 -0
  49. package/lib/Excalidraw-BQ2PeAoa.js +651 -0
  50. package/lib/Excalidraw-Cd01zFJl.cjs +1 -0
  51. package/lib/Excalidraw.cjs +1 -0
  52. package/lib/Excalidraw.d.cts +278 -0
  53. package/lib/Excalidraw.d.ts +278 -0
  54. package/lib/Excalidraw.js +6 -0
  55. package/lib/ExportPdf.cjs +15 -0
  56. package/lib/ExportPdf.d.cts +270 -0
  57. package/lib/ExportPdf.d.ts +270 -0
  58. package/lib/ExportPdf.js +67 -0
  59. package/lib/ExportWord.cjs +1 -0
  60. package/lib/ExportWord.d.cts +341 -0
  61. package/lib/ExportWord.d.ts +341 -0
  62. package/lib/ExportWord.js +72 -0
  63. package/lib/FontFamily.cjs +1 -0
  64. package/lib/FontFamily.d.cts +354 -0
  65. package/lib/FontFamily.d.ts +354 -0
  66. package/lib/FontFamily.js +136 -0
  67. package/lib/FontSize.cjs +1 -0
  68. package/lib/FontSize.d.cts +359 -0
  69. package/lib/FontSize.d.ts +359 -0
  70. package/lib/FontSize.js +110 -0
  71. package/lib/FormatPainter.cjs +1 -0
  72. package/lib/FormatPainter.d.cts +353 -0
  73. package/lib/FormatPainter.d.ts +353 -0
  74. package/lib/FormatPainter.js +74 -0
  75. package/lib/Heading.cjs +1 -0
  76. package/lib/Heading.d.cts +343 -0
  77. package/lib/Heading.d.ts +343 -0
  78. package/lib/Heading.js +147 -0
  79. package/lib/Highlight.cjs +1 -0
  80. package/lib/Highlight.d.cts +344 -0
  81. package/lib/Highlight.d.ts +344 -0
  82. package/lib/Highlight.js +85 -0
  83. package/lib/History.cjs +1 -0
  84. package/lib/History.d.cts +343 -0
  85. package/lib/History.d.ts +343 -0
  86. package/lib/History.js +431 -0
  87. package/lib/HorizontalRule.cjs +1 -0
  88. package/lib/HorizontalRule.d.cts +343 -0
  89. package/lib/HorizontalRule.d.ts +343 -0
  90. package/lib/HorizontalRule.js +87 -0
  91. package/lib/Iframe.cjs +1 -0
  92. package/lib/Iframe.d.cts +277 -0
  93. package/lib/Iframe.d.ts +277 -0
  94. package/lib/Iframe.js +6 -0
  95. package/lib/Image.cjs +1 -0
  96. package/lib/Image.d.cts +370 -0
  97. package/lib/Image.d.ts +370 -0
  98. package/lib/Image.js +7 -0
  99. package/lib/ImageGif.cjs +1 -0
  100. package/lib/ImageGif.d.cts +292 -0
  101. package/lib/ImageGif.d.ts +292 -0
  102. package/lib/ImageGif.js +7 -0
  103. package/lib/ImportWord.cjs +231 -0
  104. package/lib/ImportWord.d.cts +353 -0
  105. package/lib/ImportWord.d.ts +353 -0
  106. package/lib/ImportWord.js +16620 -0
  107. package/lib/Indent.cjs +1 -0
  108. package/lib/Indent.d.cts +344 -0
  109. package/lib/Indent.d.ts +344 -0
  110. package/lib/Indent.js +78 -0
  111. package/lib/Italic.cjs +1 -0
  112. package/lib/Italic.d.cts +343 -0
  113. package/lib/Italic.d.ts +343 -0
  114. package/lib/Italic.js +91 -0
  115. package/lib/Katex.cjs +1 -0
  116. package/lib/Katex.d.cts +279 -0
  117. package/lib/Katex.d.ts +279 -0
  118. package/lib/Katex.js +197 -0
  119. package/lib/LineHeight.cjs +1 -0
  120. package/lib/LineHeight.d.cts +347 -0
  121. package/lib/LineHeight.d.ts +347 -0
  122. package/lib/LineHeight.js +137 -0
  123. package/lib/Link.cjs +5 -0
  124. package/lib/Link.d.cts +343 -0
  125. package/lib/Link.d.ts +343 -0
  126. package/lib/Link.js +1048 -0
  127. package/lib/ListItem.cjs +1 -0
  128. package/lib/ListItem.d.cts +269 -0
  129. package/lib/ListItem.d.ts +269 -0
  130. package/lib/ListItem.js +33 -0
  131. package/lib/Mention.cjs +1 -0
  132. package/lib/Mention.d.cts +272 -0
  133. package/lib/Mention.d.ts +272 -0
  134. package/lib/Mention.js +233 -0
  135. package/lib/Mermaid.cjs +2 -0
  136. package/lib/Mermaid.d.cts +344 -0
  137. package/lib/Mermaid.d.ts +344 -0
  138. package/lib/Mermaid.js +390 -0
  139. package/lib/MoreMark.cjs +1 -0
  140. package/lib/MoreMark.d.cts +355 -0
  141. package/lib/MoreMark.d.ts +355 -0
  142. package/lib/MoreMark.js +95 -0
  143. package/lib/MultiColumn.cjs +1 -0
  144. package/lib/MultiColumn.d.cts +277 -0
  145. package/lib/MultiColumn.d.ts +277 -0
  146. package/lib/MultiColumn.js +8 -0
  147. package/lib/OrderedList.cjs +1 -0
  148. package/lib/OrderedList.d.cts +343 -0
  149. package/lib/OrderedList.d.ts +343 -0
  150. package/lib/OrderedList.js +90 -0
  151. package/lib/RichTextEditor-CM-Xq9RS.cjs +137 -0
  152. package/lib/RichTextEditor-DvrUVNK2.js +11417 -0
  153. package/lib/SearchAndReplace.cjs +1 -0
  154. package/lib/SearchAndReplace.d.cts +358 -0
  155. package/lib/SearchAndReplace.d.ts +358 -0
  156. package/lib/SearchAndReplace.js +339 -0
  157. package/lib/Selection.cjs +1 -0
  158. package/lib/Selection.d.cts +272 -0
  159. package/lib/Selection.d.ts +272 -0
  160. package/lib/Selection.js +25 -0
  161. package/lib/SlashCommand.cjs +1 -0
  162. package/lib/SlashCommand.d.cts +299 -0
  163. package/lib/SlashCommand.d.ts +299 -0
  164. package/lib/SlashCommand.js +369 -0
  165. package/lib/Strike.cjs +1 -0
  166. package/lib/Strike.d.cts +343 -0
  167. package/lib/Strike.d.ts +343 -0
  168. package/lib/Strike.js +80 -0
  169. package/lib/SubAndSuperScript.cjs +1 -0
  170. package/lib/SubAndSuperScript.d.cts +358 -0
  171. package/lib/SubAndSuperScript.d.ts +358 -0
  172. package/lib/SubAndSuperScript.js +41 -0
  173. package/lib/Table.cjs +1 -0
  174. package/lib/Table.d.cts +366 -0
  175. package/lib/Table.d.ts +366 -0
  176. package/lib/Table.js +2165 -0
  177. package/lib/TableOfContent.cjs +1 -0
  178. package/lib/TableOfContent.d.cts +274 -0
  179. package/lib/TableOfContent.d.ts +274 -0
  180. package/lib/TableOfContent.js +184 -0
  181. package/lib/TaskList.cjs +1 -0
  182. package/lib/TaskList.d.cts +349 -0
  183. package/lib/TaskList.d.ts +349 -0
  184. package/lib/TaskList.js +175 -0
  185. package/lib/TextAlign.cjs +1 -0
  186. package/lib/TextAlign.d.cts +353 -0
  187. package/lib/TextAlign.d.ts +353 -0
  188. package/lib/TextAlign.js +165 -0
  189. package/lib/TextBubble.cjs +1 -0
  190. package/lib/TextBubble.d.cts +343 -0
  191. package/lib/TextBubble.d.ts +343 -0
  192. package/lib/TextBubble.js +131 -0
  193. package/lib/TextDirection.cjs +1 -0
  194. package/lib/TextDirection.d.cts +270 -0
  195. package/lib/TextDirection.d.ts +270 -0
  196. package/lib/TextDirection.js +142 -0
  197. package/lib/TextUnderline.cjs +1 -0
  198. package/lib/TextUnderline.d.cts +343 -0
  199. package/lib/TextUnderline.d.ts +343 -0
  200. package/lib/TextUnderline.js +61 -0
  201. package/lib/TrailingNode.cjs +1 -0
  202. package/lib/TrailingNode.d.cts +280 -0
  203. package/lib/TrailingNode.d.ts +280 -0
  204. package/lib/TrailingNode.js +41 -0
  205. package/lib/Twitter-BuMkJKBq.cjs +17 -0
  206. package/lib/Twitter-BvdxYuDK.js +1743 -0
  207. package/lib/Twitter.cjs +1 -0
  208. package/lib/Twitter.d.cts +295 -0
  209. package/lib/Twitter.d.ts +295 -0
  210. package/lib/Twitter.js +6 -0
  211. package/lib/Video.cjs +1 -0
  212. package/lib/Video.d.cts +371 -0
  213. package/lib/Video.d.ts +371 -0
  214. package/lib/Video.js +6 -0
  215. package/lib/bubble-extra.cjs +2 -0
  216. package/lib/bubble-extra.d.cts +294 -0
  217. package/lib/bubble-extra.d.ts +294 -0
  218. package/lib/bubble-extra.js +623 -0
  219. package/lib/dom-dataset-CAXnsjYE.cjs +33 -0
  220. package/lib/dom-dataset-CJ7GyQ2E.js +999 -0
  221. package/lib/index-COecBbaE.cjs +89 -0
  222. package/lib/index-ClFtfQ0J.cjs +1 -0
  223. package/lib/index-CvYIX2-x.js +129 -0
  224. package/lib/index-CySbCeQd.cjs +1 -0
  225. package/lib/{index-CO-iymkb.js → index-D9llIWB5.js} +442 -101
  226. package/lib/index-DXBa3JBo.js +46 -0
  227. package/lib/index-DjP7Onch.cjs +1 -0
  228. package/lib/index-Drmyqk9P.js +12322 -0
  229. package/lib/index-DuhDIOel.js +76 -0
  230. package/lib/index-LbrE7K9i.cjs +1 -0
  231. package/lib/index.cjs +2 -1
  232. package/lib/index.d.cts +290 -108
  233. package/lib/index.d.ts +290 -108
  234. package/lib/index.js +587 -13
  235. package/lib/locale-bundle.cjs +1 -1
  236. package/lib/locale-bundle.d.cts +108 -108
  237. package/lib/locale-bundle.d.ts +108 -108
  238. package/lib/locale-bundle.js +1 -1
  239. package/lib/shortId-Bfj8TyNr.cjs +2 -0
  240. package/lib/shortId-WJVkrvml.js +30 -0
  241. package/lib/style.css +1 -1
  242. package/lib/textarea-B172kMgC.js +20 -0
  243. package/lib/textarea-CapyElEP.cjs +1 -0
  244. package/package.json +678 -15
  245. package/lib/RichTextEditor-Ce2IeNE6.js +0 -8265
  246. package/lib/RichTextEditor-hDDApaDD.cjs +0 -136
  247. package/lib/extension-bundle.cjs +0 -33
  248. package/lib/extension-bundle.d.cts +0 -951
  249. package/lib/extension-bundle.d.ts +0 -951
  250. package/lib/extension-bundle.js +0 -5982
  251. package/lib/index-CJ6Hb9MN.cjs +0 -1
  252. package/lib/tiptap-DOP8lVCQ.js +0 -5950
  253. package/lib/tiptap-Dq62HiQ9.cjs +0 -113
  254. package/lib/vendor-BbgkyoD-.js +0 -40297
  255. package/lib/vendor-DdwtMmSr.cjs +0 -302
package/lib/Color.js ADDED
@@ -0,0 +1,141 @@
1
+ import "./index-DXBa3JBo.js";
2
+ import { E as u } from "./index-Drmyqk9P.js";
3
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
4
+ import { useState as s, useCallback as C } from "react";
5
+ import { t as h, A as f, C as x, B as m, k as v } from "./RichTextEditor-DvrUVNK2.js";
6
+ const L = u.create({
7
+ name: "color",
8
+ addOptions() {
9
+ return {
10
+ types: ["textStyle"]
11
+ };
12
+ },
13
+ addGlobalAttributes() {
14
+ return [
15
+ {
16
+ types: this.options.types,
17
+ attributes: {
18
+ color: {
19
+ default: null,
20
+ parseHTML: (t) => {
21
+ var e;
22
+ return (e = t.style.color) === null || e === void 0 ? void 0 : e.replace(/['"]+/g, "");
23
+ },
24
+ renderHTML: (t) => t.color ? {
25
+ style: `color: ${t.color}`
26
+ } : {}
27
+ }
28
+ }
29
+ }
30
+ ];
31
+ },
32
+ addCommands() {
33
+ return {
34
+ setColor: (t) => ({ chain: e }) => e().setMark("textStyle", { color: t }).run(),
35
+ unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
36
+ };
37
+ }
38
+ });
39
+ function b({ fill: t }) {
40
+ return /* @__PURE__ */ l(
41
+ "svg",
42
+ {
43
+ width: "18px",
44
+ height: "18px",
45
+ viewBox: "0 0 240 240",
46
+ version: "1.1",
47
+ xmlns: "http://www.w3.org/2000/svg",
48
+ children: /* @__PURE__ */ l("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { transform: "translate(0.000000, 0.500000)", children: /* @__PURE__ */ a("g", { transform: "translate(39.000000, 17.353553)", children: [
49
+ /* @__PURE__ */ l(
50
+ "path",
51
+ {
52
+ d: "M11,201.146447 L167,201.146447 C173.075132,201.146447 178,206.071314 178,212.146447 C178,218.221579 173.075132,223.146447 167,223.146447 L11,223.146447 C4.92486775,223.146447 7.43989126e-16,218.221579 0,212.146447 C-7.43989126e-16,206.071314 4.92486775,201.146447 11,201.146447 Z",
53
+ id: "矩形",
54
+ fill: t || "#DF2A3F",
55
+ fillRule: "evenodd"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ l(
59
+ "path",
60
+ {
61
+ d: "M72.3425855,16.8295583 C75.799482,7.50883712 86.1577877,2.75526801 95.4785089,6.21216449 C100.284516,7.99463061 104.096358,11.7387855 105.968745,16.4968188 L106.112518,16.8745422 L159.385152,161.694068 C161.291848,166.877345 158.635655,172.624903 153.452378,174.531599 C148.358469,176.405421 142.719567,173.872338 140.716873,168.864661 L140.614848,168.598825 L89.211,28.86 L37.3759214,168.623816 C35.4885354,173.712715 29.8981043,176.351047 24.7909589,174.617647 L24.5226307,174.522368 C19.4337312,172.634982 16.7953993,167.044551 18.5287999,161.937406 L18.6240786,161.669077 L72.3425855,16.8295583 Z",
62
+ id: "路径-21",
63
+ fill: "currentColor",
64
+ fillRule: "nonzero"
65
+ }
66
+ ),
67
+ /* @__PURE__ */ l(
68
+ "path",
69
+ {
70
+ d: "M121,103.146447 C126.522847,103.146447 131,107.623599 131,113.146447 C131,118.575687 126.673329,122.994378 121.279905,123.142605 L121,123.146447 L55,123.146447 C49.4771525,123.146447 45,118.669294 45,113.146447 C45,107.717207 49.3266708,103.298515 54.7200952,103.150288 L55,103.146447 L121,103.146447 Z",
71
+ id: "路径-22",
72
+ fill: "currentColor",
73
+ fillRule: "nonzero"
74
+ }
75
+ )
76
+ ] }) }) })
77
+ }
78
+ );
79
+ }
80
+ function g(t) {
81
+ const [e, r] = s(void 0);
82
+ function i(o) {
83
+ var c;
84
+ (c = t.action) == null || c.call(t, o);
85
+ }
86
+ function n() {
87
+ var o;
88
+ (o = t.action) == null || o.call(t, e);
89
+ }
90
+ const d = C(
91
+ h((o) => {
92
+ r(o);
93
+ }, 350),
94
+ []
95
+ );
96
+ return /* @__PURE__ */ a("div", { className: "richtext-flex richtext-items-center richtext-h-[32px]", children: [
97
+ /* @__PURE__ */ l(f, { tooltip: t == null ? void 0 : t.tooltip, disabled: t == null ? void 0 : t.disabled, action: n, children: /* @__PURE__ */ l("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ l(b, { fill: e }) }) }),
98
+ /* @__PURE__ */ l(
99
+ x,
100
+ {
101
+ selectedColor: e,
102
+ setSelectedColor: d,
103
+ onChange: i,
104
+ disabled: t == null ? void 0 : t.disabled,
105
+ colors: t == null ? void 0 : t.colors,
106
+ defaultColor: t == null ? void 0 : t.defaultColor,
107
+ children: /* @__PURE__ */ l(m, { variant: "ghost", size: "icon", className: "r!ichtext-h-[32px] !richtext-w-3", disabled: t == null ? void 0 : t.disabled, children: /* @__PURE__ */ l(v, { className: "!richtext-w-3 !richtext-h-3 richtext-text-zinc-500", name: "MenuDown" }) })
108
+ }
109
+ )
110
+ ] });
111
+ }
112
+ const k = /* @__PURE__ */ L.extend({
113
+ addOptions() {
114
+ var t;
115
+ return {
116
+ ...(t = this.parent) == null ? void 0 : t.call(this),
117
+ button({ editor: e, t: r, extension: i }) {
118
+ return {
119
+ component: g,
120
+ componentProps: {
121
+ colors: i.options.colors,
122
+ defaultColor: i.options.defaultColor,
123
+ action: (n) => {
124
+ n === void 0 && e.chain().focus().unsetColor().run(), typeof n == "string" && e.chain().focus().setColor(n).run();
125
+ },
126
+ isActive: () => {
127
+ const { color: n } = e.getAttributes("textStyle");
128
+ return n && e.isActive({ color: n }) || !1;
129
+ },
130
+ editor: e,
131
+ disabled: !1,
132
+ tooltip: r("editor.color.tooltip")
133
+ }
134
+ };
135
+ }
136
+ };
137
+ }
138
+ });
139
+ export {
140
+ k as Color
141
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index-COecBbaE.cjs"),o=t.Node.create({name:"doc",topNode:!0,content:"block+"}),e=o.extend({content:"(block|columns)+"});exports.Document=e;exports.default=e;
@@ -0,0 +1,272 @@
1
+ import { Node as Node_2 } from '@tiptap/core';
2
+
3
+ declare const Document_2: Node_2<any, any>;
4
+ export { Document_2 as Document }
5
+ export default Document_2;
6
+
7
+ export { }
8
+
9
+
10
+ declare module '@tiptap/core' {
11
+ interface Commands<ReturnType> {
12
+ attachment: {
13
+ setAttachment: (attrs?: unknown) => ReturnType;
14
+ };
15
+ }
16
+ }
17
+
18
+
19
+ declare module '@tiptap/core' {
20
+ interface Commands<ReturnType> {
21
+ setCodeBlock: {
22
+ setCodeBlock: (options?: any) => ReturnType;
23
+ };
24
+ }
25
+ }
26
+
27
+
28
+ declare module '@tiptap/core' {
29
+ interface Commands<ReturnType> {
30
+ drawer: {
31
+ setDrawer: (options: any, replace?: any) => ReturnType;
32
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
33
+ };
34
+ }
35
+ }
36
+
37
+
38
+ declare module '@tiptap/core' {
39
+ interface Commands<ReturnType> {
40
+ emoji: {
41
+ setEmoji: (emoji: {
42
+ name: string;
43
+ emoji: string;
44
+ }) => ReturnType;
45
+ };
46
+ }
47
+ }
48
+
49
+
50
+ declare module '@tiptap/core' {
51
+ interface Commands<ReturnType> {
52
+ excalidraw: {
53
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
54
+ };
55
+ }
56
+ }
57
+
58
+
59
+ declare module '@tiptap/core' {
60
+ interface Commands<ReturnType> {
61
+ exportWord: {
62
+ exportToWord: () => ReturnType;
63
+ };
64
+ }
65
+ }
66
+
67
+
68
+ declare module '@tiptap/core' {
69
+ interface Commands<ReturnType> {
70
+ fontSize: {
71
+ /**
72
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
73
+ * CSS font-size
74
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
75
+ */
76
+ setFontSize: (fontSize: string) => ReturnType;
77
+ /**
78
+ * Unset the font size
79
+ */
80
+ unsetFontSize: () => ReturnType;
81
+ };
82
+ }
83
+ }
84
+
85
+
86
+ declare module '@tiptap/core' {
87
+ interface Commands<ReturnType> {
88
+ painter: {
89
+ setPainter: (marks: Mark[]) => ReturnType;
90
+ };
91
+ }
92
+ }
93
+
94
+
95
+ declare module '@tiptap/core' {
96
+ interface Commands<ReturnType> {
97
+ iframe: {
98
+ /**
99
+ * Add an iframe
100
+ */
101
+ setIframe: (options: {
102
+ src: string;
103
+ service: string;
104
+ }) => ReturnType;
105
+ };
106
+ }
107
+ }
108
+
109
+
110
+ declare module '@tiptap/core' {
111
+ interface Commands<ReturnType> {
112
+ imageUpload: {
113
+ /**
114
+ * Add an image
115
+ */
116
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
117
+ /**
118
+ * Update an image
119
+ */
120
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
121
+ /**
122
+ * Set image alignment
123
+ */
124
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
125
+ };
126
+ }
127
+ }
128
+
129
+
130
+ declare module '@tiptap/core' {
131
+ interface Commands<ReturnType> {
132
+ imageGifUpload: {
133
+ /**
134
+ * Add an image gif
135
+ */
136
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
137
+ /**
138
+ * Update an image gif
139
+ */
140
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
141
+ /**
142
+ * Set image alignment
143
+ */
144
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
145
+ };
146
+ }
147
+ }
148
+
149
+
150
+ declare module '@tiptap/core' {
151
+ interface Commands<ReturnType> {
152
+ indent: {
153
+ /**
154
+ * Set the indent attribute
155
+ */
156
+ indent: () => ReturnType;
157
+ /**
158
+ * Set the outdent attribute
159
+ */
160
+ outdent: () => ReturnType;
161
+ };
162
+ }
163
+ }
164
+
165
+
166
+ declare module '@tiptap/core' {
167
+ interface Commands<ReturnType> {
168
+ katex: {
169
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
170
+ };
171
+ }
172
+ }
173
+
174
+
175
+ declare module '@tiptap/core' {
176
+ interface Commands<ReturnType> {
177
+ lineHeight: {
178
+ setLineHeight: (lineHeight: string) => ReturnType;
179
+ unsetLineHeight: () => ReturnType;
180
+ };
181
+ }
182
+ }
183
+
184
+
185
+ declare module '@tiptap/core' {
186
+ interface Commands<ReturnType> {
187
+ mermaid: {
188
+ setMermaid: (options: any, replace?: any) => ReturnType;
189
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
190
+ };
191
+ }
192
+ }
193
+
194
+
195
+ declare module '@tiptap/core' {
196
+ interface Commands<ReturnType> {
197
+ columns: {
198
+ insertColumns: (attrs?: {
199
+ cols: number;
200
+ }) => ReturnType;
201
+ addColBefore: () => ReturnType;
202
+ addColAfter: () => ReturnType;
203
+ deleteCol: () => ReturnType;
204
+ };
205
+ }
206
+ }
207
+
208
+
209
+ declare module '@tiptap/core' {
210
+ interface Commands<ReturnType> {
211
+ search: {
212
+ setSearchTerm: (searchTerm: string) => ReturnType;
213
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
214
+ replace: () => ReturnType;
215
+ replaceAll: () => ReturnType;
216
+ goToPrevSearchResult: () => void;
217
+ goToNextSearchResult: () => void;
218
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
219
+ };
220
+ }
221
+ }
222
+
223
+
224
+ declare module '@tiptap/core' {
225
+ interface Commands<ReturnType> {
226
+ tableOfContents: {
227
+ setTableOfContents: () => ReturnType;
228
+ removeTableOfContents: () => ReturnType;
229
+ };
230
+ }
231
+ }
232
+
233
+
234
+ declare module '@tiptap/core' {
235
+ interface Commands<ReturnType> {
236
+ twitter: {
237
+ /**
238
+ * Insert a tweet
239
+ * @param options The tweet attributes
240
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
241
+ */
242
+ setTweet: (options: SetTweetOptions) => ReturnType;
243
+ updateTweet: (options: SetTweetOptions) => ReturnType;
244
+ };
245
+ }
246
+ }
247
+
248
+
249
+ declare module '@tiptap/core' {
250
+ interface Commands<ReturnType> {
251
+ video: {
252
+ /**
253
+ * Add an video
254
+ */
255
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
256
+ /**
257
+ * Update an video
258
+ */
259
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
260
+ };
261
+ }
262
+ }
263
+
264
+
265
+ declare module '@tiptap/core' {
266
+ interface Commands<ReturnType> {
267
+ tableCellBackground: {
268
+ setTableCellBackground: (color: string) => ReturnType;
269
+ unsetTableCellBackground: () => ReturnType;
270
+ };
271
+ }
272
+ }
@@ -0,0 +1,272 @@
1
+ import { Node as Node_2 } from '@tiptap/core';
2
+
3
+ declare const Document_2: Node_2<any, any>;
4
+ export { Document_2 as Document }
5
+ export default Document_2;
6
+
7
+ export { }
8
+
9
+
10
+ declare module '@tiptap/core' {
11
+ interface Commands<ReturnType> {
12
+ attachment: {
13
+ setAttachment: (attrs?: unknown) => ReturnType;
14
+ };
15
+ }
16
+ }
17
+
18
+
19
+ declare module '@tiptap/core' {
20
+ interface Commands<ReturnType> {
21
+ setCodeBlock: {
22
+ setCodeBlock: (options?: any) => ReturnType;
23
+ };
24
+ }
25
+ }
26
+
27
+
28
+ declare module '@tiptap/core' {
29
+ interface Commands<ReturnType> {
30
+ drawer: {
31
+ setDrawer: (options: any, replace?: any) => ReturnType;
32
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
33
+ };
34
+ }
35
+ }
36
+
37
+
38
+ declare module '@tiptap/core' {
39
+ interface Commands<ReturnType> {
40
+ emoji: {
41
+ setEmoji: (emoji: {
42
+ name: string;
43
+ emoji: string;
44
+ }) => ReturnType;
45
+ };
46
+ }
47
+ }
48
+
49
+
50
+ declare module '@tiptap/core' {
51
+ interface Commands<ReturnType> {
52
+ excalidraw: {
53
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
54
+ };
55
+ }
56
+ }
57
+
58
+
59
+ declare module '@tiptap/core' {
60
+ interface Commands<ReturnType> {
61
+ exportWord: {
62
+ exportToWord: () => ReturnType;
63
+ };
64
+ }
65
+ }
66
+
67
+
68
+ declare module '@tiptap/core' {
69
+ interface Commands<ReturnType> {
70
+ fontSize: {
71
+ /**
72
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
73
+ * CSS font-size
74
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
75
+ */
76
+ setFontSize: (fontSize: string) => ReturnType;
77
+ /**
78
+ * Unset the font size
79
+ */
80
+ unsetFontSize: () => ReturnType;
81
+ };
82
+ }
83
+ }
84
+
85
+
86
+ declare module '@tiptap/core' {
87
+ interface Commands<ReturnType> {
88
+ painter: {
89
+ setPainter: (marks: Mark[]) => ReturnType;
90
+ };
91
+ }
92
+ }
93
+
94
+
95
+ declare module '@tiptap/core' {
96
+ interface Commands<ReturnType> {
97
+ iframe: {
98
+ /**
99
+ * Add an iframe
100
+ */
101
+ setIframe: (options: {
102
+ src: string;
103
+ service: string;
104
+ }) => ReturnType;
105
+ };
106
+ }
107
+ }
108
+
109
+
110
+ declare module '@tiptap/core' {
111
+ interface Commands<ReturnType> {
112
+ imageUpload: {
113
+ /**
114
+ * Add an image
115
+ */
116
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
117
+ /**
118
+ * Update an image
119
+ */
120
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
121
+ /**
122
+ * Set image alignment
123
+ */
124
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
125
+ };
126
+ }
127
+ }
128
+
129
+
130
+ declare module '@tiptap/core' {
131
+ interface Commands<ReturnType> {
132
+ imageGifUpload: {
133
+ /**
134
+ * Add an image gif
135
+ */
136
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
137
+ /**
138
+ * Update an image gif
139
+ */
140
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
141
+ /**
142
+ * Set image alignment
143
+ */
144
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
145
+ };
146
+ }
147
+ }
148
+
149
+
150
+ declare module '@tiptap/core' {
151
+ interface Commands<ReturnType> {
152
+ indent: {
153
+ /**
154
+ * Set the indent attribute
155
+ */
156
+ indent: () => ReturnType;
157
+ /**
158
+ * Set the outdent attribute
159
+ */
160
+ outdent: () => ReturnType;
161
+ };
162
+ }
163
+ }
164
+
165
+
166
+ declare module '@tiptap/core' {
167
+ interface Commands<ReturnType> {
168
+ katex: {
169
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
170
+ };
171
+ }
172
+ }
173
+
174
+
175
+ declare module '@tiptap/core' {
176
+ interface Commands<ReturnType> {
177
+ lineHeight: {
178
+ setLineHeight: (lineHeight: string) => ReturnType;
179
+ unsetLineHeight: () => ReturnType;
180
+ };
181
+ }
182
+ }
183
+
184
+
185
+ declare module '@tiptap/core' {
186
+ interface Commands<ReturnType> {
187
+ mermaid: {
188
+ setMermaid: (options: any, replace?: any) => ReturnType;
189
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
190
+ };
191
+ }
192
+ }
193
+
194
+
195
+ declare module '@tiptap/core' {
196
+ interface Commands<ReturnType> {
197
+ columns: {
198
+ insertColumns: (attrs?: {
199
+ cols: number;
200
+ }) => ReturnType;
201
+ addColBefore: () => ReturnType;
202
+ addColAfter: () => ReturnType;
203
+ deleteCol: () => ReturnType;
204
+ };
205
+ }
206
+ }
207
+
208
+
209
+ declare module '@tiptap/core' {
210
+ interface Commands<ReturnType> {
211
+ search: {
212
+ setSearchTerm: (searchTerm: string) => ReturnType;
213
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
214
+ replace: () => ReturnType;
215
+ replaceAll: () => ReturnType;
216
+ goToPrevSearchResult: () => void;
217
+ goToNextSearchResult: () => void;
218
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
219
+ };
220
+ }
221
+ }
222
+
223
+
224
+ declare module '@tiptap/core' {
225
+ interface Commands<ReturnType> {
226
+ tableOfContents: {
227
+ setTableOfContents: () => ReturnType;
228
+ removeTableOfContents: () => ReturnType;
229
+ };
230
+ }
231
+ }
232
+
233
+
234
+ declare module '@tiptap/core' {
235
+ interface Commands<ReturnType> {
236
+ twitter: {
237
+ /**
238
+ * Insert a tweet
239
+ * @param options The tweet attributes
240
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
241
+ */
242
+ setTweet: (options: SetTweetOptions) => ReturnType;
243
+ updateTweet: (options: SetTweetOptions) => ReturnType;
244
+ };
245
+ }
246
+ }
247
+
248
+
249
+ declare module '@tiptap/core' {
250
+ interface Commands<ReturnType> {
251
+ video: {
252
+ /**
253
+ * Add an video
254
+ */
255
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
256
+ /**
257
+ * Update an video
258
+ */
259
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
260
+ };
261
+ }
262
+ }
263
+
264
+
265
+ declare module '@tiptap/core' {
266
+ interface Commands<ReturnType> {
267
+ tableCellBackground: {
268
+ setTableCellBackground: (color: string) => ReturnType;
269
+ unsetTableCellBackground: () => ReturnType;
270
+ };
271
+ }
272
+ }
@@ -0,0 +1,13 @@
1
+ import { N as o } from "./index-Drmyqk9P.js";
2
+ const t = o.create({
3
+ name: "doc",
4
+ topNode: !0,
5
+ content: "block+"
6
+ }), c = /* @__PURE__ */ t.extend({
7
+ content: "(block|columns)+"
8
+ // echo editor is a block editor
9
+ });
10
+ export {
11
+ c as Document,
12
+ c as default
13
+ };