pb-sxp-ui 1.20.39 → 1.20.40
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1450,7 +1450,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1450
1450
|
const bffEventReport = React.useCallback(({ userInfo, eventInfo, reportLayId = true, isActiveTargetingCookie = true }) => {
|
|
1451
1451
|
var _a, _b;
|
|
1452
1452
|
// 关闭 BFF 事件上报
|
|
1453
|
-
|
|
1453
|
+
// 注意:enablePreview 必须显式为 true 才禁用上报,undefined 或 false 都应该启用上报
|
|
1454
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) === true || (isActiveTargetingCookie && getTargetingCookie())) {
|
|
1454
1455
|
return;
|
|
1455
1456
|
}
|
|
1456
1457
|
// 用户信息都是公共的
|
|
@@ -1610,7 +1611,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1610
1611
|
const bffFbReport = React.useCallback((_a) => {
|
|
1611
1612
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1612
1613
|
var { eventName } = _a, props = __rest(_a, ["eventName"]);
|
|
1613
|
-
|
|
1614
|
+
// 注意:enablePreview 必须显式为 true 才禁用上报,undefined 或 false 都应该启用上报
|
|
1615
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) === true || getTargetingCookie()) {
|
|
1614
1616
|
return;
|
|
1615
1617
|
}
|
|
1616
1618
|
let isPushState = false;
|