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.
- package/lib/RichTextEditor-CIhslsGV.cjs +141 -0
- package/lib/{RichTextEditor-aaUynZc2.js → RichTextEditor-C_dIT2FZ.js} +1582 -1556
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +88 -84
- package/lib/extension-bundle.d.ts +88 -84
- package/lib/extension-bundle.js +1275 -1217
- package/lib/{index-8id9bPv5.js → index-BlV5SJJW.js} +28 -42
- package/lib/index-CJ6Hb9MN.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +133 -84
- package/lib/index.d.ts +133 -84
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +86 -77
- package/lib/locale-bundle.d.ts +86 -77
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-BV9BUpUC.js → tiptap-CXio79KB.js} +621 -768
- package/lib/tiptap-Dq62HiQ9.cjs +113 -0
- package/lib/vendor-DdwtMmSr.cjs +302 -0
- package/lib/{vendor-DyAqAGVt.js → vendor-VlEklMUJ.js} +15128 -11919
- package/package.json +23 -24
- package/lib/RichTextEditor-DAqU7JiB.cjs +0 -141
- package/lib/index-CYg22iLG.cjs +0 -1
- package/lib/tiptap-Ufn12SjW.cjs +0 -116
- package/lib/vendor-CRmKyn1B.cjs +0 -264
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -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
|
-
|
|
932
|
+
imageUpload: {
|
|
924
933
|
/**
|
|
925
|
-
*
|
|
934
|
+
* Add an image
|
|
926
935
|
*/
|
|
927
|
-
|
|
936
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
928
937
|
/**
|
|
929
|
-
*
|
|
938
|
+
* Update an image
|
|
930
939
|
*/
|
|
931
|
-
|
|
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
|
-
|
|
952
|
+
indent: {
|
|
940
953
|
/**
|
|
941
|
-
*
|
|
954
|
+
* Set the indent attribute
|
|
942
955
|
*/
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
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
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1054
|
-
|
|
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
|
-
|
|
1063
|
-
|
|
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
|
-
|
|
1082
|
-
|
|
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
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
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
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
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
|
}
|
package/lib/locale-bundle.js
CHANGED