pb-sxp-ui 1.0.10 → 1.0.12

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
@@ -11700,7 +11700,7 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
11700
11700
  * @Author: binruan@chatlabs.com
11701
11701
  * @Date: 2024-01-10 10:58:24
11702
11702
  * @LastEditors: binruan@chatlabs.com
11703
- * @LastEditTime: 2024-04-15 09:58:50
11703
+ * @LastEditTime: 2024-04-15 16:48:54
11704
11704
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
11705
11705
  *
11706
11706
  */
@@ -11727,7 +11727,7 @@ const WaterFall = (props) => {
11727
11727
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
11728
11728
  setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
11729
11729
  }
11730
- reportTagsView(0);
11730
+ reportTagsView(cacheActiveIndex || 0);
11731
11731
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
11732
11732
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
11733
11733
  setTimeout(() => {
@@ -12497,7 +12497,7 @@ const Nudge = ({ nudge }) => {
12497
12497
  * @Author: binruan@chatlabs.com
12498
12498
  * @Date: 2024-01-15 19:03:09
12499
12499
  * @LastEditors: binruan@chatlabs.com
12500
- * @LastEditTime: 2024-04-11 18:45:44
12500
+ * @LastEditTime: 2024-04-15 17:07:42
12501
12501
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12502
12502
  *
12503
12503
  */
@@ -12663,12 +12663,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12663
12663
  return (React.createElement(PictureGroup$1, { key: rec.video.itemId, imgUrls: rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onReportViewImageEnd: handleReportViewImageEnd, onViewImageStartEvent: handleViewImageStartEvent }));
12664
12664
  }
12665
12665
  if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
12666
- return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
12666
+ return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, idx) => {
12667
12667
  var _a, _b, _c, _d, _e, _f, _g, _h;
12668
12668
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12669
12669
  const Component = withBindDataSource(t);
12670
12670
  const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12671
- return (React.createElement(Component, Object.assign({ key: index, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }), index: index })));
12671
+ return (React.createElement(Component, Object.assign({ key: `${index}${idx}`, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }), index: index })));
12672
12672
  });
12673
12673
  }
12674
12674
  return null;
@@ -12717,7 +12717,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12717
12717
  imageEndTime: `${endTime}`,
12718
12718
  playDuration: `${duration}`,
12719
12719
  contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
12720
- position: activeIndex,
12720
+ position: activeIndex + '',
12721
12721
  contentFormat: 'image',
12722
12722
  traceInfo: item.video.traceInfo
12723
12723
  }
@@ -12785,7 +12785,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12785
12785
  contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
12786
12786
  imageStartTime: `${startTime}`,
12787
12787
  contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
12788
- position: activeIndex,
12788
+ position: activeIndex + '',
12789
12789
  contentFormat: 'image',
12790
12790
  traceInfo: item.video.traceInfo
12791
12791
  }