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.
@@ -84,13 +84,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
84
84
  }, [bffEventReport, data, index, isFirstPlay, videoRef]);
85
85
  const handLoadeddata = useCallback(() => {
86
86
  var _a;
87
- if (!videoRef || isBgColor || firstFrameSrc || !blur)
87
+ if (!videoRef || firstFrameSrc || !blur)
88
88
  return;
89
89
  const videoDomRef = document.getElementById('player-container-id_html5_api');
90
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !videoDomRef || !canvasRef.current)
90
+ if (!videoDomRef)
91
+ return;
92
+ videoDomRef.style.objectFit = 'contain';
93
+ if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
91
94
  return;
92
95
  const setFrameImg = () => {
93
- videoDomRef.style.objectFit = 'contain';
94
96
  const video = videoDomRef;
95
97
  const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
96
98
  const ctx = canvas.getContext('2d');
@@ -166,9 +166,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
166
166
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
167
167
  minusHeight += 45;
168
168
  }
169
- if (tagList.length > 0) {
170
- minusHeight += 45;
171
- }
172
169
  return containerHeight - minusHeight;
173
170
  }, [globalConfig, containerHeight, tagList]);
174
171
  const renderLogo = useMemo(() => {
@@ -87,13 +87,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
87
87
  }, [bffEventReport, data, index, isFirstPlay, videoRef]);
88
88
  const handLoadeddata = (0, react_1.useCallback)(() => {
89
89
  var _a;
90
- if (!videoRef || isBgColor || firstFrameSrc || !blur)
90
+ if (!videoRef || firstFrameSrc || !blur)
91
91
  return;
92
92
  const videoDomRef = document.getElementById('player-container-id_html5_api');
93
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !videoDomRef || !canvasRef.current)
93
+ if (!videoDomRef)
94
+ return;
95
+ videoDomRef.style.objectFit = 'contain';
96
+ if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
94
97
  return;
95
98
  const setFrameImg = () => {
96
- videoDomRef.style.objectFit = 'contain';
97
99
  const video = videoDomRef;
98
100
  const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
99
101
  const ctx = canvas.getContext('2d');
@@ -169,9 +169,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
169
169
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
170
170
  minusHeight += 45;
171
171
  }
172
- if (tagList.length > 0) {
173
- minusHeight += 45;
174
- }
175
172
  return containerHeight - minusHeight;
176
173
  }, [globalConfig, containerHeight, tagList]);
177
174
  const renderLogo = (0, react_1.useMemo)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",