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
@@ -532,7 +532,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
532
532
|
return jsonParams;
|
533
533
|
}, [fakeUserId]);
|
534
534
|
const bffFbReport = useCallback(({ eventName, product }) => {
|
535
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
535
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
536
536
|
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
537
537
|
return;
|
538
538
|
}
|
@@ -580,20 +580,20 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
580
580
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
581
581
|
}
|
582
582
|
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') {
|
583
|
-
window === null || window === void 0 ? void 0 : window.Northbeam.trackPageView();
|
583
|
+
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
584
584
|
}
|
585
|
-
const converApiEventParamsJson = (
|
585
|
+
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|
586
586
|
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
587
587
|
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
588
588
|
const params = {};
|
589
589
|
const queryString = location.search.slice(1);
|
590
|
-
(
|
590
|
+
(_j = splitUrlParams(queryString)) === null || _j === void 0 ? void 0 : _j.forEach((val) => {
|
591
591
|
const key = val.split('=')[0];
|
592
592
|
const value = val.split('=')[1];
|
593
593
|
params[key] = value;
|
594
594
|
});
|
595
595
|
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
596
|
-
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(
|
596
|
+
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)}` : ''}`, {
|
597
597
|
method: 'POST',
|
598
598
|
body,
|
599
599
|
type: 'beacon'
|
@@ -535,7 +535,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
535
535
|
return jsonParams;
|
536
536
|
}, [fakeUserId]);
|
537
537
|
const bffFbReport = (0, react_1.useCallback)(({ eventName, product }) => {
|
538
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
538
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
539
539
|
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
540
540
|
return;
|
541
541
|
}
|
@@ -583,20 +583,20 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
583
583
|
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, getEventParamsByJson(snapchatPixelEventParamsJson, product));
|
584
584
|
}
|
585
585
|
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') {
|
586
|
-
window === null || window === void 0 ? void 0 : window.Northbeam.trackPageView();
|
586
|
+
(_g = window === null || window === void 0 ? void 0 : window.Northbeam) === null || _g === void 0 ? void 0 : _g.trackPageView();
|
587
587
|
}
|
588
|
-
const converApiEventParamsJson = (
|
588
|
+
const converApiEventParamsJson = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _h === void 0 ? void 0 : _h[eventName];
|
589
589
|
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
590
590
|
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
591
591
|
const params = {};
|
592
592
|
const queryString = location.search.slice(1);
|
593
|
-
(
|
593
|
+
(_j = (0, tool_1.splitUrlParams)(queryString)) === null || _j === void 0 ? void 0 : _j.forEach((val) => {
|
594
594
|
const key = val.split('=')[0];
|
595
595
|
const value = val.split('=')[1];
|
596
596
|
params[key] = value;
|
597
597
|
});
|
598
598
|
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
599
|
-
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(
|
599
|
+
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)}` : ''}`, {
|
600
600
|
method: 'POST',
|
601
601
|
body,
|
602
602
|
type: 'beacon'
|