@@ -32,6 +32,8 @@ type Props = {
3232 aspectRatio : AspectRatio ;
3333 containerLevel ?: DCRContainerLevel ;
3434 collectionId : number ;
35+ isInLoopingVideoTestVariant ?: boolean ;
36+ isInLoopingVideoTestControl ?: boolean ;
3537} ;
3638
3739type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard' ;
@@ -241,6 +243,8 @@ type SplashCardLayoutProps = {
241243 isLastRow : boolean ;
242244 containerLevel : DCRContainerLevel ;
243245 collectionId : number ;
246+ isInLoopingVideoTestVariant ?: boolean ;
247+ isInLoopingVideoTestControl ?: boolean ;
244248} ;
245249
246250const SplashCardLayout = ( {
@@ -253,6 +257,8 @@ const SplashCardLayout = ({
253257 isLastRow,
254258 containerLevel,
255259 collectionId,
260+ isInLoopingVideoTestVariant = false ,
261+ isInLoopingVideoTestControl = false ,
256262} : SplashCardLayoutProps ) => {
257263 const card = cards [ 0 ] ;
258264 if ( ! card ) return null ;
@@ -333,6 +339,8 @@ const SplashCardLayout = ({
333339 trailTextSize = { trailTextSize }
334340 canPlayInline = { true }
335341 showKickerImage = { card . format . design === ArticleDesign . Audio }
342+ isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
343+ isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
336344 />
337345 </ LI >
338346 </ UL >
@@ -395,6 +403,8 @@ type FullWidthCardLayoutProps = {
395403 isLastRow : boolean ;
396404 containerLevel : DCRContainerLevel ;
397405 collectionId : number ;
406+ isInLoopingVideoTestVariant ?: boolean ;
407+ isInLoopingVideoTestControl ?: boolean ;
398408} ;
399409
400410const FullWidthCardLayout = ( {
@@ -408,6 +418,8 @@ const FullWidthCardLayout = ({
408418 isLastRow,
409419 containerLevel,
410420 collectionId,
421+ isInLoopingVideoTestVariant = false ,
422+ isInLoopingVideoTestControl = false ,
411423} : FullWidthCardLayoutProps ) => {
412424 const card = cards [ 0 ] ;
413425 if ( ! card ) return null ;
@@ -480,6 +492,8 @@ const FullWidthCardLayout = ({
480492 liveUpdatesPosition = { liveUpdatesPosition }
481493 canPlayInline = { true }
482494 showKickerImage = { card . format . design === ArticleDesign . Audio }
495+ isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
496+ isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
483497 />
484498 </ LI >
485499 </ UL >
@@ -580,6 +594,8 @@ export const FlexibleGeneral = ({
580594 aspectRatio,
581595 containerLevel = 'Primary' ,
582596 collectionId,
597+ isInLoopingVideoTestVariant = false ,
598+ isInLoopingVideoTestControl = false ,
583599} : Props ) => {
584600 const splash = [ ...groupedTrails . splash ] . slice ( 0 , 1 ) . map ( ( snap ) => ( {
585601 ...snap ,
@@ -608,6 +624,8 @@ export const FlexibleGeneral = ({
608624 isLastRow = { cards . length === 0 }
609625 containerLevel = { containerLevel }
610626 collectionId = { collectionId }
627+ isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
628+ isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
611629 />
612630 ) }
613631 { groupedCards . map ( ( row , i ) => {
@@ -626,6 +644,12 @@ export const FlexibleGeneral = ({
626644 isLastRow = { i === groupedCards . length - 1 }
627645 containerLevel = { containerLevel }
628646 collectionId = { collectionId }
647+ isInLoopingVideoTestVariant = {
648+ isInLoopingVideoTestVariant
649+ }
650+ isInLoopingVideoTestControl = {
651+ isInLoopingVideoTestControl
652+ }
629653 />
630654 ) ;
631655
0 commit comments