pb-sxp-ui 1.19.0-alpha.4 → 1.19.0-alpha.6
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 +3 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -32
- 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 +3 -32
- 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 -4
- package/lib/core/components/SxpPageRender/index.js +2 -3
- package/package.json +1 -1
|
@@ -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
|
|
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('
|
|
511
|
-
deleteCookie('
|
|
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)('
|
|
514
|
-
(0, tool_1.deleteCookie)('
|
|
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({
|