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/pb-ui.js
CHANGED
@@ -8821,7 +8821,7 @@
|
|
8821
8821
|
width: '100%',
|
8822
8822
|
objectFit: 'cover',
|
8823
8823
|
display: 'block',
|
8824
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
8824
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
8825
8825
|
}, src: src }))));
|
8826
8826
|
}))),
|
8827
8827
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -9418,7 +9418,7 @@ Made in Italy` })));
|
|
9418
9418
|
width: '100%',
|
9419
9419
|
objectFit: 'cover',
|
9420
9420
|
display: 'block',
|
9421
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
9421
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9422
9422
|
}, src: src }))));
|
9423
9423
|
}))),
|
9424
9424
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -9530,7 +9530,7 @@ Made in Italy` })));
|
|
9530
9530
|
* @Author: binruan@chatlabs.com
|
9531
9531
|
* @Date: 2024-03-26 16:50:25
|
9532
9532
|
* @LastEditors: binruan@chatlabs.com
|
9533
|
-
* @LastEditTime: 2024-
|
9533
|
+
* @LastEditTime: 2024-07-04 17:47:52
|
9534
9534
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
9535
9535
|
*
|
9536
9536
|
*/
|
@@ -9775,6 +9775,11 @@ Made in Italy` })));
|
|
9775
9775
|
label: '对齐',
|
9776
9776
|
type: 'TextAlign',
|
9777
9777
|
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9778
|
+
},
|
9779
|
+
{
|
9780
|
+
label: '间距',
|
9781
|
+
type: 'TextSpace',
|
9782
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9778
9783
|
}
|
9779
9784
|
]
|
9780
9785
|
}
|
@@ -9822,7 +9827,7 @@ Made in Italy` })));
|
|
9822
9827
|
};
|
9823
9828
|
var EventProvider$1 = React.memo(EventProvider);
|
9824
9829
|
|
9825
|
-
var styles$
|
9830
|
+
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9826
9831
|
|
9827
9832
|
/*
|
9828
9833
|
* @Author: binruan@chatlabs.com
|
@@ -9855,7 +9860,7 @@ Made in Italy` })));
|
|
9855
9860
|
* @Author: binruan@chatlabs.com
|
9856
9861
|
* @Date: 2024-01-16 14:50:13
|
9857
9862
|
* @LastEditors: binruan@chatlabs.com
|
9858
|
-
* @LastEditTime: 2024-
|
9863
|
+
* @LastEditTime: 2024-07-04 18:13:23
|
9859
9864
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
9860
9865
|
*
|
9861
9866
|
*/
|
@@ -9876,7 +9881,7 @@ Made in Italy` })));
|
|
9876
9881
|
}, [src]);
|
9877
9882
|
return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
|
9878
9883
|
React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
|
9879
|
-
React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ?
|
9884
|
+
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 }))));
|
9880
9885
|
};
|
9881
9886
|
var Img$1 = React.memo(Img);
|
9882
9887
|
|
@@ -9896,7 +9901,7 @@ Made in Italy` })));
|
|
9896
9901
|
width: '100%',
|
9897
9902
|
overflow: 'hidden'
|
9898
9903
|
}) },
|
9899
|
-
React.createElement("div", { className: styles$
|
9904
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
9900
9905
|
__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)
|
9901
9906
|
} }),
|
9902
9907
|
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: {
|
@@ -10148,8 +10153,6 @@ Made in Italy` })));
|
|
10148
10153
|
}
|
10149
10154
|
];
|
10150
10155
|
|
10151
|
-
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
10152
|
-
|
10153
10156
|
const Link$1 = (_a) => {
|
10154
10157
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
10155
10158
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
|
@@ -10173,10 +10176,10 @@ Made in Italy` })));
|
|
10173
10176
|
overflow: 'hidden'
|
10174
10177
|
}) },
|
10175
10178
|
React.createElement("div", null,
|
10176
|
-
React.createElement("div", { className:
|
10179
|
+
React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10177
10180
|
__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)
|
10178
10181
|
} }),
|
10179
|
-
(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:
|
10182
|
+
(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: {
|
10180
10183
|
__html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
|
10181
10184
|
} }))))));
|
10182
10185
|
};
|
@@ -11005,7 +11008,7 @@ Made in Italy` })));
|
|
11005
11008
|
* @Author: binruan@chatlabs.com
|
11006
11009
|
* @Date: 2023-12-26 16:11:34
|
11007
11010
|
* @LastEditors: binruan@chatlabs.com
|
11008
|
-
* @LastEditTime: 2024-
|
11011
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
11009
11012
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
11010
11013
|
*
|
11011
11014
|
*/
|
@@ -11014,7 +11017,7 @@ Made in Italy` })));
|
|
11014
11017
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11015
11018
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11016
11019
|
React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
|
11017
|
-
React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
|
11020
|
+
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: {
|
11018
11021
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11019
11022
|
} })));
|
11020
11023
|
};
|
@@ -12609,7 +12612,7 @@ Made in Italy` })));
|
|
12609
12612
|
var _a, _b;
|
12610
12613
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12611
12614
|
reportTagsView();
|
12612
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12615
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12613
12616
|
}
|
12614
12617
|
};
|
12615
12618
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12844,7 +12847,7 @@ Made in Italy` })));
|
|
12844
12847
|
var _a, _b;
|
12845
12848
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12846
12849
|
reportTagsView();
|
12847
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12850
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12848
12851
|
}
|
12849
12852
|
};
|
12850
12853
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12997,7 +13000,7 @@ Made in Italy` })));
|
|
12997
13000
|
* @Author: binruan@chatlabs.com
|
12998
13001
|
* @Date: 2023-07-28 18:29:57
|
12999
13002
|
* @LastEditors: binruan@chatlabs.com
|
13000
|
-
* @LastEditTime: 2024-04
|
13003
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
13001
13004
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
13002
13005
|
*
|
13003
13006
|
*/
|
@@ -13017,7 +13020,8 @@ Made in Italy` })));
|
|
13017
13020
|
textStyles: {
|
13018
13021
|
hashTagTitle: {
|
13019
13022
|
fontSize: 16,
|
13020
|
-
color: '#000'
|
13023
|
+
color: '#000',
|
13024
|
+
textAlign: 'center'
|
13021
13025
|
},
|
13022
13026
|
hashTagDesc: {
|
13023
13027
|
fontSize: 12,
|
@@ -13976,7 +13980,7 @@ Made in Italy` })));
|
|
13976
13980
|
* @Author: binruan@chatlabs.com
|
13977
13981
|
* @Date: 2024-01-15 19:03:09
|
13978
13982
|
* @LastEditors: binruan@chatlabs.com
|
13979
|
-
* @LastEditTime: 2024-07-
|
13983
|
+
* @LastEditTime: 2024-07-04 18:04:10
|
13980
13984
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13981
13985
|
*
|
13982
13986
|
*/
|
@@ -14364,7 +14368,7 @@ Made in Italy` })));
|
|
14364
14368
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
14365
14369
|
top: minusHeight
|
14366
14370
|
} }),
|
14367
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
14371
|
+
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,
|
14368
14372
|
React.createElement(Swiper, { style: {
|
14369
14373
|
marginTop: tagHeight
|
14370
14374
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -14389,13 +14393,13 @@ Made in Italy` })));
|
|
14389
14393
|
}
|
14390
14394
|
}
|
14391
14395
|
}, direction: 'vertical', height: height },
|
14392
|
-
React.createElement(ToggleButton$1, { style: {
|
14396
|
+
((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: {
|
14393
14397
|
position: 'fixed',
|
14394
14398
|
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',
|
14395
14399
|
zIndex: 999,
|
14396
14400
|
[(_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,
|
14397
14401
|
[(_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
|
14398
|
-
}, 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 }),
|
14402
|
+
}, 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 })),
|
14399
14403
|
renderView),
|
14400
14404
|
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))));
|
14401
14405
|
};
|