pb-sxp-ui 1.9.2 → 1.9.3

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
@@ -2124,6 +2124,7 @@ button.swiper-pagination-bullet {
2124
2124
  }
2125
2125
  .clc-sxp-nav-left img {
2126
2126
  width: 100%;
2127
+ display: block;
2127
2128
  }
2128
2129
  .clc-sxp-nav-title {
2129
2130
  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