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
package/dist/index.cjs
CHANGED
|
@@ -307,33 +307,6 @@ function deleteCookie(name, path = '/', domain = '') {
|
|
|
307
307
|
document.cookie = `${name}=; ${expiration}${pathPart}${domainPart}`;
|
|
308
308
|
console.log(`已尝试删除Cookie: ${name}`);
|
|
309
309
|
}
|
|
310
|
-
function setCookie(name, value, days = 0, path = '/', domain = '', secure = false, sameSite = 'Lax') {
|
|
311
|
-
let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
|
|
312
|
-
// 设置过期时间
|
|
313
|
-
if (days) {
|
|
314
|
-
const date = new Date();
|
|
315
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
316
|
-
cookieString += `; expires=${date.toUTCString()}`;
|
|
317
|
-
}
|
|
318
|
-
// 设置路径
|
|
319
|
-
if (path) {
|
|
320
|
-
cookieString += `; path=${path}`;
|
|
321
|
-
}
|
|
322
|
-
// 设置域名
|
|
323
|
-
if (domain) {
|
|
324
|
-
cookieString += `; domain=${domain}`;
|
|
325
|
-
}
|
|
326
|
-
// 设置Secure标志
|
|
327
|
-
if (secure) {
|
|
328
|
-
cookieString += '; secure';
|
|
329
|
-
}
|
|
330
|
-
// 设置SameSite属性
|
|
331
|
-
if (sameSite) {
|
|
332
|
-
cookieString += `; samesite=${sameSite}`;
|
|
333
|
-
}
|
|
334
|
-
// 设置Cookie
|
|
335
|
-
document.cookie = cookieString;
|
|
336
|
-
}
|
|
337
310
|
|
|
338
311
|
function unzip(b64Data) {
|
|
339
312
|
const strData = atob(b64Data);
|
|
@@ -19510,13 +19483,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19510
19483
|
if (!activeGroups)
|
|
19511
19484
|
return;
|
|
19512
19485
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19513
|
-
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')))
|
|
19514
|
-
setCookie('_fbp', fbcRef.current, 90);
|
|
19515
|
-
}
|
|
19486
|
+
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19516
19487
|
}
|
|
19517
19488
|
else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19518
|
-
fbcRef.current = getCookie('
|
|
19519
|
-
deleteCookie('
|
|
19489
|
+
fbcRef.current = getCookie('_fbp');
|
|
19490
|
+
deleteCookie('_fbp');
|
|
19520
19491
|
const item = data[activeIndex];
|
|
19521
19492
|
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) || '';
|
|
19522
19493
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|