@rimelight/cms 0.0.4 → 0.0.6

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 (53) hide show
  1. package/dist/index.d.mts +118 -118
  2. package/dist/index.mjs +47 -47
  3. package/dist/integration.d.mts +3 -4
  4. package/dist/schema/index.d.mts +32 -33
  5. package/dist/schema/sqlite.d.mts +31 -32
  6. package/dist/storage/index.d.mts +12 -13
  7. package/package.json +13 -8
  8. package/src/admin/api/media-file.ts +1 -1
  9. package/src/admin/pages/assets.astro +11 -11
  10. package/src/admin/pages/pages-edit.astro +3 -3
  11. package/src/admin/pages/pages-index.astro +2 -2
  12. package/src/admin/pages/pages-preview.astro +3 -3
  13. package/src/admin/pages/pages-review.astro +2 -2
  14. package/src/admin/pages/templates-edit.astro +1 -1
  15. package/src/admin/pages/templates-index.astro +1 -1
  16. package/src/astro/BlockRenderer.astro +1 -1
  17. package/src/astro/blocks/CalloutBlock.astro +1 -1
  18. package/src/astro/blocks/OrderedListBlock.astro +2 -2
  19. package/src/astro/blocks/ParagraphBlock.astro +1 -1
  20. package/src/astro/blocks/TabsBlock.astro +5 -5
  21. package/src/astro/blocks/UnorderedListBlock.astro +2 -2
  22. package/src/auth/editor-guards.ts +1 -1
  23. package/src/cache/purge.ts +2 -2
  24. package/src/client/components/RimelightBlock.tsx +1 -1
  25. package/src/client/components/RimelightBlockPicker.tsx +1 -1
  26. package/src/client/components/RimelightPreview.tsx +27 -27
  27. package/src/client/components/RimelightPropertiesPanel.tsx +4 -4
  28. package/src/client/components/RimelightTemplateEditor.tsx +9 -5
  29. package/src/client/components/editors/CalloutEditor.tsx +10 -10
  30. package/src/client/components/editors/CardEditor.tsx +5 -5
  31. package/src/client/components/editors/CardsEditor.tsx +2 -2
  32. package/src/client/components/editors/CodeEditor.tsx +5 -5
  33. package/src/client/components/editors/DialogueEditor.tsx +6 -6
  34. package/src/client/components/editors/FileTreeEditor.tsx +1 -1
  35. package/src/client/components/editors/ImageEditor.tsx +9 -9
  36. package/src/client/components/editors/ParagraphEditor.tsx +1 -1
  37. package/src/client/components/editors/SceneEditor.tsx +9 -9
  38. package/src/client/components/editors/ScriptEditor.tsx +8 -8
  39. package/src/client/components/editors/SectionEditor.tsx +3 -3
  40. package/src/client/components/editors/StepItemEditor.tsx +6 -5
  41. package/src/client/components/editors/StepsEditor.tsx +1 -1
  42. package/src/client/components/editors/TabItemEditor.tsx +3 -3
  43. package/src/client/components/editors/TableEditor.tsx +4 -4
  44. package/src/client/components/editors/TabsEditor.tsx +1 -1
  45. package/src/client/state/editor-store.ts +23 -23
  46. package/src/client/utils/sortable.ts +13 -12
  47. package/src/client/utils/tree-sanitizer.ts +1 -1
  48. package/src/core/excerpt.ts +16 -16
  49. package/src/core/page-definitions.ts +2 -2
  50. package/src/docs/agent.ts +1 -1
  51. package/src/docs/routing.ts +2 -2
  52. package/src/loader/live.ts +1 -1
  53. package/src/markdown/serializer.ts +26 -26
package/dist/index.mjs CHANGED
@@ -626,7 +626,7 @@ const PAGE_MAP = {
626
626
  })
627
627
  };
