pb-sxp-ui 1.0.3-alpha.1 → 1.0.3-alpha.2

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.
Files changed (68) hide show
  1. package/dist/index.cjs +2373 -823
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +115 -112
  4. package/dist/index.js +2374 -824
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +2373 -823
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  15. package/es/core/components/SxpPageRender/Hashtag/index.js +2 -2
  16. package/es/core/components/SxpPageRender/Navbar.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/Navbar.js +3 -2
  18. package/es/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  19. package/es/core/components/SxpPageRender/WaterFall/List.js +24 -14
  20. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  21. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +13 -11
  22. package/es/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  23. package/es/core/components/SxpPageRender/WaterFall/index.js +4 -3
  24. package/es/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  25. package/es/core/components/SxpPageRender/index.d.ts +2 -0
  26. package/es/core/components/SxpPageRender/index.js +5 -5
  27. package/es/core/context/EditorDataProvider.d.ts +3 -1
  28. package/es/core/context/EditorDataProvider.js +5 -2
  29. package/es/core/context/SxpDataSourceProvider.d.ts +2 -0
  30. package/es/core/context/SxpDataSourceProvider.js +7 -3
  31. package/es/materials/sxp/HashTag/index.d.ts +14 -0
  32. package/es/materials/sxp/HashTag/index.js +6 -0
  33. package/es/materials/sxp/HashTag/material.d.ts +2 -0
  34. package/es/materials/sxp/HashTag/material.js +52 -0
  35. package/es/materials/sxp/HashTag/settingRender.d.ts +122 -0
  36. package/es/materials/sxp/HashTag/settingRender.js +153 -0
  37. package/es/materials/sxp/index.d.ts +1 -0
  38. package/es/materials/sxp/index.js +1 -0
  39. package/es/materials/sxp/template/components/settingRender.d.ts +15 -0
  40. package/es/materials/sxp/template/components/settingRender.js +17 -0
  41. package/lib/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  42. package/lib/core/components/SxpPageRender/Hashtag/index.js +2 -2
  43. package/lib/core/components/SxpPageRender/Navbar.d.ts +1 -0
  44. package/lib/core/components/SxpPageRender/Navbar.js +3 -2
  45. package/lib/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  46. package/lib/core/components/SxpPageRender/WaterFall/List.js +23 -14
  47. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  48. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +12 -11
  49. package/lib/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  50. package/lib/core/components/SxpPageRender/WaterFall/index.js +4 -3
  51. package/lib/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  52. package/lib/core/components/SxpPageRender/index.d.ts +2 -0
  53. package/lib/core/components/SxpPageRender/index.js +5 -5
  54. package/lib/core/context/EditorDataProvider.d.ts +3 -1
  55. package/lib/core/context/EditorDataProvider.js +4 -1
  56. package/lib/core/context/SxpDataSourceProvider.d.ts +2 -0
  57. package/lib/core/context/SxpDataSourceProvider.js +7 -3
  58. package/lib/materials/sxp/HashTag/index.d.ts +14 -0
  59. package/lib/materials/sxp/HashTag/index.js +9 -0
  60. package/lib/materials/sxp/HashTag/material.d.ts +2 -0
  61. package/lib/materials/sxp/HashTag/material.js +56 -0
  62. package/lib/materials/sxp/HashTag/settingRender.d.ts +122 -0
  63. package/lib/materials/sxp/HashTag/settingRender.js +155 -0
  64. package/lib/materials/sxp/index.d.ts +1 -0
  65. package/lib/materials/sxp/index.js +1 -0
  66. package/lib/materials/sxp/template/components/settingRender.d.ts +15 -0
  67. package/lib/materials/sxp/template/components/settingRender.js +17 -0
  68. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { RecItemType } from '../typing';
3
3
  interface IHashtagProps {
4
4
  tags: string[];
@@ -6,6 +6,7 @@ interface IHashtagProps {
6
6
  itemType: 'VIDEO' | 'PRODUCT' | null;
7
7
  index: number;
8
8
  rec: RecItemType;
9
+ hashTagStyle?: CSSProperties;
9
10
  }
10
11
  declare const _default: React.NamedExoticComponent<IHashtagProps>;
11
12
  export default _default;
@@ -2,7 +2,7 @@ import React, { memo, useMemo, useState } from 'react';
2
2
  import { SwiperSlide } from 'swiper/react';
3
3
  import { useSxpDataSource } from '../../../../core/hooks';
4
4
  import Scroll from '../../../../materials/sxp/template/components/Scroll';
5
- const Hashtag = ({ tags, itemId, itemType, index, rec }) => {
5
+ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
6
6
  const [isShowMore, setIsShowMore] = useState(false);
7
7
  const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
8
8
  const handleClickTag = (data) => {
@@ -35,6 +35,6 @@ const Hashtag = ({ tags, itemId, itemType, index, rec }) => {
35
35
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
36
36
  }, [isShowMore, tags]);
37
37
  return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag' },
38
- React.createElement(Scroll, 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', onClick: () => handleClickTag(item) }, `#${item}`))))));
38
+ React.createElement(Scroll, 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) }, `#${item}`))))));
39
39
  };
