@seafile/comment-editor 0.0.1-alpha.76 → 0.0.1-alpha.77

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.
@@ -39,11 +39,11 @@ const CommentEditor = _ref => {
39
39
  let {
40
40
  content,
41
41
  placeholder = DEFAULT_PLACEHOLDER,
42
+ toolMenus = ['text_style', _constants2.BLOCKQUOTE, _constants2.UNORDERED_LIST, _constants2.ORDERED_LIST, _constants2.LINK, _constants2.IMAGE],
42
43
  insertContent,
43
44
  onContentChange,
44
45
  hiddenComment,
45
46
  hiddenUserInfo,
46
- toolMenus = ['text_style', _constants2.BLOCKQUOTE, _constants2.UNORDERED_LIST, _constants2.ORDERED_LIST, _constants2.LINK, _constants2.IMAGE],
47
47
  closePanel
48
48
  } = _ref;
49
49
  const commentWrapperRef = (0, _react.useRef)();
@@ -9,10 +9,6 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _basicSdk = require("../basic-sdk");
11
11
  var _errorBoundary = _interopRequireDefault(require("../components/error-boundary"));
12
- // import { I18nextProvider } from 'react-i18next';
13
-
14
- // import { getI18n } from '../_i18n';
15
-
16
12
  const SeafileCommentEditor = _ref => {
17
13
  let {
18
14
  // Provider
@@ -38,13 +34,8 @@ const SeafileCommentEditor = _ref => {
38
34
  settings,
39
35
  api
40
36
  } = _ref;
41
- const {
42
- lang
43
- } = settings || {};
44
37
  _basicSdk.context.init(settings, api);
45
- return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
46
- fallback: "loading"
47
- }, /*#__PURE__*/_react.default.createElement(_errorBoundary.default, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
38
+ return /*#__PURE__*/_react.default.createElement(_react.Suspense, null, /*#__PURE__*/_react.default.createElement(_errorBoundary.default, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
48
39
  type: type,
49
40
  className: className,
50
41
  pluginName: pluginName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.76",
3
+ "version": "0.0.1-alpha.77",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",