dtable-ui-component 7.0.0-iam.2 → 7.0.0-iam.4

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.
@@ -15,6 +15,7 @@ require("@seafile/react-image-lightbox/style.css");
15
15
  require("./index.css");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  function ImagePreviewerLightbox(props) {
18
+ var _imageSrcList, _imageSrcList2;
18
19
  const imageItems = props.imageItems,
19
20
  imageIndex = props.imageIndex,
20
21
  readOnly = props.readOnly,
@@ -106,8 +107,8 @@ function ImagePreviewerLightbox(props) {
106
107
  wrapperClassName: (0, _classnames.default)('dtable-ui-component', className),
107
108
  imageTitle: imageTitleDOM,
108
109
  mainSrc: mainSrc,
109
- nextSrc: imageSrcList[(currentImageIndex + 1) % imagesLength] ? imageSrcList[(currentImageIndex + 1) % imagesLength].thumbnail : '',
110
- prevSrc: imageSrcList[(currentImageIndex + imagesLength - 1) % imagesLength] ? imageSrcList[(currentImageIndex + imagesLength - 1) % imagesLength].thumbnail : '',
110
+ nextSrc: ((_imageSrcList = imageSrcList[(currentImageIndex + 1) % imagesLength]) === null || _imageSrcList === void 0 ? void 0 : _imageSrcList.thumbnail) || '',
111
+ prevSrc: ((_imageSrcList2 = imageSrcList[(currentImageIndex + imagesLength - 1) % imagesLength]) === null || _imageSrcList2 === void 0 ? void 0 : _imageSrcList2.thumbnail) || '',
111
112
  imagePadding: 70,
112
113
  viewOriginalImageLabel: (0, _lang.getLocale)('View_original_image'),
113
114
  enableRotate: canRotateImage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.0iam.2",
3
+ "version": "7.0.0iam.4",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",