@ctzhian/tiptap 2.7.4 → 2.7.5
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.
|
@@ -148,7 +148,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
148
148
|
width: dimensions.width
|
|
149
149
|
});
|
|
150
150
|
} catch (error) {
|
|
151
|
-
console.warn('Failed to update image dimensions:', error)
|
|
151
|
+
// console.warn('Failed to update image dimensions:', error)
|
|
152
152
|
}
|
|
153
153
|
}).catch(function (error) {
|
|
154
154
|
try {
|
|
@@ -161,7 +161,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
161
161
|
width: 400
|
|
162
162
|
});
|
|
163
163
|
} catch (updateError) {
|
|
164
|
-
console.warn('Failed to update image attributes with fallback width:', updateError)
|
|
164
|
+
// console.warn('Failed to update image attributes with fallback width:', updateError)
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -7,6 +7,6 @@ export interface UploadProgressAttributes {
|
|
|
7
7
|
tempId: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const getFileIcon: (fileType: string) => React.JSX.Element;
|
|
10
|
-
export declare const getFileTypeText: (fileType: string) => "
|
|
10
|
+
export declare const getFileTypeText: (fileType: string) => "图片" | "视频" | "音频" | "文件";
|
|
11
11
|
declare const UploadProgressView: React.FC<NodeViewProps>;
|
|
12
12
|
export default UploadProgressView;
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare module '@mui/material/styles' {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export declare const theme: <T extends string = "
|
|
29
|
+
export declare const theme: <T extends string = "dark" | "light">({ mode, colors, theme: customTheme, }: {
|
|
30
30
|
mode: T;
|
|
31
31
|
colors?: Record<T, any> | undefined;
|
|
32
32
|
theme?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctzhian/tiptap",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5",
|
|
4
4
|
"description": "基于 Tiptap 二次开发的编辑器组件",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -82,37 +82,37 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@floating-ui/dom": "^1.7.2",
|
|
84
84
|
"@floating-ui/react": "^0.27.16",
|
|
85
|
-
"@tiptap/core": "3.
|
|
86
|
-
"@tiptap/extension-bubble-menu": "3.
|
|
87
|
-
"@tiptap/extension-code": "3.
|
|
88
|
-
"@tiptap/extension-code-block-lowlight": "3.
|
|
89
|
-
"@tiptap/extension-details": "3.
|
|
90
|
-
"@tiptap/extension-drag-handle-react": "3.
|
|
91
|
-
"@tiptap/extension-emoji": "3.
|
|
92
|
-
"@tiptap/extension-file-handler": "3.
|
|
93
|
-
"@tiptap/extension-highlight": "3.
|
|
94
|
-
"@tiptap/extension-horizontal-rule": "3.
|
|
95
|
-
"@tiptap/extension-image": "3.
|
|
96
|
-
"@tiptap/extension-invisible-characters": "3.
|
|
97
|
-
"@tiptap/extension-list": "3.
|
|
98
|
-
"@tiptap/extension-mathematics": "3.
|
|
99
|
-
"@tiptap/extension-mention": "3.
|
|
100
|
-
"@tiptap/extension-subscript": "3.
|
|
101
|
-
"@tiptap/extension-superscript": "3.
|
|
102
|
-
"@tiptap/extension-table": "3.
|
|
103
|
-
"@tiptap/extension-table-of-contents": "3.
|
|
104
|
-
"@tiptap/extension-text-align": "3.
|
|
105
|
-
"@tiptap/extension-text-style": "3.
|
|
106
|
-
"@tiptap/extension-unique-id": "3.
|
|
107
|
-
"@tiptap/extension-youtube": "3.
|
|
108
|
-
"@tiptap/extensions": "3.
|
|
109
|
-
"@tiptap/html": "3.
|
|
110
|
-
"@tiptap/markdown": "3.
|
|
111
|
-
"@tiptap/pm": "3.
|
|
112
|
-
"@tiptap/react": "3.
|
|
113
|
-
"@tiptap/starter-kit": "3.
|
|
114
|
-
"@tiptap/static-renderer": "3.
|
|
115
|
-
"@tiptap/suggestion": "3.
|
|
85
|
+
"@tiptap/core": "^3.13.0",
|
|
86
|
+
"@tiptap/extension-bubble-menu": "^3.13.0",
|
|
87
|
+
"@tiptap/extension-code": "^3.13.0",
|
|
88
|
+
"@tiptap/extension-code-block-lowlight": "^3.13.0",
|
|
89
|
+
"@tiptap/extension-details": "^3.13.0",
|
|
90
|
+
"@tiptap/extension-drag-handle-react": "^3.13.0",
|
|
91
|
+
"@tiptap/extension-emoji": "^3.13.0",
|
|
92
|
+
"@tiptap/extension-file-handler": "^3.13.0",
|
|
93
|
+
"@tiptap/extension-highlight": "^3.13.0",
|
|
94
|
+
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
95
|
+
"@tiptap/extension-image": "^3.13.0",
|
|
96
|
+
"@tiptap/extension-invisible-characters": "^3.13.0",
|
|
97
|
+
"@tiptap/extension-list": "^3.13.0",
|
|
98
|
+
"@tiptap/extension-mathematics": "^3.13.0",
|
|
99
|
+
"@tiptap/extension-mention": "^3.13.0",
|
|
100
|
+
"@tiptap/extension-subscript": "^3.13.0",
|
|
101
|
+
"@tiptap/extension-superscript": "^3.13.0",
|
|
102
|
+
"@tiptap/extension-table": "^3.13.0",
|
|
103
|
+
"@tiptap/extension-table-of-contents": "^3.13.0",
|
|
104
|
+
"@tiptap/extension-text-align": "^3.13.0",
|
|
105
|
+
"@tiptap/extension-text-style": "^3.13.0",
|
|
106
|
+
"@tiptap/extension-unique-id": "^3.13.0",
|
|
107
|
+
"@tiptap/extension-youtube": "^3.13.0",
|
|
108
|
+
"@tiptap/extensions": "^3.13.0",
|
|
109
|
+
"@tiptap/html": "^3.13.0",
|
|
110
|
+
"@tiptap/markdown": "^3.13.0",
|
|
111
|
+
"@tiptap/pm": "^3.13.0",
|
|
112
|
+
"@tiptap/react": "^3.13.0",
|
|
113
|
+
"@tiptap/starter-kit": "^3.13.0",
|
|
114
|
+
"@tiptap/static-renderer": "^3.13.0",
|
|
115
|
+
"@tiptap/suggestion": "^3.13.0",
|
|
116
116
|
"ace-builds": "^1.43.4",
|
|
117
117
|
"core-js": "^3.46.0",
|
|
118
118
|
"diff-match-patch": "^1.0.5",
|