pb-sxp-ui 1.0.103 → 1.0.105
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 +22 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -3
- package/dist/index.js +22 -16
- 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 +22 -16
- 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/Navbar.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +3 -3
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/es/materials/sxp/template/Link/index.js +2 -2
- package/es/materials/sxp/template/components/Img.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +5 -0
- package/lib/core/components/SxpPageRender/Navbar.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/Link/index.js +2 -2
- package/lib/materials/sxp/template/components/Img.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -8828,7 +8828,7 @@ const CommodityDetail$1 = (_a) => {
|
|
8828
8828
|
width: '100%',
|
8829
8829
|
objectFit: 'cover',
|
8830
8830
|
display: 'block',
|
8831
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
8831
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
8832
8832
|
}, src: src }))));
|
8833
8833
|
}))),
|
8834
8834
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -9425,7 +9425,7 @@ Made in Italy` })));
|
|
9425
9425
|
width: '100%',
|
9426
9426
|
objectFit: 'cover',
|
9427
9427
|
display: 'block',
|
9428
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
9428
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9429
9429
|
}, src: src }))));
|
9430
9430
|
}))),
|
9431
9431
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -9537,7 +9537,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
9537
9537
|
* @Author: binruan@chatlabs.com
|
9538
9538
|
* @Date: 2024-03-26 16:50:25
|
9539
9539
|
* @LastEditors: binruan@chatlabs.com
|
9540
|
-
* @LastEditTime: 2024-
|
9540
|
+
* @LastEditTime: 2024-07-04 17:47:52
|
9541
9541
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
9542
9542
|
*
|
9543
9543
|
*/
|
@@ -9782,6 +9782,11 @@ var settingRender$2 = [
|
|
9782
9782
|
label: '对齐',
|
9783
9783
|
type: 'TextAlign',
|
9784
9784
|
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9785
|
+
},
|
9786
|
+
{
|
9787
|
+
label: '间距',
|
9788
|
+
type: 'TextSpace',
|
9789
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9785
9790
|
}
|
9786
9791
|
]
|
9787
9792
|
}
|
@@ -9862,7 +9867,7 @@ function useOnScreen(ref) {
|
|
9862
9867
|
* @Author: binruan@chatlabs.com
|
9863
9868
|
* @Date: 2024-01-16 14:50:13
|
9864
9869
|
* @LastEditors: binruan@chatlabs.com
|
9865
|
-
* @LastEditTime: 2024-
|
9870
|
+
* @LastEditTime: 2024-07-04 18:13:23
|
9866
9871
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
9867
9872
|
*
|
9868
9873
|
*/
|
@@ -9883,7 +9888,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
|
|
9883
9888
|
}, [src]);
|
9884
9889
|
return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
|
9885
9890
|
React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
|
9886
|
-
React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ?
|
9891
|
+
React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
|
9887
9892
|
};
|
9888
9893
|
var Img$1 = React.memo(Img);
|
9889
9894
|
|
@@ -10180,7 +10185,7 @@ const Link$1 = (_a) => {
|
|
10180
10185
|
overflow: 'hidden'
|
10181
10186
|
}) },
|
10182
10187
|
React.createElement("div", null,
|
10183
|
-
React.createElement("div", { className:
|
10188
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10184
10189
|
__html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
10185
10190
|
} }),
|
10186
10191
|
(customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles$5['one-line-ellipsis'], dangerouslySetInnerHTML: {
|
@@ -11012,7 +11017,7 @@ var settingRender$1 = [
|
|
11012
11017
|
* @Author: binruan@chatlabs.com
|
11013
11018
|
* @Date: 2023-12-26 16:11:34
|
11014
11019
|
* @LastEditors: binruan@chatlabs.com
|
11015
|
-
* @LastEditTime: 2024-
|
11020
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
11016
11021
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
11017
11022
|
*
|
11018
11023
|
*/
|
@@ -11021,7 +11026,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
|
|
11021
11026
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11022
11027
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11023
11028
|
React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
|
11024
|
-
React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
|
11029
|
+
React.createElement("div", { className: 'clc-sxp-nav-title', style: Object.assign(Object.assign({}, textStyle), { paddingLeft: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.textAlign) === 'left' ? '35px' : 0 }), dangerouslySetInnerHTML: {
|
11025
11030
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11026
11031
|
} })));
|
11027
11032
|
};
|
@@ -12616,7 +12621,7 @@ function WaterfallList$1(_a) {
|
|
12616
12621
|
var _a, _b;
|
12617
12622
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12618
12623
|
reportTagsView();
|
12619
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12624
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12620
12625
|
}
|
12621
12626
|
};
|
12622
12627
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12851,7 +12856,7 @@ function WaterfallList(_a) {
|
|
12851
12856
|
var _a, _b;
|
12852
12857
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12853
12858
|
reportTagsView();
|
12854
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12859
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12855
12860
|
}
|
12856
12861
|
};
|
12857
12862
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13004,7 +13009,7 @@ var HashTagComponent = React.memo(HashTag$1);
|
|
13004
13009
|
* @Author: binruan@chatlabs.com
|
13005
13010
|
* @Date: 2023-07-28 18:29:57
|
13006
13011
|
* @LastEditors: binruan@chatlabs.com
|
13007
|
-
* @LastEditTime: 2024-04
|
13012
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
13008
13013
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
13009
13014
|
*
|
13010
13015
|
*/
|
@@ -13024,7 +13029,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
13024
13029
|
textStyles: {
|
13025
13030
|
hashTagTitle: {
|
13026
13031
|
fontSize: 16,
|
13027
|
-
color: '#000'
|
13032
|
+
color: '#000',
|
13033
|
+
textAlign: 'center'
|
13028
13034
|
},
|
13029
13035
|
hashTagDesc: {
|
13030
13036
|
fontSize: 12,
|
@@ -13983,7 +13989,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
13983
13989
|
* @Author: binruan@chatlabs.com
|
13984
13990
|
* @Date: 2024-01-15 19:03:09
|
13985
13991
|
* @LastEditors: binruan@chatlabs.com
|
13986
|
-
* @LastEditTime: 2024-07-
|
13992
|
+
* @LastEditTime: 2024-07-04 18:04:10
|
13987
13993
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13988
13994
|
*
|
13989
13995
|
*/
|
@@ -14371,7 +14377,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14371
14377
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
14372
14378
|
top: minusHeight
|
14373
14379
|
} }),
|
14374
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
14380
|
+
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` } })) : null,
|
14375
14381
|
React.createElement(Swiper, { style: {
|
14376
14382
|
marginTop: tagHeight
|
14377
14383
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -14396,13 +14402,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14396
14402
|
}
|
14397
14403
|
}
|
14398
14404
|
}, direction: 'vertical', height: height },
|
14399
|
-
React.createElement(ToggleButton$1, { style: {
|
14405
|
+
((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === true) && (React.createElement(ToggleButton$1, { style: {
|
14400
14406
|
position: 'fixed',
|
14401
14407
|
visibility: ((_c = (_b = data === null || data === void 0 ? void 0 : data[activeIndex]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.url) ? 'visible' : 'hidden',
|
14402
14408
|
zIndex: 999,
|
14403
14409
|
[(_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconXPosit) !== null && _d !== void 0 ? _d : 'right']: (_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconX) !== null && _e !== void 0 ? _e : 0,
|
14404
14410
|
[(_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) !== null && _f !== void 0 ? _f : 'bottom']: (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconY) !== null && _g !== void 0 ? _g : 23
|
14405
|
-
}, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted }),
|
14411
|
+
}, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted })),
|
14406
14412
|
renderView),
|
14407
14413
|
React.createElement(WaterFall$1, Object.assign({}, (_k = (_j = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.item) === null || _k === void 0 ? void 0 : _k.props))));
|
14408
14414
|
};
|