pb-sxp-ui 1.19.10 → 1.19.11
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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +10 -3
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +8 -2
- package/lib/core/components/SxpPageRender/index.js +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19092,7 +19092,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19092
19092
|
const fbcRef = React.useRef('');
|
|
19093
19093
|
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5, pixelPvStatusRef } = useSxpDataSource();
|
|
19094
19094
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
|
19095
|
-
|
|
19095
|
+
useVisibleHeight();
|
|
19096
19096
|
const isShowFingerTip = React.useMemo(() => {
|
|
19097
19097
|
return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
|
|
19098
19098
|
}, [data, loading, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip]);
|
|
@@ -19262,6 +19262,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19262
19262
|
return minusHeight;
|
|
19263
19263
|
}, [globalConfig]);
|
|
19264
19264
|
const getHeightWithSafeArea = () => {
|
|
19265
|
+
const root = document.documentElement;
|
|
19266
|
+
const value = getComputedStyle(root).getPropertyValue('--safe-area-inset-bottom');
|
|
19267
|
+
// 处理可能的值(可能是 '0px', '34px' 等)
|
|
19268
|
+
const numericValue = parseInt(value) || 0;
|
|
19269
|
+
return numericValue;
|
|
19270
|
+
};
|
|
19271
|
+
const getHeightWithSafeArea2 = () => {
|
|
19265
19272
|
// 获取窗口高度
|
|
19266
19273
|
// 动态检测安全区域
|
|
19267
19274
|
const detector = document.createElement('div');
|
|
@@ -19277,8 +19284,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19277
19284
|
return safeAreaBottom;
|
|
19278
19285
|
};
|
|
19279
19286
|
const height = React.useMemo(() => {
|
|
19280
|
-
return
|
|
19281
|
-
}, [minusHeight,
|
|
19287
|
+
return containerHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
|
|
19288
|
+
}, [minusHeight, containerHeight, tagHeight, getHeightWithSafeArea2]);
|
|
19282
19289
|
const visList = React.useMemo(() => {
|
|
19283
19290
|
var _a;
|
|
19284
19291
|
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|