pb-sxp-ui 1.0.53 → 1.0.55

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.
Files changed (37) hide show
  1. package/dist/index.cjs +112 -62
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +112 -62
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +112 -62
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageCore/index.d.ts +1 -0
  14. package/es/core/components/SxpPageCore/index.js +2 -2
  15. package/es/core/components/SxpPageRender/Popup/index.js +1 -1
  16. package/es/core/components/SxpPageRender/VideoWidget/index.js +10 -2
  17. package/es/core/components/SxpPageRender/index.js +16 -2
  18. package/es/core/context/SxpDataSourceProvider.d.ts +7 -0
  19. package/es/core/context/SxpDataSourceProvider.js +15 -2
  20. package/es/materials/sxp/popup/AppointForm/index.d.ts +1 -0
  21. package/es/materials/sxp/popup/AppointForm/index.js +14 -9
  22. package/es/materials/sxp/popup/CommodityDetail/index.js +8 -1
  23. package/es/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
  24. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
  25. package/lib/core/components/SxpPageCore/index.d.ts +1 -0
  26. package/lib/core/components/SxpPageCore/index.js +2 -2
  27. package/lib/core/components/SxpPageRender/Popup/index.js +1 -1
  28. package/lib/core/components/SxpPageRender/VideoWidget/index.js +10 -2
  29. package/lib/core/components/SxpPageRender/index.js +16 -2
  30. package/lib/core/context/SxpDataSourceProvider.d.ts +7 -0
  31. package/lib/core/context/SxpDataSourceProvider.js +15 -2
  32. package/lib/materials/sxp/popup/AppointForm/index.d.ts +1 -0
  33. package/lib/materials/sxp/popup/AppointForm/index.js +14 -9
  34. package/lib/materials/sxp/popup/CommodityDetail/index.js +8 -1
  35. package/lib/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
  36. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
  37. package/package.json +1 -1
package/dist/pb-ui.js CHANGED
@@ -430,7 +430,7 @@
430
430
  DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
431
431
  })(DataSourceType || (DataSourceType = {}));
432
432
  const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_id', 'utm_content', 'cl_source'];
433
- const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false }) => {
433
+ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false }) => {
434
434
  const [rtcList, setRtcList] = React.useState([]);
435
435
  const [tagList, setTagList] = React.useState([]);
436
436
  const [loading, setLoading] = React.useState(false);
@@ -545,6 +545,18 @@
545
545
  type: 'beacon'
546
546
  });
547
547
  }, [bffFetch, curReqInfo, enableReportEvent]);
548
+ const bffFbReport = React.useCallback((_a) => {
549
+ var _b;
550
+ var { eventName, actionSource = 'website', eventSourceUrl = (_b = window === null || window === void 0 ? void 0 : window.location) === null || _b === void 0 ? void 0 : _b.href, externalId } = _a;
551
+ if (!enableReportEvent || !enabledMetaConversionApi) {
552
+ return;
553
+ }
554
+ return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
555
+ method: 'POST',
556
+ body: { eventName, actionSource, eventSourceUrl, 'userData.externalId': externalId },
557
+ type: 'beacon'
558
+ });
559
+ }, [bffFetch, enableReportEvent, enabledMetaConversionApi]);
548
560
  const bffMutateLike = React.useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
549
561
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/recommend/like', { method: 'POST', body }));
550
562
  return res === null || res === void 0 ? void 0 : res.success;
@@ -652,7 +664,8 @@
652
664
  tagList,
653
665
  setLoading,
654
666
  videoRef,
655
- setVideoRef
667
+ setVideoRef,
668
+ bffFbReport
656
669
  } }, render({
657
670
  rtcList,
658
671
  mutateLike: bffMutateLike,
@@ -1027,7 +1040,7 @@
1027
1040
  ];
1028
1041
 
1029
1042
  const AppointForm$1 = (_a) => {
1030
- var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, onClick } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "onClick"]);
1043
+ var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, onClick, onClose } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "onClick", "onClose"]);
1031
1044
  const { submitForm } = useSxpDataSource();
1032
1045
  const formRef = React.useRef();
1033
1046
  const [loading, setLoading] = React.useState(false);
