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.
@@ -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 = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _g === void 0 ? void 0 : _g[eventName];
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
- (_h = splitUrlParams(queryString)) === null || _h === void 0 ? void 0 : _h.forEach((val) => {
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/${(_j = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _j === void 0 ? void 0 : _j['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
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 = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _g === void 0 ? void 0 : _g[eventName];
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
- (_h = (0, tool_1.splitUrlParams)(queryString)) === null || _h === void 0 ? void 0 : _h.forEach((val) => {
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/${(_j = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _j === void 0 ? void 0 : _j['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.16.20",
3
+ "version": "1.16.22",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",