pb-sxp-ui 1.0.103 → 1.0.104

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 (36) hide show
  1. package/dist/index.cjs +25 -21
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +2 -17
  4. package/dist/index.js +25 -21
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +25 -21
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/Navbar.js +1 -1
  15. package/es/core/components/SxpPageRender/WaterFall/List.js +1 -1
  16. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  17. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  18. package/es/core/components/SxpPageRender/index.js +3 -3
  19. package/es/materials/sxp/HashTag/material.js +2 -1
  20. package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  22. package/es/materials/sxp/template/Link/index.js +2 -3
  23. package/es/materials/sxp/template/components/Img.js +1 -1
  24. package/es/materials/sxp/template/components/settingRender.js +5 -0
  25. package/lib/core/components/SxpPageRender/Navbar.js +1 -1
  26. package/lib/core/components/SxpPageRender/WaterFall/List.js +1 -1
  27. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  28. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  29. package/lib/core/components/SxpPageRender/index.js +3 -3
  30. package/lib/materials/sxp/HashTag/material.js +2 -1
  31. package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
  32. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  33. package/lib/materials/sxp/template/Link/index.js +2 -3
  34. package/lib/materials/sxp/template/components/Img.js +1 -1
  35. package/lib/materials/sxp/template/components/settingRender.js +5 -0
  36. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -238,23 +238,6 @@
238
238
  word-wrap: break-word;
239
239
  }
240
240
 
241
- .index-module_tow-line-ellipsis__nkBlU {
242
- display: -webkit-box;
243
- -webkit-box-orient: vertical;
244
- -webkit-line-clamp: 2;
245
- text-overflow: ellipsis;
246
- overflow: hidden;
247
- word-wrap: break-word;
248
- }
249
- .index-module_one-line-ellipsis__buFw1 {
250
- display: -webkit-box;
251
- -webkit-box-orient: vertical;
252
- -webkit-line-clamp: 1;
253
- text-overflow: ellipsis;
254
- overflow: hidden;
255
- word-break: break-all;
256
- }
257
-
258
241
  .index-module_tow-line-ellipsis__yyHVb {
259
242
  display: -webkit-box;
260
243
  -webkit-box-orient: vertical;
@@ -1673,6 +1656,8 @@ button.swiper-pagination-bullet {
1673
1656
  }
1674
1657
  .clc-sxp-nav-title {
1675
1658
  font-size: 16px;
1659
+ width: 100%;
1660
+ text-align: center;
1676
1661
  }
1677
1662
  .clc-pb-video-pause {
1678
1663
  position: absolute;
package/dist/index.js CHANGED
@@ -8806,7 +8806,7 @@ const CommodityDetail$1 = (_a) => {
8806
8806
  width: '100%',
8807
8807
  objectFit: 'cover',
8808
8808
  display: 'block',
8809
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8809
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8810
8810
  }, src: src }))));
8811
8811
  }))),
8812
8812
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -9403,7 +9403,7 @@ Made in Italy` })));
9403
9403
  width: '100%',
9404
9404
  objectFit: 'cover',
9405
9405
  display: 'block',
9406
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9406
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9407
9407
  }, src: src }))));
9408
9408
  }))),
9409
9409
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -9515,7 +9515,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
9515
9515
  * @Author: binruan@chatlabs.com
9516
9516
  * @Date: 2024-03-26 16:50:25
9517
9517
  * @LastEditors: binruan@chatlabs.com
9518
- * @LastEditTime: 2024-06-27 09:55:59
9518
+ * @LastEditTime: 2024-07-04 17:47:52
9519
9519
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
9520
9520
  *
9521
9521
  */
@@ -9760,6 +9760,11 @@ var settingRender$2 = [
9760
9760
  label: '对齐',
9761
9761
  type: 'TextAlign',
9762
9762
  name: ['props', 'ctaTempStyles', 'ctaTitle']
9763
+ },
9764
+ {
9765
+ label: '间距',
9766
+ type: 'TextSpace',
9767
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
9763
9768
  }
9764
9769
  ]
9765
9770
  }
@@ -9807,7 +9812,7 @@ const EventProvider = (_a) => {
9807
9812
  };
9808
9813
  var EventProvider$1 = memo(EventProvider);
9809
9814
 
9810
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9815
+ var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9811
9816
 
9812
9817
  /*
9813
9818
  * @Author: binruan@chatlabs.com
@@ -9840,7 +9845,7 @@ function useOnScreen(ref) {
9840
9845
  * @Author: binruan@chatlabs.com
9841
9846
  * @Date: 2024-01-16 14:50:13
9842
9847
  * @LastEditors: binruan@chatlabs.com
9843
- * @LastEditTime: 2024-06-24 18:13:14
9848
+ * @LastEditTime: 2024-07-04 18:13:23
9844
9849
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
9845
9850
  *
9846
9851
  */
@@ -9861,7 +9866,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
9861
9866
  }, [src]);
9862
9867
  return (React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
9863
9868
  React.createElement("div", { ref: ref, hidden: !src, className: css({ width: '100%', height: '100%' }) },
9864
- React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? -translateY + 50 : 50}%` }, style)), src: src }))));
9869
+ React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
9865
9870
  };
9866
9871
  var Img$1 = memo(Img);
9867
9872
 
@@ -9881,7 +9886,7 @@ const Commodity$1 = (_a) => {
9881
9886
  width: '100%',
9882
9887
  overflow: 'hidden'
9883
9888
  }) },
