reactjs-tiptap-editor 0.3.26 → 0.3.28
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-C9tPWcDX.cjs → ActionMenuButton-C20molC9.cjs} +1 -1
- package/lib/{ActionMenuButton-DpFt8DwI.js → ActionMenuButton-D0hFczCn.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +41 -39
- package/lib/Attachment.d.ts +41 -39
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +41 -39
- package/lib/Blockquote.d.ts +41 -39
- package/lib/Blockquote.js +10 -10
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +41 -39
- package/lib/Bold.d.ts +41 -39
- package/lib/Bold.js +10 -10
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +41 -39
- package/lib/BulletList.d.ts +41 -39
- package/lib/BulletList.js +10 -10
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +41 -39
- package/lib/Clear.d.ts +41 -39
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +41 -39
- package/lib/Code.d.ts +41 -39
- package/lib/Code.js +21 -21
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +41 -39
- package/lib/CodeBlock.d.ts +41 -39
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +41 -39
- package/lib/CodeView.d.ts +41 -39
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +41 -39
- package/lib/Color.d.ts +41 -39
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +39 -39
- package/lib/Document.d.ts +39 -39
- package/lib/{Drawer-BQLKKEOB.cjs → Drawer-0kBt3GVL.cjs} +1 -1
- package/lib/{Drawer-BouNhUKq.js → Drawer-B96jQIQU.js} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +41 -39
- package/lib/Drawer.d.ts +41 -39
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +39 -39
- package/lib/Emoji.d.ts +39 -39
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-DYbRbH0x.cjs → Excalidraw-HK9kjpX5.cjs} +1 -1
- package/lib/{Excalidraw-u2P8Olgi.js → Excalidraw-z3VZyGJ4.js} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +39 -39
- package/lib/Excalidraw.d.ts +39 -39
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +41 -39
- package/lib/ExportPdf.d.ts +41 -39
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +41 -39
- package/lib/ExportWord.d.ts +41 -39
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +41 -39
- package/lib/FontFamily.d.ts +41 -39
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +41 -39
- package/lib/FontSize.d.ts +41 -39
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +41 -39
- package/lib/FormatPainter.d.ts +41 -39
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +41 -39
- package/lib/Heading.d.ts +41 -39
- package/lib/Heading.js +71 -68
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +45 -39
- package/lib/Highlight.d.ts +45 -39
- package/lib/Highlight.js +14 -13
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +41 -39
- package/lib/History.d.ts +41 -39
- package/lib/History.js +163 -160
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +41 -39
- package/lib/HorizontalRule.d.ts +41 -39
- package/lib/HorizontalRule.js +14 -14
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +39 -39
- package/lib/Iframe.d.ts +39 -39
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +41 -39
- package/lib/Image.d.ts +41 -39
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +39 -39
- package/lib/ImageGif.d.ts +39 -39
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.d.cts +41 -39
- package/lib/ImportWord.d.ts +41 -39
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +41 -39
- package/lib/Indent.d.ts +41 -39
- package/lib/Indent.js +12 -11
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +41 -39
- package/lib/Italic.d.ts +41 -39
- package/lib/Italic.js +13 -13
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +39 -39
- package/lib/Katex.d.ts +39 -39
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +41 -39
- package/lib/LineHeight.d.ts +41 -39
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +41 -39
- package/lib/Link.d.ts +41 -39
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +39 -39
- package/lib/ListItem.d.ts +39 -39
- package/lib/Mention.d.cts +39 -39
- package/lib/Mention.d.ts +39 -39
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +41 -39
- package/lib/Mermaid.d.ts +41 -39
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +41 -39
- package/lib/MoreMark.d.ts +41 -39
- package/lib/MoreMark.js +46 -45
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +39 -39
- package/lib/MultiColumn.d.ts +39 -39
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +41 -39
- package/lib/OrderedList.d.ts +41 -39
- package/lib/OrderedList.js +9 -9
- package/lib/RichTextEditor-BKywwUM4.cjs +140 -0
- package/lib/{RichTextEditor-VkzSL04E.js → RichTextEditor-CnWZ69eX.js} +1685 -1708
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +41 -39
- package/lib/SearchAndReplace.d.ts +41 -39
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +39 -39
- package/lib/Selection.d.ts +39 -39
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +39 -39
- package/lib/SlashCommand.d.ts +39 -39
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +41 -39
- package/lib/Strike.d.ts +41 -39
- package/lib/Strike.js +13 -13
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +41 -39
- package/lib/SubAndSuperScript.d.ts +41 -39
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +41 -39
- package/lib/Table.d.ts +41 -39
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +39 -39
- package/lib/TableOfContent.d.ts +39 -39
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +41 -39
- package/lib/TaskList.d.ts +41 -39
- package/lib/TaskList.js +15 -15
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +41 -39
- package/lib/TextAlign.d.ts +41 -39
- package/lib/TextAlign.js +41 -41
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +41 -39
- package/lib/TextBubble.d.ts +41 -39
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +39 -39
- package/lib/TextDirection.d.ts +39 -39
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +41 -39
- package/lib/TextUnderline.d.ts +41 -39
- package/lib/TextUnderline.js +8 -8
- package/lib/TrailingNode.d.cts +39 -39
- package/lib/TrailingNode.d.ts +39 -39
- package/lib/{Twitter-DlKz1fXJ.js → Twitter-CCf1aM0f.js} +1 -1
- package/lib/{Twitter-u_6ZejIn.cjs → Twitter-Dj49i3B9.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +39 -39
- package/lib/Twitter.d.ts +39 -39
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +41 -39
- package/lib/Video.d.ts +41 -39
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +39 -39
- package/lib/bubble-extra.d.ts +39 -39
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +58 -52
- package/lib/index.d.ts +58 -52
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +39 -39
- package/lib/locale-bundle.d.ts +39 -39
- package/lib/{textarea-ESw2TM_u.cjs → textarea-DhlS0JCr.cjs} +1 -1
- package/lib/{textarea-BA9ETXT8.js → textarea-nr3UZ7Wg.js} +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-8GrfwaB4.cjs +0 -140
package/lib/Excalidraw.d.cts
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
|
}
|
|
@@ -66,9 +64,11 @@ declare module '@tiptap/core' {
|
|
|
66
64
|
|
|
67
65
|
declare module '@tiptap/core' {
|
|
68
66
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
emoji: {
|
|
68
|
+
setEmoji: (emoji: {
|
|
69
|
+
name: string;
|
|
70
|
+
emoji: string;
|
|
71
|
+
}) => ReturnType;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -190,15 +190,6 @@ declare module '@tiptap/core' {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
|
|
193
|
-
declare module '@tiptap/core' {
|
|
194
|
-
interface Commands<ReturnType> {
|
|
195
|
-
katex: {
|
|
196
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
193
|
declare module '@tiptap/core' {
|
|
203
194
|
interface Commands<ReturnType> {
|
|
204
195
|
lineHeight: {
|
|
@@ -211,9 +202,8 @@ declare module '@tiptap/core' {
|
|
|
211
202
|
|
|
212
203
|
declare module '@tiptap/core' {
|
|
213
204
|
interface Commands<ReturnType> {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
205
|
+
katex: {
|
|
206
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
217
207
|
};
|
|
218
208
|
}
|
|
219
209
|
}
|
|
@@ -221,13 +211,9 @@ declare module '@tiptap/core' {
|
|
|
221
211
|
|
|
222
212
|
declare module '@tiptap/core' {
|
|
223
213
|
interface Commands<ReturnType> {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}) => ReturnType;
|
|
228
|
-
addColBefore: () => ReturnType;
|
|
229
|
-
addColAfter: () => ReturnType;
|
|
230
|
-
deleteCol: () => ReturnType;
|
|
214
|
+
mermaid: {
|
|
215
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
216
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
231
217
|
};
|
|
232
218
|
}
|
|
233
219
|
}
|
|
@@ -250,9 +236,13 @@ declare module '@tiptap/core' {
|
|
|
250
236
|
|
|
251
237
|
declare module '@tiptap/core' {
|
|
252
238
|
interface Commands<ReturnType> {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
239
|
+
columns: {
|
|
240
|
+
insertColumns: (attrs?: {
|
|
241
|
+
cols: number;
|
|
242
|
+
}) => ReturnType;
|
|
243
|
+
addColBefore: () => ReturnType;
|
|
244
|
+
addColAfter: () => ReturnType;
|
|
245
|
+
deleteCol: () => ReturnType;
|
|
256
246
|
};
|
|
257
247
|
}
|
|
258
248
|
}
|
|
@@ -260,15 +250,9 @@ declare module '@tiptap/core' {
|
|
|
260
250
|
|
|
261
251
|
declare module '@tiptap/core' {
|
|
262
252
|
interface Commands<ReturnType> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
*/
|
|
267
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
268
|
-
/**
|
|
269
|
-
* Update an video
|
|
270
|
-
*/
|
|
271
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
253
|
+
tableOfContents: {
|
|
254
|
+
setTableOfContents: () => ReturnType;
|
|
255
|
+
removeTableOfContents: () => ReturnType;
|
|
272
256
|
};
|
|
273
257
|
}
|
|
274
258
|
}
|
|
@@ -289,6 +273,22 @@ declare module '@tiptap/core' {
|
|
|
289
273
|
}
|
|
290
274
|
|
|
291
275
|
|
|
276
|
+
declare module '@tiptap/core' {
|
|
277
|
+
interface Commands<ReturnType> {
|
|
278
|
+
video: {
|
|
279
|
+
/**
|
|
280
|
+
* Add an video
|
|
281
|
+
*/
|
|
282
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
283
|
+
/**
|
|
284
|
+
* Update an video
|
|
285
|
+
*/
|
|
286
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
|
|
292
292
|
declare module '@tiptap/core' {
|
|
293
293
|
interface Commands<ReturnType> {
|
|
294
294
|
tableCellBackground: {
|
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
|
}
|
|
@@ -66,9 +64,11 @@ declare module '@tiptap/core' {
|
|
|
66
64
|
|
|
67
65
|
declare module '@tiptap/core' {
|
|
68
66
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
emoji: {
|
|
68
|
+
setEmoji: (emoji: {
|
|
69
|
+
name: string;
|
|
70
|
+
emoji: string;
|
|
71
|
+
}) => ReturnType;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -190,15 +190,6 @@ declare module '@tiptap/core' {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
|
|
193
|
-
declare module '@tiptap/core' {
|
|
194
|
-
interface Commands<ReturnType> {
|
|
195
|
-
katex: {
|
|
196
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
193
|
declare module '@tiptap/core' {
|
|
203
194
|
interface Commands<ReturnType> {
|
|
204
195
|
lineHeight: {
|
|
@@ -211,9 +202,8 @@ declare module '@tiptap/core' {
|
|
|
211
202
|
|
|
212
203
|
declare module '@tiptap/core' {
|
|
213
204
|
interface Commands<ReturnType> {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
205
|
+
katex: {
|
|
206
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
217
207
|
};
|
|
218
208
|
}
|
|
219
209
|
}
|
|
@@ -221,13 +211,9 @@ declare module '@tiptap/core' {
|
|
|
221
211
|
|
|
222
212
|
declare module '@tiptap/core' {
|
|
223
213
|
interface Commands<ReturnType> {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}) => ReturnType;
|
|
228
|
-
addColBefore: () => ReturnType;
|
|
229
|
-
addColAfter: () => ReturnType;
|
|
230
|
-
deleteCol: () => ReturnType;
|
|
214
|
+
mermaid: {
|
|
215
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
216
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
231
217
|
};
|
|
232
218
|
}
|
|
233
219
|
}
|
|
@@ -250,9 +236,13 @@ declare module '@tiptap/core' {
|
|
|
250
236
|
|
|
251
237
|
declare module '@tiptap/core' {
|
|
252
238
|
interface Commands<ReturnType> {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
239
|
+
columns: {
|
|
240
|
+
insertColumns: (attrs?: {
|
|
241
|
+
cols: number;
|
|
242
|
+
}) => ReturnType;
|
|
243
|
+
addColBefore: () => ReturnType;
|
|
244
|
+
addColAfter: () => ReturnType;
|
|
245
|
+
deleteCol: () => ReturnType;
|
|
256
246
|
};
|
|
257
247
|
}
|
|
258
248
|
}
|
|
@@ -260,15 +250,9 @@ declare module '@tiptap/core' {
|
|
|
260
250
|
|
|
261
251
|
declare module '@tiptap/core' {
|
|
262
252
|
interface Commands<ReturnType> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
*/
|
|
267
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
268
|
-
/**
|
|
269
|
-
* Update an video
|
|
270
|
-
*/
|
|
271
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
253
|
+
tableOfContents: {
|
|
254
|
+
setTableOfContents: () => ReturnType;
|
|
255
|
+
removeTableOfContents: () => ReturnType;
|
|
272
256
|
};
|
|
273
257
|
}
|
|
274
258
|
}
|
|
@@ -289,6 +273,22 @@ declare module '@tiptap/core' {
|
|
|
289
273
|
}
|
|
290
274
|
|
|
291
275
|
|
|
276
|
+
declare module '@tiptap/core' {
|
|
277
|
+
interface Commands<ReturnType> {
|
|
278
|
+
video: {
|
|
279
|
+
/**
|
|
280
|
+
* Add an video
|
|
281
|
+
*/
|
|
282
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
283
|
+
/**
|
|
284
|
+
* Update an video
|
|
285
|
+
*/
|
|
286
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
|
|
292
292
|
declare module '@tiptap/core' {
|
|
293
293
|
interface Commands<ReturnType> {
|
|
294
294
|
tableCellBackground: {
|
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 g=require("./index-ByRfqzMr.cjs"),b=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-ByRfqzMr.cjs"),b=require("./RichTextEditor-BKywwUM4.cjs");function y(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,title:c="Echo Editor",margins:{top:l,right:p,bottom:m,left:h}}=o,u=`
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
package/lib/ExportPdf.d.cts
CHANGED
|
@@ -79,6 +79,8 @@ declare interface GeneralOptions<T> {
|
|
|
79
79
|
button: ButtonView<T>;
|
|
80
80
|
/** Show on Toolbar */
|
|
81
81
|
toolbar?: boolean;
|
|
82
|
+
/** Shortcut keys override */
|
|
83
|
+
shortcutKeys?: string[] | string[][];
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
declare type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
|
|
@@ -120,11 +122,9 @@ declare module '@tiptap/core' {
|
|
|
120
122
|
|
|
121
123
|
declare module '@tiptap/core' {
|
|
122
124
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
emoji: string;
|
|
127
|
-
}) => ReturnType;
|
|
125
|
+
drawer: {
|
|
126
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
127
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -141,9 +141,11 @@ declare module '@tiptap/core' {
|
|
|
141
141
|
|
|
142
142
|
declare module '@tiptap/core' {
|
|
143
143
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
emoji: {
|
|
145
|
+
setEmoji: (emoji: {
|
|
146
|
+
name: string;
|
|
147
|
+
emoji: string;
|
|
148
|
+
}) => ReturnType;
|
|
147
149
|
};
|
|
148
150
|
}
|
|
149
151
|
}
|
|
@@ -265,15 +267,6 @@ declare module '@tiptap/core' {
|
|
|
265
267
|
}
|
|
266
268
|
|
|
267
269
|
|
|
268
|
-
declare module '@tiptap/core' {
|
|
269
|
-
interface Commands<ReturnType> {
|
|
270
|
-
katex: {
|
|
271
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
270
|
declare module '@tiptap/core' {
|
|
278
271
|
interface Commands<ReturnType> {
|
|
279
272
|
lineHeight: {
|
|
@@ -286,9 +279,8 @@ declare module '@tiptap/core' {
|
|
|
286
279
|
|
|
287
280
|
declare module '@tiptap/core' {
|
|
288
281
|
interface Commands<ReturnType> {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
282
|
+
katex: {
|
|
283
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
292
284
|
};
|
|
293
285
|
}
|
|
294
286
|
}
|
|
@@ -296,13 +288,9 @@ declare module '@tiptap/core' {
|
|
|
296
288
|
|
|
297
289
|
declare module '@tiptap/core' {
|
|
298
290
|
interface Commands<ReturnType> {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}) => ReturnType;
|
|
303
|
-
addColBefore: () => ReturnType;
|
|
304
|
-
addColAfter: () => ReturnType;
|
|
305
|
-
deleteCol: () => ReturnType;
|
|
291
|
+
mermaid: {
|
|
292
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
293
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
306
294
|
};
|
|
307
295
|
}
|
|
308
296
|
}
|
|
@@ -325,9 +313,13 @@ declare module '@tiptap/core' {
|
|
|
325
313
|
|
|
326
314
|
declare module '@tiptap/core' {
|
|
327
315
|
interface Commands<ReturnType> {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
316
|
+
columns: {
|
|
317
|
+
insertColumns: (attrs?: {
|
|
318
|
+
cols: number;
|
|
319
|
+
}) => ReturnType;
|
|
320
|
+
addColBefore: () => ReturnType;
|
|
321
|
+
addColAfter: () => ReturnType;
|
|
322
|
+
deleteCol: () => ReturnType;
|
|
331
323
|
};
|
|
332
324
|
}
|
|
333
325
|
}
|
|
@@ -335,15 +327,9 @@ declare module '@tiptap/core' {
|
|
|
335
327
|
|
|
336
328
|
declare module '@tiptap/core' {
|
|
337
329
|
interface Commands<ReturnType> {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
*/
|
|
342
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
343
|
-
/**
|
|
344
|
-
* Update an video
|
|
345
|
-
*/
|
|
346
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
330
|
+
tableOfContents: {
|
|
331
|
+
setTableOfContents: () => ReturnType;
|
|
332
|
+
removeTableOfContents: () => ReturnType;
|
|
347
333
|
};
|
|
348
334
|
}
|
|
349
335
|
}
|
|
@@ -364,6 +350,22 @@ declare module '@tiptap/core' {
|
|
|
364
350
|
}
|
|
365
351
|
|
|
366
352
|
|
|
353
|
+
declare module '@tiptap/core' {
|
|
354
|
+
interface Commands<ReturnType> {
|
|
355
|
+
video: {
|
|
356
|
+
/**
|
|
357
|
+
* Add an video
|
|
358
|
+
*/
|
|
359
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
360
|
+
/**
|
|
361
|
+
* Update an video
|
|
362
|
+
*/
|
|
363
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
367
369
|
declare module '@tiptap/core' {
|
|
368
370
|
interface Commands<ReturnType> {
|
|
369
371
|
tableCellBackground: {
|
package/lib/ExportPdf.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ declare interface GeneralOptions<T> {
|
|
|
79
79
|
button: ButtonView<T>;
|
|
80
80
|
/** Show on Toolbar */
|
|
81
81
|
toolbar?: boolean;
|
|
82
|
+
/** Shortcut keys override */
|
|
83
|
+
shortcutKeys?: string[] | string[][];
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
declare type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
|
|
@@ -120,11 +122,9 @@ declare module '@tiptap/core' {
|
|
|
120
122
|
|
|
121
123
|
declare module '@tiptap/core' {
|
|
122
124
|
interface Commands<ReturnType> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
emoji: string;
|
|
127
|
-
}) => ReturnType;
|
|
125
|
+
drawer: {
|
|
126
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
127
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -141,9 +141,11 @@ declare module '@tiptap/core' {
|
|
|
141
141
|
|
|
142
142
|
declare module '@tiptap/core' {
|
|
143
143
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
emoji: {
|
|
145
|
+
setEmoji: (emoji: {
|
|
146
|
+
name: string;
|
|
147
|
+
emoji: string;
|
|
148
|
+
}) => ReturnType;
|
|
147
149
|
};
|
|
148
150
|
}
|
|
149
151
|
}
|
|
@@ -265,15 +267,6 @@ declare module '@tiptap/core' {
|
|
|
265
267
|
}
|
|
266
268
|
|
|
267
269
|
|
|
268
|
-
declare module '@tiptap/core' {
|
|
269
|
-
interface Commands<ReturnType> {
|
|
270
|
-
katex: {
|
|
271
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
270
|
declare module '@tiptap/core' {
|
|
278
271
|
interface Commands<ReturnType> {
|
|
279
272
|
lineHeight: {
|
|
@@ -286,9 +279,8 @@ declare module '@tiptap/core' {
|
|
|
286
279
|
|
|
287
280
|
declare module '@tiptap/core' {
|
|
288
281
|
interface Commands<ReturnType> {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
282
|
+
katex: {
|
|
283
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
292
284
|
};
|
|
293
285
|
}
|
|
294
286
|
}
|
|
@@ -296,13 +288,9 @@ declare module '@tiptap/core' {
|
|
|
296
288
|
|
|
297
289
|
declare module '@tiptap/core' {
|
|
298
290
|
interface Commands<ReturnType> {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}) => ReturnType;
|
|
303
|
-
addColBefore: () => ReturnType;
|
|
304
|
-
addColAfter: () => ReturnType;
|
|
305
|
-
deleteCol: () => ReturnType;
|
|
291
|
+
mermaid: {
|
|
292
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
293
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
306
294
|
};
|
|
307
295
|
}
|
|
308
296
|
}
|
|
@@ -325,9 +313,13 @@ declare module '@tiptap/core' {
|
|
|
325
313
|
|
|
326
314
|
declare module '@tiptap/core' {
|
|
327
315
|
interface Commands<ReturnType> {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
316
|
+
columns: {
|
|
317
|
+
insertColumns: (attrs?: {
|
|
318
|
+
cols: number;
|
|
319
|
+
}) => ReturnType;
|
|
320
|
+
addColBefore: () => ReturnType;
|
|
321
|
+
addColAfter: () => ReturnType;
|
|
322
|
+
deleteCol: () => ReturnType;
|
|
331
323
|
};
|
|
332
324
|
}
|
|
333
325
|
}
|
|
@@ -335,15 +327,9 @@ declare module '@tiptap/core' {
|
|
|
335
327
|
|
|
336
328
|
declare module '@tiptap/core' {
|
|
337
329
|
interface Commands<ReturnType> {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
*/
|
|
342
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
343
|
-
/**
|
|
344
|
-
* Update an video
|
|
345
|
-
*/
|
|
346
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
330
|
+
tableOfContents: {
|
|
331
|
+
setTableOfContents: () => ReturnType;
|
|
332
|
+
removeTableOfContents: () => ReturnType;
|
|
347
333
|
};
|
|
348
334
|
}
|
|
349
335
|
}
|
|
@@ -364,6 +350,22 @@ declare module '@tiptap/core' {
|
|
|
364
350
|
}
|
|
365
351
|
|
|
366
352
|
|
|
353
|
+
declare module '@tiptap/core' {
|
|
354
|
+
interface Commands<ReturnType> {
|
|
355
|
+
video: {
|
|
356
|
+
/**
|
|
357
|
+
* Add an video
|
|
358
|
+
*/
|
|
359
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
360
|
+
/**
|
|
361
|
+
* Update an video
|
|
362
|
+
*/
|
|
363
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
367
369
|
declare module '@tiptap/core' {
|
|
368
370
|
interface Commands<ReturnType> {
|
|
369
371
|
tableCellBackground: {
|
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-BKywwUM4.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;
|