|
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 | 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 {
|
@@ -278,8 +278,18 @@ export declare namespace ContentTree {
|
278 | 278 | /** Configuration data to be passed to the component. */
|
279 | 279 | attributes: CustomCodeComponentAttributes;
|
280 | 280 | }
|
| 281 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">; |
| 282 | + interface Timeline extends Parent { |
| 283 | + type: "timeline"; |
| 284 | + layoutWidth: TimelineLayoutWidth; |
| 285 | + children: [Heading, ...Event[]]; |
| 286 | + } |
| 287 | + interface Event extends Parent { |
| 288 | + dateLabel: string; |
| 289 | + children: Paragraph[]; |
| 290 | + } |
281 | 291 | namespace full {
|
282 |
| - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 292 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text | Timeline; |
283 | 293 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
|
284 | 294 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link;
|
285 | 295 | interface Node {
|
@@ -558,9 +568,19 @@ export declare namespace ContentTree {
|
558 | 568 | /** Configuration data to be passed to the component. */
|
559 | 569 | attributes: CustomCodeComponentAttributes;
|
560 | 570 | }
|
| 571 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">; |
| 572 | + interface Timeline extends Parent { |
| 573 | + type: "timeline"; |
| 574 | + layoutWidth: TimelineLayoutWidth; |
| 575 | + children: [Heading, ...Event[]]; |
| 576 | + } |
| 577 | + interface Event extends Parent { |
| 578 | + dateLabel: string; |
| 579 | + children: Paragraph[]; |
| 580 | + } |
561 | 581 | }
|
562 | 582 | namespace transit {
|
563 |
| - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 583 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text | Timeline; |
564 | 584 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
|
565 | 585 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link;
|
566 | 586 | interface Node {
|
@@ -824,9 +844,19 @@ export declare namespace ContentTree {
|
824 | 844 | /** How the component should be presented in the article page according to the column layout system */
|
825 | 845 | layoutWidth: LayoutWidth;
|
826 | 846 | }
|
| 847 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">; |
| 848 | + interface Timeline extends Parent { |
| 849 | + type: "timeline"; |
| 850 | + layoutWidth: TimelineLayoutWidth; |
| 851 | + children: [Heading, ...Event[]]; |
| 852 | + } |
| 853 | + interface Event extends Parent { |
| 854 | + dateLabel: string; |
| 855 | + children: Paragraph[]; |
| 856 | + } |
827 | 857 | }
|
828 | 858 | namespace loose {
|
829 |
| - type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text; |
| 859 | + type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text | Timeline; |
830 | 860 | type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
|
831 | 861 | type Phrasing = Text | Break | Strong | Emphasis | Strikethrough | Link;
|
832 | 862 | interface Node {
|
@@ -1105,5 +1135,15 @@ export declare namespace ContentTree {
|
1105 | 1135 | /** Configuration data to be passed to the component. */
|
1106 | 1136 | attributes?: CustomCodeComponentAttributes;
|
1107 | 1137 | }
|
| 1138 | + type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">; |
| 1139 | + interface Timeline extends Parent { |
| 1140 | + type: "timeline"; |
| 1141 | + layoutWidth: TimelineLayoutWidth; |
| 1142 | + children: [Heading, ...Event[]]; |
| 1143 | + } |
| 1144 | + interface Event extends Parent { |
| 1145 | + dateLabel: string; |
| 1146 | + children: Paragraph[]; |
| 1147 | + } |
1108 | 1148 | }
|
1109 | 1149 | }
|
0 commit comments