9884
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9889
+ React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9885
9890
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
9886
9891
  } }),
9887
9892
  React.createElement("div", { className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -10133,8 +10138,6 @@ var linkSettingRender = [
10133
10138
  }
10134
10139
  ];
10135
10140
 
10136
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
10137
-
10138
10141
  const Link$1 = (_a) => {
10139
10142
  var _b, _c, _d, _e, _f, _g, _h, _j;
10140
10143
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
@@ -10158,10 +10161,10 @@ const Link$1 = (_a) => {
10158
10161
  overflow: 'hidden'
10159
10162
  }) },
10160
10163
  React.createElement("div", null,
10161
- React.createElement("div", { className: (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) ? styles$5['one-line-ellipsis'] : styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10164
+ React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10162
10165
  __html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
10163
10166
  } }),
10164
- (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles$5['one-line-ellipsis'], dangerouslySetInnerHTML: {
10167
+ (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: 'one-line-ellipsis', dangerouslySetInnerHTML: {
10165
10168
  __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
10166
10169
  } }))))));
10167
10170
  };
@@ -10990,7 +10993,7 @@ var settingRender$1 = [
10990
10993
  * @Author: binruan@chatlabs.com
10991
10994
  * @Date: 2023-12-26 16:11:34
10992
10995
  * @LastEditors: binruan@chatlabs.com
10993
- * @LastEditTime: 2024-06-27 10:19:28
10996
+ * @LastEditTime: 2024-07-04 18:34:18
10994
10997
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
10995
10998
  *
10996
10999
  */
@@ -10999,7 +11002,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
10999
11002
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
11000
11003
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
11001
11004
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
11002
- React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
11005
+ React.createElement("div", { className: 'clc-sxp-nav-title', style: Object.assign(Object.assign({}, textStyle), { paddingLeft: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.textAlign) === 'left' ? '35px' : 0 }), dangerouslySetInnerHTML: {
11003
11006
  __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
11004
11007
  } })));
11005
11008
  };
@@ -12594,7 +12597,7 @@ function WaterfallList$1(_a) {
12594
12597
  var _a, _b;
12595
12598
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12596
12599
  reportTagsView();
12597
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12600
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12598
12601
  }
12599
12602
  };
12600
12603
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12829,7 +12832,7 @@ function WaterfallList(_a) {
12829
12832
  var _a, _b;
12830
12833
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12831
12834
  reportTagsView();
12832
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12835
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12833
12836
  }
12834
12837
  };
12835
12838
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12982,7 +12985,7 @@ var HashTagComponent = memo(HashTag$1);
12982
12985
  * @Author: binruan@chatlabs.com
12983
12986
  * @Date: 2023-07-28 18:29:57
12984
12987
  * @LastEditors: binruan@chatlabs.com
12985
- * @LastEditTime: 2024-04-30 10:13:13
12988
+ * @LastEditTime: 2024-07-04 18:38:10
12986
12989
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
12987
12990
  *
12988
12991
  */
@@ -13002,7 +13005,8 @@ const HashTag = createMaterial(HashTagComponent, {
13002
13005
  textStyles: {
13003
13006
  hashTagTitle: {
13004
13007
  fontSize: 16,
13005
- color: '#000'
13008
+ color: '#000',
13009
+ textAlign: 'center'
13006
13010
  },
13007
13011
  hashTagDesc: {
13008
13012
  fontSize: 12,
@@ -13961,7 +13965,7 @@ var Tagbar$1 = memo(Tagbar);
13961
13965
  * @Author: binruan@chatlabs.com
13962
13966
  * @Date: 2024-01-15 19:03:09
13963
13967
  * @LastEditors: binruan@chatlabs.com
13964
- * @LastEditTime: 2024-07-02 17:55:40
13968
+ * @LastEditTime: 2024-07-04 18:04:10
13965
13969
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13966
13970
  *
13967
13971
  */
@@ -14349,7 +14353,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14349
14353
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
14350
14354
  top: minusHeight
14351
14355
  } }),
14352
- isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 + ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` } })) : null,
14356
+ isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` } })) : null,
14353
14357
  React.createElement(Swiper, { style: {
14354
14358
  marginTop: tagHeight
14355
14359
  }, ref: swiperRef, onSlideChange: () => {
@@ -14374,13 +14378,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14374
14378
  }
14375
14379
  }
14376
14380
  }, direction: 'vertical', height: height },
14377
- React.createElement(ToggleButton$1, { style: {
14381
+ ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === true) && (React.createElement(ToggleButton$1, { style: {
14378
14382
  position: 'fixed',
14379
14383
  visibility: ((_c = (_b = data === null || data === void 0 ? void 0 : data[activeIndex]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.url) ? 'visible' : 'hidden',
14380
14384
  zIndex: 999,
14381
14385
  [(_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconXPosit) !== null && _d !== void 0 ? _d : 'right']: (_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconX) !== null && _e !== void 0 ? _e : 0,
14382
14386
  [(_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) !== null && _f !== void 0 ? _f : 'bottom']: (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconY) !== null && _g !== void 0 ? _g : 23
14383
- }, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted }),
14387
+ }, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted })),
14384
14388
  renderView),
14385
14389
  React.createElement(WaterFall$1, Object.assign({}, (_k = (_j = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.item) === null || _k === void 0 ? void 0 : _k.props))));
14386
14390
  };