pb-sxp-ui 1.0.104 → 1.1.0
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 +15 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +16 -5
- package/dist/index.js +15 -11
- 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 +15 -11
- 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/Hashtag/index.js +3 -1
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +4 -4
- package/es/materials/sxp/template/Link/index.js +3 -2
- package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -1
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +4 -4
- package/lib/materials/sxp/template/Link/index.js +3 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -238,6 +238,21 @@
|
|
238
238
|
word-wrap: break-word;
|
239
239
|
}
|
240
240
|
|
241
|
+
.index-module_tow-line-ellipsis__nkBlU {
|
242
|
+
display: -webkit-box;
|
243
|
+
-webkit-box-orient: vertical;
|
244
|
+
-webkit-line-clamp: 2;
|
245
|
+
text-overflow: ellipsis;
|
246
|
+
overflow: hidden;
|
247
|
+
word-wrap: break-word;
|
248
|
+
}
|
249
|
+
.index-module_one-line-ellipsis__buFw1 {
|
250
|
+
text-overflow: ellipsis;
|
251
|
+
overflow: hidden;
|
252
|
+
word-break: break-all;
|
253
|
+
white-space: nowrap;
|
254
|
+
}
|
255
|
+
|
241
256
|
.index-module_tow-line-ellipsis__yyHVb {
|
242
257
|
display: -webkit-box;
|
243
258
|
-webkit-box-orient: vertical;
|
@@ -1579,7 +1594,7 @@ button.swiper-pagination-bullet {
|
|
1579
1594
|
bottom: 0;
|
1580
1595
|
left: 0;
|
1581
1596
|
right: 0;
|
1582
|
-
padding: 20px
|
1597
|
+
padding-top: 20px;
|
1583
1598
|
}
|
1584
1599
|
.clc-sxp-bottom-nudge {
|
1585
1600
|
display: -webkit-box;
|
@@ -1602,9 +1617,6 @@ button.swiper-pagination-bullet {
|
|
1602
1617
|
padding: 0 20px;
|
1603
1618
|
font-size: 14px;
|
1604
1619
|
}
|
1605
|
-
.clc-sxp-bottom-hashtag {
|
1606
|
-
margin-top: 16px;
|
1607
|
-
}
|
1608
1620
|
.clc-sxp-bottom-hashtag-item {
|
1609
1621
|
width: auto;
|
1610
1622
|
height: 26px;
|
@@ -1615,7 +1627,6 @@ button.swiper-pagination-bullet {
|
|
1615
1627
|
padding: 0 10px;
|
1616
1628
|
font-size: 10px;
|
1617
1629
|
margin-right: 8px;
|
1618
|
-
margin-bottom: 20px;
|
1619
1630
|
cursor: pointer;
|
1620
1631
|
}
|
1621
1632
|
.clc-sxp-bottom-shadow {
|
package/dist/index.js
CHANGED
@@ -9812,7 +9812,7 @@ const EventProvider = (_a) => {
|
|
9812
9812
|
};
|
9813
9813
|
var EventProvider$1 = memo(EventProvider);
|
9814
9814
|
|
9815
|
-
var styles$
|
9815
|
+
var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9816
9816
|
|
9817
9817
|
/*
|
9818
9818
|
* @Author: binruan@chatlabs.com
|
@@ -9886,7 +9886,7 @@ const Commodity$1 = (_a) => {
|
|
9886
9886
|
width: '100%',
|
9887
9887
|
overflow: 'hidden'
|
9888
9888
|
}) },
|
9889
|
-
React.createElement("div", { className: styles$
|
9889
|
+
React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
9890
9890
|
__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)
|
9891
9891
|
} }),
|
9892
9892
|
React.createElement("div", { className: 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: {
|
@@ -10138,6 +10138,8 @@ var linkSettingRender = [
|
|
10138
10138
|
}
|
10139
10139
|
];
|
10140
10140
|
|
10141
|
+
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
10142
|
+
|
10141
10143
|
const Link$1 = (_a) => {
|
10142
10144
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
10143
10145
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
|
@@ -10161,10 +10163,10 @@ const Link$1 = (_a) => {
|
|
10161
10163
|
overflow: 'hidden'
|
10162
10164
|
}) },
|
10163
10165
|
React.createElement("div", null,
|
10164
|
-
React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10166
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10165
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)
|
10166
10168
|
} }),
|
10167
|
-
(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: {
|
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: {
|
10168
10170
|
__html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
|
10169
10171
|
} }))))));
|
10170
10172
|
};
|
@@ -13732,11 +13734,12 @@ var PictureGroup$3 = memo(PictureGroup$2);
|
|
13732
13734
|
* @Author: binruan@chatlabs.com
|
13733
13735
|
* @Date: 2024-01-15 19:03:09
|
13734
13736
|
* @LastEditors: binruan@chatlabs.com
|
13735
|
-
* @LastEditTime: 2024-
|
13737
|
+
* @LastEditTime: 2024-07-09 18:47:05
|
13736
13738
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
13737
13739
|
*
|
13738
13740
|
*/
|
13739
13741
|
const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
13742
|
+
var _a;
|
13740
13743
|
const [isShowMore, setIsShowMore] = useState(false);
|
13741
13744
|
const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
|
13742
13745
|
const handleClickTag = (data) => {
|
@@ -13768,7 +13771,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
|
13768
13771
|
}
|
13769
13772
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
13770
13773
|
}, [isShowMore, tags]);
|
13771
|
-
|
13774
|
+
console.log(hashTagStyle, '111');
|
13775
|
+
return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: { marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px` } },
|
13772
13776
|
React.createElement(Scroll$1, null, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item) },
|
13773
13777
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
13774
13778
|
};
|
@@ -13965,7 +13969,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
13965
13969
|
* @Author: binruan@chatlabs.com
|
13966
13970
|
* @Date: 2024-01-15 19:03:09
|
13967
13971
|
* @LastEditors: binruan@chatlabs.com
|
13968
|
-
* @LastEditTime: 2024-07-
|
13972
|
+
* @LastEditTime: 2024-07-09 18:11:21
|
13969
13973
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13970
13974
|
*
|
13971
13975
|
*/
|
@@ -14170,17 +14174,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14170
14174
|
};
|
14171
14175
|
}, [isShowMore]);
|
14172
14176
|
const renderBottom = useCallback((rec, index) => {
|
14173
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
14177
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
14174
14178
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
14175
14179
|
return (React.createElement(React.Fragment, null,
|
14176
14180
|
((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
|
14177
|
-
React.createElement("div", { className: 'clc-sxp-bottom' },
|
14181
|
+
React.createElement("div", { className: 'clc-sxp-bottom', style: { paddingBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px` } },
|
14178
14182
|
React.createElement(Nudge, { nudge: nudge }),
|
14179
14183
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
14180
14184
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
|
14181
14185
|
React.createElement("div", null,
|
14182
|
-
React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
14183
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
14186
|
+
React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
|
14187
|
+
React.createElement(Hashtag$1, { index: activeIndex, tags: (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.hashTags) !== null && _f !== void 0 ? _f : [], itemId: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId, itemType: ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })))));
|
14184
14188
|
}
|
14185
14189
|
return null;
|
14186
14190
|
}, [
|