pb-sxp-ui 1.2.7 → 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 +76 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -77
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +76 -77
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/FormatImage.d.ts +1 -0
- package/es/core/components/SxpPageRender/FormatImage.js +17 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.js +2 -2
- package/es/core/components/SxpPageRender/index.js +11 -3
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/es/materials/sxp/cta/AniLink/index.js +1 -1
- package/es/materials/sxp/cta/AniLink/interactionRender.d.ts +0 -3
- package/es/materials/sxp/cta/AniLink/interactionRender.js +1 -2
- package/es/materials/sxp/cta/AniLink/material.js +9 -1
- package/es/materials/sxp/cta/AniLinkPopup/index.js +2 -2
- package/es/materials/sxp/cta/AniLinkPopup/interactionRender.d.ts +0 -10
- package/es/materials/sxp/cta/AniLinkPopup/interactionRender.js +1 -7
- package/es/materials/sxp/cta/AniLinkPopup/material.js +19 -11
- package/lib/core/components/SxpPageRender/FormatImage.d.ts +1 -0
- package/lib/core/components/SxpPageRender/FormatImage.js +17 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +2 -2
- package/lib/core/components/SxpPageRender/index.js +11 -3
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/materials/sxp/cta/AniLink/index.js +1 -1
- package/lib/materials/sxp/cta/AniLink/interactionRender.d.ts +0 -3
- package/lib/materials/sxp/cta/AniLink/interactionRender.js +1 -2
- package/lib/materials/sxp/cta/AniLink/material.js +9 -1
- package/lib/materials/sxp/cta/AniLinkPopup/index.js +2 -2
- package/lib/materials/sxp/cta/AniLinkPopup/interactionRender.d.ts +0 -10
- package/lib/materials/sxp/cta/AniLinkPopup/interactionRender.js +1 -7
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +19 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -673,8 +673,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
673
673
|
'itemFilter.itemType': waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemType,
|
674
674
|
themeTag: themeTag.current
|
675
675
|
});
|
676
|
-
setRtcList(getFilterRecList(data));
|
677
|
-
setCacheRtcList(getFilterRecList(data));
|
676
|
+
setRtcList(rtcList.concat(getFilterRecList(data)));
|
677
|
+
setCacheRtcList(cacheRtcList.concat(getFilterRecList(data)));
|
678
678
|
}), [getRecommendVideos, rtcList, waterFallData, cacheRtcList]);
|
679
679
|
const bffEventReport = React.useCallback(({ userInfo, eventInfo }) => {
|
680
680
|
// 关闭 BFF 事件上报
|
@@ -8812,16 +8812,8 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8812
8812
|
};
|
8813
8813
|
var ExpandableText$1 = React.memo(ExpandableText);
|
8814
8814
|
|
8815
|
-
/*
|
8816
|
-
* @Author: binruan@chatlabs.com
|
8817
|
-
* @Date: 2024-03-20 10:27:31
|
8818
|
-
* @LastEditors: binruan@chatlabs.com
|
8819
|
-
* @LastEditTime: 2024-07-31 17:54:50
|
8820
|
-
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FormatImage.tsx
|
8821
|
-
*
|
8822
|
-
*/
|
8823
8815
|
const FormatImage = React.forwardRef((props, ref) => {
|
8824
|
-
const { src, onLoad, style, className, loading } = props;
|
8816
|
+
const { src, onLoad, style, className, loading, alt = 'image' } = props;
|
8825
8817
|
const [imgSrc, setImgSrc] = React.useState();
|
8826
8818
|
const imgRef = React.useRef(null);
|
8827
8819
|
React.useImperativeHandle(ref, () => ({
|
@@ -8832,29 +8824,19 @@ const FormatImage = React.forwardRef((props, ref) => {
|
|
8832
8824
|
React.useEffect(() => {
|
8833
8825
|
setImgSrc(src);
|
8834
8826
|
}, [src]);
|
8835
|
-
|
8836
|
-
|
8837
|
-
|
8838
|
-
|
8839
|
-
|
8840
|
-
|
8841
|
-
|
8842
|
-
|
8843
|
-
|
8844
|
-
|
8845
|
-
|
8846
|
-
|
8847
|
-
|
8848
|
-
// { threshold: 0.1 } // 触发阈值,可根据需要调整
|
8849
|
-
// );
|
8850
|
-
// observer.observe(current);
|
8851
|
-
// }
|
8852
|
-
// return () => {
|
8853
|
-
// if (observer && current) {
|
8854
|
-
// observer.unobserve(current);
|
8855
|
-
// }
|
8856
|
-
// };
|
8857
|
-
// }, [src]);
|
8827
|
+
React.useEffect(() => {
|
8828
|
+
const onShow = () => {
|
8829
|
+
var _a, _b;
|
8830
|
+
if (src && ((_b = (_a = imgRef === null || imgRef === void 0 ? void 0 : imgRef.current) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.display) === 'none') {
|
8831
|
+
imgRef.current.src = '';
|
8832
|
+
imgRef.current.src = src;
|
8833
|
+
}
|
8834
|
+
};
|
8835
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, onShow);
|
8836
|
+
return () => {
|
8837
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW, onShow);
|
8838
|
+
};
|
8839
|
+
}, [src]);
|
8858
8840
|
return (React.createElement(React.Fragment, null, (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
|
8859
8841
|
React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
|
8860
8842
|
React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
|
@@ -8863,11 +8845,11 @@ const FormatImage = React.forwardRef((props, ref) => {
|
|
8863
8845
|
if (imgRef.current)
|
8864
8846
|
imgRef.current.style.display = 'block';
|
8865
8847
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e.target);
|
8866
|
-
}, alt:
|
8848
|
+
}, alt: alt }))) : (React.createElement("img", { ref: imgRef, className: className, src: imgSrc, style: Object.assign(Object.assign({}, style), { display: 'none' }), loading: loading, onLoad: (e) => {
|
8867
8849
|
if (imgRef.current)
|
8868
8850
|
imgRef.current.style.display = 'block';
|
8869
8851
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e.target);
|
8870
|
-
}, alt:
|
8852
|
+
}, alt: alt }))));
|
8871
8853
|
});
|
8872
8854
|
var FormatImage$1 = React.memo(FormatImage);
|
8873
8855
|
|
@@ -14080,7 +14062,7 @@ const AniLink$1 = (_a) => {
|
|
14080
14062
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14081
14063
|
}
|
14082
14064
|
};
|
14083
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情
|
14065
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
|
14084
14066
|
const aniTimStyle = React.useMemo(() => {
|
14085
14067
|
var _a, _b;
|
14086
14068
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
@@ -14127,7 +14109,7 @@ var AniLinkComponent = React.memo(AniLink$1);
|
|
14127
14109
|
* @Author: binruan@chatlabs.com
|
14128
14110
|
* @Date: 2024-07-05 14:08:41
|
14129
14111
|
* @LastEditors: binruan@chatlabs.com
|
14130
|
-
* @LastEditTime: 2024-
|
14112
|
+
* @LastEditTime: 2024-08-02 16:22:39
|
14131
14113
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
14132
14114
|
*
|
14133
14115
|
*/
|
@@ -14155,11 +14137,10 @@ var interactionRender$1 = [
|
|
14155
14137
|
label: '动画',
|
14156
14138
|
options: [
|
14157
14139
|
{
|
14158
|
-
label: '
|
14140
|
+
label: '默认',
|
14159
14141
|
value: 1
|
14160
14142
|
}
|
14161
14143
|
],
|
14162
|
-
initialValue: 1,
|
14163
14144
|
fieldProps: {
|
14164
14145
|
style: {
|
14165
14146
|
width: '100%'
|
@@ -14186,7 +14167,7 @@ var interactionRender$1 = [
|
|
14186
14167
|
* @Author: binruan@chatlabs.com
|
14187
14168
|
* @Date: 2023-07-28 18:29:57
|
14188
14169
|
* @LastEditors: binruan@chatlabs.com
|
14189
|
-
* @LastEditTime: 2024-
|
14170
|
+
* @LastEditTime: 2024-08-02 17:03:34
|
14190
14171
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\material.tsx
|
14191
14172
|
*
|
14192
14173
|
*/
|
@@ -14206,7 +14187,15 @@ const AniLink = createMaterial(AniLinkComponent, {
|
|
14206
14187
|
ctaTitle: {
|
14207
14188
|
fontSize: 15,
|
14208
14189
|
color: '#fff',
|
14209
|
-
textAlign: '
|
14190
|
+
textAlign: 'center'
|
14191
|
+
}
|
14192
|
+
},
|
14193
|
+
event: {
|
14194
|
+
animation: {
|
14195
|
+
backgroundColor: '#F40082',
|
14196
|
+
name: 1,
|
14197
|
+
delay: 1000,
|
14198
|
+
duration: 2000
|
14210
14199
|
}
|
14211
14200
|
}
|
14212
14201
|
},
|
@@ -14513,7 +14502,7 @@ const AniLinkPopup$1 = (_a) => {
|
|
14513
14502
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14514
14503
|
}
|
14515
14504
|
};
|
14516
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情
|
14505
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情';
|
14517
14506
|
const aniTimStyle = React.useMemo(() => {
|
14518
14507
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
14519
14508
|
if (ani) {
|
@@ -14545,7 +14534,7 @@ const AniLinkPopup$1 = (_a) => {
|
|
14545
14534
|
React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_s = style === null || style === void 0 ? void 0 : style['padding']) !== null && _s !== void 0 ? _s : 0 } },
|
14546
14535
|
React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
|
14547
14536
|
React.createElement(Img$1, { src: src, rec: recData, item: (_y = (_w = (_v = (_u = recData === null || recData === void 0 ? void 0 : recData.video) === null || _u === void 0 ? void 0 : _u.bindProducts) === null || _v === void 0 ? void 0 : _v[0]) !== null && _w !== void 0 ? _w : (_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.bindProduct) !== null && _y !== void 0 ? _y : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
|
14548
|
-
(!recData || (product === null || product === void 0 ? void 0 : product.title)) && (React.createElement("div", { className: styles['
|
14537
|
+
(!recData || (product === null || product === void 0 ? void 0 : product.title)) && (React.createElement("div", { className: styles['one-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
14549
14538
|
__html: setFontForText((_z = product === null || product === void 0 ? void 0 : product.title) !== null && _z !== void 0 ? _z : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
|
14550
14539
|
} })),
|
14551
14540
|
React.createElement("div", { className: styles['one-line-ellipsis'], style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_0 = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _0 === void 0 ? void 0 : _0.height) + 'px' }), dangerouslySetInnerHTML: {
|
@@ -14554,14 +14543,6 @@ const AniLinkPopup$1 = (_a) => {
|
|
14554
14543
|
};
|
14555
14544
|
var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
|
14556
14545
|
|
14557
|
-
/*
|
14558
|
-
* @Author: binruan@chatlabs.com
|
14559
|
-
* @Date: 2024-07-04 15:28:39
|
14560
|
-
* @LastEditors: binruan@chatlabs.com
|
14561
|
-
* @LastEditTime: 2024-07-05 17:46:42
|
14562
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
14563
|
-
*
|
14564
|
-
*/
|
14565
14546
|
var interactionRender = [
|
14566
14547
|
{
|
14567
14548
|
title: '点击事件',
|
@@ -14575,22 +14556,16 @@ var interactionRender = [
|
|
14575
14556
|
{
|
14576
14557
|
title: '动画效果',
|
14577
14558
|
child: [
|
14578
|
-
{
|
14579
|
-
type: 'Color',
|
14580
|
-
name: ['animation', 'backgroundColor'],
|
14581
|
-
label: '动画颜色'
|
14582
|
-
},
|
14583
14559
|
{
|
14584
14560
|
type: 'Select',
|
14585
14561
|
name: ['animation', 'name'],
|
14586
14562
|
label: '动画',
|
14587
14563
|
options: [
|
14588
14564
|
{
|
14589
|
-
label: '
|
14565
|
+
label: '默认',
|
14590
14566
|
value: 1
|
14591
14567
|
}
|
14592
14568
|
],
|
14593
|
-
initialValue: 1,
|
14594
14569
|
fieldProps: {
|
14595
14570
|
style: {
|
14596
14571
|
width: '100%'
|
@@ -14613,11 +14588,19 @@ var interactionRender = [
|
|
14613
14588
|
}
|
14614
14589
|
];
|
14615
14590
|
|
14591
|
+
/*
|
14592
|
+
* @Author: binruan@chatlabs.com
|
14593
|
+
* @Date: 2024-07-24 14:58:40
|
14594
|
+
* @LastEditors: binruan@chatlabs.com
|
14595
|
+
* @LastEditTime: 2024-08-02 17:45:51
|
14596
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\material.tsx
|
14597
|
+
*
|
14598
|
+
*/
|
14616
14599
|
/*
|
14617
14600
|
* @Author: binruan@chatlabs.com
|
14618
14601
|
* @Date: 2023-07-28 18:29:57
|
14619
14602
|
* @LastEditors: binruan@chatlabs.com
|
14620
|
-
* @LastEditTime: 2024-
|
14603
|
+
* @LastEditTime: 2024-08-02 17:09:14
|
14621
14604
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\material.tsx
|
14622
14605
|
*
|
14623
14606
|
*/
|
@@ -14636,32 +14619,40 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
|
|
14636
14619
|
ctaTempStyles: {
|
14637
14620
|
img: {
|
14638
14621
|
borderRadius: 3,
|
14639
|
-
width:
|
14640
|
-
height:
|
14641
|
-
marginBottom:
|
14622
|
+
width: 108,
|
14623
|
+
height: 108,
|
14624
|
+
marginBottom: 0
|
14642
14625
|
},
|
14643
14626
|
title: {
|
14644
|
-
fontSize:
|
14627
|
+
fontSize: 14,
|
14645
14628
|
color: '#000',
|
14646
|
-
textAlign: 'left'
|
14629
|
+
textAlign: 'left',
|
14630
|
+
lineHeight: 2.6
|
14647
14631
|
},
|
14648
14632
|
ctaTitle: {
|
14649
|
-
|
14633
|
+
width: 108,
|
14634
|
+
height: 22,
|
14635
|
+
fontSize: 12,
|
14650
14636
|
color: '#fff',
|
14651
14637
|
textAlign: 'center',
|
14652
|
-
width: 76,
|
14653
|
-
height: 20,
|
14654
14638
|
backgroundColor: 'rgba(0,0,0,1)'
|
14655
14639
|
}
|
14640
|
+
},
|
14641
|
+
event: {
|
14642
|
+
animation: {
|
14643
|
+
name: 1,
|
14644
|
+
delay: 1000,
|
14645
|
+
duration: 2000
|
14646
|
+
}
|
14656
14647
|
}
|
14657
14648
|
},
|
14658
14649
|
style: {
|
14659
|
-
width:
|
14660
|
-
height:
|
14650
|
+
width: 120,
|
14651
|
+
height: 185,
|
14661
14652
|
borderRadius: 3,
|
14662
14653
|
backgroundColor: 'rgba(255,255,255,1)',
|
14663
14654
|
padding: 7,
|
14664
|
-
margin:
|
14655
|
+
margin: 15
|
14665
14656
|
}
|
14666
14657
|
},
|
14667
14658
|
w: 100,
|
@@ -15135,7 +15126,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15135
15126
|
} },
|
15136
15127
|
React.createElement("div", { style: { position: 'relative', width: '100%', height: '100%' } },
|
15137
15128
|
React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
|
15138
|
-
React.createElement(
|
15129
|
+
isPauseVideo && (React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' })))),
|
15139
15130
|
renderPoster,
|
15140
15131
|
renderLoading)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, style: {
|
15141
15132
|
position: 'relative',
|
@@ -15146,7 +15137,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15146
15137
|
React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
|
15147
15138
|
renderPoster,
|
15148
15139
|
renderLoading,
|
15149
|
-
React.createElement(
|
15140
|
+
isPauseVideo && React.createElement(FormatImage$1, { className: 'clc-pb-video-pause', src: videoPlayIcon !== null && videoPlayIcon !== void 0 ? videoPlayIcon : PAUSE_ICON, alt: 'pause' })))));
|
15150
15141
|
};
|
15151
15142
|
var VideoWidget$3 = React.memo(VideoWidget$2);
|
15152
15143
|
|
@@ -15544,7 +15535,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
15544
15535
|
* @Author: binruan@chatlabs.com
|
15545
15536
|
* @Date: 2024-01-15 19:03:09
|
15546
15537
|
* @LastEditors: binruan@chatlabs.com
|
15547
|
-
* @LastEditTime: 2024-08-
|
15538
|
+
* @LastEditTime: 2024-08-02 18:34:27
|
15548
15539
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
15549
15540
|
*
|
15550
15541
|
*/
|
@@ -15557,6 +15548,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15557
15548
|
const viewTime = React.useRef();
|
15558
15549
|
const [isLoadMore, setIsLoadMore] = React.useState(false);
|
15559
15550
|
const [isShowMore, setIsShowMore] = React.useState(false);
|
15551
|
+
const [isReload, setIsReload] = React.useState(new Date().getTime());
|
15552
|
+
const skipLinkRef = React.useRef(false);
|
15560
15553
|
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview } = useSxpDataSource();
|
15561
15554
|
const { backMainFeed } = useEventReport();
|
15562
15555
|
const { productView } = useEventReport();
|
@@ -15650,6 +15643,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15650
15643
|
});
|
15651
15644
|
}
|
15652
15645
|
else if (document.visibilityState === 'visible') {
|
15646
|
+
if (skipLinkRef.current === true) {
|
15647
|
+
setIsReload(new Date().getTime());
|
15648
|
+
skipLinkRef.current = false;
|
15649
|
+
}
|
15653
15650
|
// 页面可见时触发,注意页面初始化时不会触发
|
15654
15651
|
handleH5EnterLink();
|
15655
15652
|
if (repCond) {
|
@@ -15707,7 +15704,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15707
15704
|
const renderContent = React.useCallback((rec, index) => {
|
15708
15705
|
var _a, _b, _c, _d;
|
15709
15706
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
|
15710
|
-
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 }));
|
15711
15708
|
}
|
15712
15709
|
if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
|
15713
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 }));
|
@@ -15733,7 +15730,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15733
15730
|
viewTime,
|
15734
15731
|
tipText,
|
15735
15732
|
resolver,
|
15736
|
-
schema
|
15733
|
+
schema,
|
15734
|
+
isReload
|
15737
15735
|
]);
|
15738
15736
|
const onExpandableChange = React.useCallback((v) => {
|
15739
15737
|
setIsShowMore(v);
|
@@ -15839,6 +15837,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15839
15837
|
}
|
15840
15838
|
});
|
15841
15839
|
setSlideSkipState();
|
15840
|
+
skipLinkRef.current = true;
|
15842
15841
|
window.location.href = window.getJointUtmLink(link);
|
15843
15842
|
}
|
15844
15843
|
}
|
@@ -15955,7 +15954,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15955
15954
|
renderBottom(rec, index),
|
15956
15955
|
renderLikeButton(rec, index)))))));
|
15957
15956
|
});
|
15958
|
-
}, [containerWidth, data, height, loading, renderBottom, renderContent, visList, loadingImage]);
|
15957
|
+
}, [containerWidth, data, height, loading, renderBottom, renderContent, visList, loadingImage, isReload]);
|
15959
15958
|
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
15960
15959
|
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
15961
15960
|
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|