pb-sxp-ui 1.15.22-alpha.1 → 1.15.22-alpha.3

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
@@ -1260,7 +1260,8 @@
1260
1260
  multiPostTimeRef,
1261
1261
  refreshFeSession,
1262
1262
  getAccount,
1263
- accountSonsent
1263
+ accountSonsent,
1264
+ isDiyH5
1264
1265
  } }, isShowConsent ? (React.createElement(Consent$4, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
1265
1266
  rtcList,
1266
1267
  mutateLike: bffMutateLike,
@@ -1494,7 +1495,7 @@
1494
1495
  React.createElement(DataSourceProvider$1, { isSsr: isSsr, enable: enableDataSource }, children)));
1495
1496
  });
1496
1497
 
1497
- var index$2 = /*#__PURE__*/Object.freeze({
1498
+ var index$3 = /*#__PURE__*/Object.freeze({
1498
1499
  __proto__: null,
1499
1500
  EditorCore: EditorCore
1500
1501
  });
@@ -17675,9 +17676,9 @@ Made in Italy` })));
17675
17676
  };
17676
17677
  })();
17677
17678
 
17678
- const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon }) => {
17679
+ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon, loopPlay, swiperRef }, ref) => {
17679
17680
  const [isPauseVideo, setIsPauseVideo] = React.useState(false);
17680
- const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport } = useSxpDataSource();
17681
+ const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
17681
17682
  const videoStartTime = React.useRef(0);
17682
17683
  const [isLoadFinish, setIsLoadFinish] = React.useState(false);
17683
17684
  const { isActive } = useSwiperSlide();
@@ -17691,6 +17692,18 @@ Made in Italy` })));
17691
17692
  const initTimeRef = React.useRef();
17692
17693
  const loadedTimeRef = React.useRef();
17693
17694
  const isFirstPlayRef = React.useRef(true);
17695
+ const loopPlayRef = React.useRef(loopPlay);
17696
+ const scene = rec.video.scene;
17697
+ React.useImperativeHandle(ref, () => {
17698
+ return {
17699
+ setLoopPlay(v) {
17700
+ loopPlayRef.current = v;
17701
+ }
17702
+ };
17703
+ });
17704
+ React.useEffect(() => {
17705
+ loopPlayRef.current = loopPlay;
17706
+ }, [loopPlay]);
17694
17707
  const blur = React.useMemo(() => {
17695
17708
  return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2';
17696
17709
  }, [videoPostConfig]);
@@ -17778,12 +17791,15 @@ Made in Italy` })));
17778
17791
  const handleLoadedmetadata = React.useCallback(() => {
17779
17792
  if (!videoRef.current)
17780
17793
  return;
17794
+ if (isDiyH5) {
17795
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17796
+ }
17781
17797
  loadedTimeRef.current = new Date();
17782
17798
  handleStartPlay();
17783
17799
  handLoadeddata();
17784
17800
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
17785
17801
  const handleClickVideo = React.useCallback((type) => () => {
17786
- var _a, _b, _c, _d, _e;
17802
+ var _a, _b, _c, _d, _e, _f;
17787
17803
  if (!videoRef.current)
17788
17804
  return;
17789
17805
  if (!isLoadFinish)
@@ -17804,10 +17820,13 @@ Made in Italy` })));
17804
17820
  break;
17805
17821
  default:
17806
17822
  if (isPause) {
17807
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
17823
+ if (isDiyH5 && Math.round((_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.currentTime) >= (scene === null || scene === void 0 ? void 0 : scene.endTime)) {
17824
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17825
+ }
17826
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
17808
17827
  }
17809
17828
  else {
17810
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
17829
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
17811
17830
  }
17812
17831
  setIsPauseVideo(!isPause);
17813
17832
  break;
@@ -17819,6 +17838,7 @@ Made in Italy` })));
17819
17838
  return;
17820
17839
  if (activeIndex !== index)
17821
17840
  return;
17841
+ setIsPauseVideo(true);
17822
17842
  const item = data[index];
17823
17843
  const videoDuration = ((_b = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
17824
17844
  const videoCurrentTime = ((_d = (_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -17844,8 +17864,27 @@ Made in Italy` })));
17844
17864
  const handleWaiting = React.useCallback(() => {
17845
17865
  setWaiting(true);
17846
17866
  }, []);
