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.js CHANGED
@@ -11569,7 +11569,7 @@ const WaterfallFlowItem = (props) => {
11569
11569
  };
11570
11570
  }, [src, showVideo]);
11571
11571
  const handleClickToDetail = () => {
11572
- reportTagsView(index);
11572
+ reportTagsView();
11573
11573
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(list);
11574
11574
  setTimeout(() => {
11575
11575
  var _a;
@@ -11677,7 +11677,7 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
11677
11677
  * @Author: binruan@chatlabs.com
11678
11678
  * @Date: 2024-01-10 10:58:24
11679
11679
  * @LastEditors: binruan@chatlabs.com
11680
- * @LastEditTime: 2024-04-15 16:48:54
11680
+ * @LastEditTime: 2024-04-15 17:57:59
11681
11681
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
11682
11682
  *
11683
11683
  */
@@ -11704,7 +11704,7 @@ const WaterFall = (props) => {
11704
11704
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
11705
11705
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
11706
11706
  }
11707
- reportTagsView(cacheActiveIndex || 0);
11707
+ reportTagsView();
11708
11708
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
11709
11709
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
11710
11710
  setTimeout(() => {
@@ -11721,7 +11721,7 @@ const WaterFall = (props) => {
11721
11721
  setRecData(waterFallData);
11722
11722
  }
11723
11723
  }, [waterFallData]);
11724
- const reportTagsView = useCallback((index) => {
11724
+ const reportTagsView = useCallback(() => {
11725
11725
  var _a, _b, _c, _d, _e, _f;
11726
11726
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
11727
11727
  if (!rec)
@@ -11739,7 +11739,7 @@ const WaterFall = (props) => {
11739
11739
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
11740
11740
  eventInfo: {
11741
11741
  relatedContentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
11742
- position: index + '',
11742
+ position: cacheActiveIndex + '',
11743
11743
  contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
11744
11744
  traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
11745
11745
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
@@ -11750,7 +11750,7 @@ const WaterFall = (props) => {
11750
11750
  eventDescription: 'User click tags view contents'
11751
11751
  }
11752
11752
  });
11753
- }, [recData, bffEventReport, viewTime, isFromHashtag]);
11753
+ }, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
11754
11754
  useEffect(() => {
11755
11755
  if (openHashtag) {
11756
11756
  setViewTime(new Date());
@@ -12214,7 +12214,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
12214
12214
  * @Author: binruan@chatlabs.com
12215
12215
  * @Date: 2024-03-20 10:27:31
12216
12216
  * @LastEditors: binruan@chatlabs.com
12217
- * @LastEditTime: 2024-04-08 18:44:58
12217
+ * @LastEditTime: 2024-04-15 18:10:26
12218
12218
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12219
12219
  *
12220
12220
  */
@@ -12267,7 +12267,7 @@ const Picture = (props) => {
12267
12267
  * @Author: lewinlu@chatlabs.com
12268
12268
  * @Date: 2024-01-03 14:39:09
12269
12269
  * @LastEditors: binruan@chatlabs.com
12270
- * @LastEditTime: 2024-03-25 15:08:11
12270
+ * @LastEditTime: 2024-04-15 18:08:25
12271
12271
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
12272
12272
  */
12273
12273
  const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent }) => {
@@ -12287,9 +12287,9 @@ const PictureGroup = ({ imgUrls, width, height, rec, index, onReportViewImageEnd
12287
12287
  setIsLoad(true);
12288
12288
  }
12289
12289
  }, [rec, isActive, onReportViewImageEnd, openHashtag, index, onViewImageStartEvent, isLoad]);
12290
- if (!isActive) {
12291
- return React.createElement("img", { src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, style: { width, height, objectFit: 'cover' } });
12292
- }
12290
+ // if (!isActive) {
12291
+ // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
12292
+ // }
12293
12293
  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) => {
12294
12294
  return (React.createElement(SwiperSlide, { key: url },
12295
12295
  React.createElement(Picture, { src: url, width: width, height: height })));