pb-sxp-ui 1.0.15 → 1.0.16
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 +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.js +10 -8
- 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 +10 -8
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +1 -2
- package/es/core/components/SxpPageRender/PictureGroup/Picture.js +2 -1
- package/es/core/components/SxpPageRender/index.js +2 -2
- package/lib/core/components/SxpPageRender/ExpandableText.js +1 -2
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +2 -1
- package/lib/core/components/SxpPageRender/index.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
@@ -8225,7 +8225,7 @@ var Modal$1 = memo(Modal);
|
|
8225
8225
|
* @Author: binruan@chatlabs.com
|
8226
8226
|
* @Date: 2023-12-26 16:11:34
|
8227
8227
|
* @LastEditors: binruan@chatlabs.com
|
8228
|
-
* @LastEditTime: 2024-04-
|
8228
|
+
* @LastEditTime: 2024-04-17 10:18:57
|
8229
8229
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
|
8230
8230
|
*
|
8231
8231
|
*/
|
@@ -8254,7 +8254,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8254
8254
|
const multiRow = useRef(null);
|
8255
8255
|
const handleClick = useCallback(() => {
|
8256
8256
|
setIsShowMore(!isShowMore);
|
8257
|
-
|
8257
|
+
// onChange?.(!isShowMore);
|
8258
8258
|
}, [isShowMore, onChange]);
|
8259
8259
|
useMemo(() => {
|
8260
8260
|
return !isShowMore && text.length > maxStr ? limitTextLastWholeWord(text, maxStr) + '...' : text;
|
@@ -8281,7 +8281,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8281
8281
|
return (React.createElement("div", { className: className, style: Object.assign({}, style), hidden: !text || text === '' },
|
8282
8282
|
React.createElement("div", { ref: multiRow, style: {
|
8283
8283
|
overflow: 'hidden',
|
8284
|
-
WebkitLineClamp: isShowMore ? '' : lineClamp,
|
8284
|
+
WebkitLineClamp: !isPost || isShowMore ? '' : lineClamp,
|
8285
8285
|
textOverflow: 'ellipsis',
|
8286
8286
|
display: '-webkit-box',
|
8287
8287
|
WebkitBoxOrient: 'vertical',
|
@@ -12221,7 +12221,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12221
12221
|
* @Author: binruan@chatlabs.com
|
12222
12222
|
* @Date: 2024-03-20 10:27:31
|
12223
12223
|
* @LastEditors: binruan@chatlabs.com
|
12224
|
-
* @LastEditTime: 2024-04-
|
12224
|
+
* @LastEditTime: 2024-04-17 10:23:35
|
12225
12225
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12226
12226
|
*
|
12227
12227
|
*/
|
@@ -12231,7 +12231,7 @@ const Picture = (props) => {
|
|
12231
12231
|
const imgDom = useRef(null);
|
12232
12232
|
const { sxpParameter } = useSxpDataSource();
|
12233
12233
|
const getAvifToPng = useCallback((src) => {
|
12234
|
-
return src
|
12234
|
+
return src;
|
12235
12235
|
}, []);
|
12236
12236
|
useEffect(() => {
|
12237
12237
|
if (imgDom.current === null || src === '') {
|
@@ -12484,7 +12484,7 @@ const Nudge = ({ nudge }) => {
|
|
12484
12484
|
* @Author: binruan@chatlabs.com
|
12485
12485
|
* @Date: 2024-01-15 19:03:09
|
12486
12486
|
* @LastEditors: binruan@chatlabs.com
|
12487
|
-
* @LastEditTime: 2024-04-
|
12487
|
+
* @LastEditTime: 2024-04-17 10:13:19
|
12488
12488
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12489
12489
|
*
|
12490
12490
|
*/
|
@@ -12684,8 +12684,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12684
12684
|
React.createElement(Nudge, { nudge: nudge }),
|
12685
12685
|
React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
12686
12686
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
|
12687
|
-
React.createElement("div",
|
12688
|
-
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: (_c = (_b = rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign(
|
12687
|
+
React.createElement("div", null,
|
12688
|
+
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: (_c = (_b = rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign({}, descStyle
|
12689
|
+
// textShadow: globalConfig?.isOpenTextShadow ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none'
|
12690
|
+
), onChange: onExpandableChange }),
|
12689
12691
|
React.createElement(Hashtag$1, { index: activeIndex, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec.video) === null || _g === void 0 ? void 0 : _g.url) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })))));
|
12690
12692
|
}
|
12691
12693
|
return null;
|