@@ -1068,19 +1081,24 @@
1068
1081
  }, [layoutType, columns, defaultColumns]);
1069
1082
  const handleSubmit = lodash.debounce(() => __awaiter(void 0, void 0, void 0, function* () {
1070
1083
  var _b, _c, _d;
1071
- setLoading(true);
1072
1084
  const vals = yield ((_b = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _b === void 0 ? void 0 : _b.getFieldsValue());
1073
- const arr = (_d = (_c = Object.keys(vals)) === null || _c === void 0 ? void 0 : _c.map((key) => ({
1074
- name: key,
1075
- value: vals[key]
1076
- }))) === null || _d === void 0 ? void 0 : _d.filter((item) => item === null || item === void 0 ? void 0 : item.value);
1085
+ if (!vals)
1086
+ return;
1087
+ const arr = (_d = (_c = Object.keys(vals)) === null || _c === void 0 ? void 0 : _c.map((key) => {
1088
+ var _a;
1089
+ return ({
1090
+ name: key,
1091
+ value: (_a = vals[key]) !== null && _a !== void 0 ? _a : ''
1092
+ });
1093
+ })) === null || _d === void 0 ? void 0 : _d.filter((item) => item === null || item === void 0 ? void 0 : item.value);
1077
1094
  if (!arr || !(arr === null || arr === void 0 ? void 0 : arr.length))
1078
1095
  return;
1079
- const res = yield (submitForm === null || submitForm === void 0 ? void 0 : submitForm({ attributes: arr }));
1096
+ setLoading(true);
1097
+ const res = (yield (submitForm === null || submitForm === void 0 ? void 0 : submitForm({ attributes: arr })));
1080
1098
  setLoading(false);
1081
1099
  if (res) {
1082
- window === null || window === void 0 ? void 0 : window.sxpPopup('');
1083
- res && (onClick === null || onClick === void 0 ? void 0 : onClick());
1100
+ onClose === null || onClose === void 0 ? void 0 : onClose();
1101
+ onClick === null || onClick === void 0 ? void 0 : onClick();
1084
1102
  }
1085
1103
  }), 1000);
1086
1104
  return (React.createElement("div", { className: 'pb-appoint-form' },
@@ -8362,7 +8380,7 @@
8362
8380
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
8363
8381
  var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index"]);
8364
8382
  const { sxpParameter } = useSxpDataSource();
8365
- const { popupDetailData, bffEventReport, isPreview, waterFallData } = useSxpDataSource();
8383
+ const { popupDetailData, bffEventReport, isPreview, bffFbReport } = useSxpDataSource();
8366
8384
  const { jumpToWeb, productView } = useEventReport();
8367
8385
  const curTimeRef = React.useRef(null);
8368
8386
  const [showModal, setShowModal] = React.useState(false);
@@ -8379,6 +8397,13 @@
8379
8397
  window.location.href = window.getJointUtmLink(product.link);
8380
8398
  }
8381
8399
  };
8400
+ React.useEffect(() => {
8401
+ if (!isPost) {
8402
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
8403
+ eventName: 'ProductView'
8404
+ });
8405
+ }
8406
+ }, [isPost, bffFbReport]);
8382
8407
  React.useEffect(() => {
8383
8408
  const initTime = () => {
8384
8409
  curTimeRef.current = new Date();
@@ -8814,7 +8839,7 @@
8814
8839
  var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index"]);
8815
8840
  React.useState(true);
8816
8841
  const { sxpParameter } = useSxpDataSource();
8817
- const { popupDetailData, bffEventReport, isPreview, swiperRef, waterFallData } = useSxpDataSource();
8842
+ const { popupDetailData, bffEventReport, isPreview, swiperRef, bffFbReport } = useSxpDataSource();
8818
8843
  const { jumpToWeb, productView } = useEventReport();
8819
8844
  const scrollRef = React.useRef(null);
8820
8845
  React.useRef(null);
@@ -8837,6 +8862,13 @@
8837
8862
  window.location.href = window.getJointUtmLink(product.link);
8838
8863
  }
8839
8864
  };
8865
+ React.useEffect(() => {
8866
+ if (!isPost) {
8867
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
8868
+ eventName: 'ProductView'
8869
+ });
8870
+ }
8871
+ }, [isPost, bffFbReport]);
8840
8872
  React.useEffect(() => {
8841
8873
  const initTime = () => {
8842
8874
  curTimeRef.current = new Date();
@@ -12055,7 +12087,7 @@ Made in Italy` })));
12055
12087
 
12056
12088
  const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoRef }) => {
12057
12089
  const [isPauseVideo, setIsPauseVideo] = React.useState(false);
12058
- const { bffEventReport, sxpParameter, waterFallData, openHashtag } = useSxpDataSource();
12090
+ const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport } = useSxpDataSource();
12059
12091
  const videoStartTime = React.useRef(0);
12060
12092
  const [isLoadFinish, setIsLoadFinish] = React.useState(false);
12061
12093
  const [isFirstPlay, setIsFirstPlay] = React.useState(true);
@@ -12263,6 +12295,9 @@ Made in Italy` })));
12263
12295
  if (!videoRef || !isLoadFinish)
