@seafile/sdoc-editor 0.1.85 → 0.1.87
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/dist/basic-sdk/comment/comment.js +4 -1
- package/dist/basic-sdk/comment/style.css +0 -1
- package/dist/basic-sdk/extension/core/queries/index.js +1 -1
- package/dist/basic-sdk/extension/plugins/table/helpers.js +1 -1
- package/dist/basic-sdk/extension/plugins/table/render/index.css +3 -1
- package/package.json +1 -1
|
@@ -55,7 +55,10 @@ var Comment = function Comment() {
|
|
|
55
55
|
}, /*#__PURE__*/React.createElement("i", {
|
|
56
56
|
className: "sdocfont sdoc-comment mr-1"
|
|
57
57
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "comment-list-wrapper"
|
|
58
|
+
className: "comment-list-wrapper",
|
|
59
|
+
style: isShowComments ? {
|
|
60
|
+
width: '294px'
|
|
61
|
+
} : null
|
|
59
62
|
}, isShowComments && /*#__PURE__*/React.createElement(CommentList, {
|
|
60
63
|
comments: comments,
|
|
61
64
|
selectionElement: selectionElement
|
|
@@ -445,7 +445,7 @@ export var isRangeAcrossBlocks = function isRangeAcrossBlocks(editor) {
|
|
|
445
445
|
};
|
|
446
446
|
export var isAncestorEmpty = function isAncestorEmpty(editor, node) {
|
|
447
447
|
return !Node.string(node) && !node.children.some(function (n) {
|
|
448
|
-
return Editor.isInline(editor,
|
|
448
|
+
return Editor.isInline(editor, n);
|
|
449
449
|
});
|
|
450
450
|
};
|
|
451
451
|
export var isBlockAboveEmpty = function isBlockAboveEmpty(editor) {
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import slugid from 'slugid';
|
|
6
|
-
import { Editor, Range, Transforms, Point } from '@seafile/slate';
|
|
6
|
+
import { Editor, Range, Transforms, Point, Node } from '@seafile/slate';
|
|
7
7
|
import { ReactEditor } from '@seafile/slate-react';
|
|
8
8
|
import { getNodeType, getParentNode, getSelectedNodeByType, isTextNode, getSelectedElems, focusEditor, getNode, findPath, replaceNodeChildren } from '../../core';
|
|
9
9
|
import { ELEMENT_TYPE, KEYBOARD } from '../../constants';
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
.sdoc-table-wrapper .sdoc-table-scroll-wrapper {
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
width: fit-content;
|
|
9
|
-
overflow-x: auto;
|
|
9
|
+
overflow-x: auto;
|
|
10
|
+
cursor: default;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-right::before,
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
width: fit-content;
|
|
38
39
|
display: table;
|
|
39
40
|
overflow: hidden;
|
|
41
|
+
cursor: text;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.sdoc-table-wrapper .table-row {
|