pb-sxp-ui 1.15.22-alpha.1 → 1.15.22-alpha.2
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 +70 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +68 -24
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +70 -26
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyStoryPreview/index.js +0 -178
- package/es/core/components/SxpPageCore/index.js +2 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.d.ts +6 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +52 -12
- package/es/core/components/SxpPageRender/index.js +6 -3
- package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
- package/es/core/context/SxpDataSourceProvider.js +2 -1
- package/lib/core/components/DiyStoryPreview/index.js +0 -178
- package/lib/core/components/SxpPageCore/index.js +2 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.d.ts +6 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +51 -11
- package/lib/core/components/SxpPageRender/index.js +6 -3
- package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
- package/lib/core/context/SxpDataSourceProvider.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1245,7 +1245,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1245
1245
|
multiPostTimeRef,
|
1246
1246
|
refreshFeSession,
|
1247
1247
|
getAccount,
|
1248
|
-
accountSonsent
|
1248
|
+
accountSonsent,
|
1249
|
+
isDiyH5
|
1249
1250
|
} }, 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({
|
1250
1251
|
rtcList,
|
1251
1252
|
mutateLike: bffMutateLike,
|
@@ -1479,7 +1480,7 @@ const EditorCore = forwardRef(({ children, resolver, isSsr, schema, enableDataSo
|
|
1479
1480
|
React.createElement(DataSourceProvider$1, { isSsr: isSsr, enable: enableDataSource }, children)));
|
1480
1481
|
});
|
1481
1482
|
|
1482
|
-
var index$
|
1483
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
1483
1484
|
__proto__: null,
|
1484
1485
|
EditorCore: EditorCore
|
1485
1486
|
});
|
@@ -17660,9 +17661,9 @@ const mountVideoPlayerAtNode = (() => {
|
|
17660
17661
|
};
|
17661
17662
|
})();
|
17662
17663
|
|
17663
|
-
const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon }) => {
|
17664
|
+
const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon, loopPlay, swiperRef }, ref) => {
|
17664
17665
|
const [isPauseVideo, setIsPauseVideo] = useState(false);
|
17665
|
-
const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport } = useSxpDataSource();
|
17666
|
+
const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
|
17666
17667
|
const videoStartTime = useRef(0);
|
17667
17668
|
const [isLoadFinish, setIsLoadFinish] = useState(false);
|
17668
17669
|
const { isActive } = useSwiperSlide();
|
@@ -17676,6 +17677,18 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17676
17677
|
const initTimeRef = useRef();
|
17677
17678
|
const loadedTimeRef = useRef();
|
17678
17679
|
const isFirstPlayRef = useRef(true);
|
17680
|
+
const loopPlayRef = useRef(loopPlay);
|
17681
|
+
const scene = rec.video.scene;
|
17682
|
+
useImperativeHandle(ref, () => {
|
17683
|
+
return {
|
17684
|
+
setLoopPlay(v) {
|
17685
|
+
loopPlayRef.current = v;
|
17686
|
+
}
|
17687
|
+
};
|
17688
|
+
});
|
17689
|
+
useEffect(() => {
|
17690
|
+
loopPlayRef.current = loopPlay;
|
17691
|
+
}, [loopPlay]);
|
17679
17692
|
const blur = useMemo(() => {
|
17680
17693
|
return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2';
|
17681
17694
|
}, [videoPostConfig]);
|
@@ -17763,12 +17776,15 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17763
17776
|
const handleLoadedmetadata = useCallback(() => {
|
17764
17777
|
if (!videoRef.current)
|
17765
17778
|
return;
|
17779
|
+
if (isDiyH5) {
|
17780
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17781
|
+
}
|
17766
17782
|
loadedTimeRef.current = new Date();
|
17767
17783
|
handleStartPlay();
|
17768
17784
|
handLoadeddata();
|
17769
17785
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
17770
17786
|
const handleClickVideo = useCallback((type) => () => {
|
17771
|
-
var _a, _b, _c, _d, _e;
|
17787
|
+
var _a, _b, _c, _d, _e, _f;
|
17772
17788
|
if (!videoRef.current)
|
17773
17789
|
return;
|
17774
17790
|
if (!isLoadFinish)
|
@@ -17789,10 +17805,13 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17789
17805
|
break;
|
17790
17806
|
default:
|
17791
17807
|
if (isPause) {
|
17792
|
-
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.
|
17808
|
+
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)) {
|
17809
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17810
|
+
}
|
17811
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
|
17793
17812
|
}
|
17794
17813
|
else {
|
17795
|
-
(
|
17814
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
|
17796
17815
|
}
|
17797
17816
|
setIsPauseVideo(!isPause);
|
17798
17817
|
break;
|
@@ -17829,8 +17848,27 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17829
17848
|
const handleWaiting = useCallback(() => {
|
17830
17849
|
setWaiting(true);
|
17831
17850
|
}, []);
|
17851
|
+
const handleTimeUpload = () => {
|
17852
|
+
if (!videoRef.current || !isDiyH5)
|
17853
|
+
return;
|
17854
|
+
setTimeout(() => {
|
17855
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
17856
|
+
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)) {
|
17857
|
+
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
17858
|
+
if (!loopPlayRef.current)
|
17859
|
+
return;
|
17860
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
17861
|
+
(_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);
|
17862
|
+
}
|
17863
|
+
else {
|
17864
|
+
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;
|
17865
|
+
(_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);
|
17866
|
+
}
|
17867
|
+
}
|
17868
|
+
});
|
17869
|
+
};
|
17832
17870
|
useEffect(() => {
|
17833
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
17871
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
17834
17872
|
if (!isActive)
|
17835
17873
|
return;
|
17836
17874
|
const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
|
@@ -17851,6 +17889,7 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17851
17889
|
hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
|
17852
17890
|
hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
17853
17891
|
var _a;
|
17892
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17854
17893
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17855
17894
|
});
|
17856
17895
|
}
|
@@ -17867,8 +17906,9 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17867
17906
|
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
|
17868
17907
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
17869
17908
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
17909
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
|
17870
17910
|
return () => {
|
17871
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
17911
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
17872
17912
|
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
17873
17913
|
if (!isPause)
|
17874
17914
|
handlePause();
|
@@ -17883,6 +17923,7 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17883
17923
|
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
|
17884
17924
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
|
17885
17925
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
|
17926
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
|
17886
17927
|
};
|
17887
17928
|
}, [isActive]);
|
17888
17929
|
useEffect(() => {
|
@@ -17905,8 +17946,8 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17905
17946
|
}
|
17906
17947
|
}, [isActive, isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17907
17948
|
/*
|
17908
|
-
|
17909
|
-
|
17949
|
+
打开/关闭hashtag暂停/播放视频
|
17950
|
+
*/
|
17910
17951
|
useEffect(() => {
|
17911
17952
|
var _a, _b, _c;
|
17912
17953
|
if (!isActive || !(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
@@ -18003,8 +18044,8 @@ const VideoWidget$4 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
18003
18044
|
React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
|
18004
18045
|
renderPoster,
|
18005
18046
|
renderLoading,
|
18006
|
-
isPauseVideo && React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' })))));
|
18007
|
-
};
|
18047
|
+
isPauseVideo && (React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' }))))));
|
18048
|
+
});
|
18008
18049
|
var VideoWidget$5 = memo(VideoWidget$4);
|
18009
18050
|
|
18010
18051
|
const ToggleButton = ({ defaultValue, activeIcon, unactiveIcon, onChange, style }) => {
|
@@ -18467,7 +18508,7 @@ var NavBack$1 = memo(NavBack);
|
|
18467
18508
|
* @Author: binruan@chatlabs.com
|
18468
18509
|
* @Date: 2024-03-20 10:27:31
|
18469
18510
|
* @LastEditors: binruan@chatlabs.com
|
18470
|
-
* @LastEditTime: 2025-
|
18511
|
+
* @LastEditTime: 2025-05-06 18:19:21
|
18471
18512
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18472
18513
|
*
|
18473
18514
|
*/
|
@@ -18486,7 +18527,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18486
18527
|
const [isReload, setIsReload] = useState(new Date().getTime());
|
18487
18528
|
const skipLinkRef = useRef(false);
|
18488
18529
|
const [pageNum, setPageNum] = useState(2);
|
18489
|
-
const
|
18530
|
+
const videoWidgetRef = useRef(null);
|
18531
|
+
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();
|
18490
18532
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
18491
18533
|
const isShowFingerTip = useMemo(() => {
|
18492
18534
|
return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
|
@@ -18624,6 +18666,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18624
18666
|
refreshFeSession
|
18625
18667
|
]);
|
18626
18668
|
const handleSessionExpire = useCallback(debounce(() => {
|
18669
|
+
var _a;
|
18670
|
+
(_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
|
18627
18671
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
18628
18672
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
18629
18673
|
useEffect(() => {
|
@@ -18698,7 +18742,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18698
18742
|
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)));
|
18699
18743
|
}
|
18700
18744
|
if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
|
18701
|
-
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 }));
|
18745
|
+
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 })));
|
18702
18746
|
}
|
18703
18747
|
if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
|
18704
18748
|
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 }));
|
@@ -19047,7 +19091,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19047
19091
|
return;
|
19048
19092
|
// 处理上滑下滑事件
|
19049
19093
|
handleScrollEvent(swiper);
|
19050
|
-
if (waterFallData || isEditor)
|
19094
|
+
if (waterFallData || isEditor || isDiyH5)
|
19051
19095
|
return;
|
19052
19096
|
if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
|
19053
19097
|
if (!isLoadMore) {
|
@@ -19433,7 +19477,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
19433
19477
|
return renderView(rec, index);
|
19434
19478
|
})));
|
19435
19479
|
};
|
19436
|
-
var index$
|
19480
|
+
var index$2 = memo(DiyPortalPreview);
|
19437
19481
|
|
19438
19482
|
/*
|
19439
19483
|
* @Author: binruan@chatlabs.com
|
@@ -19694,7 +19738,7 @@ var VideoWidget$1 = memo(VideoWidget);
|
|
19694
19738
|
* @Author: binruan@chatlabs.com
|
19695
19739
|
* @Date: 2025-03-25 13:54:27
|
19696
19740
|
* @LastEditors: binruan@chatlabs.com
|
19697
|
-
* @LastEditTime: 2025-
|
19741
|
+
* @LastEditTime: 2025-05-06 18:10:44
|
19698
19742
|
* @FilePath: \pb-sxp-ui\src\core\components\DiyStoryPreview\index.tsx
|
19699
19743
|
*
|
19700
19744
|
*/
|
@@ -19926,7 +19970,7 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
19926
19970
|
return renderView(rec, index);
|
19927
19971
|
}))));
|
19928
19972
|
});
|
19929
|
-
var
|
19973
|
+
var index$1 = memo(DiyStoryPreview);
|
19930
19974
|
|
19931
19975
|
/*
|
19932
19976
|
* @Author: binruan@chatlabs.com
|
@@ -20026,7 +20070,7 @@ const Popup = () => {
|
|
20026
20070
|
* @Author: binruan@chatlabs.com
|
20027
20071
|
* @Date: 2024-01-15 19:03:09
|
20028
20072
|
* @LastEditors: binruan@chatlabs.com
|
20029
|
-
* @LastEditTime: 2025-
|
20073
|
+
* @LastEditTime: 2025-05-06 15:49:04
|
20030
20074
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
|
20031
20075
|
*
|
20032
20076
|
*/
|
@@ -20054,9 +20098,9 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
|
|
20054
20098
|
const [channel, setChannel] = useState();
|
20055
20099
|
return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: _schema, utmVal: channel || utmVal },
|
20056
20100
|
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 }) => {
|
20057
|
-
var _a
|
20101
|
+
var _a;
|
20058
20102
|
return (React.createElement(React.Fragment, null,
|
20059
|
-
|
20103
|
+
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 })),
|
20060
20104
|
React.createElement(Popup, null)));
|
20061
20105
|
} })));
|
20062
20106
|
};
|
@@ -20070,5 +20114,5 @@ var index = memo(SxpPageCore);
|
|
20070
20114
|
* @FilePath: \pb-sxp-ui\src\index.ts
|
20071
20115
|
*/
|
20072
20116
|
|
20073
|
-
export { index$
|
20117
|
+
export { index$2 as DiyPortalPreview, index$1 as DiyStoryPreview, EditorDataProvider, Modal$1 as Modal, SxpDataSourceProvider$1 as SxpDataSourceProvider, index as SxpPageCore, SxpPageRender$1 as SxpPageRender, index$3 as core, Pagebuilder as default, _materials_ as materials, useEditorDataProvider };
|
20074
20118
|
//# sourceMappingURL=index.js.map
|