40
40
  export default memo(Hashtag);
@@ -2,6 +2,7 @@ import React, { CSSProperties } from 'react';
2
2
  interface INavbarProps {
3
3
  icon?: string;
4
4
  styles?: CSSProperties;
5
+ textStyle?: CSSProperties;
5
6
  onClose?: () => void;
6
7
  }
7
8
  declare const _default: React.NamedExoticComponent<INavbarProps>;
@@ -1,9 +1,10 @@
1
1
  import React, { memo } from 'react';
2
2
  import { useSxpDataSource } from '../../../core/hooks';
3
- const Navbar = ({ icon, styles, onClose }) => {
3
+ const Navbar = ({ icon, styles, textStyle, onClose }) => {
4
+ var _a;
4
5
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
5
6
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
6
7
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: '', onClick: onClose }),
7
- React.createElement("div", { className: 'clc-sxp-nav-title' }, `#${waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag}`)));
8
+ React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle }, `#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`)));
8
9
  };
9
10
  export default memo(Navbar);
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  import './List.less';
3
- export default function WaterfallList({ reportTagsView }: any): React.JSX.Element;
3
+ import { IHashTagProps } from '../../../../materials/sxp/HashTag';
4
+ export default function WaterfallList({ reportTagsView, ...props }: any & IHashTagProps): React.JSX.Element;
@@ -1,8 +1,10 @@
1
+ import { __rest } from "tslib";
1
2
  import React, { useState, useEffect, useMemo, useRef, useCallback } from 'react';
2
3
  import './List.less';
4
+ import previewData from './preview.json';
3
5
  import { useSxpDataSource } from '../../../../core/hooks';
4
6
  const WaterfallFlowItem = (props) => {
5
- const { rec, index, list, reportTagsView } = props;
7
+ const { rec, index, list, reportTagsView, textStyles, space } = props;
6
8
  const { swiperRef, setRtcList, setOpenHashtag, bffEventReport, sxpParameter } = useSxpDataSource();
7
9
  const [showVideo, setShowVideo] = useState(false);
8
10
  const imgDom = useRef(null);
@@ -102,19 +104,20 @@ const WaterfallFlowItem = (props) => {
102
104
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
103
105
  }, 0);
104
106
  };
105
- return (React.createElement("div", { className: 'list-content-listItem', key: index, onClick: handleClickToDetail },
107
+ return (React.createElement("div", { className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
106
108
  React.createElement("div", { className: 'list-content-listItem-picture' },
107
109
  showVideo && (React.createElement("div", { style: { display: 'none' } },
108
110
  React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
109
111
  React.createElement("canvas", { ref: canvasRef }))),
110
112
  React.createElement("img", { className: 'list-content-listItem-picture-img', loading: 'lazy', ref: imgDom })),
111
113
  React.createElement("div", { className: 'list-content-listItem-info' },
112
- React.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}` }, title && title),
113
- React.createElement("div", { className: 'list-content-listItem-info-price', hidden: !priceText }, priceText))));
114
+ React.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}`, style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.title }, title && title),
115
+ React.createElement("div", { className: 'list-content-listItem-info-price', style: textStyles.price, hidden: !priceText }, priceText))));
114
116
  };
115
- export default function WaterfallList({ reportTagsView }) {
116
- var _a, _b, _c, _d, _e, _f;
117
- const { waterFallData, getRecommendVideos, hashTagSize, loadingImage } = useSxpDataSource();
117
+ export default function WaterfallList(_a) {
118
+ var _b, _c, _d, _e, _f, _g, _h;
119
+ var { reportTagsView } = _a, props = __rest(_a, ["reportTagsView"]);
120
+ const { waterFallData, getRecommendVideos, hashTagSize, loadingImage, isOpenHashTag } = useSxpDataSource();
118
121
  const [list, setList] = useState();
119
122
  const [data, setData] = useState();
120
123
  const [isLoadingData, setIsLoadingData] = useState(false);
@@ -136,6 +139,7 @@ export default function WaterfallList({ reportTagsView }) {
136
139
  }));
137
140
  }, [waterFallData, getRecommendVideos, list, isLoadMore]);
