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.
Files changed (41) hide show
  1. package/dist/index.cjs +57 -50
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +57 -50
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +57 -50
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageRender/Nudge/index.js +2 -2
  14. package/es/core/components/SxpPageRender/WaterFall/List.js +5 -9
  15. package/es/core/components/SxpPageRender/index.js +7 -4
  16. package/es/core/components/SxpPageRender/typing.d.ts +1 -0
  17. package/es/core/context/SxpDataSourceProvider.js +9 -1
  18. package/es/materials/sxp/HashTag/settingRender.d.ts +2 -7
  19. package/es/materials/sxp/HashTag/settingRender.js +0 -5
  20. package/es/materials/sxp/defaultSetting.js +1 -1
  21. package/es/materials/sxp/template/Commodity/index.js +4 -4
  22. package/es/materials/sxp/template/CommodityDiro/index.js +4 -4
  23. package/es/materials/sxp/template/CommodityDiroNew/index.js +4 -4
  24. package/es/materials/sxp/template/MultiCommodity/index.js +4 -4
  25. package/es/materials/sxp/template/MultiCommodityDiro/index.js +4 -4
  26. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +4 -4
  27. package/lib/core/components/SxpPageRender/Nudge/index.js +2 -2
  28. package/lib/core/components/SxpPageRender/WaterFall/List.js +5 -9
  29. package/lib/core/components/SxpPageRender/index.js +7 -4
  30. package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
  31. package/lib/core/context/SxpDataSourceProvider.js +9 -1
  32. package/lib/materials/sxp/HashTag/settingRender.d.ts +2 -7
  33. package/lib/materials/sxp/HashTag/settingRender.js +0 -5
  34. package/lib/materials/sxp/defaultSetting.js +1 -1
  35. package/lib/materials/sxp/template/Commodity/index.js +4 -4
  36. package/lib/materials/sxp/template/CommodityDiro/index.js +4 -4
  37. package/lib/materials/sxp/template/CommodityDiroNew/index.js +4 -4
  38. package/lib/materials/sxp/template/MultiCommodity/index.js +4 -4
  39. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +4 -4
  40. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +4 -4
  41. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -579,9 +579,17 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
579
579
  if (!enableReportEvent || !enabledMetaConversionApi) {
580
580
  return;
581
581
  }
582
+ const fakeUserId = storeAndLoadFeUserId();
582
583
  return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
583
584
  method: 'POST',
584
- body: { eventName, actionSource, eventSourceUrl, 'userData.externalId': externalId },
585
+ body: {
586
+ eventName,
587
+ actionSource,
588
+ eventSourceUrl,
589
+ userData: {
590
+ externalId: fakeUserId
591
+ }
592
+ },
585
593
  type: 'beacon'
586
594
  });
587
595
  }, [bffFetch, enableReportEvent, enabledMetaConversionApi]);
@@ -950,11 +958,11 @@ var interactionRender$8 = [
950
958
  * @Author: binruan@chatlabs.com
951
959
  * @Date: 2024-04-28 14:42:22
952
960
  * @LastEditors: binruan@chatlabs.com
953
- * @LastEditTime: 2024-05-17 14:07:01
961
+ * @LastEditTime: 2024-05-23 17:01:21
954
962
  * @FilePath: \pb-sxp-ui\src\materials\sxp\defaultSetting.ts
955
963
  *
956
964
  */
957
- const fontOptions = [{ label: '默认字体', value: 'appFont' }];
965
+ const fontOptions = [{ label: 'defalut', value: 'appFont' }];
958
966
  const sxpFonts = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.localStorage.getItem('sxp_font_links'));
959
967
  const data = sxpFonts && sxpFonts !== '' ? JSON.parse(sxpFonts) : [];
960
968
  var defaultSetting = {
@@ -9500,11 +9508,11 @@ var EventProvider$1 = React.memo(EventProvider);
9500
9508
  var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9501
9509
 
9502
9510
  const Commodity$1 = (_a) => {
9503
- var _b, _c, _d, _e, _f, _g, _h;
9511
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k;
9504
9512
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
9505
9513
  const { sxpParameter } = useSxpDataSource();
9506
9514
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9507
- const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9515
+ 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;
9508
9516
  return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9509
9517
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9510
9518
  React.createElement(FormatImage$1, { className: css.css({
@@ -9522,8 +9530,8 @@ const Commodity$1 = (_a) => {
9522
9530
  width: '100%',
9523
9531
  overflow: 'hidden'
9524
9532
  }) },
9525
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : '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)) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now'))));
9533
+ 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'),
9534
+ 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'))));
9527
9535
  };
9528
9536
  var CommodityComponent = React.memo(Commodity$1);
9529
9537
 
