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.js CHANGED
@@ -10349,7 +10349,7 @@ function useVisibleHeight() {
10349
10349
  const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
10350
10350
  // 当内容高度占屏幕高度90%以上时,使用按比例计算的高度
10351
10351
  // 否则使用实际内容高度
10352
- const isRatio = ratio >= threshold;
10352
+ const isRatio = ratio >= threshold && ratio !== 1;
10353
10353
  const finalHeight = isRatio ? Math.round(h) : visibleHeight;
10354
10354
  const b = screenHeight - Math.round(h);
10355
10355
  if (isRatio) {
@@ -10377,19 +10377,6 @@ function useVisibleHeight() {
10377
10377
  else {
10378
10378
  setBottomHeight(0);
10379
10379
  }
10380
- if ('fundebug' in window) {
10381
- const systemInfo = {
10382
- ratio,
10383
- h,
10384
- finalHeight,
10385
- visibleHeight,
10386
- screenHeight,
10387
- isInstagram,
10388
- isFacebook,
10389
- ua
10390
- };
10391
- window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
10392
- }
10393
10380
  setVisibleHeight(finalHeight);
10394
10381
  }, [getVisibleContentHeight]);
10395
10382
  useEffect(() => {
@@ -19401,7 +19388,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
19401
19388
  }
19402
19389
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
19403
19390
  const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
19404
- index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19391
+ index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 1 : 0) &&
19405
19392
  ((_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));
19406
19393
  return (React.createElement(React.Fragment, null,
19407
19394
  isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),