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.css
CHANGED
@@ -1409,6 +1409,10 @@ button.swiper-pagination-bullet {
|
|
1409
1409
|
background: #000 !important;
|
1410
1410
|
opacity: 1 !important;
|
1411
1411
|
}
|
1412
|
+
.video-container {
|
1413
|
+
-webkit-transform: translate3d(0px, 0px, 0px);
|
1414
|
+
transform: translate3d(0px, 0px, 0px);
|
1415
|
+
}
|
1412
1416
|
.video-container video {
|
1413
1417
|
width: 100%;
|
1414
1418
|
height: 100%;
|
package/dist/index.js
CHANGED
@@ -12076,7 +12076,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12076
12076
|
const translateY = useMemo(() => {
|
12077
12077
|
var _a;
|
12078
12078
|
return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2'
|
12079
|
-
? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
|
12079
|
+
? `translateY(-${50 + ((_a = videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
|
12080
12080
|
: 'translateY(-50%)';
|
12081
12081
|
}, [videoPostConfig]);
|
12082
12082
|
const blurBgSrc = useMemo(() => {
|
@@ -12188,6 +12188,14 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12188
12188
|
window.removeEventListener('beforeunload', handleBeforeUnload);
|
12189
12189
|
};
|
12190
12190
|
}, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
|
12191
|
+
const blurStyle = useMemo(() => {
|
12192
|
+
return blur
|
12193
|
+
? {
|
12194
|
+
filter: 'blur(10px)',
|
12195
|
+
transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
|
12196
|
+
}
|
12197
|
+
: {};
|
12198
|
+
}, [blur]);
|
12191
12199
|
if (!rec.video) {
|
12192
12200
|
return null;
|
12193
12201
|
}
|
@@ -12197,13 +12205,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12197
12205
|
height,
|
12198
12206
|
overflow: 'hidden'
|
12199
12207
|
} },
|
12200
|
-
React.createElement(FormatImage$1, { src: blurBgSrc, style: {
|
12201
|
-
height: '100%',
|
12202
|
-
width: '100%',
|
12203
|
-
objectFit: 'cover',
|
12204
|
-
filter: blur ? 'blur(10px)' : 'none',
|
12205
|
-
transform: blur ? 'scale(1.2)' : 'none'
|
12206
|
-
} }),
|
12208
|
+
React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
|
12207
12209
|
React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
|
12208
12210
|
React.createElement("div", { style: {
|
12209
12211
|
position: 'absolute',
|
@@ -12215,9 +12217,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12215
12217
|
right: 0
|
12216
12218
|
} },
|
12217
12219
|
React.createElement("div", { style: { position: 'relative' } },
|
12218
|
-
React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
|
12219
|
-
// poster={sxpParameter?.placeholder_image}
|
12220
|
-
muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart, style: {
|
12220
|
+
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: {
|
12221
12221
|
width: '100%',
|
12222
12222
|
height: 'auto',
|
12223
12223
|
objectFit: 'contain'
|
@@ -12229,9 +12229,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
12229
12229
|
height,
|
12230
12230
|
overflow: 'hidden'
|
12231
12231
|
} },
|
12232
|
-
React.createElement("video", { id: `pb-video-${index}`, className: 'clc-pb-video', ref: videoRef, crossOrigin: 'anonymous',
|
12233
|
-
// poster={sxpParameter?.placeholder_image}
|
12234
|
-
muted: true, controls: false, playsInline: true, preload: 'auto', onPause: onPause, onEnded: handleVideoStart }),
|
12232
|
+
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 }),
|
12235
12233
|
renderPoster,
|
12236
12234
|
React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON })))));
|
12237
12235
|
};
|
@@ -12286,7 +12284,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12286
12284
|
* @Author: binruan@chatlabs.com
|
12287
12285
|
* @Date: 2024-03-20 10:27:31
|
12288
12286
|
* @LastEditors: binruan@chatlabs.com
|
12289
|
-
* @LastEditTime: 2024-04-
|
12287
|
+
* @LastEditTime: 2024-04-22 14:04:00
|
12290
12288
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12291
12289
|
*
|
12292
12290
|
*/
|
@@ -12298,22 +12296,24 @@ const Picture = (props) => {
|
|
12298
12296
|
const translateY = useMemo(() => {
|
12299
12297
|
var _a;
|
12300
12298
|
return (imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.mode) === '2'
|
12301
|
-
? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%)`
|
12299
|
+
? `translateY(-${50 + ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.offsetTop) !== null && _a !== void 0 ? _a : 0)}%) translate3d(0px, 0px, 0px)`
|
12302
12300
|
: 'translateY(-50%)';
|
12303
12301
|
}, [imgUrlsPostConfig]);
|
12302
|
+
const blurStyle = useMemo(() => {
|
12303
|
+
return blur
|
12304
|
+
? {
|
12305
|
+
filter: 'blur(10px)',
|
12306
|
+
transform: 'translate3d(0px, 0px, 0px) scale(1.2)'
|
12307
|
+
}
|
12308
|
+
: {};
|
12309
|
+
}, [blur]);
|
12304
12310
|
return (React.createElement("div", { style: {
|
12305
12311
|
overflow: 'hidden',
|
12306
12312
|
height,
|
12307
12313
|
width: '100%',
|
12308
12314
|
position: 'relative'
|
12309
12315
|
} },
|
12310
|
-
React.createElement(FormatImage$1, { src: src, style: {
|
12311
|
-
height: '100%',
|
12312
|
-
width: '100%',
|
12313
|
-
objectFit: 'cover',
|
12314
|
-
filter: blur ? 'blur(10px)' : 'none',
|
12315
|
-
transform: blur ? 'scale(1.2)' : 'none'
|
12316
|
-
} }),
|
12316
|
+
React.createElement(FormatImage$1, { src: src, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) }),
|
12317
12317
|
blur && (React.createElement(FormatImage$1, { src: src, style: {
|
12318
12318
|
width: '100%',
|
12319
12319
|
objectFit: 'contain',
|