reactjs-tiptap-editor 0.3.28 → 0.3.29
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-C20molC9.cjs → ActionMenuButton-5Y8QcYxD.cjs} +1 -1
- package/lib/{ActionMenuButton-D0hFczCn.js → ActionMenuButton-Cs9DM_16.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +28 -28
- package/lib/Attachment.d.ts +28 -28
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +28 -28
- package/lib/Blockquote.d.ts +28 -28
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +28 -28
- package/lib/Bold.d.ts +28 -28
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +28 -28
- package/lib/BulletList.d.ts +28 -28
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +28 -28
- package/lib/Clear.d.ts +28 -28
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +28 -28
- package/lib/Code.d.ts +28 -28
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +28 -28
- package/lib/CodeBlock.d.ts +28 -28
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +28 -28
- package/lib/CodeView.d.ts +28 -28
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +28 -28
- package/lib/Color.d.ts +28 -28
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +28 -28
- package/lib/Document.d.ts +28 -28
- package/lib/{Drawer-B96jQIQU.js → Drawer-BCmNLh31.js} +1 -1
- package/lib/{Drawer-0kBt3GVL.cjs → Drawer-DCAp7eZF.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +28 -28
- package/lib/Drawer.d.ts +28 -28
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +28 -28
- package/lib/Emoji.d.ts +28 -28
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-BI50RQL-.cjs} +1 -1
- package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CYPcjYZB.js} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +28 -28
- package/lib/Excalidraw.d.ts +28 -28
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +28 -28
- package/lib/ExportPdf.d.ts +28 -28
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +28 -28
- package/lib/ExportWord.d.ts +28 -28
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +28 -28
- package/lib/FontFamily.d.ts +28 -28
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +28 -28
- package/lib/FontSize.d.ts +28 -28
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +28 -28
- package/lib/FormatPainter.d.ts +28 -28
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +28 -28
- package/lib/Heading.d.ts +28 -28
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +28 -28
- package/lib/Highlight.d.ts +28 -28
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +28 -28
- package/lib/History.d.ts +28 -28
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +28 -28
- package/lib/HorizontalRule.d.ts +28 -28
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +28 -28
- package/lib/Iframe.d.ts +28 -28
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +28 -28
- package/lib/Image.d.ts +28 -28
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +31 -30
- package/lib/ImageGif.d.ts +31 -30
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +28 -28
- package/lib/ImportWord.d.ts +28 -28
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +28 -28
- package/lib/Indent.d.ts +28 -28
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +28 -28
- package/lib/Italic.d.ts +28 -28
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +28 -28
- package/lib/Katex.d.ts +28 -28
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +28 -28
- package/lib/LineHeight.d.ts +28 -28
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +28 -28
- package/lib/Link.d.ts +28 -28
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +28 -28
- package/lib/ListItem.d.ts +28 -28
- package/lib/Mention.d.cts +28 -28
- package/lib/Mention.d.ts +28 -28
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +28 -28
- package/lib/Mermaid.d.ts +28 -28
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +28 -28
- package/lib/MoreMark.d.ts +28 -28
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +28 -28
- package/lib/MultiColumn.d.ts +28 -28
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +28 -28
- package/lib/OrderedList.d.ts +28 -28
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-DsUcQSbm.cjs} +5 -5
- package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-e6q30rbV.js} +998 -942
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +28 -28
- package/lib/SearchAndReplace.d.ts +28 -28
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +28 -28
- package/lib/Selection.d.ts +28 -28
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +28 -28
- package/lib/SlashCommand.d.ts +28 -28
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +28 -28
- package/lib/Strike.d.ts +28 -28
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +28 -28
- package/lib/SubAndSuperScript.d.ts +28 -28
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +28 -28
- package/lib/Table.d.ts +28 -28
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +28 -28
- package/lib/TableOfContent.d.ts +28 -28
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +28 -28
- package/lib/TaskList.d.ts +28 -28
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +28 -28
- package/lib/TextAlign.d.ts +28 -28
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +28 -28
- package/lib/TextBubble.d.ts +28 -28
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +28 -28
- package/lib/TextDirection.d.ts +28 -28
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +28 -28
- package/lib/TextUnderline.d.ts +28 -28
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +28 -28
- package/lib/TrailingNode.d.ts +28 -28
- package/lib/{Twitter-Dj49i3B9.cjs → Twitter-D2Osj8qP.cjs} +1 -1
- package/lib/{Twitter-CCf1aM0f.js → Twitter-Wb7cD3M-.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +28 -28
- package/lib/Twitter.d.ts +28 -28
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +28 -28
- package/lib/Video.d.ts +28 -28
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +28 -28
- package/lib/bubble-extra.d.ts +28 -28
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +28 -28
- package/lib/index.d.ts +28 -28
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +28 -28
- package/lib/locale-bundle.d.ts +28 -28
- package/lib/{textarea-DhlS0JCr.cjs → textarea-BVbzd9-k.cjs} +1 -1
- package/lib/{textarea-nr3UZ7Wg.js → textarea-Csmx5x-_.js} +1 -1
- package/package.json +1 -1
package/lib/Link.d.cts
CHANGED
|
@@ -122,15 +122,6 @@ declare module '@tiptap/core' {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
declare module '@tiptap/core' {
|
|
126
|
-
interface Commands<ReturnType> {
|
|
127
|
-
excalidraw: {
|
|
128
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
125
|
declare module '@tiptap/core' {
|
|
135
126
|
interface Commands<ReturnType> {
|
|
136
127
|
emoji: {
|
|
@@ -152,6 +143,15 @@ declare module '@tiptap/core' {
|
|
|
152
143
|
}
|
|
153
144
|
|
|
154
145
|
|
|
146
|
+
declare module '@tiptap/core' {
|
|
147
|
+
interface Commands<ReturnType> {
|
|
148
|
+
excalidraw: {
|
|
149
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
155
|
declare module '@tiptap/core' {
|
|
156
156
|
interface Commands<ReturnType> {
|
|
157
157
|
exportWord: {
|
|
@@ -261,9 +261,8 @@ declare module '@tiptap/core' {
|
|
|
261
261
|
|
|
262
262
|
declare module '@tiptap/core' {
|
|
263
263
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
unsetLineHeight: () => ReturnType;
|
|
264
|
+
katex: {
|
|
265
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
267
266
|
};
|
|
268
267
|
}
|
|
269
268
|
}
|
|
@@ -271,8 +270,9 @@ declare module '@tiptap/core' {
|
|
|
271
270
|
|
|
272
271
|
declare module '@tiptap/core' {
|
|
273
272
|
interface Commands<ReturnType> {
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
lineHeight: {
|
|
274
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
275
|
+
unsetLineHeight: () => ReturnType;
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -288,6 +288,20 @@ declare module '@tiptap/core' {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
|
|
291
|
+
declare module '@tiptap/core' {
|
|
292
|
+
interface Commands<ReturnType> {
|
|
293
|
+
columns: {
|
|
294
|
+
insertColumns: (attrs?: {
|
|
295
|
+
cols: number;
|
|
296
|
+
}) => ReturnType;
|
|
297
|
+
addColBefore: () => ReturnType;
|
|
298
|
+
addColAfter: () => ReturnType;
|
|
299
|
+
deleteCol: () => ReturnType;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
291
305
|
declare module '@tiptap/core' {
|
|
292
306
|
interface Commands<ReturnType> {
|
|
293
307
|
search: {
|
|
@@ -303,20 +317,6 @@ declare module '@tiptap/core' {
|
|
|
303
317
|
}
|
|
304
318
|
|
|
305
319
|
|
|
306
|
-
declare module '@tiptap/core' {
|
|
307
|
-
interface Commands<ReturnType> {
|
|
308
|
-
columns: {
|
|
309
|
-
insertColumns: (attrs?: {
|
|
310
|
-
cols: number;
|
|
311
|
-
}) => ReturnType;
|
|
312
|
-
addColBefore: () => ReturnType;
|
|
313
|
-
addColAfter: () => ReturnType;
|
|
314
|
-
deleteCol: () => ReturnType;
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
|
|
320
320
|
declare module '@tiptap/core' {
|
|
321
321
|
interface Commands<ReturnType> {
|
|
322
322
|
tableOfContents: {
|
package/lib/Link.d.ts
CHANGED
|
@@ -122,15 +122,6 @@ declare module '@tiptap/core' {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
declare module '@tiptap/core' {
|
|
126
|
-
interface Commands<ReturnType> {
|
|
127
|
-
excalidraw: {
|
|
128
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
125
|
declare module '@tiptap/core' {
|
|
135
126
|
interface Commands<ReturnType> {
|
|
136
127
|
emoji: {
|
|
@@ -152,6 +143,15 @@ declare module '@tiptap/core' {
|
|
|
152
143
|
}
|
|
153
144
|
|
|
154
145
|
|
|
146
|
+
declare module '@tiptap/core' {
|
|
147
|
+
interface Commands<ReturnType> {
|
|
148
|
+
excalidraw: {
|
|
149
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
155
|
declare module '@tiptap/core' {
|
|
156
156
|
interface Commands<ReturnType> {
|
|
157
157
|
exportWord: {
|
|
@@ -261,9 +261,8 @@ declare module '@tiptap/core' {
|
|
|
261
261
|
|
|
262
262
|
declare module '@tiptap/core' {
|
|
263
263
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
unsetLineHeight: () => ReturnType;
|
|
264
|
+
katex: {
|
|
265
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
267
266
|
};
|
|
268
267
|
}
|
|
269
268
|
}
|
|
@@ -271,8 +270,9 @@ declare module '@tiptap/core' {
|
|
|
271
270
|
|
|
272
271
|
declare module '@tiptap/core' {
|
|
273
272
|
interface Commands<ReturnType> {
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
lineHeight: {
|
|
274
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
275
|
+
unsetLineHeight: () => ReturnType;
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -288,6 +288,20 @@ declare module '@tiptap/core' {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
|
|
291
|
+
declare module '@tiptap/core' {
|
|
292
|
+
interface Commands<ReturnType> {
|
|
293
|
+
columns: {
|
|
294
|
+
insertColumns: (attrs?: {
|
|
295
|
+
cols: number;
|
|
296
|
+
}) => ReturnType;
|
|
297
|
+
addColBefore: () => ReturnType;
|
|
298
|
+
addColAfter: () => ReturnType;
|
|
299
|
+
deleteCol: () => ReturnType;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
291
305
|
declare module '@tiptap/core' {
|
|
292
306
|
interface Commands<ReturnType> {
|
|
293
307
|
search: {
|
|
@@ -303,20 +317,6 @@ declare module '@tiptap/core' {
|
|
|
303
317
|
}
|
|
304
318
|
|
|
305
319
|
|
|
306
|
-
declare module '@tiptap/core' {
|
|
307
|
-
interface Commands<ReturnType> {
|
|
308
|
-
columns: {
|
|
309
|
-
insertColumns: (attrs?: {
|
|
310
|
-
cols: number;
|
|
311
|
-
}) => ReturnType;
|
|
312
|
-
addColBefore: () => ReturnType;
|
|
313
|
-
addColAfter: () => ReturnType;
|
|
314
|
-
deleteCol: () => ReturnType;
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
|
|
320
320
|
declare module '@tiptap/core' {
|
|
321
321
|
interface Commands<ReturnType> {
|
|
322
322
|
tableOfContents: {
|
package/lib/Link.js
CHANGED
package/lib/ListItem.d.cts
CHANGED
|
@@ -44,15 +44,6 @@ declare module '@tiptap/core' {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
declare module '@tiptap/core' {
|
|
48
|
-
interface Commands<ReturnType> {
|
|
49
|
-
excalidraw: {
|
|
50
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
47
|
declare module '@tiptap/core' {
|
|
57
48
|
interface Commands<ReturnType> {
|
|
58
49
|
emoji: {
|
|
@@ -74,6 +65,15 @@ declare module '@tiptap/core' {
|
|
|
74
65
|
}
|
|
75
66
|
|
|
76
67
|
|
|
68
|
+
declare module '@tiptap/core' {
|
|
69
|
+
interface Commands<ReturnType> {
|
|
70
|
+
excalidraw: {
|
|
71
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
77
|
declare module '@tiptap/core' {
|
|
78
78
|
interface Commands<ReturnType> {
|
|
79
79
|
exportWord: {
|
|
@@ -183,9 +183,8 @@ declare module '@tiptap/core' {
|
|
|
183
183
|
|
|
184
184
|
declare module '@tiptap/core' {
|
|
185
185
|
interface Commands<ReturnType> {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
unsetLineHeight: () => ReturnType;
|
|
186
|
+
katex: {
|
|
187
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
189
188
|
};
|
|
190
189
|
}
|
|
191
190
|
}
|
|
@@ -193,8 +192,9 @@ declare module '@tiptap/core' {
|
|
|
193
192
|
|
|
194
193
|
declare module '@tiptap/core' {
|
|
195
194
|
interface Commands<ReturnType> {
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
lineHeight: {
|
|
196
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
197
|
+
unsetLineHeight: () => ReturnType;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -210,6 +210,20 @@ declare module '@tiptap/core' {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
|
|
213
|
+
declare module '@tiptap/core' {
|
|
214
|
+
interface Commands<ReturnType> {
|
|
215
|
+
columns: {
|
|
216
|
+
insertColumns: (attrs?: {
|
|
217
|
+
cols: number;
|
|
218
|
+
}) => ReturnType;
|
|
219
|
+
addColBefore: () => ReturnType;
|
|
220
|
+
addColAfter: () => ReturnType;
|
|
221
|
+
deleteCol: () => ReturnType;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
|
|
213
227
|
declare module '@tiptap/core' {
|
|
214
228
|
interface Commands<ReturnType> {
|
|
215
229
|
search: {
|
|
@@ -225,20 +239,6 @@ declare module '@tiptap/core' {
|
|
|
225
239
|
}
|
|
226
240
|
|
|
227
241
|
|
|
228
|
-
declare module '@tiptap/core' {
|
|
229
|
-
interface Commands<ReturnType> {
|
|
230
|
-
columns: {
|
|
231
|
-
insertColumns: (attrs?: {
|
|
232
|
-
cols: number;
|
|
233
|
-
}) => ReturnType;
|
|
234
|
-
addColBefore: () => ReturnType;
|
|
235
|
-
addColAfter: () => ReturnType;
|
|
236
|
-
deleteCol: () => ReturnType;
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
242
|
declare module '@tiptap/core' {
|
|
243
243
|
interface Commands<ReturnType> {
|
|
244
244
|
tableOfContents: {
|
package/lib/ListItem.d.ts
CHANGED
|
@@ -44,15 +44,6 @@ declare module '@tiptap/core' {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
declare module '@tiptap/core' {
|
|
48
|
-
interface Commands<ReturnType> {
|
|
49
|
-
excalidraw: {
|
|
50
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
47
|
declare module '@tiptap/core' {
|
|
57
48
|
interface Commands<ReturnType> {
|
|
58
49
|
emoji: {
|
|
@@ -74,6 +65,15 @@ declare module '@tiptap/core' {
|
|
|
74
65
|
}
|
|
75
66
|
|
|
76
67
|
|
|
68
|
+
declare module '@tiptap/core' {
|
|
69
|
+
interface Commands<ReturnType> {
|
|
70
|
+
excalidraw: {
|
|
71
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
77
|
declare module '@tiptap/core' {
|
|
78
78
|
interface Commands<ReturnType> {
|
|
79
79
|
exportWord: {
|
|
@@ -183,9 +183,8 @@ declare module '@tiptap/core' {
|
|
|
183
183
|
|
|
184
184
|
declare module '@tiptap/core' {
|
|
185
185
|
interface Commands<ReturnType> {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
unsetLineHeight: () => ReturnType;
|
|
186
|
+
katex: {
|
|
187
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
189
188
|
};
|
|
190
189
|
}
|
|
191
190
|
}
|
|
@@ -193,8 +192,9 @@ declare module '@tiptap/core' {
|
|
|
193
192
|
|
|
194
193
|
declare module '@tiptap/core' {
|
|
195
194
|
interface Commands<ReturnType> {
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
lineHeight: {
|
|
196
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
197
|
+
unsetLineHeight: () => ReturnType;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -210,6 +210,20 @@ declare module '@tiptap/core' {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
|
|
213
|
+
declare module '@tiptap/core' {
|
|
214
|
+
interface Commands<ReturnType> {
|
|
215
|
+
columns: {
|
|
216
|
+
insertColumns: (attrs?: {
|
|
217
|
+
cols: number;
|
|
218
|
+
}) => ReturnType;
|
|
219
|
+
addColBefore: () => ReturnType;
|
|
220
|
+
addColAfter: () => ReturnType;
|
|
221
|
+
deleteCol: () => ReturnType;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
|
|
213
227
|
declare module '@tiptap/core' {
|
|
214
228
|
interface Commands<ReturnType> {
|
|
215
229
|
search: {
|
|
@@ -225,20 +239,6 @@ declare module '@tiptap/core' {
|
|
|
225
239
|
}
|
|
226
240
|
|
|
227
241
|
|
|
228
|
-
declare module '@tiptap/core' {
|
|
229
|
-
interface Commands<ReturnType> {
|
|
230
|
-
columns: {
|
|
231
|
-
insertColumns: (attrs?: {
|
|
232
|
-
cols: number;
|
|
233
|
-
}) => ReturnType;
|
|
234
|
-
addColBefore: () => ReturnType;
|
|
235
|
-
addColAfter: () => ReturnType;
|
|
236
|
-
deleteCol: () => ReturnType;
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
242
|
declare module '@tiptap/core' {
|
|
243
243
|
interface Commands<ReturnType> {
|
|
244
244
|
tableOfContents: {
|
package/lib/Mention.d.cts
CHANGED
|
@@ -47,15 +47,6 @@ declare module '@tiptap/core' {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
declare module '@tiptap/core' {
|
|
51
|
-
interface Commands<ReturnType> {
|
|
52
|
-
excalidraw: {
|
|
53
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
50
|
declare module '@tiptap/core' {
|
|
60
51
|
interface Commands<ReturnType> {
|
|
61
52
|
emoji: {
|
|
@@ -77,6 +68,15 @@ declare module '@tiptap/core' {
|
|
|
77
68
|
}
|
|
78
69
|
|
|
79
70
|
|
|
71
|
+
declare module '@tiptap/core' {
|
|
72
|
+
interface Commands<ReturnType> {
|
|
73
|
+
excalidraw: {
|
|
74
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
80
|
declare module '@tiptap/core' {
|
|
81
81
|
interface Commands<ReturnType> {
|
|
82
82
|
exportWord: {
|
|
@@ -186,9 +186,8 @@ declare module '@tiptap/core' {
|
|
|
186
186
|
|
|
187
187
|
declare module '@tiptap/core' {
|
|
188
188
|
interface Commands<ReturnType> {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
unsetLineHeight: () => ReturnType;
|
|
189
|
+
katex: {
|
|
190
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
192
191
|
};
|
|
193
192
|
}
|
|
194
193
|
}
|
|
@@ -196,8 +195,9 @@ declare module '@tiptap/core' {
|
|
|
196
195
|
|
|
197
196
|
declare module '@tiptap/core' {
|
|
198
197
|
interface Commands<ReturnType> {
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
lineHeight: {
|
|
199
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
200
|
+
unsetLineHeight: () => ReturnType;
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -213,6 +213,20 @@ declare module '@tiptap/core' {
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
|
|
216
|
+
declare module '@tiptap/core' {
|
|
217
|
+
interface Commands<ReturnType> {
|
|
218
|
+
columns: {
|
|
219
|
+
insertColumns: (attrs?: {
|
|
220
|
+
cols: number;
|
|
221
|
+
}) => ReturnType;
|
|
222
|
+
addColBefore: () => ReturnType;
|
|
223
|
+
addColAfter: () => ReturnType;
|
|
224
|
+
deleteCol: () => ReturnType;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
216
230
|
declare module '@tiptap/core' {
|
|
217
231
|
interface Commands<ReturnType> {
|
|
218
232
|
search: {
|
|
@@ -228,20 +242,6 @@ declare module '@tiptap/core' {
|
|
|
228
242
|
}
|
|
229
243
|
|
|
230
244
|
|
|
231
|
-
declare module '@tiptap/core' {
|
|
232
|
-
interface Commands<ReturnType> {
|
|
233
|
-
columns: {
|
|
234
|
-
insertColumns: (attrs?: {
|
|
235
|
-
cols: number;
|
|
236
|
-
}) => ReturnType;
|
|
237
|
-
addColBefore: () => ReturnType;
|
|
238
|
-
addColAfter: () => ReturnType;
|
|
239
|
-
deleteCol: () => ReturnType;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
245
|
declare module '@tiptap/core' {
|
|
246
246
|
interface Commands<ReturnType> {
|
|
247
247
|
tableOfContents: {
|
package/lib/Mention.d.ts
CHANGED
|
@@ -47,15 +47,6 @@ declare module '@tiptap/core' {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
declare module '@tiptap/core' {
|
|
51
|
-
interface Commands<ReturnType> {
|
|
52
|
-
excalidraw: {
|
|
53
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
50
|
declare module '@tiptap/core' {
|
|
60
51
|
interface Commands<ReturnType> {
|
|
61
52
|
emoji: {
|
|
@@ -77,6 +68,15 @@ declare module '@tiptap/core' {
|
|
|
77
68
|
}
|
|
78
69
|
|
|
79
70
|
|
|
71
|
+
declare module '@tiptap/core' {
|
|
72
|
+
interface Commands<ReturnType> {
|
|
73
|
+
excalidraw: {
|
|
74
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
80
|
declare module '@tiptap/core' {
|
|
81
81
|
interface Commands<ReturnType> {
|
|
82
82
|
exportWord: {
|
|
@@ -186,9 +186,8 @@ declare module '@tiptap/core' {
|
|
|
186
186
|
|
|
187
187
|
declare module '@tiptap/core' {
|
|
188
188
|
interface Commands<ReturnType> {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
unsetLineHeight: () => ReturnType;
|
|
189
|
+
katex: {
|
|
190
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
192
191
|
};
|
|
193
192
|
}
|
|
194
193
|
}
|
|
@@ -196,8 +195,9 @@ declare module '@tiptap/core' {
|
|
|
196
195
|
|
|
197
196
|
declare module '@tiptap/core' {
|
|
198
197
|
interface Commands<ReturnType> {
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
lineHeight: {
|
|
199
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
200
|
+
unsetLineHeight: () => ReturnType;
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -213,6 +213,20 @@ declare module '@tiptap/core' {
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
|
|
216
|
+
declare module '@tiptap/core' {
|
|
217
|
+
interface Commands<ReturnType> {
|
|
218
|
+
columns: {
|
|
219
|
+
insertColumns: (attrs?: {
|
|
220
|
+
cols: number;
|
|
221
|
+
}) => ReturnType;
|
|
222
|
+
addColBefore: () => ReturnType;
|
|
223
|
+
addColAfter: () => ReturnType;
|
|
224
|
+
deleteCol: () => ReturnType;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
216
230
|
declare module '@tiptap/core' {
|
|
217
231
|
interface Commands<ReturnType> {
|
|
218
232
|
search: {
|
|
@@ -228,20 +242,6 @@ declare module '@tiptap/core' {
|
|
|
228
242
|
}
|
|
229
243
|
|
|
230
244
|
|
|
231
|
-
declare module '@tiptap/core' {
|
|
232
|
-
interface Commands<ReturnType> {
|
|
233
|
-
columns: {
|
|
234
|
-
insertColumns: (attrs?: {
|
|
235
|
-
cols: number;
|
|
236
|
-
}) => ReturnType;
|
|
237
|
-
addColBefore: () => ReturnType;
|
|
238
|
-
addColAfter: () => ReturnType;
|
|
239
|
-
deleteCol: () => ReturnType;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
245
|
declare module '@tiptap/core' {
|
|
246
246
|
interface Commands<ReturnType> {
|
|
247
247
|
tableOfContents: {
|
package/lib/Mermaid.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var W=Object.create;var G=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var J=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of U(e))!Y.call(t,l)&&l!==r&&G(t,l,{get:()=>e[l],enumerable:!(a=X(e,l))||a.enumerable});return t};var K=(t,e,r)=>(r=t!=null?W(Z(t)):{},J(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-
|
|
1
|
+
"use strict";var W=Object.create;var G=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var J=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of U(e))!Y.call(t,l)&&l!==r&&G(t,l,{get:()=>e[l],enumerable:!(a=X(e,l))||a.enumerable});return t};var K=(t,e,r)=>(r=t!=null?W(Z(t)):{},J(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-DsUcQSbm.cjs"),F=require("./dom-dataset-Byuf1YmW.cjs"),o=require("react/jsx-runtime"),s=require("react"),P=require("./shortId-Bfj8TyNr.cjs"),Q=require("./textarea-BVbzd9-k.cjs"),S=require("./index-D_A0TBRA.cjs"),$=`graph TB
|
|
2
2
|
a-->b`,ee=({editor:t,upload:e})=>{const[r,a]=s.useState($),[l,v]=s.useState(""),[T,y]=s.useState(!1),A=s.useRef(null),[d,h]=s.useState(null),E=s.useCallback(c=>{c&&import("mermaid").then(x=>{h(x.default)})},[]),_=async c=>{try{const{svg:x}=await d.render("mermaid-svg",c);v(x)}catch{v("")}},L=()=>{d.initialize({darkMode:!1,startOnLoad:!1,fontSize:12,theme:"base"}),_(r)};s.useEffect(()=>{d&&T&&L()},[d,T]),s.useEffect(()=>{d&&T&&_(r)},[d&&r]);const R=async()=>{if(r!==""){if(r){const c=A.current.querySelector("svg"),{width:x,height:j}=c.getBoundingClientRect(),I=`mermaid-${P.shortId()}.svg`;let M=P.i(c.outerHTML);if(e){console.log({src:M});const H=u.dataURLtoFile(M,I);M=await e(H)}t==null||t.chain().focus().setMermaid({type:"mermaid",src:M,alt:encodeURIComponent(r),width:x,height:j},!!r).run()}y(!1)}};return o.jsxs(u.Dialog,{onOpenChange:y,open:T,children:[o.jsx(u.DialogTrigger,{asChild:!0,children:o.jsx(u.ActionButton,{action:()=>y(!0),icon:"Mermaid",tooltip:"Mermaid"})}),o.jsxs(u.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[o.jsx(u.DialogTitle,{children:"Mermaid"}),o.jsx("div",{ref:E,style:{height:"100%",border:"1px solid hsl(var(--border))"},children:o.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[o.jsx(Q.Textarea,{autoFocus:!0,className:"richtext-flex-1",defaultValue:$,onChange:c=>a(c.target.value),placeholder:"Text",required:!0,rows:10,value:r,style:{color:"hsl(var(--richtext-foreground))"}}),o.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:l},ref:A,style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),o.jsx(u.DialogFooter,{children:o.jsx(u.Button,{onClick:R,type:"button",children:"Save changes"})})]})]})},O={TOP_LEFT:"tl",TOP_RIGHT:"tr",BOTTOM_LEFT:"bl",BOTTOM_RIGHT:"br"};function te({editor:t,node:e,updateAttributes:r,getPos:a,selected:l}){const[v,T]=s.useState({width:S.IMAGE_MAX_SIZE,height:S.IMAGE_MAX_SIZE}),[y,A]=s.useState({width:0,height:0}),[d]=s.useState([O.TOP_LEFT,O.TOP_RIGHT,O.BOTTOM_LEFT,O.BOTTOM_RIGHT]),[h,E]=s.useState(!1),[_,L]=s.useState({x:0,y:0,w:0,h:0,dir:""}),{align:R}=e==null?void 0:e.attrs,c=s.useMemo(()=>{const{src:i,alt:m,width:f,height:b}=e==null?void 0:e.attrs,w=q.isNumber(f)?`${f}px`:f,n=q.isNumber(b)?`${b}px`:b;return{src:i||void 0,alt:m||void 0,style:{width:w||void 0,height:n||void 0}}},[e==null?void 0:e.attrs]),x=s.useMemo(()=>{const{style:{width:i}}=c;return{width:i==="100%"?i:void 0}},[c]);function j(i){A({width:i.target.width,height:i.target.height})}function I(){t.commands.setNodeSelection(a())}const M=s.useCallback(u.throttle(()=>{const{width:i}=getComputedStyle(t.view.dom);T(m=>({...m,width:Number.parseInt(i,10)}))},S.IMAGE_THROTTLE_WAIT_TIME),[t]);function H(i,m){i.preventDefault(),i.stopPropagation();const f=y.width,b=y.height,w=f/b;let n=Number(e.attrs.width),p=Number(e.attrs.height);const g=v.width;n&&!p?(n=n>g?g:n,p=Math.round(n/w)):p&&!n?(n=Math.round(p*w),n=n>g?g:n):!n&&!p?(n=f>g?g:f,p=Math.round(n/w)):n=n>g?g:n,E(!0),L({x:i.clientX,y:i.clientY,w:n,h:p,dir:m})}const N=s.useCallback(u.throttle(i=>{if(i.preventDefault(),i.stopPropagation(),!h)return;const{x:m,w:f,dir:b}=_,w=(i.clientX-m)*(/l/.test(b)?-1:1),{width:n,height:p}=e==null?void 0:e.attrs,g=n/p,B=u.clamp(f+w,S.IMAGE_MIN_SIZE,v.width),V=Math.round(B/g);r({width:B,height:V})},S.IMAGE_THROTTLE_WAIT_TIME),[h,_,v,r,e==null?void 0:e.attrs]),C=s.useCallback(i=>{i.preventDefault(),i.stopPropagation(),h&&(L({x:0,y:0,w:0,h:0,dir:""}),E(!1),I())},[h,I]),D=s.useCallback(()=>{document==null||document.addEventListener("mousemove",N,!0),document==null||document.addEventListener("mouseup",C,!0)},[N,C]),z=s.useCallback(()=>{document==null||document.removeEventListener("mousemove",N,!0),document==null||document.removeEventListener("mouseup",C,!0)},[N,C]);s.useEffect(()=>(h?D():z(),()=>{z()}),[h,D,z]);const k=s.useMemo(()=>new ResizeObserver(()=>M()),[M]);return s.useEffect(()=>(k.observe(t.view.dom),()=>{k.disconnect()}),[t.view.dom,k]),o.jsx(F.NodeViewWrapper,{className:"image-view",style:{...x,width:"100%",textAlign:R},children:o.jsxs("div",{"data-drag-handle":!0,draggable:"true",style:{...x,background:"#fff"},className:`image-view__body ${l?"image-view__body--focused":""} ${h?"image-view__body--resizing":""}`,children:[o.jsx("img",{alt:c.alt,className:"image-view__body__image block",height:"auto",onClick:I,onLoad:j,src:c.src,style:c.style}),t.view.editable&&(l||h)&&o.jsx("div",{className:"image-resizer",children:d==null?void 0:d.map(i=>o.jsx("span",{className:`image-resizer__handler image-resizer__handler--${i}`,onMouseDown:m=>H(m,i)},`image-dir-${i}`))})]})})}const re=u.Image.extend({name:"mermaid",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),inline:!1,content:"",marks:"",group:"block",draggable:!1,selectable:!0,atom:!0,HTMLAttributes:{class:"mermaid"},button:({editor:e,t:r,extension:a})=>{var l;return{component:ee,componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,editor:e,icon:"Mermaid",tooltip:r("editor.mermaid.tooltip"),upload:(l=a==null?void 0:a.options)==null?void 0:l.upload}}}}},addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),width:{default:null,parseHTML:e=>{const r=e.querySelector("img"),a=r==null?void 0:r.getAttribute("width");return a?Number.parseInt(a,10):320},renderHTML:e=>({width:e.width})},height:{default:null,parseHTML:e=>{const r=e.querySelector("img"),a=r==null?void 0:r.getAttribute("height");return a?Number.parseInt(a,10):212},renderHTML:e=>({height:e.height})},align:{default:"center",parseHTML:e=>e.getAttribute("align"),renderHTML:e=>({align:e.align})}}},addNodeView(){return F.ReactNodeViewRenderer(te)},addCommands(){return{setMermaid:(t,e)=>({commands:r,editor:a})=>e?r.insertContent({type:this.name,attrs:t}):r.insertContentAt(a.state.selection.anchor,{type:this.name,attrs:t}),setAlignImageMermaid:t=>({commands:e})=>e.updateAttributes(this.name,{align:t})}},renderHTML({HTMLAttributes:t}){const{align:e}=t;return["div",{style:e?`text-align: ${e};`:"",class:"imageMermaid"},["img",q.mergeAttributes(this.options.HTMLAttributes,t)]]},parseHTML(){return[{tag:"div[class=imageMermaid]",getAttrs:t=>{const e=t.querySelector("img"),r=e==null?void 0:e.getAttribute("width"),a=e==null?void 0:e.getAttribute("height");return{src:e==null?void 0:e.getAttribute("src"),alt:e==null?void 0:e.getAttribute("alt"),width:r?Number.parseInt(r,10):null,height:a?Number.parseInt(a,10):null,align:(e==null?void 0:e.getAttribute("align"))||t.style.textAlign||null}}}]}});exports.Mermaid=re;
|