@seafile/comment-editor 0.0.7-alpha.0 → 0.0.7-alpha.2

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.
@@ -40,7 +40,28 @@ const SeafileCommentEditor = _ref => {
40
40
  (0, _react.useEffect)(() => {
41
41
  _basicSdk.context.init(settings, api);
42
42
  setI18n((0, _i18n.default)(settings));
43
- }, [api, settings]);
44
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "123"));
43
+ // eslint-disable-next-line react-hooks/exhaustive-deps
44
+ }, []);
45
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, i18n && /*#__PURE__*/_react.default.createElement(_reactI18next.I18nextProvider, {
46
+ i18n: i18n
47
+ }, /*#__PURE__*/_react.default.createElement(_react.Suspense, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
48
+ type: type,
49
+ className: className,
50
+ pluginName: pluginName,
51
+ pluginEventBus: pluginEventBus,
52
+ pluginEvent: pluginEvent,
53
+ collaborators: collaborators,
54
+ participants: participants,
55
+ addParticipants: addParticipants
56
+ }, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
57
+ content: content,
58
+ placeholder: placeholder,
59
+ toolMenus: toolMenus,
60
+ insertContent: insertContent,
61
+ onContentChange: onContentChange,
62
+ hiddenComment: hiddenComment,
63
+ hiddenUserInfo: hiddenUserInfo,
64
+ closePanel: closePanel
65
+ })))));
45
66
  };
46
67
  var _default = exports.default = SeafileCommentEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.7-alpha.0",
3
+ "version": "0.0.7-alpha.2",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",