pb-sxp-ui 1.0.50 → 1.0.52
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- 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 +7 -7
- 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/PictureGroup/Picture.js +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +1 -4
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +1 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -12092,6 +12092,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12092
12092
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
12093
12093
|
if (!videoRef)
|
12094
12094
|
return;
|
12095
|
+
setIsLoadFinish(true);
|
12095
12096
|
setIsPauseVideo(false);
|
12096
12097
|
const item = data[index];
|
12097
12098
|
if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
|
@@ -12151,9 +12152,9 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12151
12152
|
// videoRef?.play();
|
12152
12153
|
// videoRef?.pause();
|
12153
12154
|
// }
|
12154
|
-
setIsLoadFinish(true);
|
12155
|
+
// setIsLoadFinish(true);
|
12155
12156
|
}, [videoRef, handLoadeddata]);
|
12156
|
-
|
12157
|
+
useCallback(() => {
|
12157
12158
|
setIsLoadFinish(true);
|
12158
12159
|
}, []);
|
12159
12160
|
const handleClickVideo = useCallback((type) => () => {
|
@@ -12227,11 +12228,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12227
12228
|
if (!dom && !dom2)
|
12228
12229
|
return;
|
12229
12230
|
videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
|
12230
|
-
videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
|
12231
12231
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
|
12232
12232
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
|
12233
12233
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
|
12234
|
-
|
12234
|
+
// videoRef?.on('canplay', handleCanplay);
|
12235
12235
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
|
12236
12236
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
|
12237
12237
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
|
@@ -12239,7 +12239,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12239
12239
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
12240
12240
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
|
12241
12241
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
|
12242
|
-
|
12242
|
+
// videoRef?.off('canplay', handleCanplay);
|
12243
12243
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
|
12244
12244
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
|
12245
12245
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
|
@@ -12380,7 +12380,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12380
12380
|
* @Author: binruan@chatlabs.com
|
12381
12381
|
* @Date: 2024-03-20 10:27:31
|
12382
12382
|
* @LastEditors: binruan@chatlabs.com
|
12383
|
-
* @LastEditTime: 2024-04-
|
12383
|
+
* @LastEditTime: 2024-04-30 18:36:47
|
12384
12384
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12385
12385
|
*
|
12386
12386
|
*/
|
@@ -12410,7 +12410,7 @@ const Picture = (props) => {
|
|
12410
12410
|
return isBgColor && (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor) ? { backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor } : {};
|
12411
12411
|
}, [imgUrlsPostConfig, isBgColor]);
|
12412
12412
|
return (React.createElement("div", { style: Object.assign({ overflow: 'hidden', height, width: '100%', position: 'relative' }, bgStyle) },
|
12413
|
-
!isBgColor && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
12413
|
+
(!blur || !isBgColor) && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
12414
12414
|
blur && (React.createElement(FormatImage$1, { src: src, style: {
|
12415
12415
|
width: '100%',
|
12416
12416
|
height: '100%',
|