pb-sxp-ui 1.19.20 → 1.20.1

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
@@ -10371,7 +10371,7 @@ function useVisibleHeight() {
10371
10371
  const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
10372
10372
  // 当内容高度占屏幕高度90%以上时,使用按比例计算的高度
10373
10373
  // 否则使用实际内容高度
10374
- const isRatio = ratio >= threshold;
10374
+ const isRatio = ratio >= threshold && ratio !== 1;
10375
10375
  const finalHeight = isRatio ? Math.round(h) : visibleHeight;
10376
10376
  const b = screenHeight - Math.round(h);
10377
10377
  if (isRatio) {
@@ -10399,19 +10399,6 @@ function useVisibleHeight() {
10399
10399
  else {
10400
10400
  setBottomHeight(0);
10401
10401
  }
10402
- if ('fundebug' in window) {
10403
- const systemInfo = {
10404
- ratio,
10405
- h,
10406
- finalHeight,
10407
- visibleHeight,
10408
- screenHeight,
10409
- isInstagram,
10410
- isFacebook,
10411
- ua
10412
- };
10413
- window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
10414
- }
10415
10402
  setVisibleHeight(finalHeight);
10416
10403
  }, [getVisibleContentHeight]);
10417
10404
  React.useEffect(() => {
@@ -19423,7 +19410,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
19423
19410
  }
19424
19411
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
19425
19412
  const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
19426
- index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19413
+ index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 1 : 0) &&
19427
19414
  ((_f = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _f === void 0 ? void 0 : _f.includes((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type));
19428
19415
  return (React.createElement(React.Fragment, null,
19429
19416
  isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),