reactjs-tiptap-editor 0.2.13 → 0.2.14
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-BHhASQA5.cjs +141 -0
- package/lib/{RichTextEditor-DqXFuGeI.js → RichTextEditor-Jetexq5O.js} +1808 -1725
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +64 -64
- package/lib/extension-bundle.d.ts +64 -64
- package/lib/extension-bundle.js +441 -439
- package/lib/{index-Bekz0zC7.cjs → index-CYg22iLG.cjs} +1 -1
- package/lib/{index-CGVy85-a.js → index-Dxj3kgeV.js} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +64 -64
- package/lib/index.d.ts +64 -64
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +64 -64
- package/lib/locale-bundle.d.ts +64 -64
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-24JNJPT1.js → tiptap-BG8TB9NM.js} +1 -1
- package/lib/{tiptap-DaE4Kxno.cjs → tiptap-Ufn12SjW.cjs} +1 -1
- package/lib/{vendor-C9wSqocV.cjs → vendor-CRmKyn1B.cjs} +41 -41
- package/lib/{vendor-K5cb6hwc.js → vendor-HJDKjCL8.js} +1309 -1318
- package/package.json +1 -1
- package/lib/RichTextEditor-DBjHuER_.cjs +0 -141
package/lib/index.d.ts
CHANGED
|
@@ -249,6 +249,16 @@ declare module '@tiptap/core' {
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
|
|
252
|
+
declare module '@tiptap/core' {
|
|
253
|
+
interface Commands<ReturnType> {
|
|
254
|
+
lineHeight: {
|
|
255
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
256
|
+
unsetLineHeight: () => ReturnType;
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
252
262
|
declare module '@tiptap/core' {
|
|
253
263
|
interface Commands<ReturnType> {
|
|
254
264
|
indent: {
|
|
@@ -267,9 +277,11 @@ declare module '@tiptap/core' {
|
|
|
267
277
|
|
|
268
278
|
declare module '@tiptap/core' {
|
|
269
279
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
280
|
+
emoji: {
|
|
281
|
+
setEmoji: (emoji: {
|
|
282
|
+
name: string;
|
|
283
|
+
emoji: string;
|
|
284
|
+
}) => ReturnType;
|
|
273
285
|
};
|
|
274
286
|
}
|
|
275
287
|
}
|
|
@@ -277,13 +289,19 @@ declare module '@tiptap/core' {
|
|
|
277
289
|
|
|
278
290
|
declare module '@tiptap/core' {
|
|
279
291
|
interface Commands<ReturnType> {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
292
|
+
imageUpload: {
|
|
293
|
+
/**
|
|
294
|
+
* Add an image
|
|
295
|
+
*/
|
|
296
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
297
|
+
/**
|
|
298
|
+
* Update an image
|
|
299
|
+
*/
|
|
300
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
301
|
+
/**
|
|
302
|
+
* Set image alignment
|
|
303
|
+
*/
|
|
304
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
287
305
|
};
|
|
288
306
|
}
|
|
289
307
|
}
|
|
@@ -291,9 +309,8 @@ declare module '@tiptap/core' {
|
|
|
291
309
|
|
|
292
310
|
declare module '@tiptap/core' {
|
|
293
311
|
interface Commands<ReturnType> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
unsetTableCellBackground: () => ReturnType;
|
|
312
|
+
painter: {
|
|
313
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
297
314
|
};
|
|
298
315
|
}
|
|
299
316
|
}
|
|
@@ -301,14 +318,13 @@ declare module '@tiptap/core' {
|
|
|
301
318
|
|
|
302
319
|
declare module '@tiptap/core' {
|
|
303
320
|
interface Commands<ReturnType> {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
*/
|
|
308
|
-
setIframe: (options: {
|
|
309
|
-
src: string;
|
|
310
|
-
service: string;
|
|
321
|
+
columns: {
|
|
322
|
+
insertColumns: (attrs?: {
|
|
323
|
+
cols: number;
|
|
311
324
|
}) => ReturnType;
|
|
325
|
+
addColBefore: () => ReturnType;
|
|
326
|
+
addColAfter: () => ReturnType;
|
|
327
|
+
deleteCol: () => ReturnType;
|
|
312
328
|
};
|
|
313
329
|
}
|
|
314
330
|
}
|
|
@@ -316,19 +332,8 @@ declare module '@tiptap/core' {
|
|
|
316
332
|
|
|
317
333
|
declare module '@tiptap/core' {
|
|
318
334
|
interface Commands<ReturnType> {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
* Add an image
|
|
322
|
-
*/
|
|
323
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
324
|
-
/**
|
|
325
|
-
* Update an image
|
|
326
|
-
*/
|
|
327
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
328
|
-
/**
|
|
329
|
-
* Set image alignment
|
|
330
|
-
*/
|
|
331
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
335
|
+
katex: {
|
|
336
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
332
337
|
};
|
|
333
338
|
}
|
|
334
339
|
}
|
|
@@ -336,8 +341,9 @@ declare module '@tiptap/core' {
|
|
|
336
341
|
|
|
337
342
|
declare module '@tiptap/core' {
|
|
338
343
|
interface Commands<ReturnType> {
|
|
339
|
-
|
|
340
|
-
|
|
344
|
+
tableCellBackground: {
|
|
345
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
346
|
+
unsetTableCellBackground: () => ReturnType;
|
|
341
347
|
};
|
|
342
348
|
}
|
|
343
349
|
}
|
|
@@ -345,8 +351,14 @@ declare module '@tiptap/core' {
|
|
|
345
351
|
|
|
346
352
|
declare module '@tiptap/core' {
|
|
347
353
|
interface Commands<ReturnType> {
|
|
348
|
-
|
|
349
|
-
|
|
354
|
+
iframe: {
|
|
355
|
+
/**
|
|
356
|
+
* Add an iframe
|
|
357
|
+
*/
|
|
358
|
+
setIframe: (options: {
|
|
359
|
+
src: string;
|
|
360
|
+
service: string;
|
|
361
|
+
}) => ReturnType;
|
|
350
362
|
};
|
|
351
363
|
}
|
|
352
364
|
}
|
|
@@ -388,11 +400,8 @@ declare module '@tiptap/core' {
|
|
|
388
400
|
|
|
389
401
|
declare module '@tiptap/core' {
|
|
390
402
|
interface Commands<ReturnType> {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
name: string;
|
|
394
|
-
emoji: string;
|
|
395
|
-
}) => ReturnType;
|
|
403
|
+
excalidraw: {
|
|
404
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
396
405
|
};
|
|
397
406
|
}
|
|
398
407
|
}
|
|
@@ -400,14 +409,8 @@ declare module '@tiptap/core' {
|
|
|
400
409
|
|
|
401
410
|
declare module '@tiptap/core' {
|
|
402
411
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
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;
|
|
412
|
+
attachment: {
|
|
413
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
411
414
|
};
|
|
412
415
|
}
|
|
413
416
|
}
|
|
@@ -415,8 +418,9 @@ declare module '@tiptap/core' {
|
|
|
415
418
|
|
|
416
419
|
declare module '@tiptap/core' {
|
|
417
420
|
interface Commands<ReturnType> {
|
|
418
|
-
|
|
419
|
-
|
|
421
|
+
drawer: {
|
|
422
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
423
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
420
424
|
};
|
|
421
425
|
}
|
|
422
426
|
}
|
|
@@ -444,18 +448,14 @@ declare module '@tiptap/core' {
|
|
|
444
448
|
|
|
445
449
|
declare module '@tiptap/core' {
|
|
446
450
|
interface Commands<ReturnType> {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
declare module '@tiptap/core' {
|
|
456
|
-
interface Commands<ReturnType> {
|
|
457
|
-
excalidraw: {
|
|
458
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
451
|
+
twitter: {
|
|
452
|
+
/**
|
|
453
|
+
* Insert a tweet
|
|
454
|
+
* @param options The tweet attributes
|
|
455
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
456
|
+
*/
|
|
457
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
458
|
+
updateTweet: (options: SetTweetOptions) => 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-Jetexq5O.js";
|
|
3
|
+
import { B as x } from "./tiptap-BG8TB9NM.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.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CYg22iLG.cjs");exports.en=e.locale$1;exports.hu_HU=e.locale$2;exports.locale=e.locale;exports.pt_BR=e.locale$5;exports.vi=e.locale$3;exports.zh_CN=e.locale$4;
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -918,6 +918,16 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
+
declare module '@tiptap/core' {
|
|
922
|
+
interface Commands<ReturnType> {
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
921
931
|
declare module '@tiptap/core' {
|
|
922
932
|
interface Commands<ReturnType> {
|
|
923
933
|
indent: {
|
|
@@ -936,9 +946,11 @@ declare module '@tiptap/core' {
|
|
|
936
946
|
|
|
937
947
|
declare module '@tiptap/core' {
|
|
938
948
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
949
|
+
emoji: {
|
|
950
|
+
setEmoji: (emoji: {
|
|
951
|
+
name: string;
|
|
952
|
+
emoji: string;
|
|
953
|
+
}) => ReturnType;
|
|
942
954
|
};
|
|
943
955
|
}
|
|
944
956
|
}
|
|
@@ -946,13 +958,19 @@ declare module '@tiptap/core' {
|
|
|
946
958
|
|
|
947
959
|
declare module '@tiptap/core' {
|
|
948
960
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
961
|
+
imageUpload: {
|
|
962
|
+
/**
|
|
963
|
+
* Add an image
|
|
964
|
+
*/
|
|
965
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
966
|
+
/**
|
|
967
|
+
* Update an image
|
|
968
|
+
*/
|
|
969
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
970
|
+
/**
|
|
971
|
+
* Set image alignment
|
|
972
|
+
*/
|
|
973
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
956
974
|
};
|
|
957
975
|
}
|
|
958
976
|
}
|
|
@@ -960,9 +978,8 @@ declare module '@tiptap/core' {
|
|
|
960
978
|
|
|
961
979
|
declare module '@tiptap/core' {
|
|
962
980
|
interface Commands<ReturnType> {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
unsetTableCellBackground: () => ReturnType;
|
|
981
|
+
painter: {
|
|
982
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
966
983
|
};
|
|
967
984
|
}
|
|
968
985
|
}
|
|
@@ -970,14 +987,13 @@ declare module '@tiptap/core' {
|
|
|
970
987
|
|
|
971
988
|
declare module '@tiptap/core' {
|
|
972
989
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
*/
|
|
977
|
-
setIframe: (options: {
|
|
978
|
-
src: string;
|
|
979
|
-
service: string;
|
|
990
|
+
columns: {
|
|
991
|
+
insertColumns: (attrs?: {
|
|
992
|
+
cols: number;
|
|
980
993
|
}) => ReturnType;
|
|
994
|
+
addColBefore: () => ReturnType;
|
|
995
|
+
addColAfter: () => ReturnType;
|
|
996
|
+
deleteCol: () => ReturnType;
|
|
981
997
|
};
|
|
982
998
|
}
|
|
983
999
|
}
|
|
@@ -985,19 +1001,8 @@ declare module '@tiptap/core' {
|
|
|
985
1001
|
|
|
986
1002
|
declare module '@tiptap/core' {
|
|
987
1003
|
interface Commands<ReturnType> {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
* Add an image
|
|
991
|
-
*/
|
|
992
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
993
|
-
/**
|
|
994
|
-
* Update an image
|
|
995
|
-
*/
|
|
996
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
997
|
-
/**
|
|
998
|
-
* Set image alignment
|
|
999
|
-
*/
|
|
1000
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1004
|
+
katex: {
|
|
1005
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1001
1006
|
};
|
|
1002
1007
|
}
|
|
1003
1008
|
}
|
|
@@ -1005,8 +1010,9 @@ declare module '@tiptap/core' {
|
|
|
1005
1010
|
|
|
1006
1011
|
declare module '@tiptap/core' {
|
|
1007
1012
|
interface Commands<ReturnType> {
|
|
1008
|
-
|
|
1009
|
-
|
|
1013
|
+
tableCellBackground: {
|
|
1014
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1015
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1010
1016
|
};
|
|
1011
1017
|
}
|
|
1012
1018
|
}
|
|
@@ -1014,8 +1020,14 @@ declare module '@tiptap/core' {
|
|
|
1014
1020
|
|
|
1015
1021
|
declare module '@tiptap/core' {
|
|
1016
1022
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1023
|
+
iframe: {
|
|
1024
|
+
/**
|
|
1025
|
+
* Add an iframe
|
|
1026
|
+
*/
|
|
1027
|
+
setIframe: (options: {
|
|
1028
|
+
src: string;
|
|
1029
|
+
service: string;
|
|
1030
|
+
}) => ReturnType;
|
|
1019
1031
|
};
|
|
1020
1032
|
}
|
|
1021
1033
|
}
|
|
@@ -1057,11 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1057
1069
|
|
|
1058
1070
|
declare module '@tiptap/core' {
|
|
1059
1071
|
interface Commands<ReturnType> {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
name: string;
|
|
1063
|
-
emoji: string;
|
|
1064
|
-
}) => ReturnType;
|
|
1072
|
+
excalidraw: {
|
|
1073
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1074
|
};
|
|
1066
1075
|
}
|
|
1067
1076
|
}
|
|
@@ -1069,14 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1078
|
|
|
1070
1079
|
declare module '@tiptap/core' {
|
|
1071
1080
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
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;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1080
1083
|
};
|
|
1081
1084
|
}
|
|
1082
1085
|
}
|
|
@@ -1084,8 +1087,9 @@ declare module '@tiptap/core' {
|
|
|
1084
1087
|
|
|
1085
1088
|
declare module '@tiptap/core' {
|
|
1086
1089
|
interface Commands<ReturnType> {
|
|
1087
|
-
|
|
1088
|
-
|
|
1090
|
+
drawer: {
|
|
1091
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1092
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1089
1093
|
};
|
|
1090
1094
|
}
|
|
1091
1095
|
}
|
|
@@ -1113,18 +1117,14 @@ declare module '@tiptap/core' {
|
|
|
1113
1117
|
|
|
1114
1118
|
declare module '@tiptap/core' {
|
|
1115
1119
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
declare module '@tiptap/core' {
|
|
1125
|
-
interface Commands<ReturnType> {
|
|
1126
|
-
excalidraw: {
|
|
1127
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1120
|
+
twitter: {
|
|
1121
|
+
/**
|
|
1122
|
+
* Insert a tweet
|
|
1123
|
+
* @param options The tweet attributes
|
|
1124
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1125
|
+
*/
|
|
1126
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1127
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -918,6 +918,16 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
+
declare module '@tiptap/core' {
|
|
922
|
+
interface Commands<ReturnType> {
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
921
931
|
declare module '@tiptap/core' {
|
|
922
932
|
interface Commands<ReturnType> {
|
|
923
933
|
indent: {
|
|
@@ -936,9 +946,11 @@ declare module '@tiptap/core' {
|
|
|
936
946
|
|
|
937
947
|
declare module '@tiptap/core' {
|
|
938
948
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
949
|
+
emoji: {
|
|
950
|
+
setEmoji: (emoji: {
|
|
951
|
+
name: string;
|
|
952
|
+
emoji: string;
|
|
953
|
+
}) => ReturnType;
|
|
942
954
|
};
|
|
943
955
|
}
|
|
944
956
|
}
|
|
@@ -946,13 +958,19 @@ declare module '@tiptap/core' {
|
|
|
946
958
|
|
|
947
959
|
declare module '@tiptap/core' {
|
|
948
960
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
961
|
+
imageUpload: {
|
|
962
|
+
/**
|
|
963
|
+
* Add an image
|
|
964
|
+
*/
|
|
965
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
966
|
+
/**
|
|
967
|
+
* Update an image
|
|
968
|
+
*/
|
|
969
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
970
|
+
/**
|
|
971
|
+
* Set image alignment
|
|
972
|
+
*/
|
|
973
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
956
974
|
};
|
|
957
975
|
}
|
|
958
976
|
}
|
|
@@ -960,9 +978,8 @@ declare module '@tiptap/core' {
|
|
|
960
978
|
|
|
961
979
|
declare module '@tiptap/core' {
|
|
962
980
|
interface Commands<ReturnType> {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
unsetTableCellBackground: () => ReturnType;
|
|
981
|
+
painter: {
|
|
982
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
966
983
|
};
|
|
967
984
|
}
|
|
968
985
|
}
|
|
@@ -970,14 +987,13 @@ declare module '@tiptap/core' {
|
|
|
970
987
|
|
|
971
988
|
declare module '@tiptap/core' {
|
|
972
989
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
*/
|
|
977
|
-
setIframe: (options: {
|
|
978
|
-
src: string;
|
|
979
|
-
service: string;
|
|
990
|
+
columns: {
|
|
991
|
+
insertColumns: (attrs?: {
|
|
992
|
+
cols: number;
|
|
980
993
|
}) => ReturnType;
|
|
994
|
+
addColBefore: () => ReturnType;
|
|
995
|
+
addColAfter: () => ReturnType;
|
|
996
|
+
deleteCol: () => ReturnType;
|
|
981
997
|
};
|
|
982
998
|
}
|
|
983
999
|
}
|
|
@@ -985,19 +1001,8 @@ declare module '@tiptap/core' {
|
|
|
985
1001
|
|
|
986
1002
|
declare module '@tiptap/core' {
|
|
987
1003
|
interface Commands<ReturnType> {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
* Add an image
|
|
991
|
-
*/
|
|
992
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
993
|
-
/**
|
|
994
|
-
* Update an image
|
|
995
|
-
*/
|
|
996
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
997
|
-
/**
|
|
998
|
-
* Set image alignment
|
|
999
|
-
*/
|
|
1000
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1004
|
+
katex: {
|
|
1005
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1001
1006
|
};
|
|
1002
1007
|
}
|
|
1003
1008
|
}
|
|
@@ -1005,8 +1010,9 @@ declare module '@tiptap/core' {
|
|
|
1005
1010
|
|
|
1006
1011
|
declare module '@tiptap/core' {
|
|
1007
1012
|
interface Commands<ReturnType> {
|
|
1008
|
-
|
|
1009
|
-
|
|
1013
|
+
tableCellBackground: {
|
|
1014
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1015
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1010
1016
|
};
|
|
1011
1017
|
}
|
|
1012
1018
|
}
|
|
@@ -1014,8 +1020,14 @@ declare module '@tiptap/core' {
|
|
|
1014
1020
|
|
|
1015
1021
|
declare module '@tiptap/core' {
|
|
1016
1022
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1023
|
+
iframe: {
|
|
1024
|
+
/**
|
|
1025
|
+
* Add an iframe
|
|
1026
|
+
*/
|
|
1027
|
+
setIframe: (options: {
|
|
1028
|
+
src: string;
|
|
1029
|
+
service: string;
|
|
1030
|
+
}) => ReturnType;
|
|
1019
1031
|
};
|
|
1020
1032
|
}
|
|
1021
1033
|
}
|
|
@@ -1057,11 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1057
1069
|
|
|
1058
1070
|
declare module '@tiptap/core' {
|
|
1059
1071
|
interface Commands<ReturnType> {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
name: string;
|
|
1063
|
-
emoji: string;
|
|
1064
|
-
}) => ReturnType;
|
|
1072
|
+
excalidraw: {
|
|
1073
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1074
|
};
|
|
1066
1075
|
}
|
|
1067
1076
|
}
|
|
@@ -1069,14 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1078
|
|
|
1070
1079
|
declare module '@tiptap/core' {
|
|
1071
1080
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
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;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1080
1083
|
};
|
|
1081
1084
|
}
|
|
1082
1085
|
}
|
|
@@ -1084,8 +1087,9 @@ declare module '@tiptap/core' {
|
|
|
1084
1087
|
|
|
1085
1088
|
declare module '@tiptap/core' {
|
|
1086
1089
|
interface Commands<ReturnType> {
|
|
1087
|
-
|
|
1088
|
-
|
|
1090
|
+
drawer: {
|
|
1091
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1092
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1089
1093
|
};
|
|
1090
1094
|
}
|
|
1091
1095
|
}
|
|
@@ -1113,18 +1117,14 @@ declare module '@tiptap/core' {
|
|
|
1113
1117
|
|
|
1114
1118
|
declare module '@tiptap/core' {
|
|
1115
1119
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
declare module '@tiptap/core' {
|
|
1125
|
-
interface Commands<ReturnType> {
|
|
1126
|
-
excalidraw: {
|
|
1127
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1120
|
+
twitter: {
|
|
1121
|
+
/**
|
|
1122
|
+
* Insert a tweet
|
|
1123
|
+
* @param options The tweet attributes
|
|
1124
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1125
|
+
*/
|
|
1126
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1127
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
package/lib/locale-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Xe from "tippy.js";
|
|
2
|
-
import { E as Qe, a as Ze, P as H, b as $, S as G, k as tn, T as D, D as en, c as Ee, F as V, N as nn, d as xt, w as rn, e as sn, f as on, g as dt, h as tt, s as an, i as te, j as ln, l as cn, m as dn, n as un, o as pn, A as hn, p as fn, q as mn, r as gn, t as yn, u as vn, v as bn, x as Mn, y as Te, z as Sn, B as kn, C as wn, G as En, H as Tn, I as Cn, J as xn, K as zt, R as An, L as On, M as Ln, O as _n, Q as ee, U as Pn, V as Ce, W as Rn, X as Hn, Y as $n, Z as In, _ as Dn, $ as pt, a0 as Vt, a1 as Nn, a2 as Bn, a3 as jn, a4 as xe, a5 as Fn, a6 as ne, a7 as zn, a8 as re, a9 as se, aa as Vn, ab as oe, ac as Wn, ad as Kn, ae as Un, af as qn, ag as Gn, ah as Jn, ai as Yn } from "./vendor-
|
|
2
|
+
import { E as Qe, a as Ze, P as H, b as $, S as G, k as tn, T as D, D as en, c as Ee, F as V, N as nn, d as xt, w as rn, e as sn, f as on, g as dt, h as tt, s as an, i as te, j as ln, l as cn, m as dn, n as un, o as pn, A as hn, p as fn, q as mn, r as gn, t as yn, u as vn, v as bn, x as Mn, y as Te, z as Sn, B as kn, C as wn, G as En, H as Tn, I as Cn, J as xn, K as zt, R as An, L as On, M as Ln, O as _n, Q as ee, U as Pn, V as Ce, W as Rn, X as Hn, Y as $n, Z as In, _ as Dn, $ as pt, a0 as Vt, a1 as Nn, a2 as Bn, a3 as jn, a4 as xe, a5 as Fn, a6 as ne, a7 as zn, a8 as re, a9 as se, aa as Vn, ab as oe, ac as Wn, ad as Kn, ae as Un, af as qn, ag as Gn, ah as Jn, ai as Yn } from "./vendor-HJDKjCL8.js";
|
|
3
3
|
import O, { useRef as Xn, useState as Wt, useDebugValue as Ae, useEffect as Kt, forwardRef as Qn, useLayoutEffect as Zn, useContext as Oe, createContext as Le } from "react";
|
|
4
4
|
import tr, { flushSync as er } from "react-dom";
|
|
5
5
|
function gt(e) {
|