pb-sxp-ui 1.19.0-alpha.5 → 1.19.0
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 +33 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -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 +33 -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 +31 -3
- package/lib/core/components/SxpPageRender/index.js +31 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19465,7 +19465,19 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19465
19465
|
}
|
|
19466
19466
|
else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19467
19467
|
fbcRef.current = getCookie('_fbp');
|
|
19468
|
-
|
|
19468
|
+
function extractRootDomain(hostname) {
|
|
19469
|
+
// 处理特殊情况
|
|
19470
|
+
if (!hostname || hostname.indexOf('.') === -1) {
|
|
19471
|
+
return '';
|
|
19472
|
+
}
|
|
19473
|
+
const parts = hostname.split('.');
|
|
19474
|
+
// 对于标准的域名格式(如 xxx.yyy.zzz)
|
|
19475
|
+
if (parts.length >= 2) {
|
|
19476
|
+
return '.' + parts.slice(-2).join('.');
|
|
19477
|
+
}
|
|
19478
|
+
return '';
|
|
19479
|
+
}
|
|
19480
|
+
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19469
19481
|
const item = data[activeIndex];
|
|
19470
19482
|
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) || '';
|
|
19471
19483
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
@@ -19632,8 +19644,26 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19632
19644
|
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)),
|
|
19633
19645
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19634
19646
|
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 } }))))),
|
|
19635
|
-
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19636
|
-
|
|
19647
|
+
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19648
|
+
position: 'fixed',
|
|
19649
|
+
bottom: 0,
|
|
19650
|
+
left: 0,
|
|
19651
|
+
right: 0,
|
|
19652
|
+
width: '100%',
|
|
19653
|
+
zIndex: 10,
|
|
19654
|
+
backgroundColor: '#000',
|
|
19655
|
+
fontSize: 0
|
|
19656
|
+
} },
|
|
19657
|
+
React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: {
|
|
19658
|
+
textDecoration: 'underline',
|
|
19659
|
+
width: 'fit-content',
|
|
19660
|
+
border: 'none',
|
|
19661
|
+
lineHeight: '24px',
|
|
19662
|
+
fontSize: '10px',
|
|
19663
|
+
color: '#fff',
|
|
19664
|
+
padding: '0 20px',
|
|
19665
|
+
fontFamily: 'Helvetica-light'
|
|
19666
|
+
} }, "Cookie settings")))));
|
|
19637
19667
|
};
|
|
19638
19668
|
var SxpPageRender$1 = memo(SxpPageRender);
|
|
19639
19669
|
|