@bytebrand/fe-ui-core 4.1.169 → 4.1.171

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.1.169",
3
+ "version": "4.1.171",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -205,7 +205,7 @@ const MaterialAutocomplete: React.FC<IMaterialAutocompleteProps> = ({
205
205
  {...params}
206
206
  type={type}
207
207
  className={selectClassName}
208
- error={error.toString()}
208
+ error={error}
209
209
  disabled={disabled}
210
210
  required={required}
211
211
  size={size}
@@ -10,6 +10,7 @@ import { priceRatings, priceRatingConfig } from '../constants/price';
10
10
  import { GOOGLE_BUNDLE_COOKIES, HUNDRED } from '../constants/common';
11
11
  import { offers } from '../constants';
12
12
  import { FILTERS_IN_TITLE, MANUFACTURER_KEY, MAX_FILTERS_IN_TITLE, MODEL_KEY } from '../constants/Search';
13
+ import { SearchPage as SearchPageTranslate } from '../../locales/data';
13
14
 
14
15
  const PRICE_DEFAULT = DROP_DOWN_GROUP[PRICE].defaultValue;
15
16
 
@@ -398,7 +399,11 @@ export const getSupportedImageFormat = (IMAGE_URL: string, vehicleID: string, im
398
399
  return webpFeature ? `${vehicleImageURL}/${size}-cached.webp` : `${vehicleImageURL}/${size}-cached.jpeg`;
399
400
  };
400
401
 
401
- export function getChipFilterValue(chip: any, t: (key: string, options?: object) => string, language: string = 'de') {
402
+ export function getChipFilterValue(
403
+ chip: any,
404
+ t: (key: string, options?: object) => string = (phrase: string, _?: object) => _get(SearchPageTranslate(chip), phrase.replace(':', '.'), phrase),
405
+ language: string = 'de'
406
+ ) {
402
407
  let filterValue: string;
403
408
  let title: string;
404
409
  let from: string;
@@ -554,5 +559,5 @@ export const updateCookieList = () => {
554
559
  // grant FB cookies
555
560
  if (isFBGranted && typeof window.fbq === 'function') window.fbq('consent', 'grant');
556
561
  // grant Hotjar cookies
557
- if (isHotjarGranted && typeof window.grantHotjarCookieConsent() === 'function') window.grantHotjarCookieConsent();
562
+ if (isHotjarGranted && typeof window.grantHotjarCookieConsent === 'function') window.grantHotjarCookieConsent();
558
563
  };