|
1 | 1 | export declare namespace ContentTree { |
2 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text; |
| 2 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline; |
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 { |
@@ -285,8 +285,33 @@ export declare namespace ContentTree { |
285 | 285 | /** Configuration data to be passed to the component. */ |
286 | 286 | attributes: CustomCodeComponentAttributes; |
287 | 287 | } |
| 288 | + /** |
| 289 | + * Allowed layout widths for a Timeline. |
| 290 | + */ |
| 291 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "insert-left">; |
| 292 | + /** |
| 293 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 294 | + */ |
| 295 | + interface Timeline extends Parent { |
| 296 | + type: "timeline"; |
| 297 | + /** The title for the timeline */ |
| 298 | + title: string; |
| 299 | + /** The layout width for the timeline */ |
| 300 | + layoutWidth: TimelineLayoutWidth; |
| 301 | + children: TimelineEvent[]; |
| 302 | + } |
| 303 | + /** |
| 304 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 305 | + */ |
| 306 | + interface TimelineEvent extends Parent { |
| 307 | + type: "timeline-event"; |
| 308 | + /** The title of the event */ |
| 309 | + title: string; |
| 310 | + /** A paragraph and an optional image set, or just an image set */ |
| 311 | + children: [Paragraph, ImageSet?] | [ImageSet]; |
| 312 | + } |
288 | 313 | namespace full { |
289 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text; |
| 314 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline; |
290 | 315 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
291 | 316 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
292 | 317 | interface Node { |
@@ -572,9 +597,34 @@ export declare namespace ContentTree { |
572 | 597 | /** Configuration data to be passed to the component. */ |
573 | 598 | attributes: CustomCodeComponentAttributes; |
574 | 599 | } |
| 600 | + /** |
| 601 | + * Allowed layout widths for a Timeline. |
| 602 | + */ |
| 603 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "insert-left">; |
| 604 | + /** |
| 605 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 606 | + */ |
| 607 | + interface Timeline extends Parent { |
| 608 | + type: "timeline"; |
| 609 | + /** The title for the timeline */ |
| 610 | + title: string; |
| 611 | + /** The layout width for the timeline */ |
| 612 | + layoutWidth: TimelineLayoutWidth; |
| 613 | + children: TimelineEvent[]; |
| 614 | + } |
| 615 | + /** |
| 616 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 617 | + */ |
| 618 | + interface TimelineEvent extends Parent { |
| 619 | + type: "timeline-event"; |
| 620 | + /** The title of the event */ |
| 621 | + title: string; |
| 622 | + /** A paragraph and an optional image set, or just an image set */ |
| 623 | + children: [Paragraph, ImageSet?] | [ImageSet]; |
| 624 | + } |
575 | 625 | } |
576 | 626 | namespace transit { |
577 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text; |
| 627 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline; |
578 | 628 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
579 | 629 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
580 | 630 | interface Node { |
@@ -845,9 +895,34 @@ export declare namespace ContentTree { |
845 | 895 | /** How the component should be presented in the article page according to the column layout system */ |
846 | 896 | layoutWidth: LayoutWidth; |
847 | 897 | } |
| 898 | + /** |
| 899 | + * Allowed layout widths for a Timeline. |
| 900 | + */ |
| 901 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "insert-left">; |
| 902 | + /** |
| 903 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 904 | + */ |
| 905 | + interface Timeline extends Parent { |
| 906 | + type: "timeline"; |
| 907 | + /** The title for the timeline */ |
| 908 | + title: string; |
| 909 | + /** The layout width for the timeline */ |
| 910 | + layoutWidth: TimelineLayoutWidth; |
| 911 | + children: TimelineEvent[]; |
| 912 | + } |
| 913 | + /** |
| 914 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 915 | + */ |
| 916 | + interface TimelineEvent extends Parent { |
| 917 | + type: "timeline-event"; |
| 918 | + /** The title of the event */ |
| 919 | + title: string; |
| 920 | + /** A paragraph and an optional image set, or just an image set */ |
| 921 | + children: [Paragraph, ImageSet?] | [ImageSet]; |
| 922 | + } |
848 | 923 | } |
849 | 924 | namespace loose { |
850 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text; |
| 925 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline; |
851 | 926 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
852 | 927 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
853 | 928 | interface Node { |
@@ -1133,5 +1208,30 @@ export declare namespace ContentTree { |
1133 | 1208 | /** Configuration data to be passed to the component. */ |
1134 | 1209 | attributes?: CustomCodeComponentAttributes; |
1135 | 1210 | } |
| 1211 | + /** |
| 1212 | + * Allowed layout widths for a Timeline. |
| 1213 | + */ |
| 1214 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "insert-left">; |
| 1215 | + /** |
| 1216 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 1217 | + */ |
| 1218 | + interface Timeline extends Parent { |
| 1219 | + type: "timeline"; |
| 1220 | + /** The title for the timeline */ |
| 1221 | + title: string; |
| 1222 | + /** The layout width for the timeline */ |
| 1223 | + layoutWidth: TimelineLayoutWidth; |
| 1224 | + children: TimelineEvent[]; |
| 1225 | + } |
| 1226 | + /** |
| 1227 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 1228 | + */ |
| 1229 | + interface TimelineEvent extends Parent { |
| 1230 | + type: "timeline-event"; |
| 1231 | + /** The title of the event */ |
| 1232 | + title: string; |
| 1233 | + /** A paragraph and an optional image set, or just an image set */ |
| 1234 | + children: [Paragraph, ImageSet?] | [ImageSet]; |
| 1235 | + } |
1136 | 1236 | } |
1137 | 1237 | } |
0 commit comments