pb-sxp-ui 1.19.0-alpha.6 → 1.19.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 +44 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -12
- 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 +44 -12
- 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 +42 -12
- package/lib/core/components/SxpPageRender/index.js +42 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19485,19 +19485,33 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19485
19485
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19486
19486
|
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19487
19487
|
}
|
|
19488
|
-
else
|
|
19488
|
+
else {
|
|
19489
19489
|
fbcRef.current = getCookie('_fbp');
|
|
19490
|
-
|
|
19490
|
+
function extractRootDomain(hostname) {
|
|
19491
|
+
// 处理特殊情况
|
|
19492
|
+
if (!hostname || hostname.indexOf('.') === -1) {
|
|
19493
|
+
return '';
|
|
19494
|
+
}
|
|
19495
|
+
const parts = hostname.split('.');
|
|
19496
|
+
// 对于标准的域名格式(如 xxx.yyy.zzz)
|
|
19497
|
+
if (parts.length >= 2) {
|
|
19498
|
+
return '.' + parts.slice(-2).join('.');
|
|
19499
|
+
}
|
|
19500
|
+
return '';
|
|
19501
|
+
}
|
|
19502
|
+
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19491
19503
|
const item = data[activeIndex];
|
|
19492
19504
|
const traceInfo = ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || '';
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19505
|
+
if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19506
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19507
|
+
eventInfo: {
|
|
19508
|
+
eventSubject: 'refuseCookie',
|
|
19509
|
+
eventDescription: 'refuseCookie',
|
|
19510
|
+
traceInfo
|
|
19511
|
+
},
|
|
19512
|
+
isActiveTargetingCookie: false
|
|
19513
|
+
});
|
|
19514
|
+
}
|
|
19501
19515
|
}
|
|
19502
19516
|
};
|
|
19503
19517
|
}
|
|
@@ -19654,8 +19668,26 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19654
19668
|
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)),
|
|
19655
19669
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19656
19670
|
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 } }))))),
|
|
19657
|
-
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19658
|
-
|
|
19671
|
+
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19672
|
+
position: 'fixed',
|
|
19673
|
+
bottom: 0,
|
|
19674
|
+
left: 0,
|
|
19675
|
+
right: 0,
|
|
19676
|
+
width: '100%',
|
|
19677
|
+
zIndex: 10,
|
|
19678
|
+
backgroundColor: '#000',
|
|
19679
|
+
fontSize: 0
|
|
19680
|
+
} },
|
|
19681
|
+
React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: {
|
|
19682
|
+
textDecoration: 'underline',
|
|
19683
|
+
width: 'fit-content',
|
|
19684
|
+
border: 'none',
|
|
19685
|
+
lineHeight: '24px',
|
|
19686
|
+
fontSize: '10px',
|
|
19687
|
+
color: '#fff',
|
|
19688
|
+
padding: '0 20px',
|
|
19689
|
+
fontFamily: 'Helvetica-light'
|
|
19690
|
+
} }, "Cookie settings")))));
|
|
19659
19691
|
};
|
|
19660
19692
|
var SxpPageRender$1 = React.memo(SxpPageRender);
|
|
19661
19693
|
|