@fifthbell/brokaw 0.1.67 → 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.
- 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.69.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/renderer.node.js +0 -9
- 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 +2 -2
- 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 +4 -12
- 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.67.css +0 -3
- /package/dist/live-program-page/{live-program.v0.1.67.js → live-program.v0.1.69.js} +0 -0
|
@@ -1,500 +1,134 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://
|
|
4
|
-
"title": "Cronkite
|
|
5
|
-
"description": "Machine-readable structural contract for a Cronkite-compatible Component Library System manifest. Semantic cross-field and package checks are specified in ../validation.md.",
|
|
3
|
+
"$id": "https://cronkite.invalid/schemas/template-manifest-v1.schema.json",
|
|
4
|
+
"title": "Cronkite declarative template manifest",
|
|
6
5
|
"type": "object",
|
|
7
6
|
"additionalProperties": false,
|
|
8
|
-
"required": [
|
|
9
|
-
"contract",
|
|
10
|
-
"contractVersion",
|
|
11
|
-
"package",
|
|
12
|
-
"version",
|
|
13
|
-
"layouts",
|
|
14
|
-
"languages"
|
|
15
|
-
],
|
|
7
|
+
"required": ["package", "version", "templateRendering"],
|
|
16
8
|
"properties": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"description": "Required manifest contract version. No omission default."
|
|
24
|
-
},
|
|
25
|
-
"package": {
|
|
9
|
+
"package": { "type": "string", "minLength": 1 },
|
|
10
|
+
"version": { "type": "string", "minLength": 1 },
|
|
11
|
+
"templateRendering": { "$ref": "#/$defs/templateRendering" }
|
|
12
|
+
},
|
|
13
|
+
"$defs": {
|
|
14
|
+
"safePath": {
|
|
26
15
|
"type": "string",
|
|
27
16
|
"minLength": 1,
|
|
28
|
-
"
|
|
29
|
-
"pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$",
|
|
30
|
-
"description": "Required npm package name without a version. No omission default."
|
|
31
|
-
},
|
|
32
|
-
"version": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"maxLength": 256,
|
|
35
|
-
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-((?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$",
|
|
36
|
-
"description": "Required exact SemVer package version. No omission default."
|
|
37
|
-
},
|
|
38
|
-
"layouts": {
|
|
39
|
-
"type": "array",
|
|
40
|
-
"minItems": 1,
|
|
41
|
-
"uniqueItems": true,
|
|
42
|
-
"items": { "$ref": "#/$defs/name" },
|
|
43
|
-
"description": "Required authoritative set of page layouts. No omission default."
|
|
44
|
-
},
|
|
45
|
-
"languages": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"minItems": 1,
|
|
48
|
-
"uniqueItems": true,
|
|
49
|
-
"items": { "$ref": "#/$defs/languageTag" },
|
|
50
|
-
"description": "Required supported BCP 47 language tags. No omission default."
|
|
17
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*[\\\\\\u0000\\r\\n]).+$"
|
|
51
18
|
},
|
|
52
|
-
"
|
|
53
|
-
"type": "object",
|
|
54
|
-
"minProperties": 1,
|
|
55
|
-
"propertyNames": { "$ref": "#/$defs/name" },
|
|
56
|
-
"additionalProperties": { "$ref": "#/$defs/safePrefix" },
|
|
57
|
-
"default": {
|
|
58
|
-
"article-page": "json/articles",
|
|
59
|
-
"standalone-page": "json/pages"
|
|
60
|
-
},
|
|
61
|
-
"description": "Optional layout-to-canonical-JSON-prefix map. Supplying the object replaces the whole default map."
|
|
62
|
-
},
|
|
63
|
-
"routing": {
|
|
64
|
-
"$ref": "#/$defs/routing",
|
|
65
|
-
"default": {
|
|
66
|
-
"htmlKeyTemplate": "html/{path}/index.html",
|
|
67
|
-
"rootKey": "html/index.html"
|
|
68
|
-
},
|
|
69
|
-
"description": "Optional HTML object-key derivation rules."
|
|
70
|
-
},
|
|
71
|
-
"systemPages": {
|
|
72
|
-
"type": "array",
|
|
73
|
-
"items": { "$ref": "#/$defs/systemPage" },
|
|
74
|
-
"default": [],
|
|
75
|
-
"description": "Optional system-generated pages. Expanded route/key uniqueness is a semantic validation rule."
|
|
76
|
-
},
|
|
77
|
-
"renderables": {
|
|
78
|
-
"type": "object",
|
|
79
|
-
"propertyNames": { "$ref": "#/$defs/name" },
|
|
80
|
-
"additionalProperties": { "$ref": "#/$defs/renderable" },
|
|
81
|
-
"default": {},
|
|
82
|
-
"description": "Optional explicit page or asset renderables in the same namespace as layouts."
|
|
83
|
-
},
|
|
84
|
-
"capabilities": {
|
|
19
|
+
"templateReference": {
|
|
85
20
|
"type": "object",
|
|
86
21
|
"additionalProperties": false,
|
|
22
|
+
"required": ["entry", "partials"],
|
|
87
23
|
"properties": {
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
}
|
|
91
|
-
"default": {},
|
|
92
|
-
"description": "Optional package file capabilities recognized by contract version 1."
|
|
93
|
-
},
|
|
94
|
-
"writeOrdering": {
|
|
95
|
-
"type": "object",
|
|
96
|
-
"propertyNames": { "$ref": "#/$defs/name" },
|
|
97
|
-
"additionalProperties": { "$ref": "#/$defs/writeOrderingRule" },
|
|
98
|
-
"default": {},
|
|
99
|
-
"description": "Optional operation-local final-write declarations."
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"$defs": {
|
|
103
|
-
"name": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
106
|
-
"minLength": 1,
|
|
107
|
-
"maxLength": 128
|
|
108
|
-
},
|
|
109
|
-
"languageTag": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"pattern": "^[A-Za-z0-9]{1,8}(?:-[A-Za-z0-9]{1,8})*$",
|
|
112
|
-
"minLength": 1,
|
|
113
|
-
"maxLength": 63,
|
|
114
|
-
"description": "Permissive lexical envelope including grandfathered and private-use tags; a standards-compliant BCP 47 parser is authoritative."
|
|
115
|
-
},
|
|
116
|
-
"javascriptIdentifier": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"pattern": "^[A-Za-z_$][A-Za-z0-9_$]*$",
|
|
119
|
-
"minLength": 1,
|
|
120
|
-
"maxLength": 128
|
|
121
|
-
},
|
|
122
|
-
"safePrefix": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"pattern": "^(?!/)(?!\\.{1,2}(?:/|$))(?!.*(?:/\\.{1,2})(?:/|$))(?!.*//)(?!.*[\\\\?#\\u0000\\r\\n])(?!.*\\{)[^/]+(?:/[^/]+)*$",
|
|
125
|
-
"minLength": 1,
|
|
126
|
-
"maxLength": 1024
|
|
127
|
-
},
|
|
128
|
-
"safeKey": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"pattern": "^(?!/)(?!\\.{1,2}(?:/|$))(?!.*(?:/\\.{1,2})(?:/|$))(?!.*//)(?!.*[\\\\?#\\u0000\\r\\n])(?!.*\\{)[^/]+(?:/[^/]+)*$",
|
|
131
|
-
"minLength": 1,
|
|
132
|
-
"maxLength": 1024
|
|
133
|
-
},
|
|
134
|
-
"safeKeyWithLanguage": {
|
|
135
|
-
"type": "string",
|
|
136
|
-
"pattern": "^(?!/)(?!\\.{1,2}(?:/|$))(?!.*(?:/\\.{1,2})(?:/|$))(?!.*//)(?!.*[\\\\?#\\u0000\\r\\n])(?!(?:.*\\{language\\}){2})(?!.*\\{(?!language\\})[^}]*\\})[^/]+(?:/[^/]+)*$",
|
|
137
|
-
"minLength": 1,
|
|
138
|
-
"maxLength": 1024
|
|
139
|
-
},
|
|
140
|
-
"siteRouteWithLanguage": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"pattern": "^/(?:$|(?!/)(?!\\.{1,2}(?:/|$))(?!.*(?:/\\.{1,2})(?:/|$))(?!.*//)(?!.*[\\\\?#\\u0000\\r\\n])(?!(?:.*\\{language\\}){2})(?!.*\\{(?!language\\})[^}]*\\})[^/?#]+(?:/[^/?#]+)*)$",
|
|
143
|
-
"minLength": 1,
|
|
144
|
-
"maxLength": 2048
|
|
145
|
-
},
|
|
146
|
-
"packageEntry": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"pattern": "^(?!/)(?!\\.{1,2}(?:/|$))(?!.*(?:/\\.{1,2})(?:/|$))(?!.*//)(?!.*[\\\\?#\\u0000\\r\\n])(?!.*\\{)[^/]+(?:/[^/]+)*$",
|
|
149
|
-
"minLength": 1,
|
|
150
|
-
"maxLength": 1024
|
|
151
|
-
},
|
|
152
|
-
"mediaType": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"pattern": "^[A-Za-z0-9!#$&^_.+-]+/[A-Za-z0-9!#$&^_.+-]+(?:\\s*;\\s*[A-Za-z0-9!#$&^_.+-]+=(?:[A-Za-z0-9!#$&^_.+-]+|\"[^\"\\r\\n]*\"))*$",
|
|
155
|
-
"maxLength": 256
|
|
24
|
+
"entry": { "$ref": "#/$defs/safePath" },
|
|
25
|
+
"partials": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
26
|
+
}
|
|
156
27
|
},
|
|
157
|
-
"
|
|
28
|
+
"partial": { "$ref": "#/$defs/templateReference" },
|
|
29
|
+
"helperConfig": {
|
|
158
30
|
"type": "object",
|
|
159
31
|
"additionalProperties": false,
|
|
32
|
+
"required": ["siteName", "defaultLanguage", "supportedLanguages", "prefixDefaultLocale", "dateLocale", "timeZone", "homepageTitles", "layoutTitleFallbacks", "titleSeparator", "defaultSocialImageUrl"],
|
|
160
33
|
"properties": {
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
"default": "html/index.html",
|
|
172
|
-
"description": "Optional safe relative root-route object key."
|
|
173
|
-
}
|
|
34
|
+
"siteName": { "type": "string", "minLength": 1 },
|
|
35
|
+
"defaultLanguage": { "type": "string", "minLength": 1 },
|
|
36
|
+
"supportedLanguages": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
37
|
+
"prefixDefaultLocale": { "type": "boolean" },
|
|
38
|
+
"dateLocale": { "type": "string", "minLength": 1 },
|
|
39
|
+
"timeZone": { "type": "string", "minLength": 1 },
|
|
40
|
+
"homepageTitles": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1 } },
|
|
41
|
+
"layoutTitleFallbacks": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1 } },
|
|
42
|
+
"titleSeparator": { "type": "string" },
|
|
43
|
+
"defaultSocialImageUrl": { "oneOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] }
|
|
174
44
|
}
|
|
175
45
|
},
|
|
176
|
-
"
|
|
46
|
+
"embedParameter": {
|
|
177
47
|
"type": "object",
|
|
178
48
|
"additionalProperties": false,
|
|
179
|
-
"required": ["
|
|
49
|
+
"required": ["type"],
|
|
180
50
|
"properties": {
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
"description": {
|
|
189
|
-
"type": "string",
|
|
190
|
-
"minLength": 1,
|
|
191
|
-
"maxLength": 2048,
|
|
192
|
-
"pattern": "\\S",
|
|
193
|
-
"description": "Required non-empty fictional or outlet-owned page description. No omission default."
|
|
194
|
-
}
|
|
51
|
+
"type": { "enum": ["string", "integer"] },
|
|
52
|
+
"pattern": { "type": "string" },
|
|
53
|
+
"enum": { "type": "array", "minItems": 1 },
|
|
54
|
+
"default": { "type": ["string", "integer"] },
|
|
55
|
+
"minimum": { "type": "integer" },
|
|
56
|
+
"maximum": { "type": "integer" }
|
|
195
57
|
}
|
|
196
58
|
},
|
|
197
|
-
"
|
|
59
|
+
"embed": {
|
|
198
60
|
"type": "object",
|
|
199
61
|
"additionalProperties": false,
|
|
200
|
-
"required": [
|
|
201
|
-
"layout",
|
|
202
|
-
"route",
|
|
203
|
-
"key",
|
|
204
|
-
"cacheControl",
|
|
205
|
-
"perLanguage",
|
|
206
|
-
"copy"
|
|
207
|
-
],
|
|
62
|
+
"required": ["urlTemplate", "parameters"],
|
|
208
63
|
"properties": {
|
|
209
|
-
"
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
"route": {
|
|
214
|
-
"$ref": "#/$defs/siteRouteWithLanguage",
|
|
215
|
-
"description": "Required public route, optionally with one {language} token. No omission default."
|
|
216
|
-
},
|
|
217
|
-
"key": {
|
|
218
|
-
"$ref": "#/$defs/safeKeyWithLanguage",
|
|
219
|
-
"description": "Required safe relative object key, optionally with one {language} token. No omission default."
|
|
220
|
-
},
|
|
221
|
-
"cacheControl": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"minLength": 1,
|
|
224
|
-
"maxLength": 1024,
|
|
225
|
-
"pattern": "^[^\\r\\n]+$",
|
|
226
|
-
"description": "Required Cache-Control field value. No omission default."
|
|
227
|
-
},
|
|
228
|
-
"perLanguage": {
|
|
229
|
-
"type": "boolean",
|
|
230
|
-
"description": "Required switch controlling language expansion. No omission default."
|
|
231
|
-
},
|
|
232
|
-
"copy": {
|
|
233
|
-
"type": "object",
|
|
234
|
-
"minProperties": 1,
|
|
235
|
-
"propertyNames": { "$ref": "#/$defs/languageTag" },
|
|
236
|
-
"additionalProperties": { "$ref": "#/$defs/copy" },
|
|
237
|
-
"description": "Required language-to-copy map. No omission default."
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"allOf": [
|
|
241
|
-
{
|
|
242
|
-
"if": {
|
|
243
|
-
"properties": { "perLanguage": { "const": true } },
|
|
244
|
-
"required": ["perLanguage"]
|
|
245
|
-
},
|
|
246
|
-
"then": {
|
|
247
|
-
"properties": {
|
|
248
|
-
"route": { "type": "string", "pattern": "\\{language\\}" },
|
|
249
|
-
"key": { "type": "string", "pattern": "\\{language\\}" }
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"else": {
|
|
253
|
-
"properties": {
|
|
254
|
-
"route": {
|
|
255
|
-
"type": "string",
|
|
256
|
-
"not": { "type": "string", "pattern": "\\{language\\}" }
|
|
257
|
-
},
|
|
258
|
-
"key": {
|
|
259
|
-
"type": "string",
|
|
260
|
-
"not": { "type": "string", "pattern": "\\{language\\}" }
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
]
|
|
64
|
+
"urlTemplate": { "type": "string", "minLength": 1 },
|
|
65
|
+
"parameters": { "type": "object", "additionalProperties": { "$ref": "#/$defs/embedParameter" } }
|
|
66
|
+
}
|
|
266
67
|
},
|
|
267
|
-
"
|
|
68
|
+
"raster": {
|
|
268
69
|
"type": "object",
|
|
269
|
-
"
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": ["format", "width", "height"],
|
|
270
72
|
"properties": {
|
|
271
|
-
"
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
"pattern": "\\S"
|
|
276
|
-
},
|
|
277
|
-
"version": {
|
|
278
|
-
"type": "integer",
|
|
279
|
-
"minimum": 1
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
"additionalProperties": true,
|
|
283
|
-
"description": "Producer-owned contract metadata. The CPS validates kind/version and treats every other member as opaque."
|
|
73
|
+
"format": { "enum": ["png", "jpeg", "webp"] },
|
|
74
|
+
"width": { "type": "integer", "minimum": 1, "maximum": 16384 },
|
|
75
|
+
"height": { "type": "integer", "minimum": 1, "maximum": 16384 }
|
|
76
|
+
}
|
|
284
77
|
},
|
|
285
|
-
"
|
|
78
|
+
"renderable": {
|
|
286
79
|
"type": "object",
|
|
287
80
|
"additionalProperties": false,
|
|
288
|
-
"required": ["
|
|
81
|
+
"required": ["template", "inputSchema", "contentType"],
|
|
289
82
|
"properties": {
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
"$ref": "#/$defs/packageEntry",
|
|
296
|
-
"description": "Required packed draft-2020-12 JSON Schema path."
|
|
297
|
-
},
|
|
298
|
-
"contentType": {
|
|
299
|
-
"$ref": "#/$defs/mediaType",
|
|
300
|
-
"description": "Required resource media type."
|
|
301
|
-
},
|
|
302
|
-
"perLanguage": {
|
|
303
|
-
"type": "boolean",
|
|
304
|
-
"default": false,
|
|
305
|
-
"description": "Optional language-expansion switch."
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
"allOf": [
|
|
309
|
-
{
|
|
310
|
-
"if": {
|
|
311
|
-
"properties": { "perLanguage": { "const": true } },
|
|
312
|
-
"required": ["perLanguage"]
|
|
313
|
-
},
|
|
314
|
-
"then": {
|
|
315
|
-
"properties": {
|
|
316
|
-
"key": { "type": "string", "pattern": "\\{language\\}" }
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"else": {
|
|
320
|
-
"properties": {
|
|
321
|
-
"key": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"not": { "type": "string", "pattern": "\\{language\\}" }
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
]
|
|
83
|
+
"template": { "$ref": "#/$defs/templateReference" },
|
|
84
|
+
"inputSchema": { "$ref": "#/$defs/safePath" },
|
|
85
|
+
"contentType": { "type": "string", "minLength": 1 },
|
|
86
|
+
"raster": { "$ref": "#/$defs/raster" }
|
|
87
|
+
}
|
|
329
88
|
},
|
|
330
|
-
"
|
|
89
|
+
"staticAsset": {
|
|
331
90
|
"type": "object",
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
"
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["source", "contentType", "cacheControl"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"source": { "$ref": "#/$defs/safePath" },
|
|
95
|
+
"contentType": { "type": "string", "minLength": 1 },
|
|
96
|
+
"cacheControl": { "type": "string", "minLength": 1 }
|
|
97
|
+
}
|
|
335
98
|
},
|
|
336
|
-
"
|
|
99
|
+
"systemVariant": {
|
|
337
100
|
"type": "object",
|
|
338
101
|
"additionalProperties": false,
|
|
339
|
-
"required": ["
|
|
102
|
+
"required": ["key", "document"],
|
|
340
103
|
"properties": {
|
|
341
|
-
"
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
"export": {
|
|
346
|
-
"$ref": "#/$defs/javascriptIdentifier",
|
|
347
|
-
"description": "Function export required by handlebars and html-raster. No omission default."
|
|
348
|
-
},
|
|
349
|
-
"entry": {
|
|
350
|
-
"$ref": "#/$defs/packageEntry",
|
|
351
|
-
"description": "Packed package entry required by remotion. No omission default."
|
|
352
|
-
},
|
|
353
|
-
"compositionId": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
|
|
356
|
-
"minLength": 1,
|
|
357
|
-
"maxLength": 128,
|
|
358
|
-
"description": "Composition selector required by remotion. No omission default."
|
|
359
|
-
},
|
|
360
|
-
"outputMode": {
|
|
361
|
-
"enum": ["single", "files"],
|
|
362
|
-
"default": "single",
|
|
363
|
-
"description": "Optional result mode; files uses the FileEntry array ABI."
|
|
364
|
-
},
|
|
365
|
-
"lifecycle": {
|
|
366
|
-
"enum": ["request", "basement"],
|
|
367
|
-
"default": "request",
|
|
368
|
-
"description": "Optional request-derived or CLS-version-derived lifecycle."
|
|
369
|
-
},
|
|
370
|
-
"contentType": {
|
|
371
|
-
"$ref": "#/$defs/mediaType",
|
|
372
|
-
"description": "Media type required for a single output and forbidden for a file set."
|
|
373
|
-
},
|
|
374
|
-
"width": {
|
|
375
|
-
"type": "integer",
|
|
376
|
-
"minimum": 1,
|
|
377
|
-
"maximum": 16384,
|
|
378
|
-
"description": "Positive pixel width required by html-raster."
|
|
379
|
-
},
|
|
380
|
-
"height": {
|
|
381
|
-
"type": "integer",
|
|
382
|
-
"minimum": 1,
|
|
383
|
-
"maximum": 16384,
|
|
384
|
-
"description": "Positive pixel height required by html-raster."
|
|
385
|
-
},
|
|
386
|
-
"key": {
|
|
387
|
-
"$ref": "#/$defs/safeKey",
|
|
388
|
-
"description": "Output key required only for a basement single output."
|
|
389
|
-
},
|
|
390
|
-
"inputSchema": {
|
|
391
|
-
"$ref": "#/$defs/packageEntry",
|
|
392
|
-
"description": "Optional packed draft-2020-12 input-schema path."
|
|
393
|
-
},
|
|
394
|
-
"resources": {
|
|
395
|
-
"$ref": "#/$defs/resources"
|
|
396
|
-
},
|
|
397
|
-
"contract": {
|
|
398
|
-
"$ref": "#/$defs/opaqueContract"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
"allOf": [
|
|
402
|
-
{
|
|
403
|
-
"oneOf": [
|
|
404
|
-
{
|
|
405
|
-
"properties": {
|
|
406
|
-
"engine": { "const": "handlebars" },
|
|
407
|
-
"outputMode": { "const": "single" },
|
|
408
|
-
"contentType": { "type": "string", "pattern": "^text/" },
|
|
409
|
-
"export": true,
|
|
410
|
-
"entry": false,
|
|
411
|
-
"compositionId": false,
|
|
412
|
-
"width": false,
|
|
413
|
-
"height": false
|
|
414
|
-
},
|
|
415
|
-
"required": ["export", "contentType"]
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"properties": {
|
|
419
|
-
"engine": { "const": "handlebars" },
|
|
420
|
-
"outputMode": { "const": "files" },
|
|
421
|
-
"export": true,
|
|
422
|
-
"entry": false,
|
|
423
|
-
"compositionId": false,
|
|
424
|
-
"contentType": false,
|
|
425
|
-
"width": false,
|
|
426
|
-
"height": false,
|
|
427
|
-
"key": false
|
|
428
|
-
},
|
|
429
|
-
"required": ["export", "outputMode"]
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"properties": {
|
|
433
|
-
"engine": { "const": "html-raster" },
|
|
434
|
-
"outputMode": { "const": "single" },
|
|
435
|
-
"contentType": { "type": "string", "pattern": "^image/" },
|
|
436
|
-
"export": true,
|
|
437
|
-
"width": true,
|
|
438
|
-
"height": true,
|
|
439
|
-
"entry": false,
|
|
440
|
-
"compositionId": false
|
|
441
|
-
},
|
|
442
|
-
"required": ["export", "contentType", "width", "height"]
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
"properties": {
|
|
446
|
-
"engine": { "const": "remotion" },
|
|
447
|
-
"outputMode": { "const": "single" },
|
|
448
|
-
"contentType": { "type": "string", "pattern": "^video/" },
|
|
449
|
-
"entry": true,
|
|
450
|
-
"compositionId": true,
|
|
451
|
-
"export": false,
|
|
452
|
-
"width": false,
|
|
453
|
-
"height": false
|
|
454
|
-
},
|
|
455
|
-
"required": ["entry", "compositionId", "contentType"]
|
|
456
|
-
}
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"if": {
|
|
461
|
-
"properties": {
|
|
462
|
-
"lifecycle": { "const": "basement" },
|
|
463
|
-
"outputMode": { "const": "single" }
|
|
464
|
-
},
|
|
465
|
-
"required": ["lifecycle"]
|
|
466
|
-
},
|
|
467
|
-
"then": {
|
|
468
|
-
"properties": { "key": true },
|
|
469
|
-
"required": ["key"]
|
|
470
|
-
},
|
|
471
|
-
"else": { "properties": { "key": false } }
|
|
472
|
-
}
|
|
473
|
-
]
|
|
104
|
+
"key": { "$ref": "#/$defs/safePath" },
|
|
105
|
+
"document": { "type": "object" }
|
|
106
|
+
}
|
|
474
107
|
},
|
|
475
|
-
"
|
|
108
|
+
"systemPage": {
|
|
476
109
|
"type": "object",
|
|
477
110
|
"additionalProperties": false,
|
|
478
|
-
"required": ["
|
|
111
|
+
"required": ["renderable", "contentType", "cacheControl", "variants"],
|
|
479
112
|
"properties": {
|
|
480
|
-
"
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
113
|
+
"renderable": { "type": "string", "minLength": 1 },
|
|
114
|
+
"contentType": { "type": "string", "minLength": 1 },
|
|
115
|
+
"cacheControl": { "type": "string", "minLength": 1 },
|
|
116
|
+
"variants": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/systemVariant" } }
|
|
484
117
|
}
|
|
485
118
|
},
|
|
486
|
-
"
|
|
119
|
+
"templateRendering": {
|
|
487
120
|
"type": "object",
|
|
488
121
|
"additionalProperties": false,
|
|
489
|
-
"required": ["
|
|
122
|
+
"required": ["contract", "contractVersion", "partials", "helperConfig", "embedRegistry", "renderables", "staticAssets", "systemPages"],
|
|
490
123
|
"properties": {
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
124
|
+
"contract": { "const": "cronkite.templates" },
|
|
125
|
+
"contractVersion": { "const": 1 },
|
|
126
|
+
"partials": { "type": "object", "additionalProperties": { "$ref": "#/$defs/partial" } },
|
|
127
|
+
"helperConfig": { "$ref": "#/$defs/helperConfig" },
|
|
128
|
+
"embedRegistry": { "type": "object", "additionalProperties": { "$ref": "#/$defs/embed" } },
|
|
129
|
+
"renderables": { "type": "object", "minProperties": 1, "additionalProperties": { "$ref": "#/$defs/renderable" } },
|
|
130
|
+
"staticAssets": { "type": "object", "additionalProperties": { "$ref": "#/$defs/staticAsset" } },
|
|
131
|
+
"systemPages": { "type": "array", "items": { "$ref": "#/$defs/systemPage" } }
|
|
498
132
|
}
|
|
499
133
|
}
|
|
500
134
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://fifthbell.com/schemas/social-image-input-v1.schema.json",
|
|
4
|
+
"title": "Fifthbell social image input",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["imageUrl", "categoryName", "title", "qrCodeHtml"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"imageUrl": { "type": "string", "format": "uri" },
|
|
10
|
+
"categoryName": { "type": "string", "minLength": 1 },
|
|
11
|
+
"title": { "type": "string", "minLength": 1 },
|
|
12
|
+
"qrCodeHtml": { "type": "string", "minLength": 1 }
|
|
13
|
+
}
|
|
14
|
+
}
|