17867
+ const handleTimeUpload = () => {
17868
+ if (!videoRef.current || !isDiyH5)
17869
+ return;
17870
+ setTimeout(() => {
17871
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17872
+ if (Math.round((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) >= ((_b = scene === null || scene === void 0 ? void 0 : scene.endTime) !== null && _b !== void 0 ? _b : 0)) {
17873
+ (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
17874
+ if (!loopPlayRef.current)
17875
+ return;
17876
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
17877
+ (_e = (_d = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _d === void 0 ? void 0 : _d.swiper) === null || _e === void 0 ? void 0 : _e.slideTo(0);
17878
+ }
17879
+ else {
17880
+ const i = (_g = (_f = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _f === void 0 ? void 0 : _f.swiper) === null || _g === void 0 ? void 0 : _g.activeIndex;
17881
+ (_j = (_h = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _h === void 0 ? void 0 : _h.swiper) === null || _j === void 0 ? void 0 : _j.slideTo(i + 1);
17882
+ }
17883
+ }
17884
+ });
17885
+ };
17847
17886
  React.useEffect(() => {
17848
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17887
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17849
17888
  if (!isActive)
17850
17889
  return;
17851
17890
  const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
@@ -17866,6 +17905,7 @@ Made in Italy` })));
17866
17905
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
17867
17906
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
17868
17907
  var _a;
17908
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17869
17909
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17870
17910
  });
17871
17911
  }
@@ -17882,8 +17922,9 @@ Made in Italy` })));
17882
17922
  (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
17883
17923
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
17884
17924
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
17925
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
17885
17926
  return () => {
17886
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17927
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17887
17928
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
17888
17929
  if (!isPause)
17889
17930
  handlePause();
@@ -17898,6 +17939,7 @@ Made in Italy` })));
17898
17939
  (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
17899
17940
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
17900
17941
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
17942
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
17901
17943
  };
17902
17944
  }, [isActive]);
17903
17945
  React.useEffect(() => {
@@ -17920,8 +17962,8 @@ Made in Italy` })));
17920
17962
  }
17921
17963
  }, [isActive, isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17922
17964
  /*
17923
- 打开/关闭hashtag暂停/播放视频
17924
- */
17965
+ 打开/关闭hashtag暂停/播放视频
17966
+ */
17925
17967
  React.useEffect(() => {
17926
17968
  var _a, _b, _c;
17927
17969
  if (!isActive || !(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -17949,7 +17991,8 @@ Made in Italy` })));
17949
17991
  };
17950
17992
  }, [handleClickVideo, isActive]);
17951
17993
  const renderPoster = React.useMemo(() => {
17952
- if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
17994
+ var _a, _b;
17995
+ if ((!((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) && !(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image)) || isLoadFinish) {
17953
17996
  return null;
17954
17997
  }
17955
17998
  return (React.createElement("img", { style: {
@@ -17959,8 +18002,8 @@ Made in Italy` })));
17959
18002
  width: '100%',
17960
18003
  height: '100%',
17961
18004
  objectFit: 'cover'
17962
- }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
17963
- }, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
18005
+ }, src: ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.cover) || (sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image), alt: 'placeholder image' }));
18006
+ }, [rec, isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
17964
18007
  const renderLoading = React.useMemo(() => {
17965
18008
  if (!waiting || !isLoadFinish)
17966
18009
  return;
@@ -18018,8 +18061,8 @@ Made in Italy` })));
18018
18061
  React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
18019
18062
  renderPoster,
18020
18063
  renderLoading,
18021
- isPauseVideo && React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' })))));
18022
- };
18064
+ isPauseVideo && (React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' }))))));
18065
+ });
18023
18066
  var VideoWidget$5 = React.memo(VideoWidget$4);
18024
18067
 
18025
18068
  const ToggleButton = ({ defaultValue, activeIcon, unactiveIcon, onChange, style }) => {
@@ -18482,7 +18525,7 @@ Made in Italy` })));
18482
18525
  * @Author: binruan@chatlabs.com
18483
18526
  * @Date: 2024-03-20 10:27:31
18484
18527
  * @LastEditors: binruan@chatlabs.com
