@seafile/comment-editor 0.0.15 → 0.0.17

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.
@@ -18,7 +18,7 @@ const getI18n = settings => {
18
18
  mediaUrl
19
19
  } = settings;
20
20
  if (mediaUrl) {
21
- loadPath = `${mediaUrl}/locales/{{ lng }}/{{ ns }}.json`;
21
+ loadPath = `${mediaUrl}locales/{{ lng }}/{{ ns }}.json`;
22
22
  }
23
23
  if (propsLang) {
24
24
  lang = propsLang;
@@ -38,11 +38,6 @@ class ImagePreviewer extends _react.default.Component {
38
38
  imageIndex: (prevState.imageIndex + 1) % this.images.length
39
39
  }));
40
40
  });
41
- (0, _defineProperty2.default)(this, "setImageIndex", index => {
42
- this.setState({
43
- imageIndex: index
44
- });
45
- });
46
41
  const {
47
42
  editor,
48
43
  imageUrl
@@ -73,9 +68,6 @@ class ImagePreviewer extends _react.default.Component {
73
68
  className: "flex-shrink-0"
74
69
  }, "(", imageIndex + 1, "/", this.images.length, ")"));
75
70
  return /*#__PURE__*/_react.default.createElement(_reactImageLightbox.default, {
76
- imageItems: this.images,
77
- currentIndex: imageIndex,
78
- setImageIndex: index => this.setImageIndex(index),
79
71
  wrapperClassName: "sf-editor-image-previewer",
80
72
  imageTitle: imageTitleEl,
81
73
  mainSrc: mainSrc,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",
7
7
  "dependencies": {
8
- "@seafile/react-image-lightbox": "^5.0.0",
8
+ "@seafile/react-image-lightbox": "4.0.2",
9
9
  "@seafile/slate": "0.91.8",
10
10
  "@seafile/slate-history": "0.86.2",
11
11
  "@seafile/slate-hyperscript": "0.81.7",
@@ -14,6 +14,7 @@
14
14
  "classnames": "2.3.2",
15
15
  "copy-to-clipboard": "^3.3.3",
16
16
  "deep-copy": "1.4.2",
17
+ "dtable-ui-component": "^6.0.15",
17
18
  "is-hotkey": "0.2.0",
18
19
  "is-url": "^1.2.4",
19
20
  "react-transition-group": "4.4.5",