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/pb-ui.js
CHANGED
@@ -12106,6 +12106,7 @@ Made in Italy` })));
|
|
12106
12106
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
12107
12107
|
if (!videoRef)
|
12108
12108
|
return;
|
12109
|
+
setIsLoadFinish(true);
|
12109
12110
|
setIsPauseVideo(false);
|
12110
12111
|
const item = data[index];
|
12111
12112
|
if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
|
@@ -12165,9 +12166,9 @@ Made in Italy` })));
|
|
12165
12166
|
// videoRef?.play();
|
12166
12167
|
// videoRef?.pause();
|
12167
12168
|
// }
|
12168
|
-
setIsLoadFinish(true);
|
12169
|
+
// setIsLoadFinish(true);
|
12169
12170
|
}, [videoRef, handLoadeddata]);
|
12170
|
-
|
12171
|
+
React.useCallback(() => {
|
12171
12172
|
setIsLoadFinish(true);
|
12172
12173
|
}, []);
|
12173
12174
|
const handleClickVideo = React.useCallback((type) => () => {
|
@@ -12241,11 +12242,10 @@ Made in Italy` })));
|
|
12241
12242
|
if (!dom && !dom2)
|
12242
12243
|
return;
|
12243
12244
|
videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
|
12244
|
-
videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
|
12245
12245
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
|
12246
12246
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
|
12247
12247
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
|
12248
|
-
|
12248
|
+
// videoRef?.on('canplay', handleCanplay);
|
12249
12249
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
|
12250
12250
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
|
12251
12251
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
|
@@ -12253,7 +12253,7 @@ Made in Italy` })));
|
|
12253
12253
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
12254
12254
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
|
12255
12255
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
|
12256
|
-
|
12256
|
+
// videoRef?.off('canplay', handleCanplay);
|
12257
12257
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
|
12258
12258
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
|
12259
12259
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
|
@@ -12394,7 +12394,7 @@ Made in Italy` })));
|
|
12394
12394
|
* @Author: binruan@chatlabs.com
|
12395
12395
|
* @Date: 2024-03-20 10:27:31
|
12396
12396
|
* @LastEditors: binruan@chatlabs.com
|
12397
|
-
* @LastEditTime: 2024-04-
|
12397
|
+
* @LastEditTime: 2024-04-30 18:36:47
|
12398
12398
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12399
12399
|
*
|
12400
12400
|
*/
|
@@ -12424,7 +12424,7 @@ Made in Italy` })));
|
|
12424
12424
|
return isBgColor && (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor) ? { backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor } : {};
|
12425
12425
|
}, [imgUrlsPostConfig, isBgColor]);
|
12426
12426
|
return (React.createElement("div", { style: Object.assign({ overflow: 'hidden', height, width: '100%', position: 'relative' }, bgStyle) },
|
12427
|
-
!isBgColor && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
12427
|
+
(!blur || !isBgColor) && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
|
12428
12428
|
blur && (React.createElement(FormatImage$1, { src: src, style: {
|
12429
12429
|
width: '100%',
|
12430
12430
|
height: '100%',
|