reactjs-tiptap-editor 0.2.9 → 0.2.11
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-DwHrESsL.js → RichTextEditor-CIenLXbH.js} +2033 -1839
- package/lib/{RichTextEditor-BbpdLvup.cjs → RichTextEditor-DJJ5SBya.cjs} +4 -4
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +53 -52
- package/lib/extension-bundle.d.ts +53 -52
- package/lib/extension-bundle.js +501 -494
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +52 -52
- package/lib/index.d.ts +52 -52
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +52 -52
- package/lib/locale-bundle.d.ts +52 -52
- package/package.json +2 -2
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-DJJ5SBya.cjs"),c=require("./tiptap-BjxGiEhB.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,15 +251,9 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
*/
|
|
258
|
-
indent: () => ReturnType;
|
|
259
|
-
/**
|
|
260
|
-
* Set the outdent attribute
|
|
261
|
-
*/
|
|
262
|
-
outdent: () => ReturnType;
|
|
254
|
+
tableCellBackground: {
|
|
255
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
256
|
+
unsetTableCellBackground: () => ReturnType;
|
|
263
257
|
};
|
|
264
258
|
}
|
|
265
259
|
}
|
|
@@ -267,9 +261,8 @@ declare module '@tiptap/core' {
|
|
|
267
261
|
|
|
268
262
|
declare module '@tiptap/core' {
|
|
269
263
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
unsetLineHeight: () => ReturnType;
|
|
264
|
+
painter: {
|
|
265
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
273
266
|
};
|
|
274
267
|
}
|
|
275
268
|
}
|
|
@@ -277,9 +270,13 @@ declare module '@tiptap/core' {
|
|
|
277
270
|
|
|
278
271
|
declare module '@tiptap/core' {
|
|
279
272
|
interface Commands<ReturnType> {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
273
|
+
columns: {
|
|
274
|
+
insertColumns: (attrs?: {
|
|
275
|
+
cols: number;
|
|
276
|
+
}) => ReturnType;
|
|
277
|
+
addColBefore: () => ReturnType;
|
|
278
|
+
addColAfter: () => ReturnType;
|
|
279
|
+
deleteCol: () => ReturnType;
|
|
283
280
|
};
|
|
284
281
|
}
|
|
285
282
|
}
|
|
@@ -287,19 +284,15 @@ declare module '@tiptap/core' {
|
|
|
287
284
|
|
|
288
285
|
declare module '@tiptap/core' {
|
|
289
286
|
interface Commands<ReturnType> {
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Add an image
|
|
293
|
-
*/
|
|
294
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
287
|
+
indent: {
|
|
295
288
|
/**
|
|
296
|
-
*
|
|
289
|
+
* Set the indent attribute
|
|
297
290
|
*/
|
|
298
|
-
|
|
291
|
+
indent: () => ReturnType;
|
|
299
292
|
/**
|
|
300
|
-
* Set
|
|
293
|
+
* Set the outdent attribute
|
|
301
294
|
*/
|
|
302
|
-
|
|
295
|
+
outdent: () => ReturnType;
|
|
303
296
|
};
|
|
304
297
|
}
|
|
305
298
|
}
|
|
@@ -307,8 +300,21 @@ declare module '@tiptap/core' {
|
|
|
307
300
|
|
|
308
301
|
declare module '@tiptap/core' {
|
|
309
302
|
interface Commands<ReturnType> {
|
|
310
|
-
|
|
311
|
-
|
|
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;
|
|
312
318
|
};
|
|
313
319
|
}
|
|
314
320
|
}
|
|
@@ -331,8 +337,19 @@ declare module '@tiptap/core' {
|
|
|
331
337
|
|
|
332
338
|
declare module '@tiptap/core' {
|
|
333
339
|
interface Commands<ReturnType> {
|
|
334
|
-
|
|
335
|
-
|
|
340
|
+
imageUpload: {
|
|
341
|
+
/**
|
|
342
|
+
* Add an image
|
|
343
|
+
*/
|
|
344
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
345
|
+
/**
|
|
346
|
+
* Update an image
|
|
347
|
+
*/
|
|
348
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
349
|
+
/**
|
|
350
|
+
* Set image alignment
|
|
351
|
+
*/
|
|
352
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
336
353
|
};
|
|
337
354
|
}
|
|
338
355
|
}
|
|
@@ -355,25 +372,8 @@ declare module '@tiptap/core' {
|
|
|
355
372
|
|
|
356
373
|
declare module '@tiptap/core' {
|
|
357
374
|
interface Commands<ReturnType> {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
cols: number;
|
|
361
|
-
}) => ReturnType;
|
|
362
|
-
addColBefore: () => ReturnType;
|
|
363
|
-
addColAfter: () => ReturnType;
|
|
364
|
-
deleteCol: () => ReturnType;
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
declare module '@tiptap/core' {
|
|
371
|
-
interface Commands<ReturnType> {
|
|
372
|
-
emoji: {
|
|
373
|
-
setEmoji: (emoji: {
|
|
374
|
-
name: string;
|
|
375
|
-
emoji: string;
|
|
376
|
-
}) => ReturnType;
|
|
375
|
+
katex: {
|
|
376
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
|
|
|
409
409
|
|
|
410
410
|
declare module '@tiptap/core' {
|
|
411
411
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
412
|
+
attachment: {
|
|
413
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
416
|
}
|
|
@@ -464,8 +463,9 @@ declare module '@tiptap/core' {
|
|
|
464
463
|
|
|
465
464
|
declare module '@tiptap/core' {
|
|
466
465
|
interface Commands<ReturnType> {
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
mermaid: {
|
|
467
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
468
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -251,15 +251,9 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
*/
|
|
258
|
-
indent: () => ReturnType;
|
|
259
|
-
/**
|
|
260
|
-
* Set the outdent attribute
|
|
261
|
-
*/
|
|
262
|
-
outdent: () => ReturnType;
|
|
254
|
+
tableCellBackground: {
|
|
255
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
256
|
+
unsetTableCellBackground: () => ReturnType;
|
|
263
257
|
};
|
|
264
258
|
}
|
|
265
259
|
}
|
|
@@ -267,9 +261,8 @@ declare module '@tiptap/core' {
|
|
|
267
261
|
|
|
268
262
|
declare module '@tiptap/core' {
|
|
269
263
|
interface Commands<ReturnType> {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
unsetLineHeight: () => ReturnType;
|
|
264
|
+
painter: {
|
|
265
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
273
266
|
};
|
|
274
267
|
}
|
|
275
268
|
}
|
|
@@ -277,9 +270,13 @@ declare module '@tiptap/core' {
|
|
|
277
270
|
|
|
278
271
|
declare module '@tiptap/core' {
|
|
279
272
|
interface Commands<ReturnType> {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
273
|
+
columns: {
|
|
274
|
+
insertColumns: (attrs?: {
|
|
275
|
+
cols: number;
|
|
276
|
+
}) => ReturnType;
|
|
277
|
+
addColBefore: () => ReturnType;
|
|
278
|
+
addColAfter: () => ReturnType;
|
|
279
|
+
deleteCol: () => ReturnType;
|
|
283
280
|
};
|
|
284
281
|
}
|
|
285
282
|
}
|
|
@@ -287,19 +284,15 @@ declare module '@tiptap/core' {
|
|
|
287
284
|
|
|
288
285
|
declare module '@tiptap/core' {
|
|
289
286
|
interface Commands<ReturnType> {
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Add an image
|
|
293
|
-
*/
|
|
294
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
287
|
+
indent: {
|
|
295
288
|
/**
|
|
296
|
-
*
|
|
289
|
+
* Set the indent attribute
|
|
297
290
|
*/
|
|
298
|
-
|
|
291
|
+
indent: () => ReturnType;
|
|
299
292
|
/**
|
|
300
|
-
* Set
|
|
293
|
+
* Set the outdent attribute
|
|
301
294
|
*/
|
|
302
|
-
|
|
295
|
+
outdent: () => ReturnType;
|
|
303
296
|
};
|
|
304
297
|
}
|
|
305
298
|
}
|
|
@@ -307,8 +300,21 @@ declare module '@tiptap/core' {
|
|
|
307
300
|
|
|
308
301
|
declare module '@tiptap/core' {
|
|
309
302
|
interface Commands<ReturnType> {
|
|
310
|
-
|
|
311
|
-
|
|
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;
|
|
312
318
|
};
|
|
313
319
|
}
|
|
314
320
|
}
|
|
@@ -331,8 +337,19 @@ declare module '@tiptap/core' {
|
|
|
331
337
|
|
|
332
338
|
declare module '@tiptap/core' {
|
|
333
339
|
interface Commands<ReturnType> {
|
|
334
|
-
|
|
335
|
-
|
|
340
|
+
imageUpload: {
|
|
341
|
+
/**
|
|
342
|
+
* Add an image
|
|
343
|
+
*/
|
|
344
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
345
|
+
/**
|
|
346
|
+
* Update an image
|
|
347
|
+
*/
|
|
348
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
349
|
+
/**
|
|
350
|
+
* Set image alignment
|
|
351
|
+
*/
|
|
352
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
336
353
|
};
|
|
337
354
|
}
|
|
338
355
|
}
|
|
@@ -355,25 +372,8 @@ declare module '@tiptap/core' {
|
|
|
355
372
|
|
|
356
373
|
declare module '@tiptap/core' {
|
|
357
374
|
interface Commands<ReturnType> {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
cols: number;
|
|
361
|
-
}) => ReturnType;
|
|
362
|
-
addColBefore: () => ReturnType;
|
|
363
|
-
addColAfter: () => ReturnType;
|
|
364
|
-
deleteCol: () => ReturnType;
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
declare module '@tiptap/core' {
|
|
371
|
-
interface Commands<ReturnType> {
|
|
372
|
-
emoji: {
|
|
373
|
-
setEmoji: (emoji: {
|
|
374
|
-
name: string;
|
|
375
|
-
emoji: string;
|
|
376
|
-
}) => ReturnType;
|
|
375
|
+
katex: {
|
|
376
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
|
|
|
409
409
|
|
|
410
410
|
declare module '@tiptap/core' {
|
|
411
411
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
412
|
+
attachment: {
|
|
413
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
416
|
}
|
|
@@ -464,8 +463,9 @@ declare module '@tiptap/core' {
|
|
|
464
463
|
|
|
465
464
|
declare module '@tiptap/core' {
|
|
466
465
|
interface Commands<ReturnType> {
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
mermaid: {
|
|
467
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
468
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/index.js
CHANGED
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,15 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
indent: () => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Set the outdent attribute
|
|
930
|
-
*/
|
|
931
|
-
outdent: () => ReturnType;
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
932
926
|
};
|
|
933
927
|
}
|
|
934
928
|
}
|
|
@@ -936,9 +930,8 @@ declare module '@tiptap/core' {
|
|
|
936
930
|
|
|
937
931
|
declare module '@tiptap/core' {
|
|
938
932
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
unsetLineHeight: () => ReturnType;
|
|
933
|
+
painter: {
|
|
934
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
942
935
|
};
|
|
943
936
|
}
|
|
944
937
|
}
|
|
@@ -946,9 +939,13 @@ declare module '@tiptap/core' {
|
|
|
946
939
|
|
|
947
940
|
declare module '@tiptap/core' {
|
|
948
941
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
942
|
+
columns: {
|
|
943
|
+
insertColumns: (attrs?: {
|
|
944
|
+
cols: number;
|
|
945
|
+
}) => ReturnType;
|
|
946
|
+
addColBefore: () => ReturnType;
|
|
947
|
+
addColAfter: () => ReturnType;
|
|
948
|
+
deleteCol: () => ReturnType;
|
|
952
949
|
};
|
|
953
950
|
}
|
|
954
951
|
}
|
|
@@ -956,19 +953,15 @@ declare module '@tiptap/core' {
|
|
|
956
953
|
|
|
957
954
|
declare module '@tiptap/core' {
|
|
958
955
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Add an image
|
|
962
|
-
*/
|
|
963
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
956
|
+
indent: {
|
|
964
957
|
/**
|
|
965
|
-
*
|
|
958
|
+
* Set the indent attribute
|
|
966
959
|
*/
|
|
967
|
-
|
|
960
|
+
indent: () => ReturnType;
|
|
968
961
|
/**
|
|
969
|
-
* Set
|
|
962
|
+
* Set the outdent attribute
|
|
970
963
|
*/
|
|
971
|
-
|
|
964
|
+
outdent: () => ReturnType;
|
|
972
965
|
};
|
|
973
966
|
}
|
|
974
967
|
}
|
|
@@ -976,8 +969,21 @@ declare module '@tiptap/core' {
|
|
|
976
969
|
|
|
977
970
|
declare module '@tiptap/core' {
|
|
978
971
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
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;
|
|
981
987
|
};
|
|
982
988
|
}
|
|
983
989
|
}
|
|
@@ -1000,8 +1006,19 @@ declare module '@tiptap/core' {
|
|
|
1000
1006
|
|
|
1001
1007
|
declare module '@tiptap/core' {
|
|
1002
1008
|
interface Commands<ReturnType> {
|
|
1003
|
-
|
|
1004
|
-
|
|
1009
|
+
imageUpload: {
|
|
1010
|
+
/**
|
|
1011
|
+
* Add an image
|
|
1012
|
+
*/
|
|
1013
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1014
|
+
/**
|
|
1015
|
+
* Update an image
|
|
1016
|
+
*/
|
|
1017
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set image alignment
|
|
1020
|
+
*/
|
|
1021
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1005
1022
|
};
|
|
1006
1023
|
}
|
|
1007
1024
|
}
|
|
@@ -1024,25 +1041,8 @@ declare module '@tiptap/core' {
|
|
|
1024
1041
|
|
|
1025
1042
|
declare module '@tiptap/core' {
|
|
1026
1043
|
interface Commands<ReturnType> {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
cols: number;
|
|
1030
|
-
}) => ReturnType;
|
|
1031
|
-
addColBefore: () => ReturnType;
|
|
1032
|
-
addColAfter: () => ReturnType;
|
|
1033
|
-
deleteCol: () => ReturnType;
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
declare module '@tiptap/core' {
|
|
1040
|
-
interface Commands<ReturnType> {
|
|
1041
|
-
emoji: {
|
|
1042
|
-
setEmoji: (emoji: {
|
|
1043
|
-
name: string;
|
|
1044
|
-
emoji: string;
|
|
1045
|
-
}) => ReturnType;
|
|
1044
|
+
katex: {
|
|
1045
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1084
1083
|
};
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
@@ -1133,8 +1132,9 @@ declare module '@tiptap/core' {
|
|
|
1133
1132
|
|
|
1134
1133
|
declare module '@tiptap/core' {
|
|
1135
1134
|
interface Commands<ReturnType> {
|
|
1136
|
-
|
|
1137
|
-
|
|
1135
|
+
mermaid: {
|
|
1136
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1137
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,15 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
indent: () => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Set the outdent attribute
|
|
930
|
-
*/
|
|
931
|
-
outdent: () => ReturnType;
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
932
926
|
};
|
|
933
927
|
}
|
|
934
928
|
}
|
|
@@ -936,9 +930,8 @@ declare module '@tiptap/core' {
|
|
|
936
930
|
|
|
937
931
|
declare module '@tiptap/core' {
|
|
938
932
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
unsetLineHeight: () => ReturnType;
|
|
933
|
+
painter: {
|
|
934
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
942
935
|
};
|
|
943
936
|
}
|
|
944
937
|
}
|
|
@@ -946,9 +939,13 @@ declare module '@tiptap/core' {
|
|
|
946
939
|
|
|
947
940
|
declare module '@tiptap/core' {
|
|
948
941
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
942
|
+
columns: {
|
|
943
|
+
insertColumns: (attrs?: {
|
|
944
|
+
cols: number;
|
|
945
|
+
}) => ReturnType;
|
|
946
|
+
addColBefore: () => ReturnType;
|
|
947
|
+
addColAfter: () => ReturnType;
|
|
948
|
+
deleteCol: () => ReturnType;
|
|
952
949
|
};
|
|
953
950
|
}
|
|
954
951
|
}
|
|
@@ -956,19 +953,15 @@ declare module '@tiptap/core' {
|
|
|
956
953
|
|
|
957
954
|
declare module '@tiptap/core' {
|
|
958
955
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Add an image
|
|
962
|
-
*/
|
|
963
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
956
|
+
indent: {
|
|
964
957
|
/**
|
|
965
|
-
*
|
|
958
|
+
* Set the indent attribute
|
|
966
959
|
*/
|
|
967
|
-
|
|
960
|
+
indent: () => ReturnType;
|
|
968
961
|
/**
|
|
969
|
-
* Set
|
|
962
|
+
* Set the outdent attribute
|
|
970
963
|
*/
|
|
971
|
-
|
|
964
|
+
outdent: () => ReturnType;
|
|
972
965
|
};
|
|
973
966
|
}
|
|
974
967
|
}
|
|
@@ -976,8 +969,21 @@ declare module '@tiptap/core' {
|
|
|
976
969
|
|
|
977
970
|
declare module '@tiptap/core' {
|
|
978
971
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
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;
|
|
981
987
|
};
|
|
982
988
|
}
|
|
983
989
|
}
|
|
@@ -1000,8 +1006,19 @@ declare module '@tiptap/core' {
|
|
|
1000
1006
|
|
|
1001
1007
|
declare module '@tiptap/core' {
|
|
1002
1008
|
interface Commands<ReturnType> {
|
|
1003
|
-
|
|
1004
|
-
|
|
1009
|
+
imageUpload: {
|
|
1010
|
+
/**
|
|
1011
|
+
* Add an image
|
|
1012
|
+
*/
|
|
1013
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1014
|
+
/**
|
|
1015
|
+
* Update an image
|
|
1016
|
+
*/
|
|
1017
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set image alignment
|
|
1020
|
+
*/
|
|
1021
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1005
1022
|
};
|
|
1006
1023
|
}
|
|
1007
1024
|
}
|
|
@@ -1024,25 +1041,8 @@ declare module '@tiptap/core' {
|
|
|
1024
1041
|
|
|
1025
1042
|
declare module '@tiptap/core' {
|
|
1026
1043
|
interface Commands<ReturnType> {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
cols: number;
|
|
1030
|
-
}) => ReturnType;
|
|
1031
|
-
addColBefore: () => ReturnType;
|
|
1032
|
-
addColAfter: () => ReturnType;
|
|
1033
|
-
deleteCol: () => ReturnType;
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
declare module '@tiptap/core' {
|
|
1040
|
-
interface Commands<ReturnType> {
|
|
1041
|
-
emoji: {
|
|
1042
|
-
setEmoji: (emoji: {
|
|
1043
|
-
name: string;
|
|
1044
|
-
emoji: string;
|
|
1045
|
-
}) => ReturnType;
|
|
1044
|
+
katex: {
|
|
1045
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1084
1083
|
};
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
@@ -1133,8 +1132,9 @@ declare module '@tiptap/core' {
|
|
|
1133
1132
|
|
|
1134
1133
|
declare module '@tiptap/core' {
|
|
1135
1134
|
interface Commands<ReturnType> {
|
|
1136
|
-
|
|
1137
|
-
|
|
1135
|
+
mermaid: {
|
|
1136
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1137
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|