@fifthbell/brokaw 0.1.65 → 0.1.66

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 (44) hide show
  1. package/README.md +31 -5
  2. package/dist/cronkite-manifest.d.ts +80 -0
  3. package/dist/cronkite-manifest.js +124 -0
  4. package/dist/cronkite-manifest.json +139 -0
  5. package/dist/json-schema-formats.d.ts +2 -0
  6. package/dist/json-schema-formats.js +19 -0
  7. package/dist/layouts.d.ts +13 -0
  8. package/dist/layouts.js +12 -0
  9. package/dist/live-program-page/index.html +2 -2
  10. package/dist/live-program-page/live-program-manifest.json +4 -4
  11. package/dist/live-program-release.d.ts +3 -0
  12. package/dist/live-program-release.js +76 -0
  13. package/dist/manifest-validation.d.ts +10 -0
  14. package/dist/manifest-validation.js +27 -0
  15. package/dist/renderer.core.d.ts +2 -1
  16. package/dist/renderer.core.js +2 -1
  17. package/dist/renderer.d.ts +3 -0
  18. package/dist/renderer.js +2 -0
  19. package/dist/renderer.node.js +7 -12
  20. package/dist/schemas/canonical-document.schema.json +1071 -0
  21. package/dist/schemas/cronkite-manifest.schema.json +501 -0
  22. package/dist/schemas/feed-renderable-input.schema.json +16 -0
  23. package/dist/schemas/live-program-release-input.schema.json +34 -0
  24. package/dist/types/canonical-article.d.ts +8 -262
  25. package/dist/types/canonical-article.js +21 -245
  26. package/dist/types/canonical-document-schema.generated.d.ts +1634 -0
  27. package/dist/types/canonical-document-schema.generated.js +1730 -0
  28. package/dist/types/canonical-document.generated.d.ts +541 -0
  29. package/dist/types/canonical-document.generated.js +3 -0
  30. package/dist/types/cronkite-manifest.generated.d.ts +339 -0
  31. package/dist/types/cronkite-manifest.generated.js +3 -0
  32. package/dist/types/live-program-release-input.generated.d.ts +5 -0
  33. package/dist/types/live-program-release-input.generated.js +3 -0
  34. package/dist/video/Root.d.ts +1 -0
  35. package/dist/video/Root.js +40 -0
  36. package/dist/video/ShortVideo.d.ts +3 -0
  37. package/dist/video/ShortVideo.js +92 -0
  38. package/dist/video/index.d.ts +2 -0
  39. package/dist/video/index.js +4 -0
  40. package/dist/video/types.d.ts +37 -0
  41. package/dist/video/types.js +1 -0
  42. package/package.json +19 -4
  43. /package/dist/live-program-page/{live-program.v0.1.65.css → live-program.v0.1.66.css} +0 -0
  44. /package/dist/live-program-page/{live-program.v0.1.65.js → live-program.v0.1.66.js} +0 -0
