pb-sxp-ui 1.0.70 → 1.0.71
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 +57 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +57 -50
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +57 -50
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Nudge/index.js +2 -2
- package/es/core/components/SxpPageRender/WaterFall/List.js +5 -9
- package/es/core/components/SxpPageRender/index.js +7 -4
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/context/SxpDataSourceProvider.js +9 -1
- package/es/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/es/materials/sxp/HashTag/settingRender.js +0 -5
- package/es/materials/sxp/defaultSetting.js +1 -1
- package/es/materials/sxp/template/Commodity/index.js +4 -4
- package/es/materials/sxp/template/CommodityDiro/index.js +4 -4
- package/es/materials/sxp/template/CommodityDiroNew/index.js +4 -4
- package/es/materials/sxp/template/MultiCommodity/index.js +4 -4
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +4 -4
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +4 -4
- package/lib/core/components/SxpPageRender/Nudge/index.js +2 -2
- package/lib/core/components/SxpPageRender/WaterFall/List.js +5 -9
- package/lib/core/components/SxpPageRender/index.js +7 -4
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/context/SxpDataSourceProvider.js +9 -1
- package/lib/materials/sxp/HashTag/settingRender.d.ts +2 -7
- package/lib/materials/sxp/HashTag/settingRender.js +0 -5
- package/lib/materials/sxp/defaultSetting.js +1 -1
- package/lib/materials/sxp/template/Commodity/index.js +4 -4
- package/lib/materials/sxp/template/CommodityDiro/index.js +4 -4
- package/lib/materials/sxp/template/CommodityDiroNew/index.js +4 -4
- package/lib/materials/sxp/template/MultiCommodity/index.js +4 -4
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +4 -4
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +4 -4
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -571,9 +571,17 @@
|
|
571
571
|
if (!enableReportEvent || !enabledMetaConversionApi) {
|
572
572
|
return;
|
573
573
|
}
|
574
|
+
const fakeUserId = storeAndLoadFeUserId();
|
574
575
|
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
|
575
576
|
method: 'POST',
|
576
|
-
body: {
|
577
|
+
body: {
|
578
|
+
eventName,
|
579
|
+
actionSource,
|
580
|
+
eventSourceUrl,
|
581
|
+
userData: {
|
582
|
+
externalId: fakeUserId
|
583
|
+
}
|
584
|
+
},
|
577
585
|
type: 'beacon'
|
578
586
|
});
|
579
587
|
}, [bffFetch, enableReportEvent, enabledMetaConversionApi]);
|
@@ -942,11 +950,11 @@
|
|
942
950
|
* @Author: binruan@chatlabs.com
|
943
951
|
* @Date: 2024-04-28 14:42:22
|
944
952
|
* @LastEditors: binruan@chatlabs.com
|
945
|
-
* @LastEditTime: 2024-05-17
|
953
|
+
* @LastEditTime: 2024-05-23 17:01:21
|
946
954
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\defaultSetting.ts
|
947
955
|
*
|
948
956
|
*/
|
949
|
-
const fontOptions = [{ label: '
|
957
|
+
const fontOptions = [{ label: 'defalut', value: 'appFont' }];
|
950
958
|
const sxpFonts = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.localStorage.getItem('sxp_font_links'));
|
951
959
|
const data = sxpFonts && sxpFonts !== '' ? JSON.parse(sxpFonts) : [];
|
952
960
|
var defaultSetting = {
|
@@ -9492,11 +9500,11 @@ Made in Italy` })));
|
|
9492
9500
|
var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9493
9501
|
|
9494
9502
|
const Commodity$1 = (_a) => {
|
9495
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9503
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9496
9504
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9497
9505
|
const { sxpParameter } = useSxpDataSource();
|
9498
9506
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9499
|
-
const src = (
|
9507
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
9500
9508
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9501
9509
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9502
9510
|
React.createElement(FormatImage$1, { className: css.css({
|
@@ -9514,8 +9522,8 @@ Made in Italy` })));
|
|
9514
9522
|
width: '100%',
|
9515
9523
|
overflow: 'hidden'
|
9516
9524
|
}) },
|
9517
|
-
React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9518
|
-
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9525
|
+
React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
9526
|
+
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop Now'))));
|
9519
9527
|
};
|
9520
9528
|
var CommodityComponent = React.memo(Commodity$1);
|
9521
9529
|
|
@@ -9741,11 +9749,11 @@ Made in Italy` })));
|
|
9741
9749
|
var styles$4 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
|
9742
9750
|
|
9743
9751
|
const CommodityDiro$1 = (_a) => {
|
9744
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9752
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9745
9753
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9746
9754
|
const { sxpParameter } = useSxpDataSource();
|
9747
9755
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9748
|
-
const src = (
|
9756
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
9749
9757
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9750
9758
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9751
9759
|
React.createElement(FormatImage$1, { className: css.css({
|
@@ -9763,8 +9771,8 @@ Made in Italy` })));
|
|
9763
9771
|
width: '100%',
|
9764
9772
|
overflow: 'hidden'
|
9765
9773
|
}) },
|
9766
|
-
React.createElement("div", { className: styles$4['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9767
|
-
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9774
|
+
React.createElement("div", { className: styles$4['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
9775
|
+
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop Now'))));
|
9768
9776
|
};
|
9769
9777
|
var CommodityDiroComponent = React.memo(CommodityDiro$1);
|
9770
9778
|
|
@@ -9839,11 +9847,11 @@ Made in Italy` })));
|
|
9839
9847
|
var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
|
9840
9848
|
|
9841
9849
|
const CommodityDiroNew$1 = (_a) => {
|
9842
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9850
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9843
9851
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9844
9852
|
const { sxpParameter } = useSxpDataSource();
|
9845
9853
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9846
|
-
const src = (
|
9854
|
+
const src = (_g = (_f = (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.product) === null || _c === void 0 ? void 0 : _c.cover) !== null && _d !== void 0 ? _d : (_e = product === null || product === void 0 ? void 0 : product.homePage) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _g !== void 0 ? _g : bottom_image;
|
9847
9855
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9848
9856
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9849
9857
|
React.createElement(FormatImage$1, { className: css.css({
|
@@ -9861,8 +9869,8 @@ Made in Italy` })));
|
|
9861
9869
|
width: '100%',
|
9862
9870
|
overflow: 'hidden'
|
9863
9871
|
}) },
|
9864
|
-
React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9865
|
-
React.createElement("div", { className: css.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9872
|
+
React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_h = product === null || product === void 0 ? void 0 : product.title) !== null && _h !== void 0 ? _h : 'Product Name'),
|
9873
|
+
React.createElement("div", { className: css.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_k = (_j = product === null || product === void 0 ? void 0 : product.bindCta) === null || _j === void 0 ? void 0 : _j.enTitle) !== null && _k !== void 0 ? _k : 'Shop now'))));
|
9866
9874
|
};
|
9867
9875
|
var CommodityDiroNewComponent = React.memo(CommodityDiroNew$1);
|
9868
9876
|
|
@@ -9991,10 +9999,10 @@ Made in Italy` })));
|
|
9991
9999
|
}
|
9992
10000
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
9993
10001
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9994
|
-
var _a, _b, _c, _d, _e, _f;
|
10002
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
9995
10003
|
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9996
10004
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9997
|
-
React.createElement(Img$1, { src: (
|
10005
|
+
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, style: {
|
9998
10006
|
transform: `translateY(${translateY}%)`
|
9999
10007
|
} })),
|
10000
10008
|
React.createElement("div", { className: css.css({
|
@@ -10005,8 +10013,8 @@ Made in Italy` })));
|
|
10005
10013
|
width: '100%',
|
10006
10014
|
overflow: 'hidden'
|
10007
10015
|
}) },
|
10008
|
-
React.createElement("div", { className: styles$2['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
10009
|
-
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10016
|
+
React.createElement("div", { className: styles$2['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
|
10017
|
+
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now'))));
|
10010
10018
|
})));
|
10011
10019
|
};
|
10012
10020
|
var MultiCommodityDiroComponent = React.memo(MultiCommodityDiro$1);
|
@@ -10106,10 +10114,10 @@ Made in Italy` })));
|
|
10106
10114
|
}
|
10107
10115
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
10108
10116
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
10109
|
-
var _a, _b, _c, _d, _e, _f;
|
10117
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
10110
10118
|
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
10111
10119
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
10112
|
-
React.createElement(Img$1, { src: (
|
10120
|
+
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, style: {
|
10113
10121
|
transform: `translateY(${translateY}%)`
|
10114
10122
|
} })),
|
10115
10123
|
React.createElement("div", { className: css.css({
|
@@ -10120,8 +10128,8 @@ Made in Italy` })));
|
|
10120
10128
|
width: '100%',
|
10121
10129
|
overflow: 'hidden'
|
10122
10130
|
}) },
|
10123
|
-
React.createElement("div", { className: styles$1['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
10124
|
-
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10131
|
+
React.createElement("div", { className: styles$1['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
|
10132
|
+
React.createElement("div", { className: css.css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now'))));
|
10125
10133
|
})));
|
10126
10134
|
};
|
10127
10135
|
var MultiCommodityComponent = React.memo(MultiCommodity$1);
|
@@ -10220,10 +10228,10 @@ Made in Italy` })));
|
|
10220
10228
|
}
|
10221
10229
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
10222
10230
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
10223
|
-
var _a, _b, _c, _d, _e, _f;
|
10231
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
10224
10232
|
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
10225
10233
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
10226
|
-
React.createElement(Img$1, { src: (
|
10234
|
+
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, style: {
|
10227
10235
|
transform: `translateY(${translateY}%)`
|
10228
10236
|
} })),
|
10229
10237
|
React.createElement("div", { className: css.css({
|
@@ -10235,8 +10243,8 @@ Made in Italy` })));
|
|
10235
10243
|
overflow: 'hidden',
|
10236
10244
|
lineHeight: '20px'
|
10237
10245
|
}) },
|
10238
|
-
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
10239
|
-
React.createElement("div", { className: css.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10246
|
+
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
|
10247
|
+
React.createElement("div", { className: css.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop now'))));
|
10240
10248
|
})));
|
10241
10249
|
};
|
10242
10250
|
var MultiCommodityDiroNewComponent = React.memo(MultiCommodityDiroNew$1);
|
@@ -10303,7 +10311,7 @@ Made in Italy` })));
|
|
10303
10311
|
* @Author: binruan@chatlabs.com
|
10304
10312
|
* @Date: 2024-04-07 14:07:12
|
10305
10313
|
* @LastEditors: binruan@chatlabs.com
|
10306
|
-
* @LastEditTime: 2024-
|
10314
|
+
* @LastEditTime: 2024-05-23 11:03:15
|
10307
10315
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
10308
10316
|
*
|
10309
10317
|
*/
|
@@ -10311,11 +10319,11 @@ Made in Italy` })));
|
|
10311
10319
|
{
|
10312
10320
|
title: '卡片样式',
|
10313
10321
|
child: [
|
10314
|
-
{
|
10315
|
-
|
10316
|
-
|
10317
|
-
|
10318
|
-
},
|
10322
|
+
// {
|
10323
|
+
// type: 'Number',
|
10324
|
+
// label: '文本行数',
|
10325
|
+
// name: ['props', 'lineClamp']
|
10326
|
+
// },
|
10319
10327
|
{
|
10320
10328
|
type: 'Number',
|
10321
10329
|
label: '上下边距',
|
@@ -11799,19 +11807,15 @@ Made in Italy` })));
|
|
11799
11807
|
const canvasRef = React.useRef(null);
|
11800
11808
|
const [firstFrameSrc, setFirstFrameSrc] = React.useState('');
|
11801
11809
|
const src = React.useMemo(() => {
|
11802
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
11810
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
11803
11811
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
|
11804
11812
|
return (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.cover;
|
11805
11813
|
}
|
11806
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.
|
11807
|
-
|
11808
|
-
return (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.url;
|
11814
|
+
else if ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.imgUrls) === null || _d === void 0 ? void 0 : _d.length) {
|
11815
|
+
return (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.imgUrls) === null || _f === void 0 ? void 0 : _f[0];
|
11809
11816
|
}
|
11810
|
-
else if ((
|
11811
|
-
return (
|
11812
|
-
}
|
11813
|
-
else if ((_k = (_j = rec === null || rec === void 0 ? void 0 : rec.product) === null || _j === void 0 ? void 0 : _j.homePage) === null || _k === void 0 ? void 0 : _k.length) {
|
11814
|
-
return (_m = (_l = rec === null || rec === void 0 ? void 0 : rec.product) === null || _l === void 0 ? void 0 : _l.homePage) === null || _m === void 0 ? void 0 : _m[0];
|
11817
|
+
else if ((_h = (_g = rec === null || rec === void 0 ? void 0 : rec.product) === null || _g === void 0 ? void 0 : _g.homePage) === null || _h === void 0 ? void 0 : _h.length) {
|
11818
|
+
return (_k = (_j = rec === null || rec === void 0 ? void 0 : rec.product) === null || _j === void 0 ? void 0 : _j.homePage) === null || _k === void 0 ? void 0 : _k[0];
|
11815
11819
|
}
|
11816
11820
|
else {
|
11817
11821
|
return (sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) || '';
|
@@ -12860,7 +12864,7 @@ Made in Italy` })));
|
|
12860
12864
|
* @Author: binruan@chatlabs.com
|
12861
12865
|
* @Date: 2024-03-26 10:07:41
|
12862
12866
|
* @LastEditors: binruan@chatlabs.com
|
12863
|
-
* @LastEditTime: 2024-
|
12867
|
+
* @LastEditTime: 2024-05-23 14:31:12
|
12864
12868
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
|
12865
12869
|
*
|
12866
12870
|
*/
|
@@ -12873,8 +12877,8 @@ Made in Italy` })));
|
|
12873
12877
|
backgroundColor: nudge === null || nudge === void 0 ? void 0 : nudge.backgroundColor,
|
12874
12878
|
borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
|
12875
12879
|
} },
|
12876
|
-
(nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover' } }) : null,
|
12877
|
-
React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }) }, (_g = nudge === null || nudge === void 0 ? void 0 : nudge.content) !== null && _g !== void 0 ? _g : '')))));
|
12880
|
+
(nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover', flexShrink: 0 } }) : null,
|
12881
|
+
React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0 }) }, (_g = nudge === null || nudge === void 0 ? void 0 : nudge.content) !== null && _g !== void 0 ? _g : '')))));
|
12878
12882
|
};
|
12879
12883
|
|
12880
12884
|
const DEFAULT_TAG = 'FOR U';
|
@@ -12918,7 +12922,7 @@ Made in Italy` })));
|
|
12918
12922
|
* @Author: binruan@chatlabs.com
|
12919
12923
|
* @Date: 2024-01-15 19:03:09
|
12920
12924
|
* @LastEditors: binruan@chatlabs.com
|
12921
|
-
* @LastEditTime: 2024-05-
|
12925
|
+
* @LastEditTime: 2024-05-23 10:41:27
|
12922
12926
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12923
12927
|
*
|
12924
12928
|
*/
|
@@ -13220,7 +13224,7 @@ Made in Italy` })));
|
|
13220
13224
|
}
|
13221
13225
|
};
|
13222
13226
|
const handleScrollEvent = (swiper) => {
|
13223
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
13227
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13224
13228
|
viewTime.current = new Date();
|
13225
13229
|
const item = data[swiper.previousIndex];
|
13226
13230
|
if (!item)
|
@@ -13253,14 +13257,17 @@ Made in Italy` })));
|
|
13253
13257
|
}
|
13254
13258
|
// 商品浏览事件
|
13255
13259
|
handleReportProductView(item);
|
13260
|
+
const curItem = data[swiper.activeIndex];
|
13261
|
+
if (!((_j = curItem === null || curItem === void 0 ? void 0 : curItem.video) === null || _j === void 0 ? void 0 : _j.url) && !((_k = curItem === null || curItem === void 0 ? void 0 : curItem.video) === null || _k === void 0 ? void 0 : _k.imgUrls) && (curItem === null || curItem === void 0 ? void 0 : curItem.product)) {
|
13262
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13263
|
+
eventName: 'ProductView'
|
13264
|
+
});
|
13265
|
+
}
|
13256
13266
|
};
|
13257
13267
|
const handleReportProductView = (item) => {
|
13258
13268
|
var _a, _b, _c;
|
13259
13269
|
if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && !((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls) && (item === null || item === void 0 ? void 0 : item.product)) {
|
13260
13270
|
productView(item, item.product, (_c = item === null || item === void 0 ? void 0 : item.product) === null || _c === void 0 ? void 0 : _c.bindCta, viewTime.current, activeIndex);
|
13261
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13262
|
-
eventName: 'ProductView'
|
13263
|
-
});
|
13264
13271
|
}
|
13265
13272
|
};
|
13266
13273
|
React.useEffect(() => {
|