pb-sxp-ui 1.0.103 → 1.0.104
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 +25 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -17
- package/dist/index.js +25 -21
- 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 +25 -21
- 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 -3
- 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 -3
- 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
|
}
|
@@ -9829,7 +9834,7 @@ const EventProvider = (_a) => {
|
|
9829
9834
|
};
|
9830
9835
|
var EventProvider$1 = React.memo(EventProvider);
|
9831
9836
|
|
9832
|
-
var styles$
|
9837
|
+
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9833
9838
|
|
9834
9839
|
/*
|
9835
9840
|
* @Author: binruan@chatlabs.com
|
@@ -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
|
|
@@ -9903,7 +9908,7 @@ const Commodity$1 = (_a) => {
|
|
9903
9908
|
width: '100%',
|
9904
9909
|
overflow: 'hidden'
|
9905
9910
|
}) },
|
9906
|
-
React.createElement("div", { className: styles$
|
9911
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
9907
9912
|
__html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
|
9908
9913
|
} }),
|
9909
9914
|
React.createElement("div", { className: css.css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
|
@@ -10155,8 +10160,6 @@ var linkSettingRender = [
|
|
10155
10160
|
}
|
10156
10161
|
];
|
10157
10162
|
|
10158
|
-
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
10159
|
-
|
10160
10163
|
const Link$1 = (_a) => {
|
10161
10164
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
10162
10165
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
|
@@ -10180,10 +10183,10 @@ const Link$1 = (_a) => {
|
|
10180
10183
|
overflow: 'hidden'
|
10181
10184
|
}) },
|
10182
10185
|
React.createElement("div", null,
|
10183
|
-
React.createElement("div", { className:
|
10186
|
+
React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10184
10187
|
__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
10188
|
} }),
|
10186
|
-
(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:
|
10189
|
+
(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: 'one-line-ellipsis', dangerouslySetInnerHTML: {
|
10187
10190
|
__html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
|
10188
10191
|
} }))))));
|
10189
10192
|
};
|
@@ -11012,7 +11015,7 @@ var settingRender$1 = [
|
|
11012
11015
|
* @Author: binruan@chatlabs.com
|
11013
11016
|
* @Date: 2023-12-26 16:11:34
|
11014
11017
|
* @LastEditors: binruan@chatlabs.com
|
11015
|
-
* @LastEditTime: 2024-
|
11018
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
11016
11019
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
11017
11020
|
*
|
11018
11021
|
*/
|
@@ -11021,7 +11024,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
|
|
11021
11024
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11022
11025
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11023
11026
|
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: {
|
11027
|
+
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
11028
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11026
11029
|
} })));
|
11027
11030
|
};
|
@@ -12616,7 +12619,7 @@ function WaterfallList$1(_a) {
|
|
12616
12619
|
var _a, _b;
|
12617
12620
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12618
12621
|
reportTagsView();
|
12619
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12622
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12620
12623
|
}
|
12621
12624
|
};
|
12622
12625
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12851,7 +12854,7 @@ function WaterfallList(_a) {
|
|
12851
12854
|
var _a, _b;
|
12852
12855
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12853
12856
|
reportTagsView();
|
12854
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12857
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12855
12858
|
}
|
12856
12859
|
};
|
12857
12860
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13004,7 +13007,7 @@ var HashTagComponent = React.memo(HashTag$1);
|
|
13004
13007
|
* @Author: binruan@chatlabs.com
|
13005
13008
|
* @Date: 2023-07-28 18:29:57
|
13006
13009
|
* @LastEditors: binruan@chatlabs.com
|
13007
|
-
* @LastEditTime: 2024-04
|
13010
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
13008
13011
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
13009
13012
|
*
|
13010
13013
|
*/
|
@@ -13024,7 +13027,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
13024
13027
|
textStyles: {
|
13025
13028
|
hashTagTitle: {
|
13026
13029
|
fontSize: 16,
|
13027
|
-
color: '#000'
|
13030
|
+
color: '#000',
|
13031
|
+
textAlign: 'center'
|
13028
13032
|
},
|
13029
13033
|
hashTagDesc: {
|
13030
13034
|
fontSize: 12,
|
@@ -13983,7 +13987,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
13983
13987
|
* @Author: binruan@chatlabs.com
|
13984
13988
|
* @Date: 2024-01-15 19:03:09
|
13985
13989
|
* @LastEditors: binruan@chatlabs.com
|
13986
|
-
* @LastEditTime: 2024-07-
|
13990
|
+
* @LastEditTime: 2024-07-04 18:04:10
|
13987
13991
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13988
13992
|
*
|
13989
13993
|
*/
|
@@ -14371,7 +14375,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14371
14375
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
14372
14376
|
top: minusHeight
|
14373
14377
|
} }),
|
14374
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
14378
|
+
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
14379
|
React.createElement(Swiper, { style: {
|
14376
14380
|
marginTop: tagHeight
|
14377
14381
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -14396,13 +14400,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14396
14400
|
}
|
14397
14401
|
}
|
14398
14402
|
}, direction: 'vertical', height: height },
|
14399
|
-
React.createElement(ToggleButton$1, { style: {
|
14403
|
+
((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
14404
|
position: 'fixed',
|
14401
14405
|
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
14406
|
zIndex: 999,
|
14403
14407
|
[(_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
14408
|
[(_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 }),
|
14409
|
+
}, 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
14410
|
renderView),
|
14407
14411
|
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
14412
|
};
|