@@ -0,0 +1,339 @@
1
+ /** Generated from the normative JSON Schema. Do not edit by hand. */
2
+ /**
3
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
4
+ * via the `definition` "name".
5
+ */
6
+ export type Name = string;
7
+ /**
8
+ * Permissive lexical envelope including grandfathered and private-use tags; a standards-compliant BCP 47 parser is authoritative.
9
+ *
10
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
11
+ * via the `definition` "languageTag".
12
+ */
13
+ export type LanguageTag = string;
14
+ /**
15
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
16
+ * via the `definition` "safePrefix".
17
+ */
18
+ export type SafePrefix = string;
19
+ /**
20
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
21
+ * via the `definition` "systemPage".
22
+ */
23
+ export type SystemPage = {
24
+ /**
25
+ * Required layout that must occur in the top-level layouts array. No omission default.
26
+ */
27
+ layout: string;
28
+ /**
29
+ * Required public route, optionally with one {language} token. No omission default.
30
+ */
31
+ route: string;
32
+ /**
33
+ * Required safe relative object key, optionally with one {language} token. No omission default.
34
+ */
35
+ key: string;
36
+ /**
37
+ * Required Cache-Control field value. No omission default.
38
+ */
39
+ cacheControl: string;
40
+ /**
41
+ * Required switch controlling language expansion. No omission default.
42
+ */
43
+ perLanguage: boolean;
44
+ /**
45
+ * Required language-to-copy map. No omission default.
46
+ */
47
+ copy: {
48
+ [k: string]: Copy;
49
+ };
50
+ };
51
+ /**
52
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
53
+ * via the `definition` "renderable".
54
+ */
55
+ export type Renderable = ({
56
+ engine?: "handlebars";
57
+ outputMode?: "single";
58
+ contentType: string;
59
+ export: unknown;
60
+ entry?: never;
61
+ compositionId?: never;
62
+ width?: never;
63
+ height?: never;
64
+ [k: string]: unknown;
65
+ } | {
66
+ engine?: "handlebars";
67
+ outputMode: "files";
68
+ export: unknown;
69
+ entry?: never;
70
+ compositionId?: never;
71
+ contentType?: never;
72
+ width?: never;
73
+ height?: never;
74
+ key?: never;
75
+ [k: string]: unknown;
76
+ } | {
77
+ engine?: "html-raster";
78
+ outputMode?: "single";
79
+ contentType: string;
80
+ export: unknown;
81
+ width: unknown;
82
+ height: unknown;
83
+ entry?: never;
84
+ compositionId?: never;
85
+ [k: string]: unknown;
86
+ } | {
87
+ engine?: "remotion";
88
+ outputMode?: "single";
89
+ contentType: string;
90
+ entry: unknown;
91
+ compositionId: unknown;
92
+ export?: never;
93
+ width?: never;
94
+ height?: never;
95
+ [k: string]: unknown;
96
+ }) & {
97
+ /**
98
+ * Required bounded CPS rendering engine. No omission default.
99
+ */
100
+ engine: "handlebars" | "html-raster" | "remotion";
101
+ /**
102
+ * Function export required by handlebars and html-raster. No omission default.
103
+ */
104
+ export?: string;
105
+ /**
106
+ * Packed package entry required by remotion. No omission default.
107
+ */
108
+ entry?: string;
109
+ /**
110
+ * Composition selector required by remotion. No omission default.
111
+ */
112
+ compositionId?: string;
113
+ /**
114
+ * Optional result mode; files uses the FileEntry array ABI.
115
+ */
116
+ outputMode?: "single" | "files";
117
+ /**
118
+ * Optional request-derived or CLS-version-derived lifecycle.
119
+ */
120
+ lifecycle?: "request" | "basement";
121
+ /**
122
+ * Media type required for a single output and forbidden for a file set.
123
+ */
124
+ contentType?: string;
125
+ /**
126
+ * Positive pixel width required by html-raster.
127
+ */
128
+ width?: number;
129
+ /**
130
+ * Positive pixel height required by html-raster.
131
+ */
132
+ height?: number;
133
+ /**
134
+ * Output key required only for a basement single output.
135
+ */
136
+ key?: string;
137
+ /**
138
+ * Optional packed draft-2020-12 input-schema path.
139
+ */
140
+ inputSchema?: string;
141
+ resources?: Resources;
142
+ contract?: OpaqueContract;
143
+ };
144
+ /**
145
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
146
+ * via the `definition` "resource".
147
+ */
148
+ export type Resource = {
149
+ /**
150
+ * Required CMS-owned resource key, optionally with one {language} token.
151
+ */
152
+ key: string;
153
+ /**
154
+ * Required packed draft-2020-12 JSON Schema path.
155
+ */
156
+ schema: string;
157
+ /**
158
+ * Required resource media type.
159
+ */
160
+ contentType: string;
161
+ /**
162
+ * Optional language-expansion switch.
163
+ */
164
+ perLanguage?: boolean;
165
+ };
166
+ /**
167
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
168
+ * via the `definition` "safeKey".
169
+ */
170
+ export type SafeKey = string;
171
+ /**
172
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
173
+ * via the `definition` "javascriptIdentifier".
174
+ */
175
+ export type JavascriptIdentifier = string;
176
+ /**
177
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
178
+ * via the `definition` "safeKeyWithLanguage".
179
+ */
180
+ export type SafeKeyWithLanguage = string;
181
+ /**
182
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
183
+ * via the `definition` "siteRouteWithLanguage".
184
+ */
185
+ export type SiteRouteWithLanguage = string;
186
+ /**
187
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
188
+ * via the `definition` "packageEntry".
189
+ */
190
+ export type PackageEntry = string;
191
+ /**
192
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
193
+ * via the `definition` "mediaType".
194
+ */
195
+ export type MediaType = string;
196
+ /**
197
+ * Machine-readable structural contract for a Cronkite-compatible Component Library System manifest. Semantic cross-field and package checks are specified in ../validation.md.
198
+ */
199
+ export interface CronkiteCLSManifest {
200
+ /**
201
+ * Required contract discriminator. No omission default.
202
+ */
203
+ contract: "cronkite.cls";
204
+ /**
205
+ * Required manifest contract version. No omission default.
206
+ */
207
+ contractVersion: 1;
208
+ /**
209
+ * Required npm package name without a version. No omission default.
210
+ */
211
+ package: string;
212
+ /**
213
+ * Required exact SemVer package version. No omission default.
214
+ */
215
+ version: string;
216
+ /**
217
+ * Required authoritative set of page layouts. No omission default.
218
+ *
219
+ * @minItems 1
220
+ */
221
+ layouts: [Name, ...Name[]];
222
+ /**
223
+ * Required supported BCP 47 language tags. No omission default.
224
+ *
225
+ * @minItems 1
226
+ */
227
+ languages: [LanguageTag, ...LanguageTag[]];
228
+ /**
229
+ * Optional layout-to-canonical-JSON-prefix map. Supplying the object replaces the whole default map.
230
+ */
231
+ collections?: {
232
+ [k: string]: SafePrefix;
233
+ };
234
+ routing?: Routing;
235
+ /**
236
+ * Optional system-generated pages. Expanded route/key uniqueness is a semantic validation rule.
237
+ */
238
+ systemPages?: SystemPage[];
239
+ /**
240
+ * Optional explicit page or asset renderables in the same namespace as layouts.
241
+ */
242
+ renderables?: {
243
+ [k: string]: Renderable;
244
+ };
245
+ /**
246
+ * Optional package file capabilities recognized by contract version 1.
247
+ */
248
+ capabilities?: {
249
+ fonts?: Capability;
250
+ assets?: Capability;
251
+ };
252
+ /**
253
+ * Optional operation-local final-write declarations.
254
+ */
255
+ writeOrdering?: {
256
+ [k: string]: WriteOrderingRule;
257
+ };
258
+ }
259
+ /**
260
+ * Optional HTML object-key derivation rules.
261
+ */
262
+ export interface Routing {
263
+ /**
264
+ * Optional safe relative template containing {path} exactly once.
265
+ */
266
+ htmlKeyTemplate?: string;
267
+ /**
268
+ * Optional safe relative root-route object key.
269
+ */
270
+ rootKey?: string;
271
+ }
272
+ /**
273
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
274
+ * via the `definition` "copy".
275
+ */
276
+ export interface Copy {
277
+ /**
278
+ * Required non-empty fictional or outlet-owned page title. No omission default.
279
+ */
280
+ title: string;
281
+ /**
282
+ * Required non-empty fictional or outlet-owned page description. No omission default.
283
+ */
284
+ description: string;
285
+ }
286
+ /**
287
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
288
+ * via the `definition` "resources".
289
+ */
290
+ export interface Resources {
291
+ [k: string]: Resource;
292
+ }
293
+ /**
294
+ * Producer-owned contract metadata. The CPS validates kind/version and treats every other member as opaque.
295
+ *
296
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
297
+ * via the `definition` "opaqueContract".
298
+ */
299
+ export interface OpaqueContract {
300
+ kind: string;
301
+ version: number;
302
+ [k: string]: unknown;
303
+ }
304
+ /**
305
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
306
+ * via the `definition` "capability".
307
+ */
308
+ export interface Capability {
309
+ /**
310
+ * Required function export. No omission default.
311
+ */
312
+ export: string;
313
+ }
314
+ /**
315
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
316
+ * via the `definition` "writeOrderingRule".
317
+ */
318
+ export interface WriteOrderingRule {
319
+ /**
320
+ * Required ordered final-write keys. No omission default.
321
+ *
322
+ * @minItems 1
323
+ */
324
+ last: [SafeKey, ...SafeKey[]];
325
+ }
326
+ /**
327
+ * This interface was referenced by `CronkiteCLSManifest`'s JSON-Schema
328
+ * via the `definition` "routing".
329
+ */
330
+ export interface Routing1 {
331
+ /**
332
+ * Optional safe relative template containing {path} exactly once.
333
+ */
334
+ htmlKeyTemplate?: string;
335
+ /**
336
+ * Optional safe relative root-route object key.
337
+ */
338
+ rootKey?: string;
339
+ }
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /** Generated from the normative JSON Schema. Do not edit by hand. */
3
+ export {};
@@ -0,0 +1,5 @@
1
+ /** Generated from the normative JSON Schema. Do not edit by hand. */
2
+ export interface FifthbellLiveProgramReleaseInput {
3
+ programId: string;
4
+ apiBaseUrl: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /** Generated from the normative JSON Schema. Do not edit by hand. */
3
+ export {};
@@ -0,0 +1 @@
1
+ export declare function RemotionRoot(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Composition } from "remotion";
3
+ import { getDurationInFrames, ShortVideo } from "./ShortVideo.js";
4
+ const defaultProps = {
5
+ title: "Daily briefing",
6
+ byline: "Newsroom",
7
+ brand: {
8
+ name: "Newsroom",
9
+ siteUrl: "https://example.invalid",
10
+ primaryColor: "#182238",
11
+ secondaryColor: "#111827",
12
+ },
13
+ slides: [
14
+ {
15
+ type: "HOOK",
16
+ title: "Daily briefing",
17
+ byline: "Newsroom",
18
+ durationInFrames: 90,
19
+ },
20
+ {
21
+ type: "ARTICLE",
22
+ title: "Example story",
23
+ excerpt: "The caller supplies all editorial copy and brand assets.",
24
+ slug: "example-story",
25
+ durationInFrames: 150,
26
+ },
27
+ {
28
+ type: "OUTRO",
29
+ durationInFrames: 60,
30
+ },
31
+ ],
32
+ };
33
+ export function RemotionRoot() {
34
+ return (_jsx(Composition, { id: "BrokawShort", component: ShortVideo, calculateMetadata: ({ props }) => ({
35
+ durationInFrames: getDurationInFrames(props.slides),
36
+ fps: 30,
37
+ width: 1080,
38
+ height: 1920,
39
+ }), defaultProps: defaultProps, durationInFrames: getDurationInFrames(defaultProps.slides), fps: 30, width: 1080, height: 1920 }));
40
+ }
@@ -0,0 +1,3 @@
1
+ import type { ShortVideoProps, ShortVideoSlide } from "./types.js";
2
+ export declare function getDurationInFrames(slides: ShortVideoSlide[]): number;
3
+ export declare function ShortVideo({ slides, audioUrl, brand }: ShortVideoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,92 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AbsoluteFill, Audio, Img, interpolate, Sequence, spring, useCurrentFrame, useVideoConfig, } from "remotion";
3
+ const fill = {
4
+ alignItems: "center",
5
+ display: "flex",
6
+ justifyContent: "center",
7
+ padding: 96,
8
+ };
9
+ function Background({ brand, imageUrl, }) {
10
+ const frame = useCurrentFrame();
11
+ const { durationInFrames } = useVideoConfig();
12
+ const scale = interpolate(frame, [0, durationInFrames], [1, 1.08], {
13
+ extrapolateRight: "clamp",
14
+ });
15
+ const source = imageUrl ?? brand.backgroundImageUrl;
16
+ return (_jsxs(AbsoluteFill, { style: {
17
+ background: `linear-gradient(145deg, ${brand.primaryColor ?? "#b21100"}, ${brand.secondaryColor ?? "#111827"})`,
18
+ }, children: [source ? (_jsx(Img, { src: source, style: {
19
+ height: "100%",
20
+ objectFit: "cover",
21
+ opacity: 0.55,
22
+ transform: `scale(${scale})`,
23
+ width: "100%",
24
+ } })) : null, _jsx(AbsoluteFill, { style: {
25
+ background: "linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.82))",
26
+ } })] }));
27
+ }
28
+ function BrandMark({ brand }) {
29
+ return brand.logoUrl ? (_jsx(Img, { src: brand.logoUrl, style: { maxHeight: 220, maxWidth: 640, objectFit: "contain" } })) : (_jsx("div", { style: { color: "white", fontSize: 74, fontWeight: 800 }, children: brand.name }));
30
+ }
31
+ function HookSlide({ slide, brand, }) {
32
+ const frame = useCurrentFrame();
33
+ const { fps } = useVideoConfig();
34
+ const entrance = spring({ frame, fps, config: { damping: 22 } });
35
+ return (_jsxs(AbsoluteFill, { style: fill, children: [_jsx(Background, { brand: brand }), _jsxs("div", { style: {
36
+ color: "white",
37
+ opacity: entrance,
38
+ position: "relative",
39
+ textAlign: "center",
40
+ transform: `translateY(${interpolate(entrance, [0, 1], [60, 0])}px)`,
41
+ }, children: [_jsx(BrandMark, { brand: brand }), _jsx("h1", { style: { fontSize: 108, lineHeight: 1.02, margin: "92px 0 28px" }, children: slide.title }), _jsx("p", { style: { fontSize: 42, margin: 0 }, children: slide.byline })] })] }));
42
+ }
43
+ function ArticleSlide({ slide, brand, }) {
44
+ const frame = useCurrentFrame();
45
+ const { fps } = useVideoConfig();
46
+ const entrance = spring({ frame: frame - 8, fps, config: { damping: 24 } });
47
+ const articleUrl = slide.url
48
+ ? slide.url
49
+ : `${brand.siteUrl.replace(/\/$/, "")}/${(slide.slug ?? "").replace(/^\//, "")}`;
50
+ return (_jsxs(AbsoluteFill, { style: { ...fill, alignItems: "flex-end" }, children: [_jsx(Background, { brand: brand, imageUrl: slide.imageUrl }), _jsxs("div", { style: {
51
+ color: "white",
52
+ opacity: entrance,
53
+ position: "relative",
54
+ textShadow: "0 4px 18px rgba(0,0,0,0.55)",
55
+ transform: `translateY(${interpolate(entrance, [0, 1], [80, 0])}px)`,
56
+ width: "100%",
57
+ }, children: [_jsx("div", { style: { fontSize: 34, fontWeight: 700 }, children: brand.name }), _jsx("h2", { style: { fontSize: 88, lineHeight: 1.08, margin: "28px 0" }, children: slide.title }), _jsx("p", { style: { fontSize: 44, lineHeight: 1.35, margin: "0 0 52px" }, children: slide.excerpt }), _jsx("div", { style: { fontSize: 30, opacity: 0.88 }, children: articleUrl })] })] }));
58
+ }
59
+ function OutroSlide({ slide, brand, }) {
60
+ const frame = useCurrentFrame();
61
+ const { fps } = useVideoConfig();
62
+ const entrance = spring({ frame, fps, config: { damping: 20 } });
63
+ return (_jsxs(AbsoluteFill, { style: fill, children: [_jsx(Background, { brand: brand }), _jsxs("div", { style: {
64
+ opacity: entrance,
65
+ position: "relative",
66
+ textAlign: "center",
67
+ transform: `scale(${interpolate(entrance, [0, 1], [0.86, 1])})`,
68
+ }, children: [_jsx(BrandMark, { brand: brand }), _jsx("div", { style: { color: "white", fontSize: 44, marginTop: 72 }, children: slide.text ?? brand.siteUrl })] })] }));
69
+ }
70
+ function Slide({ slide, brand, }) {
71
+ if (slide.type === "HOOK")
72
+ return _jsx(HookSlide, { slide: slide, brand: brand });
73
+ if (slide.type === "ARTICLE") {
74
+ return _jsx(ArticleSlide, { slide: slide, brand: brand });
75
+ }
76
+ return _jsx(OutroSlide, { slide: slide, brand: brand });
77
+ }
78
+ export function getDurationInFrames(slides) {
79
+ return slides.reduce((total, slide) => total + slide.durationInFrames, 0);
80
+ }
81
+ export function ShortVideo({ slides, audioUrl, brand }) {
82
+ const frame = useCurrentFrame();
83
+ const { fps } = useVideoConfig();
84
+ const totalFrames = getDurationInFrames(slides);
85
+ const volume = interpolate(frame, [Math.max(0, totalFrames - fps), totalFrames], [1, 0], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
86
+ let from = 0;
87
+ return (_jsxs(AbsoluteFill, { style: { backgroundColor: "#000" }, children: [slides.map((slide, index) => {
88
+ const start = from;
89
+ from += slide.durationInFrames;
90
+ return (_jsx(Sequence, { from: start, durationInFrames: slide.durationInFrames, children: _jsx(Slide, { slide: slide, brand: brand }) }, `${slide.type}-${index}`));
91
+ }), audioUrl ? _jsx(Audio, { src: audioUrl, volume: volume }) : null] }));
92
+ }
@@ -0,0 +1,2 @@
1
+ export { getDurationInFrames, ShortVideo } from "./ShortVideo.js";
2
+ export type { ArticleSlide, HookSlide, OutroSlide, ShortVideoBrand, ShortVideoProps, ShortVideoSlide, } from "./types.js";
@@ -0,0 +1,4 @@
1
+ import { registerRoot } from "remotion";
2
+ import { RemotionRoot } from "./Root.js";
3
+ registerRoot(RemotionRoot);
4
+ export { getDurationInFrames, ShortVideo } from "./ShortVideo.js";
@@ -0,0 +1,37 @@
1
+ export type ShortVideoBrand = {
2
+ name: string;
3
+ siteUrl: string;
4
+ logoUrl?: string;
5
+ backgroundImageUrl?: string;
6
+ primaryColor?: string;
7
+ secondaryColor?: string;
8
+ };
9
+ export type HookSlide = {
10
+ type: "HOOK";
11
+ title: string;
12
+ byline: string;
13
+ durationInFrames: number;
14
+ };
15
+ export type ArticleSlide = {
16
+ type: "ARTICLE";
17
+ title: string;
18
+ excerpt: string;
19
+ imageUrl?: string;
20
+ url?: string;
21
+ slug?: string;
22
+ durationInFrames: number;
23
+ articleId?: string | number;
24
+ };
25
+ export type OutroSlide = {
26
+ type: "OUTRO";
27
+ text?: string;
28
+ durationInFrames: number;
29
+ };
30
+ export type ShortVideoSlide = HookSlide | ArticleSlide | OutroSlide;
31
+ export type ShortVideoProps = Record<string, unknown> & {
32
+ title: string;
33
+ byline: string;
34
+ slides: ShortVideoSlide[];
35
+ audioUrl?: string | null;
36
+ brand: ShortVideoBrand;
37
+ };
@@ -0,0 +1 @@
1
+ export {};
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.65",
4
+ "version": "0.1.66",
5
5
  "license": "MIT",
6
6
  "author": "fifthbell",
7
7
  "repository": {
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "files": [
26
26
  "dist",
27
+ "dist/cronkite-manifest.json",
27
28
  "src/templates",
28
29
  "src/partial-deps.json",
29
30
  "src/styles/compiled.css"
@@ -35,6 +36,12 @@
35
36
  "types": "./dist/renderer.d.ts",
36
37
  "import": "./dist/renderer.js"
37
38
  },
39
+ "./cronkite-manifest.json": "./dist/cronkite-manifest.json",
40
+ "./schemas/canonical-document.schema.json": "./dist/schemas/canonical-document.schema.json",
41
+ "./schemas/cronkite-manifest.schema.json": "./dist/schemas/cronkite-manifest.schema.json",
42
+ "./schemas/feed-renderable-input.schema.json": "./dist/schemas/feed-renderable-input.schema.json",
43
+ "./schemas/live-program-release-input.schema.json": "./dist/schemas/live-program-release-input.schema.json",
44
+ "./video": "./dist/video/index.js",
38
45
  "./components/live-program": {
39
46
  "types": "./dist/components/live-program/LiveProgram.d.ts",
40
47
  "import": "./dist/components/live-program/LiveProgram.js"
@@ -45,14 +52,19 @@
45
52
  "clean": "node -e \"require('node:fs').rmSync('dist',{ recursive: true, force: true })\"",
46
53
  "build:css": "tailwindcss -i src/styles/global.css -o src/styles/compiled.css --minify",
47
54
  "build:live-program": "vite build --config vite.config.live-program.ts",
48
- "build": "npm run clean && npm run build:css && npm run build:live-program && tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/styles/fonts','dist/fonts',{recursive:true})\" && node scripts/verify-live-program.mjs",
55
+ "generate:contract-types": "node scripts/generate-contract-types.mjs",
56
+ "build:contract": "node scripts/build-contract.mjs",
57
+ "build": "npm run clean && npm run build:css && npm run build:live-program && npm run generate:contract-types && tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/styles/fonts','dist/fonts',{recursive:true})\" && node scripts/verify-live-program.mjs && npm run build:contract",
49
58
  "storybook": "npm run build:css && storybook dev -p 6006",
50
59
  "build-storybook": "npm run build:css && storybook build",
51
- "typecheck": "tsc --noEmit -p tsconfig.json",
60
+ "typecheck": "npm run generate:contract-types && tsc --noEmit -p tsconfig.json",
52
61
  "test": "npm run test:unit",
53
- "test:unit": "vitest run --project unit"
62
+ "pretest:unit": "npm run generate:contract-types && npm run build:css && npm run build:live-program",
63
+ "test:unit": "vitest run --project unit",
64
+ "verify:packed-remotion": "npm run build && node scripts/verify-packed-remotion.mjs"
54
65
  },
55
66
  "dependencies": {
67
+ "ajv": "^8.20.0",
56
68
  "date-fns": "^4.1.0",
57
69
  "fast-average-color": "^9.5.2",
58
70
  "framer-motion": "^12.38.0",
@@ -61,9 +73,11 @@
61
73
  "qrcode-generator": "^2.0.4",
62
74
  "react": "^19.2.5",
63
75
  "react-dom": "^19.2.5",
76
+ "remotion": "4.0.524",
64
77
  "zod": "^4.3.6"
65
78
  },
66
79
  "devDependencies": {
80
+ "@remotion/bundler": "4.0.524",
67
81
  "@chromatic-com/storybook": "^5.0.1",
68
82
  "@storybook/addon-a11y": "^10.2.16",
69
83
  "@storybook/addon-docs": "^10.2.16",
@@ -78,6 +92,7 @@
78
92
  "@vitejs/plugin-react": "^6.0.2",
79
93
  "@vitest/browser-playwright": "^4.0.18",
80
94
  "@vitest/coverage-v8": "^4.0.18",
95
+ "json-schema-to-typescript": "^16.0.0",
81
96
  "playwright": "^1.58.2",
82
97
  "storybook": "^10.2.16",
83
98
  "tailwindcss": "^4.2.1",