@fifthbell/brokaw 0.1.68 → 0.1.69

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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/cronkite-manifest.d.ts +205 -69
  3. package/dist/cronkite-manifest.js +288 -111
  4. package/dist/cronkite-manifest.json +1024 -125
  5. package/dist/instagram-image-template.d.ts +0 -1
  6. package/dist/instagram-image-template.js +0 -4
  7. package/dist/layouts.d.ts +1 -1
  8. package/dist/live-program-page/index.html +2 -2
  9. package/dist/live-program-page/live-program-manifest.json +6 -6
  10. package/dist/live-program-page/live-program.v0.1.69.css +3 -0
  11. package/dist/manifest-validation.d.ts +2 -2
  12. package/dist/manifest-validation.js +12 -16
  13. package/dist/outlet-config.d.ts +0 -1
  14. package/dist/outlet-config.js +0 -1
  15. package/dist/renderer.browser.js +12 -0
  16. package/dist/renderer.core.js +42 -258
  17. package/dist/renderer.d.ts +1 -1
  18. package/dist/renderer.js +1 -1
  19. package/dist/schemas/canonical-document.schema.json +30 -10
  20. package/dist/schemas/cronkite-manifest.schema.json +84 -450
  21. package/dist/schemas/social-image-input.schema.json +14 -0
  22. package/dist/search-copy.d.ts +65 -0
  23. package/dist/search-copy.js +65 -0
  24. package/dist/types/canonical-document-schema.generated.d.ts +48 -4
  25. package/dist/types/canonical-document-schema.generated.js +48 -4
  26. package/dist/types/canonical-document.generated.d.ts +14 -0
  27. package/dist/types/cronkite-manifest.generated.d.ts +101 -297
  28. package/package.json +2 -2
  29. package/src/partial-deps.json +221 -50
  30. package/src/styles/compiled.css +1 -1
  31. package/src/templates/partials/blocks/tiktok.hbs +1 -1
  32. package/src/templates/partials/blocks/x.hbs +4 -4
  33. package/src/templates/partials/components/article-main.hbs +1 -1
  34. package/src/templates/partials/components/body-block.hbs +31 -0
  35. package/src/templates/partials/components/breaking-news/live-updates-column.hbs +2 -2
  36. package/src/templates/partials/components/breaking-news.hbs +2 -2
  37. package/src/templates/partials/components/editorial-hero.hbs +2 -2
  38. package/src/templates/partials/components/home/landing.hbs +1 -1
  39. package/src/templates/partials/components/home/main.hbs +4 -1
  40. package/src/templates/partials/components/live-story/main.hbs +4 -12
  41. package/src/templates/partials/components/not-found/main.hbs +4 -4
  42. package/src/templates/partials/components/search/main.hbs +25 -15
  43. package/src/templates/partials/components/snack-meta-image-row.hbs +21 -0
  44. package/src/templates/partials/components/snack-meta-inline.hbs +43 -0
  45. package/src/templates/partials/components/snack-top-story.hbs +1 -0
  46. package/src/templates/partials/components/snack.hbs +3 -61
  47. package/src/templates/partials/components/spotlight-hero-slides.hbs +1 -0
  48. package/src/templates/partials/components/spotlight-hero.hbs +2 -2
  49. package/src/templates/partials/components/standalone-main.hbs +1 -1
  50. package/src/templates/partials/shell/doc-start-404.hbs +2 -4
  51. package/src/templates/partials/shell/doc-start-standard.hbs +9 -11
  52. package/src/templates/partials/shell/rum-loader.hbs +77 -0
  53. package/src/templates/templates/instagram-image.hbs +0 -2
  54. package/dist/live-program-page/live-program.v0.1.68.css +0 -3
  55. /package/dist/live-program-page/{live-program.v0.1.68.js → live-program.v0.1.69.js} +0 -0
package/README.md CHANGED
@@ -95,7 +95,7 @@ npm install
95
95
  npm run typecheck
96
96
  npm run test:unit
97
97
  npm run build
98
- npm run verify:packed-remotion
98
+ npm run verify:packed-contract
99
99
  npm pack --dry-run
100
100
  npm run storybook
