reactjs-tiptap-editor-pro 0.2.25 → 0.2.27

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.
@@ -930,15 +930,8 @@ declare module '@tiptap/core' {
930
930
 
931
931
  declare module '@tiptap/core' {
932
932
  interface Commands<ReturnType> {
933
- indent: {
934
- /**
935
- * Set the indent attribute
936
- */
937
- indent: () => ReturnType;
938
- /**
939
- * Set the outdent attribute
940
- */
941
- outdent: () => ReturnType;
933
+ katex: {
934
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
942
935
  };
943
936
  }
944
937
  }
@@ -946,19 +939,14 @@ declare module '@tiptap/core' {
946
939
 
947
940
  declare module '@tiptap/core' {
948
941
  interface Commands<ReturnType> {
949
- imageUpload: {
950
- /**
951
- * Add an image
952
- */
953
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
954
- /**
955
- * Update an image
956
- */
957
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
942
+ iframe: {
958
943
  /**
959
- * Set image alignment
944
+ * Add an iframe
960
945
  */
961
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
946
+ setIframe: (options: {
947
+ src: string;
948
+ service: string;
949
+ }) => ReturnType;
962
950
  };
963
951
  }
964
952
  }
@@ -966,9 +954,11 @@ declare module '@tiptap/core' {
966
954
 
967
955
  declare module '@tiptap/core' {
968
956
  interface Commands<ReturnType> {
969
- tableCellBackground: {
970
- setTableCellBackground: (color: string) => ReturnType;
971
- unsetTableCellBackground: () => ReturnType;
957
+ emoji: {
958
+ setEmoji: (emoji: {
959
+ name: string;
960
+ emoji: string;
961
+ }) => ReturnType;
972
962
  };
973
963
  }
974
964
  }
@@ -976,14 +966,8 @@ declare module '@tiptap/core' {
976
966
 
977
967
  declare module '@tiptap/core' {
978
968
  interface Commands<ReturnType> {
979
- search: {
980
- setSearchTerm: (searchTerm: string) => ReturnType;
981
- setReplaceTerm: (replaceTerm: string) => ReturnType;
982
- replace: () => ReturnType;
983
- replaceAll: () => ReturnType;
984
- goToPrevSearchResult: () => void;
985
- goToNextSearchResult: () => void;
986
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
969
+ painter: {
970
+ setPainter: (marks: Mark[]) => ReturnType;
987
971
  };
988
972
  }
989
973
  }
@@ -991,13 +975,8 @@ declare module '@tiptap/core' {
991
975
 
992
976
  declare module '@tiptap/core' {
993
977
  interface Commands<ReturnType> {
994
- columns: {
995
- insertColumns: (attrs?: {
996
- cols: number;
997
- }) => ReturnType;
998
- addColBefore: () => ReturnType;
999
- addColAfter: () => ReturnType;
1000
- deleteCol: () => ReturnType;
978
+ exportWord: {
979
+ exportToWord: () => ReturnType;
1001
980
  };
1002
981
  }
1003
982
  }
@@ -1005,8 +984,19 @@ declare module '@tiptap/core' {
1005
984
 
1006
985
  declare module '@tiptap/core' {
1007
986
  interface Commands<ReturnType> {
1008
- painter: {
1009
- setPainter: (marks: Mark[]) => ReturnType;
987
+ imageUpload: {
988
+ /**
989
+ * Add an image
990
+ */
991
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
992
+ /**
993
+ * Update an image
994
+ */
995
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
996
+ /**
997
+ * Set image alignment
998
+ */
999
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1010
1000
  };
1011
1001
  }
1012
1002
  }
@@ -1014,8 +1004,14 @@ declare module '@tiptap/core' {
1014
1004
 
1015
1005
  declare module '@tiptap/core' {
1016
1006
  interface Commands<ReturnType> {
1017
- katex: {
1018
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1007
+ search: {
1008
+ setSearchTerm: (searchTerm: string) => ReturnType;
1009
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1010
+ replace: () => ReturnType;
1011
+ replaceAll: () => ReturnType;
1012
+ goToPrevSearchResult: () => void;
1013
+ goToNextSearchResult: () => void;
1014
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1019
1015
  };
1020
1016
  }
1021
1017
  }
@@ -1023,11 +1019,9 @@ declare module '@tiptap/core' {
1023
1019
 
1024
1020
  declare module '@tiptap/core' {
1025
1021
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1030
- }) => ReturnType;
1022
+ tableCellBackground: {
1023
+ setTableCellBackground: (color: string) => ReturnType;
1024
+ unsetTableCellBackground: () => ReturnType;
1031
1025
  };
1032
1026
  }
1033
1027
  }
@@ -1035,14 +1029,15 @@ declare module '@tiptap/core' {
1035
1029
 
1036
1030
  declare module '@tiptap/core' {
1037
1031
  interface Commands<ReturnType> {
1038
- iframe: {
1032
+ indent: {
1039
1033
  /**
1040
- * Add an iframe
1034
+ * Set the indent attribute
1041
1035
  */
1042
- setIframe: (options: {
1043
- src: string;
1044
- service: string;
1045
- }) => ReturnType;
1036
+ indent: () => ReturnType;
1037
+ /**
1038
+ * Set the outdent attribute
1039
+ */
1040
+ outdent: () => ReturnType;
1046
1041
  };
1047
1042
  }
1048
1043
  }
@@ -1050,8 +1045,13 @@ declare module '@tiptap/core' {
1050
1045
 
1051
1046
  declare module '@tiptap/core' {
1052
1047
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1048
+ columns: {
1049
+ insertColumns: (attrs?: {
1050
+ cols: number;
1051
+ }) => ReturnType;
1052
+ addColBefore: () => ReturnType;
1053
+ addColAfter: () => ReturnType;
1054
+ deleteCol: () => ReturnType;
1055
1055
  };
1056
1056
  }
1057
1057
  }
@@ -1059,9 +1059,8 @@ declare module '@tiptap/core' {
1059
1059
 
1060
1060
  declare module '@tiptap/core' {
1061
1061
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1062
+ excalidraw: {
1063
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1065
1064
  };
1066
1065
  }
1067
1066
  }
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
1069
1068
 
1070
1069
  declare module '@tiptap/core' {
1071
1070
  interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1071
+ tableOfContents: {
1072
+ setTableOfContents: () => ReturnType;
1073
+ removeTableOfContents: () => ReturnType;
1074
1074
  };
1075
1075
  }
1076
1076
  }
@@ -1098,9 +1098,14 @@ declare module '@tiptap/core' {
1098
1098
 
1099
1099
  declare module '@tiptap/core' {
1100
1100
  interface Commands<ReturnType> {
1101
- mermaid: {
1102
- setMermaid: (options: any, replace?: any) => ReturnType;
1103
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1101
+ twitter: {
1102
+ /**
1103
+ * Insert a tweet
1104
+ * @param options The tweet attributes
1105
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1106
+ */
1107
+ setTweet: (options: SetTweetOptions) => ReturnType;
1108
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1104
1109
  };
1105
1110
  }
1106
1111
  }
@@ -1118,8 +1123,9 @@ declare module '@tiptap/core' {
1118
1123
 
1119
1124
  declare module '@tiptap/core' {
1120
1125
  interface Commands<ReturnType> {
1121
- attachment: {
1122
- setAttachment: (attrs?: unknown) => ReturnType;
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1123
1129
  };
1124
1130
  }
1125
1131
  }
@@ -1127,14 +1133,8 @@ declare module '@tiptap/core' {
1127
1133
 
1128
1134
  declare module '@tiptap/core' {
1129
1135
  interface Commands<ReturnType> {
1130
- twitter: {
1131
- /**
1132
- * Insert a tweet
1133
- * @param options The tweet attributes
1134
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1135
- */
1136
- setTweet: (options: SetTweetOptions) => ReturnType;
1137
- updateTweet: (options: SetTweetOptions) => ReturnType;
1136
+ attachment: {
1137
+ setAttachment: (attrs?: unknown) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -1,4 +1,4 @@
1
- import { a as e, b as l, l as o, e as _, c, d as h } from "./index-PJxla8pp.js";
1
+ import { a as e, b as l, l as o, e as _, c, d as h } from "./index-M6H3FoBi.js";
2
2
  export {
3
3
  e as en,
4
4
  l as hu_HU,