|
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 | Text; |
| 2 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet | Text; |
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 { |
@@ -175,6 +175,50 @@ export declare namespace ContentTree { |
175 | 175 | type: "youtube-video"; |
176 | 176 | url: string; |
177 | 177 | } |
| 178 | + interface ClipSet extends Node { |
| 179 | + type: "clip-set"; |
| 180 | + id: string; |
| 181 | + autoplay: boolean; |
| 182 | + loop: boolean; |
| 183 | + muted: boolean; |
| 184 | + layoutWidth: ClipSetLayoutWidth; |
| 185 | + noAudio: boolean; |
| 186 | + caption: string; |
| 187 | + credits: string; |
| 188 | + description: string; |
| 189 | + displayTitle: string; |
| 190 | + systemTitle: string; |
| 191 | + source: string; |
| 192 | + contentWarning: string[]; |
| 193 | + publishedDate: string; |
| 194 | + subtitle: string; |
| 195 | + clips: Clip[]; |
| 196 | + accessibility: ClipAccessibility; |
| 197 | + } |
| 198 | + type Clip = { |
| 199 | + id: string; |
| 200 | + format: 'standard-inline' | 'mobile'; |
| 201 | + dataSource: ClipSource[]; |
| 202 | + poster: string; |
| 203 | + }; |
| 204 | + type ClipSource = { |
| 205 | + audioCodec: string; |
| 206 | + binaryUrl: string; |
| 207 | + duration: number; |
| 208 | + mediaType: string; |
| 209 | + pixelHeight: number; |
| 210 | + pixelWidth: number; |
| 211 | + videoCodec: string; |
| 212 | + }; |
| 213 | + type ClipCaption = { |
| 214 | + mediaType?: string; |
| 215 | + url?: string; |
| 216 | + }; |
| 217 | + type ClipAccessibility = { |
| 218 | + captions?: ClipCaption[]; |
| 219 | + transcript?: Body; |
| 220 | + }; |
| 221 | + type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">; |
178 | 222 | interface ScrollyBlock extends Parent { |
179 | 223 | type: "scrolly-block"; |
180 | 224 | theme: "sans" | "serif"; |
@@ -279,7 +323,7 @@ export declare namespace ContentTree { |
279 | 323 | attributes: CustomCodeComponentAttributes; |
280 | 324 | } |
281 | 325 | namespace full { |
282 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 326 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet | Text; |
283 | 327 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
284 | 328 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
285 | 329 | interface Node { |
@@ -455,6 +499,50 @@ export declare namespace ContentTree { |
455 | 499 | type: "youtube-video"; |
456 | 500 | url: string; |
457 | 501 | } |
| 502 | + interface ClipSet extends Node { |
| 503 | + type: "clip-set"; |
| 504 | + id: string; |
| 505 | + autoplay: boolean; |
| 506 | + loop: boolean; |
| 507 | + muted: boolean; |
| 508 | + layoutWidth: ClipSetLayoutWidth; |
| 509 | + noAudio: boolean; |
| 510 | + caption: string; |
| 511 | + credits: string; |
| 512 | + description: string; |
| 513 | + displayTitle: string; |
| 514 | + systemTitle: string; |
| 515 | + source: string; |
| 516 | + contentWarning: string[]; |
| 517 | + publishedDate: string; |
| 518 | + subtitle: string; |
| 519 | + clips: Clip[]; |
| 520 | + accessibility: ClipAccessibility; |
| 521 | + } |
| 522 | + type Clip = { |
| 523 | + id: string; |
| 524 | + format: 'standard-inline' | 'mobile'; |
| 525 | + dataSource: ClipSource[]; |
| 526 | + poster: string; |
| 527 | + }; |
| 528 | + type ClipSource = { |
| 529 | + audioCodec: string; |
| 530 | + binaryUrl: string; |
| 531 | + duration: number; |
| 532 | + mediaType: string; |
| 533 | + pixelHeight: number; |
| 534 | + pixelWidth: number; |
| 535 | + videoCodec: string; |
| 536 | + }; |
| 537 | + type ClipCaption = { |
| 538 | + mediaType?: string; |
| 539 | + url?: string; |
| 540 | + }; |
| 541 | + type ClipAccessibility = { |
| 542 | + captions?: ClipCaption[]; |
| 543 | + transcript?: Body; |
| 544 | + }; |
| 545 | + type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">; |
458 | 546 | interface ScrollyBlock extends Parent { |
459 | 547 | type: "scrolly-block"; |
460 | 548 | theme: "sans" | "serif"; |
@@ -560,7 +648,7 @@ export declare namespace ContentTree { |
560 | 648 | } |
561 | 649 | } |
562 | 650 | namespace transit { |
563 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 651 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet | Text; |
564 | 652 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
565 | 653 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
566 | 654 | interface Node { |
@@ -731,6 +819,38 @@ export declare namespace ContentTree { |
731 | 819 | type: "youtube-video"; |
732 | 820 | url: string; |
733 | 821 | } |
| 822 | + interface ClipSet extends Node { |
| 823 | + type: "clip-set"; |
| 824 | + id: string; |
| 825 | + autoplay: boolean; |
| 826 | + loop: boolean; |
| 827 | + muted: boolean; |
| 828 | + layoutWidth: ClipSetLayoutWidth; |
| 829 | + } |
| 830 | + type Clip = { |
| 831 | + id: string; |
| 832 | + format: 'standard-inline' | 'mobile'; |
| 833 | + dataSource: ClipSource[]; |
| 834 | + poster: string; |
| 835 | + }; |
| 836 | + type ClipSource = { |
| 837 | + audioCodec: string; |
| 838 | + binaryUrl: string; |
| 839 | + duration: number; |
| 840 | + mediaType: string; |
| 841 | + pixelHeight: number; |
| 842 | + pixelWidth: number; |
| 843 | + videoCodec: string; |
| 844 | + }; |
| 845 | + type ClipCaption = { |
| 846 | + mediaType?: string; |
| 847 | + url?: string; |
| 848 | + }; |
| 849 | + type ClipAccessibility = { |
| 850 | + captions?: ClipCaption[]; |
| 851 | + transcript?: Body; |
| 852 | + }; |
| 853 | + type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">; |
734 | 854 | interface ScrollyBlock extends Parent { |
735 | 855 | type: "scrolly-block"; |
736 | 856 | theme: "sans" | "serif"; |
@@ -826,7 +946,7 @@ export declare namespace ContentTree { |
826 | 946 | } |
827 | 947 | } |
828 | 948 | namespace loose { |
829 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 949 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | ClipSet | Text; |
830 | 950 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
831 | 951 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
832 | 952 | interface Node { |
@@ -1002,6 +1122,50 @@ export declare namespace ContentTree { |
1002 | 1122 | type: "youtube-video"; |
1003 | 1123 | url: string; |
1004 | 1124 | } |
| 1125 | + interface ClipSet extends Node { |
| 1126 | + type: "clip-set"; |
| 1127 | + id: string; |
| 1128 | + autoplay: boolean; |
| 1129 | + loop: boolean; |
| 1130 | + muted: boolean; |
| 1131 | + layoutWidth: ClipSetLayoutWidth; |
| 1132 | + noAudio?: boolean; |
| 1133 | + caption?: string; |
| 1134 | + credits?: string; |
| 1135 | + description?: string; |
| 1136 | + displayTitle?: string; |
| 1137 | + systemTitle?: string; |
| 1138 | + source?: string; |
| 1139 | + contentWarning?: string[]; |
| 1140 | + publishedDate?: string; |
| 1141 | + subtitle?: string; |
| 1142 | + clips?: Clip[]; |
| 1143 | + accessibility?: ClipAccessibility; |
| 1144 | + } |
| 1145 | + type Clip = { |
| 1146 | + id: string; |
| 1147 | + format: 'standard-inline' | 'mobile'; |
| 1148 | + dataSource: ClipSource[]; |
| 1149 | + poster: string; |
| 1150 | + }; |
| 1151 | + type ClipSource = { |
| 1152 | + audioCodec: string; |
| 1153 | + binaryUrl: string; |
| 1154 | + duration: number; |
| 1155 | + mediaType: string; |
| 1156 | + pixelHeight: number; |
| 1157 | + pixelWidth: number; |
| 1158 | + videoCodec: string; |
| 1159 | + }; |
| 1160 | + type ClipCaption = { |
| 1161 | + mediaType?: string; |
| 1162 | + url?: string; |
| 1163 | + }; |
| 1164 | + type ClipAccessibility = { |
| 1165 | + captions?: ClipCaption[]; |
| 1166 | + transcript?: Body; |
| 1167 | + }; |
| 1168 | + type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">; |
1005 | 1169 | interface ScrollyBlock extends Parent { |
1006 | 1170 | type: "scrolly-block"; |
1007 | 1171 | theme: "sans" | "serif"; |
|
0 commit comments