pb-sxp-ui 1.10.0 → 1.10.1

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.js CHANGED
@@ -994,7 +994,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
994
994
  h5EnterLink();
995
995
  }, [isShowConsent]);
996
996
  useEffect(() => {
997
- if (isShowConsent)
997
+ if (isShowConsent || isPreview)
998
998
  return;
999
999
  setLoading(true);
1000
1000
  let layId;
@@ -16799,7 +16799,7 @@ const MultiPosts$1 = (_a) => {
16799
16799
  var { bgImgUrl, style, recData } = _a, props = __rest(_a, ["bgImgUrl", "style", "recData"]);
16800
16800
  const { setChannel } = useEditor();
16801
16801
  const { bffEventReport, curTime } = useSxpDataSource();
16802
- const { isActive } = useSwiperSlide();
16802
+ const { isActive } = useSwiperSlide() || {};
16803
16803
  const initRef = useRef(false);
16804
16804
  const viewTime = useRef();
16805
16805
  const traceinfo = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : '';
@@ -17914,7 +17914,7 @@ var NavBack$1 = memo(NavBack);
17914
17914
  * @Author: binruan@chatlabs.com
17915
17915
  * @Date: 2024-03-20 10:27:31
17916
17916
  * @LastEditors: binruan@chatlabs.com
17917
- * @LastEditTime: 2024-11-27 11:52:24
17917
+ * @LastEditTime: 2024-11-27 15:55:34
17918
17918
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
17919
17919
  *
17920
17920
  */
@@ -18427,8 +18427,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18427
18427
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
18428
18428
  top: minusHeight
18429
18429
  } }),
18430
- ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
18431
- ((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
18430
+ ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
18431
+ ((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
18432
18432
  var _a, _b, _c;
18433
18433
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18434
18434
  eventInfo: {