reactjs-tiptap-editor 0.3.23 → 0.3.25
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-5AJJxQy1.cjs → ActionMenuButton-B3XOtCey.cjs} +1 -1
- package/lib/{ActionMenuButton-DwzYAKDg.js → ActionMenuButton-Bh2ft7th.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +20 -20
- package/lib/Attachment.d.ts +20 -20
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +20 -20
- package/lib/Blockquote.d.ts +20 -20
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +20 -20
- package/lib/Bold.d.ts +20 -20
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +20 -20
- package/lib/BulletList.d.ts +20 -20
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +20 -20
- package/lib/Clear.d.ts +20 -20
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +20 -20
- package/lib/Code.d.ts +20 -20
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +20 -20
- package/lib/CodeBlock.d.ts +20 -20
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +20 -20
- package/lib/CodeView.d.ts +20 -20
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +20 -20
- package/lib/Color.d.ts +20 -20
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +20 -20
- package/lib/Document.d.ts +20 -20
- package/lib/{Drawer-CCzPaigS.cjs → Drawer-CUntRzbs.cjs} +1 -1
- package/lib/{Drawer-Dc03j6W1.js → Drawer-Orz21MYs.js} +10 -10
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +20 -20
- package/lib/Drawer.d.ts +20 -20
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +20 -20
- package/lib/Emoji.d.ts +20 -20
- package/lib/Emoji.js +2 -2
- package/lib/{Excalidraw-Bxo4S3ET.cjs → Excalidraw-Bu8XuykT.cjs} +1 -1
- package/lib/{Excalidraw-yQ7O39ws.js → Excalidraw-Cj-sXq5F.js} +2 -2
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +20 -20
- package/lib/Excalidraw.d.ts +20 -20
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +20 -20
- package/lib/ExportPdf.d.ts +20 -20
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +20 -20
- package/lib/ExportWord.d.ts +20 -20
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +20 -20
- package/lib/FontFamily.d.ts +20 -20
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +20 -20
- package/lib/FontSize.d.ts +20 -20
- package/lib/FontSize.js +3 -3
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +20 -20
- package/lib/FormatPainter.d.ts +20 -20
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +20 -20
- package/lib/Heading.d.ts +20 -20
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +20 -20
- package/lib/Highlight.d.ts +20 -20
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +20 -20
- package/lib/History.d.ts +20 -20
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +20 -20
- package/lib/HorizontalRule.d.ts +20 -20
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +20 -20
- package/lib/Iframe.d.ts +20 -20
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +20 -20
- package/lib/Image.d.ts +20 -20
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +20 -20
- package/lib/ImageGif.d.ts +20 -20
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +20 -20
- package/lib/ImportWord.d.ts +20 -20
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +20 -20
- package/lib/Indent.d.ts +20 -20
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +20 -20
- package/lib/Italic.d.ts +20 -20
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +20 -20
- package/lib/Katex.d.ts +20 -20
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +20 -20
- package/lib/LineHeight.d.ts +20 -20
- package/lib/LineHeight.js +6 -6
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +20 -20
- package/lib/Link.d.ts +20 -20
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +20 -20
- package/lib/ListItem.d.ts +20 -20
- package/lib/Mention.d.cts +20 -20
- package/lib/Mention.d.ts +20 -20
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +20 -20
- package/lib/Mermaid.d.ts +20 -20
- package/lib/Mermaid.js +14 -14
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +20 -20
- package/lib/MoreMark.d.ts +20 -20
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +20 -20
- package/lib/MultiColumn.d.ts +20 -20
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +20 -20
- package/lib/OrderedList.d.ts +20 -20
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BnC1uaUo.cjs → RichTextEditor-B5WYnm7K.cjs} +2 -2
- package/lib/{RichTextEditor-CqgbZwS5.js → RichTextEditor-CfAFp9V2.js} +146 -107
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +20 -20
- package/lib/SearchAndReplace.d.ts +20 -20
- package/lib/SearchAndReplace.js +2 -2
- package/lib/Selection.d.cts +20 -20
- package/lib/Selection.d.ts +20 -20
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +20 -20
- package/lib/SlashCommand.d.ts +20 -20
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +20 -20
- package/lib/Strike.d.ts +20 -20
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +20 -20
- package/lib/SubAndSuperScript.d.ts +20 -20
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +20 -20
- package/lib/Table.d.ts +20 -20
- package/lib/Table.js +531 -531
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +20 -20
- package/lib/TableOfContent.d.ts +20 -20
- package/lib/TableOfContent.js +2 -2
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +20 -20
- package/lib/TaskList.d.ts +20 -20
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +20 -20
- package/lib/TextAlign.d.ts +20 -20
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +20 -20
- package/lib/TextBubble.d.ts +20 -20
- package/lib/TextBubble.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +20 -20
- package/lib/TextDirection.d.ts +20 -20
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +20 -20
- package/lib/TextUnderline.d.ts +20 -20
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +20 -20
- package/lib/TrailingNode.d.ts +20 -20
- package/lib/{Twitter-DjzxXZcS.js → Twitter-9AKqIK4p.js} +2 -2
- package/lib/{Twitter-2BEmpZYn.cjs → Twitter-BFwUowi8.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +20 -20
- package/lib/Twitter.d.ts +20 -20
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +20 -20
- package/lib/Video.d.ts +20 -20
- package/lib/Video.js +2 -2
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +20 -20
- package/lib/bubble-extra.d.ts +20 -20
- 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 +20 -20
- package/lib/index.d.ts +20 -20
- package/lib/index.js +3 -3
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +199 -21
- package/lib/locale-bundle.d.ts +199 -21
- package/lib/locale-bundle.js +2 -1
- package/lib/{textarea-ClmQTGYC.js → textarea-CWt0EMiJ.js} +1 -1
- package/lib/{textarea-DsAuYgt7.cjs → textarea-bND4WL8o.cjs} +1 -1
- package/package.json +1 -1
- package/lib/index-C19MB4Al.cjs +0 -1
package/lib/bubble-extra.d.cts
CHANGED
|
@@ -61,9 +61,11 @@ declare module '@tiptap/core' {
|
|
|
61
61
|
|
|
62
62
|
declare module '@tiptap/core' {
|
|
63
63
|
interface Commands<ReturnType> {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
emoji: {
|
|
65
|
+
setEmoji: (emoji: {
|
|
66
|
+
name: string;
|
|
67
|
+
emoji: string;
|
|
68
|
+
}) => ReturnType;
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -71,11 +73,9 @@ declare module '@tiptap/core' {
|
|
|
71
73
|
|
|
72
74
|
declare module '@tiptap/core' {
|
|
73
75
|
interface Commands<ReturnType> {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
emoji: string;
|
|
78
|
-
}) => ReturnType;
|
|
76
|
+
drawer: {
|
|
77
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
78
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -143,19 +143,19 @@ declare module '@tiptap/core' {
|
|
|
143
143
|
|
|
144
144
|
declare module '@tiptap/core' {
|
|
145
145
|
interface Commands<ReturnType> {
|
|
146
|
-
|
|
146
|
+
imageGifUpload: {
|
|
147
147
|
/**
|
|
148
|
-
* Add an image
|
|
148
|
+
* Add an image gif
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
151
151
|
/**
|
|
152
|
-
* Update an image
|
|
152
|
+
* Update an image gif
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
155
155
|
/**
|
|
156
156
|
* Set image alignment
|
|
157
157
|
*/
|
|
158
|
-
|
|
158
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -163,19 +163,19 @@ declare module '@tiptap/core' {
|
|
|
163
163
|
|
|
164
164
|
declare module '@tiptap/core' {
|
|
165
165
|
interface Commands<ReturnType> {
|
|
166
|
-
|
|
166
|
+
imageUpload: {
|
|
167
167
|
/**
|
|
168
|
-
* Add an image
|
|
168
|
+
* Add an image
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
171
171
|
/**
|
|
172
|
-
* Update an image
|
|
172
|
+
* Update an image
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
175
175
|
/**
|
|
176
176
|
* Set image alignment
|
|
177
177
|
*/
|
|
178
|
-
|
|
178
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
package/lib/bubble-extra.d.ts
CHANGED
|
@@ -61,9 +61,11 @@ declare module '@tiptap/core' {
|
|
|
61
61
|
|
|
62
62
|
declare module '@tiptap/core' {
|
|
63
63
|
interface Commands<ReturnType> {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
emoji: {
|
|
65
|
+
setEmoji: (emoji: {
|
|
66
|
+
name: string;
|
|
67
|
+
emoji: string;
|
|
68
|
+
}) => ReturnType;
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -71,11 +73,9 @@ declare module '@tiptap/core' {
|
|
|
71
73
|
|
|
72
74
|
declare module '@tiptap/core' {
|
|
73
75
|
interface Commands<ReturnType> {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
emoji: string;
|
|
78
|
-
}) => ReturnType;
|
|
76
|
+
drawer: {
|
|
77
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
78
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -143,19 +143,19 @@ declare module '@tiptap/core' {
|
|
|
143
143
|
|
|
144
144
|
declare module '@tiptap/core' {
|
|
145
145
|
interface Commands<ReturnType> {
|
|
146
|
-
|
|
146
|
+
imageGifUpload: {
|
|
147
147
|
/**
|
|
148
|
-
* Add an image
|
|
148
|
+
* Add an image gif
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
151
151
|
/**
|
|
152
|
-
* Update an image
|
|
152
|
+
* Update an image gif
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
155
155
|
/**
|
|
156
156
|
* Set image alignment
|
|
157
157
|
*/
|
|
158
|
-
|
|
158
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -163,19 +163,19 @@ declare module '@tiptap/core' {
|
|
|
163
163
|
|
|
164
164
|
declare module '@tiptap/core' {
|
|
165
165
|
interface Commands<ReturnType> {
|
|
166
|
-
|
|
166
|
+
imageUpload: {
|
|
167
167
|
/**
|
|
168
|
-
* Add an image
|
|
168
|
+
* Add an image
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
171
171
|
/**
|
|
172
|
-
* Update an image
|
|
172
|
+
* Update an image
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
175
175
|
/**
|
|
176
176
|
* Set image alignment
|
|
177
177
|
*/
|
|
178
|
-
|
|
178
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
package/lib/bubble-extra.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as v } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y, useRef as L, useCallback as w, useEffect as T, useMemo as W, Fragment as G } from "react";
|
|
3
3
|
import { B as z } from "./dom-dataset-Di3tIRrR.js";
|
|
4
|
-
import { w as Z, x as J, A as S, y as Q, z as X, F as Y, B as H, G as ee, O as D, a1 as ce, a2 as te, a3 as R, a4 as se, a5 as le } from "./RichTextEditor-
|
|
4
|
+
import { w as Z, x as J, A as S, y as Q, z as X, F as Y, B as H, G as ee, O as D, a1 as ce, a2 as te, a3 as R, a4 as se, a5 as le } from "./RichTextEditor-CfAFp9V2.js";
|
|
5
5
|
import { Mermaid as j } from "./Mermaid.js";
|
|
6
6
|
import { s as re, i as ne } from "./shortId-WJVkrvml.js";
|
|
7
|
-
import { T as ie } from "./textarea-
|
|
8
|
-
import { u as O } from "./index-
|
|
9
|
-
import { E as I, t as de } from "./Excalidraw-
|
|
10
|
-
import { T as K, F as he } from "./Twitter-
|
|
7
|
+
import { T as ie } from "./textarea-CWt0EMiJ.js";
|
|
8
|
+
import { u as O } from "./index-CsK90iVd.js";
|
|
9
|
+
import { E as I, t as de } from "./Excalidraw-Cj-sXq5F.js";
|
|
10
|
+
import { T as K, F as he } from "./Twitter-9AKqIK4p.js";
|
|
11
11
|
import ue from "katex";
|
|
12
12
|
import { HelpCircle as me, Pencil as xe, Trash2 as fe } from "lucide-react";
|
|
13
13
|
import { Katex as P } from "./Katex.js";
|
|
14
|
-
import { C as pe, D as _ } from "./Drawer-
|
|
14
|
+
import { C as pe, D as _ } from "./Drawer-Orz21MYs.js";
|
|
15
15
|
import { Editor as ge, makeDropdownToolbar as be } from "easydrawer";
|
|
16
16
|
const q = `graph TB
|
|
17
17
|
a-->b`, we = ({ editor: e, attrs: s, extension: o }) => {
|