pb-sxp-ui 1.0.31 → 1.0.32
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 +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +16 -16
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/es/core/components/SxpPageRender/index.js +7 -7
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/es/core/hooks/useEventReport.js +4 -4
- package/lib/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +7 -7
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/hooks/useEventReport.js +4 -4
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -569,7 +569,7 @@
|
|
569
569
|
fromKName = 'imagePage';
|
570
570
|
}
|
571
571
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
572
|
-
eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_h = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _h !== void 0 ? _h : '', ctaName: (_j = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _j !== void 0 ? _j : '', contentTags: JSON.stringify(cta === null || cta === void 0 ? void 0 : cta.tags), position: position + '',
|
572
|
+
eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_h = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _h !== void 0 ? _h : '', ctaName: (_j = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _j !== void 0 ? _j : '', contentTags: JSON.stringify(cta === null || cta === void 0 ? void 0 : cta.tags), position: position + '', contentId: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.itemId) !== null && _l !== void 0 ? _l : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_m = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _m !== void 0 ? _m : '', fromKName })
|
573
573
|
});
|
574
574
|
}, [bffEventReport, isFromHashtag]);
|
575
575
|
React.useEffect(() => {
|
@@ -8142,8 +8142,8 @@
|
|
8142
8142
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
8143
8143
|
contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
|
8144
8144
|
position: position + '',
|
8145
|
-
|
8146
|
-
|
8145
|
+
contentId: (_m = (_l = data === null || data === void 0 ? void 0 : data.video) === null || _l === void 0 ? void 0 : _l.itemId) !== null && _m !== void 0 ? _m : '',
|
8146
|
+
ctatId: (_o = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _o !== void 0 ? _o : '',
|
8147
8147
|
traceInfo: (_p = product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _p !== void 0 ? _p : ''
|
8148
8148
|
}
|
8149
8149
|
});
|
@@ -8167,8 +8167,8 @@
|
|
8167
8167
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
8168
8168
|
contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
|
8169
8169
|
position: position + '',
|
8170
|
-
|
8171
|
-
|
8170
|
+
contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
|
8171
|
+
ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
|
8172
8172
|
traceInfo: product === null || product === void 0 ? void 0 : product.traceInfo,
|
8173
8173
|
timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
|
8174
8174
|
eventSubject: 'productView',
|
@@ -11786,7 +11786,7 @@ Made in Italy` })));
|
|
11786
11786
|
}
|
11787
11787
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
11788
11788
|
eventInfo: {
|
11789
|
-
|
11789
|
+
contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
|
11790
11790
|
position: cacheActiveIndex + '',
|
11791
11791
|
contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
|
11792
11792
|
traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
|
@@ -12557,7 +12557,7 @@ Made in Italy` })));
|
|
12557
12557
|
* @Author: binruan@chatlabs.com
|
12558
12558
|
* @Date: 2024-01-15 19:03:09
|
12559
12559
|
* @LastEditors: binruan@chatlabs.com
|
12560
|
-
* @LastEditTime: 2024-04-
|
12560
|
+
* @LastEditTime: 2024-04-23 15:48:32
|
12561
12561
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12562
12562
|
*
|
12563
12563
|
*/
|
@@ -12639,8 +12639,8 @@ Made in Italy` })));
|
|
12639
12639
|
// sessionDuration: Math.floor(((new Date() as any) - curTime) / 1000) + '',
|
12640
12640
|
// eventSubject: 'sessionCompleted',
|
12641
12641
|
// eventDescription: 'Session completed',
|
12642
|
-
//
|
12643
|
-
//
|
12642
|
+
// contentId: item?.video?.itemId,
|
12643
|
+
// productId: item?.product?.itemId,
|
12644
12644
|
// position: item?.position
|
12645
12645
|
// }
|
12646
12646
|
// });
|
@@ -12684,12 +12684,12 @@ Made in Italy` })));
|
|
12684
12684
|
sessionDuration: Math.floor((new Date() - curTime.current) / 1000) + '',
|
12685
12685
|
eventSubject: 'sessionCompleted',
|
12686
12686
|
eventDescription: 'Session completed',
|
12687
|
-
|
12688
|
-
|
12687
|
+
contentId: (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.itemId,
|
12688
|
+
productId: (_m = item === null || item === void 0 ? void 0 : item.product) === null || _m === void 0 ? void 0 : _m.itemId,
|
12689
12689
|
position: activeIndex + '',
|
12690
12690
|
fromKName,
|
12691
12691
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
12692
|
-
|
12692
|
+
ctatId: (_q = (_p = (_o = item.video) === null || _o === void 0 ? void 0 : _o.bindCta) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : ''
|
12693
12693
|
}
|
12694
12694
|
});
|
12695
12695
|
}
|
@@ -12823,8 +12823,8 @@ Made in Italy` })));
|
|
12823
12823
|
eventInfo: {
|
12824
12824
|
eventSubject: 'scrollDown',
|
12825
12825
|
eventDescription: 'User scroll down',
|
12826
|
-
|
12827
|
-
|
12826
|
+
contentId: (_b = (_a = item.video) === null || _a === void 0 ? void 0 : _a.itemId) !== null && _b !== void 0 ? _b : '',
|
12827
|
+
productId: (_d = (_c = item.product) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
|
12828
12828
|
requestId: null
|
12829
12829
|
}
|
12830
12830
|
});
|
@@ -12836,8 +12836,8 @@ Made in Italy` })));
|
|
12836
12836
|
eventInfo: {
|
12837
12837
|
eventSubject: 'scrollUp',
|
12838
12838
|
eventDescription: 'User scroll up',
|
12839
|
-
|
12840
|
-
|
12839
|
+
contentId: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
|
12840
|
+
productId: (_h = (_g = item.product) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
|
12841
12841
|
requestId: null
|
12842
12842
|
}
|
12843
12843
|
});
|