pb-sxp-ui 1.15.22-alpha.2 → 1.15.22-alpha.3

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 CHANGED
@@ -17845,6 +17845,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17845
17845
  return;
17846
17846
  if (activeIndex !== index)
17847
17847
  return;
17848
+ setIsPauseVideo(true);
17848
17849
  const item = data[index];
17849
17850
  const videoDuration = ((_b = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
17850
17851
  const videoCurrentTime = ((_d = (_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -17997,7 +17998,8 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17997
17998
  };
17998
17999
  }, [handleClickVideo, isActive]);
17999
18000
  const renderPoster = React.useMemo(() => {
18000
- if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
18001
+ var _a, _b;
18002
+ if ((!((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) && !(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image)) || isLoadFinish) {
18001
18003
  return null;
18002
18004
  }
18003
18005
  return (React.createElement("img", { style: {
@@ -18007,8 +18009,8 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18007
18009
  width: '100%',
18008
18010
  height: '100%',
18009
18011
  objectFit: 'cover'
18010
- }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
18011
- }, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
18012
+ }, src: ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.cover) || (sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image), alt: 'placeholder image' }));
18013
+ }, [rec, isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
18012
18014
  const renderLoading = React.useMemo(() => {
18013
18015
  if (!waiting || !isLoadFinish)
18014
18016
  return;
@@ -18530,7 +18532,7 @@ var NavBack$1 = React.memo(NavBack);
18530
18532
  * @Author: binruan@chatlabs.com
18531
18533
  * @Date: 2024-03-20 10:27:31
18532
18534
  * @LastEditors: binruan@chatlabs.com
18533
- * @LastEditTime: 2025-05-06 18:19:21
18535
+ * @LastEditTime: 2025-05-07 13:33:18
18534
18536
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18535
18537
  *
18536
18538
  */
@@ -18725,7 +18727,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18725
18727
  }, [minusHeight, containerHeight, tagHeight]);
18726
18728
  const visList = React.useMemo(() => {
18727
18729
  var _a;
18728
- const list = activeIndex === 0 && !waterFallData && !isEditor
18730
+ const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
18729
18731
  ? [(_a = data === null || data === void 0 ? void 0 : data[0]) !== null && _a !== void 0 ? _a : null]
18730
18732
  : data === null || data === void 0 ? void 0 : data.map((item, index) => {
18731
18733
  if (activeIndex === index || index - 1 === activeIndex || index + 1 === activeIndex) {
@@ -18737,8 +18739,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18737
18739
  });
18738
18740
  if (!(list === null || list === void 0 ? void 0 : list.length))
18739
18741
  return [];
18740
- return !waterFallData && !isNoMoreData ? list.concat([{ loading: true }]) : list;
18741
- }, [data, activeIndex, waterFallData, isEditor, isNoMoreData]);
18742
+ return !waterFallData && !isNoMoreData && !isDiyH5 ? list.concat([{ loading: true }]) : list;
18743
+ }, [data, activeIndex, waterFallData, isEditor, isNoMoreData, isDiyH5]);
18742
18744
  const renderLogo = React.useMemo(() => {
18743
18745
  var _a, _b, _c, _d;
18744
18746
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {