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.css
CHANGED
@@ -247,12 +247,10 @@
|
|
247
247
|
word-wrap: break-word;
|
248
248
|
}
|
249
249
|
.index-module_one-line-ellipsis__buFw1 {
|
250
|
-
display: -webkit-box;
|
251
|
-
-webkit-box-orient: vertical;
|
252
|
-
-webkit-line-clamp: 1;
|
253
250
|
text-overflow: ellipsis;
|
254
251
|
overflow: hidden;
|
255
252
|
word-break: break-all;
|
253
|
+
white-space: nowrap;
|
256
254
|
}
|
257
255
|
|
258
256
|
.index-module_tow-line-ellipsis__yyHVb {
|
@@ -1673,6 +1671,8 @@ button.swiper-pagination-bullet {
|
|
1673
1671
|
}
|
1674
1672
|
.clc-sxp-nav-title {
|
1675
1673
|
font-size: 16px;
|
1674
|
+
width: 100%;
|
1675
|
+
text-align: center;
|
1676
1676
|
}
|
1677
1677
|
.clc-pb-video-pause {
|
1678
1678
|
position: absolute;
|
package/dist/index.js
CHANGED
@@ -8806,7 +8806,7 @@ const CommodityDetail$1 = (_a) => {
|
|
8806
8806
|
width: '100%',
|
8807
8807
|
objectFit: 'cover',
|
8808
8808
|
display: 'block',
|
8809
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
8809
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
8810
8810
|
}, src: src }))));
|
8811
8811
|
}))),
|
8812
8812
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
|
@@ -9403,7 +9403,7 @@ Made in Italy` })));
|
|
9403
9403
|
width: '100%',
|
9404
9404
|
objectFit: 'cover',
|
9405
9405
|
display: 'block',
|
9406
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
9406
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9407
9407
|
}, src: src }))));
|
9408
9408
|
}))),
|
9409
9409
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
|
@@ -9515,7 +9515,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
9515
9515
|
* @Author: binruan@chatlabs.com
|
9516
9516
|
* @Date: 2024-03-26 16:50:25
|
9517
9517
|
* @LastEditors: binruan@chatlabs.com
|
9518
|
-
* @LastEditTime: 2024-
|
9518
|
+
* @LastEditTime: 2024-07-04 17:47:52
|
9519
9519
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
9520
9520
|
*
|
9521
9521
|
*/
|
@@ -9760,6 +9760,11 @@ var settingRender$2 = [
|
|
9760
9760
|
label: '对齐',
|
9761
9761
|
type: 'TextAlign',
|
9762
9762
|
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9763
|
+
},
|
9764
|
+
{
|
9765
|
+
label: '间距',
|
9766
|
+
type: 'TextSpace',
|
9767
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
9763
9768
|
}
|
9764
9769
|
]
|
9765
9770
|
}
|
@@ -9840,7 +9845,7 @@ function useOnScreen(ref) {
|
|
9840
9845
|
* @Author: binruan@chatlabs.com
|
9841
9846
|
* @Date: 2024-01-16 14:50:13
|
9842
9847
|
* @LastEditors: binruan@chatlabs.com
|
9843
|
-
* @LastEditTime: 2024-
|
9848
|
+
* @LastEditTime: 2024-07-04 18:13:23
|
9844
9849
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
9845
9850
|
*
|
9846
9851
|
*/
|
@@ -9861,7 +9866,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
|
|
9861
9866
|
}, [src]);
|
9862
9867
|
return (React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
|
9863
9868
|
React.createElement("div", { ref: ref, hidden: !src, className: css({ width: '100%', height: '100%' }) },
|
9864
|
-
React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ?
|
9869
|
+
React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
|
9865
9870
|
};
|
9866
9871
|
var Img$1 = memo(Img);
|
9867
9872
|
|
@@ -10158,7 +10163,7 @@ const Link$1 = (_a) => {
|
|
10158
10163
|
overflow: 'hidden'
|
10159
10164
|
}) },
|
10160
10165
|
React.createElement("div", null,
|
10161
|
-
React.createElement("div", { className:
|
10166
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10162
10167
|
__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)
|
10163
10168
|
} }),
|
10164
10169
|
(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: {
|
@@ -10990,7 +10995,7 @@ var settingRender$1 = [
|
|
10990
10995
|
* @Author: binruan@chatlabs.com
|
10991
10996
|
* @Date: 2023-12-26 16:11:34
|
10992
10997
|
* @LastEditors: binruan@chatlabs.com
|
10993
|
-
* @LastEditTime: 2024-
|
10998
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
10994
10999
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
10995
11000
|
*
|
10996
11001
|
*/
|
@@ -10999,7 +11004,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
|
|
10999
11004
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11000
11005
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11001
11006
|
React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
|
11002
|
-
React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
|
11007
|
+
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: {
|
11003
11008
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11004
11009
|
} })));
|
11005
11010
|
};
|
@@ -12594,7 +12599,7 @@ function WaterfallList$1(_a) {
|
|
12594
12599
|
var _a, _b;
|
12595
12600
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12596
12601
|
reportTagsView();
|
12597
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12602
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12598
12603
|
}
|
12599
12604
|
};
|
12600
12605
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12829,7 +12834,7 @@ function WaterfallList(_a) {
|
|
12829
12834
|
var _a, _b;
|
12830
12835
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
12831
12836
|
reportTagsView();
|
12832
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
12837
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
12833
12838
|
}
|
12834
12839
|
};
|
12835
12840
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -12982,7 +12987,7 @@ var HashTagComponent = memo(HashTag$1);
|
|
12982
12987
|
* @Author: binruan@chatlabs.com
|
12983
12988
|
* @Date: 2023-07-28 18:29:57
|
12984
12989
|
* @LastEditors: binruan@chatlabs.com
|
12985
|
-
* @LastEditTime: 2024-04
|
12990
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
12986
12991
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
12987
12992
|
*
|
12988
12993
|
*/
|
@@ -13002,7 +13007,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
13002
13007
|
textStyles: {
|
13003
13008
|
hashTagTitle: {
|
13004
13009
|
fontSize: 16,
|
13005
|
-
color: '#000'
|
13010
|
+
color: '#000',
|
13011
|
+
textAlign: 'center'
|
13006
13012
|
},
|
13007
13013
|
hashTagDesc: {
|
13008
13014
|
fontSize: 12,
|
@@ -13961,7 +13967,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
13961
13967
|
* @Author: binruan@chatlabs.com
|
13962
13968
|
* @Date: 2024-01-15 19:03:09
|
13963
13969
|
* @LastEditors: binruan@chatlabs.com
|
13964
|
-
* @LastEditTime: 2024-07-
|
13970
|
+
* @LastEditTime: 2024-07-04 18:04:10
|
13965
13971
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13966
13972
|
*
|
13967
13973
|
*/
|
@@ -14349,7 +14355,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14349
14355
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
14350
14356
|
top: minusHeight
|
14351
14357
|
} }),
|
14352
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
14358
|
+
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,
|
14353
14359
|
React.createElement(Swiper, { style: {
|
14354
14360
|
marginTop: tagHeight
|
14355
14361
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -14374,13 +14380,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14374
14380
|
}
|
14375
14381
|
}
|
14376
14382
|
}, direction: 'vertical', height: height },
|
14377
|
-
React.createElement(ToggleButton$1, { style: {
|
14383
|
+
((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: {
|
14378
14384
|
position: 'fixed',
|
14379
14385
|
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',
|
14380
14386
|
zIndex: 999,
|
14381
14387
|
[(_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,
|
14382
14388
|
[(_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
|
14383
|
-
}, 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 }),
|
14389
|
+
}, 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 })),
|
14384
14390
|
renderView),
|
14385
14391
|
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))));
|
14386
14392
|
};
|