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 +2 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -15
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +1 -1
- package/es/core/hooks/useVisibleHeight.js +1 -14
- package/lib/core/components/SxpPageRender/index.js +1 -1
- package/lib/core/hooks/useVisibleHeight.js +1 -14
- package/package.json +1 -1
|
@@ -318,7 +318,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
318
318
|
}
|
|
319
319
|
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
320
320
|
const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
|
|
321
|
-
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ?
|
|
321
|
+
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 1 : 0) &&
|
|
322
322
|
((_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));
|
|
323
323
|
return (React.createElement(React.Fragment, null,
|
|
324
324
|
isNineProduct && (React.createElement(RenderCard, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
|
@@ -31,7 +31,7 @@ export function useVisibleHeight() {
|
|
|
31
31
|
const ratio = visibleHeight / screenHeight;
|
|
32
32
|
const threshold = 0.9;
|
|
33
33
|
const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
|
|
34
|
-
const isRatio = ratio >= threshold;
|
|
34
|
+
const isRatio = ratio >= threshold && ratio !== 1;
|
|
35
35
|
const finalHeight = isRatio ? Math.round(h) : visibleHeight;
|
|
36
36
|
const b = screenHeight - Math.round(h);
|
|
37
37
|
if (isRatio) {
|
|
@@ -59,19 +59,6 @@ export function useVisibleHeight() {
|
|
|
59
59
|
else {
|
|
60
60
|
setBottomHeight(0);
|
|
61
61
|
}
|
|
62
|
-
if ('fundebug' in window) {
|
|
63
|
-
const systemInfo = {
|
|
64
|
-
ratio,
|
|
65
|
-
h,
|
|
66
|
-
finalHeight,
|
|
67
|
-
visibleHeight,
|
|
68
|
-
screenHeight,
|
|
69
|
-
isInstagram,
|
|
70
|
-
isFacebook,
|
|
71
|
-
ua
|
|
72
|
-
};
|
|
73
|
-
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
|
|
74
|
-
}
|
|
75
62
|
setVisibleHeight(finalHeight);
|
|
76
63
|
}, [getVisibleContentHeight]);
|
|
77
64
|
useEffect(() => {
|
|
@@ -321,7 +321,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
321
321
|
}
|
|
322
322
|
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
323
323
|
const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
|
|
324
|
-
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ?
|
|
324
|
+
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 1 : 0) &&
|
|
325
325
|
((_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));
|
|
326
326
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
327
327
|
isNineProduct && (react_1.default.createElement(RenderCard_1.default, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
|
@@ -34,7 +34,7 @@ function useVisibleHeight() {
|
|
|
34
34
|
const ratio = visibleHeight / screenHeight;
|
|
35
35
|
const threshold = 0.9;
|
|
36
36
|
const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
|
|
37
|
-
const isRatio = ratio >= threshold;
|
|
37
|
+
const isRatio = ratio >= threshold && ratio !== 1;
|
|
38
38
|
const finalHeight = isRatio ? Math.round(h) : visibleHeight;
|
|
39
39
|
const b = screenHeight - Math.round(h);
|
|
40
40
|
if (isRatio) {
|
|
@@ -62,19 +62,6 @@ function useVisibleHeight() {
|
|
|
62
62
|
else {
|
|
63
63
|
setBottomHeight(0);
|
|
64
64
|
}
|
|
65
|
-
if ('fundebug' in window) {
|
|
66
|
-
const systemInfo = {
|
|
67
|
-
ratio,
|
|
68
|
-
h,
|
|
69
|
-
finalHeight,
|
|
70
|
-
visibleHeight,
|
|
71
|
-
screenHeight,
|
|
72
|
-
isInstagram,
|
|
73
|
-
isFacebook,
|
|
74
|
-
ua
|
|
75
|
-
};
|
|
76
|
-
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
|
|
77
|
-
}
|
|
78
65
|
setVisibleHeight(finalHeight);
|
|
79
66
|
}, [getVisibleContentHeight]);
|
|
80
67
|
(0, react_1.useEffect)(() => {
|