pb-sxp-ui 1.20.5 → 1.20.7

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.cjs CHANGED
@@ -1258,7 +1258,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1258
1258
  content_ids: [(_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.itemId, ...((_f = product === null || product === void 0 ? void 0 : product.map((item) => item === null || item === void 0 ? void 0 : item.itemId)) !== null && _f !== void 0 ? _f : [])], content_type: contentType, content_name: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.title, total_posts: rtcList === null || rtcList === void 0 ? void 0 : rtcList.length, position,
1259
1259
  // content_category
1260
1260
  currency: (_h = product === null || product === void 0 ? void 0 : product[0]) === null || _h === void 0 ? void 0 : _h.currency, contents: (_j = product === null || product === void 0 ? void 0 : product.map((item) => ({
1261
- item_id: item === null || item === void 0 ? void 0 : item.itemId,
1261
+ id: item === null || item === void 0 ? void 0 : item.itemId,
1262
1262
  item_price: item === null || item === void 0 ? void 0 : item.price
1263
1263
  }))) !== null && _j !== void 0 ? _j : [], image_urls: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) !== null && _l !== void 0 ? _l : [], video_urls: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.url,
1264
1264
  // prompt
@@ -1270,7 +1270,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1270
1270
  content_type: 'product',
1271
1271
  content_name: '',
1272
1272
  contents: [{
1273
- item_id: product === null || product === void 0 ? void 0 : product.itemId,
1273
+ id: product === null || product === void 0 ? void 0 : product.itemId,
1274
1274
  item_price: product === null || product === void 0 ? void 0 : product.price
1275
1275
  }],
1276
1276
  image_urls: (_s = product.homePage) !== null && _s !== void 0 ? _s : []
@@ -10910,10 +10910,10 @@ const CommodityDetail$1 = (_a) => {
10910
10910
  }
10911
10911
  };
10912
10912
  React.useEffect(() => {
10913
- var _a;
10913
+ var _a, _b;
10914
10914
  if (!isActive)
10915
10915
  return;
10916
- const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
10916
+ const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
10917
10917
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
10918
10918
  eventName: 'ProductView',
10919
10919
  product: product ? [product] : undefined,
@@ -11873,10 +11873,10 @@ const CommodityDetailDiroNew$1 = (_a) => {
11873
11873
  }
11874
11874
  };
11875
11875
  React.useEffect(() => {
11876
- var _a;
11876
+ var _a, _b;
11877
11877
  if (!isActive)
11878
11878
  return;
11879
- const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
11879
+ const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls, url: !isPost ? '' : (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.url }) : null });
11880
11880
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
11881
11881
  eventName: 'ProductView',
11882
11882
  product: product ? [product] : undefined,
@@ -16297,7 +16297,7 @@ const WaterFall = (props) => {
16297
16297
  position: cacheActiveIndex
16298
16298
  });
16299
16299
  }
16300
- }, [openHashtag, bffFbReport, waterFallData, cacheActiveIndex]);
16300
+ }, [openHashtag, waterFallData, cacheActiveIndex]);
16301
16301
  React.useEffect(() => {
16302
16302
  const initTime = () => {
16303
16303
  setViewTime(new Date());