Skip to content

Commit 5c70793

Browse files
committed
Rename format to videoStyle
1 parent 0d35be6 commit 5c70793

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

dotcom-rendering/fixtures/manual/trails.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

dotcom-rendering/src/components/FlexibleGeneral.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}>

dotcom-rendering/src/components/ScrollableFeature.importable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}>

dotcom-rendering/src/components/StaticFeatureTwo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

dotcom-rendering/src/frontend/schemas/feArticle.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5457,7 +5457,7 @@
54575457
"type": "string",
54585458
"const": "SelfHostedVideo"
54595459
},
5460-
"format": {
5460+
"videoStyle": {
54615461
"enum": [
54625462
"Cinemagraph",
54635463
"Default",
@@ -5506,10 +5506,10 @@
55065506
"required": [
55075507
"atomId",
55085508
"duration",
5509-
"format",
55105509
"height",
55115510
"sources",
55125511
"type",
5512+
"videoStyle",
55135513
"width"
55145514
]
55155515
}

dotcom-rendering/src/frontend/schemas/feFront.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3929,7 +3929,7 @@
39293929
"type": "string",
39303930
"const": "SelfHostedVideo"
39313931
},
3932-
"format": {
3932+
"videoStyle": {
39333933
"enum": [
39343934
"Cinemagraph",
39353935
"Default",
@@ -3978,10 +3978,10 @@
39783978
"required": [
39793979
"atomId",
39803980
"duration",
3981-
"format",
39823981
"height",
39833982
"sources",
39843983
"type",
3984+
"videoStyle",
39853985
"width"
39863986
]
39873987
}

dotcom-rendering/src/model/enhanceCards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

dotcom-rendering/src/types/mainMedia.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type YoutubeVideo = Media & {
2222

2323
type SelfHostedVideo = Media & {
2424
type: 'SelfHostedVideo';
25-
format: 'Default' | 'Loop' | 'Cinemagraph';
25+
videoStyle: 'Default' | 'Loop' | 'Cinemagraph';
2626
atomId: string;
2727
sources: Source[];
2828
height: number;

0 commit comments

Comments
 (0)