@seafile/sdoc-editor 0.2.16 → 0.2.17

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.
@@ -29,6 +29,7 @@
29
29
  padding: 0 5px;
30
30
  border-radius: 2px;
31
31
  line-height: 20px;
32
+ cursor: pointer;
32
33
  }
33
34
 
34
35
  .link-op-menu-link:hover {
@@ -42,7 +42,8 @@ var GlobalComment = function GlobalComment(_ref) {
42
42
  useEffect(function () {
43
43
  var eventBus = EventBus.getInstance();
44
44
  var unsubscribe = eventBus.subscribe('COMMENT_LIST_CLICK', function () {
45
- return setShowCommentList(!isShowCommentList);
45
+ setActiveComment(null);
46
+ setShowCommentList(!isShowCommentList);
46
47
  });
47
48
  return function () {
48
49
  unsubscribe();
@@ -61,7 +62,7 @@ var GlobalComment = function GlobalComment(_ref) {
61
62
  }, []);
62
63
  if (!isShowCommentList) return null;
63
64
  return /*#__PURE__*/React.createElement(ElementPopover, {
64
- className: 'global-comments-popover'
65
+ className: "global-comments-popover"
65
66
  }, /*#__PURE__*/React.createElement("div", {
66
67
  ref: commentRef,
67
68
  className: "comments-panel-wrapper"
@@ -23,12 +23,12 @@ var LinkHover = function LinkHover(_ref) {
23
23
  return /*#__PURE__*/React.createElement(React.Fragment, null, createPortal( /*#__PURE__*/React.createElement("div", {
24
24
  id: "link-op-menu",
25
25
  className: "link-op-menu",
26
- style: menuPosition,
27
- onMouseDown: onMouseDown
26
+ style: menuPosition
28
27
  }, /*#__PURE__*/React.createElement("span", {
29
28
  target: "_blank",
30
29
  rel: "noopener noreferrer",
31
- className: "link-op-menu-link"
30
+ className: "link-op-menu-link",
31
+ onMouseDown: onMouseDown
32
32
  }, t('Open_link')), /*#__PURE__*/React.createElement("div", {
33
33
  className: "link-op-icons d-flex"
34
34
  }, /*#__PURE__*/React.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",