@fifthbell/brokaw 0.1.41 → 0.1.43

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.
@@ -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: "/json";
6
+ readonly inventoryFilename: "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
  };
@@ -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: '/json',
6
+ inventoryFilename: '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 { CanonicalArticle } from './types/canonical-article.js';
2
- export declare function render(doc: CanonicalArticle): string;
1
+ import type { CanonicalDocument } from './types/canonical-article.js';
2
+ export declare function render(document: CanonicalDocument): string;
@@ -123,6 +123,6 @@ const assets = {
123
123
  },
124
124
  styles
125
125
  };
126
- export function render(doc) {
127
- return renderWithAssets(doc, assets);
126
+ export function render(document) {
127
+ return renderWithAssets(document, assets);
128
128
  }
@@ -1,9 +1,9 @@
1
- import { type CanonicalArticle } from './types/canonical-article.js';
2
- export type LayoutName = CanonicalArticle['layout'];
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: CanonicalArticle, assets: RendererAssets): string;
9
+ export declare function renderWithAssets(doc: CanonicalDocument, assets: RendererAssets): string;
@@ -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
@@ -1,3 +1,4 @@
1
1
  export { render } from './renderer.node.js';
2
2
  export { buildInstagramImageHtml } from './instagram-image-template.js';
3
3
  export { outletConfig } from './outlet-config.js';
4
+ export { version } from './version.js';
@@ -1,2 +1,2 @@
1
- import type { CanonicalArticle } from './types/canonical-article.js';
2
- export declare function render(doc: CanonicalArticle): string;
1
+ import type { CanonicalDocument } from './types/canonical-article.js';
2
+ export declare function render(document: CanonicalDocument): string;
@@ -66,6 +66,6 @@ function getAssets() {
66
66
  }
67
67
  return cachedAssets;
68
68
  }
69
- export function render(doc) {
70
- return renderWithAssets(doc, getAssets());
69
+ export function render(document) {
70
+ return renderWithAssets(document, getAssets());
71
71
  }
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { createRequire } from 'node:module';
2
+ const require = createRequire(import.meta.url);
3
+ const packageJson = require('../package.json');
4
+ export const version = packageJson.version;
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.41",
4
+ "version": "0.1.43",
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
- ".": "./dist/renderer.js",
34
- "./components/live-program": "./dist/components/live-program/LiveProgram.js",
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": {