@bytebrand/fe-ui-core 4.1.145 → 4.1.146
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
|
@@ -16,15 +16,12 @@ export const GOOGLE_BUNDLE_COOKIES = {
|
|
|
16
16
|
export const COOKIE_SCHEMA = {
|
|
17
17
|
necessary: { gdpr: { name: 'DSGVO' }, __cfruid: { name: 'Cloudflare ' }, cf_chl_2: { name: 'Cloudflare für Webverkehr zu identifizieren' }, cf_chl_rc_ni: { name: 'Cloudflare für den internen Gebrauch' }, ['next-i18next']: { name: 'Spracheinstellungen' }, _cfuvid: { name: 'Cloudflare WAF' }, cf_chl_prog: { name: 'Cloudflare für JS' }, __cf_bm: { name: 'Cloudflare bot' } },
|
|
18
18
|
analytics: { PugT: { name: 'PubMatic' }, locale: { name: 'Facebook' },
|
|
19
|
-
uid: { name: 'criteo' }, callback: { name: 'callback' }, demdex: { name: 'demdex' }, vuid: { name: 'Vimeo' },
|
|
20
|
-
_fbp: { name: 'Facebook' },
|
|
21
|
-
hotjar: { name: 'Hotjar-Analytics'},
|
|
22
|
-
// _hjFirstSeen: { name: 'Hotjar' }, _hjIncludedInSessionSample: { name: 'Hotjar' }, _hjIncludedInPageviewSample: { name: 'Hotjar' }, _hjAbsoluteSessionInProgress: { name: 'Hotjar' }, _hjSession_2590373: { name: 'Hotjar' }, _hjSessionUser_2590373: { name: 'Hotjar' }, // Hotjar Analytics
|
|
19
|
+
uid: { name: 'criteo' }, callback: { name: 'callback' }, demdex: { name: 'demdex' }, _hjFirstSeen: { name: 'Hotjar' }, _hjIncludedInSessionSample: { name: 'Hotjar' }, _hjIncludedInPageviewSample: { name: 'Hotjar' }, _hjAbsoluteSessionInProgress: { name: 'Hotjar' }, vuid: { name: 'Vimeo' },
|
|
23
20
|
// _gcl_au: { name: 'Google Tag Manager' }, _ga: { name: 'Google Analytics' }, _gid: { name: 'Google Analytics' }, ['_gat_UA-31842-13']: { name: 'Google Analytics' },
|
|
24
21
|
...GOOGLE_BUNDLE_COOKIES },
|
|
25
|
-
marketing: { test_cookie: { name: 'PubMatic' }, tuuid: { name: 'PubMatic' }, tuuid_lu: { name: 'PubMatic' }, c: { name: 'PubMatic' }, CMID: { name: 'PubMatic' }, CMPS: { name: 'PubMatic' }, CMPRO: { name: 'PubMatic' }, uuid2: { name: 'PubMatic' }, IDE: { name: 'PubMatic' }, um: { name: 'PubMatic' }, umeh: { name: 'PubMatic' }, cf: { name: 'PubMatic' }, cip: { name: 'PubMatic' }, cnac: { name: 'PubMatic' }, car: { name: 'PubMatic' },
|
|
22
|
+
marketing: { _fbp: { name: 'PubMatic' }, test_cookie: { name: 'PubMatic' }, tuuid: { name: 'PubMatic' }, tuuid_lu: { name: 'PubMatic' }, c: { name: 'PubMatic' }, CMID: { name: 'PubMatic' }, CMPS: { name: 'PubMatic' }, CMPRO: { name: 'PubMatic' }, uuid2: { name: 'PubMatic' }, IDE: { name: 'PubMatic' }, um: { name: 'PubMatic' }, umeh: { name: 'PubMatic' }, cf: { name: 'PubMatic' }, cip: { name: 'PubMatic' }, cnac: { name: 'PubMatic' }, car: { name: 'PubMatic' },
|
|
26
23
|
KRTBCOOKIE_97: { name: 'PubMatic' }, IDSYNC: { name: 'PubMatic' }, dpm: { name: 'PubMatic' }, _kuid_: { name: 'PubMatic' }, fr: { name: 'PubMatic' }, cto_bundle: { name: 'PubMatic' }, ['visitor-id']: { name: 'PubMatic' }, ['data-c-ts']: { name: 'PubMatic' }, ['data-c']: { name: 'PubMatic' }, CMTS: { name: 'PubMatic' }, ['mv_tokens']: { name: 'PubMatic' }, A3: { name: 'PubMatic' }, ['mv_tokens_eu-v1']: { name: 'PubMatic' }, am_tokens: { name: 'PubMatic' },
|
|
27
|
-
['am_tokens_eu-v1']: { name: 'PubMatic' }, iteo: { name: 'PubMatic' }, MyVerivoxAuth: { name: 'PubMatic' }, VxCheckAuth: { name: 'PubMatic' }}
|
|
24
|
+
['am_tokens_eu-v1']: { name: 'PubMatic' }, _hjSessionUser_2590373: { name: 'PubMatic' }, iteo: { name: 'PubMatic' }, _hjSession_2590373: { name: 'PubMatic' }, MyVerivoxAuth: { name: 'PubMatic' }, VxCheckAuth: { name: 'PubMatic' }}
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
|
|
@@ -533,7 +533,6 @@ export function setUtmParameters() {
|
|
|
533
533
|
export const updateCookieList = () => {
|
|
534
534
|
let cookieConsentList = Object.keys(GOOGLE_BUNDLE_COOKIES);
|
|
535
535
|
let isFBGranted = true;
|
|
536
|
-
let isHotjarGranted = true;
|
|
537
536
|
const cookieConfig = JSON.parse(localStorage.getItem('cookieConfig')) || {};
|
|
538
537
|
|
|
539
538
|
const parsedUrl = new URL(window.location.href);
|
|
@@ -545,13 +544,10 @@ export const updateCookieList = () => {
|
|
|
545
544
|
if (cookieConsentList.includes(cookie)) cookieConsentList = cookieConsentList.filter(i => i !== cookie); // deny google cookie consent for _gcl_au, _ga, _gid, _gat_UA-31842-13, etc
|
|
546
545
|
// fb
|
|
547
546
|
else if (cookie === '_fbp') isFBGranted = false;
|
|
548
|
-
else if (cookie === 'hotjar') isHotjarGranted = false;
|
|
549
547
|
});
|
|
550
548
|
});
|
|
551
549
|
// grant google cookies
|
|
552
550
|
window.grantCookieConsent(cookieConsentList);
|
|
553
551
|
// grant FB cookies
|
|
554
552
|
if (isFBGranted) window.fbq('consent', 'grant');
|
|
555
|
-
// grant Hotjar cookies
|
|
556
|
-
if (isHotjarGranted) window.grantHotjarCookieConsent();
|
|
557
553
|
};
|