File tree Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
Expand file tree Collapse file tree 8 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ export const loopVideoCard: DCRFrontCard = {
656656 trailText : 'Trail text for looping video card' ,
657657 mainMedia : {
658658 type : 'SelfHostedVideo' ,
659- format : 'Loop' ,
659+ videoStyle : 'Loop' ,
660660 atomId : '3cb22b60-2c3f-48d6-8bce-38c956907cce' ,
661661 sources : [
662662 {
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ const ImmersiveCardLayout = ({
108108} : ImmersiveCardLayoutProps ) => {
109109 const isLoopingVideo =
110110 card . mainMedia ?. type === 'SelfHostedVideo' &&
111- card . mainMedia . format === 'Loop' ;
111+ card . mainMedia . videoStyle === 'Loop' ;
112112
113113 return (
114114 < UL padBottom = { true } >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const ScrollableFeature = ({
4343 { trails . map ( ( card ) => {
4444 const isLoopingVideo =
4545 card . mainMedia ?. type === 'SelfHostedVideo' &&
46- card . mainMedia . format === 'Loop' ;
46+ card . mainMedia . videoStyle === 'Loop' ;
4747
4848 return (
4949 < ScrollableCarousel . Item key = { card . url } >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const StaticFeatureTwo = ({
4141 { cards . map ( ( card ) => {
4242 const isLoopingVideo =
4343 card . mainMedia ?. type === 'SelfHostedVideo' &&
44- card . mainMedia . format === 'Loop' ;
44+ card . mainMedia . videoStyle === 'Loop' ;
4545
4646 return (
4747 < LI
Original file line number Diff line number Diff line change 54575457 "type" : " string" ,
54585458 "const" : " SelfHostedVideo"
54595459 },
5460- "format " : {
5460+ "videoStyle " : {
54615461 "enum" : [
54625462 " Cinemagraph" ,
54635463 " Default" ,
55065506 "required" : [
55075507 " atomId" ,
55085508 " duration" ,
5509- " format" ,
55105509 " height" ,
55115510 " sources" ,
55125511 " type" ,
5512+ " videoStyle" ,
55135513 " width"
55145514 ]
55155515 }
Original file line number Diff line number Diff line change 39293929 "type" : " string" ,
39303930 "const" : " SelfHostedVideo"
39313931 },
3932- "format " : {
3932+ "videoStyle " : {
39333933 "enum" : [
39343934 " Cinemagraph" ,
39353935 " Default" ,
39783978 "required" : [
39793979 " atomId" ,
39803980 " duration" ,
3981- " format" ,
39823981 " height" ,
39833982 " sources" ,
39843983 " type" ,
3984+ " videoStyle" ,
39853985 " width"
39863986 ]
39873987 }
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export const getActiveMediaAtom = (
241241
242242 return {
243243 type : 'SelfHostedVideo' ,
244- format : 'Loop' ,
244+ videoStyle : 'Loop' ,
245245 atomId : mediaAtom . id ,
246246 sources : sources . map ( ( source ) => ( {
247247 src : source . id ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type YoutubeVideo = Media & {
2222
2323type SelfHostedVideo = Media & {
2424 type : 'SelfHostedVideo' ;
25- format : 'Default' | 'Loop' | 'Cinemagraph' ;
25+ videoStyle : 'Default' | 'Loop' | 'Cinemagraph' ;
2626 atomId : string ;
2727 sources : Source [ ] ;
2828 height : number ;
You can’t perform that action at this time.
0 commit comments