|
1 | 1 | export declare namespace ContentTree { |
2 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo; |
| 2 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet; |
3 | 3 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
4 | 4 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
5 | 5 | interface Node { |
@@ -171,6 +171,49 @@ export declare namespace ContentTree { |
171 | 171 | type: "youtube-video"; |
172 | 172 | url: string; |
173 | 173 | } |
| 174 | + interface ClipSet extends Node { |
| 175 | + type: "clip-set"; |
| 176 | + id: string; |
| 177 | + autoplay: boolean; |
| 178 | + loop: boolean; |
| 179 | + muted: boolean; |
| 180 | + layoutWidth: 'in-line' | 'mid-grid' | 'full-grid'; |
| 181 | + noAudio: boolean; |
| 182 | + caption: string; |
| 183 | + credits: string; |
| 184 | + description: string; |
| 185 | + displayTitle: string; |
| 186 | + systemTitle: string; |
| 187 | + source: string; |
| 188 | + contentWarning: string[]; |
| 189 | + publishedDate: string; |
| 190 | + subtitle: string; |
| 191 | + clips: Clip[]; |
| 192 | + accessibility: ClipAccessibility; |
| 193 | + } |
| 194 | + type Clip = { |
| 195 | + id: string; |
| 196 | + format: 'standard-inline' | 'mobile'; |
| 197 | + dataSource: ClipSource[]; |
| 198 | + poster: string; |
| 199 | + }; |
| 200 | + type ClipSource = { |
| 201 | + audioCodec: string; |
| 202 | + binaryUrl: string; |
| 203 | + duration: number; |
| 204 | + mediaType: string; |
| 205 | + pixelHeight: number; |
| 206 | + pixelWidth: number; |
| 207 | + videoCodec: string; |
| 208 | + }; |
| 209 | + type ClipCaption = { |
| 210 | + mediaType?: string; |
| 211 | + url?: string; |
| 212 | + }; |
| 213 | + type ClipAccessibility = { |
| 214 | + captions?: ClipCaption[]; |
| 215 | + transcript?: Body; |
| 216 | + }; |
174 | 217 | interface ScrollyBlock extends Parent { |
175 | 218 | type: "scrolly-block"; |
176 | 219 | theme: "sans" | "serif"; |
@@ -272,7 +315,7 @@ export declare namespace ContentTree { |
272 | 315 | attributes: CustomCodeComponentAttributes; |
273 | 316 | } |
274 | 317 | namespace full { |
275 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo; |
| 318 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet; |
276 | 319 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
277 | 320 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
278 | 321 | interface Node { |
@@ -444,6 +487,49 @@ export declare namespace ContentTree { |
444 | 487 | type: "youtube-video"; |
445 | 488 | url: string; |
446 | 489 | } |
| 490 | + interface ClipSet extends Node { |
| 491 | + type: "clip-set"; |
| 492 | + id: string; |
| 493 | + autoplay: boolean; |
| 494 | + loop: boolean; |
| 495 | + muted: boolean; |
| 496 | + layoutWidth: 'in-line' | 'mid-grid' | 'full-grid'; |
| 497 | + noAudio: boolean; |
| 498 | + caption: string; |
| 499 | + credits: string; |
| 500 | + description: string; |
| 501 | + displayTitle: string; |
| 502 | + systemTitle: string; |
| 503 | + source: string; |
| 504 | + contentWarning: string[]; |
| 505 | + publishedDate: string; |
| 506 | + subtitle: string; |
| 507 | + clips: Clip[]; |
| 508 | + accessibility: ClipAccessibility; |
| 509 | + } |
| 510 | + type Clip = { |
| 511 | + id: string; |
| 512 | + format: 'standard-inline' | 'mobile'; |
| 513 | + dataSource: ClipSource[]; |
| 514 | + poster: string; |
| 515 | + }; |
| 516 | + type ClipSource = { |
| 517 | + audioCodec: string; |
| 518 | + binaryUrl: string; |
| 519 | + duration: number; |
| 520 | + mediaType: string; |
| 521 | + pixelHeight: number; |
| 522 | + pixelWidth: number; |
| 523 | + videoCodec: string; |
| 524 | + }; |
| 525 | + type ClipCaption = { |
| 526 | + mediaType?: string; |
| 527 | + url?: string; |
| 528 | + }; |
| 529 | + type ClipAccessibility = { |
| 530 | + captions?: ClipCaption[]; |
| 531 | + transcript?: Body; |
| 532 | + }; |
447 | 533 | interface ScrollyBlock extends Parent { |
448 | 534 | type: "scrolly-block"; |
449 | 535 | theme: "sans" | "serif"; |
@@ -546,7 +632,7 @@ export declare namespace ContentTree { |
546 | 632 | } |
547 | 633 | } |
548 | 634 | namespace transit { |
549 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo; |
| 635 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet; |
550 | 636 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
551 | 637 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
552 | 638 | interface Node { |
@@ -713,6 +799,37 @@ export declare namespace ContentTree { |
713 | 799 | type: "youtube-video"; |
714 | 800 | url: string; |
715 | 801 | } |
| 802 | + interface ClipSet extends Node { |
| 803 | + type: "clip-set"; |
| 804 | + id: string; |
| 805 | + autoplay: boolean; |
| 806 | + loop: boolean; |
| 807 | + muted: boolean; |
| 808 | + layoutWidth: 'in-line' | 'mid-grid' | 'full-grid'; |
| 809 | + } |
| 810 | + type Clip = { |
| 811 | + id: string; |
| 812 | + format: 'standard-inline' | 'mobile'; |
| 813 | + dataSource: ClipSource[]; |
| 814 | + poster: string; |
| 815 | + }; |
| 816 | + type ClipSource = { |
| 817 | + audioCodec: string; |
| 818 | + binaryUrl: string; |
| 819 | + duration: number; |
| 820 | + mediaType: string; |
| 821 | + pixelHeight: number; |
| 822 | + pixelWidth: number; |
| 823 | + videoCodec: string; |
| 824 | + }; |
| 825 | + type ClipCaption = { |
| 826 | + mediaType?: string; |
| 827 | + url?: string; |
| 828 | + }; |
| 829 | + type ClipAccessibility = { |
| 830 | + captions?: ClipCaption[]; |
| 831 | + transcript?: Body; |
| 832 | + }; |
716 | 833 | interface ScrollyBlock extends Parent { |
717 | 834 | type: "scrolly-block"; |
718 | 835 | theme: "sans" | "serif"; |
@@ -805,7 +922,7 @@ export declare namespace ContentTree { |
805 | 922 | } |
806 | 923 | } |
807 | 924 | namespace loose { |
808 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo; |
| 925 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet; |
809 | 926 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
810 | 927 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
811 | 928 | interface Node { |
@@ -977,6 +1094,49 @@ export declare namespace ContentTree { |
977 | 1094 | type: "youtube-video"; |
978 | 1095 | url: string; |
979 | 1096 | } |
| 1097 | + interface ClipSet extends Node { |
| 1098 | + type: "clip-set"; |
| 1099 | + id: string; |
| 1100 | + autoplay: boolean; |
| 1101 | + loop: boolean; |
| 1102 | + muted: boolean; |
| 1103 | + layoutWidth: 'in-line' | 'mid-grid' | 'full-grid'; |
| 1104 | + noAudio?: boolean; |
| 1105 | + caption?: string; |
| 1106 | + credits?: string; |
| 1107 | + description?: string; |
| 1108 | + displayTitle?: string; |
| 1109 | + systemTitle?: string; |
| 1110 | + source?: string; |
| 1111 | + contentWarning?: string[]; |
| 1112 | + publishedDate?: string; |
| 1113 | + subtitle?: string; |
| 1114 | + clips?: Clip[]; |
| 1115 | + accessibility?: ClipAccessibility; |
| 1116 | + } |
| 1117 | + type Clip = { |
| 1118 | + id: string; |
| 1119 | + format: 'standard-inline' | 'mobile'; |
| 1120 | + dataSource: ClipSource[]; |
| 1121 | + poster: string; |
| 1122 | + }; |
| 1123 | + type ClipSource = { |
| 1124 | + audioCodec: string; |
| 1125 | + binaryUrl: string; |
| 1126 | + duration: number; |
| 1127 | + mediaType: string; |
| 1128 | + pixelHeight: number; |
| 1129 | + pixelWidth: number; |
| 1130 | + videoCodec: string; |
| 1131 | + }; |
| 1132 | + type ClipCaption = { |
| 1133 | + mediaType?: string; |
| 1134 | + url?: string; |
| 1135 | + }; |
| 1136 | + type ClipAccessibility = { |
| 1137 | + captions?: ClipCaption[]; |
| 1138 | + transcript?: Body; |
| 1139 | + }; |
980 | 1140 | interface ScrollyBlock extends Parent { |
981 | 1141 | type: "scrolly-block"; |
982 | 1142 | theme: "sans" | "serif"; |
|
0 commit comments