18485
- * @LastEditTime: 2025-02-25 16:50:19
18528
+ * @LastEditTime: 2025-05-07 13:33:18
18486
18529
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18487
18530
  *
18488
18531
  */
@@ -18501,7 +18544,8 @@ Made in Italy` })));
18501
18544
  const [isReload, setIsReload] = React.useState(new Date().getTime());
18502
18545
  const skipLinkRef = React.useRef(false);
18503
18546
  const [pageNum, setPageNum] = React.useState(2);
18504
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession } = useSxpDataSource();
18547
+ const videoWidgetRef = React.useRef(null);
18548
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
18505
18549
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
18506
18550
  const isShowFingerTip = React.useMemo(() => {
18507
18551
  return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -18639,6 +18683,8 @@ Made in Italy` })));
18639
18683
  refreshFeSession
18640
18684
  ]);
18641
18685
  const handleSessionExpire = React.useCallback(lodash.debounce(() => {
18686
+ var _a;
18687
+ (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
18642
18688
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
18643
18689
  }, 1000), [handleSessionCompleted, refreshFeSession]);
18644
18690
  React.useEffect(() => {
@@ -18674,7 +18720,7 @@ Made in Italy` })));
18674
18720
  }, [minusHeight, containerHeight, tagHeight]);
18675
18721
  const visList = React.useMemo(() => {
18676
18722
  var _a;
18677
- const list = activeIndex === 0 && !waterFallData && !isEditor
18723
+ const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
18678
18724
  ? [(_a = data === null || data === void 0 ? void 0 : data[0]) !== null && _a !== void 0 ? _a : null]
18679
18725
  : data === null || data === void 0 ? void 0 : data.map((item, index) => {
18680
18726
  if (activeIndex === index || index - 1 === activeIndex || index + 1 === activeIndex) {
@@ -18686,8 +18732,8 @@ Made in Italy` })));
18686
18732
  });
18687
18733
  if (!(list === null || list === void 0 ? void 0 : list.length))
18688
18734
  return [];
18689
- return !waterFallData && !isNoMoreData ? list.concat([{ loading: true }]) : list;
18690
- }, [data, activeIndex, waterFallData, isEditor, isNoMoreData]);
18735
+ return !waterFallData && !isNoMoreData && !isDiyH5 ? list.concat([{ loading: true }]) : list;
18736
+ }, [data, activeIndex, waterFallData, isEditor, isNoMoreData, isDiyH5]);
18691
18737
  const renderLogo = React.useMemo(() => {
18692
18738
  var _a, _b, _c, _d;
18693
18739
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
@@ -18713,7 +18759,7 @@ Made in Italy` })));
18713
18759
  return (React.createElement(MultiPosts$2, Object.assign({ recData: data === null || data === void 0 ? void 0 : data[1] }, (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props, (_f = (_e = (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.item) === null || _f === void 0 ? void 0 : _f.event)));
18714
18760
  }
18715
18761
  if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
18716
- return (React.createElement(VideoWidget$5, { 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 }));
18762
+ return (React.createElement(VideoWidget$5, Object.assign({ key: isReload }, (activeIndex === index && { ref: videoWidgetRef }), { 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, loopPlay: true, swiperRef: swiperRef })));
18717
18763
  }
18718
18764
  if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
18719
18765
  return (React.createElement(PictureGroup$5, { 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, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
@@ -19062,7 +19108,7 @@ Made in Italy` })));
19062
19108
  return;
19063
19109
  // 处理上滑下滑事件
19064
19110
  handleScrollEvent(swiper);
19065
- if (waterFallData || isEditor)
19111
+ if (waterFallData || isEditor || isDiyH5)
19066
19112
  return;
19067
19113
  if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
19068
19114
  if (!isLoadMore) {
@@ -19448,7 +19494,7 @@ Made in Italy` })));
19448
19494
  return renderView(rec, index);
19449
19495
  })));
19450
19496
  };
19451
- var index$1 = React.memo(DiyPortalPreview);
19497
+ var index$2 = React.memo(DiyPortalPreview);
19452
19498
 
19453
19499
  /*
19454
19500
  * @Author: binruan@chatlabs.com
@@ -19709,7 +19755,7 @@ Made in Italy` })));
19709
19755
  * @Author: binruan@chatlabs.com
