reactjs-tiptap-editor 0.4.0 → 0.4.1
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/Attachment.d.cts +46 -46
- package/lib/Attachment.d.ts +46 -46
- package/lib/BaseKit.d.cts +46 -46
- package/lib/BaseKit.d.ts +46 -46
- package/lib/Blockquote.d.cts +46 -46
- package/lib/Blockquote.d.ts +46 -46
- package/lib/Bold.d.cts +46 -46
- package/lib/Bold.d.ts +46 -46
- package/lib/BulletList.d.cts +46 -46
- package/lib/BulletList.d.ts +46 -46
- package/lib/Clear.d.cts +46 -46
- package/lib/Clear.d.ts +46 -46
- package/lib/Code.d.cts +46 -46
- package/lib/Code.d.ts +46 -46
- package/lib/CodeBlock.d.cts +46 -46
- package/lib/CodeBlock.d.ts +46 -46
- package/lib/CodeView.d.cts +46 -46
- package/lib/CodeView.d.ts +46 -46
- package/lib/Color.d.cts +46 -46
- package/lib/Color.d.ts +46 -46
- package/lib/Document.d.cts +46 -46
- package/lib/Document.d.ts +46 -46
- package/lib/Drawer.d.cts +46 -46
- package/lib/Drawer.d.ts +46 -46
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +46 -46
- package/lib/Emoji.d.ts +46 -46
- package/lib/Emoji.js +2 -2
- package/lib/Excalidraw.d.cts +46 -46
- package/lib/Excalidraw.d.ts +46 -46
- package/lib/ExportPdf.d.cts +46 -46
- package/lib/ExportPdf.d.ts +46 -46
- package/lib/ExportWord.d.cts +46 -46
- package/lib/ExportWord.d.ts +46 -46
- package/lib/FontFamily.d.cts +46 -46
- package/lib/FontFamily.d.ts +46 -46
- package/lib/FontSize.d.cts +46 -46
- package/lib/FontSize.d.ts +46 -46
- package/lib/FormatPainter.d.cts +46 -46
- package/lib/FormatPainter.d.ts +46 -46
- package/lib/Heading.d.cts +46 -46
- package/lib/Heading.d.ts +46 -46
- package/lib/Highlight.d.cts +46 -46
- package/lib/Highlight.d.ts +46 -46
- package/lib/History.d.cts +46 -46
- package/lib/History.d.ts +46 -46
- package/lib/HorizontalRule.d.cts +46 -46
- package/lib/HorizontalRule.d.ts +46 -46
- package/lib/Iframe.d.cts +46 -46
- package/lib/Iframe.d.ts +46 -46
- package/lib/Image.d.cts +46 -46
- package/lib/Image.d.ts +46 -46
- package/lib/ImageGif.d.cts +46 -46
- package/lib/ImageGif.d.ts +46 -46
- package/lib/ImportWord.d.cts +46 -46
- package/lib/ImportWord.d.ts +46 -46
- package/lib/Indent.d.cts +46 -46
- package/lib/Indent.d.ts +46 -46
- package/lib/Italic.d.cts +46 -46
- package/lib/Italic.d.ts +46 -46
- package/lib/Katex.d.cts +46 -46
- package/lib/Katex.d.ts +46 -46
- package/lib/LineHeight.d.cts +46 -46
- package/lib/LineHeight.d.ts +46 -46
- package/lib/Link.d.cts +46 -46
- package/lib/Link.d.ts +46 -46
- package/lib/ListItem.d.cts +46 -46
- package/lib/ListItem.d.ts +46 -46
- package/lib/Mention.d.cts +46 -46
- package/lib/Mention.d.ts +46 -46
- package/lib/Mermaid.d.cts +46 -46
- package/lib/Mermaid.d.ts +46 -46
- package/lib/MoreMark.d.cts +46 -46
- package/lib/MoreMark.d.ts +46 -46
- package/lib/MultiColumn.d.cts +46 -46
- package/lib/MultiColumn.d.ts +46 -46
- package/lib/OrderedList.d.cts +46 -46
- package/lib/OrderedList.d.ts +46 -46
- package/lib/SearchAndReplace.d.cts +46 -46
- package/lib/SearchAndReplace.d.ts +46 -46
- package/lib/Selection.d.cts +46 -46
- package/lib/Selection.d.ts +46 -46
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +46 -46
- package/lib/SlashCommand.d.ts +46 -46
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.d.cts +46 -46
- package/lib/Strike.d.ts +46 -46
- package/lib/SubAndSuperScript.d.cts +46 -46
- package/lib/SubAndSuperScript.d.ts +46 -46
- package/lib/Table.d.cts +46 -46
- package/lib/Table.d.ts +46 -46
- package/lib/TableOfContent.d.cts +46 -46
- package/lib/TableOfContent.d.ts +46 -46
- package/lib/TaskList.d.cts +46 -46
- package/lib/TaskList.d.ts +46 -46
- package/lib/TextAlign.d.cts +46 -46
- package/lib/TextAlign.d.ts +46 -46
- package/lib/TextBubble.d.cts +46 -46
- package/lib/TextBubble.d.ts +46 -46
- package/lib/TextDirection.d.cts +46 -46
- package/lib/TextDirection.d.ts +46 -46
- package/lib/TextUnderline.d.cts +46 -46
- package/lib/TextUnderline.d.ts +46 -46
- package/lib/TrailingNode.d.cts +46 -46
- package/lib/TrailingNode.d.ts +46 -46
- package/lib/Twitter.d.cts +46 -46
- package/lib/Twitter.d.ts +46 -46
- package/lib/Video.d.cts +46 -46
- package/lib/Video.d.ts +46 -46
- package/lib/bubble-extra.d.cts +46 -46
- package/lib/bubble-extra.d.ts +46 -46
- package/lib/index.d.cts +46 -46
- package/lib/index.d.ts +46 -46
- package/lib/locale-bundle.d.cts +46 -46
- package/lib/locale-bundle.d.ts +46 -46
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/SlashCommand.d.cts
CHANGED
|
@@ -66,8 +66,9 @@ declare module '@tiptap/core' {
|
|
|
66
66
|
|
|
67
67
|
declare module '@tiptap/core' {
|
|
68
68
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
drawer: {
|
|
70
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
71
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -75,9 +76,8 @@ declare module '@tiptap/core' {
|
|
|
75
76
|
|
|
76
77
|
declare module '@tiptap/core' {
|
|
77
78
|
interface Commands<ReturnType> {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
79
|
+
excalidraw: {
|
|
80
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -101,15 +101,6 @@ declare module '@tiptap/core' {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
declare module '@tiptap/core' {
|
|
105
|
-
interface Commands<ReturnType> {
|
|
106
|
-
painter: {
|
|
107
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
104
|
declare module '@tiptap/core' {
|
|
114
105
|
interface Commands<ReturnType> {
|
|
115
106
|
fontSize: {
|
|
@@ -128,6 +119,15 @@ declare module '@tiptap/core' {
|
|
|
128
119
|
}
|
|
129
120
|
|
|
130
121
|
|
|
122
|
+
declare module '@tiptap/core' {
|
|
123
|
+
interface Commands<ReturnType> {
|
|
124
|
+
painter: {
|
|
125
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
131
|
declare module '@tiptap/core' {
|
|
132
132
|
interface Commands<ReturnType> {
|
|
133
133
|
iframe: {
|
|
@@ -163,6 +163,22 @@ declare module '@tiptap/core' {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|
|
166
|
+
declare module '@tiptap/core' {
|
|
167
|
+
interface Commands<ReturnType> {
|
|
168
|
+
indent: {
|
|
169
|
+
/**
|
|
170
|
+
* Set the indent attribute
|
|
171
|
+
*/
|
|
172
|
+
indent: () => ReturnType;
|
|
173
|
+
/**
|
|
174
|
+
* Set the outdent attribute
|
|
175
|
+
*/
|
|
176
|
+
outdent: () => ReturnType;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
166
182
|
declare module '@tiptap/core' {
|
|
167
183
|
interface Commands<ReturnType> {
|
|
168
184
|
imageGifUpload: {
|
|
@@ -194,15 +210,9 @@ declare module '@tiptap/core' {
|
|
|
194
210
|
|
|
195
211
|
declare module '@tiptap/core' {
|
|
196
212
|
interface Commands<ReturnType> {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
*/
|
|
201
|
-
indent: () => ReturnType;
|
|
202
|
-
/**
|
|
203
|
-
* Set the outdent attribute
|
|
204
|
-
*/
|
|
205
|
-
outdent: () => ReturnType;
|
|
213
|
+
lineHeight: {
|
|
214
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
215
|
+
unsetLineHeight: () => ReturnType;
|
|
206
216
|
};
|
|
207
217
|
}
|
|
208
218
|
}
|
|
@@ -210,9 +220,9 @@ declare module '@tiptap/core' {
|
|
|
210
220
|
|
|
211
221
|
declare module '@tiptap/core' {
|
|
212
222
|
interface Commands<ReturnType> {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
223
|
+
mermaid: {
|
|
224
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
225
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
216
226
|
};
|
|
217
227
|
}
|
|
218
228
|
}
|
|
@@ -232,26 +242,6 @@ declare module '@tiptap/core' {
|
|
|
232
242
|
}
|
|
233
243
|
|
|
234
244
|
|
|
235
|
-
declare module '@tiptap/core' {
|
|
236
|
-
interface Commands<ReturnType> {
|
|
237
|
-
mermaid: {
|
|
238
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
239
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
declare module '@tiptap/core' {
|
|
246
|
-
interface Commands<ReturnType> {
|
|
247
|
-
tableOfContents: {
|
|
248
|
-
setTableOfContents: () => ReturnType;
|
|
249
|
-
removeTableOfContents: () => ReturnType;
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
245
|
declare module '@tiptap/core' {
|
|
256
246
|
interface Commands<ReturnType> {
|
|
257
247
|
search: {
|
|
@@ -275,6 +265,16 @@ declare module '@tiptap/core' {
|
|
|
275
265
|
}
|
|
276
266
|
|
|
277
267
|
|
|
268
|
+
declare module '@tiptap/core' {
|
|
269
|
+
interface Commands<ReturnType> {
|
|
270
|
+
tableOfContents: {
|
|
271
|
+
setTableOfContents: () => ReturnType;
|
|
272
|
+
removeTableOfContents: () => ReturnType;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
278
|
declare module '@tiptap/core' {
|
|
279
279
|
interface Commands<ReturnType> {
|
|
280
280
|
twitter: {
|
package/lib/SlashCommand.d.ts
CHANGED
|
@@ -66,8 +66,9 @@ declare module '@tiptap/core' {
|
|
|
66
66
|
|
|
67
67
|
declare module '@tiptap/core' {
|
|
68
68
|
interface Commands<ReturnType> {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
drawer: {
|
|
70
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
71
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -75,9 +76,8 @@ declare module '@tiptap/core' {
|
|
|
75
76
|
|
|
76
77
|
declare module '@tiptap/core' {
|
|
77
78
|
interface Commands<ReturnType> {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
79
|
+
excalidraw: {
|
|
80
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -101,15 +101,6 @@ declare module '@tiptap/core' {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
declare module '@tiptap/core' {
|
|
105
|
-
interface Commands<ReturnType> {
|
|
106
|
-
painter: {
|
|
107
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
104
|
declare module '@tiptap/core' {
|
|
114
105
|
interface Commands<ReturnType> {
|
|
115
106
|
fontSize: {
|
|
@@ -128,6 +119,15 @@ declare module '@tiptap/core' {
|
|
|
128
119
|
}
|
|
129
120
|
|
|
130
121
|
|
|
122
|
+
declare module '@tiptap/core' {
|
|
123
|
+
interface Commands<ReturnType> {
|
|
124
|
+
painter: {
|
|
125
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
131
|
declare module '@tiptap/core' {
|
|
132
132
|
interface Commands<ReturnType> {
|
|
133
133
|
iframe: {
|
|
@@ -163,6 +163,22 @@ declare module '@tiptap/core' {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|
|
166
|
+
declare module '@tiptap/core' {
|
|
167
|
+
interface Commands<ReturnType> {
|
|
168
|
+
indent: {
|
|
169
|
+
/**
|
|
170
|
+
* Set the indent attribute
|
|
171
|
+
*/
|
|
172
|
+
indent: () => ReturnType;
|
|
173
|
+
/**
|
|
174
|
+
* Set the outdent attribute
|
|
175
|
+
*/
|
|
176
|
+
outdent: () => ReturnType;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
166
182
|
declare module '@tiptap/core' {
|
|
167
183
|
interface Commands<ReturnType> {
|
|
168
184
|
imageGifUpload: {
|
|
@@ -194,15 +210,9 @@ declare module '@tiptap/core' {
|
|
|
194
210
|
|
|
195
211
|
declare module '@tiptap/core' {
|
|
196
212
|
interface Commands<ReturnType> {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
*/
|
|
201
|
-
indent: () => ReturnType;
|
|
202
|
-
/**
|
|
203
|
-
* Set the outdent attribute
|
|
204
|
-
*/
|
|
205
|
-
outdent: () => ReturnType;
|
|
213
|
+
lineHeight: {
|
|
214
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
215
|
+
unsetLineHeight: () => ReturnType;
|
|
206
216
|
};
|
|
207
217
|
}
|
|
208
218
|
}
|
|
@@ -210,9 +220,9 @@ declare module '@tiptap/core' {
|
|
|
210
220
|
|
|
211
221
|
declare module '@tiptap/core' {
|
|
212
222
|
interface Commands<ReturnType> {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
223
|
+
mermaid: {
|
|
224
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
225
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
216
226
|
};
|
|
217
227
|
}
|
|
218
228
|
}
|
|
@@ -232,26 +242,6 @@ declare module '@tiptap/core' {
|
|
|
232
242
|
}
|
|
233
243
|
|
|
234
244
|
|
|
235
|
-
declare module '@tiptap/core' {
|
|
236
|
-
interface Commands<ReturnType> {
|
|
237
|
-
mermaid: {
|
|
238
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
239
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
declare module '@tiptap/core' {
|
|
246
|
-
interface Commands<ReturnType> {
|
|
247
|
-
tableOfContents: {
|
|
248
|
-
setTableOfContents: () => ReturnType;
|
|
249
|
-
removeTableOfContents: () => ReturnType;
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
245
|
declare module '@tiptap/core' {
|
|
256
246
|
interface Commands<ReturnType> {
|
|
257
247
|
search: {
|
|
@@ -275,6 +265,16 @@ declare module '@tiptap/core' {
|
|
|
275
265
|
}
|
|
276
266
|
|
|
277
267
|
|
|
268
|
+
declare module '@tiptap/core' {
|
|
269
|
+
interface Commands<ReturnType> {
|
|
270
|
+
tableOfContents: {
|
|
271
|
+
setTableOfContents: () => ReturnType;
|
|
272
|
+
removeTableOfContents: () => ReturnType;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
278
|
declare module '@tiptap/core' {
|
|
279
279
|
interface Commands<ReturnType> {
|
|
280
280
|
twitter: {
|
package/lib/SlashCommand.js
CHANGED
|
@@ -54,7 +54,7 @@ function F(t, c) {
|
|
|
54
54
|
return /* @__PURE__ */ f(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
|
-
className: "richtext-
|
|
57
|
+
className: "richtext-max-h-[min(80vh,24rem)] richtext-flex-wrap richtext-overflow-auto richtext-rounded-lg !richtext-border !richtext-border-neutral-200 !richtext-bg-white richtext-p-1 !richtext-text-black richtext-shadow-sm dark:!richtext-border-neutral-800 dark:!richtext-bg-black",
|
|
58
58
|
ref: l,
|
|
59
59
|
children: (p = t == null ? void 0 : t.items) != null && p.length ? /* @__PURE__ */ f("div", { className: "richtext-grid richtext-min-w-48 richtext-grid-cols-1 richtext-gap-0.5", children: (y = t == null ? void 0 : t.items) == null ? void 0 : y.map((r, a) => /* @__PURE__ */ k(V, { children: [
|
|
60
60
|
/* @__PURE__ */ f("div", { className: "richtext-col-[1/-1] richtext-mx-2 richtext-mt-2 richtext-select-none richtext-text-[0.65rem] richtext-font-semibold richtext-uppercase richtext-tracking-wider !richtext-text-neutral-500 first:richtext-mt-0.5", children: r.title }),
|
|
@@ -63,7 +63,7 @@ function F(t, c) {
|
|
|
63
63
|
{
|
|
64
64
|
onClick: () => R(a, w),
|
|
65
65
|
ref: (I) => E(a, w, I),
|
|
66
|
-
className: P("richtext-flex richtext-items-center richtext-gap-3 richtext-px-2 richtext-py-1.5 richtext-text-sm !richtext-text-neutral-800 dark:!richtext-text-neutral-200 richtext-text-left richtext-w-full richtext-rounded-sm richtext-outline-none richtext-transition-colors !richtext-bg-transparent hover:!richtext-bg-accent ", {
|
|
66
|
+
className: P("richtext-flex richtext-items-center richtext-gap-3 richtext-px-2 richtext-py-1.5 richtext-text-sm !richtext-text-neutral-800 dark:!richtext-text-neutral-200 richtext-text-left richtext-w-full richtext-rounded-sm !richtext-outline-none !richtext-border-none richtext-transition-colors !richtext-bg-transparent hover:!richtext-bg-accent ", {
|
|
67
67
|
"slash-command-active": e === a && n === w
|
|
68
68
|
}),
|
|
69
69
|
children: [
|
package/lib/Strike.d.cts
CHANGED
|
@@ -112,8 +112,9 @@ declare module '@tiptap/core' {
|
|
|
112
112
|
|
|
113
113
|
declare module '@tiptap/core' {
|
|
114
114
|
interface Commands<ReturnType> {
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
drawer: {
|
|
116
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
117
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
117
118
|
};
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -121,9 +122,8 @@ declare module '@tiptap/core' {
|
|
|
121
122
|
|
|
122
123
|
declare module '@tiptap/core' {
|
|
123
124
|
interface Commands<ReturnType> {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -147,15 +147,6 @@ declare module '@tiptap/core' {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
declare module '@tiptap/core' {
|
|
151
|
-
interface Commands<ReturnType> {
|
|
152
|
-
painter: {
|
|
153
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
150
|
declare module '@tiptap/core' {
|
|
160
151
|
interface Commands<ReturnType> {
|
|
161
152
|
fontSize: {
|
|
@@ -174,6 +165,15 @@ declare module '@tiptap/core' {
|
|
|
174
165
|
}
|
|
175
166
|
|
|
176
167
|
|
|
168
|
+
declare module '@tiptap/core' {
|
|
169
|
+
interface Commands<ReturnType> {
|
|
170
|
+
painter: {
|
|
171
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
177
|
declare module '@tiptap/core' {
|
|
178
178
|
interface Commands<ReturnType> {
|
|
179
179
|
iframe: {
|
|
@@ -209,6 +209,22 @@ declare module '@tiptap/core' {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
|
|
212
|
+
declare module '@tiptap/core' {
|
|
213
|
+
interface Commands<ReturnType> {
|
|
214
|
+
indent: {
|
|
215
|
+
/**
|
|
216
|
+
* Set the indent attribute
|
|
217
|
+
*/
|
|
218
|
+
indent: () => ReturnType;
|
|
219
|
+
/**
|
|
220
|
+
* Set the outdent attribute
|
|
221
|
+
*/
|
|
222
|
+
outdent: () => ReturnType;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
212
228
|
declare module '@tiptap/core' {
|
|
213
229
|
interface Commands<ReturnType> {
|
|
214
230
|
imageGifUpload: {
|
|
@@ -240,15 +256,9 @@ declare module '@tiptap/core' {
|
|
|
240
256
|
|
|
241
257
|
declare module '@tiptap/core' {
|
|
242
258
|
interface Commands<ReturnType> {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
*/
|
|
247
|
-
indent: () => ReturnType;
|
|
248
|
-
/**
|
|
249
|
-
* Set the outdent attribute
|
|
250
|
-
*/
|
|
251
|
-
outdent: () => ReturnType;
|
|
259
|
+
lineHeight: {
|
|
260
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
261
|
+
unsetLineHeight: () => ReturnType;
|
|
252
262
|
};
|
|
253
263
|
}
|
|
254
264
|
}
|
|
@@ -256,9 +266,9 @@ declare module '@tiptap/core' {
|
|
|
256
266
|
|
|
257
267
|
declare module '@tiptap/core' {
|
|
258
268
|
interface Commands<ReturnType> {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
269
|
+
mermaid: {
|
|
270
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
271
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
262
272
|
};
|
|
263
273
|
}
|
|
264
274
|
}
|
|
@@ -278,26 +288,6 @@ declare module '@tiptap/core' {
|
|
|
278
288
|
}
|
|
279
289
|
|
|
280
290
|
|
|
281
|
-
declare module '@tiptap/core' {
|
|
282
|
-
interface Commands<ReturnType> {
|
|
283
|
-
mermaid: {
|
|
284
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
285
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
declare module '@tiptap/core' {
|
|
292
|
-
interface Commands<ReturnType> {
|
|
293
|
-
tableOfContents: {
|
|
294
|
-
setTableOfContents: () => ReturnType;
|
|
295
|
-
removeTableOfContents: () => ReturnType;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
291
|
declare module '@tiptap/core' {
|
|
302
292
|
interface Commands<ReturnType> {
|
|
303
293
|
search: {
|
|
@@ -321,6 +311,16 @@ declare module '@tiptap/core' {
|
|
|
321
311
|
}
|
|
322
312
|
|
|
323
313
|
|
|
314
|
+
declare module '@tiptap/core' {
|
|
315
|
+
interface Commands<ReturnType> {
|
|
316
|
+
tableOfContents: {
|
|
317
|
+
setTableOfContents: () => ReturnType;
|
|
318
|
+
removeTableOfContents: () => ReturnType;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
324
|
declare module '@tiptap/core' {
|
|
325
325
|
interface Commands<ReturnType> {
|
|
326
326
|
twitter: {
|
package/lib/Strike.d.ts
CHANGED
|
@@ -112,8 +112,9 @@ declare module '@tiptap/core' {
|
|
|
112
112
|
|
|
113
113
|
declare module '@tiptap/core' {
|
|
114
114
|
interface Commands<ReturnType> {
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
drawer: {
|
|
116
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
117
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
117
118
|
};
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -121,9 +122,8 @@ declare module '@tiptap/core' {
|
|
|
121
122
|
|
|
122
123
|
declare module '@tiptap/core' {
|
|
123
124
|
interface Commands<ReturnType> {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
125
|
+
excalidraw: {
|
|
126
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -147,15 +147,6 @@ declare module '@tiptap/core' {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
declare module '@tiptap/core' {
|
|
151
|
-
interface Commands<ReturnType> {
|
|
152
|
-
painter: {
|
|
153
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
150
|
declare module '@tiptap/core' {
|
|
160
151
|
interface Commands<ReturnType> {
|
|
161
152
|
fontSize: {
|
|
@@ -174,6 +165,15 @@ declare module '@tiptap/core' {
|
|
|
174
165
|
}
|
|
175
166
|
|
|
176
167
|
|
|
168
|
+
declare module '@tiptap/core' {
|
|
169
|
+
interface Commands<ReturnType> {
|
|
170
|
+
painter: {
|
|
171
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
177
|
declare module '@tiptap/core' {
|
|
178
178
|
interface Commands<ReturnType> {
|
|
179
179
|
iframe: {
|
|
@@ -209,6 +209,22 @@ declare module '@tiptap/core' {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
|
|
212
|
+
declare module '@tiptap/core' {
|
|
213
|
+
interface Commands<ReturnType> {
|
|
214
|
+
indent: {
|
|
215
|
+
/**
|
|
216
|
+
* Set the indent attribute
|
|
217
|
+
*/
|
|
218
|
+
indent: () => ReturnType;
|
|
219
|
+
/**
|
|
220
|
+
* Set the outdent attribute
|
|
221
|
+
*/
|
|
222
|
+
outdent: () => ReturnType;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
212
228
|
declare module '@tiptap/core' {
|
|
213
229
|
interface Commands<ReturnType> {
|
|
214
230
|
imageGifUpload: {
|
|
@@ -240,15 +256,9 @@ declare module '@tiptap/core' {
|
|
|
240
256
|
|
|
241
257
|
declare module '@tiptap/core' {
|
|
242
258
|
interface Commands<ReturnType> {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
*/
|
|
247
|
-
indent: () => ReturnType;
|
|
248
|
-
/**
|
|
249
|
-
* Set the outdent attribute
|
|
250
|
-
*/
|
|
251
|
-
outdent: () => ReturnType;
|
|
259
|
+
lineHeight: {
|
|
260
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
261
|
+
unsetLineHeight: () => ReturnType;
|
|
252
262
|
};
|
|
253
263
|
}
|
|
254
264
|
}
|
|
@@ -256,9 +266,9 @@ declare module '@tiptap/core' {
|
|
|
256
266
|
|
|
257
267
|
declare module '@tiptap/core' {
|
|
258
268
|
interface Commands<ReturnType> {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
269
|
+
mermaid: {
|
|
270
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
271
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
262
272
|
};
|
|
263
273
|
}
|
|
264
274
|
}
|
|
@@ -278,26 +288,6 @@ declare module '@tiptap/core' {
|
|
|
278
288
|
}
|
|
279
289
|
|
|
280
290
|
|
|
281
|
-
declare module '@tiptap/core' {
|
|
282
|
-
interface Commands<ReturnType> {
|
|
283
|
-
mermaid: {
|
|
284
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
285
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
declare module '@tiptap/core' {
|
|
292
|
-
interface Commands<ReturnType> {
|
|
293
|
-
tableOfContents: {
|
|
294
|
-
setTableOfContents: () => ReturnType;
|
|
295
|
-
removeTableOfContents: () => ReturnType;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
291
|
declare module '@tiptap/core' {
|
|
302
292
|
interface Commands<ReturnType> {
|
|
303
293
|
search: {
|
|
@@ -321,6 +311,16 @@ declare module '@tiptap/core' {
|
|
|
321
311
|
}
|
|
322
312
|
|
|
323
313
|
|
|
314
|
+
declare module '@tiptap/core' {
|
|
315
|
+
interface Commands<ReturnType> {
|
|
316
|
+
tableOfContents: {
|
|
317
|
+
setTableOfContents: () => ReturnType;
|
|
318
|
+
removeTableOfContents: () => ReturnType;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
324
|
declare module '@tiptap/core' {
|
|
325
325
|
interface Commands<ReturnType> {
|
|
326
326
|
twitter: {
|