@ctzhian/tiptap 1.5.4 → 1.5.6
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.
|
@@ -258,6 +258,7 @@ var CustomDragHandle = function CustomDragHandle(_ref3) {
|
|
|
258
258
|
};
|
|
259
259
|
var updateNodeChange = useCallback(function (data) {
|
|
260
260
|
var _data$node, _current$node2;
|
|
261
|
+
console.log(data);
|
|
261
262
|
if ((data.pos !== current.pos || ((_data$node = data.node) === null || _data$node === void 0 ? void 0 : _data$node.type.name) !== ((_current$node2 = current.node) === null || _current$node2 === void 0 ? void 0 : _current$node2.type.name)) && data.pos !== -1 || data.node === null && data.pos >= 0) {
|
|
262
263
|
var _data$node2;
|
|
263
264
|
var allResources = data.node ? getAllResources(data.node) : [];
|
|
@@ -219,14 +219,16 @@ var LinkViewWrapper = function LinkViewWrapper(_ref) {
|
|
|
219
219
|
display: 'inline-flex',
|
|
220
220
|
alignItems: 'baseline',
|
|
221
221
|
gap: 0.5,
|
|
222
|
-
fontWeight: 500
|
|
222
|
+
fontWeight: 500,
|
|
223
|
+
pointerEvents: 'none'
|
|
223
224
|
}
|
|
224
225
|
}, attrs.type === 'icon' && /*#__PURE__*/React.createElement(Avatar, {
|
|
225
226
|
sx: {
|
|
226
227
|
width: '1rem',
|
|
227
228
|
height: '1rem',
|
|
228
229
|
alignSelf: 'center',
|
|
229
|
-
bgcolor: '#FFFFFF'
|
|
230
|
+
bgcolor: '#FFFFFF',
|
|
231
|
+
pointerEvents: 'none'
|
|
230
232
|
},
|
|
231
233
|
src: favicon
|
|
232
234
|
}, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UploadFunction } from "../../type";
|
|
2
2
|
export declare const FileHandlerExtension: (props: {
|
|
3
3
|
onUpload?: UploadFunction;
|
|
4
|
-
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "
|
|
4
|
+
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "key" | "editor">, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
|
2
2
|
export declare const TableExtension: ({ editable }: {
|
|
3
3
|
editable: boolean;
|
|
4
|
-
}) => (
|
|
4
|
+
}) => (import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableHeaderOptions, any> | Extension<any, any>)[];
|
|
5
5
|
export default TableExtension;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctzhian/tiptap",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "基于 Tiptap 二次开发的编辑器组件",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -81,36 +81,36 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@floating-ui/dom": "^1.7.2",
|
|
84
|
-
"@tiptap/core": "^3.4.
|
|
85
|
-
"@tiptap/extension-bubble-menu": "^3.4.
|
|
84
|
+
"@tiptap/core": "^3.4.4",
|
|
85
|
+
"@tiptap/extension-bubble-menu": "^3.4.4",
|
|
86
86
|
"@tiptap/extension-code": "^3.4.3",
|
|
87
|
-
"@tiptap/extension-code-block-lowlight": "^3.4.
|
|
88
|
-
"@tiptap/extension-details": "^3.4.
|
|
89
|
-
"@tiptap/extension-drag-handle-react": "^3.4.
|
|
90
|
-
"@tiptap/extension-emoji": "^3.4.
|
|
91
|
-
"@tiptap/extension-file-handler": "^3.4.
|
|
92
|
-
"@tiptap/extension-highlight": "^3.4.
|
|
93
|
-
"@tiptap/extension-image": "^3.4.
|
|
94
|
-
"@tiptap/extension-invisible-characters": "^3.4.
|
|
95
|
-
"@tiptap/extension-link": "^3.4.
|
|
96
|
-
"@tiptap/extension-list": "^3.4.
|
|
97
|
-
"@tiptap/extension-mathematics": "^3.4.
|
|
98
|
-
"@tiptap/extension-mention": "^3.4.
|
|
99
|
-
"@tiptap/extension-subscript": "^3.4.
|
|
100
|
-
"@tiptap/extension-superscript": "^3.4.
|
|
101
|
-
"@tiptap/extension-table": "^3.4.
|
|
102
|
-
"@tiptap/extension-table-of-contents": "^3.4.
|
|
103
|
-
"@tiptap/extension-text-align": "^3.4.
|
|
104
|
-
"@tiptap/extension-text-style": "^3.4.
|
|
105
|
-
"@tiptap/extension-unique-id": "^3.4.
|
|
106
|
-
"@tiptap/extension-youtube": "^3.4.
|
|
107
|
-
"@tiptap/extensions": "^3.4.
|
|
108
|
-
"@tiptap/html": "^3.4.
|
|
109
|
-
"@tiptap/pm": "^3.4.
|
|
110
|
-
"@tiptap/react": "^3.4.
|
|
111
|
-
"@tiptap/starter-kit": "^3.4.
|
|
112
|
-
"@tiptap/static-renderer": "^3.4.
|
|
113
|
-
"@tiptap/suggestion": "^3.4.
|
|
87
|
+
"@tiptap/extension-code-block-lowlight": "^3.4.4",
|
|
88
|
+
"@tiptap/extension-details": "^3.4.4",
|
|
89
|
+
"@tiptap/extension-drag-handle-react": "^3.4.4",
|
|
90
|
+
"@tiptap/extension-emoji": "^3.4.4",
|
|
91
|
+
"@tiptap/extension-file-handler": "^3.4.4",
|
|
92
|
+
"@tiptap/extension-highlight": "^3.4.4",
|
|
93
|
+
"@tiptap/extension-image": "^3.4.4",
|
|
94
|
+
"@tiptap/extension-invisible-characters": "^3.4.4",
|
|
95
|
+
"@tiptap/extension-link": "^3.4.4",
|
|
96
|
+
"@tiptap/extension-list": "^3.4.4",
|
|
97
|
+
"@tiptap/extension-mathematics": "^3.4.4",
|
|
98
|
+
"@tiptap/extension-mention": "^3.4.4",
|
|
99
|
+
"@tiptap/extension-subscript": "^3.4.4",
|
|
100
|
+
"@tiptap/extension-superscript": "^3.4.4",
|
|
101
|
+
"@tiptap/extension-table": "^3.4.4",
|
|
102
|
+
"@tiptap/extension-table-of-contents": "^3.4.4",
|
|
103
|
+
"@tiptap/extension-text-align": "^3.4.4",
|
|
104
|
+
"@tiptap/extension-text-style": "^3.4.4",
|
|
105
|
+
"@tiptap/extension-unique-id": "^3.4.4",
|
|
106
|
+
"@tiptap/extension-youtube": "^3.4.4",
|
|
107
|
+
"@tiptap/extensions": "^3.4.4",
|
|
108
|
+
"@tiptap/html": "^3.4.4",
|
|
109
|
+
"@tiptap/pm": "^3.4.4",
|
|
110
|
+
"@tiptap/react": "^3.4.4",
|
|
111
|
+
"@tiptap/starter-kit": "^3.4.4",
|
|
112
|
+
"@tiptap/static-renderer": "^3.4.4",
|
|
113
|
+
"@tiptap/suggestion": "^3.4.4",
|
|
114
114
|
"diff-match-patch": "^1.0.5",
|
|
115
115
|
"highlight.js": "^11.11.1",
|
|
116
116
|
"jszip": "^3.10.1",
|