|
| 1 | +import { extractHeadingText } from '../../src/model/enhanceProductElement'; |
1 | 2 | import type { ProductBlockElement } from '../../src/types/content'; |
2 | 3 | import { productImage } from './productImage'; |
3 | 4 |
|
4 | 5 | export const exampleProduct: ProductBlockElement = { |
5 | 6 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
6 | 7 | elementId: 'b1f6e8e2-3f3a-4f0c-8d1e-5f3e3e3e3e3e', |
7 | 8 | primaryHeadingHtml: 'Best overall', |
| 9 | + primaryHeadingText: extractHeadingText('Best overall'), |
8 | 10 | secondaryHeadingHtml: 'Bosch Sky Kettle', |
9 | 11 | brandName: 'Bosch', |
10 | 12 | productName: 'Sky Kettle', |
@@ -246,6 +248,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
246 | 248 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
247 | 249 | elementId: 'b85ec38b-091b-40c2-8902-a9114df3cfe3', |
248 | 250 | primaryHeadingHtml: '<em>Best running watch for beginners:</em>', |
| 251 | + primaryHeadingText: extractHeadingText( |
| 252 | + '<em>Best running watch for beginners:</em>', |
| 253 | + ), |
249 | 254 | secondaryHeadingHtml: 'Garmin Forerunner 55', |
250 | 255 | brandName: 'Garmin', |
251 | 256 | productName: 'Forerunner 55', |
@@ -282,6 +287,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
282 | 287 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
283 | 288 | elementId: '1cb32565-86fa-4d95-a944-de49a065e71e', |
284 | 289 | primaryHeadingHtml: '<em>Best budget running watch:</em>', |
| 290 | + primaryHeadingText: extractHeadingText( |
| 291 | + '<em>Best budget running watch:</em>', |
| 292 | + ), |
285 | 293 | secondaryHeadingHtml: 'Suunto Run', |
286 | 294 | brandName: 'Suunto', |
287 | 295 | productName: 'Run', |
@@ -317,6 +325,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
317 | 325 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
318 | 326 | elementId: '43670bc5-00f2-460d-853e-3e6e0bf205c5', |
319 | 327 | primaryHeadingHtml: '<em>Best mid-range running watch:</em>', |
| 328 | + primaryHeadingText: extractHeadingText( |
| 329 | + '<em>Best mid-range running watch:</em>', |
| 330 | + ), |
320 | 331 | secondaryHeadingHtml: 'Coros Pace Pro', |
321 | 332 | brandName: 'Coros', |
322 | 333 | productName: 'Pace Pro', |
@@ -352,6 +363,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
352 | 363 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
353 | 364 | elementId: '830b3256-bd3a-4fc2-a4a3-6d42fcf0467f', |
354 | 365 | primaryHeadingHtml: '<em>Best-looking mid-range running watch:</em>', |
| 366 | + primaryHeadingText: extractHeadingText( |
| 367 | + '<em>Best-looking mid-range running watch:</em>', |
| 368 | + ), |
355 | 369 | secondaryHeadingHtml: 'Suunto Race 2', |
356 | 370 | brandName: 'Suunto', |
357 | 371 | productName: 'Race 2', |
@@ -387,6 +401,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
387 | 401 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
388 | 402 | elementId: '407575ba-5898-4995-a94b-f7ab624c60de', |
389 | 403 | primaryHeadingHtml: '<em>The best running watch money can buy:</em>', |
| 404 | + primaryHeadingText: extractHeadingText( |
| 405 | + '<em>The best running watch money can buy:</em>', |
| 406 | + ), |
390 | 407 | secondaryHeadingHtml: 'Garmin Forerunner 970', |
391 | 408 | brandName: 'Garmin', |
392 | 409 | productName: 'Forerunner 970', |
@@ -422,6 +439,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
422 | 439 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
423 | 440 | elementId: 'd7de82bb-fd1c-4efb-a54d-9844156db9e5', |
424 | 441 | primaryHeadingHtml: '<em>Best running watch for battery life:</em>', |
| 442 | + primaryHeadingText: extractHeadingText( |
| 443 | + '<em>Best running watch for battery life:</em>', |
| 444 | + ), |
425 | 445 | secondaryHeadingHtml: 'Garmin Enduro 3', |
426 | 446 | brandName: 'Garmin', |
427 | 447 | productName: 'Enduro 3', |
@@ -457,6 +477,9 @@ export const exampleAtAGlanceProductArray: ProductBlockElement[] = [ |
457 | 477 | _type: 'model.dotcomrendering.pageElements.ProductBlockElement', |
458 | 478 | elementId: 'c75a0b5a-929e-4550-a146-ccc080c76655', |
459 | 479 | primaryHeadingHtml: '<em>Best running watch with LTE/satellite:</em>', |
| 480 | + primaryHeadingText: extractHeadingText( |
| 481 | + '<em>Best running watch with LTE/satellite:</em>', |
| 482 | + ), |
460 | 483 | secondaryHeadingHtml: 'Garmin Fenix 8 Pro', |
461 | 484 | brandName: 'Garmin', |
462 | 485 | productName: 'Fenix 8 Pro', |
|
0 commit comments