pb-sxp-ui 1.19.4 → 1.19.5
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 +7 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -11
- 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 +7 -11
- 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 +3 -3
- package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
- package/es/core/context/SxpDataSourceProvider.js +2 -1
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
- package/lib/core/context/SxpDataSourceProvider.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1555,7 +1555,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1555
1555
|
refreshFeSession,
|
|
1556
1556
|
getAccount,
|
|
1557
1557
|
accountSonsent,
|
|
1558
|
-
isDiyH5
|
|
1558
|
+
isDiyH5,
|
|
1559
|
+
pixelPvStatusRef
|
|
1559
1560
|
} }, isShowConsent ? (React.createElement(Consent$4, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
|
|
1560
1561
|
rtcList,
|
|
1561
1562
|
mutateLike: bffMutateLike,
|
|
@@ -18994,10 +18995,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
18994
18995
|
const [isReload, setIsReload] = useState(new Date().getTime());
|
|
18995
18996
|
const skipLinkRef = useRef(false);
|
|
18996
18997
|
const [pageNum, setPageNum] = useState(2);
|
|
18997
|
-
|
|
18998
|
+
useState(false);
|
|
18998
18999
|
const videoWidgetRef = useRef(null);
|
|
18999
19000
|
const fbcRef = useRef('');
|
|
19000
|
-
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 } = useSxpDataSource();
|
|
19001
|
+
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();
|
|
19001
19002
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
|
19002
19003
|
const isShowFingerTip = useMemo(() => {
|
|
19003
19004
|
return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
|
|
@@ -19457,13 +19458,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19457
19458
|
}
|
|
19458
19459
|
window.OptanonWrapper = function () {
|
|
19459
19460
|
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
19460
|
-
if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2)
|
|
19461
|
-
setIsShowCookieSetting(true);
|
|
19462
|
-
// if (!activeGroups?.includes('4')) {
|
|
19463
|
-
// deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19464
|
-
// (window as any)?.fbq('consent', 'revoke');
|
|
19465
|
-
// }
|
|
19466
|
-
}
|
|
19461
|
+
if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) ;
|
|
19467
19462
|
};
|
|
19468
19463
|
const handleClick = (event) => {
|
|
19469
19464
|
var _a, _b;
|
|
@@ -19478,6 +19473,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19478
19473
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19479
19474
|
window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
|
|
19480
19475
|
window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
|
|
19476
|
+
pixelPvStatusRef.current = true;
|
|
19481
19477
|
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19482
19478
|
}
|
|
19483
19479
|
else {
|
|
@@ -19652,7 +19648,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19652
19648
|
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
|
|
19653
19649
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19654
19650
|
openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
|
|
19655
|
-
|
|
19651
|
+
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19656
19652
|
position: 'fixed',
|
|
19657
19653
|
bottom: 0,
|
|
19658
19654
|
left: 0,
|