12264
12296
  return;
12265
12297
  if (isActive) {
12298
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
12299
+ eventName: 'ViewContent'
12300
+ });
12266
12301
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.play();
12267
12302
  }
12268
12303
  else {
@@ -12286,7 +12321,12 @@ Made in Italy` })));
12286
12321
  React.useEffect(() => {
12287
12322
  if (!isActive)
12288
12323
  return;
12289
- const onShow = handleClickVideo('start');
12324
+ const onShow = () => {
12325
+ handleClickVideo('start')();
12326
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
12327
+ eventName: 'ViewContent'
12328
+ });
12329
+ };
12290
12330
  const onHide = handleClickVideo('pause');
12291
12331
  SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, onShow);
12292
12332
  SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, onHide);
@@ -12649,11 +12689,47 @@ Made in Italy` })));
12649
12689
  React.createElement("p", { style: Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle) }, (_g = nudge === null || nudge === void 0 ? void 0 : nudge.content) !== null && _g !== void 0 ? _g : '')))));
12650
12690
  };
12651
12691
 
12692
+ const DEFAULT_TAG = 'FOR U';
12693
+ const Tagbar = ({ tagList = [], setActiveIndex }) => {
12694
+ const [selectTag, setSelectTag] = React.useState(DEFAULT_TAG);
12695
+ const { getRecommendVideos, setRtcList, setCacheRtcList, setCacheActiveIndex, setLoading, swiperRef } = useSxpDataSource();
12696
+ const realTagList = React.useMemo(() => {
12697
+ return [DEFAULT_TAG, ...tagList];
12698
+ }, [tagList]);
12699
+ const handleSelectTag = (tag) => () => {
12700
+ if (tag === selectTag)
12701
+ return;
12702
+ let hashTag;
12703
+ if (tag !== DEFAULT_TAG) {
12704
+ hashTag = tag;
12705
+ }
12706
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
12707
+ getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({ hashTag }).then((res) => {
12708
+ var _a, _b, _c, _d;
12709
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList((_a = res === null || res === void 0 ? void 0 : res.recList) !== null && _a !== void 0 ? _a : []);
12710
+ setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList((_b = res === null || res === void 0 ? void 0 : res.recList) !== null && _b !== void 0 ? _b : []);
12711
+ setActiveIndex === null || setActiveIndex === void 0 ? void 0 : setActiveIndex(0);
12712
+ setCacheActiveIndex === null || setCacheActiveIndex === void 0 ? void 0 : setCacheActiveIndex(0);
12713
+ (_d = (_c = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper) === null || _d === void 0 ? void 0 : _d.slideTo(0);
12714
+ }).finally(() => {
12715
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
12716
+ });
12717
+ setSelectTag(tag);
12718
+ };
12719
+ if (tagList.length <= 0)
12720
+ return null;
12721
+ return (React.createElement("div", { className: 'clc-sxp-tagbar' },
12722
+ React.createElement("ul", { className: 'clc-sxp-tagbar-list', style: { margin: 'auto', gap: 24 } }, realTagList.map((tag) => {
12723
+ return (React.createElement("li", { className: `clc-sxp-tagbar-list-item ${tag === selectTag ? 'clc-sxp-tagbar-list-item-active' : ''}`, key: tag, onClick: handleSelectTag(tag) }, tag));
12724
+ }))));
12725
+ };
12726
+ var Tagbar$1 = React.memo(Tagbar);
12727
+
12652
12728
  /*
12653
12729
  * @Author: binruan@chatlabs.com
12654
12730
  * @Date: 2024-01-15 19:03:09
12655
12731
  * @LastEditors: binruan@chatlabs.com
12656
- * @LastEditTime: 2024-04-30 16:16:05
12732
+ * @LastEditTime: 2024-05-09 16:23:59
12657
12733
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12658
12734
  *
12659
12735
  */
@@ -12668,7 +12744,7 @@ Made in Italy` })));
12668
12744
  const viewTime = React.useRef();
12669
12745
  const [isLoadMore, setIsLoadMore] = React.useState(false);
12670
12746
  const [isShowMore, setIsShowMore] = React.useState(false);
12671
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData } = useSxpDataSource();
12747
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport } = useSxpDataSource();
12672
12748
  const [videoRef, setVideoRef] = React.useState(null);
12673
12749
  const playerRef = React.useRef();
12674
12750
  const { productView } = useEventReport();
@@ -12701,8 +12777,11 @@ Made in Italy` })));
12701
12777
  requestId: null
