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/index.js
CHANGED
@@ -556,9 +556,17 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
556
556
|
if (!enableReportEvent || !enabledMetaConversionApi) {
|
557
557
|
return;
|
558
558
|
}
|
559
|
+
const fakeUserId = storeAndLoadFeUserId();
|
559
560
|
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
|
560
561
|
method: 'POST',
|
561
|
-
body: {
|
562
|
+
body: {
|
563
|
+
eventName,
|
564
|
+
actionSource,
|
565
|
+
eventSourceUrl,
|
566
|
+
userData: {
|
567
|
+
externalId: fakeUserId
|
568
|
+
}
|
569
|
+
},
|
562
570
|
type: 'beacon'
|
563
571
|
});
|
564
572
|
}, [bffFetch, enableReportEvent, enabledMetaConversionApi]);
|
@@ -927,11 +935,11 @@ var interactionRender$8 = [
|
|
927
935
|
* @Author: binruan@chatlabs.com
|
928
936
|
* @Date: 2024-04-28 14:42:22
|
929
937
|
* @LastEditors: binruan@chatlabs.com
|
930
|
-
* @LastEditTime: 2024-05-17
|
938
|
+
* @LastEditTime: 2024-05-23 17:01:21
|
931
939
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\defaultSetting.ts
|
932
940
|
*
|
933
941
|
*/
|
934
|
-
const fontOptions = [{ label: '
|
942
|
+
const fontOptions = [{ label: 'defalut', value: 'appFont' }];
|
935
943
|
const sxpFonts = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.localStorage.getItem('sxp_font_links'));
|
936
944
|
const data = sxpFonts && sxpFonts !== '' ? JSON.parse(sxpFonts) : [];
|
937
945
|
var defaultSetting = {
|
@@ -9477,11 +9485,11 @@ var EventProvider$1 = memo(EventProvider);
|
|
9477
9485
|
var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9478
9486
|
|
9479
9487
|
const Commodity$1 = (_a) => {
|
9480
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9488
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9481
9489
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9482
9490
|
const { sxpParameter } = useSxpDataSource();
|
9483
9491
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9484
|
-
const src = (
|
9492
|
+
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;
|
9485
9493
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9486
9494
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9487
9495
|
React.createElement(FormatImage$1, { className: css({
|
@@ -9499,8 +9507,8 @@ const Commodity$1 = (_a) => {
|
|
9499
9507
|
width: '100%',
|
9500
9508
|
overflow: 'hidden'
|
9501
9509
|
}) },
|
9502
|
-
React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9503
|
-
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9510
|
+
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'),
|
9511
|
+
React.createElement("div", { className: 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'))));
|
9504
9512
|
};
|
9505
9513
|
var CommodityComponent = memo(Commodity$1);
|
9506
9514
|
|
@@ -9726,11 +9734,11 @@ var interactionRender$4 = [
|
|
9726
9734
|
var styles$4 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
|
9727
9735
|
|
9728
9736
|
const CommodityDiro$1 = (_a) => {
|
9729
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9737
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9730
9738
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9731
9739
|
const { sxpParameter } = useSxpDataSource();
|
9732
9740
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9733
|
-
const src = (
|
9741
|
+
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;
|
9734
9742
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9735
9743
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9736
9744
|
React.createElement(FormatImage$1, { className: css({
|
@@ -9748,8 +9756,8 @@ const CommodityDiro$1 = (_a) => {
|
|
9748
9756
|
width: '100%',
|
9749
9757
|
overflow: 'hidden'
|
9750
9758
|
}) },
|
9751
|
-
React.createElement("div", { className: styles$4['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9752
|
-
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9759
|
+
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'),
|
9760
|
+
React.createElement("div", { className: 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'))));
|
9753
9761
|
};
|
9754
9762
|
var CommodityDiroComponent = memo(CommodityDiro$1);
|
9755
9763
|
|
@@ -9824,11 +9832,11 @@ var interactionRender$3 = [
|
|
9824
9832
|
var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
|
9825
9833
|
|
9826
9834
|
const CommodityDiroNew$1 = (_a) => {
|
9827
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
9835
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
9828
9836
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
|
9829
9837
|
const { sxpParameter } = useSxpDataSource();
|
9830
9838
|
const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
|
9831
|
-
const src = (
|
9839
|
+
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;
|
9832
9840
|
return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css(Object.assign({}, style)), style: { display: 'flex' } }, props),
|
9833
9841
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9834
9842
|
React.createElement(FormatImage$1, { className: css({
|
@@ -9846,8 +9854,8 @@ const CommodityDiroNew$1 = (_a) => {
|
|
9846
9854
|
width: '100%',
|
9847
9855
|
overflow: 'hidden'
|
9848
9856
|
}) },
|
9849
|
-
React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9850
|
-
React.createElement("div", { className: css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
9857
|
+
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'),
|
9858
|
+
React.createElement("div", { className: 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'))));
|
9851
9859
|
};
|
9852
9860
|
var CommodityDiroNewComponent = memo(CommodityDiroNew$1);
|
9853
9861
|
|
@@ -9976,10 +9984,10 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
9976
9984
|
}
|
9977
9985
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
9978
9986
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9979
|
-
var _a, _b, _c, _d, _e, _f;
|
9987
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
9980
9988
|
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(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9981
9989
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9982
|
-
React.createElement(Img$1, { src: (
|
9990
|
+
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: {
|
9983
9991
|
transform: `translateY(${translateY}%)`
|
9984
9992
|
} })),
|
9985
9993
|
React.createElement("div", { className: css({
|
@@ -9990,8 +9998,8 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
9990
9998
|
width: '100%',
|
9991
9999
|
overflow: 'hidden'
|
9992
10000
|
}) },
|
9993
|
-
React.createElement("div", { className: styles$2['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
9994
|
-
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10001
|
+
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'),
|
10002
|
+
React.createElement("div", { className: 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'))));
|
9995
10003
|
})));
|
9996
10004
|
};
|
9997
10005
|
var MultiCommodityDiroComponent = memo(MultiCommodityDiro$1);
|
@@ -10091,10 +10099,10 @@ const MultiCommodity$1 = (_a) => {
|
|
10091
10099
|
}
|
10092
10100
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
10093
10101
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
10094
|
-
var _a, _b, _c, _d, _e, _f;
|
10102
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
10095
10103
|
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
10096
10104
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
10097
|
-
React.createElement(Img$1, { src: (
|
10105
|
+
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: {
|
10098
10106
|
transform: `translateY(${translateY}%)`
|
10099
10107
|
} })),
|
10100
10108
|
React.createElement("div", { className: css({
|
@@ -10105,8 +10113,8 @@ const MultiCommodity$1 = (_a) => {
|
|
10105
10113
|
width: '100%',
|
10106
10114
|
overflow: 'hidden'
|
10107
10115
|
}) },
|
10108
|
-
React.createElement("div", { className: styles$1['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
10109
|
-
React.createElement("div", { className: css(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10116
|
+
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'),
|
10117
|
+
React.createElement("div", { className: 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'))));
|
10110
10118
|
})));
|
10111
10119
|
};
|
10112
10120
|
var MultiCommodityComponent = memo(MultiCommodity$1);
|
@@ -10205,10 +10213,10 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
10205
10213
|
}
|
10206
10214
|
}, popup === null || popup === void 0 ? void 0 : popup.duration);
|
10207
10215
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
10208
|
-
var _a, _b, _c, _d, _e, _f;
|
10216
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
10209
10217
|
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(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
10210
10218
|
React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
10211
|
-
React.createElement(Img$1, { src: (
|
10219
|
+
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: {
|
10212
10220
|
transform: `translateY(${translateY}%)`
|
10213
10221
|
} })),
|
10214
10222
|
React.createElement("div", { className: css({
|
@@ -10220,8 +10228,8 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
10220
10228
|
overflow: 'hidden',
|
10221
10229
|
lineHeight: '20px'
|
10222
10230
|
}) },
|
10223
|
-
React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (
|
10224
|
-
React.createElement("div", { className: css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (
|
10231
|
+
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'),
|
10232
|
+
React.createElement("div", { className: 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'))));
|
10225
10233
|
})));
|
10226
10234
|
};
|
10227
10235
|
var MultiCommodityDiroNewComponent = memo(MultiCommodityDiroNew$1);
|
@@ -10288,7 +10296,7 @@ var _a, _b;
|
|
10288
10296
|
* @Author: binruan@chatlabs.com
|
10289
10297
|
* @Date: 2024-04-07 14:07:12
|
10290
10298
|
* @LastEditors: binruan@chatlabs.com
|
10291
|
-
* @LastEditTime: 2024-
|
10299
|
+
* @LastEditTime: 2024-05-23 11:03:15
|
10292
10300
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
10293
10301
|
*
|
10294
10302
|
*/
|
@@ -10296,11 +10304,11 @@ var settingRender = [
|
|
10296
10304
|
{
|
10297
10305
|
title: '卡片样式',
|
10298
10306
|
child: [
|
10299
|
-
{
|
10300
|
-
|
10301
|
-
|
10302
|
-
|
10303
|
-
},
|
10307
|
+
// {
|
10308
|
+
// type: 'Number',
|
10309
|
+
// label: '文本行数',
|
10310
|
+
// name: ['props', 'lineClamp']
|
10311
|
+
// },
|
10304
10312
|
{
|
10305
10313
|
type: 'Number',
|
10306
10314
|
label: '上下边距',
|
@@ -11784,19 +11792,15 @@ const WaterfallFlowItem = (props) => {
|
|
11784
11792
|
const canvasRef = useRef(null);
|
11785
11793
|
const [firstFrameSrc, setFirstFrameSrc] = useState('');
|
11786
11794
|
const src = useMemo(() => {
|
11787
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
11795
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
11788
11796
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
|
11789
11797
|
return (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.cover;
|
11790
11798
|
}
|
11791
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.
|
11792
|
-
|
11793
|
-
return (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.url;
|
11799
|
+
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) {
|
11800
|
+
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];
|
11794
11801
|
}
|
11795
|
-
else if ((
|
11796
|
-
return (
|
11797
|
-
}
|
11798
|
-
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) {
|
11799
|
-
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];
|
11802
|
+
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) {
|
11803
|
+
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];
|
11800
11804
|
}
|
11801
11805
|
else {
|
11802
11806
|
return (sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) || '';
|
@@ -12845,7 +12849,7 @@ var RenderCard$1 = memo(RenderCard);
|
|
12845
12849
|
* @Author: binruan@chatlabs.com
|
12846
12850
|
* @Date: 2024-03-26 10:07:41
|
12847
12851
|
* @LastEditors: binruan@chatlabs.com
|
12848
|
-
* @LastEditTime: 2024-
|
12852
|
+
* @LastEditTime: 2024-05-23 14:31:12
|
12849
12853
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
|
12850
12854
|
*
|
12851
12855
|
*/
|
@@ -12858,8 +12862,8 @@ const Nudge = ({ nudge }) => {
|
|
12858
12862
|
backgroundColor: nudge === null || nudge === void 0 ? void 0 : nudge.backgroundColor,
|
12859
12863
|
borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
|
12860
12864
|
} },
|
12861
|
-
(nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover' } }) : null,
|
12862
|
-
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 : '')))));
|
12865
|
+
(nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover', flexShrink: 0 } }) : null,
|
12866
|
+
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 : '')))));
|
12863
12867
|
};
|
12864
12868
|
|
12865
12869
|
const DEFAULT_TAG = 'FOR U';
|
@@ -12903,7 +12907,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
12903
12907
|
* @Author: binruan@chatlabs.com
|
12904
12908
|
* @Date: 2024-01-15 19:03:09
|
12905
12909
|
* @LastEditors: binruan@chatlabs.com
|
12906
|
-
* @LastEditTime: 2024-05-
|
12910
|
+
* @LastEditTime: 2024-05-23 10:41:27
|
12907
12911
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12908
12912
|
*
|
12909
12913
|
*/
|
@@ -13205,7 +13209,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13205
13209
|
}
|
13206
13210
|
};
|
13207
13211
|
const handleScrollEvent = (swiper) => {
|
13208
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
13212
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13209
13213
|
viewTime.current = new Date();
|
13210
13214
|
const item = data[swiper.previousIndex];
|
13211
13215
|
if (!item)
|
@@ -13238,14 +13242,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13238
13242
|
}
|
13239
13243
|
// 商品浏览事件
|
13240
13244
|
handleReportProductView(item);
|
13245
|
+
const curItem = data[swiper.activeIndex];
|
13246
|
+
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)) {
|
13247
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13248
|
+
eventName: 'ProductView'
|
13249
|
+
});
|
13250
|
+
}
|
13241
13251
|
};
|
13242
13252
|
const handleReportProductView = (item) => {
|
13243
13253
|
var _a, _b, _c;
|
13244
13254
|
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)) {
|
13245
13255
|
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);
|
13246
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13247
|
-
eventName: 'ProductView'
|
13248
|
-
});
|
13249
13256
|
}
|
13250
13257
|
};
|
13251
13258
|
useEffect(() => {
|