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/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.js +23 -23
- 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 +23 -23
- 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 +10 -8
- package/es/core/components/SxpPageRender/VideoWidget/index.js +10 -8
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +10 -8
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +10 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -12099,7 +12099,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12099
12099
|
const translateY = React.useMemo(() => {
|
12100
12100
|
var _a;
|
12101
12101
|
return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2'
|
12102
|
-
? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
|
12102
|
+
? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
|
12103
12103
|
: 'translateY(-50%)';
|
12104
12104
|
}, [videoPostConfig]);
|
12105
12105
|
const blurBgSrc = React.useMemo(() => {
|
@@ -12211,6 +12211,14 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12211
12211
|
window.removeEventListener('beforeunload', handleBeforeUnload);
|
12212
12212
|
};
|
12213
12213
|
}, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
|
12214
|
+
const blurStyle = React.useMemo(() => {
|
12215
|
+
return blur
|
12216
|
+
? {
|
12217
|
+
filter: 'blur(10px)',
|
12218
|
+
transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
|
12219
|
+
}
|
12220
|
+
: {};
|
12221
|
+
}, [blur]);
|
12214
12222
|
if (!rec.video) {
|
12215
12223
|
return null;
|
12216
12224
|
}
|
@@ -12220,13 +12228,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12220
12228
|
height,
|
12221
12229
|
overflow: 'hidden'
|
12222
12230
|
} },
|
12223
|
-
React.createElement(FormatImage$1, { src: blurBgSrc, style: {
|
12224
|
-
height: '100%',
|
12225
|
-
width: '100%',
|
12226
|
-
objectFit: 'cover',
|
12227
|
-
filter: blur ? 'blur(10px)' : 'none',
|
12228
|
-
transform: blur ? 'scale(1.2)' : 'none'
|
12229
|
-
} }),
|
12231
|
+
React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
|
12230
12232
|
React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
|
12231
12233
|
React.createElement("div", { style: {
|
12232
12234
|
position: 'absolute',
|
@@ -12238,9 +12240,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12238
12240
|
right: 0
|
12239
12241
|
} },
|
12240
12242
|
React.createElement("div", { style: { position: 'relative' } },
|
12241
|
-
React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
|
12242
|
-
// poster={sxpParameter?.placeholder_image}
|
12243
|
-
muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart, style: {
|
12243
|
+
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: {
|
12244
12244
|
width: '100%',
|
12245
12245
|
height: 'auto',
|
12246
12246
|
objectFit: 'contain'
|
@@ -12252,9 +12252,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12252
12252
|
height,
|
12253
12253
|
overflow: 'hidden'
|
12254
12254
|
} },
|
12255
|
-
React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
|
12256
|
-
// poster={sxpParameter?.placeholder_image}
|
12257
|
-
muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart }),
|
12255
|
+
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 }),
|
12258
12256
|
renderPoster,
|
12259
12257
|
React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON })))));
|
12260
12258
|
};
|
@@ -12309,7 +12307,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12309
12307
|
* @Author: binruan@chatlabs.com
|
12310
12308
|
* @Date: 2024-03-20 10:27:31
|
12311
12309
|
* @LastEditors: binruan@chatlabs.com
|
12312
|
-
* @LastEditTime: 2024-04-
|
12310
|
+
* @LastEditTime: 2024-04-22 14:04:00
|
12313
12311
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12314
12312
|
*
|
12315
12313
|
*/
|
@@ -12321,22 +12319,24 @@ const Picture = (props) => {
|
|
12321
12319
|
const translateY = React.useMemo(() => {
|
12322
12320
|
var _a;
|
12323
12321
|
return (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.mode) === '2'
|
12324
|
-
? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
|
12322
|
+
? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
|
12325
12323
|
: 'translateY(-50%)';
|
12326
12324
|
}, [imgUrlsPostConfig]);
|
12325
|
+
const blurStyle = React.useMemo(() => {
|
12326
|
+
return blur
|
12327
|
+
? {
|
12328
|
+
filter: 'blur(10px)',
|
12329
|
+
transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
|
12330
|
+
}
|
12331
|
+
: {};
|
12332
|
+
}, [blur]);
|
12327
12333
|
return (React.createElement("div", { style: {
|
12328
12334
|
overflow: 'hidden',
|
12329
12335
|
height,
|
12330
12336
|
width: '100%',
|
12331
12337
|
position: 'relative'
|
12332
12338
|
} },
|
12333
|
-
React.createElement(FormatImage$1, { src: src, style: {
|
12334
|
-
height: '100%',
|
12335
|
-
width: '100%',
|
12336
|
-
objectFit: 'cover',
|
12337
|
-
filter: blur ? 'blur(10px)' : 'none',
|
12338
|
-
transform: blur ? 'scale(1.2)' : 'none'
|
12339
|
-
} }),
|
12339
|
+
React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
|
12340
12340
|
blur && (React.createElement(FormatImage$1, { src: src, style: {
|
12341
12341
|
width: '100%',
|
12342
12342
|
objectFit: 'contain',
|