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/pb-ui.js
CHANGED
|
@@ -19085,7 +19085,7 @@ Made in Italy` })));
|
|
|
19085
19085
|
const fbcRef = React.useRef('');
|
|
19086
19086
|
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();
|
|
19087
19087
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
|
19088
|
-
|
|
19088
|
+
useVisibleHeight();
|
|
19089
19089
|
const isShowFingerTip = React.useMemo(() => {
|
|
19090
19090
|
return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
|
|
19091
19091
|
}, [data, loading, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip]);
|
|
@@ -19255,6 +19255,13 @@ Made in Italy` })));
|
|
|
19255
19255
|
return minusHeight;
|
|
19256
19256
|
}, [globalConfig]);
|
|
19257
19257
|
const getHeightWithSafeArea = () => {
|
|
19258
|
+
const root = document.documentElement;
|
|
19259
|
+
const value = getComputedStyle(root).getPropertyValue('--safe-area-inset-bottom');
|
|
19260
|
+
// 处理可能的值(可能是 '0px', '34px' 等)
|
|
19261
|
+
const numericValue = parseInt(value) || 0;
|
|
19262
|
+
return numericValue;
|
|
19263
|
+
};
|
|
19264
|
+
const getHeightWithSafeArea2 = () => {
|
|
19258
19265
|
// 获取窗口高度
|
|
19259
19266
|
// 动态检测安全区域
|
|
19260
19267
|
const detector = document.createElement('div');
|
|
@@ -19270,8 +19277,8 @@ Made in Italy` })));
|
|
|
19270
19277
|
return safeAreaBottom;
|
|
19271
19278
|
};
|
|
19272
19279
|
const height = React.useMemo(() => {
|
|
19273
|
-
return
|
|
19274
|
-
}, [minusHeight,
|
|
19280
|
+
return containerHeight - minusHeight - tagHeight - getHeightWithSafeArea2();
|
|
19281
|
+
}, [minusHeight, containerHeight, tagHeight, getHeightWithSafeArea2]);
|
|
19275
19282
|
const visList = React.useMemo(() => {
|
|
19276
19283
|
var _a;
|
|
19277
19284
|
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|