@financial-times/content-tree 0.10.0 → 0.12.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/SPEC.md +76 -24
- package/content-tree.d.ts +136 -12
- package/package.json +1 -1
- package/schemas/body-tree.schema.json +193 -76
- package/schemas/content-tree.schema.json +192 -76
- package/schemas/transit-tree.schema.json +192 -76
|
@@ -153,70 +153,73 @@
|
|
|
153
153
|
"$ref": "#/definitions/ContentTree.full.Text"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
156
|
+
"$ref": "#/definitions/ContentTree.full.AcastPodcast"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
159
|
+
"$ref": "#/definitions/ContentTree.full.BigNumber"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
162
|
+
"$ref": "#/definitions/ContentTree.full.Carousel"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"$ref": "#/definitions/ContentTree.full.ClipSet"
|
|
163
166
|
},
|
|
164
167
|
{
|
|
165
168
|
"$ref": "#/definitions/ContentTree.full.CustomCodeComponent"
|
|
166
169
|
},
|
|
167
170
|
{
|
|
168
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
171
|
+
"$ref": "#/definitions/ContentTree.full.Definition"
|
|
169
172
|
},
|
|
170
173
|
{
|
|
171
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
174
|
+
"$ref": "#/definitions/ContentTree.full.Flourish"
|
|
172
175
|
},
|
|
173
176
|
{
|
|
174
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
177
|
+
"$ref": "#/definitions/ContentTree.full.ImagePair"
|
|
175
178
|
},
|
|
176
179
|
{
|
|
177
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
180
|
+
"$ref": "#/definitions/ContentTree.full.ImageSet"
|
|
178
181
|
},
|
|
179
182
|
{
|
|
180
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
183
|
+
"$ref": "#/definitions/ContentTree.full.InfoBox"
|
|
181
184
|
},
|
|
182
185
|
{
|
|
183
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
186
|
+
"$ref": "#/definitions/ContentTree.full.InfoPair"
|
|
184
187
|
},
|
|
185
188
|
{
|
|
186
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
189
|
+
"$ref": "#/definitions/ContentTree.full.InNumbers"
|
|
187
190
|
},
|
|
188
191
|
{
|
|
189
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
192
|
+
"$ref": "#/definitions/ContentTree.full.Layout"
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
195
|
+
"$ref": "#/definitions/ContentTree.full.Pullquote"
|
|
193
196
|
},
|
|
194
197
|
{
|
|
195
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
198
|
+
"$ref": "#/definitions/ContentTree.full.Recommended"
|
|
196
199
|
},
|
|
197
200
|
{
|
|
198
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
201
|
+
"$ref": "#/definitions/ContentTree.full.RecommendedList"
|
|
199
202
|
},
|
|
200
203
|
{
|
|
201
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
204
|
+
"$ref": "#/definitions/ContentTree.full.ScrollyBlock"
|
|
202
205
|
},
|
|
203
206
|
{
|
|
204
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
207
|
+
"$ref": "#/definitions/ContentTree.full.Table"
|
|
205
208
|
},
|
|
206
209
|
{
|
|
207
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
210
|
+
"$ref": "#/definitions/ContentTree.full.Timeline"
|
|
208
211
|
},
|
|
209
212
|
{
|
|
210
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
213
|
+
"$ref": "#/definitions/ContentTree.full.Tweet"
|
|
211
214
|
},
|
|
212
215
|
{
|
|
213
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
216
|
+
"$ref": "#/definitions/ContentTree.full.Video"
|
|
214
217
|
},
|
|
215
218
|
{
|
|
216
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
219
|
+
"$ref": "#/definitions/ContentTree.full.VimeoVideo"
|
|
217
220
|
},
|
|
218
221
|
{
|
|
219
|
-
"$ref": "#/definitions/ContentTree.full.
|
|
222
|
+
"$ref": "#/definitions/ContentTree.full.YoutubeVideo"
|
|
220
223
|
}
|
|
221
224
|
]
|
|
222
225
|
},
|
|
@@ -283,6 +286,84 @@
|
|
|
283
286
|
],
|
|
284
287
|
"description": "Allowed children for a card"
|
|
285
288
|
},
|
|
289
|
+
"ContentTree.full.Carousel": {
|
|
290
|
+
"additionalProperties": false,
|
|
291
|
+
"properties": {
|
|
292
|
+
"children": {
|
|
293
|
+
"items": {
|
|
294
|
+
"$ref": "#/definitions/ContentTree.full.CarouselCard"
|
|
295
|
+
},
|
|
296
|
+
"maxItems": 10,
|
|
297
|
+
"minItems": 4,
|
|
298
|
+
"type": "array"
|
|
299
|
+
},
|
|
300
|
+
"data": {},
|
|
301
|
+
"heading": {
|
|
302
|
+
"$ref": "#/definitions/ContentTree.full.CarouselHeading"
|
|
303
|
+
},
|
|
304
|
+
"type": {
|
|
305
|
+
"const": "carousel",
|
|
306
|
+
"type": "string"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"required": [
|
|
310
|
+
"children",
|
|
311
|
+
"type"
|
|
312
|
+
],
|
|
313
|
+
"type": "object"
|
|
314
|
+
},
|
|
315
|
+
"ContentTree.full.CarouselCard": {
|
|
316
|
+
"additionalProperties": false,
|
|
317
|
+
"properties": {
|
|
318
|
+
"additionalInfo": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"copy": {
|
|
322
|
+
"items": {
|
|
323
|
+
"$ref": "#/definitions/ContentTree.full.Paragraph"
|
|
324
|
+
},
|
|
325
|
+
"type": "array"
|
|
326
|
+
},
|
|
327
|
+
"data": {},
|
|
328
|
+
"image": {
|
|
329
|
+
"$ref": "#/definitions/ContentTree.full.ImageSet"
|
|
330
|
+
},
|
|
331
|
+
"title": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"type": {
|
|
335
|
+
"const": "carousel-card",
|
|
336
|
+
"type": "string"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"copy",
|
|
341
|
+
"image",
|
|
342
|
+
"type"
|
|
343
|
+
],
|
|
344
|
+
"type": "object"
|
|
345
|
+
},
|
|
346
|
+
"ContentTree.full.CarouselHeading": {
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"properties": {
|
|
349
|
+
"data": {},
|
|
350
|
+
"standfirst": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"title": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
"type": {
|
|
357
|
+
"const": "carousel-heading",
|
|
358
|
+
"type": "string"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"required": [
|
|
362
|
+
"title",
|
|
363
|
+
"type"
|
|
364
|
+
],
|
|
365
|
+
"type": "object"
|
|
366
|
+
},
|
|
286
367
|
"ContentTree.full.ClipSet": {
|
|
287
368
|
"additionalProperties": false,
|
|
288
369
|
"properties": {
|
|
@@ -2062,60 +2143,7 @@
|
|
|
2062
2143
|
"additionalProperties": false,
|
|
2063
2144
|
"properties": {
|
|
2064
2145
|
"children": {
|
|
2065
|
-
"
|
|
2066
|
-
{
|
|
2067
|
-
"items": [
|
|
2068
|
-
{
|
|
2069
|
-
"$ref": "#/definitions/ContentTree.full.TableCaption"
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2076
|
-
}
|
|
2077
|
-
],
|
|
2078
|
-
"maxItems": 3,
|
|
2079
|
-
"minItems": 3,
|
|
2080
|
-
"type": "array"
|
|
2081
|
-
},
|
|
2082
|
-
{
|
|
2083
|
-
"items": [
|
|
2084
|
-
{
|
|
2085
|
-
"$ref": "#/definitions/ContentTree.full.TableCaption"
|
|
2086
|
-
},
|
|
2087
|
-
{
|
|
2088
|
-
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2089
|
-
}
|
|
2090
|
-
],
|
|
2091
|
-
"maxItems": 2,
|
|
2092
|
-
"minItems": 2,
|
|
2093
|
-
"type": "array"
|
|
2094
|
-
},
|
|
2095
|
-
{
|
|
2096
|
-
"items": [
|
|
2097
|
-
{
|
|
2098
|
-
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2102
|
-
}
|
|
2103
|
-
],
|
|
2104
|
-
"maxItems": 2,
|
|
2105
|
-
"minItems": 2,
|
|
2106
|
-
"type": "array"
|
|
2107
|
-
},
|
|
2108
|
-
{
|
|
2109
|
-
"items": [
|
|
2110
|
-
{
|
|
2111
|
-
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2112
|
-
}
|
|
2113
|
-
],
|
|
2114
|
-
"maxItems": 1,
|
|
2115
|
-
"minItems": 1,
|
|
2116
|
-
"type": "array"
|
|
2117
|
-
}
|
|
2118
|
-
]
|
|
2146
|
+
"$ref": "#/definitions/ContentTree.full.TableChildren"
|
|
2119
2147
|
},
|
|
2120
2148
|
"collapseAfterHowManyRows": {
|
|
2121
2149
|
"type": "number"
|
|
@@ -2143,7 +2171,6 @@
|
|
|
2143
2171
|
},
|
|
2144
2172
|
"required": [
|
|
2145
2173
|
"hideOnMobile",
|
|
2146
|
-
"sortType",
|
|
2147
2174
|
"sortable"
|
|
2148
2175
|
],
|
|
2149
2176
|
"type": "object"
|
|
@@ -2256,6 +2283,74 @@
|
|
|
2256
2283
|
],
|
|
2257
2284
|
"type": "object"
|
|
2258
2285
|
},
|
|
2286
|
+
"ContentTree.full.TableChildren": {
|
|
2287
|
+
"anyOf": [
|
|
2288
|
+
{
|
|
2289
|
+
"items": [
|
|
2290
|
+
{
|
|
2291
|
+
"$ref": "#/definitions/ContentTree.full.TableCaption"
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2298
|
+
}
|
|
2299
|
+
],
|
|
2300
|
+
"maxItems": 3,
|
|
2301
|
+
"minItems": 2,
|
|
2302
|
+
"type": "array"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"items": [
|
|
2306
|
+
{
|
|
2307
|
+
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2311
|
+
}
|
|
2312
|
+
],
|
|
2313
|
+
"maxItems": 2,
|
|
2314
|
+
"minItems": 1,
|
|
2315
|
+
"type": "array"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"items": [
|
|
2319
|
+
{
|
|
2320
|
+
"$ref": "#/definitions/ContentTree.full.TableCaption"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"$ref": "#/definitions/ContentTree.full.TableHeader"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2330
|
+
}
|
|
2331
|
+
],
|
|
2332
|
+
"maxItems": 4,
|
|
2333
|
+
"minItems": 3,
|
|
2334
|
+
"type": "array"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"items": [
|
|
2338
|
+
{
|
|
2339
|
+
"$ref": "#/definitions/ContentTree.full.TableHeader"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"$ref": "#/definitions/ContentTree.full.TableBody"
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"$ref": "#/definitions/ContentTree.full.TableFooter"
|
|
2346
|
+
}
|
|
2347
|
+
],
|
|
2348
|
+
"maxItems": 3,
|
|
2349
|
+
"minItems": 2,
|
|
2350
|
+
"type": "array"
|
|
2351
|
+
}
|
|
2352
|
+
]
|
|
2353
|
+
},
|
|
2259
2354
|
"ContentTree.full.TableFooter": {
|
|
2260
2355
|
"additionalProperties": false,
|
|
2261
2356
|
"properties": {
|
|
@@ -2277,6 +2372,27 @@
|
|
|
2277
2372
|
],
|
|
2278
2373
|
"type": "object"
|
|
2279
2374
|
},
|
|
2375
|
+
"ContentTree.full.TableHeader": {
|
|
2376
|
+
"additionalProperties": false,
|
|
2377
|
+
"properties": {
|
|
2378
|
+
"children": {
|
|
2379
|
+
"items": {
|
|
2380
|
+
"$ref": "#/definitions/ContentTree.full.TableRow"
|
|
2381
|
+
},
|
|
2382
|
+
"type": "array"
|
|
2383
|
+
},
|
|
2384
|
+
"data": {},
|
|
2385
|
+
"type": {
|
|
2386
|
+
"const": "table-header",
|
|
2387
|
+
"type": "string"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"required": [
|
|
2391
|
+
"children",
|
|
2392
|
+
"type"
|
|
2393
|
+
],
|
|
2394
|
+
"type": "object"
|
|
2395
|
+
},
|
|
2280
2396
|
"ContentTree.full.TableLayoutWidth": {
|
|
2281
2397
|
"enum": [
|
|
2282
2398
|
"auto",
|