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/Iframe.d.cts
CHANGED
|
@@ -44,9 +44,11 @@ declare module '@tiptap/core' {
|
|
|
44
44
|
|
|
45
45
|
declare module '@tiptap/core' {
|
|
46
46
|
interface Commands<ReturnType> {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
emoji: {
|
|
48
|
+
setEmoji: (emoji: {
|
|
49
|
+
name: string;
|
|
50
|
+
emoji: string;
|
|
51
|
+
}) => ReturnType;
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -54,11 +56,9 @@ declare module '@tiptap/core' {
|
|
|
54
56
|
|
|
55
57
|
declare module '@tiptap/core' {
|
|
56
58
|
interface Commands<ReturnType> {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
emoji: string;
|
|
61
|
-
}) => ReturnType;
|
|
59
|
+
drawer: {
|
|
60
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
61
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -126,19 +126,19 @@ declare module '@tiptap/core' {
|
|
|
126
126
|
|
|
127
127
|
declare module '@tiptap/core' {
|
|
128
128
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
129
|
+
imageGifUpload: {
|
|
130
130
|
/**
|
|
131
|
-
* Add an image
|
|
131
|
+
* Add an image gif
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
134
134
|
/**
|
|
135
|
-
* Update an image
|
|
135
|
+
* Update an image gif
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
138
138
|
/**
|
|
139
139
|
* Set image alignment
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -146,19 +146,19 @@ declare module '@tiptap/core' {
|
|
|
146
146
|
|
|
147
147
|
declare module '@tiptap/core' {
|
|
148
148
|
interface Commands<ReturnType> {
|
|
149
|
-
|
|
149
|
+
imageUpload: {
|
|
150
150
|
/**
|
|
151
|
-
* Add an image
|
|
151
|
+
* Add an image
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
154
154
|
/**
|
|
155
|
-
* Update an image
|
|
155
|
+
* Update an image
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
158
158
|
/**
|
|
159
159
|
* Set image alignment
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
}
|
package/lib/Iframe.d.ts
CHANGED
|
@@ -44,9 +44,11 @@ declare module '@tiptap/core' {
|
|
|
44
44
|
|
|
45
45
|
declare module '@tiptap/core' {
|
|
46
46
|
interface Commands<ReturnType> {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
emoji: {
|
|
48
|
+
setEmoji: (emoji: {
|
|
49
|
+
name: string;
|
|
50
|
+
emoji: string;
|
|
51
|
+
}) => ReturnType;
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -54,11 +56,9 @@ declare module '@tiptap/core' {
|
|
|
54
56
|
|
|
55
57
|
declare module '@tiptap/core' {
|
|
56
58
|
interface Commands<ReturnType> {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
emoji: string;
|
|
61
|
-
}) => ReturnType;
|
|
59
|
+
drawer: {
|
|
60
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
61
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -126,19 +126,19 @@ declare module '@tiptap/core' {
|
|
|
126
126
|
|
|
127
127
|
declare module '@tiptap/core' {
|
|
128
128
|
interface Commands<ReturnType> {
|
|
129
|
-
|
|
129
|
+
imageGifUpload: {
|
|
130
130
|
/**
|
|
131
|
-
* Add an image
|
|
131
|
+
* Add an image gif
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
134
134
|
/**
|
|
135
|
-
* Update an image
|
|
135
|
+
* Update an image gif
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
138
138
|
/**
|
|
139
139
|
* Set image alignment
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -146,19 +146,19 @@ declare module '@tiptap/core' {
|
|
|
146
146
|
|
|
147
147
|
declare module '@tiptap/core' {
|
|
148
148
|
interface Commands<ReturnType> {
|
|
149
|
-
|
|
149
|
+
imageUpload: {
|
|
150
150
|
/**
|
|
151
|
-
* Add an image
|
|
151
|
+
* Add an image
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
154
154
|
/**
|
|
155
|
-
* Update an image
|
|
155
|
+
* Update an image
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
158
158
|
/**
|
|
159
159
|
* Set image alignment
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
}
|
package/lib/Iframe.js
CHANGED
package/lib/Image.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-B5WYnm7K.cjs");require("./dom-dataset-Byuf1YmW.cjs");exports.Image=e.Image$1;exports.default=e.Image$1;
|
package/lib/Image.d.cts
CHANGED
|
@@ -145,9 +145,11 @@ declare module '@tiptap/core' {
|
|
|
145
145
|
|
|
146
146
|
declare module '@tiptap/core' {
|
|
147
147
|
interface Commands<ReturnType> {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
emoji: {
|
|
149
|
+
setEmoji: (emoji: {
|
|
150
|
+
name: string;
|
|
151
|
+
emoji: string;
|
|
152
|
+
}) => ReturnType;
|
|
151
153
|
};
|
|
152
154
|
}
|
|
153
155
|
}
|
|
@@ -155,11 +157,9 @@ declare module '@tiptap/core' {
|
|
|
155
157
|
|
|
156
158
|
declare module '@tiptap/core' {
|
|
157
159
|
interface Commands<ReturnType> {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
emoji: string;
|
|
162
|
-
}) => ReturnType;
|
|
160
|
+
drawer: {
|
|
161
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
162
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -227,19 +227,19 @@ declare module '@tiptap/core' {
|
|
|
227
227
|
|
|
228
228
|
declare module '@tiptap/core' {
|
|
229
229
|
interface Commands<ReturnType> {
|
|
230
|
-
|
|
230
|
+
imageGifUpload: {
|
|
231
231
|
/**
|
|
232
|
-
* Add an image
|
|
232
|
+
* Add an image gif
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
235
235
|
/**
|
|
236
|
-
* Update an image
|
|
236
|
+
* Update an image gif
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
239
239
|
/**
|
|
240
240
|
* Set image alignment
|
|
241
241
|
*/
|
|
242
|
-
|
|
242
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -247,19 +247,19 @@ declare module '@tiptap/core' {
|
|
|
247
247
|
|
|
248
248
|
declare module '@tiptap/core' {
|
|
249
249
|
interface Commands<ReturnType> {
|
|
250
|
-
|
|
250
|
+
imageUpload: {
|
|
251
251
|
/**
|
|
252
|
-
* Add an image
|
|
252
|
+
* Add an image
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
255
255
|
/**
|
|
256
|
-
* Update an image
|
|
256
|
+
* Update an image
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
259
259
|
/**
|
|
260
260
|
* Set image alignment
|
|
261
261
|
*/
|
|
262
|
-
|
|
262
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
package/lib/Image.d.ts
CHANGED
|
@@ -145,9 +145,11 @@ declare module '@tiptap/core' {
|
|
|
145
145
|
|
|
146
146
|
declare module '@tiptap/core' {
|
|
147
147
|
interface Commands<ReturnType> {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
emoji: {
|
|
149
|
+
setEmoji: (emoji: {
|
|
150
|
+
name: string;
|
|
151
|
+
emoji: string;
|
|
152
|
+
}) => ReturnType;
|
|
151
153
|
};
|
|
152
154
|
}
|
|
153
155
|
}
|
|
@@ -155,11 +157,9 @@ declare module '@tiptap/core' {
|
|
|
155
157
|
|
|
156
158
|
declare module '@tiptap/core' {
|
|
157
159
|
interface Commands<ReturnType> {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
emoji: string;
|
|
162
|
-
}) => ReturnType;
|
|
160
|
+
drawer: {
|
|
161
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
162
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -227,19 +227,19 @@ declare module '@tiptap/core' {
|
|
|
227
227
|
|
|
228
228
|
declare module '@tiptap/core' {
|
|
229
229
|
interface Commands<ReturnType> {
|
|
230
|
-
|
|
230
|
+
imageGifUpload: {
|
|
231
231
|
/**
|
|
232
|
-
* Add an image
|
|
232
|
+
* Add an image gif
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
235
235
|
/**
|
|
236
|
-
* Update an image
|
|
236
|
+
* Update an image gif
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
239
239
|
/**
|
|
240
240
|
* Set image alignment
|
|
241
241
|
*/
|
|
242
|
-
|
|
242
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -247,19 +247,19 @@ declare module '@tiptap/core' {
|
|
|
247
247
|
|
|
248
248
|
declare module '@tiptap/core' {
|
|
249
249
|
interface Commands<ReturnType> {
|
|
250
|
-
|
|
250
|
+
imageUpload: {
|
|
251
251
|
/**
|
|
252
|
-
* Add an image
|
|
252
|
+
* Add an image
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
255
255
|
/**
|
|
256
|
-
* Update an image
|
|
256
|
+
* Update an image
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
259
259
|
/**
|
|
260
260
|
* Set image alignment
|
|
261
261
|
*/
|
|
262
|
-
|
|
262
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
package/lib/Image.js
CHANGED
package/lib/ImageGif.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-B5WYnm7K.cjs");require("./dom-dataset-Byuf1YmW.cjs");exports.ImageGif=e.ImageGif;exports.default=e.ImageGif;
|
package/lib/ImageGif.d.cts
CHANGED
|
@@ -59,9 +59,11 @@ declare module '@tiptap/core' {
|
|
|
59
59
|
|
|
60
60
|
declare module '@tiptap/core' {
|
|
61
61
|
interface Commands<ReturnType> {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
emoji: {
|
|
63
|
+
setEmoji: (emoji: {
|
|
64
|
+
name: string;
|
|
65
|
+
emoji: string;
|
|
66
|
+
}) => ReturnType;
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
}
|
|
@@ -69,11 +71,9 @@ declare module '@tiptap/core' {
|
|
|
69
71
|
|
|
70
72
|
declare module '@tiptap/core' {
|
|
71
73
|
interface Commands<ReturnType> {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
emoji: string;
|
|
76
|
-
}) => ReturnType;
|
|
74
|
+
drawer: {
|
|
75
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
76
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -141,19 +141,19 @@ declare module '@tiptap/core' {
|
|
|
141
141
|
|
|
142
142
|
declare module '@tiptap/core' {
|
|
143
143
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
144
|
+
imageGifUpload: {
|
|
145
145
|
/**
|
|
146
|
-
* Add an image
|
|
146
|
+
* Add an image gif
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
149
149
|
/**
|
|
150
|
-
* Update an image
|
|
150
|
+
* Update an image gif
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
153
153
|
/**
|
|
154
154
|
* Set image alignment
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -161,19 +161,19 @@ declare module '@tiptap/core' {
|
|
|
161
161
|
|
|
162
162
|
declare module '@tiptap/core' {
|
|
163
163
|
interface Commands<ReturnType> {
|
|
164
|
-
|
|
164
|
+
imageUpload: {
|
|
165
165
|
/**
|
|
166
|
-
* Add an image
|
|
166
|
+
* Add an image
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
169
169
|
/**
|
|
170
|
-
* Update an image
|
|
170
|
+
* Update an image
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
173
173
|
/**
|
|
174
174
|
* Set image alignment
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
}
|
package/lib/ImageGif.d.ts
CHANGED
|
@@ -59,9 +59,11 @@ declare module '@tiptap/core' {
|
|
|
59
59
|
|
|
60
60
|
declare module '@tiptap/core' {
|
|
61
61
|
interface Commands<ReturnType> {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
emoji: {
|
|
63
|
+
setEmoji: (emoji: {
|
|
64
|
+
name: string;
|
|
65
|
+
emoji: string;
|
|
66
|
+
}) => ReturnType;
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
}
|
|
@@ -69,11 +71,9 @@ declare module '@tiptap/core' {
|
|
|
69
71
|
|
|
70
72
|
declare module '@tiptap/core' {
|
|
71
73
|
interface Commands<ReturnType> {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
emoji: string;
|
|
76
|
-
}) => ReturnType;
|
|
74
|
+
drawer: {
|
|
75
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
76
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -141,19 +141,19 @@ declare module '@tiptap/core' {
|
|
|
141
141
|
|
|
142
142
|
declare module '@tiptap/core' {
|
|
143
143
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
144
|
+
imageGifUpload: {
|
|
145
145
|
/**
|
|
146
|
-
* Add an image
|
|
146
|
+
* Add an image gif
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
149
149
|
/**
|
|
150
|
-
* Update an image
|
|
150
|
+
* Update an image gif
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
153
153
|
/**
|
|
154
154
|
* Set image alignment
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -161,19 +161,19 @@ declare module '@tiptap/core' {
|
|
|
161
161
|
|
|
162
162
|
declare module '@tiptap/core' {
|
|
163
163
|
interface Commands<ReturnType> {
|
|
164
|
-
|
|
164
|
+
imageUpload: {
|
|
165
165
|
/**
|
|
166
|
-
* Add an image
|
|
166
|
+
* Add an image
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
169
169
|
/**
|
|
170
|
-
* Update an image
|
|
170
|
+
* Update an image
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
173
173
|
/**
|
|
174
174
|
* Set image alignment
|
|
175
175
|
*/
|
|
176
|
-
|
|
176
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
}
|
package/lib/ImageGif.js
CHANGED
package/lib/ImportWord.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-B5WYnm7K.cjs"),As=require("./index-D_A0TBRA.cjs");var Ve={},Ai="1.13.7",Da=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ht=Array.prototype,Fi=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,Fs=Ht.push,it=Ht.slice,Qn=Fi.toString,Cs=Fi.hasOwnProperty,qc=typeof ArrayBuffer<"u",Ss=typeof DataView<"u",Bs=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,ks=isNaN,Ws=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Rs=Math.pow(2,53)-1;function Le(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),r=Array(t),c=0;c<t;c++)r[c]=arguments[c+n];switch(n){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(n+1);for(c=0;c<n;c++)i[c]=arguments[c];return i[n]=r,e.apply(this,i)}}function hn(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Ci(e){return e===void 0}function Si(e){return e===!0||e===!1||Qn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return Qn.call(t)===n}}const Gt=Ie("String"),Bi=Ie("Number"),Xc=Ie("Date"),Vc=Ie("RegExp"),Hc=Ie("Error"),ki=Ie("Symbol"),Wi=Ie("ArrayBuffer");var Gc=Ie("Function"),Ns=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ns!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Oe=Gc,Zc=Ie("Object");var $c=Ss&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Os=Ie("DataView");function Is(e){return e!=null&&Oe(e.getInt8)&&Wi(e.buffer)}const Jn=$c?Is:Os,pn=Bs||Ie("Array");function gn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ie("Arguments");(function(){Ti(arguments)||(Ti=function(e){return gn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&Ws(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&ks(e)}function Oi(e){return function(){return e}}function Kc(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Rs}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Ls=Kc(Pt);var Ms=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function qs(e){return Ua?Ua(e)&&!Jn(e):Ls(e)&&Ms.test(Qn.call(e))}const Ii=qc?qs:Oi(!1),qe=Qc("length");function Ps(e){for(var n={},t=e.length,r=0;r<t;++r)n[e[r]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=Ps(n);var t=Ta.length,r=e.constructor,c=Oe(r)&&r.prototype||Fi,i="constructor";for(gn(e,i)&&!n.contains(i)&&n.push(i);t--;)i=Ta[t],i in e&&e[i]!==c[i]&&!n.contains(i)&&n.push(i)}function ke(e){if(!hn(e))return[];if(xa)return xa(e);var n=[];for(var t in e)gn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(pn(e)||Gt(e)||Zt(e))?n===0:qe(ke(e))===0}function Li(e,n){var t=ke(n),r=t.length;if(e==null)return!r;for(var c=Object(e),i=0;i<r;i++){var a=t[i];if(n[a]!==c[a]||!(a in c))return!1}return!0}function Ee(e){if(e instanceof Ee)return e;if(!(this instanceof Ee))return new Ee(e);this._wrapped=e}Ee.VERSION=Ai;Ee.prototype.value=function(){return this._wrapped};Ee.prototype.valueOf=Ee.prototype.toJSON=Ee.prototype.value;Ee.prototype.toString=function(){return String(this._wrapped)};function wa(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pt(e))}var Ea="[object DataView]";function wi(e,n,t,r){if(e===n)return e!==0||1/e===1/n;if(e==null||n==null)return!1;if(e!==e)return n!==n;var c=typeof e;return c!=="function"&&c!=="object"&&typeof n!="object"?!1:nu(e,n,t,r)}function nu(e,n,t,r){e instanceof Ee&&(e=e._wrapped),n instanceof Ee&&(n=n._wrapped);var c=Qn.call(e);if(c!==Qn.call(n))return!1;if($c&&c=="[object Object]"&&Jn(e)){if(!Jn(n))return!1;c=Ea}switch(c){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:+e==0?1/+e===1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return va.valueOf.call(e)===va.valueOf.call(n);case"[object ArrayBuffer]":case Ea:return nu(wa(e),wa(n),t,r)}var i=c==="[object Array]";if(!i&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Oe(o)&&o instanceof o&&Oe(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var l=t.length;l--;)if(t[l]===e)return r[l]===n;if(t.push(e),r.push(n),i){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,r))return!1}else{var b=ke(e),m;if(l=b.length,ke(n).length!==l)return!1;for(;l--;)if(m=b[l],!(gn(n,m)&&wi(e[m],n[m],t,r)))return!1}return t.pop(),r.pop(),!0}function tu(e,n){return wi(e,n)}function Mn(e){if(!hn(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=qe(e);return function(t){if(t==null)return!1;var r=Mn(t);if(qe(r))return!1;for(var c=0;c<n;c++)if(!Oe(t[e[c]]))return!1;return e!==au||!Oe(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],zs=Pi.concat(qi,iu),au=Pi.concat(iu),js=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(zs):Ie("Map"),cu=Ri?Mi(au):Ie("WeakMap"),uu=Ri?Mi(js):Ie("Set"),su=Ie("WeakSet");function An(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=e[n[c]];return r}function du(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=[n[c],e[n[c]]];return r}function zi(e){for(var n={},t=ke(e),r=0,c=t.length;r<c;r++)n[e[t[r]]]=t[r];return n}function et(e){var n=[];for(var t in e)Oe(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var r=arguments.length;if(n&&(t=Object(t)),r<2||t==null)return t;for(var c=1;c<r;c++)for(var i=arguments[c],a=e(i),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=i[l])}return t}}const Xi=ji(Mn),In=ji(ke),Vi=ji(Mn,!0);function Xs(){return function(){}}function lu(e){if(!hn(e))return{};if(_a)return _a(e);var n=Xs();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&In(t,n),t}function hu(e){return hn(e)?pn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return pn(e)?e:[e]}Ee.toPath=Hi;function at(e){return Ee.toPath(e)}function Gi(e,n){for(var t=n.length,r=0;r<t;r++){if(e==null)return;e=e[n[r]]}return t?e:void 0}function Zi(e,n,t){var r=Gi(e,at(n));return Ci(r)?t:r}function gu(e,n){n=at(n);for(var t=n.length,r=0;r<t;r++){var c=n[r];if(!gn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function En(e){return e=In({},e),function(n){return Li(n,e)}}function Yt(e){return e=at(e),function(n){return Gi(n,e)}}function ot(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(r){return e.call(n,r)};case 3:return function(r,c,i){return e.call(n,r,c,i)};case 4:return function(r,c,i,a){return e.call(n,r,c,i,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Oe(e)?ot(e,n,t):hn(e)&&!pn(e)?En(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}Ee.iteratee=Kt;function Pe(e,n,t){return Ee.iteratee!==Kt?Ee.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Pe(n,t);for(var r=ke(e),c=r.length,i={},a=0;a<c;a++){var o=r[a];i[o]=n(e[o],o,e)}return i}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var r=Array(Math.max(0,e));n=ot(n,t,1);for(var c=0;c<e;c++)r[c]=n(c);return r}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Ln=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(i){return e[i]},t="(?:"+ke(e).join("|")+")",r=RegExp(t),c=RegExp(t,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(c,n):i}}const xu={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},_u=vu(xu),Vs=zi(xu),Uu=vu(Vs),Tu=Ee.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Hs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gs=/\\|'|\r|\n|\u2028|\u2029/g;function Zs(e){return"\\"+Hs[e]}var $s=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,Ee.templateSettings);var r=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,i="__p+='";e.replace(r,function(l,b,m,g,h){return i+=e.slice(c,h).replace(Gs,Zs),c=h+l.length,b?i+=`'+
|
|
2
2
|
((__t=(`+b+`))==null?'':_.escape(__t))+
|
|
3
3
|
'`:m?i+=`'+
|
|
4
4
|
((__t=(`+m+`))==null?'':__t)+
|