@fifthbell/brokaw 0.1.71 → 0.1.74
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 +106 -1
- package/dist/captured-catalog-browser.d.ts +26 -0
- package/dist/captured-catalog-browser.js +42 -0
- package/dist/captured-catalog-reader.d.ts +16 -0
- package/dist/captured-catalog-reader.js +113 -0
- package/dist/captured-catalog.d.ts +28 -0
- package/dist/captured-catalog.js +138 -0
- package/dist/components/live-program/LiveProgram.js +119 -311
- package/dist/components/live-program/components/WorldClocks.js +2 -1
- package/dist/components/live-program/components/slides/LiveEventSlide.js +2 -4
- package/dist/components/live-program/events.d.ts +7 -0
- package/dist/components/live-program/events.js +28 -5
- package/dist/components/live-program/hooks/useSSE.js +1 -2
- package/dist/components/live-program/i18n.js +1 -1
- package/dist/components/live-program/live-program-config.d.ts +70 -0
- package/dist/components/live-program/live-program-config.js +228 -0
- package/dist/components/live-program/program-data.d.ts +22 -0
- package/dist/components/live-program/program-data.js +23 -0
- package/dist/components/live-program/program-reload.d.ts +11 -0
- package/dist/components/live-program/program-reload.js +21 -0
- package/dist/components/live-program/segments/ArticlesSegment.d.ts +5 -0
- package/dist/components/live-program/segments/ArticlesSegment.js +15 -11
- package/dist/components/live-program/segments/EarthquakeSegment.d.ts +4 -0
- package/dist/components/live-program/segments/EarthquakeSegment.js +13 -10
- package/dist/components/live-program/segments/MarketsSegment.js +7 -2
- package/dist/components/live-program/segments/WeatherSegment.d.ts +5 -0
- package/dist/components/live-program/segments/WeatherSegment.js +7 -2
- package/dist/components/live-program/segments/fetchLiveEvents.d.ts +6 -0
- package/dist/components/live-program/segments/fetchLiveEvents.js +42 -27
- package/dist/components/live-program/source-retention.d.ts +14 -0
- package/dist/components/live-program/source-retention.js +26 -0
- package/dist/cronkite-manifest.d.ts +35 -0
- package/dist/cronkite-manifest.js +5 -26
- package/dist/cronkite-manifest.json +48 -1
- package/dist/ignored-input.d.ts +14 -0
- package/dist/ignored-input.js +48 -0
- package/dist/layouts.d.ts +1 -1
- package/dist/live-program-page/index.html +2 -2
- package/dist/live-program-page/live-program-manifest.json +8 -8
- package/dist/live-program-page/live-program.v0.1.74.css +3 -0
- package/dist/live-program-page/live-program.v0.1.74.js +76 -0
- package/dist/live-program-release.js +6 -3
- package/dist/manifest-validation.js +3 -1
- package/dist/renderer.browser.js +2 -0
- package/dist/renderer.core.js +56 -21
- package/dist/renderer.d.ts +1 -0
- package/dist/renderer.js +1 -0
- package/dist/rum.d.ts +1 -1
- package/dist/rum.js +3 -1
- package/dist/schemas/canonical-document.schema.json +103 -15
- package/dist/schemas/feed-renderable-input.schema.json +0 -1
- package/dist/schemas/live-program-release-input.schema.json +0 -1
- package/dist/schemas/social-image-input.schema.json +0 -1
- package/dist/system-pages.d.ts +66 -0
- package/dist/system-pages.js +35 -0
- package/dist/types/canonical-article.js +3 -2
- package/dist/types/canonical-document-schema.generated.d.ts +168 -24
- package/dist/types/canonical-document-schema.generated.js +218 -32
- package/dist/types/canonical-document.generated.d.ts +74 -6
- package/dist/types/live-program-release-input.generated.d.ts +1 -0
- package/package.json +10 -4
- package/src/partial-deps.json +9 -0
- package/src/styles/compiled.css +1 -1
- package/src/templates/partials/blocks/tiktok.hbs +10 -8
- package/src/templates/partials/components/article-main.hbs +6 -5
- package/src/templates/partials/components/breaking-news.hbs +18 -14
- package/src/templates/partials/components/live-story/main.hbs +18 -14
- package/src/templates/partials/components/media/main.hbs +3 -2
- package/src/templates/partials/components/search/main.hbs +3 -3
- package/src/templates/partials/headers/header-main.hbs +11 -19
- package/src/templates/partials/shell/captured-catalog.hbs +1 -0
- package/dist/live-program-page/live-program.v0.1.71.css +0 -3
- package/dist/live-program-page/live-program.v0.1.71.js +0 -76
|
@@ -54,6 +54,59 @@ export declare const canonicalDocumentSchema: {
|
|
|
54
54
|
readonly description: "An open language tag. The active renderer declares the allowed set for each request.";
|
|
55
55
|
readonly examples: readonly ["en", "pt-BR", "zh-Hant-TW"];
|
|
56
56
|
};
|
|
57
|
+
readonly capturedSelection: {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly description: "CMS-issued captured-catalog selection (Brokaw captured-catalog contract v1). When present, every runtime reader on the page reads this selection instead of its current source; the browser adapter validates it in full. Members other than these are ignored and counted.";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly selectionId: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly minLength: 1;
|
|
64
|
+
readonly maxLength: 200;
|
|
65
|
+
};
|
|
66
|
+
readonly catalogUrl: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly format: "uri";
|
|
69
|
+
readonly pattern: "^https://";
|
|
70
|
+
};
|
|
71
|
+
readonly context: {
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly rendererVersion: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly minLength: 1;
|
|
77
|
+
readonly maxLength: 200;
|
|
78
|
+
};
|
|
79
|
+
readonly templateVersion: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
readonly minLength: 1;
|
|
82
|
+
readonly maxLength: 200;
|
|
83
|
+
};
|
|
84
|
+
readonly tenant: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly minLength: 1;
|
|
87
|
+
readonly maxLength: 200;
|
|
88
|
+
};
|
|
89
|
+
readonly origin: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly format: "uri";
|
|
92
|
+
readonly pattern: "^https://";
|
|
93
|
+
};
|
|
94
|
+
readonly build: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly minLength: 1;
|
|
97
|
+
readonly maxLength: 200;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly required: readonly ["rendererVersion", "templateVersion", "tenant", "origin", "build"];
|
|
101
|
+
readonly description: "Members other than these are ignored.";
|
|
102
|
+
};
|
|
103
|
+
readonly locale: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly enum: readonly ["en", "es", "it"];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly required: readonly ["selectionId", "catalogUrl", "context", "locale"];
|
|
109
|
+
};
|
|
57
110
|
readonly rumConfig: {
|
|
58
111
|
readonly type: "object";
|
|
59
112
|
readonly properties: {
|
|
@@ -182,16 +235,9 @@ export declare const canonicalDocumentSchema: {
|
|
|
182
235
|
readonly type: "string";
|
|
183
236
|
};
|
|
184
237
|
readonly level: {
|
|
185
|
-
readonly
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}, {
|
|
189
|
-
readonly type: "number";
|
|
190
|
-
readonly const: 3;
|
|
191
|
-
}, {
|
|
192
|
-
readonly type: "number";
|
|
193
|
-
readonly const: 4;
|
|
194
|
-
}];
|
|
238
|
+
readonly type: "number";
|
|
239
|
+
readonly description: "2, 3 or 4. Any other number renders as 2.";
|
|
240
|
+
readonly examples: readonly [2, 3, 4];
|
|
195
241
|
};
|
|
196
242
|
};
|
|
197
243
|
readonly required: readonly ["type", "text"];
|
|
@@ -254,7 +300,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
254
300
|
};
|
|
255
301
|
readonly tone: {
|
|
256
302
|
readonly type: "string";
|
|
257
|
-
readonly
|
|
303
|
+
readonly description: "neutral, info, warning or success. Any other value renders as neutral.";
|
|
304
|
+
readonly examples: readonly ["neutral", "info", "warning", "success"];
|
|
258
305
|
};
|
|
259
306
|
readonly html: {
|
|
260
307
|
readonly type: "string";
|
|
@@ -455,6 +502,18 @@ export declare const canonicalDocumentSchema: {
|
|
|
455
502
|
};
|
|
456
503
|
};
|
|
457
504
|
readonly required: readonly ["type", "text"];
|
|
505
|
+
}, {
|
|
506
|
+
readonly type: "object";
|
|
507
|
+
readonly description: "A block type this contract does not define. It is accepted and not rendered.";
|
|
508
|
+
readonly properties: {
|
|
509
|
+
readonly type: {
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly not: {
|
|
512
|
+
readonly enum: readonly ["richText", "heading", "image", "list", "divider", "infoBox", "keyPoints", "dataTable", "liveUpdate", "audio", "youtube", "x", "instagram", "tiktok", "spotify", "pullQuote"];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly required: readonly ["type"];
|
|
458
517
|
}];
|
|
459
518
|
};
|
|
460
519
|
};
|
|
@@ -613,7 +672,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
613
672
|
};
|
|
614
673
|
readonly heroLayout: {
|
|
615
674
|
readonly type: "string";
|
|
616
|
-
readonly
|
|
675
|
+
readonly description: "spotlight or editorial. Any other value is treated as absent.";
|
|
676
|
+
readonly examples: readonly ["spotlight", "editorial"];
|
|
617
677
|
};
|
|
618
678
|
readonly heroCategories: {
|
|
619
679
|
readonly type: "array";
|
|
@@ -888,6 +948,59 @@ export declare const canonicalDocumentSchema: {
|
|
|
888
948
|
readonly description: "An open language tag. The active renderer declares the allowed set for each request.";
|
|
889
949
|
readonly examples: readonly ["en", "pt-BR", "zh-Hant-TW"];
|
|
890
950
|
};
|
|
951
|
+
readonly capturedSelection: {
|
|
952
|
+
readonly type: "object";
|
|
953
|
+
readonly description: "CMS-issued captured-catalog selection (Brokaw captured-catalog contract v1). When present, every runtime reader on the page reads this selection instead of its current source; the browser adapter validates it in full. Members other than these are ignored and counted.";
|
|
954
|
+
readonly properties: {
|
|
955
|
+
readonly selectionId: {
|
|
956
|
+
readonly type: "string";
|
|
957
|
+
readonly minLength: 1;
|
|
958
|
+
readonly maxLength: 200;
|
|
959
|
+
};
|
|
960
|
+
readonly catalogUrl: {
|
|
961
|
+
readonly type: "string";
|
|
962
|
+
readonly format: "uri";
|
|
963
|
+
readonly pattern: "^https://";
|
|
964
|
+
};
|
|
965
|
+
readonly context: {
|
|
966
|
+
readonly type: "object";
|
|
967
|
+
readonly properties: {
|
|
968
|
+
readonly rendererVersion: {
|
|
969
|
+
readonly type: "string";
|
|
970
|
+
readonly minLength: 1;
|
|
971
|
+
readonly maxLength: 200;
|
|
972
|
+
};
|
|
973
|
+
readonly templateVersion: {
|
|
974
|
+
readonly type: "string";
|
|
975
|
+
readonly minLength: 1;
|
|
976
|
+
readonly maxLength: 200;
|
|
977
|
+
};
|
|
978
|
+
readonly tenant: {
|
|
979
|
+
readonly type: "string";
|
|
980
|
+
readonly minLength: 1;
|
|
981
|
+
readonly maxLength: 200;
|
|
982
|
+
};
|
|
983
|
+
readonly origin: {
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
readonly format: "uri";
|
|
986
|
+
readonly pattern: "^https://";
|
|
987
|
+
};
|
|
988
|
+
readonly build: {
|
|
989
|
+
readonly type: "string";
|
|
990
|
+
readonly minLength: 1;
|
|
991
|
+
readonly maxLength: 200;
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
readonly required: readonly ["rendererVersion", "templateVersion", "tenant", "origin", "build"];
|
|
995
|
+
readonly description: "Members other than these are ignored.";
|
|
996
|
+
};
|
|
997
|
+
readonly locale: {
|
|
998
|
+
readonly type: "string";
|
|
999
|
+
readonly enum: readonly ["en", "es", "it"];
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
readonly required: readonly ["selectionId", "catalogUrl", "context", "locale"];
|
|
1003
|
+
};
|
|
891
1004
|
readonly rumConfig: {
|
|
892
1005
|
readonly type: "object";
|
|
893
1006
|
readonly properties: {
|
|
@@ -1016,16 +1129,9 @@ export declare const canonicalDocumentSchema: {
|
|
|
1016
1129
|
readonly type: "string";
|
|
1017
1130
|
};
|
|
1018
1131
|
readonly level: {
|
|
1019
|
-
readonly
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
}, {
|
|
1023
|
-
readonly type: "number";
|
|
1024
|
-
readonly const: 3;
|
|
1025
|
-
}, {
|
|
1026
|
-
readonly type: "number";
|
|
1027
|
-
readonly const: 4;
|
|
1028
|
-
}];
|
|
1132
|
+
readonly type: "number";
|
|
1133
|
+
readonly description: "2, 3 or 4. Any other number renders as 2.";
|
|
1134
|
+
readonly examples: readonly [2, 3, 4];
|
|
1029
1135
|
};
|
|
1030
1136
|
};
|
|
1031
1137
|
readonly required: readonly ["type", "text"];
|
|
@@ -1088,7 +1194,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
1088
1194
|
};
|
|
1089
1195
|
readonly tone: {
|
|
1090
1196
|
readonly type: "string";
|
|
1091
|
-
readonly
|
|
1197
|
+
readonly description: "neutral, info, warning or success. Any other value renders as neutral.";
|
|
1198
|
+
readonly examples: readonly ["neutral", "info", "warning", "success"];
|
|
1092
1199
|
};
|
|
1093
1200
|
readonly html: {
|
|
1094
1201
|
readonly type: "string";
|
|
@@ -1289,6 +1396,18 @@ export declare const canonicalDocumentSchema: {
|
|
|
1289
1396
|
};
|
|
1290
1397
|
};
|
|
1291
1398
|
readonly required: readonly ["type", "text"];
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly type: "object";
|
|
1401
|
+
readonly description: "A block type this contract does not define. It is accepted and not rendered.";
|
|
1402
|
+
readonly properties: {
|
|
1403
|
+
readonly type: {
|
|
1404
|
+
readonly type: "string";
|
|
1405
|
+
readonly not: {
|
|
1406
|
+
readonly enum: readonly ["richText", "heading", "image", "list", "divider", "infoBox", "keyPoints", "dataTable", "liveUpdate", "audio", "youtube", "x", "instagram", "tiktok", "spotify", "pullQuote"];
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
readonly required: readonly ["type"];
|
|
1292
1411
|
}];
|
|
1293
1412
|
};
|
|
1294
1413
|
};
|
|
@@ -1447,7 +1566,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
1447
1566
|
};
|
|
1448
1567
|
readonly heroLayout: {
|
|
1449
1568
|
readonly type: "string";
|
|
1450
|
-
readonly
|
|
1569
|
+
readonly description: "spotlight or editorial. Any other value is treated as absent.";
|
|
1570
|
+
readonly examples: readonly ["spotlight", "editorial"];
|
|
1451
1571
|
};
|
|
1452
1572
|
readonly heroCategories: {
|
|
1453
1573
|
readonly type: "array";
|
|
@@ -1635,6 +1755,10 @@ export declare const canonicalDocumentSchema: {
|
|
|
1635
1755
|
readonly type: "string";
|
|
1636
1756
|
readonly enum: readonly ["homepage", "category-page", "search-page", "404", "coming-soon", "live-story", "link-in-bio", "media-page", "standalone-page"];
|
|
1637
1757
|
};
|
|
1758
|
+
readonly assignmentMediaBaseUrl: {
|
|
1759
|
+
readonly type: "string";
|
|
1760
|
+
readonly description: "Completed assignment JSON directory supplied by the media-page producer.";
|
|
1761
|
+
};
|
|
1638
1762
|
readonly authors: {
|
|
1639
1763
|
readonly type: "array";
|
|
1640
1764
|
readonly items: {
|
|
@@ -1672,6 +1796,26 @@ export declare const canonicalDocumentSchema: {
|
|
|
1672
1796
|
};
|
|
1673
1797
|
readonly required: readonly ["id", "slug", "canonicalUrl", "contentVersion", "publishedAt", "updatedAt", "status", "title", "language", "featured", "body", "layout"];
|
|
1674
1798
|
readonly additionalProperties: {};
|
|
1799
|
+
readonly allOf: readonly [{
|
|
1800
|
+
readonly if: {
|
|
1801
|
+
readonly properties: {
|
|
1802
|
+
readonly layout: {
|
|
1803
|
+
readonly const: "media-page";
|
|
1804
|
+
};
|
|
1805
|
+
};
|
|
1806
|
+
readonly required: readonly ["layout"];
|
|
1807
|
+
};
|
|
1808
|
+
readonly then: {
|
|
1809
|
+
readonly required: readonly ["assignmentMediaBaseUrl"];
|
|
1810
|
+
readonly properties: {
|
|
1811
|
+
readonly assignmentMediaBaseUrl: {
|
|
1812
|
+
readonly type: "string";
|
|
1813
|
+
readonly format: "uri";
|
|
1814
|
+
readonly pattern: "^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\\s\\\\]+(?:/[^?#\\s\\\\]*)?/contents/assignments/(?![\\s\\S])";
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
}];
|
|
1675
1819
|
}];
|
|
1676
1820
|
readonly title: "Cronkite canonical document";
|
|
1677
1821
|
readonly description: "Version 1 of the provider-neutral canonical document contract accepted by Cronkite.";
|
|
@@ -56,6 +56,65 @@ export const canonicalDocumentSchema = {
|
|
|
56
56
|
description: "An open language tag. The active renderer declares the allowed set for each request.",
|
|
57
57
|
examples: ["en", "pt-BR", "zh-Hant-TW"],
|
|
58
58
|
},
|
|
59
|
+
capturedSelection: {
|
|
60
|
+
type: "object",
|
|
61
|
+
description: "CMS-issued captured-catalog selection (Brokaw captured-catalog contract v1). When present, every runtime reader on the page reads this selection instead of its current source; the browser adapter validates it in full. Members other than these are ignored and counted.",
|
|
62
|
+
properties: {
|
|
63
|
+
selectionId: {
|
|
64
|
+
type: "string",
|
|
65
|
+
minLength: 1,
|
|
66
|
+
maxLength: 200,
|
|
67
|
+
},
|
|
68
|
+
catalogUrl: {
|
|
69
|
+
type: "string",
|
|
70
|
+
format: "uri",
|
|
71
|
+
pattern: "^https://",
|
|
72
|
+
},
|
|
73
|
+
context: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: {
|
|
76
|
+
rendererVersion: {
|
|
77
|
+
type: "string",
|
|
78
|
+
minLength: 1,
|
|
79
|
+
maxLength: 200,
|
|
80
|
+
},
|
|
81
|
+
templateVersion: {
|
|
82
|
+
type: "string",
|
|
83
|
+
minLength: 1,
|
|
84
|
+
maxLength: 200,
|
|
85
|
+
},
|
|
86
|
+
tenant: {
|
|
87
|
+
type: "string",
|
|
88
|
+
minLength: 1,
|
|
89
|
+
maxLength: 200,
|
|
90
|
+
},
|
|
91
|
+
origin: {
|
|
92
|
+
type: "string",
|
|
93
|
+
format: "uri",
|
|
94
|
+
pattern: "^https://",
|
|
95
|
+
},
|
|
96
|
+
build: {
|
|
97
|
+
type: "string",
|
|
98
|
+
minLength: 1,
|
|
99
|
+
maxLength: 200,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
required: [
|
|
103
|
+
"rendererVersion",
|
|
104
|
+
"templateVersion",
|
|
105
|
+
"tenant",
|
|
106
|
+
"origin",
|
|
107
|
+
"build",
|
|
108
|
+
],
|
|
109
|
+
description: "Members other than these are ignored.",
|
|
110
|
+
},
|
|
111
|
+
locale: {
|
|
112
|
+
type: "string",
|
|
113
|
+
enum: ["en", "es", "it"],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
required: ["selectionId", "catalogUrl", "context", "locale"],
|
|
117
|
+
},
|
|
59
118
|
rumConfig: {
|
|
60
119
|
type: "object",
|
|
61
120
|
properties: {
|
|
@@ -192,20 +251,9 @@ export const canonicalDocumentSchema = {
|
|
|
192
251
|
type: "string",
|
|
193
252
|
},
|
|
194
253
|
level: {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const: 2,
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
type: "number",
|
|
202
|
-
const: 3,
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
type: "number",
|
|
206
|
-
const: 4,
|
|
207
|
-
},
|
|
208
|
-
],
|
|
254
|
+
type: "number",
|
|
255
|
+
description: "2, 3 or 4. Any other number renders as 2.",
|
|
256
|
+
examples: [2, 3, 4],
|
|
209
257
|
},
|
|
210
258
|
},
|
|
211
259
|
required: ["type", "text"],
|
|
@@ -272,7 +320,8 @@ export const canonicalDocumentSchema = {
|
|
|
272
320
|
},
|
|
273
321
|
tone: {
|
|
274
322
|
type: "string",
|
|
275
|
-
|
|
323
|
+
description: "neutral, info, warning or success. Any other value renders as neutral.",
|
|
324
|
+
examples: ["neutral", "info", "warning", "success"],
|
|
276
325
|
},
|
|
277
326
|
html: {
|
|
278
327
|
type: "string",
|
|
@@ -484,6 +533,36 @@ export const canonicalDocumentSchema = {
|
|
|
484
533
|
},
|
|
485
534
|
required: ["type", "text"],
|
|
486
535
|
},
|
|
536
|
+
{
|
|
537
|
+
type: "object",
|
|
538
|
+
description: "A block type this contract does not define. It is accepted and not rendered.",
|
|
539
|
+
properties: {
|
|
540
|
+
type: {
|
|
541
|
+
type: "string",
|
|
542
|
+
not: {
|
|
543
|
+
enum: [
|
|
544
|
+
"richText",
|
|
545
|
+
"heading",
|
|
546
|
+
"image",
|
|
547
|
+
"list",
|
|
548
|
+
"divider",
|
|
549
|
+
"infoBox",
|
|
550
|
+
"keyPoints",
|
|
551
|
+
"dataTable",
|
|
552
|
+
"liveUpdate",
|
|
553
|
+
"audio",
|
|
554
|
+
"youtube",
|
|
555
|
+
"x",
|
|
556
|
+
"instagram",
|
|
557
|
+
"tiktok",
|
|
558
|
+
"spotify",
|
|
559
|
+
"pullQuote",
|
|
560
|
+
],
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
required: ["type"],
|
|
565
|
+
},
|
|
487
566
|
],
|
|
488
567
|
},
|
|
489
568
|
},
|
|
@@ -642,7 +721,8 @@ export const canonicalDocumentSchema = {
|
|
|
642
721
|
},
|
|
643
722
|
heroLayout: {
|
|
644
723
|
type: "string",
|
|
645
|
-
|
|
724
|
+
description: "spotlight or editorial. Any other value is treated as absent.",
|
|
725
|
+
examples: ["spotlight", "editorial"],
|
|
646
726
|
},
|
|
647
727
|
heroCategories: {
|
|
648
728
|
type: "array",
|
|
@@ -933,6 +1013,65 @@ export const canonicalDocumentSchema = {
|
|
|
933
1013
|
description: "An open language tag. The active renderer declares the allowed set for each request.",
|
|
934
1014
|
examples: ["en", "pt-BR", "zh-Hant-TW"],
|
|
935
1015
|
},
|
|
1016
|
+
capturedSelection: {
|
|
1017
|
+
type: "object",
|
|
1018
|
+
description: "CMS-issued captured-catalog selection (Brokaw captured-catalog contract v1). When present, every runtime reader on the page reads this selection instead of its current source; the browser adapter validates it in full. Members other than these are ignored and counted.",
|
|
1019
|
+
properties: {
|
|
1020
|
+
selectionId: {
|
|
1021
|
+
type: "string",
|
|
1022
|
+
minLength: 1,
|
|
1023
|
+
maxLength: 200,
|
|
1024
|
+
},
|
|
1025
|
+
catalogUrl: {
|
|
1026
|
+
type: "string",
|
|
1027
|
+
format: "uri",
|
|
1028
|
+
pattern: "^https://",
|
|
1029
|
+
},
|
|
1030
|
+
context: {
|
|
1031
|
+
type: "object",
|
|
1032
|
+
properties: {
|
|
1033
|
+
rendererVersion: {
|
|
1034
|
+
type: "string",
|
|
1035
|
+
minLength: 1,
|
|
1036
|
+
maxLength: 200,
|
|
1037
|
+
},
|
|
1038
|
+
templateVersion: {
|
|
1039
|
+
type: "string",
|
|
1040
|
+
minLength: 1,
|
|
1041
|
+
maxLength: 200,
|
|
1042
|
+
},
|
|
1043
|
+
tenant: {
|
|
1044
|
+
type: "string",
|
|
1045
|
+
minLength: 1,
|
|
1046
|
+
maxLength: 200,
|
|
1047
|
+
},
|
|
1048
|
+
origin: {
|
|
1049
|
+
type: "string",
|
|
1050
|
+
format: "uri",
|
|
1051
|
+
pattern: "^https://",
|
|
1052
|
+
},
|
|
1053
|
+
build: {
|
|
1054
|
+
type: "string",
|
|
1055
|
+
minLength: 1,
|
|
1056
|
+
maxLength: 200,
|
|
1057
|
+
},
|
|
1058
|
+
},
|
|
1059
|
+
required: [
|
|
1060
|
+
"rendererVersion",
|
|
1061
|
+
"templateVersion",
|
|
1062
|
+
"tenant",
|
|
1063
|
+
"origin",
|
|
1064
|
+
"build",
|
|
1065
|
+
],
|
|
1066
|
+
description: "Members other than these are ignored.",
|
|
1067
|
+
},
|
|
1068
|
+
locale: {
|
|
1069
|
+
type: "string",
|
|
1070
|
+
enum: ["en", "es", "it"],
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
required: ["selectionId", "catalogUrl", "context", "locale"],
|
|
1074
|
+
},
|
|
936
1075
|
rumConfig: {
|
|
937
1076
|
type: "object",
|
|
938
1077
|
properties: {
|
|
@@ -1069,20 +1208,9 @@ export const canonicalDocumentSchema = {
|
|
|
1069
1208
|
type: "string",
|
|
1070
1209
|
},
|
|
1071
1210
|
level: {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
const: 2,
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
type: "number",
|
|
1079
|
-
const: 3,
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
type: "number",
|
|
1083
|
-
const: 4,
|
|
1084
|
-
},
|
|
1085
|
-
],
|
|
1211
|
+
type: "number",
|
|
1212
|
+
description: "2, 3 or 4. Any other number renders as 2.",
|
|
1213
|
+
examples: [2, 3, 4],
|
|
1086
1214
|
},
|
|
1087
1215
|
},
|
|
1088
1216
|
required: ["type", "text"],
|
|
@@ -1149,7 +1277,8 @@ export const canonicalDocumentSchema = {
|
|
|
1149
1277
|
},
|
|
1150
1278
|
tone: {
|
|
1151
1279
|
type: "string",
|
|
1152
|
-
|
|
1280
|
+
description: "neutral, info, warning or success. Any other value renders as neutral.",
|
|
1281
|
+
examples: ["neutral", "info", "warning", "success"],
|
|
1153
1282
|
},
|
|
1154
1283
|
html: {
|
|
1155
1284
|
type: "string",
|
|
@@ -1361,6 +1490,36 @@ export const canonicalDocumentSchema = {
|
|
|
1361
1490
|
},
|
|
1362
1491
|
required: ["type", "text"],
|
|
1363
1492
|
},
|
|
1493
|
+
{
|
|
1494
|
+
type: "object",
|
|
1495
|
+
description: "A block type this contract does not define. It is accepted and not rendered.",
|
|
1496
|
+
properties: {
|
|
1497
|
+
type: {
|
|
1498
|
+
type: "string",
|
|
1499
|
+
not: {
|
|
1500
|
+
enum: [
|
|
1501
|
+
"richText",
|
|
1502
|
+
"heading",
|
|
1503
|
+
"image",
|
|
1504
|
+
"list",
|
|
1505
|
+
"divider",
|
|
1506
|
+
"infoBox",
|
|
1507
|
+
"keyPoints",
|
|
1508
|
+
"dataTable",
|
|
1509
|
+
"liveUpdate",
|
|
1510
|
+
"audio",
|
|
1511
|
+
"youtube",
|
|
1512
|
+
"x",
|
|
1513
|
+
"instagram",
|
|
1514
|
+
"tiktok",
|
|
1515
|
+
"spotify",
|
|
1516
|
+
"pullQuote",
|
|
1517
|
+
],
|
|
1518
|
+
},
|
|
1519
|
+
},
|
|
1520
|
+
},
|
|
1521
|
+
required: ["type"],
|
|
1522
|
+
},
|
|
1364
1523
|
],
|
|
1365
1524
|
},
|
|
1366
1525
|
},
|
|
@@ -1519,7 +1678,8 @@ export const canonicalDocumentSchema = {
|
|
|
1519
1678
|
},
|
|
1520
1679
|
heroLayout: {
|
|
1521
1680
|
type: "string",
|
|
1522
|
-
|
|
1681
|
+
description: "spotlight or editorial. Any other value is treated as absent.",
|
|
1682
|
+
examples: ["spotlight", "editorial"],
|
|
1523
1683
|
},
|
|
1524
1684
|
heroCategories: {
|
|
1525
1685
|
type: "array",
|
|
@@ -1717,6 +1877,10 @@ export const canonicalDocumentSchema = {
|
|
|
1717
1877
|
"standalone-page",
|
|
1718
1878
|
],
|
|
1719
1879
|
},
|
|
1880
|
+
assignmentMediaBaseUrl: {
|
|
1881
|
+
type: "string",
|
|
1882
|
+
description: "Completed assignment JSON directory supplied by the media-page producer.",
|
|
1883
|
+
},
|
|
1720
1884
|
authors: {
|
|
1721
1885
|
type: "array",
|
|
1722
1886
|
items: {
|
|
@@ -1767,6 +1931,28 @@ export const canonicalDocumentSchema = {
|
|
|
1767
1931
|
"layout",
|
|
1768
1932
|
],
|
|
1769
1933
|
additionalProperties: {},
|
|
1934
|
+
allOf: [
|
|
1935
|
+
{
|
|
1936
|
+
if: {
|
|
1937
|
+
properties: {
|
|
1938
|
+
layout: {
|
|
1939
|
+
const: "media-page",
|
|
1940
|
+
},
|
|
1941
|
+
},
|
|
1942
|
+
required: ["layout"],
|
|
1943
|
+
},
|
|
1944
|
+
then: {
|
|
1945
|
+
required: ["assignmentMediaBaseUrl"],
|
|
1946
|
+
properties: {
|
|
1947
|
+
assignmentMediaBaseUrl: {
|
|
1948
|
+
type: "string",
|
|
1949
|
+
format: "uri",
|
|
1950
|
+
pattern: "^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\\s\\\\]+(?:/[^?#\\s\\\\]*)?/contents/assignments/(?![\\s\\S])",
|
|
1951
|
+
},
|
|
1952
|
+
},
|
|
1953
|
+
},
|
|
1954
|
+
},
|
|
1955
|
+
],
|
|
1770
1956
|
},
|
|
1771
1957
|
],
|
|
1772
1958
|
title: "Cronkite canonical document",
|