@seafile/sdoc-editor 2.0.83 → 2.0.85
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.
|
@@ -14,6 +14,11 @@ require("./index.css");
|
|
|
14
14
|
var CommentContextMenu = function CommentContextMenu(_ref) {
|
|
15
15
|
var isRichEditor = _ref.isRichEditor;
|
|
16
16
|
var onCommentClick = (0, _react.useCallback)(function (event) {
|
|
17
|
+
// Make context toolbar disappear
|
|
18
|
+
var contextToolBarDom = document.querySelector('.sdoc-context-toolbar');
|
|
19
|
+
if (contextToolBarDom) {
|
|
20
|
+
contextToolBarDom.removeAttribute('style');
|
|
21
|
+
}
|
|
17
22
|
var eventBus = _eventBus["default"].getInstance();
|
|
18
23
|
eventBus.dispatch(_constants.INTERNAL_EVENT.ADD_CONTEXT_COMMENT);
|
|
19
24
|
}, []);
|
|
@@ -130,9 +130,9 @@ var CommentItemContent = function CommentItemContent(_ref) {
|
|
|
130
130
|
className: "comment-success-resolved sdocfont sdoc-mark-as-resolved"
|
|
131
131
|
})))), isUnseen && !isActive && /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
132
|
className: "sdoc-unread-message-tip"
|
|
133
|
-
}), isActive && comment.user_email === user.username && /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
}), isActive && [comment === null || comment === void 0 ? void 0 : comment.user_email, comment === null || comment === void 0 ? void 0 : comment.author].includes(user.username) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
134
|
className: "d-flex comment-item-operation-wrapper"
|
|
135
|
-
}, !comment.resolved && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
}, (!comment.resolved || (comment === null || comment === void 0 ? void 0 : comment.isContextComment)) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
136
|
id: "tooltip_".concat(menuId),
|
|
137
137
|
className: "comment-operation mr-2",
|
|
138
138
|
onClick: markAsResolved
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.85",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"url-parse": "1.5.10"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"i18next": "^
|
|
59
|
-
"i18next-browser-languagedetector": "^
|
|
60
|
-
"i18next-xhr-backend": "^3.
|
|
61
|
-
"react-i18next": "^12.1.4",
|
|
58
|
+
"i18next": "^17.0.13",
|
|
59
|
+
"i18next-browser-languagedetector": "^3.0.3",
|
|
60
|
+
"i18next-xhr-backend": "^3.1.2",
|
|
62
61
|
"react": "^18.3.0",
|
|
63
62
|
"react-dom": "^18.3.1",
|
|
63
|
+
"react-i18next": "^10.12.2",
|
|
64
64
|
"reactstrap": "^9.2.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
@@ -69,5 +69,6 @@
|
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"gitHead": "6bcb4a7202427ce4abcf0996c5631824c925b643"
|
|
73
74
|
}
|