@seafile/comment-editor 0.0.1-alpha.64 → 0.0.1-alpha.66

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.
@@ -224,4 +224,4 @@ const CommentEditor = _ref => {
224
224
  ref: commentWrapperRef
225
225
  });
226
226
  };
227
- var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(CommentEditor);
227
+ var _default = exports.default = CommentEditor;
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _reactI18next = require("react-i18next");
10
9
  var _basicSdk = require("../basic-sdk");
11
- var _i18n = require("../_i18n");
12
10
  var _errorBoundary = _interopRequireDefault(require("../components/error-boundary"));
11
+ // import { I18nextProvider } from 'react-i18next';
12
+
13
+ // import { getI18n } from '../_i18n';
14
+
13
15
  const SeafileCommentEditor = _ref => {
14
16
  let {
15
17
  // Provider
@@ -39,26 +41,29 @@ const SeafileCommentEditor = _ref => {
39
41
  lang
40
42
  } = settings || {};
41
43
  _basicSdk.context.init(settings, api);
42
- return /*#__PURE__*/_react.default.createElement(_reactI18next.I18nextProvider, {
43
- i18n: (0, _i18n.getI18n)(lang || 'en')
44
- }, /*#__PURE__*/_react.default.createElement(_errorBoundary.default, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
45
- type: type,
46
- className: className,
47
- pluginName: pluginName,
48
- pluginEventBus: pluginEventBus,
49
- pluginEvent: pluginEvent,
50
- collaborators: collaborators,
51
- participants: participants,
52
- addParticipants: addParticipants
53
- }, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
54
- content: content,
55
- insertContent: insertContent,
56
- onContentChange: onContentChange,
57
- hiddenUserInfo: hiddenUserInfo,
58
- hiddenComment: hiddenComment,
59
- toolMenus: toolMenus,
60
- closePanel: closePanel,
61
- addParticipants: addParticipants
62
- }))));
44
+ return (
45
+ /*#__PURE__*/
46
+ // <I18nextProvider i18n={ getI18n(lang || 'en') }>
47
+ _react.default.createElement(_errorBoundary.default, 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
+ insertContent: insertContent,
59
+ onContentChange: onContentChange,
60
+ hiddenUserInfo: hiddenUserInfo,
61
+ hiddenComment: hiddenComment,
62
+ toolMenus: toolMenus,
63
+ closePanel: closePanel,
64
+ addParticipants: addParticipants
65
+ })))
66
+ // </I18nextProvider>
67
+ );
63
68
  };
64
69
  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.1-alpha.64",
3
+ "version": "0.0.1-alpha.66",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",