pb-sxp-ui 1.0.78 → 1.0.79

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 (34) hide show
  1. package/dist/index.cjs +407 -38
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +187 -1
  4. package/dist/index.js +407 -38
  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 +407 -38
  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/PictureGroup/Picture.d.ts +1 -0
  15. package/es/core/components/SxpPageRender/PictureGroup/Picture.js +2 -2
  16. package/es/core/components/SxpPageRender/PictureGroup/index.js +9 -5
  17. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +52 -37
  18. package/es/core/components/SxpPageRender/WaterFall/index.js +3 -2
  19. package/es/core/components/SxpPageRender/index.js +4 -1
  20. package/es/core/context/SxpDataSourceProvider.js +6 -0
  21. package/es/materials/sxp/HashTag/index.d.ts +2 -0
  22. package/es/materials/sxp/HashTag/settingRender.d.ts +7 -2
  23. package/es/materials/sxp/HashTag/settingRender.js +15 -0
  24. package/lib/core/components/SxpPageRender/PictureGroup/Picture.d.ts +1 -0
  25. package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +2 -2
  26. package/lib/core/components/SxpPageRender/PictureGroup/index.js +8 -4
  27. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +52 -37
  28. package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -2
  29. package/lib/core/components/SxpPageRender/index.js +4 -1
  30. package/lib/core/context/SxpDataSourceProvider.js +6 -0
  31. package/lib/materials/sxp/HashTag/index.d.ts +2 -0
  32. package/lib/materials/sxp/HashTag/settingRender.d.ts +7 -2
  33. package/lib/materials/sxp/HashTag/settingRender.js +15 -0
  34. package/package.json +1 -1
@@ -6,8 +6,9 @@ const ReactDOM = tslib_1.__importStar(require("react-dom"));
6
6
  require("./index.less");
7
7
  const lodash_1 = require("lodash");
8
8
  const Navbar_1 = tslib_1.__importDefault(require("../Navbar"));
9
- const List_1 = tslib_1.__importDefault(require("./List"));
9
+ const WaterfallList_1 = tslib_1.__importDefault(require("./WaterfallList"));
10
10
  const left_png_1 = tslib_1.__importDefault(require("./left.png"));
11
+ const List_1 = tslib_1.__importDefault(require("./List"));
11
12
  const hooks_1 = require("../../../../core/hooks");
12
13
  const WaterFall = (props) => {
13
14
  var _a;
@@ -99,6 +100,6 @@ const WaterFall = (props) => {
99
100
  display: openHashtag ? 'block' : 'none'
100
101
  } },
101
102
  react_1.default.createElement(Navbar_1.default, { icon: left_png_1.default, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
102
- react_1.default.createElement(List_1.default, Object.assign({ reportTagsView: reportTagsView }, props))), modalEleRef.current);
103
+ (props === null || props === void 0 ? void 0 : props.isWaterfallFlow) ? (react_1.default.createElement(WaterfallList_1.default, Object.assign({ reportTagsView: reportTagsView }, props))) : (react_1.default.createElement(List_1.default, Object.assign({ reportTagsView: reportTagsView }, props)))), modalEleRef.current);
103
104
  };
104
105
  exports.default = (0, react_1.memo)(WaterFall);
@@ -44,6 +44,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
44
44
  return data.length > 0 && !loading && (0, localStore_1.getFeUserId)();
45
45
  }, [data, loading]);
46
46
  const handleH5EnterLink = (0, react_1.useCallback)(() => {
47
+ var _a, _b;
47
48
  if (data.length <= 0) {
48
49
  return;
49
50
  }
@@ -64,7 +65,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
64
65
  utmId: getVal('utm_id'),
65
66
  utmContent: getVal('utm_content'),
66
67
  enterTime: `${Date.now()}`,
67
- requestId: null
68
+ requestId: null,
69
+ enterUrl: (_b = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href) !== null && _b !== void 0 ? _b : '',
70
+ clSource: getVal('cl_sourc')
68
71
  }
69
72
  });
70
73
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
@@ -209,6 +209,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
209
209
  setCacheRtcList((_b = data === null || data === void 0 ? void 0 : data.recList) !== null && _b !== void 0 ? _b : []);
210
210
  })
211
211
  .finally(() => {
212
+ bffEventReport({
213
+ eventInfo: {
214
+ eventSubject: 'apiRequest',
215
+ eventDescription: 'api request succeed'
216
+ }
217
+ });
212
218
  setLoading(false);
213
219
  isInit.current = true;
214
220
  });
@@ -11,6 +11,8 @@ export interface IHashTagProps {
11
11
  price: CSSProperties;
12
12
  };
13
13
  buttonBgStyle: CSSProperties;
14
+ showBanner?: boolean;
15
+ isWaterfallFlow?: boolean;
14
16
  }
15
17
  declare const _default: React.NamedExoticComponent<IHashTagProps>;
16
18
  export default _default;
@@ -1,11 +1,16 @@
1
1
  declare const _default: ({
2
2
  title: string;
3
- child: {
3
+ child: ({
4
4
  type: string;
5
5
  label: string;
6
6
  name: string[];
7
7
  addonAfter: string;
8
- }[];
8
+ } | {
9
+ type: string;
10
+ label: string;
11
+ name: string[];
12
+ addonAfter?: undefined;
13
+ })[];
9
14
  } | {
10
15
  title: string;
11
16
  child: {
@@ -3,6 +3,16 @@ var _a, _b;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const defaultSetting_1 = require("../defaultSetting");
5
5
  exports.default = [
6
+ {
7
+ title: 'Banner',
8
+ child: [
9
+ {
10
+ type: 'Switch',
11
+ label: 'Banner图开关',
12
+ name: ['props', 'showBanner']
13
+ }
14
+ ]
15
+ },
6
16
  {
7
17
  title: '卡片样式',
8
18
  child: [
@@ -11,6 +21,11 @@ exports.default = [
11
21
  label: '上下边距',
12
22
  name: ['props', 'space'],
13
23
  addonAfter: 'px'
24
+ },
25
+ {
26
+ type: 'Switch',
27
+ label: '固定宽高',
28
+ name: ['props', 'isWaterfallFlow']
14
29
  }
15
30
  ]
16
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",