@bytebrand/fe-ui-core 4.1.146 → 4.1.148

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/common.ts CHANGED
@@ -27,6 +27,7 @@ export { default as OrderOverviewItem } from './source/components/Checkout/Order
27
27
  export { default as Image } from './source/components/_common/Image/Image';
28
28
  export { default as VehicleSlider } from './source/components/_common/VehicleSlider/VehicleSlider';
29
29
  export { default as VehicleSliderForSRL } from './source/components/_common/VehicleSlider/VehicleSliderForSRL';
30
+ export { default as VehicleProperty } from './source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty';
30
31
  export { default as VehicleSmallCard } from './source/components/VehicleSmallCard/VehicleSmallCard';
31
32
  export { default as OfferPanel } from './source/components/OfferPanel/OfferPanel';
32
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.146",
3
+ "version": "4.1.148",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -96,6 +96,7 @@
96
96
  width: 1.5rem;
97
97
  height: auto;
98
98
  fill: $skyBlue
99
+ margin-left: 5px
99
100
 
100
101
  .ourPriceBlock
101
102
  display: flex;
@@ -107,4 +108,9 @@
107
108
  cursor: pointer;
108
109
 
109
110
  .editIconBlock
110
- cursor: pointer;
111
+ cursor: pointer;
112
+
113
+ .editFieldWrapper
114
+ display: flex
115
+ align-items: center
116
+
@@ -20,7 +20,6 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
20
20
  const inputRef = useRef(null);
21
21
 
22
22
  const handleSubmit = () => {
23
- setPriceUpdating(false);
24
23
  setNewPrice(Math.max(currentSalesPrice, newPrice));
25
24
  onCurrentSalesPriceChange(Math.max(currentSalesPrice, newPrice));
26
25
  };
@@ -28,7 +27,8 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
28
27
  const handlePriceUpdating = () => {
29
28
  if (isPriceUpdating) {
30
29
  handleSubmit();
31
- } else {
30
+ setPriceUpdating(false);
31
+ } else if (!isPriceUpdating) {
32
32
  setPriceUpdating(true);
33
33
  setTimeout(
34
34
  () => {
@@ -47,6 +47,7 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
47
47
  const onEnterSubmit = (e: any) => {
48
48
  if (e.key === 'Enter') {
49
49
  handleSubmit();
50
+ setPriceUpdating(false);
50
51
  }
51
52
  };
52
53
 
@@ -16,12 +16,15 @@ 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' }, _hjFirstSeen: { name: 'Hotjar' }, _hjIncludedInSessionSample: { name: 'Hotjar' }, _hjIncludedInPageviewSample: { name: 'Hotjar' }, _hjAbsoluteSessionInProgress: { name: 'Hotjar' }, vuid: { name: 'Vimeo' },
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
20
23
  // _gcl_au: { name: 'Google Tag Manager' }, _ga: { name: 'Google Analytics' }, _gid: { name: 'Google Analytics' }, ['_gat_UA-31842-13']: { name: 'Google Analytics' },
21
24
  ...GOOGLE_BUNDLE_COOKIES },
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' },
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' },
23
26
  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' },
24
- ['am_tokens_eu-v1']: { name: 'PubMatic' }, _hjSessionUser_2590373: { name: 'PubMatic' }, iteo: { name: 'PubMatic' }, _hjSession_2590373: { name: 'PubMatic' }, MyVerivoxAuth: { name: 'PubMatic' }, VxCheckAuth: { name: 'PubMatic' }}
27
+ ['am_tokens_eu-v1']: { name: 'PubMatic' }, iteo: { name: 'PubMatic' }, MyVerivoxAuth: { name: 'PubMatic' }, VxCheckAuth: { name: 'PubMatic' }}
25
28
  };
26
29
 
27
30
 
@@ -533,6 +533,7 @@ 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;
536
537
  const cookieConfig = JSON.parse(localStorage.getItem('cookieConfig')) || {};
537
538
 
538
539
  const parsedUrl = new URL(window.location.href);
@@ -544,10 +545,13 @@ export const updateCookieList = () => {
544
545
  if (cookieConsentList.includes(cookie)) cookieConsentList = cookieConsentList.filter(i => i !== cookie); // deny google cookie consent for _gcl_au, _ga, _gid, _gat_UA-31842-13, etc
545
546
  // fb
546
547
  else if (cookie === '_fbp') isFBGranted = false;
548
+ else if (cookie === 'hotjar') isHotjarGranted = false;
547
549
  });
548
550
  });
549
551
  // grant google cookies
550
552
  window.grantCookieConsent(cookieConsentList);
551
553
  // grant FB cookies
552
554
  if (isFBGranted) window.fbq('consent', 'grant');
555
+ // grant Hotjar cookies
556
+ if (isHotjarGranted) window.grantHotjarCookieConsent();
553
557
  };
@@ -609,7 +609,7 @@ const getDecoratedProps = (
609
609
  icon: 'fuelConsumption',
610
610
  title: t('vehicleProps:title.consumptionPowerCombined'),
611
611
  get value() {
612
- const consumptionPowerCombined = car.consumption.consumptionCombined;
612
+ const consumptionPowerCombined = car.consumption.consumptionPowerCombined;
613
613
  const consumptionUnit = car.consumption.consumptionUnit || 'consumption_consumptionUnit_l';
614
614
  const translatedUnit = t(`cbd:${consumptionUnit}`);
615
615
  return Number.isFinite(consumptionPowerCombined)