@seafile/sdoc-editor 0.1.84 → 0.1.86

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 {
@@ -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 {
@@ -18,7 +18,7 @@ var MoreRevisionOperations = function MoreRevisionOperations(_ref) {
18
18
  }, []);
19
19
  var startRevise = useCallback(function () {
20
20
  context.startRevise().then(function (res) {
21
- window.location.href = "".concat(siteRoot, "lib/").concat(repoID, "/file").concat(res.data.file_path);
21
+ window.location.href = "".concat(siteRoot, "lib/").concat(repoID, "/revisions/").concat(res.data.revision_id, "/");
22
22
  }).catch(function (error) {
23
23
  toaster.danger(t('Error'));
24
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",