@seafile/comment-editor 0.0.1-alpha.12 → 0.0.1-alpha.14

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.
@@ -105,6 +105,7 @@ const CommentEditor = _ref => {
105
105
  })];
106
106
  _slate.Transforms.select(editor, _slate.Editor.start(editor, []));
107
107
  onContentChange && onContentChange(null);
108
+ console.log('closeComment', closeComment);
108
109
  closeComment && closeComment();
109
110
  }, [editor, updateValue, addParticipants, userInfo.username, placeholder, onContentChange, closeComment]);
110
111
  const onSubmitByEnterKey = (0, _react.useCallback)(event => {
@@ -22,6 +22,7 @@ const SeafileCommentEditor = _ref => {
22
22
  commentContent,
23
23
  hiddenUserInfo,
24
24
  hiddenComment,
25
+ closeComment,
25
26
  setIsEditing,
26
27
  addParticipants,
27
28
  pluginEventBus,
@@ -44,6 +45,7 @@ const SeafileCommentEditor = _ref => {
44
45
  onContentChange: onContentChange,
45
46
  hiddenUserInfo: hiddenUserInfo,
46
47
  hiddenComment: hiddenComment,
48
+ closeComment: closeComment,
47
49
  setIsEditing: setIsEditing,
48
50
  addParticipants: addParticipants
49
51
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.12",
3
+ "version": "0.0.1-alpha.14",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",