138
141
  useEffect(() => {
142
+ var _a, _b;
139
143
  setIsLoadingData(true);
140
144
  waterFallData &&
141
145
  (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
@@ -149,7 +153,13 @@ export default function WaterfallList({ reportTagsView }) {
149
153
  setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
150
154
  setIsLoadingData(false);
151
155
  }));
152
- }, [waterFallData, getRecommendVideos, hashTagSize]);
156
+ if (isOpenHashTag) {
157
+ const res = previewData;
158
+ setData(res);
159
+ setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
160
+ setIsLoadingData(false);
161
+ }
162
+ }, [waterFallData, getRecommendVideos, hashTagSize, isOpenHashTag]);
153
163
  const handleClickLink = () => {
154
164
  var _a, _b;
155
165
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
@@ -160,14 +170,14 @@ export default function WaterfallList({ reportTagsView }) {
160
170
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
161
171
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: 'list' },
162
172
  React.createElement("div", { className: 'list-scroll', ref: containerRef, style: {
163
- bottom: ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) ? '100px' : 0
173
+ bottom: ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link) ? '100px' : 0
164
174
  } },
165
- React.createElement("div", { className: 'list-info' }, (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.info),
166
- React.createElement("div", { hidden: !((_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.link), className: 'list-collection', onClick: handleClickLink }, ((_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.linkTitle) || 'Shop the collection'),
175
+ React.createElement("div", { className: 'list-info', style: (_c = props === null || props === void 0 ? void 0 : props.textStyles) === null || _c === void 0 ? void 0 : _c.hashTagDesc }, (_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.info),
176
+ React.createElement("div", { hidden: !((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link), className: 'list-collection', onClick: handleClickLink, style: { marginBottom: props === null || props === void 0 ? void 0 : props.space } }, ((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.linkTitle) || 'Shop the collection'),
167
177
  React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
168
- return (React.createElement(WaterfallFlowItem, { key: ind, index: ind, rec: item, list: list, reportTagsView: reportTagsView }));
178
+ return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, rec: item, list: list, reportTagsView: reportTagsView }, props)));
169
179
  })),
170
180
  React.createElement("div", { hidden: !isLoadMore, style: { textAlign: 'center' } }, "loading...")),
171
- React.createElement("div", { className: 'list-bottom', hidden: !((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link) },
172
- React.createElement("button", { className: 'list-bottom-btn', onClick: handleClickLink }, ((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.linkTitle) || 'Shop the collection'))))));
181
+ React.createElement("div", { className: 'list-bottom', hidden: !((_g = data === null || data === void 0 ? void 0 : data.tag) === null || _g === void 0 ? void 0 : _g.link) },
182
+ React.createElement("button", { className: 'list-bottom-btn', style: props === null || props === void 0 ? void 0 : props.buttonStyle, onClick: handleClickLink }, ((_h = data === null || data === void 0 ? void 0 : data.tag) === null || _h === void 0 ? void 0 : _h.linkTitle) || 'Shop the collection'))))));
173
183
  }
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  import './WaterfallList.less';
3
- export default function WaterfallList({ reportTagsView }: any): React.JSX.Element;
3
+ import { IHashTagProps } from '../../../../materials/sxp/HashTag';
4
+ export default function WaterfallList({ reportTagsView, ...props }: any & IHashTagProps): React.JSX.Element;
@@ -1,8 +1,9 @@
1
+ import { __rest } from "tslib";
1
2
  import React, { useState, useEffect, useRef, useMemo, useCallback } from 'react';
2
3
  import { useEditor, useSxpDataSource } from '../../../../core/hooks';
3
4
  import './WaterfallList.less';
4
5
  const WaterfallFlowItem = (props) => {
5
- const { rec, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView } = props;
6
+ const { rec, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView, textStyles, lineClamp } = props;
6
7
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter } = useSxpDataSource();
7
8
  const [showVideo, setShowVideo] = useState(false);
8
9
  const [isLoading, setIsLoading] = useState(false);
@@ -138,11 +139,12 @@ const WaterfallFlowItem = (props) => {
138
139
  visibility: isLoading ? 'visible' : 'hidden'
139
140
  } })),
140
141
  React.createElement("div", { className: 'waterFallList-content-listItem-info' },
141
- React.createElement("div", { className: `${'waterFallList-content-listItem-info-title'} ${priceText ? 'waterFallList-content-listItem-info-nowrap' : ''}` }, title && title),
142
- React.createElement("div", { className: 'waterFallList-content-listItem-info-price', hidden: !priceText }, priceText))));
142
+ React.createElement("div", { className: `${'waterFallList-content-listItem-info-title'} ${priceText ? 'waterFallList-content-listItem-info-nowrap' : ''}`, style: Object.assign({}, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title) }, title && title),
143
+ React.createElement("div", { className: 'waterFallList-content-listItem-info-price', hidden: !priceText, style: textStyles.price }, priceText))));
143
144
  };
