pb-sxp-ui 1.16.24-alpha.1 → 1.16.24-alpha.2
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 +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -9
- 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 +8 -9
- 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/context/SxpDataSourceProvider.js +8 -9
- package/lib/core/context/SxpDataSourceProvider.js +8 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -939,19 +939,19 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
939
939
|
originalOpen.apply(this, arguments);
|
940
940
|
};
|
941
941
|
XMLHttpRequest.prototype.send = function (body) {
|
942
|
+
var _a;
|
942
943
|
if (this._url && typeof this._url === 'string' && this._url.includes('https://i.giesswein.com/nb-collector')) {
|
943
944
|
if (body && typeof body === 'string') {
|
944
945
|
try {
|
945
946
|
const payload = JSON.parse(body);
|
946
947
|
if (payload && Array.isArray(payload.data)) {
|
947
|
-
payload.data
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
});
|
948
|
+
const item = payload.data[((_a = payload.data) === null || _a === void 0 ? void 0 : _a.length) - 1];
|
949
|
+
if (item && item.e) {
|
950
|
+
bffCollectEvent({
|
951
|
+
eventName: item.e,
|
952
|
+
eventSource: 'Northbeam Pixel'
|
953
|
+
});
|
954
|
+
}
|
955
955
|
}
|
956
956
|
}
|
957
957
|
catch (e) {
|
@@ -1248,7 +1248,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1248
1248
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
1249
1249
|
}
|
1250
1250
|
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.Northbeam) === 'object' && typeof ((_f = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _f === void 0 ? void 0 : _f.trackPageView) === 'function') {
|
1251
|
-
console.log('-----------------trackPageView触发了------------------');
|
1252
1251
|
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
1253
1252
|
}
|
1254
1253
|
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|