@seafile/comment-editor 0.0.1-alpha.29 → 0.0.1-alpha.30

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.
@@ -44,8 +44,7 @@ const CommentEditor = _ref => {
44
44
  hiddenComment,
45
45
  hiddenUserInfo,
46
46
  hiddenToolMenu,
47
- closePanel,
48
- addParticipants
47
+ closePanel
49
48
  } = _ref;
50
49
  const commentWrapperRef = (0, _react.useRef)();
51
50
  const {
@@ -54,7 +53,8 @@ const CommentEditor = _ref => {
54
53
  const {
55
54
  className,
56
55
  userInfo,
57
- type
56
+ type,
57
+ addParticipants
58
58
  } = (0, _useComment.useComment)();
59
59
  const submitTip = (0, _react.useMemo)(() => getSubmitTip(type, content), [content, type]);
60
60
  const document = (0, _react.useMemo)(() => {
@@ -23,9 +23,11 @@ const CommentProvider = _ref => {
23
23
  pluginName = '',
24
24
  // sdoc or wiki or txt ...
25
25
  pluginEventBus,
26
- pluginEvent
26
+ pluginEvent,
27
+ collaborators,
28
+ participants,
29
+ addParticipants
27
30
  } = _ref;
28
- const [collaborators, setCollaborators] = (0, _react.useState)([]);
29
31
  return /*#__PURE__*/_react.default.createElement(CommentContext.Provider, {
30
32
  value: {
31
33
  type,
@@ -34,7 +36,9 @@ const CommentProvider = _ref => {
34
36
  pluginName,
35
37
  pluginEventBus,
36
38
  pluginEvent,
37
- collaborators
39
+ collaborators,
40
+ participants,
41
+ addParticipants
38
42
  }
39
43
  }, children);
40
44
  };
@@ -28,6 +28,8 @@ const SeafileCommentEditor = _ref => {
28
28
  hiddenComment,
29
29
  hiddenToolMenu,
30
30
  closePanel,
31
+ collaborators,
32
+ participants,
31
33
  addParticipants,
32
34
  // settings
33
35
  settings,
@@ -40,7 +42,10 @@ const SeafileCommentEditor = _ref => {
40
42
  className: className,
41
43
  pluginName: pluginName,
42
44
  pluginEventBus: pluginEventBus,
43
- pluginEvent: pluginEvent
45
+ pluginEvent: pluginEvent,
46
+ collaborators: collaborators,
47
+ participants: participants,
48
+ addParticipants: addParticipants
44
49
  }, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
45
50
  content: content,
46
51
  insertContent: insertContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.29",
3
+ "version": "0.0.1-alpha.30",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",