@bytebrand/fe-ui-core-autobahn 1.0.215 → 1.0.216
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/locales/de/autobahn.json +0 -1
- package/locales/en/autobahn.json +0 -1
- package/package.json +30 -30
- package/vdp/VdpModules.tsx +13 -4
package/locales/de/autobahn.json
CHANGED
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
"title": "Das sagen unsere Kunden",
|
|
145
145
|
"ratingCount": "{{count}} Bewertung",
|
|
146
146
|
"ratingCount_plural": "{{count}} Bewertungen",
|
|
147
|
-
"teaserCount": "{{count}} Google-Bewertungen",
|
|
148
147
|
"sourceReview": "{{portal}}-Bewertung",
|
|
149
148
|
"sources": {
|
|
150
149
|
"open": "So entsteht unsere Bewertung",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
"title": "What our customers say",
|
|
145
145
|
"ratingCount": "{{count}} rating",
|
|
146
146
|
"ratingCount_plural": "{{count}} ratings",
|
|
147
|
-
"teaserCount": "{{count}} Google reviews",
|
|
148
147
|
"sourceReview": "{{portal}} review",
|
|
149
148
|
"sources": {
|
|
150
149
|
"open": "How our rating is calculated",
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"peerDependencies": {
|
|
8
|
-
"react": "^18.0.0",
|
|
9
|
-
"react-dom": "^18.0.0"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@bytebrand/car-schema-selectors": "^2.0.7",
|
|
13
|
-
"@bytebrand/fe-financing": "^5.14.30",
|
|
14
|
-
"classnames": "2.2.6",
|
|
15
|
-
"clsx": "^2.1.1",
|
|
16
|
-
"d3-format": "1.4.5",
|
|
17
|
-
"js-cookie": "^2.2.0",
|
|
18
|
-
"lodash": "^4.17.21",
|
|
19
|
-
"lucide-react": "^0.288.0",
|
|
20
|
-
"mobx-react": "^7.6.0",
|
|
21
|
-
"moment": "^2.29.1",
|
|
22
|
-
"qs": "^6.6.0",
|
|
23
|
-
"react-device-detect": "^2.1.2",
|
|
24
|
-
"react-grid-system": "^5.0.2",
|
|
25
|
-
"react-lazyload": "^3.2.0",
|
|
26
|
-
"react-scroll": "^1.9.3",
|
|
27
|
-
"react-slick": "^0.29.0",
|
|
28
|
-
"slick-carousel": "1.8.1"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
+
"version": "1.0.216",
|
|
4
|
+
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"react": "^18.0.0",
|
|
9
|
+
"react-dom": "^18.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@bytebrand/car-schema-selectors": "^2.0.7",
|
|
13
|
+
"@bytebrand/fe-financing": "^5.14.30",
|
|
14
|
+
"classnames": "2.2.6",
|
|
15
|
+
"clsx": "^2.1.1",
|
|
16
|
+
"d3-format": "1.4.5",
|
|
17
|
+
"js-cookie": "^2.2.0",
|
|
18
|
+
"lodash": "^4.17.21",
|
|
19
|
+
"lucide-react": "^0.288.0",
|
|
20
|
+
"mobx-react": "^7.6.0",
|
|
21
|
+
"moment": "^2.29.1",
|
|
22
|
+
"qs": "^6.6.0",
|
|
23
|
+
"react-device-detect": "^2.1.2",
|
|
24
|
+
"react-grid-system": "^5.0.2",
|
|
25
|
+
"react-lazyload": "^3.2.0",
|
|
26
|
+
"react-scroll": "^1.9.3",
|
|
27
|
+
"react-slick": "^0.29.0",
|
|
28
|
+
"slick-carousel": "1.8.1"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/vdp/VdpModules.tsx
CHANGED
|
@@ -3308,10 +3308,16 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
|
|
|
3308
3308
|
// ---------------------------------------------------------------------------
|
|
3309
3309
|
|
|
3310
3310
|
export interface ReviewsTeaserProps {
|
|
3311
|
-
/**
|
|
3311
|
+
/** number of reviews loaded on the page — the teaser only renders when there are any. */
|
|
3312
3312
|
count: number;
|
|
3313
|
-
/**
|
|
3313
|
+
/** site-wide rating average — same real aggregate CustomerRatings displays. */
|
|
3314
3314
|
average: number;
|
|
3315
|
+
/**
|
|
3316
|
+
* Site-wide review count (Bewertung Welt `summary`, all Google + Trustpilot reviews) — the
|
|
3317
|
+
* same figure the CustomerRatings header shows ("873 Bewertungen"), not the few loaded ones.
|
|
3318
|
+
* Falls back to `count` when unset.
|
|
3319
|
+
*/
|
|
3320
|
+
total?: number;
|
|
3315
3321
|
/** i18n function (drilled from the page). */
|
|
3316
3322
|
t: TranslationFunction;
|
|
3317
3323
|
}
|
|
@@ -3321,8 +3327,9 @@ export interface ReviewsTeaserProps {
|
|
|
3321
3327
|
* and the highlights card (Figma "Google Review Teaser / Card"). Scrolls the CustomerRatings
|
|
3322
3328
|
* section into view on tap; renders nothing when there are no real reviews to jump to.
|
|
3323
3329
|
*/
|
|
3324
|
-
export const ReviewsTeaser: React.FunctionComponent<ReviewsTeaserProps> = ({ count, average, t }) => {
|
|
3330
|
+
export const ReviewsTeaser: React.FunctionComponent<ReviewsTeaserProps> = ({ count, average, total, t }) => {
|
|
3325
3331
|
if (!count) return null;
|
|
3332
|
+
const shownCount = total != null && total > 0 ? total : count;
|
|
3326
3333
|
const go = (): void => {
|
|
3327
3334
|
if (typeof document === 'undefined') return;
|
|
3328
3335
|
const el = document.getElementById('vdp-bewertungen');
|
|
@@ -3377,7 +3384,9 @@ export const ReviewsTeaser: React.FunctionComponent<ReviewsTeaserProps> = ({ cou
|
|
|
3377
3384
|
color: '#1D2A38',
|
|
3378
3385
|
}}
|
|
3379
3386
|
>
|
|
3380
|
-
{
|
|
3387
|
+
{/* same wording + figure as the reviews section header below ("873 Bewertungen") —
|
|
3388
|
+
the reviews come from Google AND Trustpilot, so no "Google-" here */}
|
|
3389
|
+
{t('autobahn:reviews.ratingCount', { count: shownCount })}
|
|
3381
3390
|
</span>
|
|
3382
3391
|
</span>
|
|
3383
3392
|
<Icon name="chevron-right" size={24} color="var(--md-on-surface-variant)" style={{ flex: 'none' }} />
|