@seafile/sdoc-editor 3.0.44 → 3.0.45
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.
|
@@ -28,6 +28,9 @@ function AIDropdownMenu(_ref) {
|
|
|
28
28
|
};
|
|
29
29
|
return /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
30
30
|
menuConfig: aiProps,
|
|
31
|
-
onClick:
|
|
31
|
+
onClick: function onClick(e) {
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
onAiClick();
|
|
34
|
+
}
|
|
32
35
|
});
|
|
33
36
|
}
|
|
@@ -53,6 +53,7 @@ var withSocketIO = function withSocketIO(editor, options) {
|
|
|
53
53
|
|
|
54
54
|
// Initially collapse the collaborator‘s selections to start point
|
|
55
55
|
var newCursor = newEditor.selection;
|
|
56
|
+
if (!newEditor.selection) return;
|
|
56
57
|
var _newEditor$selection = newEditor.selection,
|
|
57
58
|
anchor = _newEditor$selection.anchor,
|
|
58
59
|
focus = _newEditor$selection.focus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.45",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "10e5bc5a41ccf110faa082ac45fa3b5cfb84f019"
|
|
76
76
|
}
|