628
628
  function getPageDefinition(type) {
629
- if (!type) return PAGE_MAP.Default;
629
+ if (!type) return PAGE_MAP["Default"];
630
630
  if (PAGE_MAP[type]) return PAGE_MAP[type];
631
631
  const normalized = type.toLowerCase().replace(/[^a-z0-9]/g, "");
632
632
  const ALIAS_MAP = {
@@ -649,7 +649,7 @@ function getPageDefinition(type) {
649
649
  };
650
650
  if (ALIAS_MAP[normalized]) return ALIAS_MAP[normalized];
651
651
  for (const [key, def] of Object.entries(PAGE_MAP)) if (key.toLowerCase() === normalized) return def;
652
- return PAGE_MAP.Default;
652
+ return PAGE_MAP["Default"];
653
653
  }
654
654
  //#endregion
655
655
  //#region src/markdown/serializer.ts
@@ -681,24 +681,24 @@ function blocksToMarkdown(blocks = [], options = {}) {
681
681
  const lines = [];
682
682
  for (const block of blocks) {
683
683
  if (!block) continue;
684
- const children = block.children || block.props?.children || [];
684
+ const children = block.children || block.props?.["children"] || [];
685
685
  switch (block.type) {
686
686
  case "SectionBlock": {
687
- const level = block.props?.level || baseLevel;
687
+ const level = block.props?.["level"] || baseLevel;
688
688
  const hashes = "#".repeat(Math.min(6, Math.max(1, level)));
689
- const title = block.props?.title || "";
689
+ const title = block.props?.["title"] || "";
690
690
  if (title) lines.push(`${hashes} ${title}`);
691
- if (block.props?.description) lines.push(`_${block.props.description}_`);
691
+ if (block.props?.["description"]) lines.push(`_${block.props["description"]}_`);
692
692
  if (children.length > 0) lines.push(blocksToMarkdown(children, { sectionLevel: Math.min(6, level + 1) }));
693
693
  break;
694
694
  }
695
695
  case "ParagraphBlock": {
696
- const text = inlinesToMarkdown(block.props?.text);
696
+ const text = inlinesToMarkdown(block.props?.["text"]);
697
697
  if (text) lines.push(text);
698
698
  break;
699
699
  }
700
700
  case "CalloutBlock": {
701
- const variant = (block.props?.variant || "info").toUpperCase();
701
+ const variant = (block.props?.["variant"] || "info").toUpperCase();
702
702
  const childMd = blocksToMarkdown(children, options);
703
703
  const calloutHeader = `> [!${variant}]`;
704
704
  if (childMd) {
@@ -708,15 +708,15 @@ function blocksToMarkdown(blocks = [], options = {}) {
708
708
  break;
709
709
  }
710
710
  case "CodeBlock": {
711
- const lang = block.props?.language || "";
712
- const code = block.props?.code || "";
713
- const caption = block.props?.caption ? `\n_${block.props.caption}_` : "";
711
+ const lang = block.props?.["language"] || "";
712
+ const code = block.props?.["code"] || "";
713
+ const caption = block.props?.["caption"] ? `\n_${block.props["caption"]}_` : "";
714
714
  lines.push(`\`\`\`${lang}\n${code}\n\`\`\`${caption}`);
715
715
  break;
716
716
  }
717
717
  case "TableBlock": {
718
- const columns = block.props?.columns || [];
719
- const rows = block.props?.rows || [];
718
+ const columns = block.props?.["columns"] || [];
719
+ const rows = block.props?.["rows"] || [];
720
720
  if (columns.length > 0) {
721
721
  const tableMd = [
722
722
  `| ${columns.map((c) => c.header || c.key).join(" | ")} |`,
@@ -727,15 +727,15 @@ function blocksToMarkdown(blocks = [], options = {}) {
727
727
  }).join(" | ")} |`,
728
728
  ...rows.map((r) => `| ${columns.map((c) => r[c.key] || "").join(" | ")} |`)
729
729
  ].join("\n");
730
- const caption = block.props?.caption ? `\n_${block.props.caption}_` : "";
730
+ const caption = block.props?.["caption"] ? `\n_${block.props["caption"]}_` : "";
731
731
  lines.push(`${tableMd}${caption}`);
732
732
  }
733
733
  break;
734
734
  }
735
735
  case "ImageBlock": {
736
- const alt = block.props?.alt || "";
737
- const src = block.props?.src || "";
738
- const caption = block.props?.caption ? `\n_${block.props.caption}_` : "";
736
+ const alt = block.props?.["alt"] || "";
737
+ const src = block.props?.["src"] || "";
738
+ const caption = block.props?.["caption"] ? `\n_${block.props["caption"]}_` : "";
739
739
  lines.push(`![${alt}](${src})${caption}`);
740
740
  break;
741
741
  }
@@ -747,7 +747,7 @@ function blocksToMarkdown(blocks = [], options = {}) {
747
747
  }
748
748
  break;
749
749
  case "TabItemBlock": {
750
- const label = block.props?.label || "Tab";
750
+ const label = block.props?.["label"] || "Tab";
751
751
  lines.push(`#### ${label}\n\n${blocksToMarkdown(children, options)}`);
752
752
  break;
753
753
  }
@@ -764,8 +764,8 @@ function blocksToMarkdown(blocks = [], options = {}) {
764
764
  break;
765
765
  }
766
766
  case "StepItemBlock": {
767
- const title = block.props?.title || "Step";
768
- const desc = block.props?.description ? ` - ${block.props.description}` : "";
767
+ const title = block.props?.["title"] || "Step";
768
+ const desc = block.props?.["description"] ? ` - ${block.props["description"]}` : "";
769
769
  lines.push(`- **${title}**${desc}`);
770
770
  if (children.length > 0) lines.push(blocksToMarkdown(children, options));
771
771
  break;
@@ -779,9 +779,9 @@ function blocksToMarkdown(blocks = [], options = {}) {
779
779
  }
780
780
  break;
781
781
  case "CardBlock": {
782
- const title = block.props?.title || "";
783
- const href = block.props?.href || "#";
784
- const desc = block.props?.description ? `: ${block.props.description}` : "";
782
+ const title = block.props?.["title"] || "";
783
+ const href = block.props?.["href"] || "#";
784
+ const desc = block.props?.["description"] ? `: ${block.props["description"]}` : "";
785
785
  lines.push(`- [${title}](${href})${desc}`);
786
786
  break;
787
787
  }
@@ -796,14 +796,14 @@ function blocksToMarkdown(blocks = [], options = {}) {
796
796
  }
797
797
  return treeLines;
798
798
  };
799
- const treeNodes = block.props?.tree || [];
799
+ const treeNodes = block.props?.["tree"] || [];
800
800
  lines.push(`\`\`\`text\n${renderTree(treeNodes).join("\n")}\n\`\`\``);
801
801
  break;
802
802
  }
803
803
  case "DialogueBlock":
804
- lines.push(`**${block.props?.character}:** "${block.props?.line || ""}"`);
804
+ lines.push(`**${block.props?.["character"]}:** "${block.props?.["line"] || ""}"`);
805
805
  break;
806
- default: if (block.props?.text) lines.push(inlinesToMarkdown(block.props.text));
806
+ default: if (block.props?.["text"]) lines.push(inlinesToMarkdown(block.props["text"]));
807
807
  }
808
808
  }
809
809
  return lines.filter(Boolean).join("\n\n");
@@ -1052,7 +1052,7 @@ function validateServerBlockPayload(existingTree, incomingTree, session) {
1052
1052
  }
1053
1053
  function getChildren(b) {
1054
1054
  if (!b) return [];
1055
- if (Array.isArray(b.props?.children)) return b.props.children;
1055
+ if (Array.isArray(b.props?.["children"])) return b.props["children"];
1056
1056
  if (Array.isArray(b.children)) return b.children;
1057
1057
  return [];
1058
1058
  }
@@ -1122,8 +1122,8 @@ function filterTemplatesForUser(templates, session) {
1122
1122
  //#region src/cache/purge.ts
1123
1123
  async function invalidatePageCache(options) {
1124
1124
  const { slug, locales, domain = "rimelight.com", basePath = "", isEnterpriseCloudflare } = options;
1125
- const zoneId = process.env.CLOUDFLARE_ZONE_ID;
1126
- const apiToken = process.env.CLOUDFLARE_API_TOKEN;
1125
+ const zoneId = process.env["CLOUDFLARE_ZONE_ID"];
1126
+ const apiToken = process.env["CLOUDFLARE_API_TOKEN"];
1127
1127
  if (!zoneId || !apiToken) return false;
1128
1128
  const cleanPath = basePath ? `/${basePath.replace(/^\/+|\/+$/g, "")}` : "";
1129
1129
  const body = isEnterpriseCloudflare ? { tags: [`page-${domain}-${slug}`] } : { files: locales.map((lang) => `https://${domain}/${lang}${cleanPath}/${slug}`) };
@@ -1169,7 +1169,7 @@ function extractTextFromProperty(prop, locale = "en") {
1169
1169
  if (Array.isArray(prop)) return extractTextFromInlineNodes(prop);
1170
1170
  const record = prop;
1171
1171
  if (typeof record[locale] === "string") return record[locale];
1172
- if (typeof record.en === "string") return record.en;
1172
+ if (typeof record["en"] === "string") return record["en"];
1173
1173
  const firstVal = Object.values(record)[0];
1174
1174
  if (typeof firstVal === "string") return firstVal;
1175
1175
  }
@@ -1186,29 +1186,29 @@ function extractTextFromBlocks(blocks, locale = "en") {
1186
1186
  const props = block.props || {};
1187
1187
  switch (block.type) {
1188
1188
  case "ParagraphBlock": {
1189
- const text = extractTextFromProperty(props.text, locale);
1189
+ const text = extractTextFromProperty(props["text"], locale);
1190
1190
  if (text) chunks.push(text);
1191
1191
  break;
1192
1192
  }
1193
1193
  case "SectionBlock":
1194
- if (props.title) chunks.push(String(props.title));
1195
- if (props.description) chunks.push(String(props.description));
1196
- if (Array.isArray(props.children)) {
1197
- const childText = extractTextFromBlocks(props.children, locale);
1194
+ if (props["title"]) chunks.push(String(props["title"]));
1195
+ if (props["description"]) chunks.push(String(props["description"]));
1196
+ if (Array.isArray(props["children"])) {
1197
+ const childText = extractTextFromBlocks(props["children"], locale);
1198
1198
  if (childText) chunks.push(childText);
1199
1199
  }
1200
1200
  break;
1201
1201
  case "CardBlock":
1202
- if (props.title) chunks.push(String(props.title));
1203
- if (props.description) chunks.push(String(props.description));
1202
+ if (props["title"]) chunks.push(String(props["title"]));
1203
+ if (props["description"]) chunks.push(String(props["description"]));
1204
1204
  break;
1205
1205
  case "DialogueBlock":
1206
- if (props.character && props.line) chunks.push(`${props.character}: ${props.line}`);
1207
- else if (props.line) chunks.push(String(props.line));
1206
+ if (props["character"] && props["line"]) chunks.push(`${props["character"]}: ${props["line"]}`);
1207
+ else if (props["line"]) chunks.push(String(props["line"]));
1208
1208
  break;
1209
1209
  case "StepItemBlock":
1210
- if (props.title) chunks.push(String(props.title));
1211
- if (props.description) chunks.push(String(props.description));
1210
+ if (props["title"]) chunks.push(String(props["title"]));
1211
+ if (props["description"]) chunks.push(String(props["description"]));
1212
1212
  }
1213
1213
  if (Array.isArray(block.children) && block.children.length > 0) {
1214
1214
  const childText = extractTextFromBlocks(block.children, locale);
@@ -1233,8 +1233,8 @@ function createPageExcerpt(page, options = {}) {
1233
1233
  }
1234
1234
  if (contentObj && typeof contentObj === "object") {
1235
1235
  const props = contentObj.properties;
1236
- if (props && props.description) {
1237
- const descText = extractTextFromProperty(props.description, locale);
1236
+ if (props && props["description"]) {
1237
+ const descText = extractTextFromProperty(props["description"], locale);
1238
1238
  if (descText) return truncateExcerpt(descText, maxLength);
1239
1239
  }
1240
1240
  const blocks = contentObj.blocks;
@@ -1330,7 +1330,7 @@ function resolveLocalized$1(val, locale = "en") {
1330
1330
  if (typeof val === "string") return val;
1331
1331
  if (typeof val === "object" && val !== null) {
1332
1332
  const rec = val;
1333
- return rec[locale] || rec.en || Object.values(rec)[0] || "";
1333
+ return rec[locale] || rec["en"] || Object.values(rec)[0] || "";
1334
1334
  }
1335
1335
  return typeof val === "number" ? String(val) : "";
1336
1336
  }
@@ -2221,8 +2221,8 @@ function getDocsVersions(entries, locale) {
2221
2221
  versions.add(entry.version);
2222
2222
  continue;
2223
2223
  }
2224
- if (entry.properties?.version && String(entry.properties.version).startsWith("v")) {
2225
- versions.add(String(entry.properties.version));
2224
+ if (entry.properties?.["version"] && String(entry.properties["version"]).startsWith("v")) {
2225
+ versions.add(String(entry.properties["version"]));
2226
2226
  continue;
2227
2227
  }
2228
2228
  const parts = (entry.slug || entry.id || "").replace(/\\/g, "/").split("/");
@@ -2305,7 +2305,7 @@ function resolveLocalized(val, locale = "en") {
2305
2305
  if (typeof val === "string") return val;
2306
2306
  if (typeof val === "object" && val !== null) {
2307
2307
  const rec = val;
2308
- return rec[locale] || rec.en || Object.values(rec)[0] || "";
2308
+ return rec[locale] || rec["en"] || Object.values(rec)[0] || "";
2309
2309
  }
2310
2310
  return typeof val === "number" ? String(val) : "";
2311
2311
  }
@@ -2,7 +2,7 @@ import { StorageConfig } from "./storage/index.mjs";
2
2
  import { AuthAdapter } from "@rimelight/auth";
3
3
  import { AstroIntegration } from "astro";
4
4
  //#region src/integration.d.ts
5
- interface RimelightCmsOptions {
5
+ export interface RimelightCmsOptions {
6
6
  /**
7
7
  * Route prefix for CMS admin pages. Defaults to "/[locale]/cms" (or "/cms" if no locale routing).
8
8
  */
@@ -28,6 +28,5 @@ interface RimelightCmsOptions {
28
28
  */
29
29
  auth?: AuthAdapter | string | undefined;
30
30
  }
31
- declare function rimelightCms(options?: RimelightCmsOptions): AstroIntegration;
32
- //#endregion
33
- export { RimelightCmsOptions, rimelightCms };
31
+ export declare function rimelightCms(options?: RimelightCmsOptions): AstroIntegration;
32
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { c as TemplateApprovalRules, l as TemplateRolePermissions, o as PageVersionStatus, p as PageType, t as BylineCredit, u as Localized, v as BaseBlock } from "../bylines-Csggkl-g.mjs";
2
2
  //#region src/schema/pages.d.ts
3
- declare const pages: import("drizzle-orm/pg-core").PgTableWithColumns<{
3
+ export declare const pages: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
4
  name: "pages";
5
5
  schema: undefined;
6
6
  columns: {
@@ -297,11 +297,11 @@ declare const pages: import("drizzle-orm/pg-core").PgTableWithColumns<{
297
297
  generated: undefined;
298
298
  }, {}, {}>;
299
299
  };
300
- dialect: 'pg';
300
+ dialect: "pg";
301
301
  }>;
302
302
  //#endregion
303
303
  //#region src/schema/page_drafts.d.ts
304
- declare const pageDrafts: import("drizzle-orm/pg-core").PgTableWithColumns<{
304
+ export declare const pageDrafts: import("drizzle-orm/pg-core").PgTableWithColumns<{
305
305
  name: "page_drafts";
306
306
  schema: undefined;
307
307
  columns: {
@@ -382,11 +382,11 @@ declare const pageDrafts: import("drizzle-orm/pg-core").PgTableWithColumns<{
382
382
  generated: undefined;
383
383
  }, {}, {}>;
384
384
  };
385
- dialect: 'pg';
385
+ dialect: "pg";
386
386
  }>;
387
387
  //#endregion
388
388
  //#region src/schema/page_draft_locks.d.ts
389
- declare const pageDraftLocks: import("drizzle-orm/pg-core").PgTableWithColumns<{
389
+ export declare const pageDraftLocks: import("drizzle-orm/pg-core").PgTableWithColumns<{
390
390
  name: "page_draft_locks";
391
391
  schema: undefined;
392
392
  columns: {
@@ -476,11 +476,11 @@ declare const pageDraftLocks: import("drizzle-orm/pg-core").PgTableWithColumns<{
476
476
  generated: undefined;
477
477
  }, {}, {}>;
478
478
  };
479
- dialect: 'pg';
479
+ dialect: "pg";
480
480
  }>;
481
481
  //#endregion
482
482
  //#region src/schema/page_versions.d.ts
483
- declare const pageVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
483
+ export declare const pageVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
484
484
  name: "page_versions";
485
485
  schema: undefined;
486
486
  columns: {
@@ -798,11 +798,11 @@ declare const pageVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
798
798
  generated: undefined;
799
799
  }, {}, {}>;
800
800
  };
801
- dialect: 'pg';
801
+ dialect: "pg";
802
802
  }>;
803
803
  //#endregion
804
804
  //#region src/schema/page_version_comments.d.ts
805
- declare const pageVersionComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
805
+ export declare const pageVersionComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
806
806
  name: "page_version_comments";
807
807
  schema: undefined;
808
808
  columns: {
@@ -926,11 +926,11 @@ declare const pageVersionComments: import("drizzle-orm/pg-core").PgTableWithColu
926
926
  generated: undefined;
927
927
  }, {}, {}>;
928
928
  };
929
- dialect: 'pg';
929
+ dialect: "pg";
930
930
  }>;
931
931
  //#endregion
932
932
  //#region src/schema/page_version_approvals.d.ts
933
- declare const pageVersionApprovals: import("drizzle-orm/pg-core").PgTableWithColumns<{
933
+ export declare const pageVersionApprovals: import("drizzle-orm/pg-core").PgTableWithColumns<{
934
934
  name: "page_version_approvals";
935
935
  schema: undefined;
936
936
  columns: {
@@ -1020,11 +1020,11 @@ declare const pageVersionApprovals: import("drizzle-orm/pg-core").PgTableWithCol
1020
1020
  generated: undefined;
1021
1021
  }, {}, {}>;
1022
1022
  };
1023
- dialect: 'pg';
1023
+ dialect: "pg";
1024
1024
  }>;
1025
1025
  //#endregion
1026
1026
  //#region src/schema/page_templates.d.ts
1027
- declare const pageTemplates: import("drizzle-orm/pg-core").PgTableWithColumns<{
1027
+ export declare const pageTemplates: import("drizzle-orm/pg-core").PgTableWithColumns<{
1028
1028
  name: "page_templates";
1029
1029
  schema: undefined;
1030
1030
  columns: {
@@ -1281,11 +1281,11 @@ declare const pageTemplates: import("drizzle-orm/pg-core").PgTableWithColumns<{
1281
1281
  generated: undefined;
1282
1282
  }, {}, {}>;
1283
1283
  };
1284
- dialect: 'pg';
1284
+ dialect: "pg";
1285
1285
  }>;
1286
1286
  //#endregion
1287
1287
  //#region src/schema/search.d.ts
1288
- declare const contentSearchIndex: import("drizzle-orm/pg-core").PgTableWithColumns<{
1288
+ export declare const contentSearchIndex: import("drizzle-orm/pg-core").PgTableWithColumns<{
1289
1289
  name: "content_search_index";
1290
1290
  schema: undefined;
1291
1291
  columns: {
@@ -1391,14 +1391,14 @@ declare const contentSearchIndex: import("drizzle-orm/pg-core").PgTableWithColum
1391
1391
  identity: undefined;
1392
1392
  generated: undefined;
1393
1393
  }, {}, {
1394
- pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
1394
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1395
1395
  }>;
1396
1396
  };
1397
- dialect: 'pg';
1397
+ dialect: "pg";
1398
1398
  }>;
1399
1399
  //#endregion
1400
1400
  //#region src/schema/site_settings.d.ts
1401
- interface SiteSettingsBranding {
1401
+ export interface SiteSettingsBranding {
1402
1402
  logo: {
1403
1403
  alt: string;
1404
1404
  };
@@ -1410,13 +1410,13 @@ interface SiteSettingsBranding {
1410
1410
  backgroundColor: string;
1411
1411
  };
1412
1412
  }
1413
- interface SiteSettingsSeo {
1413
+ export interface SiteSettingsSeo {
1414
1414
  titleTemplate: string;
1415
1415
  ogImageFallback: string;
1416
1416
  maxDescriptionLength: number;
1417
1417
  authorHandle?: string;
1418
1418
  }
1419
- declare const siteSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
1419
+ export declare const siteSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
1420
1420
  name: "site_settings";
1421
1421
  schema: undefined;
1422
1422
  columns: {
@@ -1612,13 +1612,13 @@ declare const siteSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
1612
1612
  generated: undefined;
1613
1613
  }, {}, {}>;
1614
1614
  };
1615
- dialect: 'pg';
1615
+ dialect: "pg";
1616
1616
  }>;
1617
- type SiteSettings = typeof siteSettings.$inferSelect;
1618
- type InsertSiteSettings = typeof siteSettings.$inferInsert;
1617
+ export type SiteSettings = typeof siteSettings.$inferSelect;
1618
+ export type InsertSiteSettings = typeof siteSettings.$inferInsert;
1619
1619
  //#endregion
1620
1620
  //#region src/schema/taxonomies.d.ts
1621
- declare const taxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumns<{
1621
+ export declare const taxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumns<{
1622
1622
  name: "taxonomy_terms";
1623
1623
  schema: undefined;
1624
1624
  columns: {
@@ -1780,9 +1780,9 @@ declare const taxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumns<{
1780
1780
  generated: undefined;
1781
1781
  }, {}, {}>;
1782
1782
  };
1783
- dialect: 'pg';
1783
+ dialect: "pg";
1784
1784
  }>;
1785
- declare const pageTaxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumns<{
1785
+ export declare const pageTaxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumns<{
1786
1786
  name: "page_taxonomy_terms";
1787
1787
  schema: undefined;
1788
1788
  columns: {
@@ -1838,11 +1838,11 @@ declare const pageTaxonomyTerms: import("drizzle-orm/pg-core").PgTableWithColumn
1838
1838
  generated: undefined;
1839
1839
  }, {}, {}>;
1840
1840
  };
1841
- dialect: 'pg';
1841
+ dialect: "pg";
1842
1842
  }>;
1843
1843
  //#endregion
1844
1844
  //#region src/schema/bylines.d.ts
1845
- declare const bylines: import("drizzle-orm/pg-core").PgTableWithColumns<{
1845
+ export declare const bylines: import("drizzle-orm/pg-core").PgTableWithColumns<{
1846
1846
  name: "bylines";
1847
1847
  schema: undefined;
1848
1848
  columns: {
@@ -2055,9 +2055,8 @@ declare const bylines: import("drizzle-orm/pg-core").PgTableWithColumns<{
2055
2055
  generated: undefined;
2056
2056
  }, {}, {}>;
2057
2057
  };
2058
- dialect: 'pg';
2058
+ dialect: "pg";
2059
2059
  }>;
2060
- type Byline = typeof bylines.$inferSelect;
2061
- type NewByline = typeof bylines.$inferInsert;
2062
- //#endregion
2063
- export { Byline, InsertSiteSettings, NewByline, SiteSettings, SiteSettingsBranding, SiteSettingsSeo, bylines, contentSearchIndex, pageDraftLocks, pageDrafts, pageTaxonomyTerms, pageTemplates, pageVersionApprovals, pageVersionComments, pageVersions, pages, siteSettings, taxonomyTerms };
2060
+ export type Byline = typeof bylines.$inferSelect;
2061
+ export type NewByline = typeof bylines.$inferInsert;
2062
+ //#endregion
@@ -1,6 +1,6 @@
1
1
  import { c as TemplateApprovalRules, l as TemplateRolePermissions, o as PageVersionStatus, p as PageType, t as BylineCredit, u as Localized, v as BaseBlock } from "../bylines-Csggkl-g.mjs";
2
2
  //#region src/schema/sqlite.d.ts
3
- interface SiteSettingsBranding {
3
+ export interface SiteSettingsBranding {
4
4
  logo: {
5
5
  alt: string;
6
6
  };
@@ -12,13 +12,13 @@ interface SiteSettingsBranding {
12
12
  backgroundColor: string;
13
13
  };
14
14
  }
15
- interface SiteSettingsSeo {
15
+ export interface SiteSettingsSeo {
16
16
  titleTemplate: string;
17
17
  ogImageFallback: string;
18
18
  maxDescriptionLength: number;
19
19
  authorHandle?: string;
20
20
  }
21
- declare const pageTemplates: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
21
+ export declare const pageTemplates: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
22
22
  name: "page_templates";
23
23
  schema: undefined;
24
24
  columns: {
@@ -282,9 +282,9 @@ declare const pageTemplates: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
282
282
  generated: undefined;
283
283
  }, {}, {}>;
284
284
  };
285
- dialect: 'sqlite';
285
+ dialect: "sqlite";
286
286
  }>;
287
- declare const pageVersions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
287
+ export declare const pageVersions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
288
288
  name: "page_versions";
289
289
  schema: undefined;
290
290
  columns: {
@@ -614,9 +614,9 @@ declare const pageVersions: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
614
614
  generated: undefined;
615
615
  }, {}, {}>;
616
616
  };
617
- dialect: 'sqlite';
617
+ dialect: "sqlite";
618
618
  }>;
619
- declare const pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
619
+ export declare const pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
620
620
  name: "pages";
621
621
  schema: undefined;
622
622
  columns: {
@@ -922,9 +922,9 @@ declare const pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
922
922
  generated: undefined;
923
923
  }, {}, {}>;
924
924
  };
925
- dialect: 'sqlite';
925
+ dialect: "sqlite";
926
926
  }>;
927
- declare const pageDrafts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
927
+ export declare const pageDrafts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
928
928
  name: "page_drafts";
929
929
  schema: undefined;
930
930
  columns: {
@@ -1009,9 +1009,9 @@ declare const pageDrafts: import("drizzle-orm/sqlite-core").SQLiteTableWithColum
1009
1009
  generated: undefined;
1010
1010
  }, {}, {}>;
1011
1011
  };
1012
- dialect: 'sqlite';
1012
+ dialect: "sqlite";
1013
1013
  }>;
1014
- declare const pageDraftLocks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1014
+ export declare const pageDraftLocks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1015
1015
  name: "page_draft_locks";
1016
1016
  schema: undefined;
1017
1017
  columns: {
@@ -1107,9 +1107,9 @@ declare const pageDraftLocks: import("drizzle-orm/sqlite-core").SQLiteTableWithC
1107
1107
  generated: undefined;
1108
1108
  }, {}, {}>;
1109
1109
  };
1110
- dialect: 'sqlite';
1110
+ dialect: "sqlite";
1111
1111
  }>;
1112
- declare const pageVersionApprovals: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1112
+ export declare const pageVersionApprovals: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1113
1113
  name: "page_version_approvals";
1114
1114
  schema: undefined;
1115
1115
  columns: {
@@ -1207,9 +1207,9 @@ declare const pageVersionApprovals: import("drizzle-orm/sqlite-core").SQLiteTabl
1207
1207
  generated: undefined;
1208
1208
  }, {}, {}>;
1209
1209
  };
1210
- dialect: 'sqlite';
1210
+ dialect: "sqlite";
1211
1211
  }>;
1212
- declare const pageVersionComments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1212
+ export declare const pageVersionComments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1213
1213
  name: "page_version_comments";
1214
1214
  schema: undefined;
1215
1215
  columns: {
@@ -1345,9 +1345,9 @@ declare const pageVersionComments: import("drizzle-orm/sqlite-core").SQLiteTable
1345
1345
  generated: undefined;
1346
1346
  }, {}, {}>;
1347
1347
  };
1348
- dialect: 'sqlite';
1348
+ dialect: "sqlite";
1349
1349
  }>;
1350
- declare const contentSearchIndex: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1350
+ export declare const contentSearchIndex: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1351
1351
  name: "content_search_index";
1352
1352
  schema: undefined;
1353
1353
  columns: {
@@ -1447,9 +1447,9 @@ declare const contentSearchIndex: import("drizzle-orm/sqlite-core").SQLiteTableW
1447
1447
  length: number | undefined;
1448
1448
  }>;
1449
1449
  };
1450
- dialect: 'sqlite';
1450
+ dialect: "sqlite";
1451
1451
  }>;
