dtable-ui-component 6.0.111-aix.4 → 6.0.111-aix.8

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.
@@ -44,17 +44,17 @@ function ImagePreviewerLightbox(props) {
44
44
  if (server && dtableUuid && workspaceID && (0, _url.isDigitalSignsUrl)(src)) {
45
45
  return {
46
46
  name,
47
- thumbnail: src
47
+ thumbnail: (0, _url.generateCurrentBaseImageUrl)({
48
+ server,
49
+ workspaceID,
50
+ dtableUuid,
51
+ partUrl: src
52
+ })
48
53
  };
49
54
  }
50
55
  return {
51
56
  name: name || '',
52
- thumbnail: (0, _url.getImageThumbnailUrl)(src, {
53
- server,
54
- dtableUuid,
55
- workspaceID,
56
- size: 1024
57
- })
57
+ thumbnail: src
58
58
  };
59
59
  });
60
60
  const imagesLength = imageSrcList.length;
@@ -69,22 +69,12 @@ function ImagePreviewerLightbox(props) {
69
69
  setCurrentImageIndex(imageIndex);
70
70
  }, [imageIndex]);
71
71
  const canRotateImage = onRotateImage && !readOnly && !['gif', 'heic', 'heif'].includes((0, _url.getFileSuffix)(URL)) && (0, _url.isInternalImg)(URL, server);
72
- const imageTitleDOM = props.imageTitle || /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
73
- className: "d-flex",
74
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
75
- className: "text-truncate",
76
- children: imageName || ''
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
78
- className: "flex-shrink-0 pl-1",
79
- children: ["(", currentImageIndex + 1, "/", imagesLength, ")"]
80
- })]
81
- });
82
72
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageLightbox.default, {
83
73
  imageItems: imageSrcList,
84
74
  currentIndex: currentImageIndex,
85
75
  setImageIndex: index => setCurrentImageIndex(index),
86
76
  wrapperClassName: (0, _classnames.default)('dtable-ui-component', className),
87
- imageTitle: imageTitleDOM,
77
+ imageTitle: `${imageName} (${imageIndex + 1}/${imagesLength})`,
88
78
  mainSrc: mainSrc,
89
79
  nextSrc: nextImg.thumbnail || nextImg.src,
90
80
  prevSrc: prevImg.thumbnail || prevImg.src,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.111aix.4",
3
+ "version": "6.0.111aix.8",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",