@@ -35,6 +35,7 @@ type Props = {
3535 collectionId : number ;
3636 /** Feature flag for the labs redesign work */
3737 showLabsRedesign ?: boolean ;
38+ enableHls ?: boolean ;
3839} ;
3940
4041type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard' ;
@@ -256,6 +257,7 @@ type SplashCardLayoutProps = {
256257 collectionId : number ;
257258 /** Feature flag for the labs redesign work */
258259 showLabsRedesign ?: boolean ;
260+ enableHls ?: boolean ;
259261} ;
260262
261263const SplashCardLayout = ( {
@@ -269,6 +271,7 @@ const SplashCardLayout = ({
269271 containerLevel,
270272 collectionId,
271273 showLabsRedesign,
274+ enableHls,
272275} : SplashCardLayoutProps ) => {
273276 const card = cards [ 0 ] ;
274277 if ( ! card ) return null ;
@@ -354,6 +357,7 @@ const SplashCardLayout = ({
354357 subtitleSize = { subtitleSize }
355358 headlinePosition = { card . showLivePlayable ? 'outer' : 'inner' }
356359 showLabsRedesign = { showLabsRedesign }
360+ enableHls = { enableHls }
357361 />
358362 </ LI >
359363 </ UL >
@@ -421,6 +425,7 @@ type FullWidthCardLayoutProps = {
421425 collectionId : number ;
422426 /** Feature flag for the labs redesign work */
423427 showLabsRedesign ?: boolean ;
428+ enableHls ?: boolean ;
424429} ;
425430
426431const FullWidthCardLayout = ( {
@@ -435,6 +440,7 @@ const FullWidthCardLayout = ({
435440 containerLevel,
436441 collectionId,
437442 showLabsRedesign,
443+ enableHls,
438444} : FullWidthCardLayoutProps ) => {
439445 const card = cards [ 0 ] ;
440446 if ( ! card ) return null ;
@@ -511,6 +517,7 @@ const FullWidthCardLayout = ({
511517 showKickerImage = { card . format . design === ArticleDesign . Audio }
512518 showLabsRedesign = { showLabsRedesign }
513519 subtitleSize = { subtitleSize }
520+ enableHls = { enableHls }
514521 />
515522 </ LI >
516523 </ UL >
@@ -530,6 +537,7 @@ type HalfWidthCardLayoutProps = {
530537 containerLevel : DCRContainerLevel ;
531538 /** Feature flag for the labs redesign work */
532539 showLabsRedesign ?: boolean ;
540+ enableHls ?: boolean ;
533541} ;
534542
535543const HalfWidthCardLayout = ( {
@@ -544,6 +552,7 @@ const HalfWidthCardLayout = ({
544552 isLastRow,
545553 containerLevel,
546554 showLabsRedesign,
555+ enableHls,
547556} : HalfWidthCardLayoutProps ) => {
548557 if ( cards . length === 0 ) return null ;
549558
@@ -599,6 +608,7 @@ const HalfWidthCardLayout = ({
599608 headlineSizes = { undefined }
600609 canPlayInline = { false }
601610 showLabsRedesign = { showLabsRedesign }
611+ enableHls = { enableHls }
602612 />
603613 </ LI >
604614 ) ;
@@ -617,6 +627,7 @@ export const FlexibleGeneral = ({
617627 containerLevel = 'Primary' ,
618628 collectionId,
619629 showLabsRedesign,
630+ enableHls,
620631} : Props ) => {
621632 const splash = [ ...groupedTrails . splash ] . slice ( 0 , 1 ) . map ( ( snap ) => ( {
622633 ...snap ,
@@ -646,6 +657,7 @@ export const FlexibleGeneral = ({
646657 containerLevel = { containerLevel }
647658 collectionId = { collectionId }
648659 showLabsRedesign = { showLabsRedesign }
660+ enableHls = { enableHls }
649661 />
650662 ) }
651663 { groupedCards . map ( ( row , i ) => {
@@ -665,6 +677,7 @@ export const FlexibleGeneral = ({
665677 containerLevel = { containerLevel }
666678 collectionId = { collectionId }
667679 showLabsRedesign = { showLabsRedesign }
680+ enableHls = { enableHls }
668681 />
669682 ) ;
670683
@@ -685,6 +698,7 @@ export const FlexibleGeneral = ({
685698 isLastRow = { i === groupedCards . length - 1 }
686699 containerLevel = { containerLevel }
687700 showLabsRedesign = { showLabsRedesign }
701+ enableHls = { enableHls }
688702 />
689703 ) ;
690704 }
0 commit comments