@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.
@@ -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
@@ -14,7 +14,6 @@
14
14
  .sdoc-comment-container .comment-container-right {
15
15
  position: absolute;
16
16
  left: 100%;
17
- width: 320px;
18
17
  }
19
18
 
20
19
  .sdoc-comment-container .comment-container-right .comment-add-wrapper {
@@ -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, node);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",