pb-sxp-ui 1.0.28 → 1.0.29

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/pb-ui.js CHANGED
@@ -12091,7 +12091,7 @@ Made in Italy` })));
12091
12091
  const translateY = React.useMemo(() => {
12092
12092
  var _a;
12093
12093
  return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2'
12094
- ? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
12094
+ ? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
12095
12095
  : 'translateY(-50%)';
12096
12096
  }, [videoPostConfig]);
12097
12097
  const blurBgSrc = React.useMemo(() => {
@@ -12203,6 +12203,14 @@ Made in Italy` })));
12203
12203
  window.removeEventListener('beforeunload', handleBeforeUnload);
12204
12204
  };
12205
12205
  }, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
12206
+ const blurStyle = React.useMemo(() => {
12207
+ return blur
12208
+ ? {
12209
+ filter: 'blur(10px)',
12210
+ transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
12211
+ }
12212
+ : {};
12213
+ }, [blur]);
12206
12214
  if (!rec.video) {
12207
12215
  return null;
12208
12216
  }
@@ -12212,13 +12220,7 @@ Made in Italy` })));
12212
12220
  height,
12213
12221
  overflow: 'hidden'
12214
12222
  } },
12215
- React.createElement(FormatImage$1, { src: blurBgSrc, style: {
12216
- height: '100%',
12217
- width: '100%',
12218
- objectFit: 'cover',
12219
- filter: blur ? 'blur(10px)' : 'none',
12220
- transform: blur ? 'scale(1.2)' : 'none'
12221
- } }),
12223
+ React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
12222
12224
  React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
12223
12225
  React.createElement("div", { style: {
12224
12226
  position: 'absolute',
@@ -12230,9 +12232,7 @@ Made in Italy` })));
12230
12232
  right: 0
12231
12233
  } },
12232
12234
  React.createElement("div", { style: { position: 'relative' } },
12233
- React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
12234
- // poster={sxpParameter?.placeholder_image}
12235
- muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart, style: {
12235
+ React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous', muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart, style: {
12236
12236
  width: '100%',
12237
12237
  height: 'auto',
12238
12238
  objectFit: 'contain'
@@ -12244,9 +12244,7 @@ Made in Italy` })));
12244
12244
  height,
12245
12245
  overflow: 'hidden'
12246
12246
  } },
12247
- React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
12248
- // poster={sxpParameter?.placeholder_image}
12249
- muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart }),
12247
+ React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous', muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart }),
12250
12248
  renderPoster,
12251
12249
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON })))));
12252
12250
  };
@@ -12301,7 +12299,7 @@ Made in Italy` })));
12301
12299
  * @Author: binruan@chatlabs.com
12302
12300
  * @Date: 2024-03-20 10:27:31
12303
12301
  * @LastEditors: binruan@chatlabs.com
12304
- * @LastEditTime: 2024-04-18 19:27:35
12302
+ * @LastEditTime: 2024-04-22 14:04:00
12305
12303
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12306
12304
  *
12307
12305
  */
@@ -12313,22 +12311,24 @@ Made in Italy` })));
12313
12311
  const translateY = React.useMemo(() => {
12314
12312
  var _a;
12315
12313
  return (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.mode) === '2'
12316
- ? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
12314
+ ? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
12317
12315
  : 'translateY(-50%)';
12318
12316
  }, [imgUrlsPostConfig]);
12317
+ const blurStyle = React.useMemo(() => {
12318
+ return blur
12319
+ ? {
12320
+ filter: 'blur(10px)',
12321
+ transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
12322
+ }
12323
+ : {};
12324
+ }, [blur]);
12319
12325
  return (React.createElement("div", { style: {
12320
12326
  overflow: 'hidden',
12321
12327
  height,
12322
12328
  width: '100%',
12323
12329
  position: 'relative'
12324
12330
  } },
12325
- React.createElement(FormatImage$1, { src: src, style: {
12326
- height: '100%',
12327
- width: '100%',
12328
- objectFit: 'cover',
12329
- filter: blur ? 'blur(10px)' : 'none',
12330
- transform: blur ? 'scale(1.2)' : 'none'
12331
- } }),
12331
+ React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
12332
12332
  blur && (React.createElement(FormatImage$1, { src: src, style: {
12333
12333
  width: '100%',
12334
12334
  objectFit: 'contain',