19710
19756
  * @Date: 2025-03-25 13:54:27
19711
19757
  * @LastEditors: binruan@chatlabs.com
19712
- * @LastEditTime: 2025-04-28 14:08:59
19758
+ * @LastEditTime: 2025-05-06 18:10:44
19713
19759
  * @FilePath: \pb-sxp-ui\src\core\components\DiyStoryPreview\index.tsx
19714
19760
  *
19715
19761
  */
@@ -19941,7 +19987,7 @@ Made in Italy` })));
19941
19987
  return renderView(rec, index);
19942
19988
  }))));
19943
19989
  });
19944
- var DiyStoryPreview$1 = React.memo(DiyStoryPreview);
19990
+ var index$1 = React.memo(DiyStoryPreview);
19945
19991
 
19946
19992
  /*
19947
19993
  * @Author: binruan@chatlabs.com
@@ -20041,7 +20087,7 @@ Made in Italy` })));
20041
20087
  * @Author: binruan@chatlabs.com
20042
20088
  * @Date: 2024-01-15 19:03:09
20043
20089
  * @LastEditors: binruan@chatlabs.com
20044
- * @LastEditTime: 2025-04-28 14:33:34
20090
+ * @LastEditTime: 2025-05-06 15:49:04
20045
20091
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
20046
20092
  *
20047
20093
  */
@@ -20069,9 +20115,9 @@ Made in Italy` })));
20069
20115
  const [channel, setChannel] = React.useState();
20070
20116
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: _schema, utmVal: channel || utmVal },
20071
20117
  React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_c = (_b = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _b === void 0 ? void 0 : _b.personalized_recommend) !== null && _c !== void 0 ? _c : maxSize, defaultSize: (_e = (_d = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _d === void 0 ? void 0 : _d.default_recommend) !== null && _e !== void 0 ? _e : defaultSize, hashTagSize: (_g = (_f = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _f === void 0 ? void 0 : _f.hash_tag_size) !== null && _g !== void 0 ? _g : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, utmParameter: data === null || data === void 0 ? void 0 : data.utm_parameter, data: data, dataList: dataList, isDiyH5: isDiyH5, onUpdateSchema: (d) => setSchema(d), onUpdateChannel: (d) => setChannel(d), render: ({ rtcList, tagList, pageData }) => {
20072
- var _a, _b;
20118
+ var _a;
20073
20119
  return (React.createElement(React.Fragment, null,
20074
- isDiyH5 ? (React.createElement(DiyStoryPreview$1, Object.assign({ defaultData: data }, (_a = pageData === null || pageData === void 0 ? void 0 : pageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, containerHeight: window === null || window === void 0 ? void 0 : window.innerHeight, pointerEvents: 'all', loopPlay: true }))) : (React.createElement(SxpPageRender$1, Object.assign({ defaultData: data }, (_b = pageData === null || pageData === void 0 ? void 0 : pageData.data) === null || _b === void 0 ? void 0 : _b.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER }))),
20120
+ React.createElement(SxpPageRender$1, Object.assign({ defaultData: data }, (_a = pageData === null || pageData === void 0 ? void 0 : pageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER })),
20075
20121
  React.createElement(Popup, null)));
20076
20122
  } })));
20077
20123
  };
@@ -20085,14 +20131,14 @@ Made in Italy` })));
20085
20131
  * @FilePath: \pb-sxp-ui\src\index.ts
20086
20132
  */
20087
20133
 
20088
- exports.DiyPortalPreview = index$1;
20089
- exports.DiyStoryPreview = DiyStoryPreview$1;
20134
+ exports.DiyPortalPreview = index$2;
20135
+ exports.DiyStoryPreview = index$1;
20090
20136
  exports.EditorDataProvider = EditorDataProvider;
20091
20137
  exports.Modal = Modal$1;
20092
20138
  exports.SxpDataSourceProvider = SxpDataSourceProvider$1;
20093
20139
  exports.SxpPageCore = index;
20094
20140
  exports.SxpPageRender = SxpPageRender$1;
20095
- exports.core = index$2;
20141
+ exports.core = index$3;
20096
20142
  exports.default = Pagebuilder;
20097
20143
  exports.materials = _materials_;
20098
20144
  exports.useEditorDataProvider = useEditorDataProvider;