Skip to content

Commit 107085f

Browse files
umbobabogithub-actions[bot]
authored andcommitted
Update TypeScript definition file
1 parent e4a224a commit 107085f

File tree

4 files changed

+97
-94
lines changed

4 files changed

+97
-94
lines changed

content-tree.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ export declare namespace ContentTree {
278278
/** Configuration data to be passed to the component. */
279279
attributes: CustomCodeComponentAttributes;
280280
}
281-
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">;
281+
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left" | "full-grid">;
282282
interface Timeline extends Parent {
283283
type: "timeline";
284284
layoutWidth: TimelineLayoutWidth;
285-
children: [Heading, ...Event[]];
285+
children: [Heading, ...TimelineEvent[]];
286286
}
287-
interface Event extends Parent {
288-
type: "event";
287+
interface TimelineEvent extends Parent {
288+
type: "timeline-event";
289289
dateLabel: string;
290290
children: Paragraph[];
291291
}
@@ -569,14 +569,14 @@ export declare namespace ContentTree {
569569
/** Configuration data to be passed to the component. */
570570
attributes: CustomCodeComponentAttributes;
571571
}
572-
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">;
572+
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left" | "full-grid">;
573573
interface Timeline extends Parent {
574574
type: "timeline";
575575
layoutWidth: TimelineLayoutWidth;
576-
children: [Heading, ...Event[]];
576+
children: [Heading, ...TimelineEvent[]];
577577
}
578-
interface Event extends Parent {
579-
type: "event";
578+
interface TimelineEvent extends Parent {
579+
type: "timeline-event";
580580
dateLabel: string;
581581
children: Paragraph[];
582582
}
@@ -846,14 +846,14 @@ export declare namespace ContentTree {
846846
/** How the component should be presented in the article page according to the column layout system */
847847
layoutWidth: LayoutWidth;
848848
}
849-
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">;
849+
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left" | "full-grid">;
850850
interface Timeline extends Parent {
851851
type: "timeline";
852852
layoutWidth: TimelineLayoutWidth;
853-
children: [Heading, ...Event[]];
853+
children: [Heading, ...TimelineEvent[]];
854854
}
855-
interface Event extends Parent {
856-
type: "event";
855+
interface TimelineEvent extends Parent {
856+
type: "timeline-event";
857857
dateLabel: string;
858858
children: Paragraph[];
859859
}
@@ -1138,14 +1138,14 @@ export declare namespace ContentTree {
11381138
/** Configuration data to be passed to the component. */
11391139
attributes?: CustomCodeComponentAttributes;
11401140
}
1141-
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">;
1141+
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left" | "full-grid">;
11421142
interface Timeline extends Parent {
11431143
type: "timeline";
11441144
layoutWidth: TimelineLayoutWidth;
1145-
children: [Heading, ...Event[]];
1145+
children: [Heading, ...TimelineEvent[]];
11461146
}
1147-
interface Event extends Parent {
1148-
type: "event";
1147+
interface TimelineEvent extends Parent {
1148+
type: "timeline-event";
11491149
dateLabel: string;
11501150
children: Paragraph[];
11511151
}

schemas/body-tree.schema.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -188,31 +188,6 @@
188188
],
189189
"type": "object"
190190
},
191-
"ContentTree.transit.Event": {
192-
"additionalProperties": false,
193-
"properties": {
194-
"children": {
195-
"items": {
196-
"$ref": "#/definitions/ContentTree.transit.Paragraph"
197-
},
198-
"type": "array"
199-
},
200-
"data": {},
201-
"dateLabel": {
202-
"type": "string"
203-
},
204-
"type": {
205-
"const": "event",
206-
"type": "string"
207-
}
208-
},
209-
"required": [
210-
"children",
211-
"dateLabel",
212-
"type"
213-
],
214-
"type": "object"
215-
},
216191
"ContentTree.transit.Flourish": {
217192
"additionalProperties": false,
218193
"properties": {
@@ -1122,7 +1097,7 @@
11221097
"properties": {
11231098
"children": {
11241099
"additionalItems": {
1125-
"$ref": "#/definitions/ContentTree.transit.Event"
1100+
"$ref": "#/definitions/ContentTree.transit.TimelineEvent"
11261101
},
11271102
"items": [
11281103
{
@@ -1148,8 +1123,34 @@
11481123
],
11491124
"type": "object"
11501125
},
1126+
"ContentTree.transit.TimelineEvent": {
1127+
"additionalProperties": false,
1128+
"properties": {
1129+
"children": {
1130+
"items": {
1131+
"$ref": "#/definitions/ContentTree.transit.Paragraph"
1132+
},
1133+
"type": "array"
1134+
},
1135+
"data": {},
1136+
"dateLabel": {
1137+
"type": "string"
1138+
},
1139+
"type": {
1140+
"const": "timeline-event",
1141+
"type": "string"
1142+
}
1143+
},
1144+
"required": [
1145+
"children",
1146+
"dateLabel",
1147+
"type"
1148+
],
1149+
"type": "object"
1150+
},
11511151
"ContentTree.transit.TimelineLayoutWidth": {
11521152
"enum": [
1153+
"full-grid",
11531154
"full-width",
11541155
"inset-left"
11551156
],

schemas/content-tree.schema.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -239,31 +239,6 @@
239239
],
240240
"type": "object"
241241
},
242-
"ContentTree.full.Event": {
243-
"additionalProperties": false,
244-
"properties": {
245-
"children": {
246-
"items": {
247-
"$ref": "#/definitions/ContentTree.full.Paragraph"
248-
},
249-
"type": "array"
250-
},
251-
"data": {},
252-
"dateLabel": {
253-
"type": "string"
254-
},
255-
"type": {
256-
"const": "event",
257-
"type": "string"
258-
}
259-
},
260-
"required": [
261-
"children",
262-
"dateLabel",
263-
"type"
264-
],
265-
"type": "object"
266-
},
267242
"ContentTree.full.Flourish": {
268243
"additionalProperties": false,
269244
"properties": {
@@ -1900,7 +1875,7 @@
19001875
"properties": {
19011876
"children": {
19021877
"additionalItems": {
1903-
"$ref": "#/definitions/ContentTree.full.Event"
1878+
"$ref": "#/definitions/ContentTree.full.TimelineEvent"
19041879
},
19051880
"items": [
19061881
{
@@ -1926,8 +1901,34 @@
19261901
],
19271902
"type": "object"
19281903
},
1904+
"ContentTree.full.TimelineEvent": {
1905+
"additionalProperties": false,
1906+
"properties": {
1907+
"children": {
1908+
"items": {
1909+
"$ref": "#/definitions/ContentTree.full.Paragraph"
1910+
},
1911+
"type": "array"
1912+
},
1913+
"data": {},
1914+
"dateLabel": {
1915+
"type": "string"
1916+
},
1917+
"type": {
1918+
"const": "timeline-event",
1919+
"type": "string"
1920+
}
1921+
},
1922+
"required": [
1923+
"children",
1924+
"dateLabel",
1925+
"type"
1926+
],
1927+
"type": "object"
1928+
},
19291929
"ContentTree.full.TimelineLayoutWidth": {
19301930
"enum": [
1931+
"full-grid",
19311932
"full-width",
19321933
"inset-left"
19331934
],

schemas/transit-tree.schema.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -213,31 +213,6 @@
213213
],
214214
"type": "object"
215215
},
216-
"ContentTree.transit.Event": {
217-
"additionalProperties": false,
218-
"properties": {
219-
"children": {
220-
"items": {
221-
"$ref": "#/definitions/ContentTree.transit.Paragraph"
222-
},
223-
"type": "array"
224-
},
225-
"data": {},
226-
"dateLabel": {
227-
"type": "string"
228-
},
229-
"type": {
230-
"const": "event",
231-
"type": "string"
232-
}
233-
},
234-
"required": [
235-
"children",
236-
"dateLabel",
237-
"type"
238-
],
239-
"type": "object"
240-
},
241216
"ContentTree.transit.Flourish": {
242217
"additionalProperties": false,
243218
"properties": {
@@ -1147,7 +1122,7 @@
11471122
"properties": {
11481123
"children": {
11491124
"additionalItems": {
1150-
"$ref": "#/definitions/ContentTree.transit.Event"
1125+
"$ref": "#/definitions/ContentTree.transit.TimelineEvent"
11511126
},
11521127
"items": [
11531128
{
@@ -1173,8 +1148,34 @@
11731148
],
11741149
"type": "object"
11751150
},
1151+
"ContentTree.transit.TimelineEvent": {
1152+
"additionalProperties": false,
1153+
"properties": {
1154+
"children": {
1155+
"items": {
1156+
"$ref": "#/definitions/ContentTree.transit.Paragraph"
1157+
},
1158+
"type": "array"
1159+
},
1160+
"data": {},
1161+
"dateLabel": {
1162+
"type": "string"
1163+
},
1164+
"type": {
1165+
"const": "timeline-event",
1166+
"type": "string"
1167+
}
1168+
},
1169+
"required": [
1170+
"children",
1171+
"dateLabel",
1172+
"type"
1173+
],
1174+
"type": "object"
1175+
},
11761176
"ContentTree.transit.TimelineLayoutWidth": {
11771177
"enum": [
1178+
"full-grid",
11781179
"full-width",
11791180
"inset-left"
11801181
],

0 commit comments

Comments
 (0)