@seafile/comment-editor 0.0.1-alpha.40 → 0.0.1-alpha.41

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.
@@ -7,7 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _basicSdk = require("../basic-sdk");
10
- var _errorBoundary = _interopRequireDefault(require("../components/error-boundary"));
10
+ // import ErrorBoundary from '../components/error-boundary';
11
+
11
12
  const SeafileCommentEditor = _ref => {
12
13
  let {
13
14
  // Provider
@@ -34,24 +35,29 @@ const SeafileCommentEditor = _ref => {
34
35
  api
35
36
  } = _ref;
36
37
  _basicSdk.context.init(settings, api);
37
- return /*#__PURE__*/_react.default.createElement(_errorBoundary.default, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
38
- type: type,
39
- className: className,
40
- pluginName: pluginName,
41
- pluginEventBus: pluginEventBus,
42
- pluginEvent: pluginEvent,
43
- collaborators: collaborators,
44
- participants: participants,
45
- addParticipants: addParticipants
46
- }, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
47
- content: content,
48
- insertContent: insertContent,
49
- onContentChange: onContentChange,
50
- hiddenUserInfo: hiddenUserInfo,
51
- hiddenComment: hiddenComment,
52
- toolMenus: toolMenus,
53
- closePanel: closePanel,
54
- addParticipants: addParticipants
55
- })));
38
+ return (
39
+ /*#__PURE__*/
40
+ // <ErrorBoundary>
41
+ _react.default.createElement(_basicSdk.CommentProvider, {
42
+ type: type,
43
+ className: className,
44
+ pluginName: pluginName,
45
+ pluginEventBus: pluginEventBus,
46
+ pluginEvent: pluginEvent,
47
+ collaborators: collaborators,
48
+ participants: participants,
49
+ addParticipants: addParticipants
50
+ }, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
51
+ content: content,
52
+ insertContent: insertContent,
53
+ onContentChange: onContentChange,
54
+ hiddenUserInfo: hiddenUserInfo,
55
+ hiddenComment: hiddenComment,
56
+ toolMenus: toolMenus,
57
+ closePanel: closePanel,
58
+ addParticipants: addParticipants
59
+ }))
60
+ // </ErrorBoundary>
61
+ );
56
62
  };
57
63
  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.40",
3
+ "version": "0.0.1-alpha.41",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",