pb-sxp-ui 1.2.8 → 1.2.9

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
@@ -14585,7 +14585,7 @@ Made in Italy` })));
14585
14585
  * @Author: binruan@chatlabs.com
14586
14586
  * @Date: 2024-07-24 14:58:40
14587
14587
  * @LastEditors: binruan@chatlabs.com
14588
- * @LastEditTime: 2024-08-02 17:09:37
14588
+ * @LastEditTime: 2024-08-02 17:45:51
14589
14589
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\material.tsx
14590
14590
  *
14591
14591
  */
@@ -14619,7 +14619,8 @@ Made in Italy` })));
14619
14619
  title: {
14620
14620
  fontSize: 14,
14621
14621
  color: '#000',
14622
- textAlign: 'left'
14622
+ textAlign: 'left',
14623
+ lineHeight: 2.6
14623
14624
  },
14624
14625
  ctaTitle: {
14625
14626
  width: 108,
@@ -15527,7 +15528,7 @@ Made in Italy` })));
15527
15528
  * @Author: binruan@chatlabs.com
15528
15529
  * @Date: 2024-01-15 19:03:09
15529
15530
  * @LastEditors: binruan@chatlabs.com
15530
- * @LastEditTime: 2024-08-02 10:50:56
15531
+ * @LastEditTime: 2024-08-02 18:34:27
15531
15532
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15532
15533
  *
15533
15534
  */
@@ -15540,7 +15541,7 @@ Made in Italy` })));
15540
15541
  const viewTime = React.useRef();
15541
15542
  const [isLoadMore, setIsLoadMore] = React.useState(false);
15542
15543
  const [isShowMore, setIsShowMore] = React.useState(false);
15543
- const [isReload, setIsReload] = React.useState(false);
15544
+ const [isReload, setIsReload] = React.useState(new Date().getTime());
15544
15545
  const skipLinkRef = React.useRef(false);
15545
15546
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview } = useSxpDataSource();
15546
15547
  const { backMainFeed } = useEventReport();
@@ -15636,7 +15637,8 @@ Made in Italy` })));
15636
15637
  }
15637
15638
  else if (document.visibilityState === 'visible') {
15638
15639
  if (skipLinkRef.current === true) {
15639
- setIsReload(true);
15640
+ setIsReload(new Date().getTime());
15641
+ skipLinkRef.current = false;
15640
15642
  }
15641
15643
  // 页面可见时触发,注意页面初始化时不会触发
15642
15644
  handleH5EnterLink();
@@ -15695,7 +15697,7 @@ Made in Italy` })));
15695
15697
  const renderContent = React.useCallback((rec, index) => {
15696
15698
  var _a, _b, _c, _d;
15697
15699
  if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
15698
- return (React.createElement(VideoWidget$3, { rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoPlayIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPlayIcon }));
15700
+ return (React.createElement(VideoWidget$3, { key: isReload, rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoPlayIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPlayIcon }));
15699
15701
  }
15700
15702
  if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
15701
15703
  return (React.createElement(PictureGroup$3, { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onReportViewImageEnd: handleReportViewImageEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
@@ -15721,7 +15723,8 @@ Made in Italy` })));
15721
15723
  viewTime,
15722
15724
  tipText,
15723
15725
  resolver,
15724
- schema
15726
+ schema,
15727
+ isReload
15725
15728
  ]);
15726
15729
  const onExpandableChange = React.useCallback((v) => {
15727
15730
  setIsShowMore(v);