@financial-times/content-tree 0.14.0 → 0.16.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
|
@@ -590,6 +590,7 @@ interface BigNumber extends Node {
|
|
|
590
590
|
interface Video extends Node {
|
|
591
591
|
type: "video"
|
|
592
592
|
id: string
|
|
593
|
+
fragmentIdentifier?: string
|
|
593
594
|
external title: string
|
|
594
595
|
}
|
|
595
596
|
```
|
|
@@ -681,7 +682,7 @@ type ClipAccessibility = {
|
|
|
681
682
|
transcript?: Body
|
|
682
683
|
}
|
|
683
684
|
|
|
684
|
-
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">
|
|
685
|
+
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid" | "inset-left" | "inset-right">
|
|
685
686
|
```
|
|
686
687
|
|
|
687
688
|
**ClipSet** represents a short piece of possibly-looping video content for an article.
|
package/content-tree.d.ts
CHANGED
|
@@ -202,6 +202,7 @@ export declare namespace ContentTree {
|
|
|
202
202
|
interface Video extends Node {
|
|
203
203
|
type: "video";
|
|
204
204
|
id: string;
|
|
205
|
+
fragmentIdentifier?: string;
|
|
205
206
|
title: string;
|
|
206
207
|
}
|
|
207
208
|
interface YoutubeVideo extends Node {
|
|
@@ -256,7 +257,7 @@ export declare namespace ContentTree {
|
|
|
256
257
|
captions?: ClipCaption[];
|
|
257
258
|
transcript?: Body;
|
|
258
259
|
};
|
|
259
|
-
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">;
|
|
260
|
+
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid" | "inset-left" | "inset-right">;
|
|
260
261
|
interface ScrollyBlock extends Parent {
|
|
261
262
|
type: "scrolly-block";
|
|
262
263
|
theme: "sans" | "serif";
|
|
@@ -696,6 +697,7 @@ export declare namespace ContentTree {
|
|
|
696
697
|
interface Video extends Node {
|
|
697
698
|
type: "video";
|
|
698
699
|
id: string;
|
|
700
|
+
fragmentIdentifier?: string;
|
|
699
701
|
title: string;
|
|
700
702
|
}
|
|
701
703
|
interface YoutubeVideo extends Node {
|
|
@@ -750,7 +752,7 @@ export declare namespace ContentTree {
|
|
|
750
752
|
captions?: ClipCaption[];
|
|
751
753
|
transcript?: Body;
|
|
752
754
|
};
|
|
753
|
-
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">;
|
|
755
|
+
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid" | "inset-left" | "inset-right">;
|
|
754
756
|
interface ScrollyBlock extends Parent {
|
|
755
757
|
type: "scrolly-block";
|
|
756
758
|
theme: "sans" | "serif";
|
|
@@ -1187,6 +1189,7 @@ export declare namespace ContentTree {
|
|
|
1187
1189
|
interface Video extends Node {
|
|
1188
1190
|
type: "video";
|
|
1189
1191
|
id: string;
|
|
1192
|
+
fragmentIdentifier?: string;
|
|
1190
1193
|
}
|
|
1191
1194
|
interface YoutubeVideo extends Node {
|
|
1192
1195
|
type: "youtube-video";
|
|
@@ -1228,7 +1231,7 @@ export declare namespace ContentTree {
|
|
|
1228
1231
|
captions?: ClipCaption[];
|
|
1229
1232
|
transcript?: Body;
|
|
1230
1233
|
};
|
|
1231
|
-
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">;
|
|
1234
|
+
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid" | "inset-left" | "inset-right">;
|
|
1232
1235
|
interface ScrollyBlock extends Parent {
|
|
1233
1236
|
type: "scrolly-block";
|
|
1234
1237
|
theme: "sans" | "serif";
|
|
@@ -1659,6 +1662,7 @@ export declare namespace ContentTree {
|
|
|
1659
1662
|
interface Video extends Node {
|
|
1660
1663
|
type: "video";
|
|
1661
1664
|
id: string;
|
|
1665
|
+
fragmentIdentifier?: string;
|
|
1662
1666
|
title?: string;
|
|
1663
1667
|
}
|
|
1664
1668
|
interface YoutubeVideo extends Node {
|
|
@@ -1713,7 +1717,7 @@ export declare namespace ContentTree {
|
|
|
1713
1717
|
captions?: ClipCaption[];
|
|
1714
1718
|
transcript?: Body;
|
|
1715
1719
|
};
|
|
1716
|
-
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid">;
|
|
1720
|
+
type ClipSetLayoutWidth = Extract<LayoutWidth, "in-line" | "mid-grid" | "full-grid" | "inset-left" | "inset-right">;
|
|
1717
1721
|
interface ScrollyBlock extends Parent {
|
|
1718
1722
|
type: "scrolly-block";
|
|
1719
1723
|
theme: "sans" | "serif";
|
package/package.json
CHANGED
|
@@ -370,6 +370,8 @@
|
|
|
370
370
|
"enum": [
|
|
371
371
|
"full-grid",
|
|
372
372
|
"in-line",
|
|
373
|
+
"inset-left",
|
|
374
|
+
"inset-right",
|
|
373
375
|
"mid-grid"
|
|
374
376
|
],
|
|
375
377
|
"type": "string"
|
|
@@ -1725,6 +1727,9 @@
|
|
|
1725
1727
|
"additionalProperties": false,
|
|
1726
1728
|
"properties": {
|
|
1727
1729
|
"data": {},
|
|
1730
|
+
"fragmentIdentifier": {
|
|
1731
|
+
"type": "string"
|
|
1732
|
+
},
|
|
1728
1733
|
"id": {
|
|
1729
1734
|
"type": "string"
|
|
1730
1735
|
},
|
|
@@ -497,6 +497,8 @@
|
|
|
497
497
|
"enum": [
|
|
498
498
|
"full-grid",
|
|
499
499
|
"in-line",
|
|
500
|
+
"inset-left",
|
|
501
|
+
"inset-right",
|
|
500
502
|
"mid-grid"
|
|
501
503
|
],
|
|
502
504
|
"type": "string"
|
|
@@ -2549,6 +2551,9 @@
|
|
|
2549
2551
|
"additionalProperties": false,
|
|
2550
2552
|
"properties": {
|
|
2551
2553
|
"data": {},
|
|
2554
|
+
"fragmentIdentifier": {
|
|
2555
|
+
"type": "string"
|
|
2556
|
+
},
|
|
2552
2557
|
"id": {
|
|
2553
2558
|
"type": "string"
|
|
2554
2559
|
},
|
|
@@ -462,6 +462,8 @@
|
|
|
462
462
|
"enum": [
|
|
463
463
|
"full-grid",
|
|
464
464
|
"in-line",
|
|
465
|
+
"inset-left",
|
|
466
|
+
"inset-right",
|
|
465
467
|
"mid-grid"
|
|
466
468
|
],
|
|
467
469
|
"type": "string"
|
|
@@ -2074,6 +2076,9 @@
|
|
|
2074
2076
|
"additionalProperties": false,
|
|
2075
2077
|
"properties": {
|
|
2076
2078
|
"data": {},
|
|
2079
|
+
"fragmentIdentifier": {
|
|
2080
|
+
"type": "string"
|
|
2081
|
+
},
|
|
2077
2082
|
"id": {
|
|
2078
2083
|
"type": "string"
|
|
2079
2084
|
},
|
|
@@ -2085,6 +2090,7 @@
|
|
|
2085
2090
|
"propertyOrder": [
|
|
2086
2091
|
"type",
|
|
2087
2092
|
"id",
|
|
2093
|
+
"fragmentIdentifier",
|
|
2088
2094
|
"data"
|
|
2089
2095
|
],
|
|
2090
2096
|
"required": [
|
|
@@ -395,6 +395,8 @@
|
|
|
395
395
|
"enum": [
|
|
396
396
|
"full-grid",
|
|
397
397
|
"in-line",
|
|
398
|
+
"inset-left",
|
|
399
|
+
"inset-right",
|
|
398
400
|
"mid-grid"
|
|
399
401
|
],
|
|
400
402
|
"type": "string"
|
|
@@ -1750,6 +1752,9 @@
|
|
|
1750
1752
|
"additionalProperties": false,
|
|
1751
1753
|
"properties": {
|
|
1752
1754
|
"data": {},
|
|
1755
|
+
"fragmentIdentifier": {
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
},
|
|
1753
1758
|
"id": {
|
|
1754
1759
|
"type": "string"
|
|
1755
1760
|
},
|