pb-sxp-ui 1.16.20 → 1.16.21
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- 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 +6 -6
- 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 +6 -6
- package/lib/core/context/SxpDataSourceProvider.js +6 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1185,7 +1185,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1185
1185
|
return jsonParams;
|
1186
1186
|
}, [fakeUserId]);
|
1187
1187
|
const bffFbReport = React.useCallback(({ eventName, product }) => {
|
1188
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
1188
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
1189
1189
|
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
1190
1190
|
return;
|
1191
1191
|
}
|
@@ -1232,21 +1232,21 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1232
1232
|
if ((snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name) && typeof (window === null || window === void 0 ? void 0 : window.snaptr) === 'function') {
|
1233
1233
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
1234
1234
|
}
|
1235
|
-
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.Northbeam) === '
|
1236
|
-
window === null || window === void 0 ? void 0 : window.Northbeam.trackPageView();
|
1235
|
+
if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.Northbeam) === 'function' && typeof ((_f = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _f === void 0 ? void 0 : _f.trackPageView) === 'function') {
|
1236
|
+
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
1237
1237
|
}
|
1238
|
-
const converApiEventParamsJson = (
|
1238
|
+
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|
1239
1239
|
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
1240
1240
|
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
1241
1241
|
const params = {};
|
1242
1242
|
const queryString = location.search.slice(1);
|
1243
|
-
(
|
1243
|
+
(_j = splitUrlParams(queryString)) === null || _j === void 0 ? void 0 : _j.forEach((val) => {
|
1244
1244
|
const key = val.split('=')[0];
|
1245
1245
|
const value = val.split('=')[1];
|
1246
1246
|
params[key] = value;
|
1247
1247
|
});
|
1248
1248
|
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
1249
|
-
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(
|
1249
|
+
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)}` : ''}`, {
|
1250
1250
|
method: 'POST',
|
1251
1251
|
body,
|
1252
1252
|
type: 'beacon'
|