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
|
@@ -700,9 +700,15 @@ declare module '@tiptap/core' {
|
|
|
700
700
|
|
|
701
701
|
declare module '@tiptap/core' {
|
|
702
702
|
interface Commands<ReturnType> {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
703
|
+
indent: {
|
|
704
|
+
/**
|
|
705
|
+
* Set the indent attribute
|
|
706
|
+
*/
|
|
707
|
+
indent: () => ReturnType;
|
|
708
|
+
/**
|
|
709
|
+
* Set the outdent attribute
|
|
710
|
+
*/
|
|
711
|
+
outdent: () => ReturnType;
|
|
706
712
|
};
|
|
707
713
|
}
|
|
708
714
|
}
|
|
@@ -710,8 +716,9 @@ declare module '@tiptap/core' {
|
|
|
710
716
|
|
|
711
717
|
declare module '@tiptap/core' {
|
|
712
718
|
interface Commands<ReturnType> {
|
|
713
|
-
|
|
714
|
-
|
|
719
|
+
lineHeight: {
|
|
720
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
721
|
+
unsetLineHeight: () => ReturnType;
|
|
715
722
|
};
|
|
716
723
|
}
|
|
717
724
|
}
|
|
@@ -733,37 +740,9 @@ declare module '@tiptap/core' {
|
|
|
733
740
|
|
|
734
741
|
declare module '@tiptap/core' {
|
|
735
742
|
interface Commands<ReturnType> {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
*/
|
|
740
|
-
indent: () => ReturnType;
|
|
741
|
-
/**
|
|
742
|
-
* Set the outdent attribute
|
|
743
|
-
*/
|
|
744
|
-
outdent: () => ReturnType;
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
declare module '@tiptap/core' {
|
|
751
|
-
interface Commands<ReturnType> {
|
|
752
|
-
lineHeight: {
|
|
753
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
754
|
-
unsetLineHeight: () => ReturnType;
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
declare module '@tiptap/core' {
|
|
761
|
-
interface Commands<ReturnType> {
|
|
762
|
-
emoji: {
|
|
763
|
-
setEmoji: (emoji: {
|
|
764
|
-
name: string;
|
|
765
|
-
emoji: string;
|
|
766
|
-
}) => ReturnType;
|
|
743
|
+
tableCellBackground: {
|
|
744
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
745
|
+
unsetTableCellBackground: () => ReturnType;
|
|
767
746
|
};
|
|
768
747
|
}
|
|
769
748
|
}
|
|
@@ -804,6 +783,24 @@ declare module '@tiptap/core' {
|
|
|
804
783
|
}
|
|
805
784
|
|
|
806
785
|
|
|
786
|
+
declare module '@tiptap/core' {
|
|
787
|
+
interface Commands<ReturnType> {
|
|
788
|
+
painter: {
|
|
789
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
declare module '@tiptap/core' {
|
|
796
|
+
interface Commands<ReturnType> {
|
|
797
|
+
katex: {
|
|
798
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
|
|
807
804
|
declare module '@tiptap/core' {
|
|
808
805
|
interface Commands<ReturnType> {
|
|
809
806
|
search: {
|
|
@@ -821,8 +818,8 @@ declare module '@tiptap/core' {
|
|
|
821
818
|
|
|
822
819
|
declare module '@tiptap/core' {
|
|
823
820
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
821
|
+
exportWord: {
|
|
822
|
+
exportToWord: () => ReturnType;
|
|
826
823
|
};
|
|
827
824
|
}
|
|
828
825
|
}
|
|
@@ -830,8 +827,9 @@ declare module '@tiptap/core' {
|
|
|
830
827
|
|
|
831
828
|
declare module '@tiptap/core' {
|
|
832
829
|
interface Commands<ReturnType> {
|
|
833
|
-
|
|
834
|
-
|
|
830
|
+
tableOfContents: {
|
|
831
|
+
setTableOfContents: () => ReturnType;
|
|
832
|
+
removeTableOfContents: () => ReturnType;
|
|
835
833
|
};
|
|
836
834
|
}
|
|
837
835
|
}
|
|
@@ -839,9 +837,11 @@ declare module '@tiptap/core' {
|
|
|
839
837
|
|
|
840
838
|
declare module '@tiptap/core' {
|
|
841
839
|
interface Commands<ReturnType> {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
840
|
+
emoji: {
|
|
841
|
+
setEmoji: (emoji: {
|
|
842
|
+
name: string;
|
|
843
|
+
emoji: string;
|
|
844
|
+
}) => ReturnType;
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
}
|
|
@@ -849,8 +849,14 @@ declare module '@tiptap/core' {
|
|
|
849
849
|
|
|
850
850
|
declare module '@tiptap/core' {
|
|
851
851
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
twitter: {
|
|
853
|
+
/**
|
|
854
|
+
* Insert a tweet
|
|
855
|
+
* @param options The tweet attributes
|
|
856
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
857
|
+
*/
|
|
858
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
859
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
854
860
|
};
|
|
855
861
|
}
|
|
856
862
|
}
|
|
@@ -887,14 +893,9 @@ declare module '@tiptap/core' {
|
|
|
887
893
|
|
|
888
894
|
declare module '@tiptap/core' {
|
|
889
895
|
interface Commands<ReturnType> {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
* @param options The tweet attributes
|
|
894
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
895
|
-
*/
|
|
896
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
896
|
+
drawer: {
|
|
897
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
898
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
898
899
|
};
|
|
899
900
|
}
|
|
900
901
|
}
|
|
@@ -902,9 +903,8 @@ declare module '@tiptap/core' {
|
|
|
902
903
|
|
|
903
904
|
declare module '@tiptap/core' {
|
|
904
905
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
906
|
+
excalidraw: {
|
|
907
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
}
|
|
@@ -700,9 +700,15 @@ declare module '@tiptap/core' {
|
|
|
700
700
|
|
|
701
701
|
declare module '@tiptap/core' {
|
|
702
702
|
interface Commands<ReturnType> {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
703
|
+
indent: {
|
|
704
|
+
/**
|
|
705
|
+
* Set the indent attribute
|
|
706
|
+
*/
|
|
707
|
+
indent: () => ReturnType;
|
|
708
|
+
/**
|
|
709
|
+
* Set the outdent attribute
|
|
710
|
+
*/
|
|
711
|
+
outdent: () => ReturnType;
|
|
706
712
|
};
|
|
707
713
|
}
|
|
708
714
|
}
|
|
@@ -710,8 +716,9 @@ declare module '@tiptap/core' {
|
|
|
710
716
|
|
|
711
717
|
declare module '@tiptap/core' {
|
|
712
718
|
interface Commands<ReturnType> {
|
|
713
|
-
|
|
714
|
-
|
|
719
|
+
lineHeight: {
|
|
720
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
721
|
+
unsetLineHeight: () => ReturnType;
|
|
715
722
|
};
|
|
716
723
|
}
|
|
717
724
|
}
|
|
@@ -733,37 +740,9 @@ declare module '@tiptap/core' {
|
|
|
733
740
|
|
|
734
741
|
declare module '@tiptap/core' {
|
|
735
742
|
interface Commands<ReturnType> {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
*/
|
|
740
|
-
indent: () => ReturnType;
|
|
741
|
-
/**
|
|
742
|
-
* Set the outdent attribute
|
|
743
|
-
*/
|
|
744
|
-
outdent: () => ReturnType;
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
declare module '@tiptap/core' {
|
|
751
|
-
interface Commands<ReturnType> {
|
|
752
|
-
lineHeight: {
|
|
753
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
754
|
-
unsetLineHeight: () => ReturnType;
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
declare module '@tiptap/core' {
|
|
761
|
-
interface Commands<ReturnType> {
|
|
762
|
-
emoji: {
|
|
763
|
-
setEmoji: (emoji: {
|
|
764
|
-
name: string;
|
|
765
|
-
emoji: string;
|
|
766
|
-
}) => ReturnType;
|
|
743
|
+
tableCellBackground: {
|
|
744
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
745
|
+
unsetTableCellBackground: () => ReturnType;
|
|
767
746
|
};
|
|
768
747
|
}
|
|
769
748
|
}
|
|
@@ -804,6 +783,24 @@ declare module '@tiptap/core' {
|
|
|
804
783
|
}
|
|
805
784
|
|
|
806
785
|
|
|
786
|
+
declare module '@tiptap/core' {
|
|
787
|
+
interface Commands<ReturnType> {
|
|
788
|
+
painter: {
|
|
789
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
declare module '@tiptap/core' {
|
|
796
|
+
interface Commands<ReturnType> {
|
|
797
|
+
katex: {
|
|
798
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
|
|
807
804
|
declare module '@tiptap/core' {
|
|
808
805
|
interface Commands<ReturnType> {
|
|
809
806
|
search: {
|
|
@@ -821,8 +818,8 @@ declare module '@tiptap/core' {
|
|
|
821
818
|
|
|
822
819
|
declare module '@tiptap/core' {
|
|
823
820
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
821
|
+
exportWord: {
|
|
822
|
+
exportToWord: () => ReturnType;
|
|
826
823
|
};
|
|
827
824
|
}
|
|
828
825
|
}
|
|
@@ -830,8 +827,9 @@ declare module '@tiptap/core' {
|
|
|
830
827
|
|
|
831
828
|
declare module '@tiptap/core' {
|
|
832
829
|
interface Commands<ReturnType> {
|
|
833
|
-
|
|
834
|
-
|
|
830
|
+
tableOfContents: {
|
|
831
|
+
setTableOfContents: () => ReturnType;
|
|
832
|
+
removeTableOfContents: () => ReturnType;
|
|
835
833
|
};
|
|
836
834
|
}
|
|
837
835
|
}
|
|
@@ -839,9 +837,11 @@ declare module '@tiptap/core' {
|
|
|
839
837
|
|
|
840
838
|
declare module '@tiptap/core' {
|
|
841
839
|
interface Commands<ReturnType> {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
840
|
+
emoji: {
|
|
841
|
+
setEmoji: (emoji: {
|
|
842
|
+
name: string;
|
|
843
|
+
emoji: string;
|
|
844
|
+
}) => ReturnType;
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
}
|
|
@@ -849,8 +849,14 @@ declare module '@tiptap/core' {
|
|
|
849
849
|
|
|
850
850
|
declare module '@tiptap/core' {
|
|
851
851
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
twitter: {
|
|
853
|
+
/**
|
|
854
|
+
* Insert a tweet
|
|
855
|
+
* @param options The tweet attributes
|
|
856
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
857
|
+
*/
|
|
858
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
859
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
854
860
|
};
|
|
855
861
|
}
|
|
856
862
|
}
|
|
@@ -887,14 +893,9 @@ declare module '@tiptap/core' {
|
|
|
887
893
|
|
|
888
894
|
declare module '@tiptap/core' {
|
|
889
895
|
interface Commands<ReturnType> {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
* @param options The tweet attributes
|
|
894
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
895
|
-
*/
|
|
896
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
896
|
+
drawer: {
|
|
897
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
898
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
898
899
|
};
|
|
899
900
|
}
|
|
900
901
|
}
|
|
@@ -902,9 +903,8 @@ declare module '@tiptap/core' {
|
|
|
902
903
|
|
|
903
904
|
declare module '@tiptap/core' {
|
|
904
905
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
906
|
+
excalidraw: {
|
|
907
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
}
|