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

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