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.js CHANGED
@@ -14570,7 +14570,7 @@ var interactionRender = [
14570
14570
  * @Author: binruan@chatlabs.com
14571
14571
  * @Date: 2024-07-24 14:58:40
14572
14572
  * @LastEditors: binruan@chatlabs.com
14573
- * @LastEditTime: 2024-08-02 17:09:37
14573
+ * @LastEditTime: 2024-08-02 17:45:51
14574
14574
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\material.tsx
14575
14575
  *
14576
14576
  */
@@ -14604,7 +14604,8 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
14604
14604
  title: {
14605
14605
  fontSize: 14,
14606
14606
  color: '#000',
14607
- textAlign: 'left'
14607
+ textAlign: 'left',
14608
+ lineHeight: 2.6
14608
14609
  },
14609
14610
  ctaTitle: {
14610
14611
  width: 108,
@@ -15512,7 +15513,7 @@ var Tagbar$1 = memo(Tagbar);
15512
15513
  * @Author: binruan@chatlabs.com
15513
15514
  * @Date: 2024-01-15 19:03:09
15514
15515
  * @LastEditors: binruan@chatlabs.com
15515
- * @LastEditTime: 2024-08-02 10:50:56
15516
+ * @LastEditTime: 2024-08-02 18:34:27
15516
15517
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15517
15518
  *
15518
15519
  */
@@ -15525,7 +15526,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15525
15526
  const viewTime = useRef();
15526
15527
  const [isLoadMore, setIsLoadMore] = useState(false);
15527
15528
  const [isShowMore, setIsShowMore] = useState(false);
15528
- const [isReload, setIsReload] = useState(false);
15529
+ const [isReload, setIsReload] = useState(new Date().getTime());
15529
15530
  const skipLinkRef = useRef(false);
15530
15531
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview } = useSxpDataSource();
15531
15532
  const { backMainFeed } = useEventReport();
@@ -15621,7 +15622,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15621
15622
  }
15622
15623
  else if (document.visibilityState === 'visible') {
15623
15624
  if (skipLinkRef.current === true) {
15624
- setIsReload(true);
15625
+ setIsReload(new Date().getTime());
15626
+ skipLinkRef.current = false;
15625
15627
  }
15626
15628
  // 页面可见时触发,注意页面初始化时不会触发
15627
15629
  handleH5EnterLink();
@@ -15680,7 +15682,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15680
15682
  const renderContent = useCallback((rec, index) => {
15681
15683
  var _a, _b, _c, _d;
15682
15684
  if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
15683
- 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 }));
15685
+ 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 }));
15684
15686
  }
15685
15687
  if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
15686
15688
  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 }));
@@ -15706,7 +15708,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15706
15708
  viewTime,
15707
15709
  tipText,
15708
15710
  resolver,
15709
- schema
15711
+ schema,
15712
+ isReload
15710
15713
  ]);
15711
15714
  const onExpandableChange = useCallback((v) => {
15712
15715
  setIsShowMore(v);