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 CHANGED
@@ -12115,6 +12115,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12115
12115
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
12116
12116
  if (!videoRef)
12117
12117
  return;
12118
+ setIsLoadFinish(true);
12118
12119
  setIsPauseVideo(false);
12119
12120
  const item = data[index];
12120
12121
  if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
@@ -12174,9 +12175,9 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12174
12175
  // videoRef?.play();
12175
12176
  // videoRef?.pause();
12176
12177
  // }
12177
- setIsLoadFinish(true);
12178
+ // setIsLoadFinish(true);
12178
12179
  }, [videoRef, handLoadeddata]);
12179
- const handleCanplay = React.useCallback(() => {
12180
+ React.useCallback(() => {
12180
12181
  setIsLoadFinish(true);
12181
12182
  }, []);
12182
12183
  const handleClickVideo = React.useCallback((type) => () => {
@@ -12250,11 +12251,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12250
12251
  if (!dom && !dom2)
12251
12252
  return;
12252
12253
  videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
12253
- videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
12254
12254
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12255
12255
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
12256
12256
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
12257
- videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('canplay', handleCanplay);
12257
+ // videoRef?.on('canplay', handleCanplay);
12258
12258
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
12259
12259
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
12260
12260
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
@@ -12262,7 +12262,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12262
12262
  dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
12263
12263
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
12264
12264
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
12265
- videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('canplay', handleCanplay);
12265
+ // videoRef?.off('canplay', handleCanplay);
12266
12266
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
12267
12267
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
12268
12268
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
@@ -12403,7 +12403,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
12403
12403
  * @Author: binruan@chatlabs.com
12404
12404
  * @Date: 2024-03-20 10:27:31
12405
12405
  * @LastEditors: binruan@chatlabs.com
12406
- * @LastEditTime: 2024-04-29 18:57:05
12406
+ * @LastEditTime: 2024-04-30 18:36:47
12407
12407
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12408
12408
  *
12409
12409
  */
@@ -12433,7 +12433,7 @@ const Picture = (props) => {
12433
12433
  return isBgColor && (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor) ? { backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.bgColor } : {};
12434
12434
  }, [imgUrlsPostConfig, isBgColor]);
12435
12435
  return (React.createElement("div", { style: Object.assign({ overflow: 'hidden', height, width: '100%', position: 'relative' }, bgStyle) },
12436
- !isBgColor && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
12436
+ (!blur || !isBgColor) && (React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
12437
12437
  blur && (React.createElement(FormatImage$1, { src: src, style: {
12438
12438
  width: '100%',
12439
12439
  height: '100%',