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.
- 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/pb-ui.js
CHANGED
|
@@ -300,33 +300,6 @@
|
|
|
300
300
|
document.cookie = `${name}=; ${expiration}${pathPart}${domainPart}`;
|
|
301
301
|
console.log(`已尝试删除Cookie: ${name}`);
|
|
302
302
|
}
|
|
303
|
-
function setCookie(name, value, days = 0, path = '/', domain = '', secure = false, sameSite = 'Lax') {
|
|
304
|
-
let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
|
|
305
|
-
// 设置过期时间
|
|
306
|
-
if (days) {
|
|
307
|
-
const date = new Date();
|
|
308
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
309
|
-
cookieString += `; expires=${date.toUTCString()}`;
|
|
310
|
-
}
|
|
311
|
-
// 设置路径
|
|
312
|
-
if (path) {
|
|
313
|
-
cookieString += `; path=${path}`;
|
|
314
|
-
}
|
|
315
|
-
// 设置域名
|
|
316
|
-
if (domain) {
|
|
317
|
-
cookieString += `; domain=${domain}`;
|
|
318
|
-
}
|
|
319
|
-
// 设置Secure标志
|
|
320
|
-
if (secure) {
|
|
321
|
-
cookieString += '; secure';
|
|
322
|
-
}
|
|
323
|
-
// 设置SameSite属性
|
|
324
|
-
if (sameSite) {
|
|
325
|
-
cookieString += `; samesite=${sameSite}`;
|
|
326
|
-
}
|
|
327
|
-
// 设置Cookie
|
|
328
|
-
document.cookie = cookieString;
|
|
329
|
-
}
|
|
330
303
|
|
|
331
304
|
function unzip(b64Data) {
|
|
332
305
|
const strData = atob(b64Data);
|
|
@@ -19503,13 +19476,11 @@ Made in Italy` })));
|
|
|
19503
19476
|
if (!activeGroups)
|
|
19504
19477
|
return;
|
|
19505
19478
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19506
|
-
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')))
|
|
19507
|
-
setCookie('_fbp', fbcRef.current, 90);
|
|
19508
|
-
}
|
|
19479
|
+
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19509
19480
|
}
|
|
19510
19481
|
else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19511
|
-
fbcRef.current = getCookie('
|
|
19512
|
-
deleteCookie('
|
|
19482
|
+
fbcRef.current = getCookie('_fbp');
|
|
19483
|
+
deleteCookie('_fbp');
|
|
19513
19484
|
const item = data[activeIndex];
|
|
19514
19485
|
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) || '';
|
|
19515
19486
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|