reactjs-tiptap-editor 0.3.21 → 0.3.22
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.
- package/lib/{ActionMenuButton-BTFBZyG2.cjs → ActionMenuButton-B81uYOvt.cjs} +1 -1
- package/lib/{ActionMenuButton-DXwnYZhJ.js → ActionMenuButton-CtcDNq-L.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +41 -41
- package/lib/Attachment.d.ts +41 -41
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +41 -41
- package/lib/Blockquote.d.ts +41 -41
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +41 -41
- package/lib/Bold.d.ts +41 -41
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +41 -41
- package/lib/BulletList.d.ts +41 -41
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +41 -41
- package/lib/Clear.d.ts +41 -41
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +41 -41
- package/lib/Code.d.ts +41 -41
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +41 -41
- package/lib/CodeBlock.d.ts +41 -41
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +41 -41
- package/lib/CodeView.d.ts +41 -41
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +41 -41
- package/lib/Color.d.ts +41 -41
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +41 -41
- package/lib/Document.d.ts +41 -41
- package/lib/{Drawer-CVuwyG50.js → Drawer-BI_9XSqI.js} +1 -1
- package/lib/{Drawer-BrHHs2E9.cjs → Drawer-CHGZ5D6j.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +41 -41
- package/lib/Drawer.d.ts +41 -41
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +41 -41
- package/lib/Emoji.d.ts +41 -41
- package/lib/Emoji.js +116 -109
- package/lib/{Excalidraw-frMX4K62.js → Excalidraw-AIzEaOzF.js} +1 -1
- package/lib/{Excalidraw-Be_GDV4Q.cjs → Excalidraw-DOJiMnFl.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +41 -41
- package/lib/Excalidraw.d.ts +41 -41
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +41 -41
- package/lib/ExportPdf.d.ts +41 -41
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +41 -41
- package/lib/ExportWord.d.ts +41 -41
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +41 -41
- package/lib/FontFamily.d.ts +41 -41
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +41 -41
- package/lib/FontSize.d.ts +41 -41
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +41 -41
- package/lib/FormatPainter.d.ts +41 -41
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +41 -41
- package/lib/Heading.d.ts +41 -41
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +41 -41
- package/lib/Highlight.d.ts +41 -41
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +41 -41
- package/lib/History.d.ts +41 -41
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +41 -41
- package/lib/HorizontalRule.d.ts +41 -41
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +41 -41
- package/lib/Iframe.d.ts +41 -41
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +41 -41
- package/lib/Image.d.ts +41 -41
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +41 -41
- package/lib/ImageGif.d.ts +41 -41
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +41 -41
- package/lib/ImportWord.d.ts +41 -41
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +41 -41
- package/lib/Indent.d.ts +41 -41
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +41 -41
- package/lib/Italic.d.ts +41 -41
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +41 -41
- package/lib/Katex.d.ts +41 -41
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +41 -41
- package/lib/LineHeight.d.ts +41 -41
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +41 -41
- package/lib/Link.d.ts +41 -41
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +41 -41
- package/lib/ListItem.d.ts +41 -41
- package/lib/Mention.d.cts +41 -41
- package/lib/Mention.d.ts +41 -41
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +41 -41
- package/lib/Mermaid.d.ts +41 -41
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +41 -41
- package/lib/MoreMark.d.ts +41 -41
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +41 -41
- package/lib/MultiColumn.d.ts +41 -41
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +41 -41
- package/lib/OrderedList.d.ts +41 -41
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-DjTnd5Uu.js → RichTextEditor-CtxIf8pq.js} +5 -2
- package/lib/{RichTextEditor-CAxwVWUE.cjs → RichTextEditor-DtxJlApT.cjs} +5 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +41 -41
- package/lib/SearchAndReplace.d.ts +41 -41
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +41 -41
- package/lib/Selection.d.ts +41 -41
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +41 -41
- package/lib/SlashCommand.d.ts +41 -41
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +41 -41
- package/lib/Strike.d.ts +41 -41
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +41 -41
- package/lib/SubAndSuperScript.d.ts +41 -41
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +41 -41
- package/lib/Table.d.ts +41 -41
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +41 -41
- package/lib/TableOfContent.d.ts +41 -41
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +41 -41
- package/lib/TaskList.d.ts +41 -41
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +41 -41
- package/lib/TextAlign.d.ts +41 -41
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +41 -41
- package/lib/TextBubble.d.ts +41 -41
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +41 -41
- package/lib/TextDirection.d.ts +41 -41
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +41 -41
- package/lib/TextUnderline.d.ts +41 -41
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +41 -41
- package/lib/TrailingNode.d.ts +41 -41
- package/lib/{Twitter-dRxbZOad.js → Twitter-CJIud-WM.js} +1 -1
- package/lib/{Twitter-V0OzBT_E.cjs → Twitter-DBA28WG3.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +41 -41
- package/lib/Twitter.d.ts +41 -41
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +41 -41
- package/lib/Video.d.ts +41 -41
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +41 -41
- package/lib/bubble-extra.d.ts +41 -41
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +41 -41
- package/lib/index.d.ts +41 -41
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +41 -41
- package/lib/locale-bundle.d.ts +41 -41
- package/lib/style.css +1 -1
- package/lib/{textarea-BsJTSgT-.cjs → textarea-9iN67tad.cjs} +1 -1
- package/lib/{textarea-6c8drwXJ.js → textarea-BhTw-eGz.js} +1 -1
- package/package.json +2 -2
package/lib/Excalidraw.d.ts
CHANGED
|
@@ -45,11 +45,9 @@ declare module '@tiptap/core' {
|
|
|
45
45
|
|
|
46
46
|
declare module '@tiptap/core' {
|
|
47
47
|
interface Commands<ReturnType> {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
emoji: string;
|
|
52
|
-
}) => ReturnType;
|
|
48
|
+
drawer: {
|
|
49
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
50
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
53
51
|
};
|
|
54
52
|
}
|
|
55
53
|
}
|
|
@@ -57,9 +55,11 @@ declare module '@tiptap/core' {
|
|
|
57
55
|
|
|
58
56
|
declare module '@tiptap/core' {
|
|
59
57
|
interface Commands<ReturnType> {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
emoji: {
|
|
59
|
+
setEmoji: (emoji: {
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}) => ReturnType;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -110,6 +110,21 @@ declare module '@tiptap/core' {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
|
|
113
|
+
declare module '@tiptap/core' {
|
|
114
|
+
interface Commands<ReturnType> {
|
|
115
|
+
iframe: {
|
|
116
|
+
/**
|
|
117
|
+
* Add an iframe
|
|
118
|
+
*/
|
|
119
|
+
setIframe: (options: {
|
|
120
|
+
src: string;
|
|
121
|
+
service: string;
|
|
122
|
+
}) => ReturnType;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
|
|
113
128
|
declare module '@tiptap/core' {
|
|
114
129
|
interface Commands<ReturnType> {
|
|
115
130
|
imageUpload: {
|
|
@@ -130,21 +145,6 @@ declare module '@tiptap/core' {
|
|
|
130
145
|
}
|
|
131
146
|
|
|
132
147
|
|
|
133
|
-
declare module '@tiptap/core' {
|
|
134
|
-
interface Commands<ReturnType> {
|
|
135
|
-
iframe: {
|
|
136
|
-
/**
|
|
137
|
-
* Add an iframe
|
|
138
|
-
*/
|
|
139
|
-
setIframe: (options: {
|
|
140
|
-
src: string;
|
|
141
|
-
service: string;
|
|
142
|
-
}) => ReturnType;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
148
|
declare module '@tiptap/core' {
|
|
149
149
|
interface Commands<ReturnType> {
|
|
150
150
|
imageGifUpload: {
|
|
@@ -183,9 +183,8 @@ declare module '@tiptap/core' {
|
|
|
183
183
|
|
|
184
184
|
declare module '@tiptap/core' {
|
|
185
185
|
interface Commands<ReturnType> {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
unsetLineHeight: () => ReturnType;
|
|
186
|
+
katex: {
|
|
187
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
189
188
|
};
|
|
190
189
|
}
|
|
191
190
|
}
|
|
@@ -193,8 +192,9 @@ declare module '@tiptap/core' {
|
|
|
193
192
|
|
|
194
193
|
declare module '@tiptap/core' {
|
|
195
194
|
interface Commands<ReturnType> {
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
lineHeight: {
|
|
196
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
197
|
+
unsetLineHeight: () => ReturnType;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -251,14 +251,15 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
254
|
+
video: {
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
257
|
-
* @param options The tweet attributes
|
|
258
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
256
|
+
* Add an video
|
|
259
257
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
259
|
+
/**
|
|
260
|
+
* Update an video
|
|
261
|
+
*/
|
|
262
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
262
263
|
};
|
|
263
264
|
}
|
|
264
265
|
}
|
|
@@ -266,15 +267,14 @@ declare module '@tiptap/core' {
|
|
|
266
267
|
|
|
267
268
|
declare module '@tiptap/core' {
|
|
268
269
|
interface Commands<ReturnType> {
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Add an video
|
|
272
|
-
*/
|
|
273
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
270
|
+
twitter: {
|
|
274
271
|
/**
|
|
275
|
-
*
|
|
272
|
+
* Insert a tweet
|
|
273
|
+
* @param options The tweet attributes
|
|
274
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
276
275
|
*/
|
|
277
|
-
|
|
276
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
277
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
}
|
package/lib/Excalidraw.js
CHANGED
package/lib/ExportPdf.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-ByRfqzMr.cjs"),f=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-ByRfqzMr.cjs"),f=require("./RichTextEditor-DtxJlApT.cjs");function g(e,o){var i;const t=document.createElement("iframe");t.setAttribute("style","position: absolute; width: 0; height: 0; top: 0; left: 0;"),document.body.appendChild(t);const n=t.contentDocument||((i=t.contentWindow)==null?void 0:i.document);if(!n)return;const{paperSize:a,margins:{top:s,right:c,bottom:l,left:p}}=o,m=`
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
package/lib/ExportPdf.d.cts
CHANGED
|
@@ -119,11 +119,9 @@ declare module '@tiptap/core' {
|
|
|
119
119
|
|
|
120
120
|
declare module '@tiptap/core' {
|
|
121
121
|
interface Commands<ReturnType> {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
emoji: string;
|
|
126
|
-
}) => ReturnType;
|
|
122
|
+
drawer: {
|
|
123
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
124
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
127
125
|
};
|
|
128
126
|
}
|
|
129
127
|
}
|
|
@@ -131,9 +129,11 @@ declare module '@tiptap/core' {
|
|
|
131
129
|
|
|
132
130
|
declare module '@tiptap/core' {
|
|
133
131
|
interface Commands<ReturnType> {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
emoji: {
|
|
133
|
+
setEmoji: (emoji: {
|
|
134
|
+
name: string;
|
|
135
|
+
emoji: string;
|
|
136
|
+
}) => ReturnType;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -184,6 +184,21 @@ declare module '@tiptap/core' {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
|
|
187
|
+
declare module '@tiptap/core' {
|
|
188
|
+
interface Commands<ReturnType> {
|
|
189
|
+
iframe: {
|
|
190
|
+
/**
|
|
191
|
+
* Add an iframe
|
|
192
|
+
*/
|
|
193
|
+
setIframe: (options: {
|
|
194
|
+
src: string;
|
|
195
|
+
service: string;
|
|
196
|
+
}) => ReturnType;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
187
202
|
declare module '@tiptap/core' {
|
|
188
203
|
interface Commands<ReturnType> {
|
|
189
204
|
imageUpload: {
|
|
@@ -204,21 +219,6 @@ declare module '@tiptap/core' {
|
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
|
|
207
|
-
declare module '@tiptap/core' {
|
|
208
|
-
interface Commands<ReturnType> {
|
|
209
|
-
iframe: {
|
|
210
|
-
/**
|
|
211
|
-
* Add an iframe
|
|
212
|
-
*/
|
|
213
|
-
setIframe: (options: {
|
|
214
|
-
src: string;
|
|
215
|
-
service: string;
|
|
216
|
-
}) => ReturnType;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
222
|
declare module '@tiptap/core' {
|
|
223
223
|
interface Commands<ReturnType> {
|
|
224
224
|
imageGifUpload: {
|
|
@@ -257,9 +257,8 @@ declare module '@tiptap/core' {
|
|
|
257
257
|
|
|
258
258
|
declare module '@tiptap/core' {
|
|
259
259
|
interface Commands<ReturnType> {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
unsetLineHeight: () => ReturnType;
|
|
260
|
+
katex: {
|
|
261
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
263
262
|
};
|
|
264
263
|
}
|
|
265
264
|
}
|
|
@@ -267,8 +266,9 @@ declare module '@tiptap/core' {
|
|
|
267
266
|
|
|
268
267
|
declare module '@tiptap/core' {
|
|
269
268
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
lineHeight: {
|
|
270
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
271
|
+
unsetLineHeight: () => ReturnType;
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -325,14 +325,15 @@ declare module '@tiptap/core' {
|
|
|
325
325
|
|
|
326
326
|
declare module '@tiptap/core' {
|
|
327
327
|
interface Commands<ReturnType> {
|
|
328
|
-
|
|
328
|
+
video: {
|
|
329
329
|
/**
|
|
330
|
-
*
|
|
331
|
-
* @param options The tweet attributes
|
|
332
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
330
|
+
* Add an video
|
|
333
331
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
333
|
+
/**
|
|
334
|
+
* Update an video
|
|
335
|
+
*/
|
|
336
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
}
|
|
@@ -340,15 +341,14 @@ declare module '@tiptap/core' {
|
|
|
340
341
|
|
|
341
342
|
declare module '@tiptap/core' {
|
|
342
343
|
interface Commands<ReturnType> {
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Add an video
|
|
346
|
-
*/
|
|
347
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
344
|
+
twitter: {
|
|
348
345
|
/**
|
|
349
|
-
*
|
|
346
|
+
* Insert a tweet
|
|
347
|
+
* @param options The tweet attributes
|
|
348
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
350
349
|
*/
|
|
351
|
-
|
|
350
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
351
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
}
|
package/lib/ExportPdf.d.ts
CHANGED
|
@@ -119,11 +119,9 @@ declare module '@tiptap/core' {
|
|
|
119
119
|
|
|
120
120
|
declare module '@tiptap/core' {
|
|
121
121
|
interface Commands<ReturnType> {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
emoji: string;
|
|
126
|
-
}) => ReturnType;
|
|
122
|
+
drawer: {
|
|
123
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
124
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
127
125
|
};
|
|
128
126
|
}
|
|
129
127
|
}
|
|
@@ -131,9 +129,11 @@ declare module '@tiptap/core' {
|
|
|
131
129
|
|
|
132
130
|
declare module '@tiptap/core' {
|
|
133
131
|
interface Commands<ReturnType> {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
emoji: {
|
|
133
|
+
setEmoji: (emoji: {
|
|
134
|
+
name: string;
|
|
135
|
+
emoji: string;
|
|
136
|
+
}) => ReturnType;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -184,6 +184,21 @@ declare module '@tiptap/core' {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
|
|
187
|
+
declare module '@tiptap/core' {
|
|
188
|
+
interface Commands<ReturnType> {
|
|
189
|
+
iframe: {
|
|
190
|
+
/**
|
|
191
|
+
* Add an iframe
|
|
192
|
+
*/
|
|
193
|
+
setIframe: (options: {
|
|
194
|
+
src: string;
|
|
195
|
+
service: string;
|
|
196
|
+
}) => ReturnType;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
187
202
|
declare module '@tiptap/core' {
|
|
188
203
|
interface Commands<ReturnType> {
|
|
189
204
|
imageUpload: {
|
|
@@ -204,21 +219,6 @@ declare module '@tiptap/core' {
|
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
|
|
207
|
-
declare module '@tiptap/core' {
|
|
208
|
-
interface Commands<ReturnType> {
|
|
209
|
-
iframe: {
|
|
210
|
-
/**
|
|
211
|
-
* Add an iframe
|
|
212
|
-
*/
|
|
213
|
-
setIframe: (options: {
|
|
214
|
-
src: string;
|
|
215
|
-
service: string;
|
|
216
|
-
}) => ReturnType;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
222
|
declare module '@tiptap/core' {
|
|
223
223
|
interface Commands<ReturnType> {
|
|
224
224
|
imageGifUpload: {
|
|
@@ -257,9 +257,8 @@ declare module '@tiptap/core' {
|
|
|
257
257
|
|
|
258
258
|
declare module '@tiptap/core' {
|
|
259
259
|
interface Commands<ReturnType> {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
unsetLineHeight: () => ReturnType;
|
|
260
|
+
katex: {
|
|
261
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
263
262
|
};
|
|
264
263
|
}
|
|
265
264
|
}
|
|
@@ -267,8 +266,9 @@ declare module '@tiptap/core' {
|
|
|
267
266
|
|
|
268
267
|
declare module '@tiptap/core' {
|
|
269
268
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
lineHeight: {
|
|
270
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
271
|
+
unsetLineHeight: () => ReturnType;
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -325,14 +325,15 @@ declare module '@tiptap/core' {
|
|
|
325
325
|
|
|
326
326
|
declare module '@tiptap/core' {
|
|
327
327
|
interface Commands<ReturnType> {
|
|
328
|
-
|
|
328
|
+
video: {
|
|
329
329
|
/**
|
|
330
|
-
*
|
|
331
|
-
* @param options The tweet attributes
|
|
332
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
330
|
+
* Add an video
|
|
333
331
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
333
|
+
/**
|
|
334
|
+
* Update an video
|
|
335
|
+
*/
|
|
336
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
}
|
|
@@ -340,15 +341,14 @@ declare module '@tiptap/core' {
|
|
|
340
341
|
|
|
341
342
|
declare module '@tiptap/core' {
|
|
342
343
|
interface Commands<ReturnType> {
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Add an video
|
|
346
|
-
*/
|
|
347
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
344
|
+
twitter: {
|
|
348
345
|
/**
|
|
349
|
-
*
|
|
346
|
+
* Insert a tweet
|
|
347
|
+
* @param options The tweet attributes
|
|
348
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
350
349
|
*/
|
|
351
|
-
|
|
350
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
351
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
}
|
package/lib/ExportPdf.js
CHANGED
package/lib/ExportWord.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-DtxJlApT.cjs"),l=typeof window<"u";function c(o,e){if(l){const n=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),Promise.resolve()}return console.error("Download is not supported in Node.js"),Promise.resolve()}const u={...t.defaultNodes,hardBreak:t.defaultNodes.hard_break,codeBlock:t.defaultNodes.code_block,orderedList:t.defaultNodes.ordered_list,listItem:t.defaultNodes.list_item,bulletList:t.defaultNodes.bullet_list,horizontalRule:t.defaultNodes.horizontal_rule,image(o,e){o.renderInline(e),o.closeBlock(e)},table(o,e){o.table(e,{tableOptions:{width:{size:100,type:s.WidthType.PERCENTAGE}}})}},p=new t.DocxSerializer(u,t.defaultMarks),f=a.Extension.create({name:"exportWord",addOptions(){var o;return{...(o=this.parent)==null?void 0:o.call(this),button:({editor:e,t:n})=>({component:i.ActionButton,componentProps:{icon:"ExportWord",action:()=>{e==null||e.commands.exportToWord()},tooltip:n("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands(){return{exportToWord:()=>async({editor:o})=>{const e={getImageBuffer:async r=>{const d=await(await fetch(r)).arrayBuffer();return new Uint8Array(d)}},n=p.serialize(o.state.doc,e);return s.Packer.toBlob(n).then(r=>c(new Blob([r]),"export-document.docx")),!0}}}});exports.ExportWord=f;
|
package/lib/ExportWord.d.cts
CHANGED
|
@@ -108,11 +108,9 @@ declare module '@tiptap/core' {
|
|
|
108
108
|
|
|
109
109
|
declare module '@tiptap/core' {
|
|
110
110
|
interface Commands<ReturnType> {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
emoji: string;
|
|
115
|
-
}) => ReturnType;
|
|
111
|
+
drawer: {
|
|
112
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
113
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
116
114
|
};
|
|
117
115
|
}
|
|
118
116
|
}
|
|
@@ -120,9 +118,11 @@ declare module '@tiptap/core' {
|
|
|
120
118
|
|
|
121
119
|
declare module '@tiptap/core' {
|
|
122
120
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
emoji: {
|
|
122
|
+
setEmoji: (emoji: {
|
|
123
|
+
name: string;
|
|
124
|
+
emoji: string;
|
|
125
|
+
}) => ReturnType;
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -173,6 +173,21 @@ declare module '@tiptap/core' {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
|
|
176
|
+
declare module '@tiptap/core' {
|
|
177
|
+
interface Commands<ReturnType> {
|
|
178
|
+
iframe: {
|
|
179
|
+
/**
|
|
180
|
+
* Add an iframe
|
|
181
|
+
*/
|
|
182
|
+
setIframe: (options: {
|
|
183
|
+
src: string;
|
|
184
|
+
service: string;
|
|
185
|
+
}) => ReturnType;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
176
191
|
declare module '@tiptap/core' {
|
|
177
192
|
interface Commands<ReturnType> {
|
|
178
193
|
imageUpload: {
|
|
@@ -193,21 +208,6 @@ declare module '@tiptap/core' {
|
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
|
|
196
|
-
declare module '@tiptap/core' {
|
|
197
|
-
interface Commands<ReturnType> {
|
|
198
|
-
iframe: {
|
|
199
|
-
/**
|
|
200
|
-
* Add an iframe
|
|
201
|
-
*/
|
|
202
|
-
setIframe: (options: {
|
|
203
|
-
src: string;
|
|
204
|
-
service: string;
|
|
205
|
-
}) => ReturnType;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
211
211
|
declare module '@tiptap/core' {
|
|
212
212
|
interface Commands<ReturnType> {
|
|
213
213
|
imageGifUpload: {
|
|
@@ -246,9 +246,8 @@ declare module '@tiptap/core' {
|
|
|
246
246
|
|
|
247
247
|
declare module '@tiptap/core' {
|
|
248
248
|
interface Commands<ReturnType> {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
unsetLineHeight: () => ReturnType;
|
|
249
|
+
katex: {
|
|
250
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
252
251
|
};
|
|
253
252
|
}
|
|
254
253
|
}
|
|
@@ -256,8 +255,9 @@ declare module '@tiptap/core' {
|
|
|
256
255
|
|
|
257
256
|
declare module '@tiptap/core' {
|
|
258
257
|
interface Commands<ReturnType> {
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
lineHeight: {
|
|
259
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
260
|
+
unsetLineHeight: () => ReturnType;
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -314,14 +314,15 @@ declare module '@tiptap/core' {
|
|
|
314
314
|
|
|
315
315
|
declare module '@tiptap/core' {
|
|
316
316
|
interface Commands<ReturnType> {
|
|
317
|
-
|
|
317
|
+
video: {
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
320
|
-
* @param options The tweet attributes
|
|
321
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
319
|
+
* Add an video
|
|
322
320
|
*/
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
322
|
+
/**
|
|
323
|
+
* Update an video
|
|
324
|
+
*/
|
|
325
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
325
326
|
};
|
|
326
327
|
}
|
|
327
328
|
}
|
|
@@ -329,15 +330,14 @@ declare module '@tiptap/core' {
|
|
|
329
330
|
|
|
330
331
|
declare module '@tiptap/core' {
|
|
331
332
|
interface Commands<ReturnType> {
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Add an video
|
|
335
|
-
*/
|
|
336
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
333
|
+
twitter: {
|
|
337
334
|
/**
|
|
338
|
-
*
|
|
335
|
+
* Insert a tweet
|
|
336
|
+
* @param options The tweet attributes
|
|
337
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
339
338
|
*/
|
|
340
|
-
|
|
339
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
340
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
}
|