@financial-times/content-tree 0.16.0 → 0.18.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
@@ -17,6 +17,8 @@ type AssetFormat =
17
17
  | "standard"
18
18
  | "wide"
19
19
  | "standard-inline"
20
+ | "portrait"
21
+ | "landscape"
20
22
 
21
23
  ```
22
24
 
@@ -1046,7 +1048,7 @@ interface CarouselCard extends Node {
1046
1048
  /**
1047
1049
  * @description Carousel item
1048
1050
  * @maxItems 10
1049
- * @minItems 4
1051
+ * @minItems 3
1050
1052
  * @sparkRepeater true
1051
1053
  */
1052
1054
  type CarouselChildren = CarouselCard[]
package/content-tree.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare namespace ContentTree {
2
- type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline";
2
+ type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline" | "portrait" | "landscape";
3
3
  type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
4
4
  type AVSource = {
5
5
  binaryUrl: string;
@@ -470,7 +470,7 @@ export declare namespace ContentTree {
470
470
  /**
471
471
  * @description Carousel item
472
472
  * @maxItems 10
473
- * @minItems 4
473
+ * @minItems 3
474
474
  * @sparkRepeater true
475
475
  */
476
476
  type CarouselChildren = CarouselCard[];
@@ -494,7 +494,7 @@ export declare namespace ContentTree {
494
494
  children: CarouselChildren;
495
495
  }
496
496
  namespace full {
497
- type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline";
497
+ type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline" | "portrait" | "landscape";
498
498
  type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
499
499
  type AVSource = {
500
500
  binaryUrl: string;
@@ -965,7 +965,7 @@ export declare namespace ContentTree {
965
965
  /**
966
966
  * @description Carousel item
967
967
  * @maxItems 10
968
- * @minItems 4
968
+ * @minItems 3
969
969
  * @sparkRepeater true
970
970
  */
971
971
  type CarouselChildren = CarouselCard[];
@@ -990,7 +990,7 @@ export declare namespace ContentTree {
990
990
  }
991
991
  }
992
992
  namespace transit {
993
- type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline";
993
+ type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline" | "portrait" | "landscape";
994
994
  type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
995
995
  type AVSource = {
996
996
  binaryUrl: string;
@@ -1434,7 +1434,7 @@ export declare namespace ContentTree {
1434
1434
  /**
1435
1435
  * @description Carousel item
1436
1436
  * @maxItems 10
1437
- * @minItems 4
1437
+ * @minItems 3
1438
1438
  * @sparkRepeater true
1439
1439
  */
1440
1440
  type CarouselChildren = CarouselCard[];
@@ -1459,7 +1459,7 @@ export declare namespace ContentTree {
1459
1459
  }
1460
1460
  }
1461
1461
  namespace loose {
1462
- type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline";
1462
+ type AssetFormat = "desktop" | "mobile" | "square" | "square-ftedit" | "standard" | "wide" | "standard-inline" | "portrait" | "landscape";
1463
1463
  type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
1464
1464
  type AVSource = {
1465
1465
  binaryUrl: string;
@@ -1930,7 +1930,7 @@ export declare namespace ContentTree {
1930
1930
  /**
1931
1931
  * @description Carousel item
1932
1932
  * @maxItems 10
1933
- * @minItems 4
1933
+ * @minItems 3
1934
1934
  * @sparkRepeater true
1935
1935
  */
1936
1936
  type CarouselChildren = CarouselCard[];
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.16.0",
4
+ "version": "0.18.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -261,7 +261,7 @@
261
261
  "$ref": "#/definitions/ContentTree.transit.CarouselCard"
262
262
  },
263
263
  "maxItems": 10,
264
- "minItems": 4,
264
+ "minItems": 3,
265
265
  "type": "array"
266
266
  },
267
267
  "data": {},
@@ -24,7 +24,9 @@
24
24
  "ContentTree.full.AssetFormat": {
25
25
  "enum": [
26
26
  "desktop",
27
+ "landscape",
27
28
  "mobile",
29
+ "portrait",
28
30
  "square",
29
31
  "square-ftedit",
30
32
  "standard",
@@ -298,7 +300,7 @@
298
300
  "$ref": "#/definitions/ContentTree.full.CarouselCard"
299
301
  },
300
302
  "maxItems": 10,
301
- "minItems": 4,
303
+ "minItems": 3,
302
304
  "type": "array"
303
305
  },
304
306
  "data": {},
@@ -318,7 +318,7 @@
318
318
  "$ref": "#/definitions/ContentTree.transit.CarouselCard"
319
319
  },
320
320
  "maxItems": 10,
321
- "minItems": 4,
321
+ "minItems": 3,
322
322
  "sparkRepeater": true,
323
323
  "type": "array"
324
324
  },
@@ -286,7 +286,7 @@
286
286
  "$ref": "#/definitions/ContentTree.transit.CarouselCard"
287
287
  },
288
288
  "maxItems": 10,
289
- "minItems": 4,
289
+ "minItems": 3,
290
290
  "type": "array"
291
291
  },
292
292
  "data": {},