pb-sxp-ui 1.0.12 → 1.0.13

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.
package/dist/index.cjs CHANGED
@@ -11592,7 +11592,7 @@ const WaterfallFlowItem = (props) => {
11592
11592
  };
11593
11593
  }, [src, showVideo]);
11594
11594
  const handleClickToDetail = () => {
11595
- reportTagsView(index);
11595
+ reportTagsView();
11596
11596
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(list);
11597
11597
  setTimeout(() => {
11598
11598
  var _a;
@@ -11700,7 +11700,7 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
11700
11700
  * @Author: binruan@chatlabs.com
11701
11701
  * @Date: 2024-01-10 10:58:24
11702
11702
  * @LastEditors: binruan@chatlabs.com
11703
- * @LastEditTime: 2024-04-15 16:48:54
11703
+ * @LastEditTime: 2024-04-15 17:57:59
11704
11704
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
11705
11705
  *
11706
11706
  */
@@ -11727,7 +11727,7 @@ const WaterFall = (props) => {
11727
11727
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
11728
11728
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
11729
11729
  }
11730
- reportTagsView(cacheActiveIndex || 0);
11730
+ reportTagsView();
11731
11731
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
11732
11732
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
11733
11733
  setTimeout(() => {
@@ -11744,7 +11744,7 @@ const WaterFall = (props) => {
11744
11744
  setRecData(waterFallData);
11745
11745
  }
11746
11746
  }, [waterFallData]);
11747
- const reportTagsView = React.useCallback((index) => {
11747
+ const reportTagsView = React.useCallback(() => {
11748
11748
  var _a, _b, _c, _d, _e, _f;
11749
11749
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
11750
11750
  if (!rec)
@@ -11762,7 +11762,7 @@ const WaterFall = (props) => {
11762
11762
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
11763
11763
  eventInfo: {
11764
11764
  relatedContentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
11765
- position: index + '',
11765
+ position: cacheActiveIndex + '',
11766
11766
  contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
11767
11767
  traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
11768
11768
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
@@ -11773,7 +11773,7 @@ const WaterFall = (props) => {
11773
11773
  eventDescription: 'User click tags view contents'
11774
11774
  }
11775
11775
  });
11776
- }, [recData, bffEventReport, viewTime, isFromHashtag]);
11776
+ }, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
11777
11777
  React.useEffect(() => {
11778
11778
  if (openHashtag) {
11779
11779
  setViewTime(new Date());
@@ -12237,7 +12237,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
12237
12237
  * @Author: binruan@chatlabs.com
12238
12238
  * @Date: 2024-03-20 10:27:31
12239
12239
  * @LastEditors: binruan@chatlabs.com
12240
- * @LastEditTime: 2024-04-08 18:44:58
12240
+ * @LastEditTime: 2024-04-15 18:10:26
12241
12241
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12242
12242
  *
12243
12243
  */
@@ -12290,7 +12290,7 @@ const Picture = (props) => {
12290
12290
  * @Author: lewinlu@chatlabs.com
12291
12291
  * @Date: 2024-01-03 14:39:09
12292
12292
  * @LastEditors: binruan@chatlabs.com
12293
- * @LastEditTime: 2024-03-25 15:08:11
12293
+ * @LastEditTime: 2024-04-15 18:08:25
12294
12294
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
12295
12295
  */
12296
12296
  const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent }) => {
@@ -12310,9 +12310,9 @@ const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd
12310
12310
  setIsLoad(true);
12311
12311
  }
12312
12312
  }, [rec, isActive, onReportViewImageEnd, openHashtag, index, onViewImageStartEvent, isLoad]);
12313
- if (!isActive) {
12314
- return React.createElement("img", { src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, style: { width, height, objectFit: 'cover' } });
12315
- }
12313
+ // if (!isActive) {
12314
+ // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
12315
+ // }
12316
12316
  return (React.createElement(Swiper, { defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: { clickable: true, bulletActiveClass: 'swipe-item-active-bullet' }, height: height, loop: true, autoplay: { delay: 3000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url) => {
12317
12317
  return (React.createElement(SwiperSlide, { key: url },
12318
12318
  React.createElement(Picture, { src: url, width: width, height: height })));