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 CHANGED
@@ -8248,7 +8248,7 @@ var Modal$1 = React.memo(Modal);
8248
8248
  * @Author: binruan@chatlabs.com
8249
8249
  * @Date: 2023-12-26 16:11:34
8250
8250
  * @LastEditors: binruan@chatlabs.com
8251
- * @LastEditTime: 2024-04-16 19:27:48
8251
+ * @LastEditTime: 2024-04-17 10:18:57
8252
8252
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
8253
8253
  *
8254
8254
  */
@@ -8277,7 +8277,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
8277
8277
  const multiRow = React.useRef(null);
8278
8278
  const handleClick = React.useCallback(() => {
8279
8279
  setIsShowMore(!isShowMore);
8280
- onChange === null || onChange === void 0 ? void 0 : onChange(!isShowMore);
8280
+ // onChange?.(!isShowMore);
8281
8281
  }, [isShowMore, onChange]);
8282
8282
  React.useMemo(() => {
8283
8283
  return !isShowMore && text.length > maxStr ? limitTextLastWholeWord(text, maxStr) + '...' : text;
@@ -8304,7 +8304,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
8304
8304
  return (React.createElement("div", { className: className, style: Object.assign({}, style), hidden: !text || text === '' },
8305
8305
  React.createElement("div", { ref: multiRow, style: {
8306
8306
  overflow: 'hidden',
8307
- WebkitLineClamp: isShowMore ? '' : lineClamp,
8307
+ WebkitLineClamp: !isPost || isShowMore ? '' : lineClamp,
8308
8308
  textOverflow: 'ellipsis',
8309
8309
  display: '-webkit-box',
8310
8310
  WebkitBoxOrient: 'vertical',
@@ -12244,7 +12244,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
12244
12244
  * @Author: binruan@chatlabs.com
12245
12245
  * @Date: 2024-03-20 10:27:31
12246
12246
  * @LastEditors: binruan@chatlabs.com
12247
- * @LastEditTime: 2024-04-16 20:49:51
12247
+ * @LastEditTime: 2024-04-17 10:23:35
12248
12248
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12249
12249
  *
12250
12250
  */
@@ -12254,7 +12254,7 @@ const Picture = (props) => {
12254
12254
  const imgDom = React.useRef(null);
12255
12255
  const { sxpParameter } = useSxpDataSource();
12256
12256
  const getAvifToPng = React.useCallback((src) => {
12257
- return src.indexOf('avif') !== -1 ? `${src}?imageMogr2/format/png` : src;
12257
+ return src;
12258
12258
  }, []);
12259
12259
  React.useEffect(() => {
12260
12260
  if (imgDom.current === null || src === '') {
@@ -12507,7 +12507,7 @@ const Nudge = ({ nudge }) => {
12507
12507
  * @Author: binruan@chatlabs.com
12508
12508
  * @Date: 2024-01-15 19:03:09
12509
12509
  * @LastEditors: binruan@chatlabs.com
12510
- * @LastEditTime: 2024-04-16 19:50:16
12510
+ * @LastEditTime: 2024-04-17 10:13:19
12511
12511
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12512
12512
  *
12513
12513
  */
@@ -12707,8 +12707,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12707
12707
  React.createElement(Nudge, { nudge: nudge }),
12708
12708
  React.createElement("div", { className: 'clc-sxp-bottom-card' },
12709
12709
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
12710
- React.createElement("div", { style: lineGradStyle },
12711
- 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 }),
12710
+ React.createElement("div", null,
12711
+ 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
12712
+ // textShadow: globalConfig?.isOpenTextShadow ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none'
12713
+ ), onChange: onExpandableChange }),
12712
12714
  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 })))));
12713
12715
  }
12714
12716
  return null;