pb-sxp-ui 1.15.22-alpha.2 → 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/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- 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 +9 -7
- 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/SxpPageRender/VideoWidget/index.js +5 -3
- package/es/core/components/SxpPageRender/index.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -17838,6 +17838,7 @@ Made in Italy` })));
|
|
17838
17838
|
return;
|
17839
17839
|
if (activeIndex !== index)
|
17840
17840
|
return;
|
17841
|
+
setIsPauseVideo(true);
|
17841
17842
|
const item = data[index];
|
17842
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);
|
17843
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);
|
@@ -17990,7 +17991,8 @@ Made in Italy` })));
|
|
17990
17991
|
};
|
17991
17992
|
}, [handleClickVideo, isActive]);
|
17992
17993
|
const renderPoster = React.useMemo(() => {
|
17993
|
-
|
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) {
|
17994
17996
|
return null;
|
17995
17997
|
}
|
17996
17998
|
return (React.createElement("img", { style: {
|
@@ -18000,8 +18002,8 @@ Made in Italy` })));
|
|
18000
18002
|
width: '100%',
|
18001
18003
|
height: '100%',
|
18002
18004
|
objectFit: 'cover'
|
18003
|
-
}, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
|
18004
|
-
}, [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]);
|
18005
18007
|
const renderLoading = React.useMemo(() => {
|
18006
18008
|
if (!waiting || !isLoadFinish)
|
18007
18009
|
return;
|
@@ -18523,7 +18525,7 @@ Made in Italy` })));
|
|
18523
18525
|
* @Author: binruan@chatlabs.com
|
18524
18526
|
* @Date: 2024-03-20 10:27:31
|
18525
18527
|
* @LastEditors: binruan@chatlabs.com
|
18526
|
-
* @LastEditTime: 2025-05-
|
18528
|
+
* @LastEditTime: 2025-05-07 13:33:18
|
18527
18529
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18528
18530
|
*
|
18529
18531
|
*/
|
@@ -18718,7 +18720,7 @@ Made in Italy` })));
|
|
18718
18720
|
}, [minusHeight, containerHeight, tagHeight]);
|
18719
18721
|
const visList = React.useMemo(() => {
|
18720
18722
|
var _a;
|
18721
|
-
const list = activeIndex === 0 && !waterFallData && !isEditor
|
18723
|
+
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|
18722
18724
|
? [(_a = data === null || data === void 0 ? void 0 : data[0]) !== null && _a !== void 0 ? _a : null]
|
18723
18725
|
: data === null || data === void 0 ? void 0 : data.map((item, index) => {
|
18724
18726
|
if (activeIndex === index || index - 1 === activeIndex || index + 1 === activeIndex) {
|
@@ -18730,8 +18732,8 @@ Made in Italy` })));
|
|
18730
18732
|
});
|
18731
18733
|
if (!(list === null || list === void 0 ? void 0 : list.length))
|
18732
18734
|
return [];
|
18733
|
-
return !waterFallData && !isNoMoreData ? list.concat([{ loading: true }]) : list;
|
18734
|
-
}, [data, activeIndex, waterFallData, isEditor, isNoMoreData]);
|
18735
|
+
return !waterFallData && !isNoMoreData && !isDiyH5 ? list.concat([{ loading: true }]) : list;
|
18736
|
+
}, [data, activeIndex, waterFallData, isEditor, isNoMoreData, isDiyH5]);
|
18735
18737
|
const renderLogo = React.useMemo(() => {
|
18736
18738
|
var _a, _b, _c, _d;
|
18737
18739
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|