reactjs-tiptap-editor 0.2.21 → 0.2.24

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.
@@ -900,6 +900,15 @@ declare module '@tiptap/core' {
900
900
  }
901
901
 
902
902
 
903
+ declare module '@tiptap/core' {
904
+ interface Commands<ReturnType> {
905
+ setCodeBlock: {
906
+ setCodeBlock: (options?: any) => ReturnType;
907
+ };
908
+ }
909
+ }
910
+
911
+
903
912
  declare module '@tiptap/core' {
904
913
  interface Commands<ReturnType> {
905
914
  fontSize: {
@@ -920,15 +929,19 @@ declare module '@tiptap/core' {
920
929
 
921
930
  declare module '@tiptap/core' {
922
931
  interface Commands<ReturnType> {
923
- indent: {
932
+ imageUpload: {
924
933
  /**
925
- * Set the indent attribute
934
+ * Add an image
926
935
  */
927
- indent: () => ReturnType;
936
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
928
937
  /**
929
- * Set the outdent attribute
938
+ * Update an image
930
939
  */
931
- outdent: () => ReturnType;
940
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
941
+ /**
942
+ * Set image alignment
943
+ */
944
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
932
945
  };
933
946
  }
934
947
  }
@@ -936,14 +949,15 @@ declare module '@tiptap/core' {
936
949
 
937
950
  declare module '@tiptap/core' {
938
951
  interface Commands<ReturnType> {
939
- iframe: {
952
+ indent: {
940
953
  /**
941
- * Add an iframe
954
+ * Set the indent attribute
942
955
  */
943
- setIframe: (options: {
944
- src: string;
945
- service: string;
946
- }) => ReturnType;
956
+ indent: () => ReturnType;
957
+ /**
958
+ * Set the outdent attribute
959
+ */
960
+ outdent: () => ReturnType;
947
961
  };
948
962
  }
949
963
  }
@@ -959,26 +973,6 @@ declare module '@tiptap/core' {
959
973
  }
960
974
 
961
975
 
962
- declare module '@tiptap/core' {
963
- interface Commands<ReturnType> {
964
- imageUpload: {
965
- /**
966
- * Add an image
967
- */
968
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
969
- /**
970
- * Update an image
971
- */
972
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
973
- /**
974
- * Set image alignment
975
- */
976
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
977
- };
978
- }
979
- }
980
-
981
-
982
976
  declare module '@tiptap/core' {
983
977
  interface Commands<ReturnType> {
984
978
  tableCellBackground: {
@@ -998,33 +992,6 @@ declare module '@tiptap/core' {
998
992
  }
999
993
 
1000
994
 
1001
- declare module '@tiptap/core' {
1002
- interface Commands<ReturnType> {
1003
- search: {
1004
- setSearchTerm: (searchTerm: string) => ReturnType;
1005
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1006
- replace: () => ReturnType;
1007
- replaceAll: () => ReturnType;
1008
- goToPrevSearchResult: () => void;
1009
- goToNextSearchResult: () => void;
1010
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1011
- };
1012
- }
1013
- }
1014
-
1015
-
1016
- declare module '@tiptap/core' {
1017
- interface Commands<ReturnType> {
1018
- emoji: {
1019
- setEmoji: (emoji: {
1020
- name: string;
1021
- emoji: string;
1022
- }) => ReturnType;
1023
- };
1024
- }
1025
- }
1026
-
1027
-
1028
995
  declare module '@tiptap/core' {
1029
996
  interface Commands<ReturnType> {
1030
997
  columns: {
@@ -1041,8 +1008,14 @@ declare module '@tiptap/core' {
1041
1008
 
1042
1009
  declare module '@tiptap/core' {
1043
1010
  interface Commands<ReturnType> {
1044
- katex: {
1045
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1011
+ iframe: {
1012
+ /**
1013
+ * Add an iframe
1014
+ */
1015
+ setIframe: (options: {
1016
+ src: string;
1017
+ service: string;
1018
+ }) => ReturnType;
1046
1019
  };
1047
1020
  }
1048
1021
  }
@@ -1050,8 +1023,11 @@ declare module '@tiptap/core' {
1050
1023
 
1051
1024
  declare module '@tiptap/core' {
1052
1025
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1026
+ emoji: {
1027
+ setEmoji: (emoji: {
1028
+ name: string;
1029
+ emoji: string;
1030
+ }) => ReturnType;
1055
1031
  };
1056
1032
  }
1057
1033
  }
@@ -1059,8 +1035,14 @@ declare module '@tiptap/core' {
1059
1035
 
1060
1036
  declare module '@tiptap/core' {
1061
1037
  interface Commands<ReturnType> {
1062
- excalidraw: {
1063
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1038
+ search: {
1039
+ setSearchTerm: (searchTerm: string) => ReturnType;
1040
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1041
+ replace: () => ReturnType;
1042
+ replaceAll: () => ReturnType;
1043
+ goToPrevSearchResult: () => void;
1044
+ goToNextSearchResult: () => void;
1045
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1064
1046
  };
1065
1047
  }
1066
1048
  }
@@ -1078,8 +1060,17 @@ declare module '@tiptap/core' {
1078
1060
 
1079
1061
  declare module '@tiptap/core' {
1080
1062
  interface Commands<ReturnType> {
1081
- attachment: {
1082
- setAttachment: (attrs?: unknown) => ReturnType;
1063
+ katex: {
1064
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1065
+ };
1066
+ }
1067
+ }
1068
+
1069
+
1070
+ declare module '@tiptap/core' {
1071
+ interface Commands<ReturnType> {
1072
+ exportWord: {
1073
+ exportToWord: () => ReturnType;
1083
1074
  };
1084
1075
  }
1085
1076
  }
@@ -1107,14 +1098,27 @@ declare module '@tiptap/core' {
1107
1098
 
1108
1099
  declare module '@tiptap/core' {
1109
1100
  interface Commands<ReturnType> {
1110
- twitter: {
1111
- /**
1112
- * Insert a tweet
1113
- * @param options The tweet attributes
1114
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1115
- */
1116
- setTweet: (options: SetTweetOptions) => ReturnType;
1117
- updateTweet: (options: SetTweetOptions) => ReturnType;
1101
+ mermaid: {
1102
+ setMermaid: (options: any, replace?: any) => ReturnType;
1103
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1104
+ };
1105
+ }
1106
+ }
1107
+
1108
+
1109
+ declare module '@tiptap/core' {
1110
+ interface Commands<ReturnType> {
1111
+ attachment: {
1112
+ setAttachment: (attrs?: unknown) => ReturnType;
1113
+ };
1114
+ }
1115
+ }
1116
+
1117
+
1118
+ declare module '@tiptap/core' {
1119
+ interface Commands<ReturnType> {
1120
+ excalidraw: {
1121
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1118
1122
  };
1119
1123
  }
1120
1124
  }
@@ -1132,9 +1136,14 @@ declare module '@tiptap/core' {
1132
1136
 
1133
1137
  declare module '@tiptap/core' {
1134
1138
  interface Commands<ReturnType> {
1135
- mermaid: {
1136
- setMermaid: (options: any, replace?: any) => ReturnType;
1137
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1139
+ twitter: {
1140
+ /**
1141
+ * Insert a tweet
1142
+ * @param options The tweet attributes
1143
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1144
+ */
1145
+ setTweet: (options: SetTweetOptions) => ReturnType;
1146
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1138
1147
  };
1139
1148
  }
1140
1149
  }
@@ -1,4 +1,4 @@
1
- import { a as e, b as l, l as o, e as _, c, d as h } from "./index-8id9bPv5.js";
1
+ import { a as e, b as l, l as o, e as _, c, d as h } from "./index-BlV5SJJW.js";
2
2
  export {
3
3
  e as en,
4
4
  l as hu_HU,