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/index.css CHANGED
@@ -1594,7 +1594,7 @@ button.swiper-pagination-bullet {
1594
1594
  bottom: 0;
1595
1595
  left: 0;
1596
1596
  right: 0;
1597
- padding: 20px 0 20px 0;
1597
+ padding-top: 20px;
1598
1598
  }
1599
1599
  .clc-sxp-bottom-nudge {
1600
1600
  display: -webkit-box;
@@ -1617,9 +1617,6 @@ button.swiper-pagination-bullet {
1617
1617
  padding: 0 20px;
1618
1618
  font-size: 14px;
1619
1619
  }
1620
- .clc-sxp-bottom-hashtag {
1621
- margin-top: 16px;
1622
- }
1623
1620
  .clc-sxp-bottom-hashtag-item {
1624
1621
  width: auto;
1625
1622
  height: 26px;
@@ -1630,7 +1627,6 @@ button.swiper-pagination-bullet {
1630
1627
  padding: 0 10px;
1631
1628
  font-size: 10px;
1632
1629
  margin-right: 8px;
1633
- margin-bottom: 20px;
1634
1630
  cursor: pointer;
1635
1631
  }
1636
1632
  .clc-sxp-bottom-shadow {
package/dist/index.js CHANGED
@@ -13734,11 +13734,12 @@ var PictureGroup$3 = memo(PictureGroup$2);
13734
13734
  * @Author: binruan@chatlabs.com
13735
13735
  * @Date: 2024-01-15 19:03:09
13736
13736
  * @LastEditors: binruan@chatlabs.com
13737
- * @LastEditTime: 2024-06-26 18:52:46
13737
+ * @LastEditTime: 2024-07-09 18:47:05
13738
13738
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
13739
13739
  *
13740
13740
  */
13741
13741
  const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
13742
+ var _a;
13742
13743
  const [isShowMore, setIsShowMore] = useState(false);
13743
13744
  const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
13744
13745
  const handleClickTag = (data) => {
@@ -13770,7 +13771,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
13770
13771
  }
13771
13772
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
13772
13773
  }, [isShowMore, tags]);
13773
- return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag' },
13774
+ console.log(hashTagStyle, '111');
13775
+ 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` } },
13774
13776
  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) },
13775
13777
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
13776
13778
  };
@@ -13967,7 +13969,7 @@ var Tagbar$1 = memo(Tagbar);
13967
13969
  * @Author: binruan@chatlabs.com
13968
13970
  * @Date: 2024-01-15 19:03:09
13969
13971
  * @LastEditors: binruan@chatlabs.com
13970
- * @LastEditTime: 2024-07-04 18:04:10
13972
+ * @LastEditTime: 2024-07-09 18:11:21
13971
13973
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13972
13974
  *
13973
13975
  */
@@ -14172,17 +14174,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14172
14174
  };
14173
14175
  }, [isShowMore]);
14174
14176
  const renderBottom = useCallback((rec, index) => {
14175
- var _a, _b, _c, _d, _e, _f, _g;
14177
+ var _a, _b, _c, _d, _e, _f, _g, _h;
14176
14178
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
14177
14179
  return (React.createElement(React.Fragment, null,
14178
14180
  ((_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' }),
14179
- React.createElement("div", { className: 'clc-sxp-bottom' },
14181
+ 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` } },
14180
14182
  React.createElement(Nudge, { nudge: nudge }),
14181
14183
  (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' },
14182
14184
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
14183
14185
  React.createElement("div", null,
14184
- 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 }),
14185
- 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 })))));
14186
+ 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 }),
14187
+ 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 })))));
14186
14188
  }
14187
14189
  return null;
14188
14190
  }, [