pb-sxp-ui 1.19.0-alpha.6 → 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 CHANGED
@@ -19487,7 +19487,19 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19487
19487
  }
19488
19488
  else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
19489
19489
  fbcRef.current = getCookie('_fbp');
19490
- deleteCookie('_fbp');
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
19505
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
@@ -19654,8 +19666,26 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19654
19666
  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
19667
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19656
19668
  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: { position: 'fixed', bottom: 0, left: 0, right: 0, width: '100%', zIndex: 10, backgroundColor: '#000', fontSize: 0 } },
19658
- React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: { textDecoration: 'underline', width: 'fit-content', border: 'none', lineHeight: '24px', fontSize: '10px', color: '#fff', padding: '0 20px' } }, "Cookie settings")))));
19669
+ isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19670
+ position: 'fixed',
19671
+ bottom: 0,
19672
+ left: 0,
19673
+ right: 0,
19674
+ width: '100%',
19675
+ zIndex: 10,
19676
+ backgroundColor: '#000',
19677
+ fontSize: 0
19678
+ } },
19679
+ React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: {
19680
+ textDecoration: 'underline',
19681
+ width: 'fit-content',
19682
+ border: 'none',
19683
+ lineHeight: '24px',
19684
+ fontSize: '10px',
19685
+ color: '#fff',
19686
+ padding: '0 20px',
19687
+ fontFamily: 'Helvetica-light'
19688
+ } }, "Cookie settings")))));
19659
19689
  };
19660
19690
  var SxpPageRender$1 = React.memo(SxpPageRender);
19661
19691