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/pb-ui.js CHANGED
@@ -13749,11 +13749,12 @@ Made in Italy` })));
13749
13749
  * @Author: binruan@chatlabs.com
13750
13750
  * @Date: 2024-01-15 19:03:09
13751
13751
  * @LastEditors: binruan@chatlabs.com
13752
- * @LastEditTime: 2024-06-26 18:52:46
13752
+ * @LastEditTime: 2024-07-09 18:47:05
13753
13753
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
13754
13754
  *
13755
13755
  */
13756
13756
  const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
13757
+ var _a;
13757
13758
  const [isShowMore, setIsShowMore] = React.useState(false);
13758
13759
  const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
13759
13760
  const handleClickTag = (data) => {
@@ -13785,7 +13786,8 @@ Made in Italy` })));
13785
13786
  }
13786
13787
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
13787
13788
  }, [isShowMore, tags]);
13788
- return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag' },
13789
+ console.log(hashTagStyle, '111');
13790
+ 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` } },
13789
13791
  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) },
13790
13792
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
13791
13793
  };
@@ -13982,7 +13984,7 @@ Made in Italy` })));
13982
13984
  * @Author: binruan@chatlabs.com
13983
13985
  * @Date: 2024-01-15 19:03:09
13984
13986
  * @LastEditors: binruan@chatlabs.com
13985
- * @LastEditTime: 2024-07-04 18:04:10
13987
+ * @LastEditTime: 2024-07-09 18:11:21
13986
13988
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13987
13989
  *
13988
13990
  */
@@ -14187,17 +14189,17 @@ Made in Italy` })));
14187
14189
  };
14188
14190
  }, [isShowMore]);
14189
14191
  const renderBottom = React.useCallback((rec, index) => {
14190
- var _a, _b, _c, _d, _e, _f, _g;
14192
+ var _a, _b, _c, _d, _e, _f, _g, _h;
14191
14193
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
14192
14194
  return (React.createElement(React.Fragment, null,
14193
14195
  ((_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' }),
14194
- React.createElement("div", { className: 'clc-sxp-bottom' },
14196
+ 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` } },
14195
14197
  React.createElement(Nudge, { nudge: nudge }),
14196
14198
  (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' },
14197
14199
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
14198
14200
  React.createElement("div", null,
14199
- 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 === null || rec === void 0 ? void 0 : 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 }),
14200
- 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 === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })))));
14201
+ 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 }),
14202
+ 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 })))));
14201
14203
  }
14202
14204
  return null;
14203
14205
  }, [