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.js CHANGED
@@ -17823,6 +17823,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17823
17823
  return;
17824
17824
  if (activeIndex !== index)
17825
17825
  return;
17826
+ setIsPauseVideo(true);
17826
17827
  const item = data[index];
17827
17828
  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);
17828
17829
  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);
@@ -17975,7 +17976,8 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17975
17976
  };
17976
17977
  }, [handleClickVideo, isActive]);
17977
17978
  const renderPoster = useMemo(() => {
17978
- if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
17979
+ var _a, _b;
17980
+ 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) {
17979
17981
  return null;
17980
17982
  }
17981
17983
  return (React.createElement("img", { style: {
@@ -17985,8 +17987,8 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17985
17987
  width: '100%',
17986
17988
  height: '100%',
17987
17989
  objectFit: 'cover'
17988
- }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image, alt: 'placeholder image' }));
17989
- }, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
17990
+ }, 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' }));
17991
+ }, [rec, isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
17990
17992
  const renderLoading = useMemo(() => {
17991
17993
  if (!waiting || !isLoadFinish)
17992
17994
  return;
@@ -18508,7 +18510,7 @@ var NavBack$1 = memo(NavBack);
18508
18510
  * @Author: binruan@chatlabs.com
18509
18511
  * @Date: 2024-03-20 10:27:31
18510
18512
  * @LastEditors: binruan@chatlabs.com
18511
- * @LastEditTime: 2025-05-06 18:19:21
18513
+ * @LastEditTime: 2025-05-07 13:33:18
18512
18514
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18513
18515
  *
18514
18516
  */
@@ -18703,7 +18705,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18703
18705
  }, [minusHeight, containerHeight, tagHeight]);
18704
18706
  const visList = useMemo(() => {
18705
18707
  var _a;
18706
- const list = activeIndex === 0 && !waterFallData && !isEditor
18708
+ const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
18707
18709
  ? [(_a = data === null || data === void 0 ? void 0 : data[0]) !== null && _a !== void 0 ? _a : null]
18708
18710
  : data === null || data === void 0 ? void 0 : data.map((item, index) => {
18709
18711
  if (activeIndex === index || index - 1 === activeIndex || index + 1 === activeIndex) {
@@ -18715,8 +18717,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18715
18717
  });
18716
18718
  if (!(list === null || list === void 0 ? void 0 : list.length))
18717
18719
  return [];
18718
- return !waterFallData && !isNoMoreData ? list.concat([{ loading: true }]) : list;
18719
- }, [data, activeIndex, waterFallData, isEditor, isNoMoreData]);
18720
+ return !waterFallData && !isNoMoreData && !isDiyH5 ? list.concat([{ loading: true }]) : list;
18721
+ }, [data, activeIndex, waterFallData, isEditor, isNoMoreData, isDiyH5]);
18720
18722
  const renderLogo = useMemo(() => {
18721
18723
  var _a, _b, _c, _d;
18722
18724
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {