@fifthbell/brokaw 0.1.41 → 0.1.45
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/dist/outlet-config.d.ts +4 -0
- package/dist/outlet-config.js +5 -1
- package/dist/renderer.browser.d.ts +2 -2
- package/dist/renderer.browser.js +2 -2
- package/dist/renderer.core.d.ts +3 -3
- package/dist/renderer.d.ts +2 -0
- package/dist/renderer.js +1 -0
- package/dist/renderer.node.d.ts +2 -2
- package/dist/renderer.node.js +2 -2
- package/dist/types/canonical-article.d.ts +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +10 -3
package/dist/outlet-config.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare const outletConfig: {
|
|
|
2
2
|
readonly siteName: "fifthbell";
|
|
3
3
|
readonly publicSiteUrl: "https://fifthbell.com";
|
|
4
4
|
readonly cdnUrl: "https://cdn.fifthbell.com";
|
|
5
|
+
readonly contentPath: "/content";
|
|
6
|
+
readonly inventoryFilename: "cronkite-inventory.json";
|
|
5
7
|
readonly defaultLanguage: "en";
|
|
6
8
|
readonly supportedLanguages: readonly ["en", "es", "it"];
|
|
7
9
|
readonly prefixDefaultLocale: false;
|
|
@@ -22,4 +24,6 @@ export declare const outletConfig: {
|
|
|
22
24
|
};
|
|
23
25
|
readonly socialLanguages: readonly ["en"];
|
|
24
26
|
readonly socialUserAgent: "Cronkite/1.0";
|
|
27
|
+
readonly socialImageExport: "buildInstagramImageHtml";
|
|
28
|
+
readonly hashtagServiceBaseUrl: "http://192.168.0.99:8000";
|
|
25
29
|
};
|
package/dist/outlet-config.js
CHANGED
|
@@ -2,6 +2,8 @@ export const outletConfig = {
|
|
|
2
2
|
siteName: 'fifthbell',
|
|
3
3
|
publicSiteUrl: 'https://fifthbell.com',
|
|
4
4
|
cdnUrl: 'https://cdn.fifthbell.com',
|
|
5
|
+
contentPath: '/content',
|
|
6
|
+
inventoryFilename: 'cronkite-inventory.json',
|
|
5
7
|
defaultLanguage: 'en',
|
|
6
8
|
supportedLanguages: ['en', 'es', 'it'],
|
|
7
9
|
prefixDefaultLocale: false,
|
|
@@ -21,5 +23,7 @@ export const outletConfig = {
|
|
|
21
23
|
it: 'Cerca notizie Fifthbell.'
|
|
22
24
|
},
|
|
23
25
|
socialLanguages: ['en'],
|
|
24
|
-
socialUserAgent: 'Cronkite/1.0'
|
|
26
|
+
socialUserAgent: 'Cronkite/1.0',
|
|
27
|
+
socialImageExport: 'buildInstagramImageHtml',
|
|
28
|
+
hashtagServiceBaseUrl: 'http://192.168.0.99:8000'
|
|
25
29
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function render(
|
|
1
|
+
import type { CanonicalDocument } from './types/canonical-article.js';
|
|
2
|
+
export declare function render(document: CanonicalDocument): string;
|
package/dist/renderer.browser.js
CHANGED
package/dist/renderer.core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export type LayoutName =
|
|
1
|
+
import { type CanonicalDocument } from './types/canonical-article.js';
|
|
2
|
+
export type LayoutName = CanonicalDocument['layout'];
|
|
3
3
|
export type RendererAssets = {
|
|
4
4
|
layouts: Record<LayoutName, string>;
|
|
5
5
|
partials: Record<string, string>;
|
|
6
6
|
styles: string;
|
|
7
7
|
};
|
|
8
8
|
export declare function initializeHandlebars(assets: RendererAssets): void;
|
|
9
|
-
export declare function renderWithAssets(doc:
|
|
9
|
+
export declare function renderWithAssets(doc: CanonicalDocument, assets: RendererAssets): string;
|
package/dist/renderer.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { render } from './renderer.node.js';
|
|
2
2
|
export { buildInstagramImageHtml, type InstagramImageTemplateParams } from './instagram-image-template.js';
|
|
3
3
|
export { outletConfig } from './outlet-config.js';
|
|
4
|
+
export { version } from './version.js';
|
|
5
|
+
export type { CanonicalDocument } from './types/canonical-article.js';
|
package/dist/renderer.js
CHANGED
package/dist/renderer.node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function render(
|
|
1
|
+
import type { CanonicalDocument } from './types/canonical-article.js';
|
|
2
|
+
export declare function render(document: CanonicalDocument): string;
|
package/dist/renderer.node.js
CHANGED
|
@@ -244,4 +244,5 @@ export declare const canonicalArticleSchema: z.ZodObject<{
|
|
|
244
244
|
}, z.core.$loose>;
|
|
245
245
|
export type SelfReference = z.infer<typeof articleReferenceSchema>;
|
|
246
246
|
export type CanonicalArticle = z.infer<typeof canonicalArticleSchema>;
|
|
247
|
+
export type CanonicalDocument = CanonicalArticle;
|
|
247
248
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version: string;
|
package/dist/version.js
ADDED
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.
|
|
4
|
+
"version": "0.1.45",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "fifthbell",
|
|
7
7
|
"repository": {
|
|
@@ -29,9 +29,16 @@
|
|
|
29
29
|
"src/styles/compiled.css"
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
|
+
"types": "./dist/renderer.d.ts",
|
|
32
33
|
"exports": {
|
|
33
|
-
".":
|
|
34
|
-
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/renderer.d.ts",
|
|
36
|
+
"import": "./dist/renderer.js"
|
|
37
|
+
},
|
|
38
|
+
"./components/live-program": {
|
|
39
|
+
"types": "./dist/components/live-program/LiveProgram.d.ts",
|
|
40
|
+
"import": "./dist/components/live-program/LiveProgram.js"
|
|
41
|
+
},
|
|
35
42
|
"./partial-deps.json": "./src/partial-deps.json"
|
|
36
43
|
},
|
|
37
44
|
"scripts": {
|