reactjs-tiptap-editor 0.3.28 → 0.3.30
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-D0hFczCn.js → ActionMenuButton-B6fitGKu.js} +1 -1
- package/lib/{ActionMenuButton-C20molC9.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +41 -41
- package/lib/Attachment.d.ts +41 -41
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +41 -41
- package/lib/Blockquote.d.ts +41 -41
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +41 -41
- package/lib/Bold.d.ts +41 -41
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +41 -41
- package/lib/BulletList.d.ts +41 -41
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +41 -41
- package/lib/Clear.d.ts +41 -41
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +41 -41
- package/lib/Code.d.ts +41 -41
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +41 -41
- package/lib/CodeBlock.d.ts +41 -41
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +41 -41
- package/lib/CodeView.d.ts +41 -41
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +41 -41
- package/lib/Color.d.ts +41 -41
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +41 -41
- package/lib/Document.d.ts +41 -41
- package/lib/{Drawer-B96jQIQU.js → Drawer-BKTU9CpU.js} +1 -1
- package/lib/{Drawer-0kBt3GVL.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +41 -41
- package/lib/Drawer.d.ts +41 -41
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +41 -41
- package/lib/Emoji.d.ts +41 -41
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CM74U5tG.js} +1 -1
- package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +41 -41
- package/lib/Excalidraw.d.ts +41 -41
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +41 -41
- package/lib/ExportPdf.d.ts +41 -41
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +41 -41
- package/lib/ExportWord.d.ts +41 -41
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +41 -41
- package/lib/FontFamily.d.ts +41 -41
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +41 -41
- package/lib/FontSize.d.ts +41 -41
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +41 -41
- package/lib/FormatPainter.d.ts +41 -41
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +41 -41
- package/lib/Heading.d.ts +41 -41
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +41 -41
- package/lib/Highlight.d.ts +41 -41
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +41 -41
- package/lib/History.d.ts +41 -41
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +41 -41
- package/lib/HorizontalRule.d.ts +41 -41
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +41 -41
- package/lib/Iframe.d.ts +41 -41
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +41 -41
- package/lib/Image.d.ts +41 -41
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +44 -43
- package/lib/ImageGif.d.ts +44 -43
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +41 -41
- package/lib/ImportWord.d.ts +41 -41
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +41 -41
- package/lib/Indent.d.ts +41 -41
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +41 -41
- package/lib/Italic.d.ts +41 -41
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +41 -41
- package/lib/Katex.d.ts +41 -41
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +41 -41
- package/lib/LineHeight.d.ts +41 -41
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +41 -41
- package/lib/Link.d.ts +41 -41
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +41 -41
- package/lib/ListItem.d.ts +41 -41
- package/lib/Mention.d.cts +41 -41
- package/lib/Mention.d.ts +41 -41
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +41 -41
- package/lib/Mermaid.d.ts +41 -41
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +41 -41
- package/lib/MoreMark.d.ts +41 -41
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +41 -41
- package/lib/MultiColumn.d.ts +41 -41
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +41 -41
- package/lib/OrderedList.d.ts +41 -41
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-BQN2eLD_.js} +997 -943
- package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-C8Sm1E6J.cjs} +5 -5
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +41 -41
- package/lib/SearchAndReplace.d.ts +41 -41
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +41 -41
- package/lib/Selection.d.ts +41 -41
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +41 -41
- package/lib/SlashCommand.d.ts +41 -41
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +41 -41
- package/lib/Strike.d.ts +41 -41
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +41 -41
- package/lib/SubAndSuperScript.d.ts +41 -41
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +41 -41
- package/lib/Table.d.ts +41 -41
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +41 -41
- package/lib/TableOfContent.d.ts +41 -41
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +41 -41
- package/lib/TaskList.d.ts +41 -41
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +41 -41
- package/lib/TextAlign.d.ts +41 -41
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +41 -41
- package/lib/TextBubble.d.ts +41 -41
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +41 -41
- package/lib/TextDirection.d.ts +41 -41
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +41 -41
- package/lib/TextUnderline.d.ts +41 -41
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +41 -41
- package/lib/TrailingNode.d.ts +41 -41
- package/lib/{Twitter-Dj49i3B9.cjs → Twitter-CL2pu4QM.cjs} +1 -1
- package/lib/{Twitter-CCf1aM0f.js → Twitter-Dg6WWauX.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +41 -41
- package/lib/Twitter.d.ts +41 -41
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +41 -41
- package/lib/Video.d.ts +41 -41
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +41 -41
- package/lib/bubble-extra.d.ts +41 -41
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +41 -41
- package/lib/index.d.ts +41 -41
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +41 -41
- package/lib/locale-bundle.d.ts +41 -41
- package/lib/style.css +1 -1
- package/lib/{textarea-nr3UZ7Wg.js → textarea-BglwYF6b.js} +1 -1
- package/lib/{textarea-DhlS0JCr.cjs → textarea-D5WVZMgt.cjs} +1 -1
- package/package.json +1 -1
package/lib/ImageGif.d.cts
CHANGED
|
@@ -6,10 +6,11 @@ export { ImageGif }
|
|
|
6
6
|
export default ImageGif;
|
|
7
7
|
|
|
8
8
|
declare interface ImageGifOptions extends ImageOptions {
|
|
9
|
+
provider: 'giphy' | 'tenor';
|
|
9
10
|
/**
|
|
10
|
-
* The key for the gif https://giphy.com/
|
|
11
|
+
* The key for the gif https://giphy.com/ or https://tenor.com/
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
API_KEY: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export declare interface SetImageAttrsOptions {
|
|
@@ -69,8 +70,11 @@ declare module '@tiptap/core' {
|
|
|
69
70
|
|
|
70
71
|
declare module '@tiptap/core' {
|
|
71
72
|
interface Commands<ReturnType> {
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
emoji: {
|
|
74
|
+
setEmoji: (emoji: {
|
|
75
|
+
name: string;
|
|
76
|
+
emoji: string;
|
|
77
|
+
}) => ReturnType;
|
|
74
78
|
};
|
|
75
79
|
}
|
|
76
80
|
}
|
|
@@ -78,11 +82,8 @@ declare module '@tiptap/core' {
|
|
|
78
82
|
|
|
79
83
|
declare module '@tiptap/core' {
|
|
80
84
|
interface Commands<ReturnType> {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
name: string;
|
|
84
|
-
emoji: string;
|
|
85
|
-
}) => ReturnType;
|
|
85
|
+
excalidraw: {
|
|
86
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -133,21 +134,6 @@ declare module '@tiptap/core' {
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
|
|
136
|
-
declare module '@tiptap/core' {
|
|
137
|
-
interface Commands<ReturnType> {
|
|
138
|
-
iframe: {
|
|
139
|
-
/**
|
|
140
|
-
* Add an iframe
|
|
141
|
-
*/
|
|
142
|
-
setIframe: (options: {
|
|
143
|
-
src: string;
|
|
144
|
-
service: string;
|
|
145
|
-
}) => ReturnType;
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
137
|
declare module '@tiptap/core' {
|
|
152
138
|
interface Commands<ReturnType> {
|
|
153
139
|
imageUpload: {
|
|
@@ -168,6 +154,21 @@ declare module '@tiptap/core' {
|
|
|
168
154
|
}
|
|
169
155
|
|
|
170
156
|
|
|
157
|
+
declare module '@tiptap/core' {
|
|
158
|
+
interface Commands<ReturnType> {
|
|
159
|
+
iframe: {
|
|
160
|
+
/**
|
|
161
|
+
* Add an iframe
|
|
162
|
+
*/
|
|
163
|
+
setIframe: (options: {
|
|
164
|
+
src: string;
|
|
165
|
+
service: string;
|
|
166
|
+
}) => ReturnType;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
171
172
|
declare module '@tiptap/core' {
|
|
172
173
|
interface Commands<ReturnType> {
|
|
173
174
|
imageGifUpload: {
|
|
@@ -206,9 +207,8 @@ declare module '@tiptap/core' {
|
|
|
206
207
|
|
|
207
208
|
declare module '@tiptap/core' {
|
|
208
209
|
interface Commands<ReturnType> {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
unsetLineHeight: () => ReturnType;
|
|
210
|
+
katex: {
|
|
211
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -216,8 +216,9 @@ declare module '@tiptap/core' {
|
|
|
216
216
|
|
|
217
217
|
declare module '@tiptap/core' {
|
|
218
218
|
interface Commands<ReturnType> {
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
lineHeight: {
|
|
220
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
221
|
+
unsetLineHeight: () => ReturnType;
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
224
|
}
|
|
@@ -233,6 +234,20 @@ declare module '@tiptap/core' {
|
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
|
|
237
|
+
declare module '@tiptap/core' {
|
|
238
|
+
interface Commands<ReturnType> {
|
|
239
|
+
columns: {
|
|
240
|
+
insertColumns: (attrs?: {
|
|
241
|
+
cols: number;
|
|
242
|
+
}) => ReturnType;
|
|
243
|
+
addColBefore: () => ReturnType;
|
|
244
|
+
addColAfter: () => ReturnType;
|
|
245
|
+
deleteCol: () => ReturnType;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
236
251
|
declare module '@tiptap/core' {
|
|
237
252
|
interface Commands<ReturnType> {
|
|
238
253
|
search: {
|
|
@@ -248,20 +263,6 @@ declare module '@tiptap/core' {
|
|
|
248
263
|
}
|
|
249
264
|
|
|
250
265
|
|
|
251
|
-
declare module '@tiptap/core' {
|
|
252
|
-
interface Commands<ReturnType> {
|
|
253
|
-
columns: {
|
|
254
|
-
insertColumns: (attrs?: {
|
|
255
|
-
cols: number;
|
|
256
|
-
}) => ReturnType;
|
|
257
|
-
addColBefore: () => ReturnType;
|
|
258
|
-
addColAfter: () => ReturnType;
|
|
259
|
-
deleteCol: () => ReturnType;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
266
|
declare module '@tiptap/core' {
|
|
266
267
|
interface Commands<ReturnType> {
|
|
267
268
|
tableOfContents: {
|
package/lib/ImageGif.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ export { ImageGif }
|
|
|
6
6
|
export default ImageGif;
|
|
7
7
|
|
|
8
8
|
declare interface ImageGifOptions extends ImageOptions {
|
|
9
|
+
provider: 'giphy' | 'tenor';
|
|
9
10
|
/**
|
|
10
|
-
* The key for the gif https://giphy.com/
|
|
11
|
+
* The key for the gif https://giphy.com/ or https://tenor.com/
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
API_KEY: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export declare interface SetImageAttrsOptions {
|
|
@@ -69,8 +70,11 @@ declare module '@tiptap/core' {
|
|
|
69
70
|
|
|
70
71
|
declare module '@tiptap/core' {
|
|
71
72
|
interface Commands<ReturnType> {
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
emoji: {
|
|
74
|
+
setEmoji: (emoji: {
|
|
75
|
+
name: string;
|
|
76
|
+
emoji: string;
|
|
77
|
+
}) => ReturnType;
|
|
74
78
|
};
|
|
75
79
|
}
|
|
76
80
|
}
|
|
@@ -78,11 +82,8 @@ declare module '@tiptap/core' {
|
|
|
78
82
|
|
|
79
83
|
declare module '@tiptap/core' {
|
|
80
84
|
interface Commands<ReturnType> {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
name: string;
|
|
84
|
-
emoji: string;
|
|
85
|
-
}) => ReturnType;
|
|
85
|
+
excalidraw: {
|
|
86
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -133,21 +134,6 @@ declare module '@tiptap/core' {
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
|
|
136
|
-
declare module '@tiptap/core' {
|
|
137
|
-
interface Commands<ReturnType> {
|
|
138
|
-
iframe: {
|
|
139
|
-
/**
|
|
140
|
-
* Add an iframe
|
|
141
|
-
*/
|
|
142
|
-
setIframe: (options: {
|
|
143
|
-
src: string;
|
|
144
|
-
service: string;
|
|
145
|
-
}) => ReturnType;
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
137
|
declare module '@tiptap/core' {
|
|
152
138
|
interface Commands<ReturnType> {
|
|
153
139
|
imageUpload: {
|
|
@@ -168,6 +154,21 @@ declare module '@tiptap/core' {
|
|
|
168
154
|
}
|
|
169
155
|
|
|
170
156
|
|
|
157
|
+
declare module '@tiptap/core' {
|
|
158
|
+
interface Commands<ReturnType> {
|
|
159
|
+
iframe: {
|
|
160
|
+
/**
|
|
161
|
+
* Add an iframe
|
|
162
|
+
*/
|
|
163
|
+
setIframe: (options: {
|
|
164
|
+
src: string;
|
|
165
|
+
service: string;
|
|
166
|
+
}) => ReturnType;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
171
172
|
declare module '@tiptap/core' {
|
|
172
173
|
interface Commands<ReturnType> {
|
|
173
174
|
imageGifUpload: {
|
|
@@ -206,9 +207,8 @@ declare module '@tiptap/core' {
|
|
|
206
207
|
|
|
207
208
|
declare module '@tiptap/core' {
|
|
208
209
|
interface Commands<ReturnType> {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
unsetLineHeight: () => ReturnType;
|
|
210
|
+
katex: {
|
|
211
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -216,8 +216,9 @@ declare module '@tiptap/core' {
|
|
|
216
216
|
|
|
217
217
|
declare module '@tiptap/core' {
|
|
218
218
|
interface Commands<ReturnType> {
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
lineHeight: {
|
|
220
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
221
|
+
unsetLineHeight: () => ReturnType;
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
224
|
}
|
|
@@ -233,6 +234,20 @@ declare module '@tiptap/core' {
|
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
|
|
237
|
+
declare module '@tiptap/core' {
|
|
238
|
+
interface Commands<ReturnType> {
|
|
239
|
+
columns: {
|
|
240
|
+
insertColumns: (attrs?: {
|
|
241
|
+
cols: number;
|
|
242
|
+
}) => ReturnType;
|
|
243
|
+
addColBefore: () => ReturnType;
|
|
244
|
+
addColAfter: () => ReturnType;
|
|
245
|
+
deleteCol: () => ReturnType;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
236
251
|
declare module '@tiptap/core' {
|
|
237
252
|
interface Commands<ReturnType> {
|
|
238
253
|
search: {
|
|
@@ -248,20 +263,6 @@ declare module '@tiptap/core' {
|
|
|
248
263
|
}
|
|
249
264
|
|
|
250
265
|
|
|
251
|
-
declare module '@tiptap/core' {
|
|
252
|
-
interface Commands<ReturnType> {
|
|
253
|
-
columns: {
|
|
254
|
-
insertColumns: (attrs?: {
|
|
255
|
-
cols: number;
|
|
256
|
-
}) => ReturnType;
|
|
257
|
-
addColBefore: () => ReturnType;
|
|
258
|
-
addColAfter: () => ReturnType;
|
|
259
|
-
deleteCol: () => ReturnType;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
266
|
declare module '@tiptap/core' {
|
|
266
267
|
interface Commands<ReturnType> {
|
|
267
268
|
tableOfContents: {
|
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-C8Sm1E6J.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)+
|
package/lib/ImportWord.d.cts
CHANGED
|
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
|
|
133
133
|
declare module '@tiptap/core' {
|
|
134
134
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
emoji: {
|
|
136
|
+
setEmoji: (emoji: {
|
|
137
|
+
name: string;
|
|
138
|
+
emoji: string;
|
|
139
|
+
}) => ReturnType;
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
|
|
|
141
144
|
|
|
142
145
|
declare module '@tiptap/core' {
|
|
143
146
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name: string;
|
|
147
|
-
emoji: string;
|
|
148
|
-
}) => ReturnType;
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -196,21 +196,6 @@ declare module '@tiptap/core' {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
declare module '@tiptap/core' {
|
|
200
|
-
interface Commands<ReturnType> {
|
|
201
|
-
iframe: {
|
|
202
|
-
/**
|
|
203
|
-
* Add an iframe
|
|
204
|
-
*/
|
|
205
|
-
setIframe: (options: {
|
|
206
|
-
src: string;
|
|
207
|
-
service: string;
|
|
208
|
-
}) => ReturnType;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
199
|
declare module '@tiptap/core' {
|
|
215
200
|
interface Commands<ReturnType> {
|
|
216
201
|
imageUpload: {
|
|
@@ -231,6 +216,21 @@ declare module '@tiptap/core' {
|
|
|
231
216
|
}
|
|
232
217
|
|
|
233
218
|
|
|
219
|
+
declare module '@tiptap/core' {
|
|
220
|
+
interface Commands<ReturnType> {
|
|
221
|
+
iframe: {
|
|
222
|
+
/**
|
|
223
|
+
* Add an iframe
|
|
224
|
+
*/
|
|
225
|
+
setIframe: (options: {
|
|
226
|
+
src: string;
|
|
227
|
+
service: string;
|
|
228
|
+
}) => ReturnType;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
234
|
declare module '@tiptap/core' {
|
|
235
235
|
interface Commands<ReturnType> {
|
|
236
236
|
imageGifUpload: {
|
|
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
|
|
|
269
269
|
|
|
270
270
|
declare module '@tiptap/core' {
|
|
271
271
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
unsetLineHeight: () => ReturnType;
|
|
272
|
+
katex: {
|
|
273
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
276
|
}
|
|
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
|
|
|
279
278
|
|
|
280
279
|
declare module '@tiptap/core' {
|
|
281
280
|
interface Commands<ReturnType> {
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
lineHeight: {
|
|
282
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
283
|
+
unsetLineHeight: () => ReturnType;
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
declare module '@tiptap/core' {
|
|
300
|
+
interface Commands<ReturnType> {
|
|
301
|
+
columns: {
|
|
302
|
+
insertColumns: (attrs?: {
|
|
303
|
+
cols: number;
|
|
304
|
+
}) => ReturnType;
|
|
305
|
+
addColBefore: () => ReturnType;
|
|
306
|
+
addColAfter: () => ReturnType;
|
|
307
|
+
deleteCol: () => ReturnType;
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
|
|
299
313
|
declare module '@tiptap/core' {
|
|
300
314
|
interface Commands<ReturnType> {
|
|
301
315
|
search: {
|
|
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
|
|
|
311
325
|
}
|
|
312
326
|
|
|
313
327
|
|
|
314
|
-
declare module '@tiptap/core' {
|
|
315
|
-
interface Commands<ReturnType> {
|
|
316
|
-
columns: {
|
|
317
|
-
insertColumns: (attrs?: {
|
|
318
|
-
cols: number;
|
|
319
|
-
}) => ReturnType;
|
|
320
|
-
addColBefore: () => ReturnType;
|
|
321
|
-
addColAfter: () => ReturnType;
|
|
322
|
-
deleteCol: () => ReturnType;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
328
|
declare module '@tiptap/core' {
|
|
329
329
|
interface Commands<ReturnType> {
|
|
330
330
|
tableOfContents: {
|
package/lib/ImportWord.d.ts
CHANGED
|
@@ -132,8 +132,11 @@ declare module '@tiptap/core' {
|
|
|
132
132
|
|
|
133
133
|
declare module '@tiptap/core' {
|
|
134
134
|
interface Commands<ReturnType> {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
emoji: {
|
|
136
|
+
setEmoji: (emoji: {
|
|
137
|
+
name: string;
|
|
138
|
+
emoji: string;
|
|
139
|
+
}) => ReturnType;
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -141,11 +144,8 @@ declare module '@tiptap/core' {
|
|
|
141
144
|
|
|
142
145
|
declare module '@tiptap/core' {
|
|
143
146
|
interface Commands<ReturnType> {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name: string;
|
|
147
|
-
emoji: string;
|
|
148
|
-
}) => ReturnType;
|
|
147
|
+
excalidraw: {
|
|
148
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -196,21 +196,6 @@ declare module '@tiptap/core' {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
declare module '@tiptap/core' {
|
|
200
|
-
interface Commands<ReturnType> {
|
|
201
|
-
iframe: {
|
|
202
|
-
/**
|
|
203
|
-
* Add an iframe
|
|
204
|
-
*/
|
|
205
|
-
setIframe: (options: {
|
|
206
|
-
src: string;
|
|
207
|
-
service: string;
|
|
208
|
-
}) => ReturnType;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
199
|
declare module '@tiptap/core' {
|
|
215
200
|
interface Commands<ReturnType> {
|
|
216
201
|
imageUpload: {
|
|
@@ -231,6 +216,21 @@ declare module '@tiptap/core' {
|
|
|
231
216
|
}
|
|
232
217
|
|
|
233
218
|
|
|
219
|
+
declare module '@tiptap/core' {
|
|
220
|
+
interface Commands<ReturnType> {
|
|
221
|
+
iframe: {
|
|
222
|
+
/**
|
|
223
|
+
* Add an iframe
|
|
224
|
+
*/
|
|
225
|
+
setIframe: (options: {
|
|
226
|
+
src: string;
|
|
227
|
+
service: string;
|
|
228
|
+
}) => ReturnType;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
234
|
declare module '@tiptap/core' {
|
|
235
235
|
interface Commands<ReturnType> {
|
|
236
236
|
imageGifUpload: {
|
|
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
|
|
|
269
269
|
|
|
270
270
|
declare module '@tiptap/core' {
|
|
271
271
|
interface Commands<ReturnType> {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
unsetLineHeight: () => ReturnType;
|
|
272
|
+
katex: {
|
|
273
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
276
|
}
|
|
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
|
|
|
279
278
|
|
|
280
279
|
declare module '@tiptap/core' {
|
|
281
280
|
interface Commands<ReturnType> {
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
lineHeight: {
|
|
282
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
283
|
+
unsetLineHeight: () => ReturnType;
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
declare module '@tiptap/core' {
|
|
300
|
+
interface Commands<ReturnType> {
|
|
301
|
+
columns: {
|
|
302
|
+
insertColumns: (attrs?: {
|
|
303
|
+
cols: number;
|
|
304
|
+
}) => ReturnType;
|
|
305
|
+
addColBefore: () => ReturnType;
|
|
306
|
+
addColAfter: () => ReturnType;
|
|
307
|
+
deleteCol: () => ReturnType;
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
|
|
299
313
|
declare module '@tiptap/core' {
|
|
300
314
|
interface Commands<ReturnType> {
|
|
301
315
|
search: {
|
|
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
|
|
|
311
325
|
}
|
|
312
326
|
|
|
313
327
|
|
|
314
|
-
declare module '@tiptap/core' {
|
|
315
|
-
interface Commands<ReturnType> {
|
|
316
|
-
columns: {
|
|
317
|
-
insertColumns: (attrs?: {
|
|
318
|
-
cols: number;
|
|
319
|
-
}) => ReturnType;
|
|
320
|
-
addColBefore: () => ReturnType;
|
|
321
|
-
addColAfter: () => ReturnType;
|
|
322
|
-
deleteCol: () => ReturnType;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
328
|
declare module '@tiptap/core' {
|
|
329
329
|
interface Commands<ReturnType> {
|
|
330
330
|
tableOfContents: {
|
package/lib/ImportWord.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as ws } from "./index-DI9T3iLd.js";
|
|
2
2
|
import { jsxs as Es, jsx as ba } from "react/jsx-runtime";
|
|
3
3
|
import { useState as As, useRef as Fs } from "react";
|
|
4
|
-
import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-
|
|
4
|
+
import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-BQN2eLD_.js";
|
|
5
5
|
import { u as Rs } from "./index-CsK90iVd.js";
|
|
6
6
|
var Xe = {}, Ei = "1.13.7", ya = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, Ht = Array.prototype, Ai = Object.prototype, Da = typeof Symbol < "u" ? Symbol.prototype : null, Ns = Ht.push, it = Ht.slice, Qn = Ai.toString, Os = Ai.hasOwnProperty, Mc = typeof ArrayBuffer < "u", Is = typeof DataView < "u", Ls = Array.isArray, va = Object.keys, xa = Object.create, _a = Mc && ArrayBuffer.isView, Ms = isNaN, qs = isFinite, qc = !{ toString: null }.propertyIsEnumerable("toString"), Ua = [
|
|
7
7
|
"valueOf",
|
package/lib/Indent.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-C8Sm1E6J.cjs"),a=i.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o,extension:d}){var r,s;return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:((r=d.options.shortcutKeys)==null?void 0:r[0])??["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:((s=d.options.shortcutKeys)==null?void 0:s[1])??["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=a;
|