pb-sxp-ui 1.16.24-alpha.1 → 1.16.24
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/pb-ui.js
CHANGED
@@ -932,19 +932,19 @@
|
|
932
932
|
originalOpen.apply(this, arguments);
|
933
933
|
};
|
934
934
|
XMLHttpRequest.prototype.send = function (body) {
|
935
|
+
var _a;
|
935
936
|
if (this._url && typeof this._url === 'string' && this._url.includes('https://i.giesswein.com/nb-collector')) {
|
936
937
|
if (body && typeof body === 'string') {
|
937
938
|
try {
|
938
939
|
const payload = JSON.parse(body);
|
939
940
|
if (payload && Array.isArray(payload.data)) {
|
940
|
-
payload.data
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
});
|
941
|
+
const item = payload.data[((_a = payload.data) === null || _a === void 0 ? void 0 : _a.length) - 1];
|
942
|
+
if (item && item.e) {
|
943
|
+
bffCollectEvent({
|
944
|
+
eventName: item.e,
|
945
|
+
eventSource: 'Northbeam Pixel'
|
946
|
+
});
|
947
|
+
}
|
948
948
|
}
|
949
949
|
}
|
950
950
|
catch (e) {
|
@@ -1241,7 +1241,6 @@
|
|
1241
1241
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
1242
1242
|
}
|
1243
1243
|
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') {
|
1244
|
-
console.log('-----------------trackPageView触发了------------------');
|
1245
1244
|
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
1246
1245
|
}
|
1247
1246
|
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|