reactjs-tiptap-editor 0.2.13 → 0.2.15
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-6FQXIxVb.cjs +141 -0
- package/lib/{RichTextEditor-DqXFuGeI.js → RichTextEditor-CdmbhFty.js} +1965 -1831
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +48 -48
- package/lib/extension-bundle.d.ts +48 -48
- package/lib/extension-bundle.js +738 -704
- 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 +48 -48
- package/lib/index.d.ts +48 -48
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +48 -48
- package/lib/locale-bundle.d.ts +48 -48
- 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
|
@@ -698,6 +698,16 @@ declare module '@tiptap/core' {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
|
|
701
|
+
declare module '@tiptap/core' {
|
|
702
|
+
interface Commands<ReturnType> {
|
|
703
|
+
lineHeight: {
|
|
704
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
705
|
+
unsetLineHeight: () => ReturnType;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
|
|
701
711
|
declare module '@tiptap/core' {
|
|
702
712
|
interface Commands<ReturnType> {
|
|
703
713
|
indent: {
|
|
@@ -714,16 +724,6 @@ declare module '@tiptap/core' {
|
|
|
714
724
|
}
|
|
715
725
|
|
|
716
726
|
|
|
717
|
-
declare module '@tiptap/core' {
|
|
718
|
-
interface Commands<ReturnType> {
|
|
719
|
-
lineHeight: {
|
|
720
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
721
|
-
unsetLineHeight: () => ReturnType;
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
727
|
declare module '@tiptap/core' {
|
|
728
728
|
interface Commands<ReturnType> {
|
|
729
729
|
columns: {
|
|
@@ -748,21 +748,6 @@ declare module '@tiptap/core' {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
|
|
751
|
-
declare module '@tiptap/core' {
|
|
752
|
-
interface Commands<ReturnType> {
|
|
753
|
-
iframe: {
|
|
754
|
-
/**
|
|
755
|
-
* Add an iframe
|
|
756
|
-
*/
|
|
757
|
-
setIframe: (options: {
|
|
758
|
-
src: string;
|
|
759
|
-
service: string;
|
|
760
|
-
}) => ReturnType;
|
|
761
|
-
};
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
751
|
declare module '@tiptap/core' {
|
|
767
752
|
interface Commands<ReturnType> {
|
|
768
753
|
imageUpload: {
|
|
@@ -818,8 +803,11 @@ declare module '@tiptap/core' {
|
|
|
818
803
|
|
|
819
804
|
declare module '@tiptap/core' {
|
|
820
805
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
806
|
+
emoji: {
|
|
807
|
+
setEmoji: (emoji: {
|
|
808
|
+
name: string;
|
|
809
|
+
emoji: string;
|
|
810
|
+
}) => ReturnType;
|
|
823
811
|
};
|
|
824
812
|
}
|
|
825
813
|
}
|
|
@@ -827,9 +815,14 @@ declare module '@tiptap/core' {
|
|
|
827
815
|
|
|
828
816
|
declare module '@tiptap/core' {
|
|
829
817
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
818
|
+
iframe: {
|
|
819
|
+
/**
|
|
820
|
+
* Add an iframe
|
|
821
|
+
*/
|
|
822
|
+
setIframe: (options: {
|
|
823
|
+
src: string;
|
|
824
|
+
service: string;
|
|
825
|
+
}) => ReturnType;
|
|
833
826
|
};
|
|
834
827
|
}
|
|
835
828
|
}
|
|
@@ -837,11 +830,8 @@ declare module '@tiptap/core' {
|
|
|
837
830
|
|
|
838
831
|
declare module '@tiptap/core' {
|
|
839
832
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name: string;
|
|
843
|
-
emoji: string;
|
|
844
|
-
}) => ReturnType;
|
|
833
|
+
exportWord: {
|
|
834
|
+
exportToWord: () => ReturnType;
|
|
845
835
|
};
|
|
846
836
|
}
|
|
847
837
|
}
|
|
@@ -849,14 +839,18 @@ declare module '@tiptap/core' {
|
|
|
849
839
|
|
|
850
840
|
declare module '@tiptap/core' {
|
|
851
841
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
842
|
+
tableOfContents: {
|
|
843
|
+
setTableOfContents: () => ReturnType;
|
|
844
|
+
removeTableOfContents: () => ReturnType;
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
declare module '@tiptap/core' {
|
|
851
|
+
interface Commands<ReturnType> {
|
|
852
|
+
excalidraw: {
|
|
853
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
860
854
|
};
|
|
861
855
|
}
|
|
862
856
|
}
|
|
@@ -903,8 +897,9 @@ declare module '@tiptap/core' {
|
|
|
903
897
|
|
|
904
898
|
declare module '@tiptap/core' {
|
|
905
899
|
interface Commands<ReturnType> {
|
|
906
|
-
|
|
907
|
-
|
|
900
|
+
mermaid: {
|
|
901
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
902
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
908
903
|
};
|
|
909
904
|
}
|
|
910
905
|
}
|
|
@@ -912,9 +907,14 @@ declare module '@tiptap/core' {
|
|
|
912
907
|
|
|
913
908
|
declare module '@tiptap/core' {
|
|
914
909
|
interface Commands<ReturnType> {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
910
|
+
twitter: {
|
|
911
|
+
/**
|
|
912
|
+
* Insert a tweet
|
|
913
|
+
* @param options The tweet attributes
|
|
914
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
915
|
+
*/
|
|
916
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
917
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
}
|
|
@@ -698,6 +698,16 @@ declare module '@tiptap/core' {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
|
|
701
|
+
declare module '@tiptap/core' {
|
|
702
|
+
interface Commands<ReturnType> {
|
|
703
|
+
lineHeight: {
|
|
704
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
705
|
+
unsetLineHeight: () => ReturnType;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
|
|
701
711
|
declare module '@tiptap/core' {
|
|
702
712
|
interface Commands<ReturnType> {
|
|
703
713
|
indent: {
|
|
@@ -714,16 +724,6 @@ declare module '@tiptap/core' {
|
|
|
714
724
|
}
|
|
715
725
|
|
|
716
726
|
|
|
717
|
-
declare module '@tiptap/core' {
|
|
718
|
-
interface Commands<ReturnType> {
|
|
719
|
-
lineHeight: {
|
|
720
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
721
|
-
unsetLineHeight: () => ReturnType;
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
727
|
declare module '@tiptap/core' {
|
|
728
728
|
interface Commands<ReturnType> {
|
|
729
729
|
columns: {
|
|
@@ -748,21 +748,6 @@ declare module '@tiptap/core' {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
|
|
751
|
-
declare module '@tiptap/core' {
|
|
752
|
-
interface Commands<ReturnType> {
|
|
753
|
-
iframe: {
|
|
754
|
-
/**
|
|
755
|
-
* Add an iframe
|
|
756
|
-
*/
|
|
757
|
-
setIframe: (options: {
|
|
758
|
-
src: string;
|
|
759
|
-
service: string;
|
|
760
|
-
}) => ReturnType;
|
|
761
|
-
};
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
751
|
declare module '@tiptap/core' {
|
|
767
752
|
interface Commands<ReturnType> {
|
|
768
753
|
imageUpload: {
|
|
@@ -818,8 +803,11 @@ declare module '@tiptap/core' {
|
|
|
818
803
|
|
|
819
804
|
declare module '@tiptap/core' {
|
|
820
805
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
806
|
+
emoji: {
|
|
807
|
+
setEmoji: (emoji: {
|
|
808
|
+
name: string;
|
|
809
|
+
emoji: string;
|
|
810
|
+
}) => ReturnType;
|
|
823
811
|
};
|
|
824
812
|
}
|
|
825
813
|
}
|
|
@@ -827,9 +815,14 @@ declare module '@tiptap/core' {
|
|
|
827
815
|
|
|
828
816
|
declare module '@tiptap/core' {
|
|
829
817
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
818
|
+
iframe: {
|
|
819
|
+
/**
|
|
820
|
+
* Add an iframe
|
|
821
|
+
*/
|
|
822
|
+
setIframe: (options: {
|
|
823
|
+
src: string;
|
|
824
|
+
service: string;
|
|
825
|
+
}) => ReturnType;
|
|
833
826
|
};
|
|
834
827
|
}
|
|
835
828
|
}
|
|
@@ -837,11 +830,8 @@ declare module '@tiptap/core' {
|
|
|
837
830
|
|
|
838
831
|
declare module '@tiptap/core' {
|
|
839
832
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name: string;
|
|
843
|
-
emoji: string;
|
|
844
|
-
}) => ReturnType;
|
|
833
|
+
exportWord: {
|
|
834
|
+
exportToWord: () => ReturnType;
|
|
845
835
|
};
|
|
846
836
|
}
|
|
847
837
|
}
|
|
@@ -849,14 +839,18 @@ declare module '@tiptap/core' {
|
|
|
849
839
|
|
|
850
840
|
declare module '@tiptap/core' {
|
|
851
841
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
842
|
+
tableOfContents: {
|
|
843
|
+
setTableOfContents: () => ReturnType;
|
|
844
|
+
removeTableOfContents: () => ReturnType;
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
declare module '@tiptap/core' {
|
|
851
|
+
interface Commands<ReturnType> {
|
|
852
|
+
excalidraw: {
|
|
853
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
860
854
|
};
|
|
861
855
|
}
|
|
862
856
|
}
|
|
@@ -903,8 +897,9 @@ declare module '@tiptap/core' {
|
|
|
903
897
|
|
|
904
898
|
declare module '@tiptap/core' {
|
|
905
899
|
interface Commands<ReturnType> {
|
|
906
|
-
|
|
907
|
-
|
|
900
|
+
mermaid: {
|
|
901
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
902
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
908
903
|
};
|
|
909
904
|
}
|
|
910
905
|
}
|
|
@@ -912,9 +907,14 @@ declare module '@tiptap/core' {
|
|
|
912
907
|
|
|
913
908
|
declare module '@tiptap/core' {
|
|
914
909
|
interface Commands<ReturnType> {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
910
|
+
twitter: {
|
|
911
|
+
/**
|
|
912
|
+
* Insert a tweet
|
|
913
|
+
* @param options The tweet attributes
|
|
914
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
915
|
+
*/
|
|
916
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
917
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
}
|