@fifthbell/brokaw 0.1.75 → 0.1.76

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.
@@ -214,11 +214,6 @@ export declare const cronkiteManifest: {
214
214
  readonly contentType: "text/html; charset=utf-8";
215
215
  readonly cacheControl: "public, max-age=0, must-revalidate";
216
216
  readonly variants: [SystemVariant, ...SystemVariant[]];
217
- }, {
218
- readonly renderable: "search-page";
219
- readonly contentType: "text/html; charset=utf-8";
220
- readonly cacheControl: "public, max-age=0, must-revalidate";
221
- readonly variants: [SystemVariant, ...SystemVariant[]];
222
217
  }, {
223
218
  readonly renderable: "media-page";
224
219
  readonly contentType: "text/html; charset=utf-8";
@@ -1,4 +1,3 @@
1
- import { searchCopyByLanguage } from './search-copy.js';
2
1
  import { version } from './version.js';
3
2
  import { mediathekSystemPage, systemDocument } from './system-pages.js';
4
3
  const pagePartials = [
@@ -86,24 +85,23 @@ const page = (layout, dependencies) => ({
86
85
  const localizedSystemCopy = {
87
86
  en: {
88
87
  notFound: ['Page Not Found', 'The page you are looking for does not exist.', 'Go to Homepage', 'Or explore our categories:'],
89
- search: ['Search', 'Search stories from Fifthbell.'],
90
88
  },
91
89
  es: {
92
90
  notFound: ['Página no encontrada', 'La página que buscas no existe.', 'Ir al inicio', 'O explora nuestras categorías:'],
93
- search: ['Buscar', 'Busca noticias de Fifthbell.'],
94
91
  },
95
92
  it: {
96
93
  notFound: ['Pagina non trovata', 'La pagina che stai cercando non esiste.', 'Vai alla home page', 'Oppure esplora le nostre categorie:'],
97
- search: ['Cerca', 'Cerca notizie Fifthbell.'],
98
94
  },
99
95
  };
100
- const systemVariants = (layout, segment, createExtra) => {
96
+ // The 404 page in each language: the only localized system page, since the CMS
97
+ // publishes search itself (fifthbell/brokaw#38).
98
+ const notFoundVariants = (createExtra) => {
101
99
  const variants = ['en', 'es', 'it'].map((language) => {
102
- const localizedSegment = language === 'en' ? `/${segment}` : `/${language}/${segment}`;
103
- const copy = localizedSystemCopy[language][layout === '404' ? 'notFound' : 'search'];
100
+ const localizedSegment = language === 'en' ? '/404' : `/${language}/404`;
101
+ const copy = localizedSystemCopy[language].notFound;
104
102
  return {
105
- key: language === 'en' ? `html/${segment}/index.html` : `html/${language}/${segment}/index.html`,
106
- document: systemDocument(layout, language, localizedSegment, copy[0], copy[1], createExtra(language)),
103
+ key: language === 'en' ? 'html/404/index.html' : `html/${language}/404/index.html`,
104
+ document: systemDocument('404', language, localizedSegment, copy[0], copy[1], createExtra(language)),
107
105
  };
108
106
  });
109
107
  return [variants[0], ...variants.slice(1)];
@@ -266,22 +264,19 @@ export const cronkiteManifest = {
266
264
  cacheControl: immutable,
267
265
  },
268
266
  },
267
+ // Pages Cronkite generates without a CMS publish request (the manifest
268
+ // contract's definition). Search is not one: the CMS publishes it as a
269
+ // real search-page renderable (fifthbell/brokaw#38).
269
270
  systemPages: [
270
271
  {
271
272
  renderable: '404',
272
273
  contentType: 'text/html; charset=utf-8',
273
274
  cacheControl: 'public, max-age=0, must-revalidate',
274
- variants: systemVariants('404', '404', (language) => ({
275
+ variants: notFoundVariants((language) => ({
275
276
  homeLinkLabel: localizedSystemCopy[language].notFound[2],
276
277
  categoriesLabel: localizedSystemCopy[language].notFound[3],
277
278
  })),
278
279
  },
279
- {
280
- renderable: 'search-page',
281
- contentType: 'text/html; charset=utf-8',
282
- cacheControl: 'public, max-age=0, must-revalidate',
283
- variants: systemVariants('search-page', 'search', (language) => ({ searchCopy: searchCopyByLanguage[language] })),
284
- },
285
280
  mediathekSystemPage,
286
281
  ],
287
282
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@fifthbell/brokaw",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "templateRendering": {
5
5
  "contract": "cronkite.templates",
6
6
  "contractVersion": 1,
@@ -878,175 +878,6 @@
878
878
  }
879
879
  ]
880
880
  },
881
- {
882
- "renderable": "search-page",
883
- "contentType": "text/html; charset=utf-8",
884
- "cacheControl": "public, max-age=0, must-revalidate",
885
- "variants": [
886
- {
887
- "key": "html/search/index.html",
888
- "document": {
889
- "id": "system-search-page-en",
890
- "slug": "/search",
891
- "canonicalUrl": "https://fifthbell.com/search",
892
- "contentVersion": "2026-09-21T00:00:00.000Z",
893
- "publishedAt": "2026-09-21T00:00:00.000Z",
894
- "updatedAt": "2026-09-21T00:00:00.000Z",
895
- "status": "published",
896
- "title": "Search",
897
- "excerpt": "Search stories from Fifthbell.",
898
- "language": "en",
899
- "featured": false,
900
- "body": [],
901
- "layout": "search-page",
902
- "authors": [
903
- {
904
- "name": "Fifthbell Newsroom",
905
- "slug": "fifthbell-newsroom"
906
- }
907
- ],
908
- "categories": [],
909
- "navigation": {
910
- "categories": []
911
- },
912
- "logoLink": "/",
913
- "seo": {
914
- "metaTitle": "Search | fifthbell",
915
- "metaDescription": "Search stories from Fifthbell."
916
- },
917
- "searchCopy": {
918
- "eyebrow": "Search",
919
- "heading": "Find Stories Fast",
920
- "intro": "Search titles and excerpts across current-language coverage.",
921
- "placeholder": "Search stories...",
922
- "submit": "Search",
923
- "emptyPrompt": "Start typing to search in this language.",
924
- "emptyState": "No query yet.",
925
- "noResults": "No matches for",
926
- "tryAnother": "Try a different keyword.",
927
- "resultSingular": "result",
928
- "resultPlural": "results",
929
- "forQuery": "for",
930
- "page": "Page",
931
- "of": "of",
932
- "previous": "Previous",
933
- "next": "Next",
934
- "searching": "Searching...",
935
- "unavailable": "Search is temporarily unavailable.",
936
- "loadFailure": "We could not load the search index right now."
937
- }
938
- }
939
- },
940
- {
941
- "key": "html/es/search/index.html",
942
- "document": {
943
- "id": "system-search-page-es",
944
- "slug": "/es/search",
945
- "canonicalUrl": "https://fifthbell.com/es/search",
946
- "contentVersion": "2026-09-21T00:00:00.000Z",
947
- "publishedAt": "2026-09-21T00:00:00.000Z",
948
- "updatedAt": "2026-09-21T00:00:00.000Z",
949
- "status": "published",
950
- "title": "Buscar",
951
- "excerpt": "Busca noticias de Fifthbell.",
952
- "language": "es",
953
- "featured": false,
954
- "body": [],
955
- "layout": "search-page",
956
- "authors": [
957
- {
958
- "name": "Fifthbell Newsroom",
959
- "slug": "fifthbell-newsroom"
960
- }
961
- ],
962
- "categories": [],
963
- "navigation": {
964
- "categories": []
965
- },
966
- "logoLink": "/es",
967
- "seo": {
968
- "metaTitle": "Buscar | fifthbell",
969
- "metaDescription": "Busca noticias de Fifthbell."
970
- },
971
- "searchCopy": {
972
- "eyebrow": "Buscar",
973
- "heading": "Encuentra noticias rápido",
974
- "intro": "Busca títulos y resúmenes en la cobertura de este idioma.",
975
- "placeholder": "Buscar noticias...",
976
- "submit": "Buscar",
977
- "emptyPrompt": "Escribe para buscar en este idioma.",
978
- "emptyState": "Aún no has escrito una búsqueda.",
979
- "noResults": "No hay resultados para",
980
- "tryAnother": "Prueba con otra palabra clave.",
981
- "resultSingular": "resultado",
982
- "resultPlural": "resultados",
983
- "forQuery": "para",
984
- "page": "Página",
985
- "of": "de",
986
- "previous": "Anterior",
987
- "next": "Siguiente",
988
- "searching": "Buscando...",
989
- "unavailable": "La búsqueda no está disponible temporalmente.",
990
- "loadFailure": "No pudimos cargar el índice de búsqueda en este momento."
991
- }
992
- }
993
- },
994
- {
995
- "key": "html/it/search/index.html",
996
- "document": {
997
- "id": "system-search-page-it",
998
- "slug": "/it/search",
999
- "canonicalUrl": "https://fifthbell.com/it/search",
1000
- "contentVersion": "2026-09-21T00:00:00.000Z",
1001
- "publishedAt": "2026-09-21T00:00:00.000Z",
1002
- "updatedAt": "2026-09-21T00:00:00.000Z",
1003
- "status": "published",
1004
- "title": "Cerca",
1005
- "excerpt": "Cerca notizie Fifthbell.",
1006
- "language": "it",
1007
- "featured": false,
1008
- "body": [],
1009
- "layout": "search-page",
1010
- "authors": [
1011
- {
1012
- "name": "Fifthbell Newsroom",
1013
- "slug": "fifthbell-newsroom"
1014
- }
1015
- ],
1016
- "categories": [],
1017
- "navigation": {
1018
- "categories": []
1019
- },
1020
- "logoLink": "/it",
1021
- "seo": {
1022
- "metaTitle": "Cerca | fifthbell",
1023
- "metaDescription": "Cerca notizie Fifthbell."
1024
- },
1025
- "searchCopy": {
1026
- "eyebrow": "Cerca",
1027
- "heading": "Trova rapidamente le notizie",
1028
- "intro": "Cerca nei titoli e nei sommari della copertura in questa lingua.",
1029
- "placeholder": "Cerca notizie...",
1030
- "submit": "Cerca",
1031
- "emptyPrompt": "Scrivi per cercare in questa lingua.",
1032
- "emptyState": "Non hai ancora inserito una ricerca.",
1033
- "noResults": "Nessun risultato per",
1034
- "tryAnother": "Prova un'altra parola chiave.",
1035
- "resultSingular": "risultato",
1036
- "resultPlural": "risultati",
1037
- "forQuery": "per",
1038
- "page": "Pagina",
1039
- "of": "di",
1040
- "previous": "Precedente",
1041
- "next": "Successivo",
1042
- "searching": "Ricerca in corso...",
1043
- "unavailable": "La ricerca è temporaneamente non disponibile.",
1044
- "loadFailure": "Non è stato possibile caricare l’indice di ricerca."
1045
- }
1046
- }
1047
- }
1048
- ]
1049
- },
1050
881
  {
1051
882
  "renderable": "media-page",
1052
883
  "contentType": "text/html; charset=utf-8",
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6
6
  <title>Live Program | fifthbell</title>
7
- <script type="module" crossorigin src="./live-program.v0.1.75.js"></script>
8
- <link rel="stylesheet" crossorigin href="./live-program.v0.1.75.css">
7
+ <script type="module" crossorigin src="./live-program.v0.1.76.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./live-program.v0.1.76.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -45,7 +45,7 @@
45
45
  ]
46
46
  },
47
47
  "package": "@fifthbell/brokaw",
48
- "bundleVersion": "0.1.75",
48
+ "bundleVersion": "0.1.76",
49
49
  "schemaVersion": 1,
50
50
  "statePath": "state",
51
51
  "eventsPath": "events",
@@ -390,16 +390,16 @@
390
390
  "key": "index.html",
391
391
  "contentType": "text/html; charset=utf-8",
392
392
  "bytes": 446,
393
- "sha256": "596f6dc940d4948170fb991d9a59668f84121478408cdfaf043c0b85832beda9"
393
+ "sha256": "b757139dfb0318ec158afe8b4d049bfec963c6cdf030ab6b2cf45d90370c7f9b"
394
394
  },
395
395
  {
396
- "key": "live-program.v0.1.75.css",
396
+ "key": "live-program.v0.1.76.css",
397
397
  "contentType": "text/css; charset=utf-8",
398
398
  "bytes": 77876,
399
399
  "sha256": "1a2d8bafa07010ec5017874261af1a2c87191e5e93599051227beb904901a3d6"
400
400
  },
401
401
  {
402
- "key": "live-program.v0.1.75.js",
402
+ "key": "live-program.v0.1.76.js",
403
403
  "contentType": "application/javascript; charset=utf-8",
404
404
  "bytes": 296100,
405
405
  "sha256": "da30127b17e88c759d42aaffae75f438a6cfc880461e6625943c8728c0ca3f6b"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fifthbell/brokaw",
3
3
  "description": "Server-side Handlebars renderer and templates for fifthbell pages.",
4
- "version": "0.1.75",
4
+ "version": "0.1.76",
5
5
  "license": "MIT",
6
6
  "author": "fifthbell",
7
7
  "repository": {