@seafile/comment-editor 0.0.1-alpha.78 → 0.0.1-alpha.79

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.
@@ -53,8 +53,7 @@ const CommentEditor = _ref => {
53
53
  const {
54
54
  className,
55
55
  userInfo,
56
- type,
57
- addParticipants
56
+ type
58
57
  } = (0, _useComment.useComment)();
59
58
  const submitTip = (0, _react.useMemo)(() => getSubmitTip(type, content), [content, type]);
60
59
  const document = (0, _react.useMemo)(() => {
@@ -92,7 +91,6 @@ const CommentEditor = _ref => {
92
91
  event && event.stopPropagation();
93
92
  const mdString = (0, _slateToMd.default)(editor.children);
94
93
  if (mdString && mdString.trim()) insertContent(mdString);
95
- addParticipants && addParticipants(userInfo.username);
96
94
  editor.children = [(0, _core.generateEmptyElement)(_constants2.PARAGRAPH, {
97
95
  placeholder
98
96
  })];
@@ -100,7 +98,7 @@ const CommentEditor = _ref => {
100
98
  onContentChange && onContentChange(null);
101
99
  closePanel && closePanel();
102
100
  // eslint-disable-next-line react-hooks/exhaustive-deps
103
- }, [editor, insertContent, addParticipants, placeholder, onContentChange, closePanel]);
101
+ }, [editor, insertContent, placeholder, onContentChange, closePanel]);
104
102
  const onSubmitByEnterKey = (0, _react.useCallback)(event => {
105
103
  if (!_slateReact.ReactEditor.isFocused(editor)) return;
106
104
  onSubmit(event);
@@ -218,7 +216,6 @@ const CommentEditor = _ref => {
218
216
  }
219
217
  eventProxy.onKeyDown(event);
220
218
  }, [eventProxy, editor]);
221
- console.log('toolMenus', toolMenus);
222
219
  return /*#__PURE__*/_react.default.createElement("div", {
223
220
  className: (0, _classnames.default)('comment-editor-wrapper', className),
224
221
  ref: commentWrapperRef
@@ -26,7 +26,6 @@ const CommentEditorToolbar = _ref => {
26
26
  toolMenus
27
27
  } = _ref;
28
28
  (0, _useSelectionUpdate.default)();
29
- console.log(toolMenus.length);
30
29
  const eventBus = _eventBus.default.getInstance();
31
30
  return /*#__PURE__*/_react.default.createElement("div", {
32
31
  className: "comment-editor-toolbar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.78",
3
+ "version": "0.0.1-alpha.79",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",