@fifthbell/brokaw 0.1.73 → 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 +1 -1
- package/dist/captured-catalog.js +19 -5
- package/dist/cronkite-manifest.json +1 -1
- package/dist/ignored-input.d.ts +14 -0
- package/dist/ignored-input.js +48 -0
- package/dist/live-program-page/index.html +2 -2
- package/dist/live-program-page/live-program-manifest.json +6 -6
- package/dist/live-program-page/live-program.v0.1.74.css +3 -0
- package/dist/live-program-release.js +6 -3
- package/dist/renderer.core.js +53 -14
- 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 +42 -22
- 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/types/canonical-document-schema.generated.d.ts +42 -30
- package/dist/types/canonical-document-schema.generated.js +78 -38
- package/dist/types/canonical-document.generated.d.ts +42 -8
- package/dist/types/live-program-release-input.generated.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/compiled.css +1 -1
- package/src/templates/partials/blocks/tiktok.hbs +10 -8
- 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/shell/captured-catalog.hbs +1 -1
- package/dist/live-program-page/live-program.v0.1.73.css +0 -3
- /package/dist/live-program-page/{live-program.v0.1.73.js → live-program.v0.1.74.js} +0 -0
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"capturedSelection": {
|
|
40
40
|
"type": "object",
|
|
41
|
-
"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.",
|
|
41
|
+
"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.",
|
|
42
42
|
"properties": {
|
|
43
43
|
"selectionId": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
44
44
|
"catalogUrl": { "type": "string", "format": "uri", "pattern": "^https://" },
|
|
@@ -52,12 +52,11 @@
|
|
|
52
52
|
"build": { "type": "string", "minLength": 1, "maxLength": 200 }
|
|
53
53
|
},
|
|
54
54
|
"required": ["rendererVersion", "templateVersion", "tenant", "origin", "build"],
|
|
55
|
-
"
|
|
55
|
+
"description": "Members other than these are ignored."
|
|
56
56
|
},
|
|
57
57
|
"locale": { "type": "string", "enum": ["en", "es", "it"] }
|
|
58
58
|
},
|
|
59
|
-
"required": ["selectionId", "catalogUrl", "context", "locale"]
|
|
60
|
-
"additionalProperties": false
|
|
59
|
+
"required": ["selectionId", "catalogUrl", "context", "locale"]
|
|
61
60
|
},
|
|
62
61
|
"rumConfig": {
|
|
63
62
|
"type": "object",
|
|
@@ -139,11 +138,9 @@
|
|
|
139
138
|
"type": { "type": "string", "const": "heading" },
|
|
140
139
|
"text": { "type": "string" },
|
|
141
140
|
"level": {
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
{ "type": "number", "const": 4 }
|
|
146
|
-
]
|
|
141
|
+
"type": "number",
|
|
142
|
+
"description": "2, 3 or 4. Any other number renders as 2.",
|
|
143
|
+
"examples": [2, 3, 4]
|
|
147
144
|
}
|
|
148
145
|
},
|
|
149
146
|
"required": ["type", "text"]
|
|
@@ -185,7 +182,8 @@
|
|
|
185
182
|
"title": { "type": "string" },
|
|
186
183
|
"tone": {
|
|
187
184
|
"type": "string",
|
|
188
|
-
"
|
|
185
|
+
"description": "neutral, info, warning or success. Any other value renders as neutral.",
|
|
186
|
+
"examples": ["neutral", "info", "warning", "success"]
|
|
189
187
|
},
|
|
190
188
|
"html": { "type": "string" }
|
|
191
189
|
},
|
|
@@ -308,6 +306,14 @@
|
|
|
308
306
|
"attribution": { "type": "string" }
|
|
309
307
|
},
|
|
310
308
|
"required": ["type", "text"]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "object",
|
|
312
|
+
"description": "A block type this contract does not define. It is accepted and not rendered.",
|
|
313
|
+
"properties": {
|
|
314
|
+
"type": { "type": "string", "not": { "enum": ["richText", "heading", "image", "list", "divider", "infoBox", "keyPoints", "dataTable", "liveUpdate", "audio", "youtube", "x", "instagram", "tiktok", "spotify", "pullQuote"] } }
|
|
315
|
+
},
|
|
316
|
+
"required": ["type"]
|
|
311
317
|
}
|
|
312
318
|
]
|
|
313
319
|
}
|
|
@@ -414,7 +420,11 @@
|
|
|
414
420
|
"required": ["image"]
|
|
415
421
|
}
|
|
416
422
|
},
|
|
417
|
-
"heroLayout": {
|
|
423
|
+
"heroLayout": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"description": "spotlight or editorial. Any other value is treated as absent.",
|
|
426
|
+
"examples": ["spotlight", "editorial"]
|
|
427
|
+
},
|
|
418
428
|
"heroCategories": {
|
|
419
429
|
"type": "array",
|
|
420
430
|
"items": {
|
|
@@ -596,7 +606,7 @@
|
|
|
596
606
|
},
|
|
597
607
|
"capturedSelection": {
|
|
598
608
|
"type": "object",
|
|
599
|
-
"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.",
|
|
609
|
+
"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.",
|
|
600
610
|
"properties": {
|
|
601
611
|
"selectionId": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
602
612
|
"catalogUrl": { "type": "string", "format": "uri", "pattern": "^https://" },
|
|
@@ -610,12 +620,11 @@
|
|
|
610
620
|
"build": { "type": "string", "minLength": 1, "maxLength": 200 }
|
|
611
621
|
},
|
|
612
622
|
"required": ["rendererVersion", "templateVersion", "tenant", "origin", "build"],
|
|
613
|
-
"
|
|
623
|
+
"description": "Members other than these are ignored."
|
|
614
624
|
},
|
|
615
625
|
"locale": { "type": "string", "enum": ["en", "es", "it"] }
|
|
616
626
|
},
|
|
617
|
-
"required": ["selectionId", "catalogUrl", "context", "locale"]
|
|
618
|
-
"additionalProperties": false
|
|
627
|
+
"required": ["selectionId", "catalogUrl", "context", "locale"]
|
|
619
628
|
},
|
|
620
629
|
"rumConfig": {
|
|
621
630
|
"type": "object",
|
|
@@ -697,11 +706,9 @@
|
|
|
697
706
|
"type": { "type": "string", "const": "heading" },
|
|
698
707
|
"text": { "type": "string" },
|
|
699
708
|
"level": {
|
|
700
|
-
"
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
{ "type": "number", "const": 4 }
|
|
704
|
-
]
|
|
709
|
+
"type": "number",
|
|
710
|
+
"description": "2, 3 or 4. Any other number renders as 2.",
|
|
711
|
+
"examples": [2, 3, 4]
|
|
705
712
|
}
|
|
706
713
|
},
|
|
707
714
|
"required": ["type", "text"]
|
|
@@ -743,7 +750,8 @@
|
|
|
743
750
|
"title": { "type": "string" },
|
|
744
751
|
"tone": {
|
|
745
752
|
"type": "string",
|
|
746
|
-
"
|
|
753
|
+
"description": "neutral, info, warning or success. Any other value renders as neutral.",
|
|
754
|
+
"examples": ["neutral", "info", "warning", "success"]
|
|
747
755
|
},
|
|
748
756
|
"html": { "type": "string" }
|
|
749
757
|
},
|
|
@@ -866,6 +874,14 @@
|
|
|
866
874
|
"attribution": { "type": "string" }
|
|
867
875
|
},
|
|
868
876
|
"required": ["type", "text"]
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"type": "object",
|
|
880
|
+
"description": "A block type this contract does not define. It is accepted and not rendered.",
|
|
881
|
+
"properties": {
|
|
882
|
+
"type": { "type": "string", "not": { "enum": ["richText", "heading", "image", "list", "divider", "infoBox", "keyPoints", "dataTable", "liveUpdate", "audio", "youtube", "x", "instagram", "tiktok", "spotify", "pullQuote"] } }
|
|
883
|
+
},
|
|
884
|
+
"required": ["type"]
|
|
869
885
|
}
|
|
870
886
|
]
|
|
871
887
|
}
|
|
@@ -972,7 +988,11 @@
|
|
|
972
988
|
"required": ["image"]
|
|
973
989
|
}
|
|
974
990
|
},
|
|
975
|
-
"heroLayout": {
|
|
991
|
+
"heroLayout": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"description": "spotlight or editorial. Any other value is treated as absent.",
|
|
994
|
+
"examples": ["spotlight", "editorial"]
|
|
995
|
+
},
|
|
976
996
|
"heroCategories": {
|
|
977
997
|
"type": "array",
|
|
978
998
|
"items": {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"$id": "https://fifthbell.com/schemas/social-image-input-v1.schema.json",
|
|
4
4
|
"title": "Fifthbell social image input",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
6
|
"required": ["imageUrl", "categoryName", "title", "qrCodeHtml"],
|
|
8
7
|
"properties": {
|
|
9
8
|
"imageUrl": { "type": "string", "format": "uri" },
|
|
@@ -56,7 +56,7 @@ export declare const canonicalDocumentSchema: {
|
|
|
56
56
|
};
|
|
57
57
|
readonly capturedSelection: {
|
|
58
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.";
|
|
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
60
|
readonly properties: {
|
|
61
61
|
readonly selectionId: {
|
|
62
62
|
readonly type: "string";
|
|
@@ -98,7 +98,7 @@ export declare const canonicalDocumentSchema: {
|
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
readonly required: readonly ["rendererVersion", "templateVersion", "tenant", "origin", "build"];
|
|
101
|
-
readonly
|
|
101
|
+
readonly description: "Members other than these are ignored.";
|
|
102
102
|
};
|
|
103
103
|
readonly locale: {
|
|
104
104
|
readonly type: "string";
|
|
@@ -106,7 +106,6 @@ export declare const canonicalDocumentSchema: {
|
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
108
|
readonly required: readonly ["selectionId", "catalogUrl", "context", "locale"];
|
|
109
|
-
readonly additionalProperties: false;
|
|
110
109
|
};
|
|
111
110
|
readonly rumConfig: {
|
|
112
111
|
readonly type: "object";
|
|
@@ -236,16 +235,9 @@ export declare const canonicalDocumentSchema: {
|
|
|
236
235
|
readonly type: "string";
|
|
237
236
|
};
|
|
238
237
|
readonly level: {
|
|
239
|
-
readonly
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}, {
|
|
243
|
-
readonly type: "number";
|
|
244
|
-
readonly const: 3;
|
|
245
|
-
}, {
|
|
246
|
-
readonly type: "number";
|
|
247
|
-
readonly const: 4;
|
|
248
|
-
}];
|
|
238
|
+
readonly type: "number";
|
|
239
|
+
readonly description: "2, 3 or 4. Any other number renders as 2.";
|
|
240
|
+
readonly examples: readonly [2, 3, 4];
|
|
249
241
|
};
|
|
250
242
|
};
|
|
251
243
|
readonly required: readonly ["type", "text"];
|
|
@@ -308,7 +300,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
308
300
|
};
|
|
309
301
|
readonly tone: {
|
|
310
302
|
readonly type: "string";
|
|
311
|
-
readonly
|
|
303
|
+
readonly description: "neutral, info, warning or success. Any other value renders as neutral.";
|
|
304
|
+
readonly examples: readonly ["neutral", "info", "warning", "success"];
|
|
312
305
|
};
|
|
313
306
|
readonly html: {
|
|
314
307
|
readonly type: "string";
|
|
@@ -509,6 +502,18 @@ export declare const canonicalDocumentSchema: {
|
|
|
509
502
|
};
|
|
510
503
|
};
|
|
511
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"];
|
|
512
517
|
}];
|
|
513
518
|
};
|
|
514
519
|
};
|
|
@@ -667,7 +672,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
667
672
|
};
|
|
668
673
|
readonly heroLayout: {
|
|
669
674
|
readonly type: "string";
|
|
670
|
-
readonly
|
|
675
|
+
readonly description: "spotlight or editorial. Any other value is treated as absent.";
|
|
676
|
+
readonly examples: readonly ["spotlight", "editorial"];
|
|
671
677
|
};
|
|
672
678
|
readonly heroCategories: {
|
|
673
679
|
readonly type: "array";
|
|
@@ -944,7 +950,7 @@ export declare const canonicalDocumentSchema: {
|
|
|
944
950
|
};
|
|
945
951
|
readonly capturedSelection: {
|
|
946
952
|
readonly type: "object";
|
|
947
|
-
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.";
|
|
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.";
|
|
948
954
|
readonly properties: {
|
|
949
955
|
readonly selectionId: {
|
|
950
956
|
readonly type: "string";
|
|
@@ -986,7 +992,7 @@ export declare const canonicalDocumentSchema: {
|
|
|
986
992
|
};
|
|
987
993
|
};
|
|
988
994
|
readonly required: readonly ["rendererVersion", "templateVersion", "tenant", "origin", "build"];
|
|
989
|
-
readonly
|
|
995
|
+
readonly description: "Members other than these are ignored.";
|
|
990
996
|
};
|
|
991
997
|
readonly locale: {
|
|
992
998
|
readonly type: "string";
|
|
@@ -994,7 +1000,6 @@ export declare const canonicalDocumentSchema: {
|
|
|
994
1000
|
};
|
|
995
1001
|
};
|
|
996
1002
|
readonly required: readonly ["selectionId", "catalogUrl", "context", "locale"];
|
|
997
|
-
readonly additionalProperties: false;
|
|
998
1003
|
};
|
|
999
1004
|
readonly rumConfig: {
|
|
1000
1005
|
readonly type: "object";
|
|
@@ -1124,16 +1129,9 @@ export declare const canonicalDocumentSchema: {
|
|
|
1124
1129
|
readonly type: "string";
|
|
1125
1130
|
};
|
|
1126
1131
|
readonly level: {
|
|
1127
|
-
readonly
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
}, {
|
|
1131
|
-
readonly type: "number";
|
|
1132
|
-
readonly const: 3;
|
|
1133
|
-
}, {
|
|
1134
|
-
readonly type: "number";
|
|
1135
|
-
readonly const: 4;
|
|
1136
|
-
}];
|
|
1132
|
+
readonly type: "number";
|
|
1133
|
+
readonly description: "2, 3 or 4. Any other number renders as 2.";
|
|
1134
|
+
readonly examples: readonly [2, 3, 4];
|
|
1137
1135
|
};
|
|
1138
1136
|
};
|
|
1139
1137
|
readonly required: readonly ["type", "text"];
|
|
@@ -1196,7 +1194,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
1196
1194
|
};
|
|
1197
1195
|
readonly tone: {
|
|
1198
1196
|
readonly type: "string";
|
|
1199
|
-
readonly
|
|
1197
|
+
readonly description: "neutral, info, warning or success. Any other value renders as neutral.";
|
|
1198
|
+
readonly examples: readonly ["neutral", "info", "warning", "success"];
|
|
1200
1199
|
};
|
|
1201
1200
|
readonly html: {
|
|
1202
1201
|
readonly type: "string";
|
|
@@ -1397,6 +1396,18 @@ export declare const canonicalDocumentSchema: {
|
|
|
1397
1396
|
};
|
|
1398
1397
|
};
|
|
1399
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"];
|
|
1400
1411
|
}];
|
|
1401
1412
|
};
|
|
1402
1413
|
};
|
|
@@ -1555,7 +1566,8 @@ export declare const canonicalDocumentSchema: {
|
|
|
1555
1566
|
};
|
|
1556
1567
|
readonly heroLayout: {
|
|
1557
1568
|
readonly type: "string";
|
|
1558
|
-
readonly
|
|
1569
|
+
readonly description: "spotlight or editorial. Any other value is treated as absent.";
|
|
1570
|
+
readonly examples: readonly ["spotlight", "editorial"];
|
|
1559
1571
|
};
|
|
1560
1572
|
readonly heroCategories: {
|
|
1561
1573
|
readonly type: "array";
|
|
@@ -58,7 +58,7 @@ export const canonicalDocumentSchema = {
|
|
|
58
58
|
},
|
|
59
59
|
capturedSelection: {
|
|
60
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.",
|
|
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
62
|
properties: {
|
|
63
63
|
selectionId: {
|
|
64
64
|
type: "string",
|
|
@@ -106,7 +106,7 @@ export const canonicalDocumentSchema = {
|
|
|
106
106
|
"origin",
|
|
107
107
|
"build",
|
|
108
108
|
],
|
|
109
|
-
|
|
109
|
+
description: "Members other than these are ignored.",
|
|
110
110
|
},
|
|
111
111
|
locale: {
|
|
112
112
|
type: "string",
|
|
@@ -114,7 +114,6 @@ export const canonicalDocumentSchema = {
|
|
|
114
114
|
},
|
|
115
115
|
},
|
|
116
116
|
required: ["selectionId", "catalogUrl", "context", "locale"],
|
|
117
|
-
additionalProperties: false,
|
|
118
117
|
},
|
|
119
118
|
rumConfig: {
|
|
120
119
|
type: "object",
|
|
@@ -252,20 +251,9 @@ export const canonicalDocumentSchema = {
|
|
|
252
251
|
type: "string",
|
|
253
252
|
},
|
|
254
253
|
level: {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
const: 2,
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
type: "number",
|
|
262
|
-
const: 3,
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
type: "number",
|
|
266
|
-
const: 4,
|
|
267
|
-
},
|
|
268
|
-
],
|
|
254
|
+
type: "number",
|
|
255
|
+
description: "2, 3 or 4. Any other number renders as 2.",
|
|
256
|
+
examples: [2, 3, 4],
|
|
269
257
|
},
|
|
270
258
|
},
|
|
271
259
|
required: ["type", "text"],
|
|
@@ -332,7 +320,8 @@ export const canonicalDocumentSchema = {
|
|
|
332
320
|
},
|
|
333
321
|
tone: {
|
|
334
322
|
type: "string",
|
|
335
|
-
|
|
323
|
+
description: "neutral, info, warning or success. Any other value renders as neutral.",
|
|
324
|
+
examples: ["neutral", "info", "warning", "success"],
|
|
336
325
|
},
|
|
337
326
|
html: {
|
|
338
327
|
type: "string",
|
|
@@ -544,6 +533,36 @@ export const canonicalDocumentSchema = {
|
|
|
544
533
|
},
|
|
545
534
|
required: ["type", "text"],
|
|
546
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
|
+
},
|
|
547
566
|
],
|
|
548
567
|
},
|
|
549
568
|
},
|
|
@@ -702,7 +721,8 @@ export const canonicalDocumentSchema = {
|
|
|
702
721
|
},
|
|
703
722
|
heroLayout: {
|
|
704
723
|
type: "string",
|
|
705
|
-
|
|
724
|
+
description: "spotlight or editorial. Any other value is treated as absent.",
|
|
725
|
+
examples: ["spotlight", "editorial"],
|
|
706
726
|
},
|
|
707
727
|
heroCategories: {
|
|
708
728
|
type: "array",
|
|
@@ -995,7 +1015,7 @@ export const canonicalDocumentSchema = {
|
|
|
995
1015
|
},
|
|
996
1016
|
capturedSelection: {
|
|
997
1017
|
type: "object",
|
|
998
|
-
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.",
|
|
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.",
|
|
999
1019
|
properties: {
|
|
1000
1020
|
selectionId: {
|
|
1001
1021
|
type: "string",
|
|
@@ -1043,7 +1063,7 @@ export const canonicalDocumentSchema = {
|
|
|
1043
1063
|
"origin",
|
|
1044
1064
|
"build",
|
|
1045
1065
|
],
|
|
1046
|
-
|
|
1066
|
+
description: "Members other than these are ignored.",
|
|
1047
1067
|
},
|
|
1048
1068
|
locale: {
|
|
1049
1069
|
type: "string",
|
|
@@ -1051,7 +1071,6 @@ export const canonicalDocumentSchema = {
|
|
|
1051
1071
|
},
|
|
1052
1072
|
},
|
|
1053
1073
|
required: ["selectionId", "catalogUrl", "context", "locale"],
|
|
1054
|
-
additionalProperties: false,
|
|
1055
1074
|
},
|
|
1056
1075
|
rumConfig: {
|
|
1057
1076
|
type: "object",
|
|
@@ -1189,20 +1208,9 @@ export const canonicalDocumentSchema = {
|
|
|
1189
1208
|
type: "string",
|
|
1190
1209
|
},
|
|
1191
1210
|
level: {
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
const: 2,
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
type: "number",
|
|
1199
|
-
const: 3,
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
type: "number",
|
|
1203
|
-
const: 4,
|
|
1204
|
-
},
|
|
1205
|
-
],
|
|
1211
|
+
type: "number",
|
|
1212
|
+
description: "2, 3 or 4. Any other number renders as 2.",
|
|
1213
|
+
examples: [2, 3, 4],
|
|
1206
1214
|
},
|
|
1207
1215
|
},
|
|
1208
1216
|
required: ["type", "text"],
|
|
@@ -1269,7 +1277,8 @@ export const canonicalDocumentSchema = {
|
|
|
1269
1277
|
},
|
|
1270
1278
|
tone: {
|
|
1271
1279
|
type: "string",
|
|
1272
|
-
|
|
1280
|
+
description: "neutral, info, warning or success. Any other value renders as neutral.",
|
|
1281
|
+
examples: ["neutral", "info", "warning", "success"],
|
|
1273
1282
|
},
|
|
1274
1283
|
html: {
|
|
1275
1284
|
type: "string",
|
|
@@ -1481,6 +1490,36 @@ export const canonicalDocumentSchema = {
|
|
|
1481
1490
|
},
|
|
1482
1491
|
required: ["type", "text"],
|
|
1483
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
|
+
},
|
|
1484
1523
|
],
|
|
1485
1524
|
},
|
|
1486
1525
|
},
|
|
@@ -1639,7 +1678,8 @@ export const canonicalDocumentSchema = {
|
|
|
1639
1678
|
},
|
|
1640
1679
|
heroLayout: {
|
|
1641
1680
|
type: "string",
|
|
1642
|
-
|
|
1681
|
+
description: "spotlight or editorial. Any other value is treated as absent.",
|
|
1682
|
+
examples: ["spotlight", "editorial"],
|
|
1643
1683
|
},
|
|
1644
1684
|
heroCategories: {
|
|
1645
1685
|
type: "array",
|