pb-sxp-ui 1.6.2 → 1.6.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.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +9 -8
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +8 -7
- package/lib/core/components/SxpPageRender/index.js +8 -7
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -16310,12 +16310,12 @@ Made in Italy` })));
|
|
16310
16310
|
* @Author: binruan@chatlabs.com
|
16311
16311
|
* @Date: 2024-01-15 19:03:09
|
16312
16312
|
* @LastEditors: binruan@chatlabs.com
|
16313
|
-
* @LastEditTime: 2024-10-
|
16313
|
+
* @LastEditTime: 2024-10-15 14:37:11
|
16314
16314
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16315
16315
|
*
|
16316
16316
|
*/
|
16317
16317
|
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
16318
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
16318
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
16319
16319
|
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
16320
16320
|
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
16321
16321
|
const { schema } = useEditor();
|
@@ -16471,10 +16471,10 @@ Made in Italy` })));
|
|
16471
16471
|
minusHeight += 56;
|
16472
16472
|
}
|
16473
16473
|
return minusHeight;
|
16474
|
-
}, []);
|
16474
|
+
}, [globalConfig]);
|
16475
16475
|
const height = React.useMemo(() => {
|
16476
16476
|
return containerHeight - minusHeight - tagHeight;
|
16477
|
-
}, [
|
16477
|
+
}, [minusHeight, containerHeight, tagHeight]);
|
16478
16478
|
const visList = React.useMemo(() => {
|
16479
16479
|
var _a;
|
16480
16480
|
const list = activeIndex === 0 && !waterFallData && !isEditor
|
@@ -16811,14 +16811,15 @@ Made in Italy` })));
|
|
16811
16811
|
((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && (React.createElement("button", { style: {
|
16812
16812
|
position: 'absolute',
|
16813
16813
|
[(_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _g === void 0 ? void 0 : _g.xPosit) !== null && _h !== void 0 ? _h : 'left']: (_k = (_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _j === void 0 ? void 0 : _j.x) !== null && _k !== void 0 ? _k : 0,
|
16814
|
-
[(_m = (_l = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _l === void 0 ? void 0 : _l.yPosit) !== null && _m !== void 0 ? _m : 'top']: (
|
16814
|
+
[(_m = (_l = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _l === void 0 ? void 0 : _l.yPosit) !== null && _m !== void 0 ? _m : 'top']: (((_o = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _o === void 0 ? void 0 : _o.yPosit) == 'top' ? minusHeight + tagHeight : 0) +
|
16815
|
+
((_q = (_p = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _p === void 0 ? void 0 : _p.y) !== null && _q !== void 0 ? _q : 0),
|
16815
16816
|
zIndex: 8,
|
16816
16817
|
border: 'none',
|
16817
16818
|
padding: 0,
|
16818
16819
|
background: 'transparent'
|
16819
16820
|
}, role: 'button', "aria-label": 'back button', onClick: () => history === null || history === void 0 ? void 0 : history.back() },
|
16820
|
-
React.createElement("img", { src: (
|
16821
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((
|
16821
|
+
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: 50, style: { objectFit: 'cover' } }))),
|
16822
|
+
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,
|
16822
16823
|
React.createElement(Swiper, { style: {
|
16823
16824
|
marginTop: tagHeight
|
16824
16825
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -16850,7 +16851,7 @@ Made in Italy` })));
|
|
16850
16851
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
16851
16852
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
|
16852
16853
|
renderView),
|
16853
|
-
React.createElement(WaterFall$1, Object.assign({}, (
|
16854
|
+
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))));
|
16854
16855
|
};
|
16855
16856
|
|
16856
16857
|
const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
|