144
- export default function WaterfallList({ reportTagsView }) {
145
- var _a, _b, _c, _d, _e, _f;
145
+ export default function WaterfallList(_a) {
146
+ var _b, _c, _d, _e, _f, _g, _h;
147
+ var { reportTagsView } = _a, props = __rest(_a, ["reportTagsView"]);
146
148
  const { popupAni } = useEditor();
147
149
  const { waterFallData, getRecommendVideos, loadingImage } = useSxpDataSource();
148
150
  const scrollParent = useRef(null);
@@ -306,13 +308,13 @@ export default function WaterfallList({ reportTagsView }) {
306
308
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } })),
307
309
  React.createElement("div", { className: 'waterFallList', hidden: isLoadingData },
308
310
  React.createElement("div", { className: 'waterFallList-scroll', ref: scrollParent, style: {
309
- bottom: ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) ? '100px' : 0
311
+ bottom: ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link) ? '100px' : 0
310
312
  } },
311
- React.createElement("div", { className: 'waterFallList-info' }, (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.info),
312
- React.createElement("div", { hidden: !((_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.link), className: 'waterFallList-collection', onClick: handleClickLink }, ((_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.linkTitle) || 'Shop the collection'),
313
+ React.createElement("div", { className: 'waterFallList-info', style: (_c = props === null || props === void 0 ? void 0 : props.textStyles) === null || _c === void 0 ? void 0 : _c.hashTagDesc }, (_d = data === null || data === void 0 ? void 0 : data.tag) === null || _d === void 0 ? void 0 : _d.info),
314
+ React.createElement("div", { hidden: !((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link), className: 'waterFallList-collection', onClick: handleClickLink }, ((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.linkTitle) || 'Shop the collection'),
313
315
  React.createElement("div", { className: 'waterFallList-content', ref: waterfallFlowDom }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
314
- return (React.createElement(WaterfallFlowItem, { key: ind, index: ind, rec: item, list: list, showBorder: scrollTop + scrollParent.current.clientHeight, style: styleList[ind], sizeChange: onSizeChange, unitWidth: unitWidth, reportTagsView: reportTagsView }));
316
+ return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, rec: item, list: list, showBorder: scrollTop + scrollParent.current.clientHeight, style: styleList[ind], sizeChange: onSizeChange, unitWidth: unitWidth, reportTagsView: reportTagsView }, props)));
315
317
  }))),
316
- React.createElement("div", { className: 'waterFallList-bottom', hidden: !((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link) },
317
- React.createElement("button", { className: 'waterFallList-bottom-btn', onClick: handleClickLink }, ((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.linkTitle) || 'Shop the collection')))));
318
+ React.createElement("div", { className: 'waterFallList-bottom', hidden: !((_g = data === null || data === void 0 ? void 0 : data.tag) === null || _g === void 0 ? void 0 : _g.link) },
319
+ React.createElement("button", { className: 'waterFallList-bottom-btn', style: props === null || props === void 0 ? void 0 : props.buttonStyle, onClick: handleClickLink }, ((_h = data === null || data === void 0 ? void 0 : data.tag) === null || _h === void 0 ? void 0 : _h.linkTitle) || 'Shop the collection')))));
318
320
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
+ import { IHashTagProps } from '../../../../materials/sxp/HashTag';
3
4
  interface IWaterFallProps {
4
5
  }
5
- declare const _default: React.NamedExoticComponent<IWaterFallProps>;
6
+ declare const _default: React.NamedExoticComponent<IWaterFallProps & IHashTagProps>;
6
7
  export default _default;
@@ -6,7 +6,8 @@ import Navbar from '../Navbar';
6
6
  import WaterfallList from './List';
7
7
  import left from './left.png';
8
8
  import { useSxpDataSource } from '../../../../core/hooks';
9
- const WaterFall = () => {
9
+ const WaterFall = (props) => {
10
+ var _a;
10
11
  const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport } = useSxpDataSource();
11
12
  const ref = useRef(null);
12
13
  const modalEleRef = useRef(null);
@@ -94,7 +95,7 @@ const WaterFall = () => {
94
95
  return ReactDOM.createPortal(React.createElement("div", { className: 'waterfall', style: {
95
96
  display: openHashtag ? 'block' : 'none'
96
97
  } },
97
- React.createElement(Navbar, { icon: left, styles: { top: '32px' }, onClose: handleClose }),
98
- React.createElement(WaterfallList, { reportTagsView: reportTagsView })), modalEleRef.current);
98
+ React.createElement(Navbar, { icon: left, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
99
+ React.createElement(WaterfallList, Object.assign({ reportTagsView: reportTagsView }, props))), modalEleRef.current);
99
100
  };
100
101
  export default memo(WaterFall);