pb-sxp-ui 1.15.28 → 1.15.30
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 +14 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -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 +14 -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/components/SxpPageRender/VideoWidget/index.js +2 -2
- package/es/core/components/SxpPageRender/index.d.ts +2 -0
- package/es/core/context/SxpDataSourceProvider.js +12 -4
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +2 -2
- package/lib/core/components/SxpPageRender/index.d.ts +2 -0
- package/lib/core/context/SxpDataSourceProvider.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -998,7 +998,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
998
998
|
return jsonParams;
|
999
999
|
}, [fakeUserId]);
|
1000
1000
|
const bffFbReport = useCallback(({ eventName, product }) => {
|
1001
|
-
var _a, _b, _c, _d;
|
1001
|
+
var _a, _b, _c, _d, _e, _f;
|
1002
1002
|
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
1003
1003
|
return;
|
1004
1004
|
}
|
@@ -1030,18 +1030,26 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1030
1030
|
else if (eventName === 'PageView' && typeof (window === null || window === void 0 ? void 0 : window.gtag) === 'function') {
|
1031
1031
|
window === null || window === void 0 ? void 0 : window.gtag('event', 'page_view');
|
1032
1032
|
}
|
1033
|
-
const
|
1033
|
+
const tiktokPixelEventParamsJson = (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.tiktokPixel) === null || _b === void 0 ? void 0 : _b[eventName];
|
1034
|
+
if ((tiktokPixelEventParamsJson === null || tiktokPixelEventParamsJson === void 0 ? void 0 : tiktokPixelEventParamsJson.event_name) && typeof (window === null || window === void 0 ? void 0 : window.ttq) === 'function') {
|
1035
|
+
window === null || window === void 0 ? void 0 : window.ttq.track(tiktokPixelEventParamsJson === null || tiktokPixelEventParamsJson === void 0 ? void 0 : tiktokPixelEventParamsJson.event_name, tiktokPixelEventParamsJson);
|
1036
|
+
}
|
1037
|
+
const snapchatPixelEventParamsJson = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.tiktokPixel) === null || _c === void 0 ? void 0 : _c[eventName];
|
1038
|
+
if ((snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name) && typeof (window === null || window === void 0 ? void 0 : window.snaptr) === 'function') {
|
1039
|
+
window === null || window === void 0 ? void 0 : window.snaptr('track', snapchatPixelEventParamsJson === null || snapchatPixelEventParamsJson === void 0 ? void 0 : snapchatPixelEventParamsJson.event_name, snapchatPixelEventParamsJson);
|
1040
|
+
}
|
1041
|
+
const converApiEventParamsJson = (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _d === void 0 ? void 0 : _d[eventName];
|
1034
1042
|
if (enabledMetaConversionApi && converApiEventParamsJson) {
|
1035
1043
|
const body = getEventParamsByJson(converApiEventParamsJson, product);
|
1036
1044
|
const params = {};
|
1037
1045
|
const queryString = location.search.slice(1);
|
1038
|
-
(
|
1046
|
+
(_e = splitUrlParams(queryString)) === null || _e === void 0 ? void 0 : _e.forEach((val) => {
|
1039
1047
|
const key = val.split('=')[0];
|
1040
1048
|
const value = val.split('=')[1];
|
1041
1049
|
params[key] = value;
|
1042
1050
|
});
|
1043
1051
|
const cl_source = params === null || params === void 0 ? void 0 : params.cl_source;
|
1044
|
-
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(
|
1052
|
+
bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/fb/${(_f = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _f === void 0 ? void 0 : _f['x-app-id']}/${eventName}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
|
1045
1053
|
method: 'POST',
|
1046
1054
|
body,
|
1047
1055
|
type: 'beacon'
|
@@ -18031,7 +18039,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
18031
18039
|
if (!videoPoster || isLoadFinish) {
|
18032
18040
|
return null;
|
18033
18041
|
}
|
18034
|
-
return (React.createElement(
|
18042
|
+
return (React.createElement(FormatImage$1, { style: {
|
18035
18043
|
position: 'absolute',
|
18036
18044
|
left: 0,
|
18037
18045
|
top: 0,
|
@@ -18043,7 +18051,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
18043
18051
|
const renderLoading = useMemo(() => {
|
18044
18052
|
if (!waiting || !isLoadFinish)
|
18045
18053
|
return;
|
18046
|
-
return (React.createElement(
|
18054
|
+
return (React.createElement("img", { style: {
|
18047
18055
|
position: 'absolute',
|
18048
18056
|
top: '50%',
|
18049
18057
|
left: 0,
|