pb-sxp-ui 1.9.2 → 1.9.4

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.css CHANGED
@@ -159,7 +159,18 @@ a:active {
159
159
  right: 0;
160
160
  padding: 0;
161
161
  border: none;
162
- line-height: 4;
162
+ display: -webkit-box;
163
+ display: -webkit-flex;
164
+ display: -ms-flexbox;
165
+ display: flex;
166
+ -webkit-box-align: center;
167
+ -webkit-align-items: center;
168
+ -ms-flex-align: center;
169
+ align-items: center;
170
+ -webkit-box-pack: center;
171
+ -webkit-justify-content: center;
172
+ -ms-flex-pack: center;
173
+ justify-content: center;
163
174
  }
164
175
  .commondityDetail-swiper-clickable-left {
165
176
  padding-left: 17px !important;
@@ -639,8 +650,18 @@ a:active {
639
650
  width: -webkit-fill-available;
640
651
  padding: 0;
641
652
  border: none;
642
- display: block;
643
- line-height: 4;
653
+ display: -webkit-box;
654
+ display: -webkit-flex;
655
+ display: -ms-flexbox;
656
+ display: flex;
657
+ -webkit-box-align: center;
658
+ -webkit-align-items: center;
659
+ -ms-flex-align: center;
660
+ align-items: center;
661
+ -webkit-box-pack: center;
662
+ -webkit-justify-content: center;
663
+ -ms-flex-pack: center;
664
+ justify-content: center;
644
665
  }
645
666
  .commondityDiroNew-swiper-clickable-left {
646
667
  padding-left: 17px !important ;
@@ -2124,6 +2145,7 @@ button.swiper-pagination-bullet {
2124
2145
  }
2125
2146
  .clc-sxp-nav-left img {
2126
2147
  width: 100%;
2148
+ display: block;
2127
2149
  }
2128
2150
  .clc-sxp-nav-title {
2129
2151
  font-size: 16px;
package/dist/index.js CHANGED
@@ -17546,7 +17546,7 @@ var ConsentPopup = memo(Consent);
17546
17546
  * @Author: binruan@chatlabs.com
17547
17547
  * @Date: 2024-03-20 10:27:31
17548
17548
  * @LastEditors: binruan@chatlabs.com
17549
- * @LastEditTime: 2024-11-19 09:47:45
17549
+ * @LastEditTime: 2024-11-21 11:01:19
17550
17550
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
17551
17551
  *
17552
17552
  */
@@ -17559,7 +17559,7 @@ var ConsentPopup = memo(Consent);
17559
17559
  *
17560
17560
  */
17561
17561
  const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, hashTagRightMargin, tagList = [], licenseUrl }) => {
17562
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
17562
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
17563
17563
  const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
17564
17564
  const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
17565
17565
  const { schema } = useEditor();
@@ -18073,8 +18073,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18073
18073
  padding: 0,
18074
18074
  background: 'transparent'
18075
18075
  }, role: 'button', "aria-label": 'back button', onClick: () => history === null || history === void 0 ? void 0 : history.back() },
18076
- React.createElement("img", { src: (_s = (_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _r === void 0 ? void 0 : _r.icon) !== null && _s !== void 0 ? _s : img, alt: 'back button', width: 100, style: { objectFit: 'cover' } }))),
18077
- isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _t !== void 0 ? _t : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
18076
+ React.createElement("img", { src: ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _r === void 0 ? void 0 : _r.icon) || img, alt: 'back button', width: 100, style: { objectFit: 'cover' } }))),
18077
+ isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _s !== void 0 ? _s : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
18078
18078
  React.createElement(Swiper, { style: {
18079
18079
  marginTop: tagHeight
18080
18080
  }, ref: swiperRef, onSlideChange: () => {
@@ -18106,7 +18106,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18106
18106
  renderView,
18107
18107
  renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
18108
18108
  renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
18109
- React.createElement(WaterFall$1, Object.assign({}, (_w = (_v = (_u = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _u === void 0 ? void 0 : _u[0]) === null || _v === void 0 ? void 0 : _v.item) === null || _w === void 0 ? void 0 : _w.props)),
18109
+ React.createElement(WaterFall$1, Object.assign({}, (_v = (_u = (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _t === void 0 ? void 0 : _t[0]) === null || _u === void 0 ? void 0 : _u.item) === null || _v === void 0 ? void 0 : _v.props)),
18110
18110
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig })));
18111
18111
  };
18112
18112