pb-sxp-ui 1.19.0-alpha.4 → 1.19.0-alpha.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.
@@ -26,7 +26,7 @@ import ConsentPopup from './ConsentPopup';
26
26
  import MultiPosts from '../../../materials/sxp/MultiPosts';
27
27
  import { useEditorDataProvider } from '../../../core/context/EditorDataProvider';
28
28
  import NavBack from './NavBack';
29
- import { deleteCookie, getCookie, setCookie } from '../../../core/utils/tool';
29
+ import { deleteCookie, getCookie } from '../../../core/utils/tool';
30
30
  const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], defaultData }) => {
31
31
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
32
32
  const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
@@ -503,12 +503,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
503
503
  return;
504
504
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
505
505
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
506
- setCookie('_fbp', fbcRef.current, 90);
507
506
  }
508
507
  }
509
508
  else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
510
- fbcRef.current = getCookie('_fbc');
511
- deleteCookie('_fbc');
509
+ fbcRef.current = getCookie('_fbp');
510
+ deleteCookie('_fbp');
512
511
  const item = data[activeIndex];
513
512
  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) || '';
514
513
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
@@ -506,12 +506,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
506
506
  return;
507
507
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
508
508
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
509
- (0, tool_1.setCookie)('_fbp', fbcRef.current, 90);
510
509
  }
511
510
  }
512
511
  else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
513
- fbcRef.current = (0, tool_1.getCookie)('_fbc');
514
- (0, tool_1.deleteCookie)('_fbc');
512
+ fbcRef.current = (0, tool_1.getCookie)('_fbp');
513
+ (0, tool_1.deleteCookie)('_fbp');
515
514
  const item = data[activeIndex];
516
515
  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) || '';
517
516
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.19.0-alpha.4",
3
+ "version": "1.19.0-alpha.5",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",