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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +2 -2
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/es/materials/sxp/MultiPosts/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +2 -2
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/materials/sxp/MultiPosts/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1016,7 +1016,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1016
1016
|
h5EnterLink();
|
1017
1017
|
}, [isShowConsent]);
|
1018
1018
|
React.useEffect(() => {
|
1019
|
-
if (isShowConsent)
|
1019
|
+
if (isShowConsent || isPreview)
|
1020
1020
|
return;
|
1021
1021
|
setLoading(true);
|
1022
1022
|
let layId;
|
@@ -16821,7 +16821,7 @@ const MultiPosts$1 = (_a) => {
|
|
16821
16821
|
var { bgImgUrl, style, recData } = _a, props = __rest(_a, ["bgImgUrl", "style", "recData"]);
|
16822
16822
|
const { setChannel } = useEditor();
|
16823
16823
|
const { bffEventReport, curTime } = useSxpDataSource();
|
16824
|
-
const { isActive } = useSwiperSlide();
|
16824
|
+
const { isActive } = useSwiperSlide() || {};
|
16825
16825
|
const initRef = React.useRef(false);
|
16826
16826
|
const viewTime = React.useRef();
|
16827
16827
|
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 : '';
|
@@ -17936,7 +17936,7 @@ var NavBack$1 = React.memo(NavBack);
|
|
17936
17936
|
* @Author: binruan@chatlabs.com
|
17937
17937
|
* @Date: 2024-03-20 10:27:31
|
17938
17938
|
* @LastEditors: binruan@chatlabs.com
|
17939
|
-
* @LastEditTime: 2024-11-27
|
17939
|
+
* @LastEditTime: 2024-11-27 15:55:34
|
17940
17940
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
17941
17941
|
*
|
17942
17942
|
*/
|
@@ -18449,8 +18449,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18449
18449
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
18450
18450
|
top: minusHeight
|
18451
18451
|
} }),
|
18452
|
-
((_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() })),
|
18453
|
-
((_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: () => {
|
18452
|
+
((_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() })),
|
18453
|
+
((((_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: () => {
|
18454
18454
|
var _a, _b, _c;
|
18455
18455
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
18456
18456
|
eventInfo: {
|