@fifthbell/brokaw 0.1.68 → 0.1.70
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/cronkite-manifest.d.ts +205 -69
- package/dist/cronkite-manifest.js +288 -111
- package/dist/cronkite-manifest.json +1024 -125
- package/dist/instagram-image-template.d.ts +0 -1
- package/dist/instagram-image-template.js +0 -4
- 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 +6 -6
- package/dist/live-program-page/live-program.v0.1.70.css +3 -0
- package/dist/manifest-validation.d.ts +2 -2
- package/dist/manifest-validation.js +12 -16
- package/dist/outlet-config.d.ts +0 -1
- package/dist/outlet-config.js +0 -1
- package/dist/renderer.browser.js +12 -0
- package/dist/renderer.core.js +42 -258
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +1 -1
- package/dist/schemas/canonical-document.schema.json +30 -10
- package/dist/schemas/cronkite-manifest.schema.json +84 -450
- package/dist/schemas/social-image-input.schema.json +14 -0
- package/dist/search-copy.d.ts +65 -0
- package/dist/search-copy.js +65 -0
- package/dist/types/canonical-document-schema.generated.d.ts +48 -4
- package/dist/types/canonical-document-schema.generated.js +48 -4
- package/dist/types/canonical-document.generated.d.ts +14 -0
- package/dist/types/cronkite-manifest.generated.d.ts +101 -297
- package/package.json +2 -2
- package/src/partial-deps.json +221 -50
- package/src/styles/compiled.css +1 -1
- package/src/templates/partials/blocks/tiktok.hbs +1 -1
- package/src/templates/partials/blocks/x.hbs +4 -4
- package/src/templates/partials/components/article-main.hbs +1 -1
- package/src/templates/partials/components/body-block.hbs +31 -0
- package/src/templates/partials/components/breaking-news/live-updates-column.hbs +2 -2
- package/src/templates/partials/components/breaking-news.hbs +6 -8
- package/src/templates/partials/components/editorial-hero.hbs +2 -2
- package/src/templates/partials/components/home/landing.hbs +1 -1
- package/src/templates/partials/components/home/main.hbs +4 -1
- package/src/templates/partials/components/live-story/main.hbs +8 -18
- package/src/templates/partials/components/not-found/main.hbs +4 -4
- package/src/templates/partials/components/search/main.hbs +25 -15
- package/src/templates/partials/components/snack-meta-image-row.hbs +21 -0
- package/src/templates/partials/components/snack-meta-inline.hbs +43 -0
- package/src/templates/partials/components/snack-top-story.hbs +1 -0
- package/src/templates/partials/components/snack.hbs +3 -61
- package/src/templates/partials/components/spotlight-hero-slides.hbs +1 -0
- package/src/templates/partials/components/spotlight-hero.hbs +2 -2
- package/src/templates/partials/components/standalone-main.hbs +1 -1
- package/src/templates/partials/shell/doc-start-404.hbs +2 -4
- package/src/templates/partials/shell/doc-start-standard.hbs +9 -11
- package/src/templates/partials/shell/rum-loader.hbs +77 -0
- package/src/templates/templates/instagram-image.hbs +0 -2
- package/dist/live-program-page/live-program.v0.1.68.css +0 -3
- /package/dist/live-program-page/{live-program.v0.1.68.js → live-program.v0.1.70.js} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const searchCopyByLanguage: {
|
|
2
|
+
readonly en: {
|
|
3
|
+
readonly eyebrow: "Search";
|
|
4
|
+
readonly heading: "Find Stories Fast";
|
|
5
|
+
readonly intro: "Search titles and excerpts across current-language coverage.";
|
|
6
|
+
readonly placeholder: "Search stories...";
|
|
7
|
+
readonly submit: "Search";
|
|
8
|
+
readonly emptyPrompt: "Start typing to search in this language.";
|
|
9
|
+
readonly emptyState: "No query yet.";
|
|
10
|
+
readonly noResults: "No matches for";
|
|
11
|
+
readonly tryAnother: "Try a different keyword.";
|
|
12
|
+
readonly resultSingular: "result";
|
|
13
|
+
readonly resultPlural: "results";
|
|
14
|
+
readonly forQuery: "for";
|
|
15
|
+
readonly page: "Page";
|
|
16
|
+
readonly of: "of";
|
|
17
|
+
readonly previous: "Previous";
|
|
18
|
+
readonly next: "Next";
|
|
19
|
+
readonly searching: "Searching...";
|
|
20
|
+
readonly unavailable: "Search is temporarily unavailable.";
|
|
21
|
+
readonly loadFailure: "We could not load the search index right now.";
|
|
22
|
+
};
|
|
23
|
+
readonly es: {
|
|
24
|
+
readonly eyebrow: "Buscar";
|
|
25
|
+
readonly heading: "Encuentra noticias rápido";
|
|
26
|
+
readonly intro: "Busca títulos y resúmenes en la cobertura de este idioma.";
|
|
27
|
+
readonly placeholder: "Buscar noticias...";
|
|
28
|
+
readonly submit: "Buscar";
|
|
29
|
+
readonly emptyPrompt: "Escribe para buscar en este idioma.";
|
|
30
|
+
readonly emptyState: "Aún no has escrito una búsqueda.";
|
|
31
|
+
readonly noResults: "No hay resultados para";
|
|
32
|
+
readonly tryAnother: "Prueba con otra palabra clave.";
|
|
33
|
+
readonly resultSingular: "resultado";
|
|
34
|
+
readonly resultPlural: "resultados";
|
|
35
|
+
readonly forQuery: "para";
|
|
36
|
+
readonly page: "Página";
|
|
37
|
+
readonly of: "de";
|
|
38
|
+
readonly previous: "Anterior";
|
|
39
|
+
readonly next: "Siguiente";
|
|
40
|
+
readonly searching: "Buscando...";
|
|
41
|
+
readonly unavailable: "La búsqueda no está disponible temporalmente.";
|
|
42
|
+
readonly loadFailure: "No pudimos cargar el índice de búsqueda en este momento.";
|
|
43
|
+
};
|
|
44
|
+
readonly it: {
|
|
45
|
+
readonly eyebrow: "Cerca";
|
|
46
|
+
readonly heading: "Trova rapidamente le notizie";
|
|
47
|
+
readonly intro: "Cerca nei titoli e nei sommari della copertura in questa lingua.";
|
|
48
|
+
readonly placeholder: "Cerca notizie...";
|
|
49
|
+
readonly submit: "Cerca";
|
|
50
|
+
readonly emptyPrompt: "Scrivi per cercare in questa lingua.";
|
|
51
|
+
readonly emptyState: "Non hai ancora inserito una ricerca.";
|
|
52
|
+
readonly noResults: "Nessun risultato per";
|
|
53
|
+
readonly tryAnother: "Prova un'altra parola chiave.";
|
|
54
|
+
readonly resultSingular: "risultato";
|
|
55
|
+
readonly resultPlural: "risultati";
|
|
56
|
+
readonly forQuery: "per";
|
|
57
|
+
readonly page: "Pagina";
|
|
58
|
+
readonly of: "di";
|
|
59
|
+
readonly previous: "Precedente";
|
|
60
|
+
readonly next: "Successivo";
|
|
61
|
+
readonly searching: "Ricerca in corso...";
|
|
62
|
+
readonly unavailable: "La ricerca è temporaneamente non disponibile.";
|
|
63
|
+
readonly loadFailure: "Non è stato possibile caricare l’indice di ricerca.";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export const searchCopyByLanguage = {
|
|
2
|
+
en: {
|
|
3
|
+
eyebrow: 'Search',
|
|
4
|
+
heading: 'Find Stories Fast',
|
|
5
|
+
intro: 'Search titles and excerpts across current-language coverage.',
|
|
6
|
+
placeholder: 'Search stories...',
|
|
7
|
+
submit: 'Search',
|
|
8
|
+
emptyPrompt: 'Start typing to search in this language.',
|
|
9
|
+
emptyState: 'No query yet.',
|
|
10
|
+
noResults: 'No matches for',
|
|
11
|
+
tryAnother: 'Try a different keyword.',
|
|
12
|
+
resultSingular: 'result',
|
|
13
|
+
resultPlural: 'results',
|
|
14
|
+
forQuery: 'for',
|
|
15
|
+
page: 'Page',
|
|
16
|
+
of: 'of',
|
|
17
|
+
previous: 'Previous',
|
|
18
|
+
next: 'Next',
|
|
19
|
+
searching: 'Searching...',
|
|
20
|
+
unavailable: 'Search is temporarily unavailable.',
|
|
21
|
+
loadFailure: 'We could not load the search index right now.',
|
|
22
|
+
},
|
|
23
|
+
es: {
|
|
24
|
+
eyebrow: 'Buscar',
|
|
25
|
+
heading: 'Encuentra noticias rápido',
|
|
26
|
+
intro: 'Busca títulos y resúmenes en la cobertura de este idioma.',
|
|
27
|
+
placeholder: 'Buscar noticias...',
|
|
28
|
+
submit: 'Buscar',
|
|
29
|
+
emptyPrompt: 'Escribe para buscar en este idioma.',
|
|
30
|
+
emptyState: 'Aún no has escrito una búsqueda.',
|
|
31
|
+
noResults: 'No hay resultados para',
|
|
32
|
+
tryAnother: 'Prueba con otra palabra clave.',
|
|
33
|
+
resultSingular: 'resultado',
|
|
34
|
+
resultPlural: 'resultados',
|
|
35
|
+
forQuery: 'para',
|
|
36
|
+
page: 'Página',
|
|
37
|
+
of: 'de',
|
|
38
|
+
previous: 'Anterior',
|
|
39
|
+
next: 'Siguiente',
|
|
40
|
+
searching: 'Buscando...',
|
|
41
|
+
unavailable: 'La búsqueda no está disponible temporalmente.',
|
|
42
|
+
loadFailure: 'No pudimos cargar el índice de búsqueda en este momento.',
|
|
43
|
+
},
|
|
44
|
+
it: {
|
|
45
|
+
eyebrow: 'Cerca',
|
|
46
|
+
heading: 'Trova rapidamente le notizie',
|
|
47
|
+
intro: 'Cerca nei titoli e nei sommari della copertura in questa lingua.',
|
|
48
|
+
placeholder: 'Cerca notizie...',
|
|
49
|
+
submit: 'Cerca',
|
|
50
|
+
emptyPrompt: 'Scrivi per cercare in questa lingua.',
|
|
51
|
+
emptyState: 'Non hai ancora inserito una ricerca.',
|
|
52
|
+
noResults: 'Nessun risultato per',
|
|
53
|
+
tryAnother: "Prova un'altra parola chiave.",
|
|
54
|
+
resultSingular: 'risultato',
|
|
55
|
+
resultPlural: 'risultati',
|
|
56
|
+
forQuery: 'per',
|
|
57
|
+
page: 'Pagina',
|
|
58
|
+
of: 'di',
|
|
59
|
+
previous: 'Precedente',
|
|
60
|
+
next: 'Successivo',
|
|
61
|
+
searching: 'Ricerca in corso...',
|
|
62
|
+
unavailable: 'La ricerca è temporaneamente non disponibile.',
|
|
63
|
+
loadFailure: 'Non è stato possibile caricare l’indice di ricerca.',
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -391,8 +391,12 @@ export declare const canonicalDocumentSchema: {
|
|
|
391
391
|
readonly type: "string";
|
|
392
392
|
readonly format: "uri";
|
|
393
393
|
};
|
|
394
|
+
readonly tweetId: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly pattern: "^[0-9]+$";
|
|
397
|
+
};
|
|
394
398
|
};
|
|
395
|
-
readonly required: readonly ["type", "url"];
|
|
399
|
+
readonly required: readonly ["type", "url", "tweetId"];
|
|
396
400
|
}, {
|
|
397
401
|
readonly type: "object";
|
|
398
402
|
readonly properties: {
|
|
@@ -417,8 +421,12 @@ export declare const canonicalDocumentSchema: {
|
|
|
417
421
|
readonly type: "string";
|
|
418
422
|
readonly format: "uri";
|
|
419
423
|
};
|
|
424
|
+
readonly videoId: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly pattern: "^[0-9]+$";
|
|
427
|
+
};
|
|
420
428
|
};
|
|
421
|
-
readonly required: readonly ["type", "url"];
|
|
429
|
+
readonly required: readonly ["type", "url", "videoId"];
|
|
422
430
|
}, {
|
|
423
431
|
readonly type: "object";
|
|
424
432
|
readonly properties: {
|
|
@@ -462,6 +470,20 @@ export declare const canonicalDocumentSchema: {
|
|
|
462
470
|
readonly ogImage: {
|
|
463
471
|
readonly type: "string";
|
|
464
472
|
};
|
|
473
|
+
readonly socialImage: {
|
|
474
|
+
readonly type: "object";
|
|
475
|
+
readonly properties: {
|
|
476
|
+
readonly url: {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly minLength: 1;
|
|
479
|
+
};
|
|
480
|
+
readonly alt: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly minLength: 1;
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly required: readonly ["url", "alt"];
|
|
486
|
+
};
|
|
465
487
|
};
|
|
466
488
|
};
|
|
467
489
|
readonly navigation: {
|
|
@@ -1203,8 +1225,12 @@ export declare const canonicalDocumentSchema: {
|
|
|
1203
1225
|
readonly type: "string";
|
|
1204
1226
|
readonly format: "uri";
|
|
1205
1227
|
};
|
|
1228
|
+
readonly tweetId: {
|
|
1229
|
+
readonly type: "string";
|
|
1230
|
+
readonly pattern: "^[0-9]+$";
|
|
1231
|
+
};
|
|
1206
1232
|
};
|
|
1207
|
-
readonly required: readonly ["type", "url"];
|
|
1233
|
+
readonly required: readonly ["type", "url", "tweetId"];
|
|
1208
1234
|
}, {
|
|
1209
1235
|
readonly type: "object";
|
|
1210
1236
|
readonly properties: {
|
|
@@ -1229,8 +1255,12 @@ export declare const canonicalDocumentSchema: {
|
|
|
1229
1255
|
readonly type: "string";
|
|
1230
1256
|
readonly format: "uri";
|
|
1231
1257
|
};
|
|
1258
|
+
readonly videoId: {
|
|
1259
|
+
readonly type: "string";
|
|
1260
|
+
readonly pattern: "^[0-9]+$";
|
|
1261
|
+
};
|
|
1232
1262
|
};
|
|
1233
|
-
readonly required: readonly ["type", "url"];
|
|
1263
|
+
readonly required: readonly ["type", "url", "videoId"];
|
|
1234
1264
|
}, {
|
|
1235
1265
|
readonly type: "object";
|
|
1236
1266
|
readonly properties: {
|
|
@@ -1274,6 +1304,20 @@ export declare const canonicalDocumentSchema: {
|
|
|
1274
1304
|
readonly ogImage: {
|
|
1275
1305
|
readonly type: "string";
|
|
1276
1306
|
};
|
|
1307
|
+
readonly socialImage: {
|
|
1308
|
+
readonly type: "object";
|
|
1309
|
+
readonly properties: {
|
|
1310
|
+
readonly url: {
|
|
1311
|
+
readonly type: "string";
|
|
1312
|
+
readonly minLength: 1;
|
|
1313
|
+
};
|
|
1314
|
+
readonly alt: {
|
|
1315
|
+
readonly type: "string";
|
|
1316
|
+
readonly minLength: 1;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
readonly required: readonly ["url", "alt"];
|
|
1320
|
+
};
|
|
1277
1321
|
};
|
|
1278
1322
|
};
|
|
1279
1323
|
readonly navigation: {
|
|
@@ -415,8 +415,12 @@ export const canonicalDocumentSchema = {
|
|
|
415
415
|
type: "string",
|
|
416
416
|
format: "uri",
|
|
417
417
|
},
|
|
418
|
+
tweetId: {
|
|
419
|
+
type: "string",
|
|
420
|
+
pattern: "^[0-9]+$",
|
|
421
|
+
},
|
|
418
422
|
},
|
|
419
|
-
required: ["type", "url"],
|
|
423
|
+
required: ["type", "url", "tweetId"],
|
|
420
424
|
},
|
|
421
425
|
{
|
|
422
426
|
type: "object",
|
|
@@ -443,8 +447,12 @@ export const canonicalDocumentSchema = {
|
|
|
443
447
|
type: "string",
|
|
444
448
|
format: "uri",
|
|
445
449
|
},
|
|
450
|
+
videoId: {
|
|
451
|
+
type: "string",
|
|
452
|
+
pattern: "^[0-9]+$",
|
|
453
|
+
},
|
|
446
454
|
},
|
|
447
|
-
required: ["type", "url"],
|
|
455
|
+
required: ["type", "url", "videoId"],
|
|
448
456
|
},
|
|
449
457
|
{
|
|
450
458
|
type: "object",
|
|
@@ -491,6 +499,20 @@ export const canonicalDocumentSchema = {
|
|
|
491
499
|
ogImage: {
|
|
492
500
|
type: "string",
|
|
493
501
|
},
|
|
502
|
+
socialImage: {
|
|
503
|
+
type: "object",
|
|
504
|
+
properties: {
|
|
505
|
+
url: {
|
|
506
|
+
type: "string",
|
|
507
|
+
minLength: 1,
|
|
508
|
+
},
|
|
509
|
+
alt: {
|
|
510
|
+
type: "string",
|
|
511
|
+
minLength: 1,
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
required: ["url", "alt"],
|
|
515
|
+
},
|
|
494
516
|
},
|
|
495
517
|
},
|
|
496
518
|
navigation: {
|
|
@@ -1270,8 +1292,12 @@ export const canonicalDocumentSchema = {
|
|
|
1270
1292
|
type: "string",
|
|
1271
1293
|
format: "uri",
|
|
1272
1294
|
},
|
|
1295
|
+
tweetId: {
|
|
1296
|
+
type: "string",
|
|
1297
|
+
pattern: "^[0-9]+$",
|
|
1298
|
+
},
|
|
1273
1299
|
},
|
|
1274
|
-
required: ["type", "url"],
|
|
1300
|
+
required: ["type", "url", "tweetId"],
|
|
1275
1301
|
},
|
|
1276
1302
|
{
|
|
1277
1303
|
type: "object",
|
|
@@ -1298,8 +1324,12 @@ export const canonicalDocumentSchema = {
|
|
|
1298
1324
|
type: "string",
|
|
1299
1325
|
format: "uri",
|
|
1300
1326
|
},
|
|
1327
|
+
videoId: {
|
|
1328
|
+
type: "string",
|
|
1329
|
+
pattern: "^[0-9]+$",
|
|
1330
|
+
},
|
|
1301
1331
|
},
|
|
1302
|
-
required: ["type", "url"],
|
|
1332
|
+
required: ["type", "url", "videoId"],
|
|
1303
1333
|
},
|
|
1304
1334
|
{
|
|
1305
1335
|
type: "object",
|
|
@@ -1346,6 +1376,20 @@ export const canonicalDocumentSchema = {
|
|
|
1346
1376
|
ogImage: {
|
|
1347
1377
|
type: "string",
|
|
1348
1378
|
},
|
|
1379
|
+
socialImage: {
|
|
1380
|
+
type: "object",
|
|
1381
|
+
properties: {
|
|
1382
|
+
url: {
|
|
1383
|
+
type: "string",
|
|
1384
|
+
minLength: 1,
|
|
1385
|
+
},
|
|
1386
|
+
alt: {
|
|
1387
|
+
type: "string",
|
|
1388
|
+
minLength: 1,
|
|
1389
|
+
},
|
|
1390
|
+
},
|
|
1391
|
+
required: ["url", "alt"],
|
|
1392
|
+
},
|
|
1349
1393
|
},
|
|
1350
1394
|
},
|
|
1351
1395
|
navigation: {
|
|
@@ -125,6 +125,7 @@ export type CronkiteCanonicalDocument = {
|
|
|
125
125
|
} | {
|
|
126
126
|
type: "x";
|
|
127
127
|
url: string;
|
|
128
|
+
tweetId: string;
|
|
128
129
|
[k: string]: unknown;
|
|
129
130
|
} | {
|
|
130
131
|
type: "instagram";
|
|
@@ -133,6 +134,7 @@ export type CronkiteCanonicalDocument = {
|
|
|
133
134
|
} | {
|
|
134
135
|
type: "tiktok";
|
|
135
136
|
url: string;
|
|
137
|
+
videoId: string;
|
|
136
138
|
[k: string]: unknown;
|
|
137
139
|
} | {
|
|
138
140
|
type: "spotify";
|
|
@@ -148,6 +150,11 @@ export type CronkiteCanonicalDocument = {
|
|
|
148
150
|
metaTitle?: string;
|
|
149
151
|
metaDescription?: string;
|
|
150
152
|
ogImage?: string;
|
|
153
|
+
socialImage?: {
|
|
154
|
+
url: string;
|
|
155
|
+
alt: string;
|
|
156
|
+
[k: string]: unknown;
|
|
157
|
+
};
|
|
151
158
|
[k: string]: unknown;
|
|
152
159
|
};
|
|
153
160
|
navigation?: {
|
|
@@ -389,6 +396,7 @@ export type CronkiteCanonicalDocument = {
|
|
|
389
396
|
} | {
|
|
390
397
|
type: "x";
|
|
391
398
|
url: string;
|
|
399
|
+
tweetId: string;
|
|
392
400
|
[k: string]: unknown;
|
|
393
401
|
} | {
|
|
394
402
|
type: "instagram";
|
|
@@ -397,6 +405,7 @@ export type CronkiteCanonicalDocument = {
|
|
|
397
405
|
} | {
|
|
398
406
|
type: "tiktok";
|
|
399
407
|
url: string;
|
|
408
|
+
videoId: string;
|
|
400
409
|
[k: string]: unknown;
|
|
401
410
|
} | {
|
|
402
411
|
type: "spotify";
|
|
@@ -412,6 +421,11 @@ export type CronkiteCanonicalDocument = {
|
|
|
412
421
|
metaTitle?: string;
|
|
413
422
|
metaDescription?: string;
|
|
414
423
|
ogImage?: string;
|
|
424
|
+
socialImage?: {
|
|
425
|
+
url: string;
|
|
426
|
+
alt: string;
|
|
427
|
+
[k: string]: unknown;
|
|
428
|
+
};
|
|
415
429
|
[k: string]: unknown;
|
|
416
430
|
};
|
|
417
431
|
navigation?: {
|