101
101
  ```
@@ -1,80 +1,216 @@
1
+ import type { SystemVariant } from './types/cronkite-manifest.generated.js';
1
2
  export declare const cronkiteManifest: {
2
- readonly contract: "cronkite.cls";
3
- readonly contractVersion: 1;
4
3
  readonly package: "@fifthbell/brokaw";
5
4
  readonly version: string;
6
- readonly layouts: ["article-page" | "homepage" | "category-page" | "search-page" | "404" | "live-story" | "link-in-bio" | "media-page" | "standalone-page", ...("article-page" | "homepage" | "category-page" | "search-page" | "404" | "live-story" | "link-in-bio" | "media-page" | "standalone-page")[]];
7
- readonly languages: ["en", "es", "it"];
8
- readonly collections: {
9
- readonly "article-page": "json/articles";
10
- readonly "standalone-page": "json/pages";
11
- readonly "media-page": "json/media";
12
- };
13
- readonly systemPages: import("./types/cronkite-manifest.generated.js").SystemPage[];
14
- readonly renderables: {
15
- readonly homepage: {
16
- readonly engine: "handlebars";
17
- readonly export: "render";
18
- readonly contentType: "text/html; charset=utf-8";
19
- readonly inputSchema: "dist/schemas/feed-renderable-input.schema.json";
20
- };
21
- readonly "category-page": {
22
- readonly engine: "handlebars";
23
- readonly export: "render";
24
- readonly contentType: "text/html; charset=utf-8";
25
- readonly inputSchema: "dist/schemas/feed-renderable-input.schema.json";
26
- };
27
- readonly "search-page": {
28
- readonly engine: "handlebars";
29
- readonly export: "render";
30
- readonly contentType: "text/html; charset=utf-8";
31
- readonly inputSchema: "dist/schemas/feed-renderable-input.schema.json";
32
- };
33
- readonly "live-story": {
34
- readonly engine: "handlebars";
35
- readonly export: "render";
36
- readonly contentType: "text/html; charset=utf-8";
37
- readonly inputSchema: "dist/schemas/feed-renderable-input.schema.json";
38
- };
39
- readonly "link-in-bio": {
40
- readonly engine: "handlebars";
41
- readonly export: "render";
42
- readonly contentType: "text/html; charset=utf-8";
43
- readonly inputSchema: "dist/schemas/feed-renderable-input.schema.json";
44
- };
45
- readonly "social-image": {
46
- readonly engine: "html-raster";
47
- readonly export: "buildInstagramImageHtml";
48
- readonly contentType: "image/jpeg";
49
- readonly width: 1080;
50
- readonly height: 1350;
5
+ readonly templateRendering: {
6
+ readonly contract: "cronkite.templates";
7
+ readonly contractVersion: 1;
8
+ readonly partials: {
9
+ [k: string]: {
10
+ entry: string;
11
+ partials: string[];
12
+ };
51
13
  };
52
- readonly "short-video": {
53
- readonly engine: "remotion";
54
- readonly entry: "dist/video/index.js";
55
- readonly compositionId: "BrokawShort";
56
- readonly contentType: "video/mp4";
14
+ readonly helperConfig: {
15
+ readonly siteName: "fifthbell";
16
+ readonly defaultLanguage: "en";
17
+ readonly supportedLanguages: ["en", "es", "it"];
18
+ readonly prefixDefaultLocale: false;
19
+ readonly dateLocale: "en-US";
20
+ readonly timeZone: "America/New_York";
21
+ readonly homepageTitles: {
22
+ readonly en: "fifthbell - Breaking News & Current Events";
23
+ readonly es: "fifthbell - Noticias de última hora y actualidad";
24
+ readonly it: "fifthbell - Ultime notizie e attualità";
25
+ };
26
+ readonly layoutTitleFallbacks: {
27
+ readonly 'article-page': "Article";
28
+ readonly homepage: "fifthbell";
29
+ readonly 'category-page': "Category";
30
+ readonly 'search-page': "Search";
31
+ readonly '404': "Page Not Found";
32
+ readonly 'live-story': "Live Story";
33
+ readonly 'link-in-bio': "Top Stories";
34
+ readonly 'media-page': "Media";
35
+ readonly 'standalone-page': "fifthbell";
36
+ };
37
+ readonly titleSeparator: " | ";
38
+ readonly defaultSocialImageUrl: null;
57
39
  };
58
- readonly "live-program": {
59
- readonly engine: "handlebars";
60
- readonly export: "liveProgramReleaseFiles";
61
- readonly outputMode: "files";
62
- readonly lifecycle: "request";
63
- readonly inputSchema: "dist/schemas/live-program-release-input.schema.json";
64
- readonly contract: {
65
- readonly kind: "alcantara.program-template";
66
- readonly version: 1;
40
+ readonly embedRegistry: {
41
+ readonly 'x-status': {
42
+ readonly urlTemplate: "https://twitter.com/{username}/status/{id}";
43
+ readonly parameters: {
44
+ readonly username: {
45
+ readonly type: "string";
46
+ readonly pattern: "^[A-Za-z0-9_]{1,15}$";
47
+ };
48
+ readonly id: {
49
+ readonly type: "string";
50
+ readonly pattern: "^[0-9]+$";
51
+ };
52
+ };
53
+ };
54
+ readonly 'x-embed': {
55
+ readonly urlTemplate: "https://platform.twitter.com/embed/Tweet.html?id={id}&dnt=true";
56
+ readonly parameters: {
57
+ readonly id: {
58
+ readonly type: "string";
59
+ readonly pattern: "^[0-9]+$";
60
+ };
61
+ };
62
+ };
63
+ readonly instagram: {
64
+ readonly urlTemplate: "https://www.instagram.com/p/{shortcode}/embed/";
65
+ readonly parameters: {
66
+ readonly shortcode: {
67
+ readonly type: "string";
68
+ readonly pattern: "^[A-Za-z0-9_-]+$";
69
+ };
70
+ };
71
+ };
72
+ readonly tiktok: {
73
+ readonly urlTemplate: "https://www.tiktok.com/embed/v2/{id}";
74
+ readonly parameters: {
75
+ readonly id: {
76
+ readonly type: "string";
77
+ readonly pattern: "^[0-9]+$";
78
+ };
79
+ };
80
+ };
81
+ readonly 'sofascore-widget': {
82
+ readonly urlTemplate: "https://widgets.sofascore.com/embed/attackMomentum?id={id}&widgetTheme={widgetTheme}";
83
+ readonly parameters: {
84
+ readonly id: {
85
+ readonly type: "integer";
86
+ readonly minimum: 1;
87
+ };
88
+ readonly widgetTheme: {
89
+ readonly type: "string";
90
+ readonly enum: ["light", "dark"];
91
+ readonly default: "light";
92
+ };
93
+ };
94
+ };
95
+ readonly 'sofascore-match': {
96
+ readonly urlTemplate: "https://www.sofascore.com/football/match#id:{id}";
97
+ readonly parameters: {
98
+ readonly id: {
99
+ readonly type: "integer";
100
+ readonly minimum: 1;
101
+ };
102
+ };
67
103
  };
68
104
  };
69
- };
70
- readonly capabilities: {
71
- readonly fonts: {
72
- readonly export: "fontFiles";
105
+ readonly renderables: {
106
+ readonly 'article-page': {
107
+ template: {
108
+ entry: string;
109
+ partials: string[];
110
+ };
111
+ inputSchema: string;
112
+ contentType: string;
113
+ };
114
+ readonly homepage: {
115
+ template: {
116
+ entry: string;
117
+ partials: string[];
118
+ };
119
+ inputSchema: string;
120
+ contentType: string;
121
+ };
122
+ readonly 'category-page': {
123
+ template: {
124
+ entry: string;
125
+ partials: string[];
126
+ };
127
+ inputSchema: string;
128
+ contentType: string;
129
+ };
130
+ readonly 'search-page': {
131
+ template: {
132
+ entry: string;
133
+ partials: string[];
134
+ };
135
+ inputSchema: string;
136
+ contentType: string;
137
+ };
138
+ readonly '404': {
139
+ template: {
140
+ entry: string;
141
+ partials: string[];
142
+ };
143
+ inputSchema: string;
144
+ contentType: string;
145
+ };
146
+ readonly 'live-story': {
147
+ template: {
148
+ entry: string;
149
+ partials: string[];
150
+ };
151
+ inputSchema: string;
152
+ contentType: string;
153
+ };
154
+ readonly 'link-in-bio': {
155
+ template: {
156
+ entry: string;
157
+ partials: string[];
158
+ };
159
+ inputSchema: string;
160
+ contentType: string;
161
+ };
162
+ readonly 'media-page': {
163
+ template: {
164
+ entry: string;
165
+ partials: string[];
166
+ };
167
+ inputSchema: string;
168
+ contentType: string;
169
+ };
170
+ readonly 'standalone-page': {
171
+ template: {
172
+ entry: string;
173
+ partials: string[];
174
+ };
175
+ inputSchema: string;
176
+ contentType: string;
177
+ };
178
+ readonly 'social-image': {
179
+ readonly template: {
180
+ readonly entry: "src/templates/templates/instagram-image.hbs";
181
+ readonly partials: [];
182
+ };
183
+ readonly inputSchema: "dist/schemas/social-image-input.schema.json";
184
+ readonly contentType: "image/jpeg";
185
+ readonly raster: {
186
+ readonly format: "jpeg";
187
+ readonly width: 1080;
188
+ readonly height: 1350;
189
+ };
190
+ };
73
191
  };
74
- };
75
- readonly writeOrdering: {
76
- readonly "live-program": {
77
- readonly last: ["html/program.html"];
192
+ readonly staticAssets: {
193
+ readonly 'content/fonts/fonts.css': {
194
+ readonly source: "dist/fonts/fonts.css";
195
+ readonly contentType: "text/css; charset=utf-8";
196
+ readonly cacheControl: "public, max-age=31536000, immutable";
197
+ };
198
+ readonly 'content/styles/brokaw.css': {
199
+ readonly source: "src/styles/compiled.css";
200
+ readonly contentType: "text/css; charset=utf-8";
201
+ readonly cacheControl: "public, max-age=31536000, immutable";
202
+ };
78
203
  };
204
+ readonly systemPages: [{
205
+ readonly renderable: "404";
206
+ readonly contentType: "text/html; charset=utf-8";
207
+ readonly cacheControl: "public, max-age=0, must-revalidate";
208
+ readonly variants: [SystemVariant, ...SystemVariant[]];
209
+ }, {
210
+ readonly renderable: "search-page";
211
+ readonly contentType: "text/html; charset=utf-8";
212
+ readonly cacheControl: "public, max-age=0, must-revalidate";
213
+ readonly variants: [SystemVariant, ...SystemVariant[]];
214
+ }];
79
215
  };
80
216
  };