reactjs-tiptap-editor 0.2.26 → 0.2.28

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.
@@ -777,8 +777,9 @@ declare module '@tiptap/core' {
777
777
 
778
778
  declare module '@tiptap/core' {
779
779
  interface Commands<ReturnType> {
780
- painter: {
781
- setPainter: (marks: Mark[]) => ReturnType;
780
+ tableCellBackground: {
781
+ setTableCellBackground: (color: string) => ReturnType;
782
+ unsetTableCellBackground: () => ReturnType;
782
783
  };
783
784
  }
784
785
  }
@@ -815,9 +816,8 @@ declare module '@tiptap/core' {
815
816
 
816
817
  declare module '@tiptap/core' {
817
818
  interface Commands<ReturnType> {
818
- tableCellBackground: {
819
- setTableCellBackground: (color: string) => ReturnType;
820
- unsetTableCellBackground: () => ReturnType;
819
+ painter: {
820
+ setPainter: (marks: Mark[]) => ReturnType;
821
821
  };
822
822
  }
823
823
  }
@@ -840,8 +840,11 @@ declare module '@tiptap/core' {
840
840
 
841
841
  declare module '@tiptap/core' {
842
842
  interface Commands<ReturnType> {
843
- katex: {
844
- setKatex: (arg?: IKatexAttrs) => ReturnType;
843
+ emoji: {
844
+ setEmoji: (emoji: {
845
+ name: string;
846
+ emoji: string;
847
+ }) => ReturnType;
845
848
  };
846
849
  }
847
850
  }
@@ -849,11 +852,8 @@ declare module '@tiptap/core' {
849
852
 
850
853
  declare module '@tiptap/core' {
851
854
  interface Commands<ReturnType> {
852
- emoji: {
853
- setEmoji: (emoji: {
854
- name: string;
855
- emoji: string;
856
- }) => ReturnType;
855
+ katex: {
856
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
857
857
  };
858
858
  }
859
859
  }
@@ -870,8 +870,9 @@ declare module '@tiptap/core' {
870
870
 
871
871
  declare module '@tiptap/core' {
872
872
  interface Commands<ReturnType> {
873
- excalidraw: {
874
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
873
+ tableOfContents: {
874
+ setTableOfContents: () => ReturnType;
875
+ removeTableOfContents: () => ReturnType;
875
876
  };
876
877
  }
877
878
  }
@@ -879,9 +880,8 @@ declare module '@tiptap/core' {
879
880
 
880
881
  declare module '@tiptap/core' {
881
882
  interface Commands<ReturnType> {
882
- tableOfContents: {
883
- setTableOfContents: () => ReturnType;
884
- removeTableOfContents: () => ReturnType;
883
+ excalidraw: {
884
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
885
885
  };
886
886
  }
887
887
  }
@@ -896,6 +896,21 @@ declare module '@tiptap/core' {
896
896
  }
897
897
 
898
898
 
899
+ declare module '@tiptap/core' {
900
+ interface Commands<ReturnType> {
901
+ twitter: {
902
+ /**
903
+ * Insert a tweet
904
+ * @param options The tweet attributes
905
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
906
+ */
907
+ setTweet: (options: SetTweetOptions) => ReturnType;
908
+ updateTweet: (options: SetTweetOptions) => ReturnType;
909
+ };
910
+ }
911
+ }
912
+
913
+
899
914
  declare module '@tiptap/core' {
900
915
  interface Commands<ReturnType> {
901
916
  imageGifUpload: {
@@ -918,24 +933,9 @@ declare module '@tiptap/core' {
918
933
 
919
934
  declare module '@tiptap/core' {
920
935
  interface Commands<ReturnType> {
921
- mermaid: {
922
- setMermaid: (options: any, replace?: any) => ReturnType;
923
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
924
- };
925
- }
926
- }
927
-
928
-
929
- declare module '@tiptap/core' {
930
- interface Commands<ReturnType> {
931
- twitter: {
932
- /**
933
- * Insert a tweet
934
- * @param options The tweet attributes
935
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
936
- */
937
- setTweet: (options: SetTweetOptions) => ReturnType;
938
- updateTweet: (options: SetTweetOptions) => ReturnType;
936
+ drawer: {
937
+ setDrawer: (options: any, replace?: any) => ReturnType;
938
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
939
939
  };
940
940
  }
941
941
  }
@@ -943,9 +943,9 @@ declare module '@tiptap/core' {
943
943
 
944
944
  declare module '@tiptap/core' {
945
945
  interface Commands<ReturnType> {
946
- drawer: {
947
- setDrawer: (options: any, replace?: any) => ReturnType;
948
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
946
+ mermaid: {
947
+ setMermaid: (options: any, replace?: any) => ReturnType;
948
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
949
949
  };
950
950
  }
951
951
  }
@@ -777,8 +777,9 @@ declare module '@tiptap/core' {
777
777
 
778
778
  declare module '@tiptap/core' {
779
779
  interface Commands<ReturnType> {
780
- painter: {
781
- setPainter: (marks: Mark[]) => ReturnType;
780
+ tableCellBackground: {
781
+ setTableCellBackground: (color: string) => ReturnType;
782
+ unsetTableCellBackground: () => ReturnType;
782
783
  };
783
784
  }
784
785
  }
@@ -815,9 +816,8 @@ declare module '@tiptap/core' {
815
816
 
816
817
  declare module '@tiptap/core' {
817
818
  interface Commands<ReturnType> {
818
- tableCellBackground: {
819
- setTableCellBackground: (color: string) => ReturnType;
820
- unsetTableCellBackground: () => ReturnType;
819
+ painter: {
820
+ setPainter: (marks: Mark[]) => ReturnType;
821
821
  };
822
822
  }
823
823
  }
@@ -840,8 +840,11 @@ declare module '@tiptap/core' {
840
840
 
841
841
  declare module '@tiptap/core' {
842
842
  interface Commands<ReturnType> {
843
- katex: {
844
- setKatex: (arg?: IKatexAttrs) => ReturnType;
843
+ emoji: {
844
+ setEmoji: (emoji: {
845
+ name: string;
846
+ emoji: string;
847
+ }) => ReturnType;
845
848
  };
846
849
  }
847
850
  }
@@ -849,11 +852,8 @@ declare module '@tiptap/core' {
849
852
 
850
853
  declare module '@tiptap/core' {
851
854
  interface Commands<ReturnType> {
852
- emoji: {
853
- setEmoji: (emoji: {
854
- name: string;
855
- emoji: string;
856
- }) => ReturnType;
855
+ katex: {
856
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
857
857
  };
858
858
  }
859
859
  }
@@ -870,8 +870,9 @@ declare module '@tiptap/core' {
870
870
 
871
871
  declare module '@tiptap/core' {
872
872
  interface Commands<ReturnType> {
873
- excalidraw: {
874
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
873
+ tableOfContents: {
874
+ setTableOfContents: () => ReturnType;
875
+ removeTableOfContents: () => ReturnType;
875
876
  };
876
877
  }
877
878
  }
@@ -879,9 +880,8 @@ declare module '@tiptap/core' {
879
880
 
880
881
  declare module '@tiptap/core' {
881
882
  interface Commands<ReturnType> {
882
- tableOfContents: {
883
- setTableOfContents: () => ReturnType;
884
- removeTableOfContents: () => ReturnType;
883
+ excalidraw: {
884
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
885
885
  };
886
886
  }
887
887
  }
@@ -896,6 +896,21 @@ declare module '@tiptap/core' {
896
896
  }
897
897
 
898
898
 
899
+ declare module '@tiptap/core' {
900
+ interface Commands<ReturnType> {
901
+ twitter: {
902
+ /**
903
+ * Insert a tweet
904
+ * @param options The tweet attributes
905
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
906
+ */
907
+ setTweet: (options: SetTweetOptions) => ReturnType;
908
+ updateTweet: (options: SetTweetOptions) => ReturnType;
909
+ };
910
+ }
911
+ }
912
+
913
+
899
914
  declare module '@tiptap/core' {
900
915
  interface Commands<ReturnType> {
901
916
  imageGifUpload: {
@@ -918,24 +933,9 @@ declare module '@tiptap/core' {
918
933
 
919
934
  declare module '@tiptap/core' {
920
935
  interface Commands<ReturnType> {
921
- mermaid: {
922
- setMermaid: (options: any, replace?: any) => ReturnType;
923
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
924
- };
925
- }
926
- }
927
-
928
-
929
- declare module '@tiptap/core' {
930
- interface Commands<ReturnType> {
931
- twitter: {
932
- /**
933
- * Insert a tweet
934
- * @param options The tweet attributes
935
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
936
- */
937
- setTweet: (options: SetTweetOptions) => ReturnType;
938
- updateTweet: (options: SetTweetOptions) => ReturnType;
936
+ drawer: {
937
+ setDrawer: (options: any, replace?: any) => ReturnType;
938
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
939
939
  };
940
940
  }
941
941
  }
@@ -943,9 +943,9 @@ declare module '@tiptap/core' {
943
943
 
944
944
  declare module '@tiptap/core' {
945
945
  interface Commands<ReturnType> {
946
- drawer: {
947
- setDrawer: (options: any, replace?: any) => ReturnType;
948
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
946
+ mermaid: {
947
+ setMermaid: (options: any, replace?: any) => ReturnType;
948
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
949
949
  };
950
950
  }
951
951
  }
@@ -1,7 +1,7 @@
1
1
  import { a as ft, I as _t, U as gt, S as bt, C as xt, N as ae, b as oe, t as qe, R as Le, m as re, F as wt, H as pt, T as yt, E as C, c as vt, d as kt, e as Ct, O as Nt, f as At, g as Tt, h as St, L as Lt, i as Et, j as Ht, k as zt, D as Mt, P as Rt, l as It, n as Pt, G as jt, o as Bt, p as Ot, q as Dt, r as $t, s as Ft, u as qt, v as nt, w as it, x as at, y as Ee, z as Ut, A as Kt, J as Vt, K as Wt, M as Gt } from "./tiptap-DOP8lVCQ.js";
2
2
  import { u as I, D as Zt, f as Jt, g as Ue, h as N, i as ot, j as Yt, T as le, k as de, m as ue } from "./index-CO-iymkb.js";
3
- import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-DH6J2is9.js";
4
- import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-DH6J2is9.js";
3
+ import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-Ce2IeNE6.js";
4
+ import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-Ce2IeNE6.js";
5
5
  import { al as xn, am as wn, an as pn, ao as yn, ap as vn, aq as kn, ar as Cn, as as Nn, at as R, au as An, P as se, T as ct, b as ne, $ as ge, a0 as be, A as Tn, a4 as Sn, av as Ln, aw as En } from "./vendor-BbgkyoD-.js";
6
6
  import Pe from "tippy.js";
7
7
  import { Packer as Hn, WidthType as zn } from "docx";
@@ -249,7 +249,7 @@ const Jn = W.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
249
249
  }
250
250
  ));
251
251
  Jn.displayName = v.Separator.displayName;
252
- const Yn = "_wrap_1toeg_1", Qn = "_blockInfoEditable_1toeg_245", Ze = {
252
+ const Yn = "_wrap_1x3wi_1", Qn = "_blockInfoEditable_1x3wi_30", Ze = {
253
253
  wrap: Yn,
254
254
  blockInfoEditable: Qn
255
255
  }, me = [
@@ -271,7 +271,7 @@ const Yn = "_wrap_1toeg_1", Qn = "_blockInfoEditable_1toeg_245", Ze = {
271
271
  { value: "php", label: "PHP" }
272
272
  ], ke = [2, 4, 8];
273
273
  function Xn(e) {
274
- const t = Me(), n = $(null), i = D(() => Qt(ni.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.edito]), a = $(null), r = e.node.attrs.code || e.node.textContent || "", s = () => {
274
+ const t = Me(), n = $(null), i = D(() => Qt(ni.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), a = $(null), r = e.node.attrs.code || e.node.textContent || "", s = () => {
275
275
  r && navigator.clipboard.writeText(r).then(() => {
276
276
  console.log("Copy Success");
277
277
  }).catch((l) => {
@@ -326,16 +326,16 @@ function Xn(e) {
326
326
  };
327
327
  }, [n]), T(() => {
328
328
  var l, h;
329
- (l = a.current) != null && l.setOption && ((h = a.current) == null || h.setOptions({
329
+ (l = a.current) != null && l.setOptions && ((h = a.current) == null || h.setOptions({
330
330
  readOnly: e.editor.isEditable
331
331
  }));
332
332
  }, [a, e.editor.isEditable]), T(() => {
333
333
  var l, h;
334
- if ((l = a.current) != null && l.setOption) {
334
+ if ((l = a.current) != null && l.setOptions) {
335
335
  const f = d(e.node.attrs);
336
336
  (h = a.current) == null || h.setOptions(f);
337
337
  }
338
- }, [a, e.node.attrs.language, e.node.attrs.lineNumbers, e.node.attrs.wordWrap, e.node.attrs.tabSize, e.node.attrs]), /* @__PURE__ */ o(ae, { className: R(Ze.wrap, "render-wrapper"), children: /* @__PURE__ */ o(
338
+ }, [a, e.node.attrs]), /* @__PURE__ */ o(ae, { className: R(Ze.wrap, "render-wrapper"), children: /* @__PURE__ */ o(
339
339
  "div",
340
340
  {
341
341
  ref: n,
@@ -364,7 +364,6 @@ function Xn(e) {
364
364
  (l) => /* @__PURE__ */ o(
365
365
  Se,
366
366
  {
367
- className: "focus:richtext-bg-[#5a5d5e4f] focus:richtext-text-white",
368
367
  value: l.value,
369
368
  children: l.label
370
369
  },
@@ -452,7 +451,6 @@ function Xn(e) {
452
451
  children: ke == null ? void 0 : ke.map((l) => /* @__PURE__ */ o(
453
452
  Se,
454
453
  {
455
- className: "focus:richtext-bg-[#5a5d5e4f] focus:richtext-text-white",
456
454
  value: l,
457
455
  children: l
458
456
  },
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-CIhslsGV.cjs"),c=require("./tiptap-Dq62HiQ9.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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-hDDApaDD.cjs"),c=require("./tiptap-Dq62HiQ9.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
@@ -346,8 +346,9 @@ declare module '@tiptap/core' {
346
346
 
347
347
  declare module '@tiptap/core' {
348
348
  interface Commands<ReturnType> {
349
- painter: {
350
- setPainter: (marks: Mark[]) => ReturnType;
349
+ tableCellBackground: {
350
+ setTableCellBackground: (color: string) => ReturnType;
351
+ unsetTableCellBackground: () => ReturnType;
351
352
  };
352
353
  }
353
354
  }
@@ -384,9 +385,8 @@ declare module '@tiptap/core' {
384
385
 
385
386
  declare module '@tiptap/core' {
386
387
  interface Commands<ReturnType> {
387
- tableCellBackground: {
388
- setTableCellBackground: (color: string) => ReturnType;
389
- unsetTableCellBackground: () => ReturnType;
388
+ painter: {
389
+ setPainter: (marks: Mark[]) => ReturnType;
390
390
  };
391
391
  }
392
392
  }
@@ -409,8 +409,11 @@ declare module '@tiptap/core' {
409
409
 
410
410
  declare module '@tiptap/core' {
411
411
  interface Commands<ReturnType> {
412
- katex: {
413
- setKatex: (arg?: IKatexAttrs) => ReturnType;
412
+ emoji: {
413
+ setEmoji: (emoji: {
414
+ name: string;
415
+ emoji: string;
416
+ }) => ReturnType;
414
417
  };
415
418
  }
416
419
  }
@@ -418,11 +421,8 @@ declare module '@tiptap/core' {
418
421
 
419
422
  declare module '@tiptap/core' {
420
423
  interface Commands<ReturnType> {
421
- emoji: {
422
- setEmoji: (emoji: {
423
- name: string;
424
- emoji: string;
425
- }) => ReturnType;
424
+ katex: {
425
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
426
426
  };
427
427
  }
428
428
  }
@@ -439,8 +439,9 @@ declare module '@tiptap/core' {
439
439
 
440
440
  declare module '@tiptap/core' {
441
441
  interface Commands<ReturnType> {
442
- excalidraw: {
443
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
442
+ tableOfContents: {
443
+ setTableOfContents: () => ReturnType;
444
+ removeTableOfContents: () => ReturnType;
444
445
  };
445
446
  }
446
447
  }
@@ -448,9 +449,8 @@ declare module '@tiptap/core' {
448
449
 
449
450
  declare module '@tiptap/core' {
450
451
  interface Commands<ReturnType> {
451
- tableOfContents: {
452
- setTableOfContents: () => ReturnType;
453
- removeTableOfContents: () => ReturnType;
452
+ excalidraw: {
453
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
454
454
  };
455
455
  }
456
456
  }
@@ -465,6 +465,21 @@ declare module '@tiptap/core' {
465
465
  }
466
466
 
467
467
 
468
+ declare module '@tiptap/core' {
469
+ interface Commands<ReturnType> {
470
+ twitter: {
471
+ /**
472
+ * Insert a tweet
473
+ * @param options The tweet attributes
474
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
475
+ */
476
+ setTweet: (options: SetTweetOptions) => ReturnType;
477
+ updateTweet: (options: SetTweetOptions) => ReturnType;
478
+ };
479
+ }
480
+ }
481
+
482
+
468
483
  declare module '@tiptap/core' {
469
484
  interface Commands<ReturnType> {
470
485
  imageGifUpload: {
@@ -487,24 +502,9 @@ declare module '@tiptap/core' {
487
502
 
488
503
  declare module '@tiptap/core' {
489
504
  interface Commands<ReturnType> {
490
- mermaid: {
491
- setMermaid: (options: any, replace?: any) => ReturnType;
492
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
493
- };
494
- }
495
- }
496
-
497
-
498
- declare module '@tiptap/core' {
499
- interface Commands<ReturnType> {
500
- twitter: {
501
- /**
502
- * Insert a tweet
503
- * @param options The tweet attributes
504
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
505
- */
506
- setTweet: (options: SetTweetOptions) => ReturnType;
507
- updateTweet: (options: SetTweetOptions) => ReturnType;
505
+ drawer: {
506
+ setDrawer: (options: any, replace?: any) => ReturnType;
507
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
508
508
  };
509
509
  }
510
510
  }
@@ -512,9 +512,9 @@ declare module '@tiptap/core' {
512
512
 
513
513
  declare module '@tiptap/core' {
514
514
  interface Commands<ReturnType> {
515
- drawer: {
516
- setDrawer: (options: any, replace?: any) => ReturnType;
517
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
515
+ mermaid: {
516
+ setMermaid: (options: any, replace?: any) => ReturnType;
517
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
518
518
  };
519
519
  }
520
520
  }
package/lib/index.d.ts CHANGED
@@ -346,8 +346,9 @@ declare module '@tiptap/core' {
346
346
 
347
347
  declare module '@tiptap/core' {
348
348
  interface Commands<ReturnType> {
349
- painter: {
350
- setPainter: (marks: Mark[]) => ReturnType;
349
+ tableCellBackground: {
350
+ setTableCellBackground: (color: string) => ReturnType;
351
+ unsetTableCellBackground: () => ReturnType;
351
352
  };
352
353
  }
353
354
  }
@@ -384,9 +385,8 @@ declare module '@tiptap/core' {
384
385
 
385
386
  declare module '@tiptap/core' {
386
387
  interface Commands<ReturnType> {
387
- tableCellBackground: {
388
- setTableCellBackground: (color: string) => ReturnType;
389
- unsetTableCellBackground: () => ReturnType;
388
+ painter: {
389
+ setPainter: (marks: Mark[]) => ReturnType;
390
390
  };
391
391
  }
392
392
  }
@@ -409,8 +409,11 @@ declare module '@tiptap/core' {
409
409
 
410
410
  declare module '@tiptap/core' {
411
411
  interface Commands<ReturnType> {
412
- katex: {
413
- setKatex: (arg?: IKatexAttrs) => ReturnType;
412
+ emoji: {
413
+ setEmoji: (emoji: {
414
+ name: string;
415
+ emoji: string;
416
+ }) => ReturnType;
414
417
  };
415
418
  }
416
419
  }
@@ -418,11 +421,8 @@ declare module '@tiptap/core' {
418
421
 
419
422
  declare module '@tiptap/core' {
420
423
  interface Commands<ReturnType> {
421
- emoji: {
422
- setEmoji: (emoji: {
423
- name: string;
424
- emoji: string;
425
- }) => ReturnType;
424
+ katex: {
425
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
426
426
  };
427
427
  }
428
428
  }
@@ -439,8 +439,9 @@ declare module '@tiptap/core' {
439
439
 
440
440
  declare module '@tiptap/core' {
441
441
  interface Commands<ReturnType> {
442
- excalidraw: {
443
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
442
+ tableOfContents: {
443
+ setTableOfContents: () => ReturnType;
444
+ removeTableOfContents: () => ReturnType;
444
445
  };
445
446
  }
446
447
  }
@@ -448,9 +449,8 @@ declare module '@tiptap/core' {
448
449
 
449
450
  declare module '@tiptap/core' {
450
451
  interface Commands<ReturnType> {
451
- tableOfContents: {
452
- setTableOfContents: () => ReturnType;
453
- removeTableOfContents: () => ReturnType;
452
+ excalidraw: {
453
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
454
454
  };
455
455
  }
456
456
  }
@@ -465,6 +465,21 @@ declare module '@tiptap/core' {
465
465
  }
466
466
 
467
467
 
468
+ declare module '@tiptap/core' {
469
+ interface Commands<ReturnType> {
470
+ twitter: {
471
+ /**
472
+ * Insert a tweet
473
+ * @param options The tweet attributes
474
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
475
+ */
476
+ setTweet: (options: SetTweetOptions) => ReturnType;
477
+ updateTweet: (options: SetTweetOptions) => ReturnType;
478
+ };
479
+ }
480
+ }
481
+
482
+
468
483
  declare module '@tiptap/core' {
469
484
  interface Commands<ReturnType> {
470
485
  imageGifUpload: {
@@ -487,24 +502,9 @@ declare module '@tiptap/core' {
487
502
 
488
503
  declare module '@tiptap/core' {
489
504
  interface Commands<ReturnType> {
490
- mermaid: {
491
- setMermaid: (options: any, replace?: any) => ReturnType;
492
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
493
- };
494
- }
495
- }
496
-
497
-
498
- declare module '@tiptap/core' {
499
- interface Commands<ReturnType> {
500
- twitter: {
501
- /**
502
- * Insert a tweet
503
- * @param options The tweet attributes
504
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
505
- */
506
- setTweet: (options: SetTweetOptions) => ReturnType;
507
- updateTweet: (options: SetTweetOptions) => ReturnType;
505
+ drawer: {
506
+ setDrawer: (options: any, replace?: any) => ReturnType;
507
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
508
508
  };
509
509
  }
510
510
  }
@@ -512,9 +512,9 @@ declare module '@tiptap/core' {
512
512
 
513
513
  declare module '@tiptap/core' {
514
514
  interface Commands<ReturnType> {
515
- drawer: {
516
- setDrawer: (options: any, replace?: any) => ReturnType;
517
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
515
+ mermaid: {
516
+ setMermaid: (options: any, replace?: any) => ReturnType;
517
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
518
518
  };
519
519
  }
520
520
  }
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useRef as d, useState as o, useEffect as f } from "react";
2
- import { R as m } from "./RichTextEditor-DH6J2is9.js";
2
+ import { R as m } from "./RichTextEditor-Ce2IeNE6.js";
3
3
  import { B as x } from "./tiptap-DOP8lVCQ.js";
4
4
  function c() {
5
5
  var t;