reactjs-tiptap-editor-pro 0.2.41 → 0.2.42

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.
@@ -920,39 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- indent: {
924
- /**
925
- * Set the indent attribute
926
- */
927
- indent: () => ReturnType;
928
- /**
929
- * Set the outdent attribute
930
- */
931
- outdent: () => ReturnType;
932
- };
933
- }
934
- }
935
-
936
-
937
- declare module '@tiptap/core' {
938
- interface Commands<ReturnType> {
939
- iframe: {
940
- /**
941
- * Add an iframe
942
- */
943
- setIframe: (options: {
944
- src: string;
945
- service: string;
946
- }) => ReturnType;
947
- };
948
- }
949
- }
950
-
951
-
952
- declare module '@tiptap/core' {
953
- interface Commands<ReturnType> {
954
- painter: {
955
- setPainter: (marks: Mark[]) => ReturnType;
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
956
926
  };
957
927
  }
958
928
  }
@@ -980,9 +950,9 @@ declare module '@tiptap/core' {
980
950
 
981
951
  declare module '@tiptap/core' {
982
952
  interface Commands<ReturnType> {
983
- lineHeight: {
984
- setLineHeight: (lineHeight: string) => ReturnType;
985
- unsetLineHeight: () => ReturnType;
953
+ tableOfContents: {
954
+ setTableOfContents: () => ReturnType;
955
+ removeTableOfContents: () => ReturnType;
986
956
  };
987
957
  }
988
958
  }
@@ -990,11 +960,24 @@ declare module '@tiptap/core' {
990
960
 
991
961
  declare module '@tiptap/core' {
992
962
  interface Commands<ReturnType> {
993
- emoji: {
994
- setEmoji: (emoji: {
995
- name: string;
996
- emoji: string;
997
- }) => ReturnType;
963
+ indent: {
964
+ /**
965
+ * Set the indent attribute
966
+ */
967
+ indent: () => ReturnType;
968
+ /**
969
+ * Set the outdent attribute
970
+ */
971
+ outdent: () => ReturnType;
972
+ };
973
+ }
974
+ }
975
+
976
+
977
+ declare module '@tiptap/core' {
978
+ interface Commands<ReturnType> {
979
+ exportWord: {
980
+ exportToWord: () => ReturnType;
998
981
  };
999
982
  }
1000
983
  }
@@ -1016,9 +999,8 @@ declare module '@tiptap/core' {
1016
999
 
1017
1000
  declare module '@tiptap/core' {
1018
1001
  interface Commands<ReturnType> {
1019
- tableCellBackground: {
1020
- setTableCellBackground: (color: string) => ReturnType;
1021
- unsetTableCellBackground: () => ReturnType;
1002
+ katex: {
1003
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1022
1004
  };
1023
1005
  }
1024
1006
  }
@@ -1026,14 +1008,8 @@ declare module '@tiptap/core' {
1026
1008
 
1027
1009
  declare module '@tiptap/core' {
1028
1010
  interface Commands<ReturnType> {
1029
- search: {
1030
- setSearchTerm: (searchTerm: string) => ReturnType;
1031
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1032
- replace: () => ReturnType;
1033
- replaceAll: () => ReturnType;
1034
- goToPrevSearchResult: () => void;
1035
- goToNextSearchResult: () => void;
1036
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1011
+ painter: {
1012
+ setPainter: (marks: Mark[]) => ReturnType;
1037
1013
  };
1038
1014
  }
1039
1015
  }
@@ -1041,8 +1017,11 @@ declare module '@tiptap/core' {
1041
1017
 
1042
1018
  declare module '@tiptap/core' {
1043
1019
  interface Commands<ReturnType> {
1044
- katex: {
1045
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1020
+ emoji: {
1021
+ setEmoji: (emoji: {
1022
+ name: string;
1023
+ emoji: string;
1024
+ }) => ReturnType;
1046
1025
  };
1047
1026
  }
1048
1027
  }
@@ -1050,8 +1029,14 @@ declare module '@tiptap/core' {
1050
1029
 
1051
1030
  declare module '@tiptap/core' {
1052
1031
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1032
+ search: {
1033
+ setSearchTerm: (searchTerm: string) => ReturnType;
1034
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1035
+ replace: () => ReturnType;
1036
+ replaceAll: () => ReturnType;
1037
+ goToPrevSearchResult: () => void;
1038
+ goToNextSearchResult: () => void;
1039
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1055
1040
  };
1056
1041
  }
1057
1042
  }
@@ -1059,9 +1044,14 @@ declare module '@tiptap/core' {
1059
1044
 
1060
1045
  declare module '@tiptap/core' {
1061
1046
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1047
+ iframe: {
1048
+ /**
1049
+ * Add an iframe
1050
+ */
1051
+ setIframe: (options: {
1052
+ src: string;
1053
+ service: string;
1054
+ }) => ReturnType;
1065
1055
  };
1066
1056
  }
1067
1057
  }
@@ -1069,8 +1059,9 @@ declare module '@tiptap/core' {
1069
1059
 
1070
1060
  declare module '@tiptap/core' {
1071
1061
  interface Commands<ReturnType> {
1072
- attachment: {
1073
- setAttachment: (attrs?: unknown) => ReturnType;
1062
+ tableCellBackground: {
1063
+ setTableCellBackground: (color: string) => ReturnType;
1064
+ unsetTableCellBackground: () => ReturnType;
1074
1065
  };
1075
1066
  }
1076
1067
  }
@@ -1078,14 +1069,8 @@ declare module '@tiptap/core' {
1078
1069
 
1079
1070
  declare module '@tiptap/core' {
1080
1071
  interface Commands<ReturnType> {
1081
- twitter: {
1082
- /**
1083
- * Insert a tweet
1084
- * @param options The tweet attributes
1085
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1086
- */
1087
- setTweet: (options: SetTweetOptions) => ReturnType;
1088
- updateTweet: (options: SetTweetOptions) => ReturnType;
1072
+ attachment: {
1073
+ setAttachment: (attrs?: unknown) => ReturnType;
1089
1074
  };
1090
1075
  }
1091
1076
  }
@@ -1113,9 +1098,9 @@ declare module '@tiptap/core' {
1113
1098
 
1114
1099
  declare module '@tiptap/core' {
1115
1100
  interface Commands<ReturnType> {
1116
- drawer: {
1117
- setDrawer: (options: any, replace?: any) => ReturnType;
1118
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1101
+ mermaid: {
1102
+ setMermaid: (options: any, replace?: any) => ReturnType;
1103
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1119
1104
  };
1120
1105
  }
1121
1106
  }
@@ -1123,9 +1108,24 @@ declare module '@tiptap/core' {
1123
1108
 
1124
1109
  declare module '@tiptap/core' {
1125
1110
  interface Commands<ReturnType> {
1126
- mermaid: {
1127
- setMermaid: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1111
+ twitter: {
1112
+ /**
1113
+ * Insert a tweet
1114
+ * @param options The tweet attributes
1115
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1116
+ */
1117
+ setTweet: (options: SetTweetOptions) => ReturnType;
1118
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor-pro",
3
3
  "type": "module",
4
- "version": "0.2.41",
4
+ "version": "0.2.42",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",
@@ -93,25 +93,6 @@
93
93
  "engines": {
94
94
  "node": ">=18.0.0"
95
95
  },
96
- "scripts": {
97
- "build:lib": "vite build && pnpm modify-css",
98
- "build:lib:dev": "vite build --mode development --watch",
99
- "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
100
- "docs:dev": "pnpm --parallel --filter docs... dev",
101
- "docs:build": "pnpm --filter docs... build",
102
- "docs:preview": "pnpm -C docs preview",
103
- "playground": "pnpm --dir ./playground run dev",
104
- "preview": "pnpm --dir ./playground run preview",
105
- "lint": "eslint src --quiet",
106
- "lint:fix": "eslint src --fix --quiet",
107
- "type-check": "tsc",
108
- "verify-commit": "verify-commit-msg",
109
- "prepare": "git-scm-hooks",
110
- "release": "bumpp -r",
111
- "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
112
- "modify-css": "esno ./scripts/modifyCss.ts",
113
- "gen-contributors": "contributorkit"
114
- },
115
96
  "dependencies": {
116
97
  "@radix-ui/react-checkbox": "^1.1.4",
117
98
  "@radix-ui/react-dialog": "^1.1.6",
@@ -238,5 +219,23 @@
238
219
  "git-hooks": {
239
220
  "pre-commit": "npm run lint:fix",
240
221
  "commit-msg": "npm run verify-commit"
222
+ },
223
+ "scripts": {
224
+ "build:lib": "vite build && pnpm modify-css",
225
+ "build:lib:dev": "vite build --mode development --watch",
226
+ "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
227
+ "docs:dev": "pnpm --parallel --filter docs... dev",
228
+ "docs:build": "pnpm --filter docs... build",
229
+ "docs:preview": "pnpm -C docs preview",
230
+ "playground": "pnpm --dir ./playground run dev",
231
+ "preview": "pnpm --dir ./playground run preview",
232
+ "lint": "eslint src --quiet",
233
+ "lint:fix": "eslint src --fix --quiet",
234
+ "type-check": "tsc",
235
+ "verify-commit": "verify-commit-msg",
236
+ "release": "bumpp -r",
237
+ "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
238
+ "modify-css": "esno ./scripts/modifyCss.ts",
239
+ "gen-contributors": "contributorkit"
241
240
  }
242
- }
241
+ }