@@ -9749,11 +9757,11 @@ var interactionRender$4 = [
9749
9757
  var styles$4 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
9750
9758
 
9751
9759
  const CommodityDiro$1 = (_a) => {
9752
- var _b, _c, _d, _e, _f, _g, _h;
9760
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k;
9753
9761
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
9754
9762
  const { sxpParameter } = useSxpDataSource();
9755
9763
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9756
- const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9764
+ 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;
9757
9765
  return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9758
9766
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9759
9767
  React.createElement(FormatImage$1, { className: css.css({
@@ -9771,8 +9779,8 @@ const CommodityDiro$1 = (_a) => {
9771
9779
  width: '100%',
9772
9780
  overflow: 'hidden'
9773
9781
  }) },
9774
- React.createElement("div", { className: styles$4['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : '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)) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now'))));
9782
+ 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'),
9783
+ 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'))));
9776
9784
  };
9777
9785
  var CommodityDiroComponent = React.memo(CommodityDiro$1);
9778
9786
 
@@ -9847,11 +9855,11 @@ var interactionRender$3 = [
9847
9855
  var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
9848
9856
 
9849
9857
  const CommodityDiroNew$1 = (_a) => {
9850
- var _b, _c, _d, _e, _f, _g, _h;
9858
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k;
9851
9859
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0 } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY"]);
9852
9860
  const { sxpParameter } = useSxpDataSource();
9853
9861
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9854
- const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9862
+ 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;
9855
9863
  return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9856
9864
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9857
9865
  React.createElement(FormatImage$1, { className: css.css({
@@ -9869,8 +9877,8 @@ const CommodityDiroNew$1 = (_a) => {
9869
9877
  width: '100%',
9870
9878
  overflow: 'hidden'
9871
9879
  }) },
9872
- React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_f = product === null || product === void 0 ? void 0 : product.title) !== null && _f !== void 0 ? _f : '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)) }, (_h = (_g = product === null || product === void 0 ? void 0 : product.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop now'))));
9880
+ 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'),
9881
+ 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'))));
9874
9882
  };
9875
9883
  var CommodityDiroNewComponent = React.memo(CommodityDiroNew$1);
9876
9884
 
@@ -9999,10 +10007,10 @@ const MultiCommodityDiro$1 = (_a) => {
9999
10007
  }
10000
10008
  }, popup === null || popup === void 0 ? void 0 : popup.duration);
10001
10009
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
10002
- var _a, _b, _c, _d, _e, _f;
10010
+ var _a, _b, _c, _d, _e, _f, _g;
10003
10011
  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) }),
10004
10012
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10005
- React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item, index: index, style: {
10013
+ 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: {
10006
10014
  transform: `translateY(${translateY}%)`
10007
10015
  } })),
10008
10016
  React.createElement("div", { className: css.css({
@@ -10013,8 +10021,8 @@ const MultiCommodityDiro$1 = (_a) => {
10013
10021
  width: '100%',
10014
10022
  overflow: 'hidden'
10015
10023
  }) },
10016
- React.createElement("div", { className: styles$2['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : '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)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
10024
+ 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'),
10025
+ 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'))));
10018
10026
  })));
10019
10027
  };
10020
10028
  var MultiCommodityDiroComponent = React.memo(MultiCommodityDiro$1);
@@ -10114,10 +10122,10 @@ const MultiCommodity$1 = (_a) => {
10114
10122
  }
10115
10123
  }, popup === null || popup === void 0 ? void 0 : popup.duration);
10116
10124
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
10117
- var _a, _b, _c, _d, _e, _f;
10125
+ var _a, _b, _c, _d, _e, _f, _g;
10118
10126
  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) }),
10119
10127
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10120
- React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item, index: index, style: {
10128
+ 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: {
10121
10129
  transform: `translateY(${translateY}%)`
10122
10130
  } })),
10123
10131
  React.createElement("div", { className: css.css({
@@ -10128,8 +10136,8 @@ const MultiCommodity$1 = (_a) => {
10128
10136
  width: '100%',
10129
10137
  overflow: 'hidden'
10130
10138
  }) },
10131
- React.createElement("div", { className: styles$1['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : '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)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now'))));
10139
+ 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'),
10140
+ 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'))));
10133
10141
  })));
10134
10142
  };
10135
10143
  var MultiCommodityComponent = React.memo(MultiCommodity$1);
@@ -10228,10 +10236,10 @@ const MultiCommodityDiroNew$1 = (_a) => {
10228
10236
  }
10229
10237
  }, popup === null || popup === void 0 ? void 0 : popup.duration);
10230
10238
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
10231
- var _a, _b, _c, _d, _e, _f;
10239
+ var _a, _b, _c, _d, _e, _f, _g;
10232
10240
  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) }),
10233
10241
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10234
- React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item, index: index, style: {
10242
+ 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: {
10235
10243
  transform: `translateY(${translateY}%)`
10236
10244
  } })),
