pb-sxp-ui 1.0.105 → 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 +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -5
- package/dist/index.js +9 -7
- 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 +9 -7
- 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/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/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -13756,11 +13756,12 @@ var PictureGroup$3 = React.memo(PictureGroup$2);
|
|
13756
13756
|
* @Author: binruan@chatlabs.com
|
13757
13757
|
* @Date: 2024-01-15 19:03:09
|
13758
13758
|
* @LastEditors: binruan@chatlabs.com
|
13759
|
-
* @LastEditTime: 2024-
|
13759
|
+
* @LastEditTime: 2024-07-09 18:47:05
|
13760
13760
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
13761
13761
|
*
|
13762
13762
|
*/
|
13763
13763
|
const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
13764
|
+
var _a;
|
13764
13765
|
const [isShowMore, setIsShowMore] = React.useState(false);
|
13765
13766
|
const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
|
13766
13767
|
const handleClickTag = (data) => {
|
@@ -13792,7 +13793,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
|
13792
13793
|
}
|
13793
13794
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
13794
13795
|
}, [isShowMore, tags]);
|
13795
|
-
|
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` } },
|
13796
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) },
|
13797
13799
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
13798
13800
|
};
|
@@ -13989,7 +13991,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
13989
13991
|
* @Author: binruan@chatlabs.com
|
13990
13992
|
* @Date: 2024-01-15 19:03:09
|
13991
13993
|
* @LastEditors: binruan@chatlabs.com
|
13992
|
-
* @LastEditTime: 2024-07-
|
13994
|
+
* @LastEditTime: 2024-07-09 18:11:21
|
13993
13995
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13994
13996
|
*
|
13995
13997
|
*/
|
@@ -14194,17 +14196,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
14194
14196
|
};
|
14195
14197
|
}, [isShowMore]);
|
14196
14198
|
const renderBottom = React.useCallback((rec, index) => {
|
14197
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
14199
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
14198
14200
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
14199
14201
|
return (React.createElement(React.Fragment, null,
|
14200
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' }),
|
14201
|
-
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` } },
|
14202
14204
|
React.createElement(Nudge, { nudge: nudge }),
|
14203
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' },
|
14204
14206
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
|
14205
14207
|
React.createElement("div", null,
|
14206
|
-
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: (
|
14207
|
-
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 })))));
|
14208
14210
|
}
|
14209
14211
|
return null;
|
14210
14212
|
}, [
|