reactjs-tiptap-editor-pro 0.2.22 → 0.2.23

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.
@@ -725,29 +725,6 @@ declare module '@tiptap/core' {
725
725
  }
726
726
 
727
727
 
728
- declare module '@tiptap/core' {
729
- interface Commands<ReturnType> {
730
- columns: {
731
- insertColumns: (attrs?: {
732
- cols: number;
733
- }) => ReturnType;
734
- addColBefore: () => ReturnType;
735
- addColAfter: () => ReturnType;
736
- deleteCol: () => ReturnType;
737
- };
738
- }
739
- }
740
-
741
-
742
- declare module '@tiptap/core' {
743
- interface Commands<ReturnType> {
744
- painter: {
745
- setPainter: (marks: Mark[]) => ReturnType;
746
- };
747
- }
748
- }
749
-
750
-
751
728
  declare module '@tiptap/core' {
752
729
  interface Commands<ReturnType> {
753
730
  lineHeight: {
@@ -774,6 +751,16 @@ declare module '@tiptap/core' {
774
751
  }
775
752
 
776
753
 
754
+ declare module '@tiptap/core' {
755
+ interface Commands<ReturnType> {
756
+ tableCellBackground: {
757
+ setTableCellBackground: (color: string) => ReturnType;
758
+ unsetTableCellBackground: () => ReturnType;
759
+ };
760
+ }
761
+ }
762
+
763
+
777
764
  declare module '@tiptap/core' {
778
765
  interface Commands<ReturnType> {
779
766
  imageUpload: {
@@ -796,9 +783,14 @@ declare module '@tiptap/core' {
796
783
 
797
784
  declare module '@tiptap/core' {
798
785
  interface Commands<ReturnType> {
799
- tableCellBackground: {
800
- setTableCellBackground: (color: string) => ReturnType;
801
- unsetTableCellBackground: () => ReturnType;
786
+ search: {
787
+ setSearchTerm: (searchTerm: string) => ReturnType;
788
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
789
+ replace: () => ReturnType;
790
+ replaceAll: () => ReturnType;
791
+ goToPrevSearchResult: () => void;
792
+ goToNextSearchResult: () => void;
793
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
802
794
  };
803
795
  }
804
796
  }
@@ -806,8 +798,13 @@ declare module '@tiptap/core' {
806
798
 
807
799
  declare module '@tiptap/core' {
808
800
  interface Commands<ReturnType> {
809
- katex: {
810
- setKatex: (arg?: IKatexAttrs) => ReturnType;
801
+ columns: {
802
+ insertColumns: (attrs?: {
803
+ cols: number;
804
+ }) => ReturnType;
805
+ addColBefore: () => ReturnType;
806
+ addColAfter: () => ReturnType;
807
+ deleteCol: () => ReturnType;
811
808
  };
812
809
  }
813
810
  }
@@ -825,8 +822,8 @@ declare module '@tiptap/core' {
825
822
 
826
823
  declare module '@tiptap/core' {
827
824
  interface Commands<ReturnType> {
828
- excalidraw: {
829
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
825
+ painter: {
826
+ setPainter: (marks: Mark[]) => ReturnType;
830
827
  };
831
828
  }
832
829
  }
@@ -834,11 +831,8 @@ declare module '@tiptap/core' {
834
831
 
835
832
  declare module '@tiptap/core' {
836
833
  interface Commands<ReturnType> {
837
- emoji: {
838
- setEmoji: (emoji: {
839
- name: string;
840
- emoji: string;
841
- }) => ReturnType;
834
+ katex: {
835
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
842
836
  };
843
837
  }
844
838
  }
@@ -870,14 +864,30 @@ declare module '@tiptap/core' {
870
864
 
871
865
  declare module '@tiptap/core' {
872
866
  interface Commands<ReturnType> {
873
- search: {
874
- setSearchTerm: (searchTerm: string) => ReturnType;
875
- setReplaceTerm: (replaceTerm: string) => ReturnType;
876
- replace: () => ReturnType;
877
- replaceAll: () => ReturnType;
878
- goToPrevSearchResult: () => void;
879
- goToNextSearchResult: () => void;
880
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
867
+ emoji: {
868
+ setEmoji: (emoji: {
869
+ name: string;
870
+ emoji: string;
871
+ }) => ReturnType;
872
+ };
873
+ }
874
+ }
875
+
876
+
877
+ declare module '@tiptap/core' {
878
+ interface Commands<ReturnType> {
879
+ excalidraw: {
880
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
881
+ };
882
+ }
883
+ }
884
+
885
+
886
+ declare module '@tiptap/core' {
887
+ interface Commands<ReturnType> {
888
+ mermaid: {
889
+ setMermaid: (options: any, replace?: any) => ReturnType;
890
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
881
891
  };
882
892
  }
883
893
  }
@@ -905,18 +915,9 @@ declare module '@tiptap/core' {
905
915
 
906
916
  declare module '@tiptap/core' {
907
917
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
911
- };
912
- }
913
- }
914
-
915
-
916
- declare module '@tiptap/core' {
917
- interface Commands<ReturnType> {
918
- attachment: {
919
- setAttachment: (attrs?: unknown) => ReturnType;
918
+ drawer: {
919
+ setDrawer: (options: any, replace?: any) => ReturnType;
920
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
920
921
  };
921
922
  }
922
923
  }
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
939
940
 
940
941
  declare module '@tiptap/core' {
941
942
  interface Commands<ReturnType> {
942
- drawer: {
943
- setDrawer: (options: any, replace?: any) => ReturnType;
944
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
943
+ attachment: {
944
+ setAttachment: (attrs?: unknown) => ReturnType;
945
945
  };
946
946
  }
947
947
  }
@@ -725,29 +725,6 @@ declare module '@tiptap/core' {
725
725
  }
726
726
 
727
727
 
728
- declare module '@tiptap/core' {
729
- interface Commands<ReturnType> {
730
- columns: {
731
- insertColumns: (attrs?: {
732
- cols: number;
733
- }) => ReturnType;
734
- addColBefore: () => ReturnType;
735
- addColAfter: () => ReturnType;
736
- deleteCol: () => ReturnType;
737
- };
738
- }
739
- }
740
-
741
-
742
- declare module '@tiptap/core' {
743
- interface Commands<ReturnType> {
744
- painter: {
745
- setPainter: (marks: Mark[]) => ReturnType;
746
- };
747
- }
748
- }
749
-
750
-
751
728
  declare module '@tiptap/core' {
752
729
  interface Commands<ReturnType> {
753
730
  lineHeight: {
@@ -774,6 +751,16 @@ declare module '@tiptap/core' {
774
751
  }
775
752
 
776
753
 
754
+ declare module '@tiptap/core' {
755
+ interface Commands<ReturnType> {
756
+ tableCellBackground: {
757
+ setTableCellBackground: (color: string) => ReturnType;
758
+ unsetTableCellBackground: () => ReturnType;
759
+ };
760
+ }
761
+ }
762
+
763
+
777
764
  declare module '@tiptap/core' {
778
765
  interface Commands<ReturnType> {
779
766
  imageUpload: {
@@ -796,9 +783,14 @@ declare module '@tiptap/core' {
796
783
 
797
784
  declare module '@tiptap/core' {
798
785
  interface Commands<ReturnType> {
799
- tableCellBackground: {
800
- setTableCellBackground: (color: string) => ReturnType;
801
- unsetTableCellBackground: () => ReturnType;
786
+ search: {
787
+ setSearchTerm: (searchTerm: string) => ReturnType;
788
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
789
+ replace: () => ReturnType;
790
+ replaceAll: () => ReturnType;
791
+ goToPrevSearchResult: () => void;
792
+ goToNextSearchResult: () => void;
793
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
802
794
  };
803
795
  }
804
796
  }
@@ -806,8 +798,13 @@ declare module '@tiptap/core' {
806
798
 
807
799
  declare module '@tiptap/core' {
808
800
  interface Commands<ReturnType> {
809
- katex: {
810
- setKatex: (arg?: IKatexAttrs) => ReturnType;
801
+ columns: {
802
+ insertColumns: (attrs?: {
803
+ cols: number;
804
+ }) => ReturnType;
805
+ addColBefore: () => ReturnType;
806
+ addColAfter: () => ReturnType;
807
+ deleteCol: () => ReturnType;
811
808
  };
812
809
  }
813
810
  }
@@ -825,8 +822,8 @@ declare module '@tiptap/core' {
825
822
 
826
823
  declare module '@tiptap/core' {
827
824
  interface Commands<ReturnType> {
828
- excalidraw: {
829
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
825
+ painter: {
826
+ setPainter: (marks: Mark[]) => ReturnType;
830
827
  };
831
828
  }
832
829
  }
@@ -834,11 +831,8 @@ declare module '@tiptap/core' {
834
831
 
835
832
  declare module '@tiptap/core' {
836
833
  interface Commands<ReturnType> {
837
- emoji: {
838
- setEmoji: (emoji: {
839
- name: string;
840
- emoji: string;
841
- }) => ReturnType;
834
+ katex: {
835
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
842
836
  };
843
837
  }
844
838
  }
@@ -870,14 +864,30 @@ declare module '@tiptap/core' {
870
864
 
871
865
  declare module '@tiptap/core' {
872
866
  interface Commands<ReturnType> {
873
- search: {
874
- setSearchTerm: (searchTerm: string) => ReturnType;
875
- setReplaceTerm: (replaceTerm: string) => ReturnType;
876
- replace: () => ReturnType;
877
- replaceAll: () => ReturnType;
878
- goToPrevSearchResult: () => void;
879
- goToNextSearchResult: () => void;
880
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
867
+ emoji: {
868
+ setEmoji: (emoji: {
869
+ name: string;
870
+ emoji: string;
871
+ }) => ReturnType;
872
+ };
873
+ }
874
+ }
875
+
876
+
877
+ declare module '@tiptap/core' {
878
+ interface Commands<ReturnType> {
879
+ excalidraw: {
880
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
881
+ };
882
+ }
883
+ }
884
+
885
+
886
+ declare module '@tiptap/core' {
887
+ interface Commands<ReturnType> {
888
+ mermaid: {
889
+ setMermaid: (options: any, replace?: any) => ReturnType;
890
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
881
891
  };
882
892
  }
883
893
  }
@@ -905,18 +915,9 @@ declare module '@tiptap/core' {
905
915
 
906
916
  declare module '@tiptap/core' {
907
917
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
911
- };
912
- }
913
- }
914
-
915
-
916
- declare module '@tiptap/core' {
917
- interface Commands<ReturnType> {
918
- attachment: {
919
- setAttachment: (attrs?: unknown) => ReturnType;
918
+ drawer: {
919
+ setDrawer: (options: any, replace?: any) => ReturnType;
920
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
920
921
  };
921
922
  }
922
923
  }
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
939
940
 
940
941
  declare module '@tiptap/core' {
941
942
  interface Commands<ReturnType> {
942
- drawer: {
943
- setDrawer: (options: any, replace?: any) => ReturnType;
944
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
943
+ attachment: {
944
+ setAttachment: (attrs?: unknown) => ReturnType;
945
945
  };
946
946
  }
947
947
  }
@@ -1,12 +1,12 @@
1
- import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-BV9BUpUC.js";
2
- import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-DyAqAGVt.js";
1
+ import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-Kst3Ray3.js";
2
+ import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-tDefVoN_.js";
3
3
  import { jsxs as m, jsx as r, Fragment as ye } from "react/jsx-runtime";
4
4
  import * as J from "react";
5
5
  import dn, { useMemo as P, useState as v, useRef as G, useCallback as F, Fragment as ze, forwardRef as Re, useImperativeHandle as Pe, useEffect as M } from "react";
6
6
  import { ChevronDown as Ie, Check as hn, ChevronUp as un, Copy as mn, CopyCheck as fn, SearchIcon as _n, LoaderIcon as gn, LucideTableProperties as bn, LucideSheet as xn, LucideImage as wn, LucideFile as pn, LucideVideo as yn, LucideAudioLines as kn } from "lucide-react";
7
- import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-BnruDETn.js";
8
- import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-BnruDETn.js";
9
- import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-8id9bPv5.js";
7
+ import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-Bgw6seGi.js";
8
+ import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-Bgw6seGi.js";
9
+ import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-PJxla8pp.js";
10
10
  import { bundledThemes as dt, bundledLanguages as ht, createHighlighter as Wn } from "shiki";
11
11
  import * as C from "@radix-ui/react-select";
12
12
  import { Slot as Gn } from "@radix-ui/react-slot";