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.js CHANGED
@@ -1236,7 +1236,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1236
1236
  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,
1237
1237
  // content_category
1238
1238
  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) => ({
1239
- item_id: item === null || item === void 0 ? void 0 : item.itemId,
1239
+ id: item === null || item === void 0 ? void 0 : item.itemId,
1240
1240
  item_price: item === null || item === void 0 ? void 0 : item.price
1241
1241
  }))) !== 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,
1242
1242
  // prompt
@@ -1248,7 +1248,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1248
1248
  content_type: 'product',
1249
1249
  content_name: '',
1250
1250
  contents: [{
1251
- item_id: product === null || product === void 0 ? void 0 : product.itemId,
1251
+ id: product === null || product === void 0 ? void 0 : product.itemId,
1252
1252
  item_price: product === null || product === void 0 ? void 0 : product.price
1253
1253
  }],
1254
1254
  image_urls: (_s = product.homePage) !== null && _s !== void 0 ? _s : []
@@ -10888,10 +10888,10 @@ const CommodityDetail$1 = (_a) => {
10888
10888
  }
10889
10889
  };
10890
10890
  useEffect(() => {
10891
- var _a;
10891
+ var _a, _b;
10892
10892
  if (!isActive)
10893
10893
  return;
10894
- 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 });
10894
+ 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 });
10895
10895
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
10896
10896
  eventName: 'ProductView',
10897
10897
  product: product ? [product] : undefined,
@@ -11851,10 +11851,10 @@ const CommodityDetailDiroNew$1 = (_a) => {
11851
11851
  }
11852
11852
  };
11853
11853
  useEffect(() => {
11854
- var _a;
11854
+ var _a, _b;
11855
11855
  if (!isActive)
11856
11856
  return;
11857
- 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 });
11857
+ 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 });
11858
11858
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
11859
11859
  eventName: 'ProductView',
11860
11860
  product: product ? [product] : undefined,
@@ -16275,7 +16275,7 @@ const WaterFall = (props) => {
16275
16275
  position: cacheActiveIndex
16276
16276
  });
16277
16277
  }
16278
- }, [openHashtag, bffFbReport, waterFallData, cacheActiveIndex]);
16278
+ }, [openHashtag, waterFallData, cacheActiveIndex]);
16279
16279
  useEffect(() => {
16280
16280
  const initTime = () => {
16281
16281
  setViewTime(new Date());