1452
- declare const siteSettings: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1452
+ export declare const siteSettings: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1453
1453
  name: "site_settings";
1454
1454
  schema: undefined;
1455
1455
  columns: {
@@ -1659,9 +1659,9 @@ declare const siteSettings: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  };
1662
- dialect: 'sqlite';
1662
+ dialect: "sqlite";
1663
1663
  }>;
1664
- declare const taxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1664
+ export declare const taxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1665
1665
  name: "taxonomy_terms";
1666
1666
  schema: undefined;
1667
1667
  columns: {
@@ -1831,9 +1831,9 @@ declare const taxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  };
1834
- dialect: 'sqlite';
1834
+ dialect: "sqlite";
1835
1835
  }>;
1836
- declare const pageTaxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1836
+ export declare const pageTaxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1837
1837
  name: "page_taxonomy_terms";
1838
1838
  schema: undefined;
1839
1839
  columns: {
@@ -1893,9 +1893,9 @@ declare const pageTaxonomyTerms: import("drizzle-orm/sqlite-core").SQLiteTableWi
1893
1893
  generated: undefined;
1894
1894
  }, {}, {}>;
1895
1895
  };
1896
- dialect: 'sqlite';
1896
+ dialect: "sqlite";
1897
1897
  }>;
1898
- declare const bylines: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1898
+ export declare const bylines: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1899
1899
  name: "bylines";