12702
12778
  }
12703
12779
  });
12780
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
12781
+ eventName: 'PageView'
12782
+ });
12704
12783
  setIsInit(true);
12705
- }, [bffEventReport, data.length]);
12784
+ }, [bffEventReport, data.length, bffFbReport]);
12706
12785
  const initTime = () => {
12707
12786
  curTime.current = new Date();
12708
12787
  viewTime.current = new Date();
@@ -12827,9 +12906,9 @@ Made in Italy` })));
12827
12906
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
12828
12907
  minusHeight += 45;
12829
12908
  }
12830
- // if (tagList.length > 0) {
12831
- // minusHeight += 45;
12832
- // }
12909
+ if (tagList.length > 0) {
12910
+ minusHeight += 45;
12911
+ }
12833
12912
  return containerHeight - minusHeight;
12834
12913
  }, [globalConfig, containerHeight, tagList]);
12835
12914
  const renderLogo = React.useMemo(() => {
@@ -12987,6 +13066,9 @@ Made in Italy` })));
12987
13066
  var _a, _b, _c;
12988
13067
  if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && !((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls) && (item === null || item === void 0 ? void 0 : item.product)) {
12989
13068
  productView(item, item.product, (_c = item === null || item === void 0 ? void 0 : item.product) === null || _c === void 0 ? void 0 : _c.bindCta, viewTime.current, activeIndex);
13069
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
13070
+ eventName: 'ProductView'
13071
+ });
12990
13072
  }
12991
13073
  };
12992
13074
  React.useEffect(() => {
@@ -13014,6 +13096,9 @@ Made in Italy` })));
13014
13096
  traceInfo: item.video.traceInfo
13015
13097
  }
13016
13098
  });
13099
+ bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
13100
+ eventName: 'ViewContent'
13101
+ });
13017
13102
  }
13018
13103
  };
13019
13104
  const visList = React.useMemo(() => {
@@ -13053,6 +13138,7 @@ Made in Italy` })));
13053
13138
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
13054
13139
  } })),
13055
13140
  renderLogo,
13141
+ React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex }),
13056
13142
  isShowFingerTip ? React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
