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.cjs
CHANGED
@@ -9834,7 +9834,7 @@ const EventProvider = (_a) => {
|
|
9834
9834
|
};
|
9835
9835
|
var EventProvider$1 = React.memo(EventProvider);
|
9836
9836
|
|
9837
|
-
var styles$
|
9837
|
+
var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
|
9838
9838
|
|
9839
9839
|
/*
|
9840
9840
|
* @Author: binruan@chatlabs.com
|
@@ -9908,7 +9908,7 @@ const Commodity$1 = (_a) => {
|
|
9908
9908
|
width: '100%',
|
9909
9909
|
overflow: 'hidden'
|
9910
9910
|
}) },
|
9911
|
-
React.createElement("div", { className: styles$
|
9911
|
+
React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
9912
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)
|
9913
9913
|
} }),
|
9914
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: {
|
@@ -10160,6 +10160,8 @@ var linkSettingRender = [
|
|
10160
10160
|
}
|
10161
10161
|
];
|
10162
10162
|
|
10163
|
+
var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
10164
|
+
|
10163
10165
|
const Link$1 = (_a) => {
|
10164
10166
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
10165
10167
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
|
@@ -10183,10 +10185,10 @@ const Link$1 = (_a) => {
|
|
10183
10185
|
overflow: 'hidden'
|
10184
10186
|
}) },
|
10185
10187
|
React.createElement("div", null,
|
10186
|
-
React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10188
|
+
React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10187
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)
|
10188
10190
|
} }),
|
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: {
|
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: {
|
10190
10192
|
__html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
|
10191
10193
|
} }))))));
|
10192
10194
|
};
|
@@ -13754,11 +13756,12 @@ var PictureGroup$3 = React.memo(PictureGroup$2);
|
|
13754
13756
|
* @Author: binruan@chatlabs.com
|
13755
13757
|
* @Date: 2024-01-15 19:03:09
|
13756
13758
|
* @LastEditors: binruan@chatlabs.com
|
13757
|
-
* @LastEditTime: 2024-
|
13759
|
+
* @LastEditTime: 2024-07-09 18:47:05
|
13758
13760
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
13759
13761
|
*
|
13760
13762
|
*/
|
13761
13763
|
const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
13764
|
+
var _a;
|
13762
13765
|
const [isShowMore, setIsShowMore] = React.useState(false);
|
13763
13766
|
const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
|
13764
13767
|
const handleClickTag = (data) => {
|
@@ -13790,7 +13793,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
|
13790
13793
|
}
|
13791
13794
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
13792
13795
|
}, [isShowMore, tags]);
|
13793
|
-
|
13796
|
+
console.log(hashTagStyle, '111');
|
13797
|
+
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` } },
|
13794
13798
|
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) },
|
13795
13799
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
13796
13800
|
};
|
@@ -13987,7 +13991,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
13987
13991
|
* @Author: binruan@chatlabs.com
|
13988
13992
|
* @Date: 2024-01-15 19:03:09
|
13989
13993
|
* @LastEditors: binruan@chatlabs.com
|
13990
|
-
* @LastEditTime: 2024-07-
|
13994
|
+
* @LastEditTime: 2024-07-09 18:11:21
|
13991
13995
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13992
13996
|
*
|
13993
13997
|
*/
|
@@ -14192,17 +14196,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14192
14196
|
};
|
14193
14197
|
}, [isShowMore]);
|
14194
14198
|
const renderBottom = React.useCallback((rec, index) => {
|
14195
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
14199
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
14196
14200
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
14197
14201
|
return (React.createElement(React.Fragment, null,
|
14198
14202
|
((_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' }),
|
14199
|
-
React.createElement("div", { className: 'clc-sxp-bottom' },
|
14203
|
+
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` } },
|
14200
14204
|
React.createElement(Nudge, { nudge: nudge }),
|
14201
14205
|
(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' },
|
14202
14206
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
|
14203
14207
|
React.createElement("div", null,
|
14204
|
-
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: (
|
14205
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
14208
|
+
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 }),
|
14209
|
+
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 })))));
|
14206
14210
|
}
|
14207
14211
|
return null;
|
14208
14212
|
}, [
|