pb-sxp-ui 1.19.3 → 1.19.5

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.
@@ -45,7 +45,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
45
45
  const [isShowCookieSetting, setIsShowCookieSetting] = useState(false);
46
46
  const videoWidgetRef = useRef(null);
47
47
  const fbcRef = useRef('');
48
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
48
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5, pixelPvStatusRef } = useSxpDataSource();
49
49
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
50
50
  const isShowFingerTip = useMemo(() => {
51
51
  return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -498,7 +498,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
498
498
  window.OptanonWrapper = function () {
499
499
  const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
500
500
  if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
501
- setIsShowCookieSetting(true);
502
501
  }
503
502
  };
504
503
  const handleClick = (event) => {
@@ -513,6 +512,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
513
512
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
514
513
  window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
515
514
  window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
515
+ pixelPvStatusRef.current = true;
516
516
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
517
517
  }
518
518
  }
@@ -686,7 +686,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
686
686
  React.createElement(WaterFall, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
687
687
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
688
688
  openMultiPosts && (React.createElement(MultiPosts, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
689
- isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
689
+ (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
690
690
  position: 'fixed',
691
691
  bottom: 0,
692
692
  left: 0,
@@ -95,6 +95,7 @@ export interface ISxpDataSourceContext {
95
95
  getAccount?: () => Promise<any>;
96
96
  accountSonsent?: (v: boolean) => Promise<boolean>;
97
97
  isDiyH5?: boolean;
98
+ pixelPvStatusRef?: any;
98
99
  }
99
100
  export declare const SxpDataSourceContext: React.Context<ISxpDataSourceContext>;
100
101
  export interface SxpDataSourceProviderProps {
@@ -906,7 +906,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
906
906
  refreshFeSession,
907
907
  getAccount,
908
908
  accountSonsent,
909
- isDiyH5
909
+ isDiyH5,
910
+ pixelPvStatusRef
910
911
  } }, isShowConsent ? (React.createElement(Consent, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
911
912
  rtcList,
912
913
  mutateLike: bffMutateLike,
@@ -48,7 +48,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
48
48
  const [isShowCookieSetting, setIsShowCookieSetting] = (0, react_1.useState)(false);
49
49
  const videoWidgetRef = (0, react_1.useRef)(null);
50
50
  const fbcRef = (0, react_1.useRef)('');
51
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = (0, hooks_1.useSxpDataSource)();
51
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5, pixelPvStatusRef } = (0, hooks_1.useSxpDataSource)();
52
52
  const { backMainFeed, productView, jumpToWeb } = (0, useEventReport_1.useEventReport)();
53
53
  const isShowFingerTip = (0, react_1.useMemo)(() => {
54
54
  return data.length > 0 && !loading && ((0, localStore_1.getFeUserState)() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -501,7 +501,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
501
501
  window.OptanonWrapper = function () {
502
502
  const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
503
503
  if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
504
- setIsShowCookieSetting(true);
505
504
  }
506
505
  };
507
506
  const handleClick = (event) => {
@@ -516,6 +515,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
516
515
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
517
516
  window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
518
517
  window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
518
+ pixelPvStatusRef.current = true;
519
519
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
520
520
  }
521
521
  }
@@ -689,7 +689,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
689
689
  react_1.default.createElement(WaterFall_1.default, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
690
690
  react_1.default.createElement(ConsentPopup_1.default, { resolver: resolver, globalConfig: globalConfig }),
691
691
  openMultiPosts && (react_1.default.createElement(MultiPosts_1.default, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
692
- isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (react_1.default.createElement("div", { style: {
692
+ (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (react_1.default.createElement("div", { style: {
693
693
  position: 'fixed',
694
694
  bottom: 0,
695
695
  left: 0,
@@ -95,6 +95,7 @@ export interface ISxpDataSourceContext {
95
95
  getAccount?: () => Promise<any>;
96
96
  accountSonsent?: (v: boolean) => Promise<boolean>;
97
97
  isDiyH5?: boolean;
98
+ pixelPvStatusRef?: any;
98
99
  }
99
100
  export declare const SxpDataSourceContext: React.Context<ISxpDataSourceContext>;
100
101
  export interface SxpDataSourceProviderProps {
@@ -909,7 +909,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
909
909
  refreshFeSession,
910
910
  getAccount,
911
911
  accountSonsent,
912
- isDiyH5
912
+ isDiyH5,
913
+ pixelPvStatusRef
913
914
  } }, isShowConsent ? (react_1.default.createElement(Consent_1.default, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
914
915
  rtcList,
915
916
  mutateLike: bffMutateLike,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.19.3",
3
+ "version": "1.19.5",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",