reactjs-tiptap-editor 0.3.22 → 0.3.24
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-CtcDNq-L.js → ActionMenuButton-BW1lNB_I.js} +1 -1
- package/lib/{ActionMenuButton-B81uYOvt.cjs → ActionMenuButton-BqO6QTnX.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +29 -29
- package/lib/Attachment.d.ts +29 -29
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +29 -29
- package/lib/Blockquote.d.ts +29 -29
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +29 -29
- package/lib/Bold.d.ts +29 -29
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +29 -29
- package/lib/BulletList.d.ts +29 -29
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +29 -29
- package/lib/Clear.d.ts +29 -29
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +29 -29
- package/lib/Code.d.ts +29 -29
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +29 -29
- package/lib/CodeBlock.d.ts +29 -29
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +29 -29
- package/lib/CodeView.d.ts +29 -29
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +29 -29
- package/lib/Color.d.ts +29 -29
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +29 -29
- package/lib/Document.d.ts +29 -29
- package/lib/{Drawer-CHGZ5D6j.cjs → Drawer-B1rmIQfS.cjs} +1 -1
- package/lib/{Drawer-BI_9XSqI.js → Drawer-DEqRsjHw.js} +10 -10
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +29 -29
- package/lib/Drawer.d.ts +29 -29
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +29 -29
- package/lib/Emoji.d.ts +29 -29
- package/lib/Emoji.js +2 -2
- package/lib/{Excalidraw-AIzEaOzF.js → Excalidraw-D2y-x-OZ.js} +2 -2
- package/lib/{Excalidraw-DOJiMnFl.cjs → Excalidraw-Qr5vHe9J.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +29 -29
- package/lib/Excalidraw.d.ts +29 -29
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +29 -29
- package/lib/ExportPdf.d.ts +29 -29
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +29 -29
- package/lib/ExportWord.d.ts +29 -29
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +29 -29
- package/lib/FontFamily.d.ts +29 -29
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +29 -29
- package/lib/FontSize.d.ts +29 -29
- package/lib/FontSize.js +3 -3
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +29 -29
- package/lib/FormatPainter.d.ts +29 -29
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +29 -29
- package/lib/Heading.d.ts +29 -29
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +29 -29
- package/lib/Highlight.d.ts +29 -29
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +29 -29
- package/lib/History.d.ts +29 -29
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +29 -29
- package/lib/HorizontalRule.d.ts +29 -29
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +29 -29
- package/lib/Iframe.d.ts +29 -29
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +29 -29
- package/lib/Image.d.ts +29 -29
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +29 -29
- package/lib/ImageGif.d.ts +29 -29
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +29 -29
- package/lib/ImportWord.d.ts +29 -29
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +29 -29
- package/lib/Indent.d.ts +29 -29
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +29 -29
- package/lib/Italic.d.ts +29 -29
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +29 -29
- package/lib/Katex.d.ts +29 -29
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +29 -29
- package/lib/LineHeight.d.ts +29 -29
- package/lib/LineHeight.js +6 -6
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +29 -29
- package/lib/Link.d.ts +29 -29
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +29 -29
- package/lib/ListItem.d.ts +29 -29
- package/lib/Mention.d.cts +29 -29
- package/lib/Mention.d.ts +29 -29
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +29 -29
- package/lib/Mermaid.d.ts +29 -29
- package/lib/Mermaid.js +14 -14
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +29 -29
- package/lib/MoreMark.d.ts +29 -29
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +29 -29
- package/lib/MultiColumn.d.ts +29 -29
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +29 -29
- package/lib/OrderedList.d.ts +29 -29
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-DtxJlApT.cjs → RichTextEditor-CSA367l8.cjs} +2 -2
- package/lib/{RichTextEditor-CtxIf8pq.js → RichTextEditor-CrDGx-K7.js} +4 -4
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +29 -29
- package/lib/SearchAndReplace.d.ts +29 -29
- package/lib/SearchAndReplace.js +2 -2
- package/lib/Selection.d.cts +29 -29
- package/lib/Selection.d.ts +29 -29
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +29 -29
- package/lib/SlashCommand.d.ts +29 -29
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +29 -29
- package/lib/Strike.d.ts +29 -29
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +29 -29
- package/lib/SubAndSuperScript.d.ts +29 -29
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +29 -29
- package/lib/Table.d.ts +29 -29
- package/lib/Table.js +531 -531
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +29 -29
- package/lib/TableOfContent.d.ts +29 -29
- package/lib/TableOfContent.js +2 -2
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +29 -29
- package/lib/TaskList.d.ts +29 -29
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +29 -29
- package/lib/TextAlign.d.ts +29 -29
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +29 -29
- package/lib/TextBubble.d.ts +29 -29
- package/lib/TextBubble.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +29 -29
- package/lib/TextDirection.d.ts +29 -29
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +29 -29
- package/lib/TextUnderline.d.ts +29 -29
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +29 -29
- package/lib/TrailingNode.d.ts +29 -29
- package/lib/{Twitter-DBA28WG3.cjs → Twitter-BRF2Ehp3.cjs} +1 -1
- package/lib/{Twitter-CJIud-WM.js → Twitter-D-kqw1ZB.js} +2 -2
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +29 -29
- package/lib/Twitter.d.ts +29 -29
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +29 -29
- package/lib/Video.d.ts +29 -29
- package/lib/Video.js +2 -2
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +29 -29
- package/lib/bubble-extra.d.ts +29 -29
- package/lib/bubble-extra.js +6 -6
- package/lib/{index-Tj3Ci7xM.js → index-CsK90iVd.js} +306 -128
- package/lib/index-D_A0TBRA.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +29 -29
- package/lib/index.d.ts +29 -29
- package/lib/index.js +3 -3
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +208 -30
- package/lib/locale-bundle.d.ts +208 -30
- package/lib/locale-bundle.js +2 -1
- package/lib/{textarea-BhTw-eGz.js → textarea-06Uv95yx.js} +1 -1
- package/lib/{textarea-9iN67tad.cjs → textarea-QE8jlGEs.cjs} +1 -1
- package/package.json +1 -1
- package/lib/index-C19MB4Al.cjs +0 -1
package/lib/LineHeight.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { T as f, A as H, E as L } from "./index-DI9T3iLd.js";
|
|
2
|
-
import { u as x,
|
|
2
|
+
import { u as x, k as g, m as T } from "./index-CsK90iVd.js";
|
|
3
3
|
import { jsxs as b, jsx as h } from "react/jsx-runtime";
|
|
4
4
|
import { useState as p, useMemo as _ } from "react";
|
|
5
|
-
import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-
|
|
5
|
+
import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-CrDGx-K7.js";
|
|
6
6
|
function y(e) {
|
|
7
7
|
return Number.parseFloat(e.replace("%", "")) / 100;
|
|
8
8
|
}
|
|
@@ -63,7 +63,7 @@ function N(e, t) {
|
|
|
63
63
|
const { selection: n, doc: s } = e;
|
|
64
64
|
if (!n || !s || !(n instanceof f || n instanceof H))
|
|
65
65
|
return e;
|
|
66
|
-
const { from: o, to: c } = n, i = [], u = t && t !==
|
|
66
|
+
const { from: o, to: c } = n, i = [], u = t && t !== g ? t : null;
|
|
67
67
|
if (s.nodesBetween(o, c, (a, l) => {
|
|
68
68
|
const r = a.type;
|
|
69
69
|
return I.includes(r.name) ? ((a.attrs.lineHeight || null) !== u && i.push({
|
|
@@ -74,12 +74,12 @@ function N(e, t) {
|
|
|
74
74
|
}), i.length === 0)
|
|
75
75
|
return e;
|
|
76
76
|
for (const a of i) {
|
|
77
|
-
const { node: l, pos: r, nodeType:
|
|
77
|
+
const { node: l, pos: r, nodeType: m } = a;
|
|
78
78
|
let { attrs: d } = l;
|
|
79
79
|
d = {
|
|
80
80
|
...d,
|
|
81
81
|
lineHeight: u
|
|
82
|
-
}, e = e.setNodeMarkup(r,
|
|
82
|
+
}, e = e.setNodeMarkup(r, m, d, l.marks);
|
|
83
83
|
}
|
|
84
84
|
return e;
|
|
85
85
|
}
|
|
@@ -98,7 +98,7 @@ const z = /* @__PURE__ */ L.create({
|
|
|
98
98
|
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
99
99
|
types: ["paragraph", "heading", "list_item", "todo_item"],
|
|
100
100
|
lineHeights: T,
|
|
101
|
-
defaultHeight:
|
|
101
|
+
defaultHeight: g,
|
|
102
102
|
button({ editor: t, t: n }) {
|
|
103
103
|
return {
|
|
104
104
|
component: k,
|
package/lib/Link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-ByRfqzMr.cjs");const e=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-ByRfqzMr.cjs");const e=require("./RichTextEditor-CSA367l8.cjs");exports.Link=e.Link;exports.default=e.Link;
|
package/lib/Link.d.cts
CHANGED
|
@@ -122,11 +122,8 @@ declare module '@tiptap/core' {
|
|
|
122
122
|
|
|
123
123
|
declare module '@tiptap/core' {
|
|
124
124
|
interface Commands<ReturnType> {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
name: string;
|
|
128
|
-
emoji: string;
|
|
129
|
-
}) => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
130
127
|
};
|
|
131
128
|
}
|
|
132
129
|
}
|
|
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
|
|
|
134
131
|
|
|
135
132
|
declare module '@tiptap/core' {
|
|
136
133
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
emoji: {
|
|
135
|
+
setEmoji: (emoji: {
|
|
136
|
+
name: string;
|
|
137
|
+
emoji: string;
|
|
138
|
+
}) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -232,6 +232,15 @@ declare module '@tiptap/core' {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
|
|
235
|
+
declare module '@tiptap/core' {
|
|
236
|
+
interface Commands<ReturnType> {
|
|
237
|
+
katex: {
|
|
238
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
235
244
|
declare module '@tiptap/core' {
|
|
236
245
|
interface Commands<ReturnType> {
|
|
237
246
|
indent: {
|
|
@@ -248,15 +257,6 @@ declare module '@tiptap/core' {
|
|
|
248
257
|
}
|
|
249
258
|
|
|
250
259
|
|
|
251
|
-
declare module '@tiptap/core' {
|
|
252
|
-
interface Commands<ReturnType> {
|
|
253
|
-
katex: {
|
|
254
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
260
|
declare module '@tiptap/core' {
|
|
261
261
|
interface Commands<ReturnType> {
|
|
262
262
|
lineHeight: {
|
|
@@ -318,15 +318,14 @@ declare module '@tiptap/core' {
|
|
|
318
318
|
|
|
319
319
|
declare module '@tiptap/core' {
|
|
320
320
|
interface Commands<ReturnType> {
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Add an video
|
|
324
|
-
*/
|
|
325
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
321
|
+
twitter: {
|
|
326
322
|
/**
|
|
327
|
-
*
|
|
323
|
+
* Insert a tweet
|
|
324
|
+
* @param options The tweet attributes
|
|
325
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
328
326
|
*/
|
|
329
|
-
|
|
327
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
328
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
330
329
|
};
|
|
331
330
|
}
|
|
332
331
|
}
|
|
@@ -334,14 +333,15 @@ declare module '@tiptap/core' {
|
|
|
334
333
|
|
|
335
334
|
declare module '@tiptap/core' {
|
|
336
335
|
interface Commands<ReturnType> {
|
|
337
|
-
|
|
336
|
+
video: {
|
|
338
337
|
/**
|
|
339
|
-
*
|
|
340
|
-
* @param options The tweet attributes
|
|
341
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
338
|
+
* Add an video
|
|
342
339
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
341
|
+
/**
|
|
342
|
+
* Update an video
|
|
343
|
+
*/
|
|
344
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
}
|
package/lib/Link.d.ts
CHANGED
|
@@ -122,11 +122,8 @@ declare module '@tiptap/core' {
|
|
|
122
122
|
|
|
123
123
|
declare module '@tiptap/core' {
|
|
124
124
|
interface Commands<ReturnType> {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
name: string;
|
|
128
|
-
emoji: string;
|
|
129
|
-
}) => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
130
127
|
};
|
|
131
128
|
}
|
|
132
129
|
}
|
|
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
|
|
|
134
131
|
|
|
135
132
|
declare module '@tiptap/core' {
|
|
136
133
|
interface Commands<ReturnType> {
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
emoji: {
|
|
135
|
+
setEmoji: (emoji: {
|
|
136
|
+
name: string;
|
|
137
|
+
emoji: string;
|
|
138
|
+
}) => ReturnType;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -232,6 +232,15 @@ declare module '@tiptap/core' {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
|
|
235
|
+
declare module '@tiptap/core' {
|
|
236
|
+
interface Commands<ReturnType> {
|
|
237
|
+
katex: {
|
|
238
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
235
244
|
declare module '@tiptap/core' {
|
|
236
245
|
interface Commands<ReturnType> {
|
|
237
246
|
indent: {
|
|
@@ -248,15 +257,6 @@ declare module '@tiptap/core' {
|
|
|
248
257
|
}
|
|
249
258
|
|
|
250
259
|
|
|
251
|
-
declare module '@tiptap/core' {
|
|
252
|
-
interface Commands<ReturnType> {
|
|
253
|
-
katex: {
|
|
254
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
260
|
declare module '@tiptap/core' {
|
|
261
261
|
interface Commands<ReturnType> {
|
|
262
262
|
lineHeight: {
|
|
@@ -318,15 +318,14 @@ declare module '@tiptap/core' {
|
|
|
318
318
|
|
|
319
319
|
declare module '@tiptap/core' {
|
|
320
320
|
interface Commands<ReturnType> {
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Add an video
|
|
324
|
-
*/
|
|
325
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
321
|
+
twitter: {
|
|
326
322
|
/**
|
|
327
|
-
*
|
|
323
|
+
* Insert a tweet
|
|
324
|
+
* @param options The tweet attributes
|
|
325
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
328
326
|
*/
|
|
329
|
-
|
|
327
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
328
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
330
329
|
};
|
|
331
330
|
}
|
|
332
331
|
}
|
|
@@ -334,14 +333,15 @@ declare module '@tiptap/core' {
|
|
|
334
333
|
|
|
335
334
|
declare module '@tiptap/core' {
|
|
336
335
|
interface Commands<ReturnType> {
|
|
337
|
-
|
|
336
|
+
video: {
|
|
338
337
|
/**
|
|
339
|
-
*
|
|
340
|
-
* @param options The tweet attributes
|
|
341
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
338
|
+
* Add an video
|
|
342
339
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
341
|
+
/**
|
|
342
|
+
* Update an video
|
|
343
|
+
*/
|
|
344
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
}
|
package/lib/Link.js
CHANGED
package/lib/ListItem.d.cts
CHANGED
|
@@ -46,11 +46,8 @@ declare module '@tiptap/core' {
|
|
|
46
46
|
|
|
47
47
|
declare module '@tiptap/core' {
|
|
48
48
|
interface Commands<ReturnType> {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
name: string;
|
|
52
|
-
emoji: string;
|
|
53
|
-
}) => ReturnType;
|
|
49
|
+
excalidraw: {
|
|
50
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
}
|
|
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
|
|
|
58
55
|
|
|
59
56
|
declare module '@tiptap/core' {
|
|
60
57
|
interface Commands<ReturnType> {
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
emoji: {
|
|
59
|
+
setEmoji: (emoji: {
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}) => ReturnType;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -156,6 +156,15 @@ declare module '@tiptap/core' {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
|
|
159
|
+
declare module '@tiptap/core' {
|
|
160
|
+
interface Commands<ReturnType> {
|
|
161
|
+
katex: {
|
|
162
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
159
168
|
declare module '@tiptap/core' {
|
|
160
169
|
interface Commands<ReturnType> {
|
|
161
170
|
indent: {
|
|
@@ -172,15 +181,6 @@ declare module '@tiptap/core' {
|
|
|
172
181
|
}
|
|
173
182
|
|
|
174
183
|
|
|
175
|
-
declare module '@tiptap/core' {
|
|
176
|
-
interface Commands<ReturnType> {
|
|
177
|
-
katex: {
|
|
178
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
184
|
declare module '@tiptap/core' {
|
|
185
185
|
interface Commands<ReturnType> {
|
|
186
186
|
lineHeight: {
|
|
@@ -242,15 +242,14 @@ declare module '@tiptap/core' {
|
|
|
242
242
|
|
|
243
243
|
declare module '@tiptap/core' {
|
|
244
244
|
interface Commands<ReturnType> {
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Add an video
|
|
248
|
-
*/
|
|
249
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
245
|
+
twitter: {
|
|
250
246
|
/**
|
|
251
|
-
*
|
|
247
|
+
* Insert a tweet
|
|
248
|
+
* @param options The tweet attributes
|
|
249
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
252
250
|
*/
|
|
253
|
-
|
|
251
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
252
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
254
253
|
};
|
|
255
254
|
}
|
|
256
255
|
}
|
|
@@ -258,14 +257,15 @@ declare module '@tiptap/core' {
|
|
|
258
257
|
|
|
259
258
|
declare module '@tiptap/core' {
|
|
260
259
|
interface Commands<ReturnType> {
|
|
261
|
-
|
|
260
|
+
video: {
|
|
262
261
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @param options The tweet attributes
|
|
265
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
262
|
+
* Add an video
|
|
266
263
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
265
|
+
/**
|
|
266
|
+
* Update an video
|
|
267
|
+
*/
|
|
268
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
}
|
package/lib/ListItem.d.ts
CHANGED
|
@@ -46,11 +46,8 @@ declare module '@tiptap/core' {
|
|
|
46
46
|
|
|
47
47
|
declare module '@tiptap/core' {
|
|
48
48
|
interface Commands<ReturnType> {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
name: string;
|
|
52
|
-
emoji: string;
|
|
53
|
-
}) => ReturnType;
|
|
49
|
+
excalidraw: {
|
|
50
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
}
|
|
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
|
|
|
58
55
|
|
|
59
56
|
declare module '@tiptap/core' {
|
|
60
57
|
interface Commands<ReturnType> {
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
emoji: {
|
|
59
|
+
setEmoji: (emoji: {
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}) => ReturnType;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -156,6 +156,15 @@ declare module '@tiptap/core' {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
|
|
159
|
+
declare module '@tiptap/core' {
|
|
160
|
+
interface Commands<ReturnType> {
|
|
161
|
+
katex: {
|
|
162
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
159
168
|
declare module '@tiptap/core' {
|
|
160
169
|
interface Commands<ReturnType> {
|
|
161
170
|
indent: {
|
|
@@ -172,15 +181,6 @@ declare module '@tiptap/core' {
|
|
|
172
181
|
}
|
|
173
182
|
|
|
174
183
|
|
|
175
|
-
declare module '@tiptap/core' {
|
|
176
|
-
interface Commands<ReturnType> {
|
|
177
|
-
katex: {
|
|
178
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
184
|
declare module '@tiptap/core' {
|
|
185
185
|
interface Commands<ReturnType> {
|
|
186
186
|
lineHeight: {
|
|
@@ -242,15 +242,14 @@ declare module '@tiptap/core' {
|
|
|
242
242
|
|
|
243
243
|
declare module '@tiptap/core' {
|
|
244
244
|
interface Commands<ReturnType> {
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Add an video
|
|
248
|
-
*/
|
|
249
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
245
|
+
twitter: {
|
|
250
246
|
/**
|
|
251
|
-
*
|
|
247
|
+
* Insert a tweet
|
|
248
|
+
* @param options The tweet attributes
|
|
249
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
252
250
|
*/
|
|
253
|
-
|
|
251
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
252
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
254
253
|
};
|
|
255
254
|
}
|
|
256
255
|
}
|
|
@@ -258,14 +257,15 @@ declare module '@tiptap/core' {
|
|
|
258
257
|
|
|
259
258
|
declare module '@tiptap/core' {
|
|
260
259
|
interface Commands<ReturnType> {
|
|
261
|
-
|
|
260
|
+
video: {
|
|
262
261
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @param options The tweet attributes
|
|
265
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
262
|
+
* Add an video
|
|
266
263
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
265
|
+
/**
|
|
266
|
+
* Update an video
|
|
267
|
+
*/
|
|
268
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
}
|
package/lib/Mention.d.cts
CHANGED
|
@@ -49,11 +49,8 @@ declare module '@tiptap/core' {
|
|
|
49
49
|
|
|
50
50
|
declare module '@tiptap/core' {
|
|
51
51
|
interface Commands<ReturnType> {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: string;
|
|
55
|
-
emoji: string;
|
|
56
|
-
}) => ReturnType;
|
|
52
|
+
excalidraw: {
|
|
53
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -61,8 +58,11 @@ declare module '@tiptap/core' {
|
|
|
61
58
|
|
|
62
59
|
declare module '@tiptap/core' {
|
|
63
60
|
interface Commands<ReturnType> {
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
emoji: {
|
|
62
|
+
setEmoji: (emoji: {
|
|
63
|
+
name: string;
|
|
64
|
+
emoji: string;
|
|
65
|
+
}) => ReturnType;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -159,6 +159,15 @@ declare module '@tiptap/core' {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
|
|
162
|
+
declare module '@tiptap/core' {
|
|
163
|
+
interface Commands<ReturnType> {
|
|
164
|
+
katex: {
|
|
165
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
162
171
|
declare module '@tiptap/core' {
|
|
163
172
|
interface Commands<ReturnType> {
|
|
164
173
|
indent: {
|
|
@@ -175,15 +184,6 @@ declare module '@tiptap/core' {
|
|
|
175
184
|
}
|
|
176
185
|
|
|
177
186
|
|
|
178
|
-
declare module '@tiptap/core' {
|
|
179
|
-
interface Commands<ReturnType> {
|
|
180
|
-
katex: {
|
|
181
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
187
|
declare module '@tiptap/core' {
|
|
188
188
|
interface Commands<ReturnType> {
|
|
189
189
|
lineHeight: {
|
|
@@ -245,15 +245,14 @@ declare module '@tiptap/core' {
|
|
|
245
245
|
|
|
246
246
|
declare module '@tiptap/core' {
|
|
247
247
|
interface Commands<ReturnType> {
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Add an video
|
|
251
|
-
*/
|
|
252
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
248
|
+
twitter: {
|
|
253
249
|
/**
|
|
254
|
-
*
|
|
250
|
+
* Insert a tweet
|
|
251
|
+
* @param options The tweet attributes
|
|
252
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
255
253
|
*/
|
|
256
|
-
|
|
254
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
255
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
257
256
|
};
|
|
258
257
|
}
|
|
259
258
|
}
|
|
@@ -261,14 +260,15 @@ declare module '@tiptap/core' {
|
|
|
261
260
|
|
|
262
261
|
declare module '@tiptap/core' {
|
|
263
262
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
263
|
+
video: {
|
|
265
264
|
/**
|
|
266
|
-
*
|
|
267
|
-
* @param options The tweet attributes
|
|
268
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
265
|
+
* Add an video
|
|
269
266
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
267
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
268
|
+
/**
|
|
269
|
+
* Update an video
|
|
270
|
+
*/
|
|
271
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
}
|
package/lib/Mention.d.ts
CHANGED
|
@@ -49,11 +49,8 @@ declare module '@tiptap/core' {
|
|
|
49
49
|
|
|
50
50
|
declare module '@tiptap/core' {
|
|
51
51
|
interface Commands<ReturnType> {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: string;
|
|
55
|
-
emoji: string;
|
|
56
|
-
}) => ReturnType;
|
|
52
|
+
excalidraw: {
|
|
53
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -61,8 +58,11 @@ declare module '@tiptap/core' {
|
|
|
61
58
|
|
|
62
59
|
declare module '@tiptap/core' {
|
|
63
60
|
interface Commands<ReturnType> {
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
emoji: {
|
|
62
|
+
setEmoji: (emoji: {
|
|
63
|
+
name: string;
|
|
64
|
+
emoji: string;
|
|
65
|
+
}) => ReturnType;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -159,6 +159,15 @@ declare module '@tiptap/core' {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
|
|
162
|
+
declare module '@tiptap/core' {
|
|
163
|
+
interface Commands<ReturnType> {
|
|
164
|
+
katex: {
|
|
165
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
162
171
|
declare module '@tiptap/core' {
|
|
163
172
|
interface Commands<ReturnType> {
|
|
164
173
|
indent: {
|
|
@@ -175,15 +184,6 @@ declare module '@tiptap/core' {
|
|
|
175
184
|
}
|
|
176
185
|
|
|
177
186
|
|
|
178
|
-
declare module '@tiptap/core' {
|
|
179
|
-
interface Commands<ReturnType> {
|
|
180
|
-
katex: {
|
|
181
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
187
|
declare module '@tiptap/core' {
|
|
188
188
|
interface Commands<ReturnType> {
|
|
189
189
|
lineHeight: {
|
|
@@ -245,15 +245,14 @@ declare module '@tiptap/core' {
|
|
|
245
245
|
|
|
246
246
|
declare module '@tiptap/core' {
|
|
247
247
|
interface Commands<ReturnType> {
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Add an video
|
|
251
|
-
*/
|
|
252
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
248
|
+
twitter: {
|
|
253
249
|
/**
|
|
254
|
-
*
|
|
250
|
+
* Insert a tweet
|
|
251
|
+
* @param options The tweet attributes
|
|
252
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
255
253
|
*/
|
|
256
|
-
|
|
254
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
255
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
257
256
|
};
|
|
258
257
|
}
|
|
259
258
|
}
|
|
@@ -261,14 +260,15 @@ declare module '@tiptap/core' {
|
|
|
261
260
|
|
|
262
261
|
declare module '@tiptap/core' {
|
|
263
262
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
263
|
+
video: {
|
|
265
264
|
/**
|
|
266
|
-
*
|
|
267
|
-
* @param options The tweet attributes
|
|
268
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
265
|
+
* Add an video
|
|
269
266
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
267
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
268
|
+
/**
|
|
269
|
+
* Update an video
|
|
270
|
+
*/
|
|
271
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
}
|