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/pb-ui.js CHANGED
@@ -8240,7 +8240,7 @@
8240
8240
  * @Author: binruan@chatlabs.com
8241
8241
  * @Date: 2023-12-26 16:11:34
8242
8242
  * @LastEditors: binruan@chatlabs.com
8243
- * @LastEditTime: 2024-04-16 19:27:48
8243
+ * @LastEditTime: 2024-04-17 10:18:57
8244
8244
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
8245
8245
  *
8246
8246
  */
@@ -8269,7 +8269,7 @@
8269
8269
  const multiRow = React.useRef(null);
8270
8270
  const handleClick = React.useCallback(() => {
8271
8271
  setIsShowMore(!isShowMore);
8272
- onChange === null || onChange === void 0 ? void 0 : onChange(!isShowMore);
8272
+ // onChange?.(!isShowMore);
8273
8273
  }, [isShowMore, onChange]);
8274
8274
  React.useMemo(() => {
8275
8275
  return !isShowMore && text.length > maxStr ? limitTextLastWholeWord(text, maxStr) + '...' : text;
@@ -8296,7 +8296,7 @@
8296
8296
  return (React.createElement("div", { className: className, style: Object.assign({}, style), hidden: !text || text === '' },
8297
8297
  React.createElement("div", { ref: multiRow, style: {
8298
8298
  overflow: 'hidden',
8299
- WebkitLineClamp: isShowMore ? '' : lineClamp,
8299
+ WebkitLineClamp: !isPost || isShowMore ? '' : lineClamp,
8300
8300
  textOverflow: 'ellipsis',
8301
8301
  display: '-webkit-box',
8302
8302
  WebkitBoxOrient: 'vertical',
@@ -12236,7 +12236,7 @@ Made in Italy` })));
12236
12236
  * @Author: binruan@chatlabs.com
12237
12237
  * @Date: 2024-03-20 10:27:31
12238
12238
  * @LastEditors: binruan@chatlabs.com
12239
- * @LastEditTime: 2024-04-16 20:49:51
12239
+ * @LastEditTime: 2024-04-17 10:23:35
12240
12240
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12241
12241
  *
12242
12242
  */
@@ -12246,7 +12246,7 @@ Made in Italy` })));
12246
12246
  const imgDom = React.useRef(null);
12247
12247
  const { sxpParameter } = useSxpDataSource();
12248
12248
  const getAvifToPng = React.useCallback((src) => {
12249
- return src.indexOf('avif') !== -1 ? `${src}?imageMogr2/format/png` : src;
12249
+ return src;
12250
12250
  }, []);
12251
12251
  React.useEffect(() => {
12252
12252
  if (imgDom.current === null || src === '') {
@@ -12499,7 +12499,7 @@ Made in Italy` })));
12499
12499
  * @Author: binruan@chatlabs.com
12500
12500
  * @Date: 2024-01-15 19:03:09
12501
12501
  * @LastEditors: binruan@chatlabs.com
12502
- * @LastEditTime: 2024-04-16 19:50:16
12502
+ * @LastEditTime: 2024-04-17 10:13:19
12503
12503
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12504
12504
  *
12505
12505
  */
@@ -12699,8 +12699,10 @@ Made in Italy` })));
12699
12699
  React.createElement(Nudge, { nudge: nudge }),
12700
12700
  React.createElement("div", { className: 'clc-sxp-bottom-card' },
12701
12701
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
12702
- React.createElement("div", { style: lineGradStyle },
12703
- 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 }),
12702
+ React.createElement("div", null,
12703
+ 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
12704
+ // textShadow: globalConfig?.isOpenTextShadow ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none'
12705
+ ), onChange: onExpandableChange }),
12704
12706
  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 })))));
12705
12707
  }
12706
12708
  return null;