|
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 | ImagePair; |
| 2 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline | ImagePair; |
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 { |
@@ -289,8 +289,27 @@ export declare namespace ContentTree { |
289 | 289 | type: 'image-pair'; |
290 | 290 | children: [ImageSet, ImageSet]; |
291 | 291 | } |
| 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 | + children: TimelineEvent[]; |
| 300 | + } |
| 301 | + /** |
| 302 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 303 | + */ |
| 304 | + interface TimelineEvent extends Parent { |
| 305 | + type: "timeline-event"; |
| 306 | + /** The title of the event */ |
| 307 | + title: string; |
| 308 | + /** Any combination of paragraphs and image sets */ |
| 309 | + children: (Paragraph | ImageSet)[]; |
| 310 | + } |
292 | 311 | namespace full { |
293 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | ImagePair; |
| 312 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline | ImagePair; |
294 | 313 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
295 | 314 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
296 | 315 | interface Node { |
@@ -580,9 +599,28 @@ export declare namespace ContentTree { |
580 | 599 | type: 'image-pair'; |
581 | 600 | children: [ImageSet, ImageSet]; |
582 | 601 | } |
| 602 | + /** |
| 603 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 604 | + */ |
| 605 | + interface Timeline extends Parent { |
| 606 | + type: "timeline"; |
| 607 | + /** The title for the timeline */ |
| 608 | + title: string; |
| 609 | + children: TimelineEvent[]; |
| 610 | + } |
| 611 | + /** |
| 612 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 613 | + */ |
| 614 | + interface TimelineEvent extends Parent { |
| 615 | + type: "timeline-event"; |
| 616 | + /** The title of the event */ |
| 617 | + title: string; |
| 618 | + /** Any combination of paragraphs and image sets */ |
| 619 | + children: (Paragraph | ImageSet)[]; |
| 620 | + } |
583 | 621 | } |
584 | 622 | namespace transit { |
585 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | ImagePair; |
| 623 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline | ImagePair; |
586 | 624 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
587 | 625 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
588 | 626 | interface Node { |
@@ -857,9 +895,28 @@ export declare namespace ContentTree { |
857 | 895 | type: 'image-pair'; |
858 | 896 | children: [ImageSet, ImageSet]; |
859 | 897 | } |
| 898 | + /** |
| 899 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 900 | + */ |
| 901 | + interface Timeline extends Parent { |
| 902 | + type: "timeline"; |
| 903 | + /** The title for the timeline */ |
| 904 | + title: string; |
| 905 | + children: TimelineEvent[]; |
| 906 | + } |
| 907 | + /** |
| 908 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 909 | + */ |
| 910 | + interface TimelineEvent extends Parent { |
| 911 | + type: "timeline-event"; |
| 912 | + /** The title of the event */ |
| 913 | + title: string; |
| 914 | + /** Any combination of paragraphs and image sets */ |
| 915 | + children: (Paragraph | ImageSet)[]; |
| 916 | + } |
860 | 917 | } |
861 | 918 | namespace loose { |
862 | | - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | ImagePair; |
| 919 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text | Timeline | ImagePair; |
863 | 920 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width"; |
864 | 921 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link; |
865 | 922 | interface Node { |
@@ -1149,5 +1206,24 @@ export declare namespace ContentTree { |
1149 | 1206 | type: 'image-pair'; |
1150 | 1207 | children: [ImageSet, ImageSet]; |
1151 | 1208 | } |
| 1209 | + /** |
| 1210 | + * Timeline nodes display a timeline of events in arbitrary order. |
| 1211 | + */ |
| 1212 | + interface Timeline extends Parent { |
| 1213 | + type: "timeline"; |
| 1214 | + /** The title for the timeline */ |
| 1215 | + title: string; |
| 1216 | + children: TimelineEvent[]; |
| 1217 | + } |
| 1218 | + /** |
| 1219 | + * TimelineEvent is the representation of a single event in a Timeline. |
| 1220 | + */ |
| 1221 | + interface TimelineEvent extends Parent { |
| 1222 | + type: "timeline-event"; |
| 1223 | + /** The title of the event */ |
| 1224 | + title: string; |
| 1225 | + /** Any combination of paragraphs and image sets */ |
| 1226 | + children: (Paragraph | ImageSet)[]; |
| 1227 | + } |
1152 | 1228 | } |
1153 | 1229 | } |
0 commit comments