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.js CHANGED
@@ -12119,13 +12119,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12119
12119
  }, [bffEventReport, data, index, isFirstPlay, videoRef]);
12120
12120
  const handLoadeddata = useCallback(() => {
12121
12121
  var _a;
12122
- if (!videoRef || isBgColor || firstFrameSrc || !blur)
12122
+ if (!videoRef || firstFrameSrc || !blur)
12123
12123
  return;
12124
12124
  const videoDomRef = document.getElementById('player-container-id_html5_api');
12125
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !videoDomRef || !canvasRef.current)
12125
+ if (!videoDomRef)
12126
+ return;
12127
+ videoDomRef.style.objectFit = 'contain';
12128
+ if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
12126
12129
  return;
12127
12130
  const setFrameImg = () => {
12128
- videoDomRef.style.objectFit = 'contain';
12129
12131
  const video = videoDomRef;
12130
12132
  const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
12131
12133
  const ctx = canvas.getContext('2d');
@@ -12637,7 +12639,7 @@ const Nudge = ({ nudge }) => {
12637
12639
  * @Author: binruan@chatlabs.com
12638
12640
  * @Date: 2024-01-15 19:03:09
12639
12641
  * @LastEditors: binruan@chatlabs.com
12640
- * @LastEditTime: 2024-04-30 15:43:40
12642
+ * @LastEditTime: 2024-04-30 16:16:05
12641
12643
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12642
12644
  *
12643
12645
  */
@@ -12811,9 +12813,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12811
12813
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
12812
12814
  minusHeight += 45;
12813
12815
  }
12814
- if (tagList.length > 0) {
12815
- minusHeight += 45;
12816
- }
12816
+ // if (tagList.length > 0) {
12817
+ // minusHeight += 45;
12818
+ // }
12817
12819
  return containerHeight - minusHeight;
12818
12820
  }, [globalConfig, containerHeight, tagList]);
12819
12821
  const renderLogo = useMemo(() => {