pb-sxp-ui 1.0.22 → 1.0.24
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 +47 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -91
- 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 +47 -91
- 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/ExpandableText.js +1 -1
- package/es/core/components/SxpPageRender/PictureGroup/Picture.js +2 -17
- package/es/core/components/SxpPageRender/RenderCard.js +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +36 -64
- package/es/core/components/SxpPageRender/index.js +2 -2
- package/es/materials/sxp/template/components/Img.js +1 -1
- package/lib/core/components/SxpPageRender/ExpandableText.js +1 -1
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +1 -16
- package/lib/core/components/SxpPageRender/RenderCard.js +1 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +36 -64
- package/lib/core/components/SxpPageRender/index.js +2 -2
- package/lib/materials/sxp/template/components/Img.js +1 -1
- package/package.json +1 -1
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-18 14:33:15
|
8229
8229
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
|
8230
8230
|
*
|
8231
8231
|
*/
|
@@ -8270,7 +8270,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8270
8270
|
}
|
8271
8271
|
multiRowCopy.current.style.display = 'none';
|
8272
8272
|
}, [isPost]);
|
8273
|
-
return (React.createElement("div", { className: className, style: Object.assign({}, style), hidden: !text || text === '' },
|
8273
|
+
return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, style), { transform: 'translate3d(0px, 0px, 0px)' }), hidden: !text || text === '' },
|
8274
8274
|
React.createElement("div", { ref: multiRow, style: {
|
8275
8275
|
overflow: 'hidden',
|
8276
8276
|
WebkitLineClamp: !isPost || isShowMore ? '' : lineClamp,
|
@@ -9679,7 +9679,7 @@ var Scroll$1 = memo(Scroll);
|
|
9679
9679
|
* @Author: binruan@chatlabs.com
|
9680
9680
|
* @Date: 2024-01-16 14:50:13
|
9681
9681
|
* @LastEditors: binruan@chatlabs.com
|
9682
|
-
* @LastEditTime: 2024-04-
|
9682
|
+
* @LastEditTime: 2024-04-18 12:32:49
|
9683
9683
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
9684
9684
|
*
|
9685
9685
|
*/
|
@@ -9695,7 +9695,7 @@ const Img = ({ src, rec, item, index }) => {
|
|
9695
9695
|
}, rec, item, index);
|
9696
9696
|
}
|
9697
9697
|
}, [isOnScreen, src, ref, rec, ctaEvent, item, index]);
|
9698
|
-
return (React.createElement("div", { ref: ref, hidden: !src },
|
9698
|
+
return (React.createElement("div", { ref: ref, hidden: !src, className: css({ width: '100%', height: '100%' }) },
|
9699
9699
|
React.createElement(FormatImage$1, { className: css({ width: '100%', objectFit: 'cover', height: '100%', display: 'block' }), src: src })));
|
9700
9700
|
};
|
9701
9701
|
var Img$1 = memo(Img);
|
@@ -11971,7 +11971,8 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
11971
11971
|
const videoRef = useRef(null);
|
11972
11972
|
const { bffEventReport, sxpParameter, waterFallData, openHashtag } = useSxpDataSource();
|
11973
11973
|
const videoStartTime = useRef(0);
|
11974
|
-
const [
|
11974
|
+
const [isLoadFinish, setIsLoadFinish] = useState(false);
|
11975
|
+
const [isFirstPlay, setIsFirstPlay] = useState(true);
|
11975
11976
|
const { isActive } = useSwiperSlide();
|
11976
11977
|
useEffect(() => {
|
11977
11978
|
if (!videoRef.current)
|
@@ -11987,11 +11988,11 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
11987
11988
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
11988
11989
|
setIsPauseVideo(false);
|
11989
11990
|
const item = data[index];
|
11990
|
-
if (item &&
|
11991
|
+
if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
11991
11992
|
videoStartTime.current = ((_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.currentTime) || 0;
|
11992
11993
|
const videoDuration = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.duration) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
11993
11994
|
const videoCurrentTime = ((_f = (_e = videoRef.current) === null || _e === void 0 ? void 0 : _e.currentTime) !== null && _f !== void 0 ? _f : 0).toFixed(2);
|
11994
|
-
const playType = '1';
|
11995
|
+
const playType = isFirstPlay ? '0' : '1';
|
11995
11996
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
11996
11997
|
eventInfo: {
|
11997
11998
|
eventSubject: 'playVideo',
|
@@ -12007,72 +12008,41 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
12007
12008
|
traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
12008
12009
|
}
|
12009
12010
|
});
|
12011
|
+
setIsFirstPlay(false);
|
12010
12012
|
}
|
12011
|
-
|
12012
|
-
setIsLoad(true);
|
12013
|
-
}
|
12014
|
-
}, [bffEventReport, data, index, isLoad]);
|
12013
|
+
}, [bffEventReport, data, index, isFirstPlay]);
|
12015
12014
|
const handleLoadedMetadata = useCallback(() => {
|
12016
|
-
|
12017
|
-
|
12018
|
-
if (item && !isLoad && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
12019
|
-
videoStartTime.current = ((_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.currentTime) || 0;
|
12020
|
-
const videoDuration = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.duration) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
12021
|
-
const videoCurrentTime = ((_f = (_e = videoRef.current) === null || _e === void 0 ? void 0 : _e.currentTime) !== null && _f !== void 0 ? _f : 0).toFixed(2);
|
12022
|
-
const playType = '0';
|
12023
|
-
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
12024
|
-
eventInfo: {
|
12025
|
-
eventSubject: 'playVideo',
|
12026
|
-
eventDescription: 'User played the video',
|
12027
|
-
contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
|
12028
|
-
contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
|
12029
|
-
playType,
|
12030
|
-
startTime: videoCurrentTime,
|
12031
|
-
videoDuration,
|
12032
|
-
contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
|
12033
|
-
position: index + '',
|
12034
|
-
contentFormat: 'video',
|
12035
|
-
traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
12036
|
-
}
|
12037
|
-
});
|
12038
|
-
}
|
12039
|
-
setTimeout(() => {
|
12040
|
-
var _a;
|
12041
|
-
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
12042
|
-
}, 0);
|
12043
|
-
}, [index, bffEventReport, data, isLoad]);
|
12015
|
+
setIsLoadFinish(true);
|
12016
|
+
}, []);
|
12044
12017
|
const handleClickVideo = useCallback((type) => () => {
|
12045
|
-
var _a, _b, _c, _d, _e
|
12046
|
-
if (!
|
12018
|
+
var _a, _b, _c, _d, _e;
|
12019
|
+
if (!isLoadFinish)
|
12047
12020
|
return;
|
12048
|
-
|
12049
|
-
((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
|
12050
|
-
((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
12051
|
-
const isPause = (_e = videoRef.current) === null || _e === void 0 ? void 0 : _e.paused;
|
12021
|
+
const isPause = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
12052
12022
|
switch (type) {
|
12053
12023
|
case 'start':
|
12054
12024
|
if (!isPause)
|
12055
12025
|
return;
|
12056
|
-
(
|
12026
|
+
(_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.play();
|
12057
12027
|
setIsPauseVideo(false);
|
12058
12028
|
break;
|
12059
12029
|
case 'pause':
|
12060
12030
|
if (isPause)
|
12061
12031
|
return;
|
12062
|
-
(
|
12032
|
+
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
12063
12033
|
setIsPauseVideo(true);
|
12064
12034
|
break;
|
12065
12035
|
default:
|
12066
12036
|
if (isPause) {
|
12067
|
-
(
|
12037
|
+
(_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
|
12068
12038
|
}
|
12069
12039
|
else {
|
12070
|
-
(
|
12040
|
+
(_e = videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
|
12071
12041
|
}
|
12072
12042
|
setIsPauseVideo(!isPause);
|
12073
12043
|
break;
|
12074
12044
|
}
|
12075
|
-
}, [
|
12045
|
+
}, [isLoadFinish]);
|
12076
12046
|
const onPause = useCallback(() => {
|
12077
12047
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
12078
12048
|
const item = data[index];
|
@@ -12098,16 +12068,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
12098
12068
|
}
|
12099
12069
|
}, [data, index, bffEventReport]);
|
12100
12070
|
useEffect(() => {
|
12101
|
-
var _a, _b
|
12102
|
-
if (data.length <= 0)
|
12103
|
-
return;
|
12071
|
+
var _a, _b;
|
12104
12072
|
if (!videoRef.current)
|
12105
12073
|
return;
|
12106
12074
|
setIsPauseVideo(false);
|
12107
|
-
if (!isActive) {
|
12108
|
-
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
12109
|
-
return;
|
12110
|
-
}
|
12111
12075
|
if (!videoRef.current.src) {
|
12112
12076
|
const videoSrc = rec.video.url;
|
12113
12077
|
// if (videoSrc.includes('.m3u8')) {
|
@@ -12127,25 +12091,33 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
12127
12091
|
videoRef.current.setAttribute('x5-playsinline', 'true');
|
12128
12092
|
videoRef.current.setAttribute('webkit-playsinline', 'true');
|
12129
12093
|
}
|
12130
|
-
|
12131
|
-
|
12132
|
-
}
|
12133
|
-
(_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener('canplay', handleLoadedMetadata);
|
12134
|
-
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.addEventListener('playing', handlePlaying);
|
12094
|
+
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('canplay', handleLoadedMetadata);
|
12095
|
+
(_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener('playing', handlePlaying);
|
12135
12096
|
return () => {
|
12136
12097
|
var _a, _b;
|
12137
12098
|
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('canplay', handleLoadedMetadata);
|
12138
12099
|
(_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('playing', handlePlaying);
|
12139
12100
|
};
|
12140
|
-
}, [
|
12101
|
+
}, [handleLoadedMetadata, handlePlaying, rec.video]);
|
12102
|
+
useEffect(() => {
|
12103
|
+
var _a;
|
12104
|
+
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || !isLoadFinish)
|
12105
|
+
return;
|
12106
|
+
if (isActive) {
|
12107
|
+
videoRef.current.play();
|
12108
|
+
}
|
12109
|
+
else {
|
12110
|
+
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
12111
|
+
}
|
12112
|
+
}, [isActive, isLoadFinish]);
|
12141
12113
|
/*
|
12142
12114
|
打开/关闭hashtag暂停/播放视频
|
12143
12115
|
*/
|
12144
12116
|
useEffect(() => {
|
12145
12117
|
var _a, _b, _c;
|
12146
|
-
|
12147
|
-
if (!isActive)
|
12118
|
+
if (!isActive || !(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
12148
12119
|
return;
|
12120
|
+
const isPause = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
12149
12121
|
if (!isPause && openHashtag) {
|
12150
12122
|
(_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.pause();
|
12151
12123
|
}
|
@@ -12166,11 +12138,11 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex }) => {
|
|
12166
12138
|
};
|
12167
12139
|
}, [handleClickVideo, isActive]);
|
12168
12140
|
const renderPoster = useMemo(() => {
|
12169
|
-
if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image)) {
|
12141
|
+
if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
|
12170
12142
|
return null;
|
12171
12143
|
}
|
12172
|
-
return (React.createElement("img", {
|
12173
|
-
}, [
|
12144
|
+
return (React.createElement("img", { style: { position: 'absolute', left: 0, top: 0, width: '100%', height: '100%', objectFit: 'cover' }, src: sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image }));
|
12145
|
+
}, [isLoadFinish, sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image]);
|
12174
12146
|
useEffect(() => {
|
12175
12147
|
const handleBeforeUnload = () => {
|
12176
12148
|
var _a, _b;
|
@@ -12246,35 +12218,21 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12246
12218
|
* @Author: binruan@chatlabs.com
|
12247
12219
|
* @Date: 2024-03-20 10:27:31
|
12248
12220
|
* @LastEditors: binruan@chatlabs.com
|
12249
|
-
* @LastEditTime: 2024-04-
|
12221
|
+
* @LastEditTime: 2024-04-18 10:30:17
|
12250
12222
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12251
12223
|
*
|
12252
12224
|
*/
|
12253
12225
|
const Picture = (props) => {
|
12254
12226
|
const { src, height, width } = props;
|
12255
12227
|
const [blur, setBlur] = useState(false);
|
12256
|
-
useSxpDataSource();
|
12257
12228
|
const onLoad = (img) => {
|
12258
|
-
const aspectRatio = img.
|
12229
|
+
const aspectRatio = img.naturalHeight / img.naturalWidth;
|
12259
12230
|
const targetAspectRatio = 16 / 9;
|
12260
12231
|
const tolerance = 0.05; // 允许的宽高比误差范围
|
12261
12232
|
if (Math.abs(aspectRatio - targetAspectRatio) > tolerance) {
|
12262
12233
|
setBlur(true);
|
12263
12234
|
}
|
12264
12235
|
};
|
12265
|
-
useCallback((src, style) => {
|
12266
|
-
if (src === '' || !src)
|
12267
|
-
return;
|
12268
|
-
return (src === null || src === void 0 ? void 0 : src.includes('.avif')) ? (React.createElement("picture", null,
|
12269
|
-
React.createElement("source", { type: 'image/avif', srcSet: src }),
|
12270
|
-
React.createElement("source", { type: 'image/webp', srcSet: `${src}?imageMogr2/format/webp` }),
|
12271
|
-
React.createElement("source", { type: 'image/jpeg', srcSet: `${src}?imageMogr2/format/jpg` }),
|
12272
|
-
React.createElement("img", { src: src, style: style, onLoad: (e) => {
|
12273
|
-
onLoad(e.target);
|
12274
|
-
} }))) : (React.createElement("img", { src: src, style: style, onLoad: (e) => {
|
12275
|
-
onLoad(e.target);
|
12276
|
-
} }));
|
12277
|
-
}, []);
|
12278
12236
|
return (React.createElement("div", { style: {
|
12279
12237
|
overflow: 'hidden',
|
12280
12238
|
height,
|
@@ -12445,7 +12403,7 @@ function withBindDataSource(Component) {
|
|
12445
12403
|
* @Author: binruan@chatlabs.com
|
12446
12404
|
* @Date: 2023-12-26 16:11:34
|
12447
12405
|
* @LastEditors: binruan@chatlabs.com
|
12448
|
-
* @LastEditTime: 2024-04-
|
12406
|
+
* @LastEditTime: 2024-04-18 14:36:53
|
12449
12407
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
12450
12408
|
*
|
12451
12409
|
*/
|
@@ -12479,7 +12437,7 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
|
12479
12437
|
const Component = withBindDataSource(t);
|
12480
12438
|
const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
|
12481
12439
|
const isExternalLink = ((_0 = (_z = (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.event) === null || _z === void 0 ? void 0 : _z.onClick) === null || _0 === void 0 ? void 0 : _0.linkType) === 'externalLink';
|
12482
|
-
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_1 = value === null || value === void 0 ? void 0 : value.item) === null || _1 === void 0 ? void 0 : _1.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.textStyle), bindDatas: (_4 = (_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.bindDatas) !== null && _4 !== void 0 ? _4 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_5 = value === null || value === void 0 ? void 0 : value.item) === null || _5 === void 0 ? void 0 : _5.props, { event: ((_6 = value === null || value === void 0 ? void 0 : value.item) === null || _6 === void 0 ? void 0 : _6.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index })));
|
12440
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_1 = value === null || value === void 0 ? void 0 : value.item) === null || _1 === void 0 ? void 0 : _1.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.textStyle), bindDatas: (_4 = (_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.bindDatas) !== null && _4 !== void 0 ? _4 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_5 = value === null || value === void 0 ? void 0 : value.item) === null || _5 === void 0 ? void 0 : _5.props, { event: ((_6 = value === null || value === void 0 ? void 0 : value.item) === null || _6 === void 0 ? void 0 : _6.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index })));
|
12483
12441
|
}
|
12484
12442
|
else {
|
12485
12443
|
return null;
|
@@ -12513,7 +12471,7 @@ const Nudge = ({ nudge }) => {
|
|
12513
12471
|
* @Author: binruan@chatlabs.com
|
12514
12472
|
* @Date: 2024-01-15 19:03:09
|
12515
12473
|
* @LastEditors: binruan@chatlabs.com
|
12516
|
-
* @LastEditTime: 2024-04-
|
12474
|
+
* @LastEditTime: 2024-04-18 16:49:34
|
12517
12475
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12518
12476
|
*
|
12519
12477
|
*/
|
@@ -12714,10 +12672,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12714
12672
|
React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
12715
12673
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
|
12716
12674
|
React.createElement("div", null,
|
12717
|
-
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
|
12718
|
-
|
12719
|
-
), onChange: onExpandableChange }),
|
12720
|
-
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 })))));
|
12675
|
+
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(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 }),
|
12676
|
+
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.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })))));
|
12721
12677
|
}
|
12722
12678
|
return null;
|
12723
12679
|
}, [
|