@financial-times/content-tree 0.12.0-beta.9 → 0.13.0

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/SPEC.md CHANGED
@@ -962,7 +962,7 @@ interface InNumbers extends Parent {
962
962
  ```ts
963
963
  /** Allowed children for a card
964
964
  */
965
- type CardChildren = ImageSet | Exclude<FormattingBlock, Heading>
965
+ type CardChildren = ImageSet | FormattingBlock
966
966
  /**
967
967
  * A card describes a subject with images and text
968
968
  */
package/content-tree.d.ts CHANGED
@@ -407,7 +407,7 @@ export declare namespace ContentTree {
407
407
  }
408
408
  /** Allowed children for a card
409
409
  */
410
- type CardChildren = ImageSet | Exclude<FormattingBlock, Heading>;
410
+ type CardChildren = ImageSet | FormattingBlock;
411
411
  /**
412
412
  * A card describes a subject with images and text
413
413
  */
@@ -895,7 +895,7 @@ export declare namespace ContentTree {
895
895
  }
896
896
  /** Allowed children for a card
897
897
  */
898
- type CardChildren = ImageSet | Exclude<FormattingBlock, Heading>;
898
+ type CardChildren = ImageSet | FormattingBlock;
899
899
  /**
900
900
  * A card describes a subject with images and text
901
901
  */
@@ -1357,7 +1357,7 @@ export declare namespace ContentTree {
1357
1357
  }
1358
1358
  /** Allowed children for a card
1359
1359
  */
1360
- type CardChildren = ImageSet | Exclude<FormattingBlock, Heading>;
1360
+ type CardChildren = ImageSet | FormattingBlock;
1361
1361
  /**
1362
1362
  * A card describes a subject with images and text
1363
1363
  */
@@ -1846,7 +1846,7 @@ export declare namespace ContentTree {
1846
1846
  }
1847
1847
  /** Allowed children for a card
1848
1848
  */
1849
- type CardChildren = ImageSet | Exclude<FormattingBlock, Heading>;
1849
+ type CardChildren = ImageSet | FormattingBlock;
1850
1850
  /**
1851
1851
  * A card describes a subject with images and text
1852
1852
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@financial-times/content-tree",
3
3
  "description": "content tree format",
4
- "version": "0.12.0-beta.9",
4
+ "version": "0.13.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -231,6 +231,9 @@
231
231
  {
232
232
  "$ref": "#/definitions/ContentTree.transit.Paragraph"
233
233
  },
234
+ {
235
+ "$ref": "#/definitions/ContentTree.transit.Heading"
236
+ },
234
237
  {
235
238
  "$ref": "#/definitions/ContentTree.transit.List"
236
239
  },
@@ -259,7 +262,6 @@
259
262
  },
260
263
  "maxItems": 10,
261
264
  "minItems": 4,
262
- "sparkRepeater": true,
263
265
  "type": "array"
264
266
  },
265
267
  "data": {},
@@ -280,7 +282,6 @@
280
282
  "id",
281
283
  "type"
282
284
  ],
283
- "sparkGenerateStoryblock": true,
284
285
  "type": "object"
285
286
  },
286
287
  "ContentTree.transit.CarouselCard": {
@@ -268,6 +268,9 @@
268
268
  {
269
269
  "$ref": "#/definitions/ContentTree.full.Paragraph"
270
270
  },
271
+ {
272
+ "$ref": "#/definitions/ContentTree.full.Heading"
273
+ },
271
274
  {
272
275
  "$ref": "#/definitions/ContentTree.full.List"
273
276
  },
@@ -256,6 +256,9 @@
256
256
  {
257
257
  "$ref": "#/definitions/ContentTree.transit.Paragraph"
258
258
  },
259
+ {
260
+ "$ref": "#/definitions/ContentTree.transit.Heading"
261
+ },
259
262
  {
260
263
  "$ref": "#/definitions/ContentTree.transit.List"
261
264
  },
@@ -284,6 +287,7 @@
284
287
  },
285
288
  "maxItems": 10,
286
289
  "minItems": 4,
290
+ "sparkRepeater": true,
287
291
  "type": "array"
288
292
  },
289
293
  "data": {},
@@ -304,6 +308,7 @@
304
308
  "id",
305
309
  "type"
306
310
  ],
311
+ "sparkGenerateStoryblock": true,
307
312
  "type": "object"
308
313
  },
309
314
  "ContentTree.transit.CarouselCard": {