pb-sxp-ui 1.20.5 → 1.20.7
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +5 -5
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +7 -7
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +5 -5
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/es/materials/sxp/popup/CommodityDetail/index.js +2 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/lib/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/package.json +1 -1
|
@@ -85,7 +85,7 @@ const WaterFall = (props) => {
|
|
|
85
85
|
position: cacheActiveIndex
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
}, [openHashtag,
|
|
88
|
+
}, [openHashtag, waterFallData, cacheActiveIndex]);
|
|
89
89
|
useEffect(() => {
|
|
90
90
|
const initTime = () => {
|
|
91
91
|
setViewTime(new Date());
|
|
@@ -566,7 +566,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
566
566
|
time: Math.floor(Date.now() / 1000)
|
|
567
567
|
};
|
|
568
568
|
let customData = Object.assign({ content_ids: [(_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.itemId, ...((_f = product === null || product === void 0 ? void 0 : product.map((item) => item === null || item === void 0 ? void 0 : item.itemId)) !== null && _f !== void 0 ? _f : [])], content_type: contentType, content_name: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.title, total_posts: rtcList === null || rtcList === void 0 ? void 0 : rtcList.length, position, currency: (_h = product === null || product === void 0 ? void 0 : product[0]) === null || _h === void 0 ? void 0 : _h.currency, contents: (_j = product === null || product === void 0 ? void 0 : product.map((item) => ({
|
|
569
|
-
|
|
569
|
+
id: item === null || item === void 0 ? void 0 : item.itemId,
|
|
570
570
|
item_price: item === null || item === void 0 ? void 0 : item.price
|
|
571
571
|
}))) !== null && _j !== void 0 ? _j : [], image_urls: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) !== null && _l !== void 0 ? _l : [], video_urls: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.url, headline: getUrlParamByKey('headline'), scene: getUrlParamByKey('scene'), campaign_id: getUrlParamByKey('campaign_id'), ad_id: getUrlParamByKey('ad_id'), utm_source: getUrlParamByKey('utm_source'), utm_medium: getUrlParamByKey('utm_medium'), utm_campaign: getUrlParamByKey('utm_campaign'), utm_content: getUrlParamByKey('utm_content') }, props);
|
|
572
572
|
if (!((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.url) && !((_q = (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.imgUrls) === null || _q === void 0 ? void 0 : _q.length) && (rec === null || rec === void 0 ? void 0 : rec.product) && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _r === void 0 ? void 0 : _r.length) > 0) {
|
|
@@ -576,7 +576,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
576
576
|
content_type: 'product',
|
|
577
577
|
content_name: '',
|
|
578
578
|
contents: [{
|
|
579
|
-
|
|
579
|
+
id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
580
580
|
item_price: product === null || product === void 0 ? void 0 : product.price
|
|
581
581
|
}],
|
|
582
582
|
image_urls: (_s = product.homePage) !== null && _s !== void 0 ? _s : []
|
|
@@ -63,10 +63,10 @@ const CommodityDetail = (_a) => {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
useEffect(() => {
|
|
66
|
-
var _a;
|
|
66
|
+
var _a, _b;
|
|
67
67
|
if (!isActive)
|
|
68
68
|
return;
|
|
69
|
-
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
69
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
|
|
70
70
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
71
71
|
eventName: 'ProductView',
|
|
72
72
|
product: product ? [product] : undefined,
|
|
@@ -67,10 +67,10 @@ const CommodityDetailDiroNew = (_a) => {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
useEffect(() => {
|
|
70
|
-
var _a;
|
|
70
|
+
var _a, _b;
|
|
71
71
|
if (!isActive)
|
|
72
72
|
return;
|
|
73
|
-
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
73
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
|
|
74
74
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
75
75
|
eventName: 'ProductView',
|
|
76
76
|
product: product ? [product] : undefined,
|
|
@@ -88,7 +88,7 @@ const WaterFall = (props) => {
|
|
|
88
88
|
position: cacheActiveIndex
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
}, [openHashtag,
|
|
91
|
+
}, [openHashtag, waterFallData, cacheActiveIndex]);
|
|
92
92
|
(0, react_1.useEffect)(() => {
|
|
93
93
|
const initTime = () => {
|
|
94
94
|
setViewTime(new Date());
|
|
@@ -569,7 +569,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
569
569
|
time: Math.floor(Date.now() / 1000)
|
|
570
570
|
};
|
|
571
571
|
let customData = Object.assign({ content_ids: [(_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.itemId, ...((_f = product === null || product === void 0 ? void 0 : product.map((item) => item === null || item === void 0 ? void 0 : item.itemId)) !== null && _f !== void 0 ? _f : [])], content_type: contentType, content_name: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.title, total_posts: rtcList === null || rtcList === void 0 ? void 0 : rtcList.length, position, currency: (_h = product === null || product === void 0 ? void 0 : product[0]) === null || _h === void 0 ? void 0 : _h.currency, contents: (_j = product === null || product === void 0 ? void 0 : product.map((item) => ({
|
|
572
|
-
|
|
572
|
+
id: item === null || item === void 0 ? void 0 : item.itemId,
|
|
573
573
|
item_price: item === null || item === void 0 ? void 0 : item.price
|
|
574
574
|
}))) !== null && _j !== void 0 ? _j : [], image_urls: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) !== null && _l !== void 0 ? _l : [], video_urls: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.url, headline: (0, tool_1.getUrlParamByKey)('headline'), scene: (0, tool_1.getUrlParamByKey)('scene'), campaign_id: (0, tool_1.getUrlParamByKey)('campaign_id'), ad_id: (0, tool_1.getUrlParamByKey)('ad_id'), utm_source: (0, tool_1.getUrlParamByKey)('utm_source'), utm_medium: (0, tool_1.getUrlParamByKey)('utm_medium'), utm_campaign: (0, tool_1.getUrlParamByKey)('utm_campaign'), utm_content: (0, tool_1.getUrlParamByKey)('utm_content') }, props);
|
|
575
575
|
if (!((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.url) && !((_q = (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.imgUrls) === null || _q === void 0 ? void 0 : _q.length) && (rec === null || rec === void 0 ? void 0 : rec.product) && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _r === void 0 ? void 0 : _r.length) > 0) {
|
|
@@ -579,7 +579,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
579
579
|
content_type: 'product',
|
|
580
580
|
content_name: '',
|
|
581
581
|
contents: [{
|
|
582
|
-
|
|
582
|
+
id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
583
583
|
item_price: product === null || product === void 0 ? void 0 : product.price
|
|
584
584
|
}],
|
|
585
585
|
image_urls: (_s = product.homePage) !== null && _s !== void 0 ? _s : []
|
|
@@ -65,10 +65,10 @@ const CommodityDetail = (_a) => {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
(0, react_1.useEffect)(() => {
|
|
68
|
-
var _a;
|
|
68
|
+
var _a, _b;
|
|
69
69
|
if (!isActive)
|
|
70
70
|
return;
|
|
71
|
-
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
71
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
|
|
72
72
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
73
73
|
eventName: 'ProductView',
|
|
74
74
|
product: product ? [product] : undefined,
|
|
@@ -69,10 +69,10 @@ const CommodityDetailDiroNew = (_a) => {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
(0, react_1.useEffect)(() => {
|
|
72
|
-
var _a;
|
|
72
|
+
var _a, _b;
|
|
73
73
|
if (!isActive)
|
|
74
74
|
return;
|
|
75
|
-
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
75
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
|
|
76
76
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
77
77
|
eventName: 'ProductView',
|
|
78
78
|
product: product ? [product] : undefined,
|