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.
- package/lib/RichTextEditor-B1Y3PPzy.js +8826 -0
- package/lib/RichTextEditor-CVJUZJ-8.cjs +141 -0
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +73 -73
- package/lib/extension-bundle.d.ts +73 -73
- package/lib/extension-bundle.js +1389 -1565
- package/lib/{index-D-rys8BA.cjs → index-DV-nXpU1.cjs} +1 -1
- package/lib/{index-PJxla8pp.js → index-M6H3FoBi.js} +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +73 -73
- package/lib/index.d.ts +73 -73
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +73 -73
- package/lib/locale-bundle.d.ts +73 -73
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-Kst3Ray3.js → tiptap-DkWHMWDt.js} +57 -93
- package/lib/{tiptap-Bzsbnr3f.cjs → tiptap-gBG-1T-V.cjs} +11 -11
- package/lib/{vendor-LvbrNFNL.cjs → vendor-BJ0Yf78E.cjs} +4 -4
- package/lib/{vendor-tDefVoN_.js → vendor-Cpa6z-M0.js} +8 -7
- package/package.json +1 -1
- package/lib/RichTextEditor-Bxdp3pW3.js +0 -8292
- package/lib/RichTextEditor-zOI60NFQ.cjs +0 -141
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -930,15 +930,8 @@ declare module '@tiptap/core' {
|
|
|
930
930
|
|
|
931
931
|
declare module '@tiptap/core' {
|
|
932
932
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
944
|
+
* Add an iframe
|
|
960
945
|
*/
|
|
961
|
-
|
|
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
|
-
|
|
970
|
-
|
|
971
|
-
|
|
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
|
-
|
|
980
|
-
|
|
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
|
-
|
|
995
|
-
|
|
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
|
-
|
|
1009
|
-
|
|
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
|
-
|
|
1018
|
-
|
|
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
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
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
|
-
|
|
1032
|
+
indent: {
|
|
1039
1033
|
/**
|
|
1040
|
-
*
|
|
1034
|
+
* Set the indent attribute
|
|
1041
1035
|
*/
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1054
|
-
|
|
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
|
-
|
|
1063
|
-
|
|
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
|
-
|
|
1073
|
-
|
|
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
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
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
|
-
|
|
1122
|
-
|
|
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
|
-
|
|
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
|
}
|
package/lib/locale-bundle.js
CHANGED