1900
1900
  schema: undefined;
1901
1901
  columns: {
@@ -2122,11 +2122,10 @@ declare const bylines: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<
2122
2122
  generated: undefined;
2123
2123
  }, {}, {}>;
2124
2124
  };
2125
- dialect: 'sqlite';
2125
+ dialect: "sqlite";
2126
2126
  }>;
2127
- type Byline = typeof bylines.$inferSelect;
2128
- type NewByline = typeof bylines.$inferInsert;
2129
- type SiteSettings = typeof siteSettings.$inferSelect;
2130
- type InsertSiteSettings = typeof siteSettings.$inferInsert;
2131
- //#endregion
2132
- export { Byline, InsertSiteSettings, NewByline, SiteSettings, SiteSettingsBranding, SiteSettingsSeo, bylines, contentSearchIndex, pageDraftLocks, pageDrafts, pageTaxonomyTerms, pageTemplates, pageVersionApprovals, pageVersionComments, pageVersions, pages, siteSettings, taxonomyTerms };
2127
+ export type Byline = typeof bylines.$inferSelect;
2128
+ export type NewByline = typeof bylines.$inferInsert;
2129
+ export type SiteSettings = typeof siteSettings.$inferSelect;
2130
+ export type InsertSiteSettings = typeof siteSettings.$inferInsert;
2131
+ //#endregion