13057
13143
  React.createElement(Swiper, { ref: swiperRef, onSlideChange: () => {
13058
13144
  swiperRef.current.swiper.allowTouchMove = false;
@@ -13113,42 +13199,6 @@ Made in Italy` })));
13113
13199
  React.createElement("div", { id: 'player-container-id-copy' }))));
13114
13200
  };
13115
13201
 
13116
- const DEFAULT_TAG = 'FOR U';
13117
- const Tagbar = ({ tagList = [], setActiveIndex }) => {
13118
- const [selectTag, setSelectTag] = React.useState(DEFAULT_TAG);
13119
- const { getRecommendVideos, setRtcList, setCacheRtcList, setCacheActiveIndex, setLoading, swiperRef } = useSxpDataSource();
13120
- const realTagList = React.useMemo(() => {
13121
- return [DEFAULT_TAG, ...tagList];
13122
- }, [tagList]);
13123
- const handleSelectTag = (tag) => () => {
13124
- if (tag === selectTag)
13125
- return;
13126
- let hashTag;
13127
- if (tag !== DEFAULT_TAG) {
13128
- hashTag = tag;
13129
- }
13130
- setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
13131
- getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({ hashTag }).then((res) => {
13132
- var _a, _b, _c, _d;
13133
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList((_a = res === null || res === void 0 ? void 0 : res.recList) !== null && _a !== void 0 ? _a : []);
13134
- setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList((_b = res === null || res === void 0 ? void 0 : res.recList) !== null && _b !== void 0 ? _b : []);
13135
- setActiveIndex === null || setActiveIndex === void 0 ? void 0 : setActiveIndex(0);
13136
- setCacheActiveIndex === null || setCacheActiveIndex === void 0 ? void 0 : setCacheActiveIndex(0);
13137
- (_d = (_c = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper) === null || _d === void 0 ? void 0 : _d.slideTo(0);
13138
- }).finally(() => {
13139
- setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
13140
- });
13141
- setSelectTag(tag);
13142
- };
13143
- if (tagList.length <= 0)
13144
- return null;
13145
- return (React.createElement("div", { className: 'clc-sxp-tagbar' },
13146
- React.createElement("ul", { className: 'clc-sxp-tagbar-list', style: { margin: 'auto', gap: 24 } }, realTagList.map((tag) => {
13147
- return (React.createElement("li", { className: `clc-sxp-tagbar-list-item ${tag === selectTag ? 'clc-sxp-tagbar-list-item-active' : ''}`, key: tag, onClick: handleSelectTag(tag) }, tag));
13148
- }))));
13149
- };
13150
- var Tagbar$1 = React.memo(Tagbar);
13151
-
13152
13202
  const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
13153
13203
  return (React.createElement(Swiper, { defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: { clickable: true, bulletActiveClass: 'swipe-item-active-bullet' }, height: height, style: { width }, loop: true, autoplay: false }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url) => {
13154
13204
  return (React.createElement(SwiperSlide, { key: url },
@@ -13513,7 +13563,7 @@ Made in Italy` })));
13513
13563
  * @Author: binruan@chatlabs.com
13514
13564
  * @Date: 2023-10-31 10:56:01
13515
13565
  * @LastEditors: binruan@chatlabs.com
13516
- * @LastEditTime: 2024-04-15 09:39:17
13566
+ * @LastEditTime: 2024-05-08 17:41:44
13517
13567
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
13518
13568
  *
13519
13569
  */
@@ -13564,7 +13614,7 @@ Made in Italy` })));
13564
13614
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
13565
13615
  const Component = withBindDataSource(t);
13566
13616
  const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
13567
- return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
13617
+ return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, onClose: handleClose })));
13568
13618
  }
13569
13619
  else {
13570
13620
  return React.createElement(React.Fragment, null);
@@ -13578,7 +13628,7 @@ Made in Italy` })));
13578
13628
  * @Author: binruan@chatlabs.com
13579
13629
  * @Date: 2024-01-15 19:03:09
13580
13630
  * @LastEditors: binruan@chatlabs.com
13581
- * @LastEditTime: 2024-04-30 11:06:08
13631
+ * @LastEditTime: 2024-05-06 17:26:37
13582
13632
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
13583
13633
  *
13584
13634
  */
@@ -13594,7 +13644,7 @@ Made in Italy` })));
13594
13644
  Object.values(_materials_).forEach((v) => {
13595
13645
  RESOLVER[v.extend.type] = v;
13596
13646
  });
13597
- const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
13647
+ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl, enabledMetaConversionApi }) => {
13598
13648
  var _a, _b, _c, _d, _e, _f;
13599
13649
  const utmVal = React.useMemo(() => {
13600
13650
  var _a;
@@ -13602,7 +13652,7 @@ Made in Italy` })));
13602
13652
  return searchParams;
13603
13653
  }, []);
13604
13654
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
13605
- React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, render: ({ rtcList, tagList }) => {
13655
+ React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, render: ({ rtcList, tagList }) => {
13606
13656
  var _a;
13607
13657
  return (React.createElement(React.Fragment, null,
13608
13658
  React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),