pb-sxp-ui 1.16.20 → 1.16.22
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- 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 +5 -5
- 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 +5 -5
- package/lib/core/context/SxpDataSourceProvider.js +5 -5
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -1178,7 +1178,7 @@
|
|
1178
1178
|
return jsonParams;
|
1179
1179
|
}, [fakeUserId]);
|
1180
1180
|
const bffFbReport = React.useCallback(({ eventName, product }) => {
|
1181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
1181
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
1182
1182
|
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
1183
1183
|
return;
|
1184
1184
|
}
|
@@ -1226,20 +1226,20 @@
|
|
1226
1226
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
1227
1227
|
}
|
1228
1228
|
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') {
|
1229
|
-
window === null || window === void 0 ? void 0 : window.Northbeam.trackPageView();
|
1229
|
+
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
1230
1230
|
}
|
1231
|
-
const converApiEventParamsJson = (
|
1231
|
+
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|
1232
1232
|
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
1233
1233
|
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
1234
1234
|
const params = {};
|
1235
1235
|
const queryString = location.search.slice(1);
|
1236
|
-
(
|
1236
|
+
(_j = splitUrlParams(queryString)) === null || _j === void 0 ? void 0 : _j.forEach((val) => {
|
1237
1237
|
const key = val.split('=')[0];
|
1238
1238
|
const value = val.split('=')[1];
|
1239
1239
|
params[key] = value;
|
1240
1240
|
});
|
1241
1241
|
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
1242
|
-
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(
|
1242
|
+
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(_k = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _k === void 0 ? void 0 : _k['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
|
1243
1243
|
method: 'POST',
|
1244
1244
|
body,
|
1245
1245
|
type: 'beacon'
|