pb-sxp-ui 1.15.32 → 1.15.33
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 +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -0
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +5 -0
- package/lib/core/context/SxpDataSourceProvider.js +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -674,6 +674,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
674
674
|
const [playbookType, setPlaybookType] = React.useState();
|
675
675
|
const [chatlabsId, setChatlabsId] = React.useState();
|
676
676
|
const finalPageData = React.useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
|
677
|
+
const pixelPvStatusRef = React.useRef(false);
|
677
678
|
const isShowConsent = React.useMemo(() => {
|
678
679
|
var _a, _b, _c, _d;
|
679
680
|
return (((((_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.privacy_necessity) && !isAgreePolicy && !isEditor) || isOpenConsent) &&
|
@@ -1037,6 +1038,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
1037
1038
|
}
|
1038
1039
|
}
|
1039
1040
|
if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
|
1041
|
+
if (!pixelPvStatusRef.current) {
|
1042
|
+
pixelPvStatusRef.current = true;
|
1043
|
+
return;
|
1044
|
+
}
|
1040
1045
|
const currentUrl = window.location.href;
|
1041
1046
|
const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
|
1042
1047
|
history.pushState({ path: newUrl }, '', newUrl);
|