pb-sxp-ui 1.0.85 → 1.0.86

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.
@@ -38,7 +38,7 @@ const Consent = ({ width = window.innerWidth, height = window.innerHeight, priva
38
38
  eventSubject: 'userConsent',
39
39
  eventDescription: '用户授权【操作结果】',
40
40
  consentResult: '0',
41
- consentTags: '[]',
41
+ consentTags: '["系统运营"]',
42
42
  rtc: null,
43
43
  requestId: null,
44
44
  sessionID: null
@@ -90,7 +90,7 @@ const WaterfallFlowItem = (props) => {
90
90
  useEffect(() => {
91
91
  const height = imgInfo.height * (unitWidth / imgInfo.width);
92
92
  if (isLoading) {
93
- sizeChange(height + 76 + space, index);
93
+ sizeChange(height + 56 + space, index);
94
94
  }
95
95
  }, [imgInfo, index, unitWidth, isLoading, space]);
96
96
  const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
@@ -106,9 +106,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
106
106
  const visibleChange = () => {
107
107
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
108
108
  if (document.visibilityState === 'hidden') {
109
- SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
110
- handleReportViewImageEnd(item);
111
- handleReportProductView(item);
109
+ if (!openHashtag) {
110
+ SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
111
+ handleReportViewImageEnd(item);
112
+ handleReportProductView(item);
113
+ }
112
114
  let fromKName = '';
113
115
  if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
114
116
  fromKName = 'pdpPage';
@@ -144,8 +146,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
144
146
  }
145
147
  else if (document.visibilityState === 'visible') {
146
148
  handleH5EnterLink();
147
- handleViewImageStartEvent(activeIndex);
148
- SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
149
+ if (!openHashtag) {
150
+ handleViewImageStartEvent(activeIndex);
151
+ SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
152
+ }
149
153
  backMainFeed('external');
150
154
  }
151
155
  };
@@ -162,7 +166,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
162
166
  isFromHashtag,
163
167
  tempMap,
164
168
  curTime,
165
- backMainFeed
169
+ backMainFeed,
170
+ openHashtag
166
171
  ]);
167
172
  useEffect(() => {
168
173
  const initTime = () => {
@@ -41,7 +41,7 @@ const Consent = ({ width = window.innerWidth, height = window.innerHeight, priva
41
41
  eventSubject: 'userConsent',
42
42
  eventDescription: '用户授权【操作结果】',
43
43
  consentResult: '0',
44
- consentTags: '[]',
44
+ consentTags: '["系统运营"]',
45
45
  rtc: null,
46
46
  requestId: null,
47
47
  sessionID: null
@@ -92,7 +92,7 @@ const WaterfallFlowItem = (props) => {
92
92
  (0, react_1.useEffect)(() => {
93
93
  const height = imgInfo.height * (unitWidth / imgInfo.width);
94
94
  if (isLoading) {
95
- sizeChange(height + 76 + space, index);
95
+ sizeChange(height + 56 + space, index);
96
96
  }
97
97
  }, [imgInfo, index, unitWidth, isLoading, space]);
98
98
  const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
@@ -109,9 +109,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
109
109
  const visibleChange = () => {
110
110
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
111
111
  if (document.visibilityState === 'hidden') {
112
- event_1.default.emit(event_1.SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
113
- handleReportViewImageEnd(item);
114
- handleReportProductView(item);
112
+ if (!openHashtag) {
113
+ event_1.default.emit(event_1.SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
114
+ handleReportViewImageEnd(item);
115
+ handleReportProductView(item);
116
+ }
115
117
  let fromKName = '';
116
118
  if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
117
119
  fromKName = 'pdpPage';
@@ -147,8 +149,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
147
149
  }
148
150
  else if (document.visibilityState === 'visible') {
149
151
  handleH5EnterLink();
150
- handleViewImageStartEvent(activeIndex);
151
- event_1.default.emit(event_1.SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
152
+ if (!openHashtag) {
153
+ handleViewImageStartEvent(activeIndex);
154
+ event_1.default.emit(event_1.SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
155
+ }
152
156
  backMainFeed('external');
153
157
  }
154
158
  };
@@ -165,7 +169,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
165
169
  isFromHashtag,
166
170
  tempMap,
167
171
  curTime,
168
- backMainFeed
172
+ backMainFeed,
173
+ openHashtag
169
174
  ]);
170
175
  (0, react_1.useEffect)(() => {
171
176
  const initTime = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",