10237
10245
  React.createElement("div", { className: css.css({
@@ -10243,8 +10251,8 @@ const MultiCommodityDiroNew$1 = (_a) => {
10243
10251
  overflow: 'hidden',
10244
10252
  lineHeight: '20px'
10245
10253
  }) },
10246
- React.createElement("div", { className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : '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)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop now'))));
10254
+ 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'),
10255
+ 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'))));
10248
10256
  })));
10249
10257
  };
10250
10258
  var MultiCommodityDiroNewComponent = React.memo(MultiCommodityDiroNew$1);
@@ -10311,7 +10319,7 @@ var _a, _b;
10311
10319
  * @Author: binruan@chatlabs.com
10312
10320
  * @Date: 2024-04-07 14:07:12
10313
10321
  * @LastEditors: binruan@chatlabs.com
10314
- * @LastEditTime: 2024-04-29 19:55:53
10322
+ * @LastEditTime: 2024-05-23 11:03:15
10315
10323
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
10316
10324
  *
10317
10325
  */
@@ -10319,11 +10327,11 @@ var settingRender = [
10319
10327
  {
10320
10328
  title: '卡片样式',
10321
10329
  child: [
10322
- {
10323
- type: 'Number',
10324
- label: '文本行数',
10325
- name: ['props', 'lineClamp']
10326
- },
10330
+ // {
10331
+ // type: 'Number',
10332
+ // label: '文本行数',
10333
+ // name: ['props', 'lineClamp']
10334
+ // },
10327
10335
  {
10328
10336
  type: 'Number',
10329
10337
  label: '上下边距',
@@ -11807,19 +11815,15 @@ const WaterfallFlowItem = (props) => {
11807
11815
  const canvasRef = React.useRef(null);
11808
11816
  const [firstFrameSrc, setFirstFrameSrc] = React.useState('');
11809
11817
  const src = React.useMemo(() => {
11810
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
11818
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
11811
11819
  if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
11812
11820
  return (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.cover;
11813
11821
  }
11814
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.url) {
11815
- setShowVideo(true);
11816
- return (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.url;
11822
+ 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) {
11823
+ 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];
11817
11824
  }
11818
- else if ((_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.length) {
11819
- return (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.imgUrls) === null || _h === void 0 ? void 0 : _h[0];
11820
- }
11821
- 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) {
11822
- 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];
11825
+ 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) {
11826
+ 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];
11823
11827
  }
11824
11828
  else {
11825
11829
  return (sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) || '';
@@ -12868,7 +12872,7 @@ var RenderCard$1 = React.memo(RenderCard);
12868
12872
  * @Author: binruan@chatlabs.com
12869
12873
  * @Date: 2024-03-26 10:07:41
12870
12874
  * @LastEditors: binruan@chatlabs.com
12871
- * @LastEditTime: 2024-04-15 14:27:18
12875
+ * @LastEditTime: 2024-05-23 14:31:12
12872
12876
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
12873
12877
  *
12874
12878
  */
@@ -12881,8 +12885,8 @@ const Nudge = ({ nudge }) => {
12881
12885
  backgroundColor: nudge === null || nudge === void 0 ? void 0 : nudge.backgroundColor,
12882
12886
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
12883
12887
  } },
12884
- (nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover' } }) : null,
12885
- 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 : '')))));
12888
+ (nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? React.createElement("img", { src: nudge.icon, style: { height: '100%', objectFit: 'cover', flexShrink: 0 } }) : null,
12889
+ 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 : '')))));
12886
12890
  };
12887
12891
 
12888
12892
  const DEFAULT_TAG = 'FOR U';
@@ -12926,7 +12930,7 @@ var Tagbar$1 = React.memo(Tagbar);
12926
12930
  * @Author: binruan@chatlabs.com
12927
12931
  * @Date: 2024-01-15 19:03:09
12928
12932
  * @LastEditors: binruan@chatlabs.com
12929
- * @LastEditTime: 2024-05-17 13:58:46
12933
+ * @LastEditTime: 2024-05-23 10:41:27
12930
12934
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12931
12935
  *
12932
12936
  */
@@ -13228,7 +13232,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13228
13232
  }
13229
13233
  };
13230
13234
  const handleScrollEvent = (swiper) => {
13231
- var _a, _b, _c, _d, _e, _f, _g, _h;
13235
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13232
13236
  viewTime.current = new Date();
13233
13237
  const item = data[swiper.previousIndex];
13234
13238
  if (!item)
@@ -13261,14 +13265,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13261
13265
  }
13262
13266
  // 商品浏览事件
13263
13267
  handleReportProductView(item);
13268
+ const curItem = data[swiper.activeIndex];
13269
+ 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)) {
13270
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
13271
+ eventName: 'ProductView'
13272
+ });
13273
+ }
13264
13274
  };
13265
13275
  const handleReportProductView = (item) => {
13266
13276
  var _a, _b, _c;
13267
13277
  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)) {
13268
13278
  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);
13269
- bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
13270
- eventName: 'ProductView'
13271
- });
13272
13279
  }
13273
13280
  };
13274
13281
  React.useEffect(() => {