@bytebrand/fe-ui-core 4.2.126 → 4.2.127
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/package.json
CHANGED
|
@@ -20,6 +20,7 @@ const PreviewCookieModal = ({ toggleModal, setModal, handleSentryInit } : IPrevi
|
|
|
20
20
|
|
|
21
21
|
const onDisableAll = () => {
|
|
22
22
|
localStorage.setItem('cookieConfig', JSON.stringify({'marketing':['test_cookie','tuuid','tuuid_lu','c','CMID','CMPS','CMPRO','uuid2','IDE','um','umeh','cf','cip','cnac','car','KRTBCOOKIE_97','IDSYNC','dpm','_kuid_','cto_bundle','visitor-id','data-c-ts','data-c','CMTS','mv_tokens','A3','mv_tokens_eu-v1','am_tokens','am_tokens_eu-v1','iteo'],'analytics':['PugT','locale','uid','callback','demdex','_fbp','hotjar','_clck','_clsk','_uetsid','_uetvid','sentry','analytics_storage','ad_storage','functionality_storage','personalization_storage','security_storage']}));
|
|
23
|
+
updateCookieList(handleSentryInit);
|
|
23
24
|
toggleModal();
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -555,6 +555,7 @@ export const updateCookieList = (handleSentryInit: () => void) => {
|
|
|
555
555
|
let isFacebookGranted = true; // Facebook Clarity _fbp _f
|
|
556
556
|
let isSentryGranted = true; // Sentry
|
|
557
557
|
let isHotjarGranted = true;
|
|
558
|
+
let isCriteoGranted = true;
|
|
558
559
|
const cookieConfig = JSON.parse(localStorage.getItem('cookieConfig')) || {};
|
|
559
560
|
|
|
560
561
|
const parsedUrl = new URL(window.location.href);
|
|
@@ -577,12 +578,14 @@ export const updateCookieList = (handleSentryInit: () => void) => {
|
|
|
577
578
|
isFacebookGranted = false;
|
|
578
579
|
} else if (cookie === 'sentry') {
|
|
579
580
|
isSentryGranted = false;
|
|
581
|
+
} else if (cookie === 'uid' && 'cto_bundle') {
|
|
582
|
+
isCriteoGranted = false;
|
|
580
583
|
}
|
|
581
584
|
});
|
|
582
585
|
});
|
|
583
586
|
|
|
584
587
|
// grant google cookies
|
|
585
|
-
if (typeof window.grantCookieConsent === 'function') {
|
|
588
|
+
if (isCriteoGranted && typeof window.grantCookieConsent === 'function') {
|
|
586
589
|
window.grantCookieConsent(cookieConsentList);
|
|
587
590
|
}
|
|
588
591
|
|