pb-sxp-ui 1.0.49 → 1.0.50
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 +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +9 -7
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +5 -3
- package/es/core/components/SxpPageRender/index.js +0 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +0 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -12142,13 +12142,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12142
12142
|
}, [bffEventReport, data, index, isFirstPlay, videoRef]);
|
12143
12143
|
const handLoadeddata = React.useCallback(() => {
|
12144
12144
|
var _a;
|
12145
|
-
if (!videoRef ||
|
12145
|
+
if (!videoRef || firstFrameSrc || !blur)
|
12146
12146
|
return;
|
12147
12147
|
const videoDomRef = document.getElementById('player-container-id_html5_api');
|
12148
|
-
if (
|
12148
|
+
if (!videoDomRef)
|
12149
|
+
return;
|
12150
|
+
videoDomRef.style.objectFit = 'contain';
|
12151
|
+
if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
|
12149
12152
|
return;
|
12150
12153
|
const setFrameImg = () => {
|
12151
|
-
videoDomRef.style.objectFit = 'contain';
|
12152
12154
|
const video = videoDomRef;
|
12153
12155
|
const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
|
12154
12156
|
const ctx = canvas.getContext('2d');
|
@@ -12660,7 +12662,7 @@ const Nudge = ({ nudge }) => {
|
|
12660
12662
|
* @Author: binruan@chatlabs.com
|
12661
12663
|
* @Date: 2024-01-15 19:03:09
|
12662
12664
|
* @LastEditors: binruan@chatlabs.com
|
12663
|
-
* @LastEditTime: 2024-04-30
|
12665
|
+
* @LastEditTime: 2024-04-30 16:16:05
|
12664
12666
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12665
12667
|
*
|
12666
12668
|
*/
|
@@ -12834,9 +12836,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12834
12836
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|
12835
12837
|
minusHeight += 45;
|
12836
12838
|
}
|
12837
|
-
if (tagList.length > 0) {
|
12838
|
-
|
12839
|
-
}
|
12839
|
+
// if (tagList.length > 0) {
|
12840
|
+
// minusHeight += 45;
|
12841
|
+
// }
|
12840
12842
|
return containerHeight - minusHeight;
|
12841
12843
|
}, [globalConfig, containerHeight, tagList]);
|
12842
12844
|
const renderLogo = React.useMemo(() => {
|