@bytebrand/fe-ui-core 4.2.86 → 4.2.88

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.86",
3
+ "version": "4.2.88",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -42,4 +42,9 @@
42
42
  font-size: 11px !important
43
43
 
44
44
  .outlinedBtn
45
- border: none !important
45
+ border: none !important
46
+
47
+ .outlinedBtnLeft
48
+ display: block !important;
49
+ min-width: auto !important;
50
+ margin-top: 10px !important;
@@ -11,21 +11,34 @@ interface IPreviewCookieModal {
11
11
  }
12
12
 
13
13
  const PreviewCookieModal = ({ toggleModal, setModal }: IPreviewCookieModal) => {
14
+ const environment = window.location.origin;
14
15
  const onAcceptAll = () => {
15
16
  localStorage.setItem('cookieConfig', JSON.stringify({}));
16
17
  updateCookieList();
17
18
  toggleModal();
18
19
  };
19
20
 
21
+ const onHandleRedirect = () => {
22
+ window.open(`${environment}/impressum/`, '_blank');
23
+ };
24
+
20
25
  return (
21
26
  <div className={styles.modalWrapper}>
22
27
  <IconSVG name='autodeLogo' customDimensions />
23
28
  <div className={styles.modalTitle}>Nach den Cookies geht die Fahrt weiter.</div>
24
- <div className={styles.modalContent}>Für ein bestmögliches Nutzererlebnis setzen wir Cookies und andere Technologien ein. Diese können Sie hier verwalten.</div>
29
+ <div className={styles.modalContent}>
30
+ Wenn Sie auf "Zustimmen" klicken, ermöglichen Sie uns über Cookies das Nutzerverhalten
31
+ für alle User zu optimieren und Ihnen individuelle Empfehlungen auch auf Drittseiten anzuzeigen.
32
+ Durch die Zustimmung erteilen Sie uns Ihre ausdrückliche Einwilligung.
33
+ Über "Anpassen" können Sie Ihre Einwilligungen individuell anpassen.
34
+ Dies ist auch später jederzeit im Bereich "Cookie-Richtlinie" möglich.
35
+ Die relevante Datenschutzerklärung finden Sie <a href={`${environment}/datenschutz/`} target='_blank' style={{ color: '#005ccb'}}>hier</a>.
36
+ </div>
25
37
  <div className={styles.buttonsContainer}>
26
- <Button onClick={() => setModal('MANAGE_COOKIE_MODAL')} className={classNames(styles.modalBtn, styles.outlinedBtn)} variant='outlined'>Cookie-Einstellungen</Button>
38
+ <Button onClick={() => setModal('MANAGE_COOKIE_MODAL')} className={classNames(styles.modalBtn, styles.outlinedBtn)} variant='outlined'>Anpassen</Button>
27
39
  <Button onClick={onAcceptAll} className={styles.modalBtn}>zustimmen</Button>
28
40
  </div>
41
+ <Button onClick={onHandleRedirect} className={classNames(styles.modalBtn, styles.outlinedBtn, styles.outlinedBtnLeft)} variant='outlined'>Impressum</Button>
29
42
  </div>
30
43
  );
31
44
  };
@@ -387,7 +387,7 @@ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
387
387
  error: isErrorAlternativeField,
388
388
  onChange: onAlternativeRedirect
389
389
  };
390
- console.log('renderxxxxxxx', paramsFromQuery.autoDeId);
390
+
391
391
  return (
392
392
  <div className={styles.filters}>
393
393
  {isAlternative ? (
@@ -19,8 +19,7 @@ export const GOOGLE_BUNDLE_COOKIES = {
19
19
  /* tslint:disable */
20
20
  export const COOKIE_SCHEMA = {
21
21
  necessary: {
22
- gdpr: { name: 'DSGVO' },
23
- __cfruid: { name: 'Cloudflare ' },
22
+ __cfruid: { name: 'Cloudflare' },
24
23
  cf_chl_2: { name: 'Cloudflare für Webverkehr zu identifizieren' },
25
24
  cf_chl_rc_ni: { name: 'Cloudflare für den internen Gebrauch' },
26
25
  ['next-i18next']: { name: 'Spracheinstellungen' },
@@ -35,7 +34,7 @@ export const COOKIE_SCHEMA = {
35
34
  callback: { name: 'callback' },
36
35
  demdex: { name: 'demdex' },
37
36
  vuid: { name: 'Vimeo' },
38
- // _fbp: { name: 'Facebook' },
37
+ _fbp: { name: 'Facebook' },
39
38
  hotjar: { name: 'Hotjar-Analytics'},
40
39
  _clck: { name: 'Clarity' },
41
40
  _clsk: { name: 'Clarity' },
@@ -20,6 +20,7 @@ declare global {
20
20
  grantHotjarCookieConsent?: () => void;
21
21
  grantCookieConsentClarity?: () => void;
22
22
  grantCookieConsentMicrosoft?: () => void;
23
+ grantCookieConsentFacebook?: () => void;
23
24
  grantCookieConsent?: (list: string[]) => void;
24
25
  allowGoogle?: () => void;
25
26
  }
@@ -549,6 +550,7 @@ export const updateCookieList = () => {
549
550
  let isHomeGoogleGranted = true; // home page google cookie
550
551
  let isMicrosoftGranted = true; // Microsoft _uetvid _uetsid
551
552
  let isMicrosoftClarity = true; // Microsoft Clarity _clck _clsk
553
+ let isFacebookGranted = true; // Facebook Clarity _fbp _f
552
554
  let isHotjarGranted = true;
553
555
  const cookieConfig = JSON.parse(localStorage.getItem('cookieConfig')) || {};
554
556
 
@@ -566,11 +568,14 @@ export const updateCookieList = () => {
566
568
  else if (cookie === 'hotjar') isHotjarGranted = false;
567
569
  else if (cookie === '_uetvid' || cookie === '_uetsid') isMicrosoftGranted = false;
568
570
  else if (cookie === '_clck' || cookie === '_clsk') isMicrosoftClarity = false;
571
+ else if (cookie === '_fbp') isFacebookGranted = false;
569
572
  });
570
573
  });
574
+
571
575
  // grant google cookies
572
- if (typeof window.grantCookieConsent === 'function')
576
+ if (typeof window.grantCookieConsent === 'function') {
573
577
  window.grantCookieConsent(cookieConsentList);
578
+ };
574
579
 
575
580
  // grant Microsoft cookies
576
581
  if (isMicrosoftGranted && typeof window.grantCookieConsentMicrosoft === 'function') {
@@ -582,6 +587,11 @@ export const updateCookieList = () => {
582
587
  window.grantCookieConsentClarity();
583
588
  }
584
589
 
590
+ // grant Facebook cookies
591
+ if (!isFacebookGranted && typeof window.grantCookieConsentFacebook === 'function') {
592
+ window.grantCookieConsentFacebook();
593
+ };
594
+
585
595
  if (isHomeGoogleGranted && typeof window.allowGoogle === 'function') {
586
596
  window.allowGoogle();
587
597
  }