pb-sxp-ui 1.0.11 → 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/pb-ui.js CHANGED
@@ -11584,7 +11584,7 @@ Made in Italy` })));
11584
11584
  };
11585
11585
  }, [src, showVideo]);
11586
11586
  const handleClickToDetail = () => {
11587
- reportTagsView(index);
11587
+ reportTagsView();
11588
11588
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(list);
11589
11589
  setTimeout(() => {
11590
11590
  var _a;
@@ -11692,7 +11692,7 @@ Made in Italy` })));
11692
11692
  * @Author: binruan@chatlabs.com
11693
11693
  * @Date: 2024-01-10 10:58:24
11694
11694
  * @LastEditors: binruan@chatlabs.com
11695
- * @LastEditTime: 2024-04-15 16:48:54
11695
+ * @LastEditTime: 2024-04-15 17:57:59
11696
11696
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
11697
11697
  *
11698
11698
  */
@@ -11719,7 +11719,7 @@ Made in Italy` })));
11719
11719
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
11720
11720
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
11721
11721
  }
11722
- reportTagsView(cacheActiveIndex || 0);
11722
+ reportTagsView();
11723
11723
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
11724
11724
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
11725
11725
  setTimeout(() => {
@@ -11736,7 +11736,7 @@ Made in Italy` })));
11736
11736
  setRecData(waterFallData);
11737
11737
  }
11738
11738
  }, [waterFallData]);
11739
- const reportTagsView = React.useCallback((index) => {
11739
+ const reportTagsView = React.useCallback(() => {
11740
11740
  var _a, _b, _c, _d, _e, _f;
11741
11741
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
11742
11742
  if (!rec)
@@ -11754,7 +11754,7 @@ Made in Italy` })));
11754
11754
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
11755
11755
  eventInfo: {
11756
11756
  relatedContentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
11757
- position: index + '',
11757
+ position: cacheActiveIndex + '',
11758
11758
  contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
11759
11759
  traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
11760
11760
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
@@ -11765,7 +11765,7 @@ Made in Italy` })));
11765
11765
  eventDescription: 'User click tags view contents'
11766
11766
  }
11767
11767
  });
11768
- }, [recData, bffEventReport, viewTime, isFromHashtag]);
11768
+ }, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
11769
11769
  React.useEffect(() => {
11770
11770
  if (openHashtag) {
11771
11771
  setViewTime(new Date());
@@ -12229,7 +12229,7 @@ Made in Italy` })));
12229
12229
  * @Author: binruan@chatlabs.com
12230
12230
  * @Date: 2024-03-20 10:27:31
12231
12231
  * @LastEditors: binruan@chatlabs.com
12232
- * @LastEditTime: 2024-04-08 18:44:58
12232
+ * @LastEditTime: 2024-04-15 18:10:26
12233
12233
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12234
12234
  *
12235
12235
  */
@@ -12282,7 +12282,7 @@ Made in Italy` })));
12282
12282
  * @Author: lewinlu@chatlabs.com
12283
12283
  * @Date: 2024-01-03 14:39:09
12284
12284
  * @LastEditors: binruan@chatlabs.com
12285
- * @LastEditTime: 2024-03-25 15:08:11
12285
+ * @LastEditTime: 2024-04-15 18:08:25
12286
12286
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
12287
12287
  */
12288
12288
  const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent }) => {
@@ -12302,9 +12302,9 @@ Made in Italy` })));
12302
12302
  setIsLoad(true);
12303
12303
  }
12304
12304
  }, [rec, isActive, onReportViewImageEnd, openHashtag, index, onViewImageStartEvent, isLoad]);
12305
- if (!isActive) {
12306
- return React.createElement("img", { src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, style: { width, height, objectFit: 'cover' } });
12307
- }
12305
+ // if (!isActive) {
12306
+ // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
12307
+ // }
12308
12308
  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) => {
12309
12309
  return (React.createElement(SwiperSlide, { key: url },
12310
12310
  React.createElement(Picture, { src: url, width: width, height: height })));
@@ -12489,7 +12489,7 @@ Made in Italy` })));
12489
12489
  * @Author: binruan@chatlabs.com
12490
12490
  * @Date: 2024-01-15 19:03:09
12491
12491
  * @LastEditors: binruan@chatlabs.com
12492
- * @LastEditTime: 2024-04-15 16:41:07
12492
+ * @LastEditTime: 2024-04-15 17:07:42
12493
12493
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12494
12494
  *
12495
12495
  */
@@ -12709,7 +12709,7 @@ Made in Italy` })));
12709
12709
  imageEndTime: `${endTime}`,
12710
12710
  playDuration: `${duration}`,
12711
12711
  contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
12712
- position: activeIndex,
12712
+ position: activeIndex + '',
12713
12713
  contentFormat: 'image',
12714
12714
  traceInfo: item.video.traceInfo
12715
12715
  }
@@ -12777,7 +12777,7 @@ Made in Italy` })));
12777
12777
  contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
12778
12778
  imageStartTime: `${startTime}`,
12779
12779
  contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
12780
- position: activeIndex,
12780
+ position: activeIndex + '',
12781
12781
  contentFormat: 'image',
12782
12782
  traceInfo: item.video.traceInfo
12783
12783
  }