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/index.cjs CHANGED
@@ -14592,7 +14592,7 @@ var interactionRender = [
14592
14592
  * @Author: binruan@chatlabs.com
14593
14593
  * @Date: 2024-07-24 14:58:40
14594
14594
  * @LastEditors: binruan@chatlabs.com
14595
- * @LastEditTime: 2024-08-02 17:09:37
14595
+ * @LastEditTime: 2024-08-02 17:45:51
14596
14596
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\material.tsx
14597
14597
  *
14598
14598
  */
@@ -14626,7 +14626,8 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
14626
14626
  title: {
14627
14627
  fontSize: 14,
14628
14628
  color: '#000',
14629
- textAlign: 'left'
14629
+ textAlign: 'left',
14630
+ lineHeight: 2.6
14630
14631
  },
14631
14632
  ctaTitle: {
14632
14633
  width: 108,
@@ -15534,7 +15535,7 @@ var Tagbar$1 = React.memo(Tagbar);
15534
15535
  * @Author: binruan@chatlabs.com
15535
15536
  * @Date: 2024-01-15 19:03:09
15536
15537
  * @LastEditors: binruan@chatlabs.com
15537
- * @LastEditTime: 2024-08-02 10:50:56
15538
+ * @LastEditTime: 2024-08-02 18:34:27
15538
15539
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15539
15540
  *
15540
15541
  */
@@ -15547,7 +15548,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15547
15548
  const viewTime = React.useRef();
15548
15549
  const [isLoadMore, setIsLoadMore] = React.useState(false);
15549
15550
  const [isShowMore, setIsShowMore] = React.useState(false);
15550
- const [isReload, setIsReload] = React.useState(false);
15551
+ const [isReload, setIsReload] = React.useState(new Date().getTime());
15551
15552
  const skipLinkRef = React.useRef(false);
15552
15553
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview } = useSxpDataSource();
15553
15554
  const { backMainFeed } = useEventReport();
@@ -15643,7 +15644,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15643
15644
  }
15644
15645
  else if (document.visibilityState === 'visible') {
15645
15646
  if (skipLinkRef.current === true) {
15646
- setIsReload(true);
15647
+ setIsReload(new Date().getTime());
15648
+ skipLinkRef.current = false;
15647
15649
  }
15648
15650
  // 页面可见时触发,注意页面初始化时不会触发
15649
15651
  handleH5EnterLink();
@@ -15702,7 +15704,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15702
15704
  const renderContent = React.useCallback((rec, index) => {
15703
15705
  var _a, _b, _c, _d;
15704
15706
  if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
15705
- 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 }));
15707
+ 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 }));
15706
15708
  }
15707
15709
  if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
15708
15710
  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 }));
@@ -15728,7 +15730,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15728
15730
  viewTime,
15729
15731
  tipText,
15730
15732
  resolver,
15731
- schema
15733
+ schema,
15734
+ isReload
15732
15735
  ]);
15733
15736
  const onExpandableChange = React.useCallback((v) => {
15734
15737
  setIsShowMore(v);