reactjs-tiptap-editor 0.2.11 → 0.2.13
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/{RichTextEditor-DJJ5SBya.cjs → RichTextEditor-DBjHuER_.cjs} +92 -89
- package/lib/{RichTextEditor-CIenLXbH.js → RichTextEditor-DqXFuGeI.js} +91 -88
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +56 -56
- package/lib/extension-bundle.d.ts +56 -56
- package/lib/extension-bundle.js +701 -697
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +56 -56
- package/lib/index.d.ts +56 -56
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +56 -56
- package/lib/locale-bundle.d.ts +56 -56
- package/lib/style.css +1 -1
- package/lib/{tiptap-DKUVyykT.js → tiptap-24JNJPT1.js} +204 -203
- package/lib/{tiptap-BjxGiEhB.cjs → tiptap-DaE4Kxno.cjs} +12 -12
- package/package.json +54 -54
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-DBjHuER_.cjs"),c=require("./tiptap-DaE4Kxno.cjs");function a(){var r;const e=t.useRef({editor:null}),[i,o]=t.useState(!1),[s,n]=t.useState(null);return t.useEffect(()=>{var u;(u=e.current)!=null&&u.editor&&(o(!0),n(e.current.editor))},[e,(r=e.current)==null?void 0:r.editor]),{isReady:i,editor:s,editorRef:e}}exports.default=d.RichTextEditor;exports.BubbleMenu=c.BubbleMenu;exports.useEditorState=a;
|
package/lib/index.d.cts
CHANGED
|
@@ -251,9 +251,15 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
indent: {
|
|
255
|
+
/**
|
|
256
|
+
* Set the indent attribute
|
|
257
|
+
*/
|
|
258
|
+
indent: () => ReturnType;
|
|
259
|
+
/**
|
|
260
|
+
* Set the outdent attribute
|
|
261
|
+
*/
|
|
262
|
+
outdent: () => ReturnType;
|
|
257
263
|
};
|
|
258
264
|
}
|
|
259
265
|
}
|
|
@@ -261,8 +267,9 @@ declare module '@tiptap/core' {
|
|
|
261
267
|
|
|
262
268
|
declare module '@tiptap/core' {
|
|
263
269
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
265
|
-
|
|
270
|
+
lineHeight: {
|
|
271
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
272
|
+
unsetLineHeight: () => ReturnType;
|
|
266
273
|
};
|
|
267
274
|
}
|
|
268
275
|
}
|
|
@@ -284,37 +291,9 @@ declare module '@tiptap/core' {
|
|
|
284
291
|
|
|
285
292
|
declare module '@tiptap/core' {
|
|
286
293
|
interface Commands<ReturnType> {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
*/
|
|
291
|
-
indent: () => ReturnType;
|
|
292
|
-
/**
|
|
293
|
-
* Set the outdent attribute
|
|
294
|
-
*/
|
|
295
|
-
outdent: () => ReturnType;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
declare module '@tiptap/core' {
|
|
302
|
-
interface Commands<ReturnType> {
|
|
303
|
-
lineHeight: {
|
|
304
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
305
|
-
unsetLineHeight: () => ReturnType;
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
declare module '@tiptap/core' {
|
|
312
|
-
interface Commands<ReturnType> {
|
|
313
|
-
emoji: {
|
|
314
|
-
setEmoji: (emoji: {
|
|
315
|
-
name: string;
|
|
316
|
-
emoji: string;
|
|
317
|
-
}) => ReturnType;
|
|
294
|
+
tableCellBackground: {
|
|
295
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
296
|
+
unsetTableCellBackground: () => ReturnType;
|
|
318
297
|
};
|
|
319
298
|
}
|
|
320
299
|
}
|
|
@@ -355,6 +334,24 @@ declare module '@tiptap/core' {
|
|
|
355
334
|
}
|
|
356
335
|
|
|
357
336
|
|
|
337
|
+
declare module '@tiptap/core' {
|
|
338
|
+
interface Commands<ReturnType> {
|
|
339
|
+
painter: {
|
|
340
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
declare module '@tiptap/core' {
|
|
347
|
+
interface Commands<ReturnType> {
|
|
348
|
+
katex: {
|
|
349
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
358
355
|
declare module '@tiptap/core' {
|
|
359
356
|
interface Commands<ReturnType> {
|
|
360
357
|
search: {
|
|
@@ -372,8 +369,8 @@ declare module '@tiptap/core' {
|
|
|
372
369
|
|
|
373
370
|
declare module '@tiptap/core' {
|
|
374
371
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
exportWord: {
|
|
373
|
+
exportToWord: () => ReturnType;
|
|
377
374
|
};
|
|
378
375
|
}
|
|
379
376
|
}
|
|
@@ -381,8 +378,9 @@ declare module '@tiptap/core' {
|
|
|
381
378
|
|
|
382
379
|
declare module '@tiptap/core' {
|
|
383
380
|
interface Commands<ReturnType> {
|
|
384
|
-
|
|
385
|
-
|
|
381
|
+
tableOfContents: {
|
|
382
|
+
setTableOfContents: () => ReturnType;
|
|
383
|
+
removeTableOfContents: () => ReturnType;
|
|
386
384
|
};
|
|
387
385
|
}
|
|
388
386
|
}
|
|
@@ -390,9 +388,11 @@ declare module '@tiptap/core' {
|
|
|
390
388
|
|
|
391
389
|
declare module '@tiptap/core' {
|
|
392
390
|
interface Commands<ReturnType> {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
emoji: {
|
|
392
|
+
setEmoji: (emoji: {
|
|
393
|
+
name: string;
|
|
394
|
+
emoji: string;
|
|
395
|
+
}) => ReturnType;
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -400,8 +400,14 @@ declare module '@tiptap/core' {
|
|
|
400
400
|
|
|
401
401
|
declare module '@tiptap/core' {
|
|
402
402
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
twitter: {
|
|
404
|
+
/**
|
|
405
|
+
* Insert a tweet
|
|
406
|
+
* @param options The tweet attributes
|
|
407
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
408
|
+
*/
|
|
409
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
410
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
405
411
|
};
|
|
406
412
|
}
|
|
407
413
|
}
|
|
@@ -438,14 +444,9 @@ declare module '@tiptap/core' {
|
|
|
438
444
|
|
|
439
445
|
declare module '@tiptap/core' {
|
|
440
446
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* @param options The tweet attributes
|
|
445
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
446
|
-
*/
|
|
447
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
448
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
447
|
+
drawer: {
|
|
448
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
449
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
450
|
};
|
|
450
451
|
}
|
|
451
452
|
}
|
|
@@ -453,9 +454,8 @@ declare module '@tiptap/core' {
|
|
|
453
454
|
|
|
454
455
|
declare module '@tiptap/core' {
|
|
455
456
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
457
|
+
excalidraw: {
|
|
458
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -251,9 +251,15 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
indent: {
|
|
255
|
+
/**
|
|
256
|
+
* Set the indent attribute
|
|
257
|
+
*/
|
|
258
|
+
indent: () => ReturnType;
|
|
259
|
+
/**
|
|
260
|
+
* Set the outdent attribute
|
|
261
|
+
*/
|
|
262
|
+
outdent: () => ReturnType;
|
|
257
263
|
};
|
|
258
264
|
}
|
|
259
265
|
}
|
|
@@ -261,8 +267,9 @@ declare module '@tiptap/core' {
|
|
|
261
267
|
|
|
262
268
|
declare module '@tiptap/core' {
|
|
263
269
|
interface Commands<ReturnType> {
|
|
264
|
-
|
|
265
|
-
|
|
270
|
+
lineHeight: {
|
|
271
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
272
|
+
unsetLineHeight: () => ReturnType;
|
|
266
273
|
};
|
|
267
274
|
}
|
|
268
275
|
}
|
|
@@ -284,37 +291,9 @@ declare module '@tiptap/core' {
|
|
|
284
291
|
|
|
285
292
|
declare module '@tiptap/core' {
|
|
286
293
|
interface Commands<ReturnType> {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
*/
|
|
291
|
-
indent: () => ReturnType;
|
|
292
|
-
/**
|
|
293
|
-
* Set the outdent attribute
|
|
294
|
-
*/
|
|
295
|
-
outdent: () => ReturnType;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
declare module '@tiptap/core' {
|
|
302
|
-
interface Commands<ReturnType> {
|
|
303
|
-
lineHeight: {
|
|
304
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
305
|
-
unsetLineHeight: () => ReturnType;
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
declare module '@tiptap/core' {
|
|
312
|
-
interface Commands<ReturnType> {
|
|
313
|
-
emoji: {
|
|
314
|
-
setEmoji: (emoji: {
|
|
315
|
-
name: string;
|
|
316
|
-
emoji: string;
|
|
317
|
-
}) => ReturnType;
|
|
294
|
+
tableCellBackground: {
|
|
295
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
296
|
+
unsetTableCellBackground: () => ReturnType;
|
|
318
297
|
};
|
|
319
298
|
}
|
|
320
299
|
}
|
|
@@ -355,6 +334,24 @@ declare module '@tiptap/core' {
|
|
|
355
334
|
}
|
|
356
335
|
|
|
357
336
|
|
|
337
|
+
declare module '@tiptap/core' {
|
|
338
|
+
interface Commands<ReturnType> {
|
|
339
|
+
painter: {
|
|
340
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
declare module '@tiptap/core' {
|
|
347
|
+
interface Commands<ReturnType> {
|
|
348
|
+
katex: {
|
|
349
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
358
355
|
declare module '@tiptap/core' {
|
|
359
356
|
interface Commands<ReturnType> {
|
|
360
357
|
search: {
|
|
@@ -372,8 +369,8 @@ declare module '@tiptap/core' {
|
|
|
372
369
|
|
|
373
370
|
declare module '@tiptap/core' {
|
|
374
371
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
exportWord: {
|
|
373
|
+
exportToWord: () => ReturnType;
|
|
377
374
|
};
|
|
378
375
|
}
|
|
379
376
|
}
|
|
@@ -381,8 +378,9 @@ declare module '@tiptap/core' {
|
|
|
381
378
|
|
|
382
379
|
declare module '@tiptap/core' {
|
|
383
380
|
interface Commands<ReturnType> {
|
|
384
|
-
|
|
385
|
-
|
|
381
|
+
tableOfContents: {
|
|
382
|
+
setTableOfContents: () => ReturnType;
|
|
383
|
+
removeTableOfContents: () => ReturnType;
|
|
386
384
|
};
|
|
387
385
|
}
|
|
388
386
|
}
|
|
@@ -390,9 +388,11 @@ declare module '@tiptap/core' {
|
|
|
390
388
|
|
|
391
389
|
declare module '@tiptap/core' {
|
|
392
390
|
interface Commands<ReturnType> {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
emoji: {
|
|
392
|
+
setEmoji: (emoji: {
|
|
393
|
+
name: string;
|
|
394
|
+
emoji: string;
|
|
395
|
+
}) => ReturnType;
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -400,8 +400,14 @@ declare module '@tiptap/core' {
|
|
|
400
400
|
|
|
401
401
|
declare module '@tiptap/core' {
|
|
402
402
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
twitter: {
|
|
404
|
+
/**
|
|
405
|
+
* Insert a tweet
|
|
406
|
+
* @param options The tweet attributes
|
|
407
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
408
|
+
*/
|
|
409
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
410
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
405
411
|
};
|
|
406
412
|
}
|
|
407
413
|
}
|
|
@@ -438,14 +444,9 @@ declare module '@tiptap/core' {
|
|
|
438
444
|
|
|
439
445
|
declare module '@tiptap/core' {
|
|
440
446
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* @param options The tweet attributes
|
|
445
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
446
|
-
*/
|
|
447
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
448
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
447
|
+
drawer: {
|
|
448
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
449
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
450
|
};
|
|
450
451
|
}
|
|
451
452
|
}
|
|
@@ -453,9 +454,8 @@ declare module '@tiptap/core' {
|
|
|
453
454
|
|
|
454
455
|
declare module '@tiptap/core' {
|
|
455
456
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
457
|
+
excalidraw: {
|
|
458
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as d, useState as o, useEffect as f } from "react";
|
|
2
|
-
import { R as m } from "./RichTextEditor-
|
|
3
|
-
import { B as x } from "./tiptap-
|
|
2
|
+
import { R as m } from "./RichTextEditor-DqXFuGeI.js";
|
|
3
|
+
import { B as x } from "./tiptap-24JNJPT1.js";
|
|
4
4
|
function c() {
|
|
5
5
|
var t;
|
|
6
6
|
const e = d({ editor: null }), [u, s] = o(!1), [i, n] = o(null);
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,9 +920,15 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
indent: {
|
|
924
|
+
/**
|
|
925
|
+
* Set the indent attribute
|
|
926
|
+
*/
|
|
927
|
+
indent: () => ReturnType;
|
|
928
|
+
/**
|
|
929
|
+
* Set the outdent attribute
|
|
930
|
+
*/
|
|
931
|
+
outdent: () => ReturnType;
|
|
926
932
|
};
|
|
927
933
|
}
|
|
928
934
|
}
|
|
@@ -930,8 +936,9 @@ declare module '@tiptap/core' {
|
|
|
930
936
|
|
|
931
937
|
declare module '@tiptap/core' {
|
|
932
938
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
935
942
|
};
|
|
936
943
|
}
|
|
937
944
|
}
|
|
@@ -953,37 +960,9 @@ declare module '@tiptap/core' {
|
|
|
953
960
|
|
|
954
961
|
declare module '@tiptap/core' {
|
|
955
962
|
interface Commands<ReturnType> {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
*/
|
|
960
|
-
indent: () => ReturnType;
|
|
961
|
-
/**
|
|
962
|
-
* Set the outdent attribute
|
|
963
|
-
*/
|
|
964
|
-
outdent: () => ReturnType;
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
declare module '@tiptap/core' {
|
|
971
|
-
interface Commands<ReturnType> {
|
|
972
|
-
lineHeight: {
|
|
973
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
974
|
-
unsetLineHeight: () => ReturnType;
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
declare module '@tiptap/core' {
|
|
981
|
-
interface Commands<ReturnType> {
|
|
982
|
-
emoji: {
|
|
983
|
-
setEmoji: (emoji: {
|
|
984
|
-
name: string;
|
|
985
|
-
emoji: string;
|
|
986
|
-
}) => ReturnType;
|
|
963
|
+
tableCellBackground: {
|
|
964
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
965
|
+
unsetTableCellBackground: () => ReturnType;
|
|
987
966
|
};
|
|
988
967
|
}
|
|
989
968
|
}
|
|
@@ -1024,6 +1003,24 @@ declare module '@tiptap/core' {
|
|
|
1024
1003
|
}
|
|
1025
1004
|
|
|
1026
1005
|
|
|
1006
|
+
declare module '@tiptap/core' {
|
|
1007
|
+
interface Commands<ReturnType> {
|
|
1008
|
+
painter: {
|
|
1009
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
declare module '@tiptap/core' {
|
|
1016
|
+
interface Commands<ReturnType> {
|
|
1017
|
+
katex: {
|
|
1018
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
|
|
1027
1024
|
declare module '@tiptap/core' {
|
|
1028
1025
|
interface Commands<ReturnType> {
|
|
1029
1026
|
search: {
|
|
@@ -1041,8 +1038,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1038
|
|
|
1042
1039
|
declare module '@tiptap/core' {
|
|
1043
1040
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1041
|
+
exportWord: {
|
|
1042
|
+
exportToWord: () => ReturnType;
|
|
1046
1043
|
};
|
|
1047
1044
|
}
|
|
1048
1045
|
}
|
|
@@ -1050,8 +1047,9 @@ declare module '@tiptap/core' {
|
|
|
1050
1047
|
|
|
1051
1048
|
declare module '@tiptap/core' {
|
|
1052
1049
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1050
|
+
tableOfContents: {
|
|
1051
|
+
setTableOfContents: () => ReturnType;
|
|
1052
|
+
removeTableOfContents: () => ReturnType;
|
|
1055
1053
|
};
|
|
1056
1054
|
}
|
|
1057
1055
|
}
|
|
@@ -1059,9 +1057,11 @@ declare module '@tiptap/core' {
|
|
|
1059
1057
|
|
|
1060
1058
|
declare module '@tiptap/core' {
|
|
1061
1059
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1060
|
+
emoji: {
|
|
1061
|
+
setEmoji: (emoji: {
|
|
1062
|
+
name: string;
|
|
1063
|
+
emoji: string;
|
|
1064
|
+
}) => ReturnType;
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
@@ -1069,8 +1069,14 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
twitter: {
|
|
1073
|
+
/**
|
|
1074
|
+
* Insert a tweet
|
|
1075
|
+
* @param options The tweet attributes
|
|
1076
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1077
|
+
*/
|
|
1078
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1079
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1074
1080
|
};
|
|
1075
1081
|
}
|
|
1076
1082
|
}
|
|
@@ -1107,14 +1113,9 @@ declare module '@tiptap/core' {
|
|
|
1107
1113
|
|
|
1108
1114
|
declare module '@tiptap/core' {
|
|
1109
1115
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
* @param options The tweet attributes
|
|
1114
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1115
|
-
*/
|
|
1116
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1117
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1116
|
+
drawer: {
|
|
1117
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1118
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1118
1119
|
};
|
|
1119
1120
|
}
|
|
1120
1121
|
}
|
|
@@ -1122,9 +1123,8 @@ declare module '@tiptap/core' {
|
|
|
1122
1123
|
|
|
1123
1124
|
declare module '@tiptap/core' {
|
|
1124
1125
|
interface Commands<ReturnType> {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1126
|
+
excalidraw: {
|
|
1127
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|