pb-sxp-ui 1.10.7 → 1.10.9

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/pb-ui.js CHANGED
@@ -864,7 +864,7 @@
864
864
  };
865
865
  }
866
866
  const sessionID = storeAndLoadFeSessionId();
867
- const ef = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, { playbookType }), eventInfo), (getDevice$1() && { sxpDevice: getDevice$1() })), (getSystem() && { sxpSystem: getSystem() })), (getBrowserInfo() && { sxpBrowser: getBrowserInfo() })), (layoutVariantId && reportLayId && { layoutVariantId })), ((eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) && channel && { position: Number(eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) + 1 + '' }));
867
+ const ef = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, { playbookType }), (layoutVariantId && reportLayId && { layoutVariantId })), eventInfo), (getDevice$1() && { sxpDevice: getDevice$1() })), (getSystem() && { sxpSystem: getSystem() })), (getBrowserInfo() && { sxpBrowser: getBrowserInfo() })), ((eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) && channel && { position: Number(eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) + 1 + '' }));
868
868
  const realUserInfo = Object.entries(userInfo).map(([k, v]) => ({ name: k, value: v }));
869
869
  const realEventInfo = Object.entries(ef)
870
870
  .map(([k, v]) => v && { name: k, value: v })
@@ -1088,23 +1088,10 @@
1088
1088
  const item = list === null || list === void 0 ? void 0 : list[0];
1089
1089
  const traceInfo = ((_k = item === null || item === void 0 ? void 0 : item.video) === null || _k === void 0 ? void 0 : _k.traceInfo) || ((_l = item === null || item === void 0 ? void 0 : item.product) === null || _l === void 0 ? void 0 : _l.traceInfo) || '';
1090
1090
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1091
- eventInfo: {
1092
- eventSubject: 'multiPostClick',
1093
- eventDescription: 'multiPostClick',
1094
- traceInfo,
1095
- branchfeed: channel
1096
- }
1091
+ eventInfo: Object.assign({ eventSubject: 'multiPostClick', eventDescription: 'multiPostClick', traceInfo, branchfeed: channel }, (layId && { layoutVariantId: layId }))
1097
1092
  });
1098
1093
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1099
- eventInfo: {
1100
- eventSubject: 'endMultiPost',
1101
- eventDescription: 'endMultiPost',
1102
- contentFormat: 'image',
1103
- position: '0',
1104
- traceInfo,
1105
- nextStep: 'multipostClick',
1106
- timeOnSite: Math.floor((new Date() - (multiPostTimeRef === null || multiPostTimeRef === void 0 ? void 0 : multiPostTimeRef.current)) / 1000) + ''
1107
- }
1094
+ eventInfo: Object.assign({ eventSubject: 'endMultiPost', eventDescription: 'endMultiPost', contentFormat: 'image', position: '0', traceInfo, nextStep: 'multipostClick', timeOnSite: Math.floor((new Date() - (multiPostTimeRef === null || multiPostTimeRef === void 0 ? void 0 : multiPostTimeRef.current)) / 1000) + '' }, (layId && { layoutVariantId: layId }))
1108
1095
  });
1109
1096
  }
1110
1097
  }
@@ -12404,7 +12391,7 @@ Made in Italy` })));
12404
12391
  eventSubject: 'clickCta',
12405
12392
  eventDescription: 'User clicked the CTA'
12406
12393
  }, rec, item, index);
12407
- setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(multItem && multiCheckIndex
12394
+ setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(multItem && multiCheckIndex !== undefined && multiCheckIndex >= 0
12408
12395
  ? Object.assign(Object.assign({}, rec), { video: Object.assign(Object.assign({}, rec === null || rec === void 0 ? void 0 : rec.video), { bindProduct: multItem }), index, multiCheckIndex }) : Object.assign(Object.assign({}, rec), { index }));
12409
12396
  setElement(ref === null || ref === void 0 ? void 0 : ref.current);
12410
12397
  if (isExternalLink) {
@@ -14928,7 +14915,7 @@ Made in Italy` })));
14928
14915
  const imgLoad = React.useCallback((img) => {
14929
14916
  setTimeout(() => {
14930
14917
  var _a;
14931
- const height = (_a = pictRef === null || pictRef === void 0 ? void 0 : pictRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
14918
+ const height = (img === null || img === void 0 ? void 0 : img.clientHeight) || ((_a = pictRef === null || pictRef === void 0 ? void 0 : pictRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
14932
14919
  // 加56是因为下方文字部分高度为56,可以自己设置
14933
14920
  sizeChange(height + 56 + space, index);
14934
14921
  }, 0);
@@ -15418,7 +15405,7 @@ Made in Italy` })));
15418
15405
  * @Author: binruan@chatlabs.com
15419
15406
  * @Date: 2024-01-10 10:58:24
15420
15407
  * @LastEditors: binruan@chatlabs.com
15421
- * @LastEditTime: 2024-10-23 16:58:01
15408
+ * @LastEditTime: 2024-12-09 11:18:32
15422
15409
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15423
15410
  *
15424
15411
  */
@@ -15426,7 +15413,6 @@ Made in Italy` })));
15426
15413
  var _a;
15427
15414
  const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
15428
15415
  const { backMainFeed } = useEventReport();
15429
- React.useRef(null);
15430
15416
  const modalEleRef = React.useRef(null);
15431
15417
  const [viewTime, setViewTime] = React.useState();
15432
15418
  React.useEffect(() => {
@@ -15443,20 +15429,12 @@ Made in Italy` })));
15443
15429
  }, []);
15444
15430
  const handleClose = () => {
15445
15431
  var _a, _b;
15446
- // const isEq = isEqual(rtcList, cacheRtcList);
15447
- // if (!isEq && cacheRtcList && cacheRtcList?.length) {
15448
- // setRtcList?.(cacheRtcList);
15449
- // }
15450
15432
  backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
15451
15433
  reportTagsView();
15452
15434
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
15453
15435
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
15454
- // setTimeout(() => {
15455
- // if (!isEq) {
15456
15436
  (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
15457
- // }
15458
15437
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
15459
- // }, 0);
15460
15438
  };
15461
15439
  const [recData, setRecData] = React.useState();
15462
15440
  React.useEffect(() => {
@@ -15521,7 +15499,7 @@ Made in Italy` })));
15521
15499
  display: openHashtag ? 'block' : 'none'
15522
15500
  } },
15523
15501
  React.createElement(Navbar$1, { icon: img$4, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
15524
- (props === null || props === void 0 ? void 0 : props.openFixedSize) === true || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(WaterfallList, Object.assign({ reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ reportTagsView: reportTagsView }, props)))), modalEleRef.current);
15502
+ (props === null || props === void 0 ? void 0 : props.openFixedSize) === true || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(WaterfallList, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
15525
15503
  };
15526
15504
  var WaterFall$1 = React.memo(WaterFall);
15527
15505
 
@@ -16760,7 +16738,7 @@ Made in Italy` })));
16760
16738
  * @Author: binruan@chatlabs.com
16761
16739
  * @Date: 2024-06-13 10:08:32
16762
16740
  * @LastEditors: binruan@chatlabs.com
16763
- * @LastEditTime: 2024-11-26 11:42:08
16741
+ * @LastEditTime: 2024-12-10 13:55:37
16764
16742
  * @FilePath: \pb-sxp-ui\src\materials\sxp\MultiPosts\settingRender.tsx
16765
16743
  *
16766
16744
  */
@@ -16771,7 +16749,8 @@ Made in Italy` })));
16771
16749
  {
16772
16750
  label: '背景图',
16773
16751
  type: 'Upload',
16774
- name: ['props', 'bgImgUrl']
16752
+ name: ['props', 'bgImgUrl'],
16753
+ text: '建议尺寸:720 * 1280'
16775
16754
  },
16776
16755
  {
16777
16756
  type: 'Group',
@@ -16844,7 +16823,7 @@ Made in Italy` })));
16844
16823
  ]
16845
16824
  },
16846
16825
  {
16847
- title: '按钮设置',
16826
+ title: '按钮设置 (建议尺寸:500 * 500)',
16848
16827
  child: [
16849
16828
  {
16850
16829
  type: 'Group',