@marktiderman/genesis-sites 0.4.1 → 0.5.0

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 (65) hide show
  1. package/README.md +155 -18
  2. package/SKILL.md +46 -0
  3. package/dist/assets/fonts/LICENSES.txt +1469 -0
  4. package/dist/assets/{form-island.dc9aedd556.js → form-island.c521219f1b.js} +1 -1
  5. package/dist/assets/{islands.88abb49942.js → islands.f275dc88cb.js} +1 -1
  6. package/dist/assets/sites-forms.490d10e01b.css +10 -0
  7. package/dist/assets/sites-forms.css +1 -1
  8. package/dist/assets/sites.1a40b828a5.css +2 -0
  9. package/dist/assets/sites.css +1 -1
  10. package/dist/assets.generated-P7NPIZHO.js +3 -0
  11. package/dist/{assets.generated-7FRY6LHS.js.map → assets.generated-P7NPIZHO.js.map} +1 -1
  12. package/dist/{chunk-P5MR34QQ.js → chunk-3XCKSU4Z.js} +143 -85
  13. package/dist/chunk-3XCKSU4Z.js.map +1 -0
  14. package/dist/{chunk-PN2VXOA5.js → chunk-BJ6NXVZI.js} +9 -8
  15. package/dist/chunk-BJ6NXVZI.js.map +1 -0
  16. package/dist/{chunk-3VKTBE7S.js → chunk-MU2Z2C4F.js} +2 -2
  17. package/dist/{chunk-3VKTBE7S.js.map → chunk-MU2Z2C4F.js.map} +1 -1
  18. package/dist/chunk-OFJISW3T.js +3 -0
  19. package/dist/chunk-OFJISW3T.js.map +1 -0
  20. package/dist/{chunk-FBQF2L7O.js → chunk-VLY75P7W.js} +190 -40
  21. package/dist/chunk-VLY75P7W.js.map +1 -0
  22. package/dist/{chunk-PA7IZF4X.js → chunk-VMJ67LCW.js} +97 -28
  23. package/dist/chunk-VMJ67LCW.js.map +1 -0
  24. package/dist/{chunk-KPOX7D4S.js → chunk-XOM334IK.js} +5 -5
  25. package/dist/chunk-XOM334IK.js.map +1 -0
  26. package/dist/{chunk-ZGWGQGT2.js → chunk-YAASBQTJ.js} +35 -22
  27. package/dist/chunk-YAASBQTJ.js.map +1 -0
  28. package/dist/editor.d.ts +5 -3
  29. package/dist/editor.js +14 -10
  30. package/dist/editor.js.map +1 -1
  31. package/dist/fonts.generated-HTXRHNVY.js +4 -0
  32. package/dist/handler-ESFMOYYF.js +10 -0
  33. package/dist/{handler-P7RRXR6K.js.map → handler-ESFMOYYF.js.map} +1 -1
  34. package/dist/import.d.ts +26 -62
  35. package/dist/import.js +11 -258
  36. package/dist/import.js.map +1 -1
  37. package/dist/index.d.ts +10 -95
  38. package/dist/index.js +5 -4
  39. package/dist/{registry-HBn1X60x.d.ts → registry-CeSBSfU8.d.ts} +187 -13
  40. package/dist/sections.d.ts +124 -9
  41. package/dist/sections.js +3 -3
  42. package/dist/{store-BXiZeZzH.d.ts → store-CUsfzNmK.d.ts} +42 -119
  43. package/dist/supabase.d.ts +5 -3
  44. package/dist/supabase.js +15 -6
  45. package/dist/supabase.js.map +1 -1
  46. package/dist/templates-DALVa71A.d.ts +92 -0
  47. package/dist/templates.d.ts +78 -0
  48. package/dist/templates.js +146 -0
  49. package/dist/templates.js.map +1 -0
  50. package/dist/theme-B3Vh_b-P.d.ts +136 -0
  51. package/dist/web.d.ts +72 -13
  52. package/dist/web.js +7 -6
  53. package/migrations/tests/0001_genesis_sites.test.sql +4 -4
  54. package/migrations/tests/0002_genesis_sites_posts.test.sql +2 -2
  55. package/package.json +47 -12
  56. package/dist/assets/sites-forms.e506c7dda2.css +0 -10
  57. package/dist/assets/sites.716b4ac1a5.css +0 -2
  58. package/dist/assets.generated-7FRY6LHS.js +0 -3
  59. package/dist/chunk-FBQF2L7O.js.map +0 -1
  60. package/dist/chunk-KPOX7D4S.js.map +0 -1
  61. package/dist/chunk-P5MR34QQ.js.map +0 -1
  62. package/dist/chunk-PA7IZF4X.js.map +0 -1
  63. package/dist/chunk-PN2VXOA5.js.map +0 -1
  64. package/dist/chunk-ZGWGQGT2.js.map +0 -1
  65. package/dist/handler-P7RRXR6K.js +0 -9
package/dist/index.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import { f as SectionNode, a as PageDoc, A as AnySectionDefinition, g as SiteDoc, h as ReleasePage, i as PostSummary, L as LivePost, j as Redirect, k as Link, l as SiteDocInput, P as PageKind } from './registry-HBn1X60x.js';
2
- export { B as BUILT_IN_SECTION_TYPES, m as BuiltInSectionType, C as Copy, n as FileRef, o as FontChoice, F as FormsResolver, p as FormsResolverContext, H as Href, I as Image, q as ImportPost, r as ImportPostsResult, s as Line, t as LinkEvent, M as MAX_DOC_BYTES, u as MAX_IMPORT_POSTS, v as MAX_LIVE_POSTS, w as MenuItem, b as PageMeta, x as PagePath, y as PostAuthor, z as PostDoc, D as PostDocInput, E as PostDraft, G as PostMeta, J as PostSlug, K as PostStatus, N as PostSummarySchema, O as PostsContext, Q as RegisterSectionOptions, R as Release, T as ReleaseMeta, U as ReleaseSnapshot, c as RenderContext, d as ResolvedForm, V as RichText, W as SECTION_CATEGORIES, X as SavePostInput, Y as SavePostResult, S as SectionCategory, Z as SectionDefinition, _ as SectionDefinitionError, $ as SectionId, a0 as SectionManifest, a1 as SectionPlacement, a2 as SectionPreset, a3 as SectionRenderProps, a4 as SectionVariant, e as Seo, a5 as SeoDefaults, a6 as Surface, a7 as TokenOverrides, a8 as defineSection, a9 as getSection, aa as isPlainEmail, ab as listSections, ac as mailtoHref, ad as newSectionId, ae as nodeFromPreset, af as opensInNewTab, ag as parseSnapshot, ah as postSummary, ai as registerBuiltInSection, aj as registerSection, ak as richTextPlain, al as sectionJsonSchema, am as sectionManifests, an as unregisterSection, ao as validatePostSlug } from './registry-HBn1X60x.js';
3
- import { d as SiteBrand, B as BrandInput } from './store-BXiZeZzH.js';
4
- export { e as ASSET_TYPES, A as Asset, a as AssetMeta, f as BrandSource, C as CheckReleaseOptions, D as DEFAULT_RESERVED_PATHS, F as FONT_CHOICES, g as FontInfo, I as InvalidationInfo, M as MAX_PAGE_PATH_LENGTH, h as MAX_URL_LENGTH, i as MemorySiteStore, j as MemoryStoreOptions, N as NewPage, k as NewSite, l as PAGE_PATH, m as PageDraft, n as PreparedRelease, o as PublishBlockedError, P as PublishOptions, R as ReservedPaths, c as SaveResult, p as SiteConflictError, q as SiteDraft, b as SiteIssue, S as SiteStore, r as SiteTheme, T as ThemePair, s as assetPath, t as brandDisplayName, u as checkBlog, v as checkContrast, w as checkHtmlOutline, x as checkPage, y as checkPost, z as checkRelease, E as checkSiteDoc, G as contrastRatio, H as createMemorySiteStore, J as formCacheTag, K as hexToHslTriplet, L as isConflict, O as isExternalHref, Q as isPublishable, U as isReservedPath, V as isSafeHref, W as isSafeImageSrc, X as isSiteBrand, Y as luminance, Z as mix, _ as normalizeRequestPath, $ as pagePathProblems, a0 as parseHex, a1 as prepareImportPost, a2 as prepareRelease, a3 as siteCacheTag, a4 as siteTheme, a5 as stableHash, a6 as themeCss, a7 as toCanonicalBrand, a8 as validatePagePath, a9 as withCacheInvalidation } from './store-BXiZeZzH.js';
1
+ import { f as SectionNode, a as PageDoc, A as AnySectionDefinition, g as SiteDoc, h as ReleasePage, i as PostSummary, L as LivePost, j as Redirect } from './registry-CeSBSfU8.js';
2
+ export { B as BUILT_IN_SECTION_TYPES, k as BodyFontChoice, l as BuiltInSectionType, C as Copy, m as FileRef, n as FontChoice, F as FormsResolver, o as FormsResolverContext, H as Href, I as Image, p as ImportPost, q as ImportPostsResult, r as Line, s as Link, t as LinkEvent, M as MAX_DOC_BYTES, u as MAX_IMPORT_POSTS, v as MAX_LIVE_POSTS, w as MenuItem, P as PageKind, b as PageMeta, x as PagePath, y as PostAuthor, z as PostDoc, D as PostDocInput, E as PostDraft, G as PostMeta, J as PostSlug, K as PostStatus, N as PostSummarySchema, O as PostsContext, Q as RegisterSectionOptions, R as Release, T as ReleaseMeta, U as ReleaseSnapshot, c as RenderContext, V as RenderMedia, d as ResolvedForm, W as RichText, X as SECTION_CATEGORIES, Y as SavePostInput, Z as SavePostResult, S as SectionCategory, _ as SectionDefinition, $ as SectionDefinitionError, a0 as SectionId, a1 as SectionManifest, a2 as SectionPlacement, a3 as SectionPreset, a4 as SectionRenderProps, a5 as SectionVariant, e as Seo, a6 as SeoDefaults, a7 as SiteDocInput, a8 as Surface, a9 as TokenOverrides, aa as defineSection, ab as getSection, ac as isPlainEmail, ad as listSections, ae as mailtoHref, af as newSectionId, ag as nodeFromPreset, ah as opensInNewTab, ai as parseSnapshot, aj as postSummary, ak as registerBuiltInSection, al as registerSection, am as richTextPlain, an as sectionJsonSchema, ao as sectionManifests, ap as unregisterSection, aq as validatePostSlug } from './registry-CeSBSfU8.js';
3
+ export { d as ASSET_TYPES, A as Asset, e as AssetHostOptions, a as AssetMeta, C as CheckReleaseOptions, D as DEFAULT_RESERVED_PATHS, I as InvalidationInfo, M as MAX_PAGE_PATH_LENGTH, f as MAX_URL_LENGTH, g as MemorySiteStore, h as MemoryStoreOptions, N as NewPage, i as NewSite, j as PAGE_PATH, k as PageDraft, l as PreparedRelease, m as PublishBlockedError, P as PublishOptions, R as ReservedPaths, c as SaveResult, n as SiteConflictError, o as SiteDraft, b as SiteIssue, S as SiteStore, p as assetPath, q as checkAssetHosts, r as checkBlog, s as checkContrast, t as checkHtmlOutline, u as checkPage, v as checkPost, w as checkRelease, x as checkSiteDoc, y as createMemorySiteStore, z as formCacheTag, B as isConflict, E as isExternalHref, F as isOwnUrl, G as isPublishable, H as isReservedPath, J as isSafeHref, K as isSafeImageSrc, L as normalizeRequestPath, O as pagePathProblems, Q as prepareImportPost, T as prepareRelease, U as siteCacheTag, V as validatePagePath, W as withCacheInvalidation } from './store-CUsfzNmK.js';
4
+ export { LATIN_UNICODE_RANGE, SELF_HOSTED_FONTS, SelfHostedFont, fontFileKey } from '@marktiderman/genesis-design-system/fonts';
5
+ export { B as BrandInput, a as BrandSource, S as SiteBrand, b as SiteTheme, c as SiteThemeOptions, T as ThemePair, d as brandDisplayName, e as contrastRatio, h as hexToHslTriplet, i as isSiteBrand, l as luminance, m as mix, p as parseHex, s as siteTheme, f as stableHash, t as themeCss, g as toCanonicalBrand } from './theme-B3Vh_b-P.js';
6
+ export { O as OnePageSiteInput, T as TemplateInput, a as TemplateMessage, b as TemplateResult, l as landingPage, o as onePageSite, s as starterSite } from './templates-DALVa71A.js';
7
+ export { FONT_CHOICES, FontInfo } from '@marktiderman/genesis-design-system';
8
+ import '@marktiderman/genesis-media';
5
9
  import 'react';
6
10
  import 'zod';
7
- import '@marktiderman/genesis-design-system';
8
11
 
9
12
  /**
10
13
  * Props migrations. A section node records the props version it was written
@@ -92,7 +95,7 @@ interface PageMeta {
92
95
  /** The absolute URL of a site path. */
93
96
  declare function absoluteUrl(origin: string, basePath: string, path: string): string;
94
97
  /**
95
- * The page's title with the site's template (`%s · Riverside Gym`), so every
98
+ * The page's title with the site's template (`%s · Riverside Works`), so every
96
99
  * tab and search result names the site. An SEO title written for the page
97
100
  * (`seo.title`) is used as it is.
98
101
  */
@@ -163,94 +166,6 @@ declare function redirectsAfterMove(redirects: readonly Redirect[], from: string
163
166
  /** The redirect for a request path, if any (exact match on the normalised path). */
164
167
  declare function matchRedirect(redirects: readonly Redirect[], path: string): Redirect | undefined;
165
168
 
166
- /**
167
- * Templates: whole sites from a little input.
168
- *
169
- * - `landingPage`: the one-click landing page from a brand and a message.
170
- * Nav, hero, features, testimonials, a call to action, a form embed and a
171
- * footer, on one page.
172
- * - `onePageSite`: the smallest site a brand with no site can be seeded
173
- * with: just a name, a logo, a message, and the brand's colours and fonts.
174
- * - `starterSite`: three pages (home, about, contact) with nav and footer.
175
- *
176
- * Each returns documents (`site`, `pages`) for any `SiteStore` to create.
177
- * Nothing is invented and passed off as real: copy a template can't know
178
- * (a client's quote, a statistic) is marked `placeholder`, and the publish
179
- * check refuses it until someone replaces it or hides the section.
180
- */
181
-
182
- interface TemplateMessage {
183
- /** The hero's headline: what you do, for whom. */
184
- headline: string;
185
- /** One or two sentences under it. */
186
- subhead?: string;
187
- /** The main button. Default: "Get in touch", to the form (or `#contact`). */
188
- cta?: Link;
189
- /** What you offer, as the features band. Without it the band is a placeholder to fill in. */
190
- benefits?: {
191
- title: string;
192
- body: string;
193
- }[];
194
- }
195
- interface TemplateInput {
196
- brand: BrandInput;
197
- message: TemplateMessage;
198
- /** A form to embed (its slug, for the host's forms resolver). */
199
- form?: {
200
- slug: string;
201
- heading?: string;
202
- body?: string;
203
- };
204
- /** For the footer. */
205
- contact?: {
206
- email?: string;
207
- phone?: string;
208
- };
209
- }
210
- interface TemplateResult {
211
- site: SiteDocInput;
212
- pages: {
213
- path: string;
214
- kind: PageKind;
215
- doc: PageDoc;
216
- }[];
217
- }
218
- /**
219
- * The one-click landing page: brand plus message, on one page.
220
- *
221
- * @stability Beta
222
- */
223
- declare function landingPage(input: TemplateInput): TemplateResult;
224
- interface OnePageSiteInput {
225
- name: string;
226
- logo?: {
227
- src: string;
228
- alt?: string;
229
- };
230
- message: TemplateMessage;
231
- /** The brand's colours and fonts. */
232
- colors: SiteBrand["colors"];
233
- fonts?: SiteBrand["fonts"];
234
- contact?: TemplateInput["contact"];
235
- }
236
- /**
237
- * The smallest site, for seeding a brand that has none: a header, a hero,
238
- * a call to action and a footer. `brand` is the minimal brand to store
239
- * beside it (the host's `BrandSource` returns it).
240
- *
241
- * @stability Beta
242
- */
243
- declare function onePageSite(input: OnePageSiteInput): TemplateResult & {
244
- brand: SiteBrand;
245
- };
246
- /**
247
- * A three-page starter site: home, about and contact, with the menu, a
248
- * footer and redirects-ready paths.
249
- *
250
- * @stability Beta
251
- */
252
- declare function starterSite(input: TemplateInput): TemplateResult;
253
-
254
169
  declare const exampleBrands: Readonly<{
255
170
  riverside: {
256
171
  name: string;
@@ -276,4 +191,4 @@ declare const exampleBrands: Readonly<{
276
191
  };
277
192
  }>;
278
193
 
279
- export { AnySectionDefinition, BrandInput, Link, LivePost, type MigratedNode, type MigratedPage, type MigrationIssue, type OnePageSiteInput, PageDoc, PageKind, type PageMetaInput, PostSummary, Redirect, ReleasePage, type RobotsInput, type RssInput, SectionNode, type PageMeta as SeoPageMeta, SiteBrand, SiteDoc, SiteDocInput, type SitemapInput, type TemplateInput, type TemplateMessage, type TemplateResult, absoluteUrl, articleJsonLd, breadcrumbJsonLd, escapeXml, exampleBrands, landingPage, matchRedirect, migrateNode, migratePage, migrateSite, onePageSite, organizationJsonLd, pageMeta, pageTitle, postDescription, postPath, redirectsAfterMove, robotsTxt, rssXml, safeJsonForHtml, sitemapXml, starterSite, websiteJsonLd };
194
+ export { AnySectionDefinition, LivePost, type MigratedNode, type MigratedPage, type MigrationIssue, PageDoc, type PageMetaInput, PostSummary, Redirect, ReleasePage, type RobotsInput, type RssInput, SectionNode, type PageMeta as SeoPageMeta, SiteDoc, type SitemapInput, absoluteUrl, articleJsonLd, breadcrumbJsonLd, escapeXml, exampleBrands, matchRedirect, migrateNode, migratePage, migrateSite, organizationJsonLd, pageMeta, pageTitle, postDescription, postPath, redirectsAfterMove, robotsTxt, rssXml, safeJsonForHtml, sitemapXml, websiteJsonLd };
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
- export { exampleBrands, landingPage, onePageSite, starterSite } from './chunk-KPOX7D4S.js';
1
+ export { LATIN_UNICODE_RANGE, SELF_HOSTED_FONTS, fontFileKey } from './chunk-OFJISW3T.js';
2
+ export { exampleBrands, landingPage, onePageSite, starterSite } from './chunk-XOM334IK.js';
2
3
  export { isPlainEmail, mailtoHref } from './chunk-VZUDRPFG.js';
3
- export { ASSET_TYPES, FONT_CHOICES, PublishBlockedError, SiteConflictError, assetPath, brandDisplayName, checkBlog, checkContrast, checkHtmlOutline, checkPage, checkPost, checkRelease, checkSiteDoc, contrastRatio, createMemorySiteStore, formCacheTag, hexToHslTriplet, isConflict, isPublishable, isSiteBrand, luminance, migrateNode, migratePage, migrateSite, mix, parseHex, prepareImportPost, prepareRelease, siteCacheTag, siteTheme, stableHash, themeCss, toCanonicalBrand, withCacheInvalidation } from './chunk-FBQF2L7O.js';
4
- export { BUILT_IN_SECTION_TYPES, Copy, FileRef, FontChoice, Href, Image, Line, Link, LinkEvent, MAX_DOC_BYTES, MAX_IMPORT_POSTS, MAX_LIVE_POSTS, MenuItem, PageDoc, PageKind, PagePath, PostAuthor, PostDoc, PostSlug, PostSummarySchema, Redirect, ReleasePage, ReleaseSnapshot, RichText, SECTION_CATEGORIES, SectionDefinitionError, SectionId, SectionNode, Seo, SeoDefaults, SiteDoc, Surface, TokenOverrides, absoluteUrl, articleJsonLd, breadcrumbJsonLd, defineSection, escapeXml, getSection, listSections, matchRedirect, newSectionId, nodeFromPreset, opensInNewTab, organizationJsonLd, pageMeta, pageTitle, parseSnapshot, postDescription, postPath, postSummary, redirectsAfterMove, registerBuiltInSection, registerSection, richTextPlain, robotsTxt, rssXml, safeJsonForHtml, sectionJsonSchema, sectionManifests, sitemapXml, unregisterSection, validatePostSlug, websiteJsonLd } from './chunk-ZGWGQGT2.js';
5
- export { DEFAULT_RESERVED_PATHS, MAX_PAGE_PATH_LENGTH, MAX_URL_LENGTH, PAGE_PATH, isExternalHref, isReservedPath, isSafeHref, isSafeImageSrc, normalizeRequestPath, pagePathProblems, validatePagePath } from './chunk-3VKTBE7S.js';
4
+ export { ASSET_TYPES, FONT_CHOICES, PublishBlockedError, SiteConflictError, assetPath, brandDisplayName, checkAssetHosts, checkBlog, checkContrast, checkHtmlOutline, checkPage, checkPost, checkRelease, checkSiteDoc, contrastRatio, createMemorySiteStore, formCacheTag, hexToHslTriplet, isConflict, isOwnUrl, isPublishable, isSiteBrand, luminance, migrateNode, migratePage, migrateSite, mix, parseHex, prepareImportPost, prepareRelease, siteCacheTag, siteTheme, stableHash, themeCss, toCanonicalBrand, withCacheInvalidation } from './chunk-VLY75P7W.js';
5
+ export { BUILT_IN_SECTION_TYPES, BodyFontChoice, Copy, FileRef, FontChoice, Href, Image, Line, Link, LinkEvent, MAX_DOC_BYTES, MAX_IMPORT_POSTS, MAX_LIVE_POSTS, MenuItem, PageDoc, PageKind, PagePath, PostAuthor, PostDoc, PostSlug, PostSummarySchema, Redirect, ReleasePage, ReleaseSnapshot, RichText, SECTION_CATEGORIES, SectionDefinitionError, SectionId, SectionNode, Seo, SeoDefaults, SiteDoc, Surface, TokenOverrides, absoluteUrl, articleJsonLd, breadcrumbJsonLd, defineSection, escapeXml, getSection, listSections, matchRedirect, newSectionId, nodeFromPreset, opensInNewTab, organizationJsonLd, pageMeta, pageTitle, parseSnapshot, postDescription, postPath, postSummary, redirectsAfterMove, registerBuiltInSection, registerSection, richTextPlain, robotsTxt, rssXml, safeJsonForHtml, sectionJsonSchema, sectionManifests, sitemapXml, unregisterSection, validatePostSlug, websiteJsonLd } from './chunk-YAASBQTJ.js';
6
+ export { DEFAULT_RESERVED_PATHS, MAX_PAGE_PATH_LENGTH, MAX_URL_LENGTH, PAGE_PATH, isExternalHref, isReservedPath, isSafeHref, isSafeImageSrc, normalizeRequestPath, pagePathProblems, validatePagePath } from './chunk-MU2Z2C4F.js';
6
7
  //# sourceMappingURL=index.js.map
7
8
  //# sourceMappingURL=index.js.map
@@ -1,17 +1,7 @@
1
+ import { ImageUrlBuilder } from '@marktiderman/genesis-media';
1
2
  import { ReactNode } from 'react';
2
3
  import { z } from 'zod';
3
4
 
4
- /**
5
- * The documents a site is made of, as zod 4 schemas: a `SiteDoc` (theme,
6
- * header, navigation, footer, SEO defaults, redirects), one `PageDoc` per
7
- * page (its sections and SEO), and the `ReleaseSnapshot` a publish freezes.
8
- *
9
- * A page's `content` is an array of `{ id, type, v, variant, props }`
10
- * section nodes, which is the shape Puck's `content` uses, so the editor
11
- * reads and writes these documents unchanged. A section's `props` are
12
- * checked by that section's own schema (see `defineSection`), not here.
13
- */
14
-
15
5
  /** A link target: a site path, a fragment, or an http(s), mailto or tel URL. */
16
6
  declare const Href: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
17
7
  /** An analytics event name for a link: `data-gs-event` on the page (default `cta` on buttons). */
@@ -74,6 +64,16 @@ declare const Image: z.ZodObject<{
74
64
  x: z.ZodNumber;
75
65
  y: z.ZodNumber;
76
66
  }, z.core.$strip>>;
67
+ phone: z.ZodOptional<z.ZodObject<{
68
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
69
+ width: z.ZodOptional<z.ZodNumber>;
70
+ height: z.ZodOptional<z.ZodNumber>;
71
+ focal: z.ZodOptional<z.ZodObject<{
72
+ x: z.ZodNumber;
73
+ y: z.ZodNumber;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>>;
76
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
77
77
  }, z.core.$strip>;
78
78
  type Image = z.infer<typeof Image>;
79
79
  /**
@@ -127,6 +127,16 @@ declare const Seo: z.ZodObject<{
127
127
  x: z.ZodNumber;
128
128
  y: z.ZodNumber;
129
129
  }, z.core.$strip>>;
130
+ phone: z.ZodOptional<z.ZodObject<{
131
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
132
+ width: z.ZodOptional<z.ZodNumber>;
133
+ height: z.ZodOptional<z.ZodNumber>;
134
+ focal: z.ZodOptional<z.ZodObject<{
135
+ x: z.ZodNumber;
136
+ y: z.ZodNumber;
137
+ }, z.core.$strip>>;
138
+ }, z.core.$strip>>;
139
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
130
140
  }, z.core.$strip>>;
131
141
  canonical: z.ZodOptional<z.ZodURL>;
132
142
  noindex: z.ZodOptional<z.ZodBoolean>;
@@ -166,6 +176,16 @@ declare const PageDoc: z.ZodObject<{
166
176
  x: z.ZodNumber;
167
177
  y: z.ZodNumber;
168
178
  }, z.core.$strip>>;
179
+ phone: z.ZodOptional<z.ZodObject<{
180
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
181
+ width: z.ZodOptional<z.ZodNumber>;
182
+ height: z.ZodOptional<z.ZodNumber>;
183
+ focal: z.ZodOptional<z.ZodObject<{
184
+ x: z.ZodNumber;
185
+ y: z.ZodNumber;
186
+ }, z.core.$strip>>;
187
+ }, z.core.$strip>>;
188
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
169
189
  }, z.core.$strip>>;
170
190
  canonical: z.ZodOptional<z.ZodURL>;
171
191
  noindex: z.ZodOptional<z.ZodBoolean>;
@@ -196,7 +216,7 @@ declare const Redirect: z.ZodObject<{
196
216
  status: z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>]>;
197
217
  }, z.core.$strip>;
198
218
  type Redirect = z.infer<typeof Redirect>;
199
- /** Fonts a site may choose; see `FONT_CHOICES` in theme.ts for their stacks. */
219
+ /** Fonts a site may choose for its headings: genesis-design-system's `FONT_IDS` (see `FONT_CHOICES` for their stacks). */
200
220
  declare const FontChoice: z.ZodEnum<{
201
221
  system: "system";
202
222
  inter: "inter";
@@ -209,8 +229,32 @@ declare const FontChoice: z.ZodEnum<{
209
229
  merriweather: "merriweather";
210
230
  "playfair-display": "playfair-display";
211
231
  lora: "lora";
232
+ barlow: "barlow";
233
+ "barlow-condensed": "barlow-condensed";
234
+ oswald: "oswald";
235
+ "roboto-condensed": "roboto-condensed";
236
+ "bebas-neue": "bebas-neue";
212
237
  }>;
213
238
  type FontChoice = z.infer<typeof FontChoice>;
239
+ /** Fonts a site may choose for its body text: every choice but the display faces that have one weight. */
240
+ declare const BodyFontChoice: z.ZodEnum<{
241
+ system: "system";
242
+ inter: "inter";
243
+ "dm-sans": "dm-sans";
244
+ "work-sans": "work-sans";
245
+ montserrat: "montserrat";
246
+ poppins: "poppins";
247
+ "space-grotesk": "space-grotesk";
248
+ "source-serif": "source-serif";
249
+ merriweather: "merriweather";
250
+ "playfair-display": "playfair-display";
251
+ lora: "lora";
252
+ barlow: "barlow";
253
+ "barlow-condensed": "barlow-condensed";
254
+ oswald: "oswald";
255
+ "roboto-condensed": "roboto-condensed";
256
+ }>;
257
+ type BodyFontChoice = z.infer<typeof BodyFontChoice>;
214
258
  /**
215
259
  * A site's theme choices on top of the brand: token choices only, never raw
216
260
  * CSS, so a site stays inside the design system.
@@ -235,6 +279,11 @@ declare const TokenOverrides: z.ZodObject<{
235
279
  merriweather: "merriweather";
236
280
  "playfair-display": "playfair-display";
237
281
  lora: "lora";
282
+ barlow: "barlow";
283
+ "barlow-condensed": "barlow-condensed";
284
+ oswald: "oswald";
285
+ "roboto-condensed": "roboto-condensed";
286
+ "bebas-neue": "bebas-neue";
238
287
  }>>;
239
288
  bodyFont: z.ZodOptional<z.ZodEnum<{
240
289
  system: "system";
@@ -248,6 +297,10 @@ declare const TokenOverrides: z.ZodObject<{
248
297
  merriweather: "merriweather";
249
298
  "playfair-display": "playfair-display";
250
299
  lora: "lora";
300
+ barlow: "barlow";
301
+ "barlow-condensed": "barlow-condensed";
302
+ oswald: "oswald";
303
+ "roboto-condensed": "roboto-condensed";
251
304
  }>>;
252
305
  }, z.core.$strip>;
253
306
  type TokenOverrides = z.infer<typeof TokenOverrides>;
@@ -264,6 +317,16 @@ declare const SeoDefaults: z.ZodObject<{
264
317
  x: z.ZodNumber;
265
318
  y: z.ZodNumber;
266
319
  }, z.core.$strip>>;
320
+ phone: z.ZodOptional<z.ZodObject<{
321
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
322
+ width: z.ZodOptional<z.ZodNumber>;
323
+ height: z.ZodOptional<z.ZodNumber>;
324
+ focal: z.ZodOptional<z.ZodObject<{
325
+ x: z.ZodNumber;
326
+ y: z.ZodNumber;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>>;
329
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
267
330
  }, z.core.$strip>>;
268
331
  organization: z.ZodOptional<z.ZodObject<{
269
332
  name: z.ZodString;
@@ -303,6 +366,11 @@ declare const SiteDoc: z.ZodObject<{
303
366
  merriweather: "merriweather";
304
367
  "playfair-display": "playfair-display";
305
368
  lora: "lora";
369
+ barlow: "barlow";
370
+ "barlow-condensed": "barlow-condensed";
371
+ oswald: "oswald";
372
+ "roboto-condensed": "roboto-condensed";
373
+ "bebas-neue": "bebas-neue";
306
374
  }>>;
307
375
  bodyFont: z.ZodOptional<z.ZodEnum<{
308
376
  system: "system";
@@ -316,6 +384,10 @@ declare const SiteDoc: z.ZodObject<{
316
384
  merriweather: "merriweather";
317
385
  "playfair-display": "playfair-display";
318
386
  lora: "lora";
387
+ barlow: "barlow";
388
+ "barlow-condensed": "barlow-condensed";
389
+ oswald: "oswald";
390
+ "roboto-condensed": "roboto-condensed";
319
391
  }>>;
320
392
  }, z.core.$strip>>;
321
393
  }, z.core.$strip>>;
@@ -362,6 +434,16 @@ declare const SiteDoc: z.ZodObject<{
362
434
  x: z.ZodNumber;
363
435
  y: z.ZodNumber;
364
436
  }, z.core.$strip>>;
437
+ phone: z.ZodOptional<z.ZodObject<{
438
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
439
+ width: z.ZodOptional<z.ZodNumber>;
440
+ height: z.ZodOptional<z.ZodNumber>;
441
+ focal: z.ZodOptional<z.ZodObject<{
442
+ x: z.ZodNumber;
443
+ y: z.ZodNumber;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strip>>;
446
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
365
447
  }, z.core.$strip>>;
366
448
  organization: z.ZodOptional<z.ZodObject<{
367
449
  name: z.ZodString;
@@ -375,6 +457,10 @@ declare const SiteDoc: z.ZodObject<{
375
457
  to: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
376
458
  status: z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>]>;
377
459
  }, z.core.$strip>>>;
460
+ images: z.ZodOptional<z.ZodEnum<{
461
+ any: "any";
462
+ own: "own";
463
+ }>>;
378
464
  }, z.core.$strip>;
379
465
  type SiteDoc = z.infer<typeof SiteDoc>;
380
466
  /** A `SiteDoc` as written, before defaults. */
@@ -421,6 +507,16 @@ declare const ReleasePage: z.ZodObject<{
421
507
  x: z.ZodNumber;
422
508
  y: z.ZodNumber;
423
509
  }, z.core.$strip>>;
510
+ phone: z.ZodOptional<z.ZodObject<{
511
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
512
+ width: z.ZodOptional<z.ZodNumber>;
513
+ height: z.ZodOptional<z.ZodNumber>;
514
+ focal: z.ZodOptional<z.ZodObject<{
515
+ x: z.ZodNumber;
516
+ y: z.ZodNumber;
517
+ }, z.core.$strip>>;
518
+ }, z.core.$strip>>;
519
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
424
520
  }, z.core.$strip>>;
425
521
  canonical: z.ZodOptional<z.ZodURL>;
426
522
  noindex: z.ZodOptional<z.ZodBoolean>;
@@ -461,6 +557,11 @@ declare const ReleaseSnapshot: z.ZodObject<{
461
557
  merriweather: "merriweather";
462
558
  "playfair-display": "playfair-display";
463
559
  lora: "lora";
560
+ barlow: "barlow";
561
+ "barlow-condensed": "barlow-condensed";
562
+ oswald: "oswald";
563
+ "roboto-condensed": "roboto-condensed";
564
+ "bebas-neue": "bebas-neue";
464
565
  }>>;
465
566
  bodyFont: z.ZodOptional<z.ZodEnum<{
466
567
  system: "system";
@@ -474,6 +575,10 @@ declare const ReleaseSnapshot: z.ZodObject<{
474
575
  merriweather: "merriweather";
475
576
  "playfair-display": "playfair-display";
476
577
  lora: "lora";
578
+ barlow: "barlow";
579
+ "barlow-condensed": "barlow-condensed";
580
+ oswald: "oswald";
581
+ "roboto-condensed": "roboto-condensed";
477
582
  }>>;
478
583
  }, z.core.$strip>>;
479
584
  }, z.core.$strip>>;
@@ -520,6 +625,16 @@ declare const ReleaseSnapshot: z.ZodObject<{
520
625
  x: z.ZodNumber;
521
626
  y: z.ZodNumber;
522
627
  }, z.core.$strip>>;
628
+ phone: z.ZodOptional<z.ZodObject<{
629
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
630
+ width: z.ZodOptional<z.ZodNumber>;
631
+ height: z.ZodOptional<z.ZodNumber>;
632
+ focal: z.ZodOptional<z.ZodObject<{
633
+ x: z.ZodNumber;
634
+ y: z.ZodNumber;
635
+ }, z.core.$strip>>;
636
+ }, z.core.$strip>>;
637
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
523
638
  }, z.core.$strip>>;
524
639
  organization: z.ZodOptional<z.ZodObject<{
525
640
  name: z.ZodString;
@@ -533,6 +648,10 @@ declare const ReleaseSnapshot: z.ZodObject<{
533
648
  to: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
534
649
  status: z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>]>;
535
650
  }, z.core.$strip>>>;
651
+ images: z.ZodOptional<z.ZodEnum<{
652
+ any: "any";
653
+ own: "own";
654
+ }>>;
536
655
  }, z.core.$strip>;
537
656
  pages: z.ZodArray<z.ZodObject<{
538
657
  id: z.ZodString;
@@ -576,6 +695,16 @@ declare const ReleaseSnapshot: z.ZodObject<{
576
695
  x: z.ZodNumber;
577
696
  y: z.ZodNumber;
578
697
  }, z.core.$strip>>;
698
+ phone: z.ZodOptional<z.ZodObject<{
699
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
700
+ width: z.ZodOptional<z.ZodNumber>;
701
+ height: z.ZodOptional<z.ZodNumber>;
702
+ focal: z.ZodOptional<z.ZodObject<{
703
+ x: z.ZodNumber;
704
+ y: z.ZodNumber;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>>;
707
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
579
708
  }, z.core.$strip>>;
580
709
  canonical: z.ZodOptional<z.ZodURL>;
581
710
  noindex: z.ZodOptional<z.ZodBoolean>;
@@ -708,6 +837,16 @@ declare const PostDoc: z.ZodObject<{
708
837
  x: z.ZodNumber;
709
838
  y: z.ZodNumber;
710
839
  }, z.core.$strip>>;
840
+ phone: z.ZodOptional<z.ZodObject<{
841
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
842
+ width: z.ZodOptional<z.ZodNumber>;
843
+ height: z.ZodOptional<z.ZodNumber>;
844
+ focal: z.ZodOptional<z.ZodObject<{
845
+ x: z.ZodNumber;
846
+ y: z.ZodNumber;
847
+ }, z.core.$strip>>;
848
+ }, z.core.$strip>>;
849
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
711
850
  }, z.core.$strip>>;
712
851
  author: z.ZodOptional<z.ZodObject<{
713
852
  name: z.ZodString;
@@ -728,6 +867,16 @@ declare const PostDoc: z.ZodObject<{
728
867
  x: z.ZodNumber;
729
868
  y: z.ZodNumber;
730
869
  }, z.core.$strip>>;
870
+ phone: z.ZodOptional<z.ZodObject<{
871
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
872
+ width: z.ZodOptional<z.ZodNumber>;
873
+ height: z.ZodOptional<z.ZodNumber>;
874
+ focal: z.ZodOptional<z.ZodObject<{
875
+ x: z.ZodNumber;
876
+ y: z.ZodNumber;
877
+ }, z.core.$strip>>;
878
+ }, z.core.$strip>>;
879
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
731
880
  }, z.core.$strip>>;
732
881
  canonical: z.ZodOptional<z.ZodURL>;
733
882
  noindex: z.ZodOptional<z.ZodBoolean>;
@@ -789,6 +938,16 @@ declare const PostSummarySchema: z.ZodObject<{
789
938
  x: z.ZodNumber;
790
939
  y: z.ZodNumber;
791
940
  }, z.core.$strip>>;
941
+ phone: z.ZodOptional<z.ZodObject<{
942
+ src: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
943
+ width: z.ZodOptional<z.ZodNumber>;
944
+ height: z.ZodOptional<z.ZodNumber>;
945
+ focal: z.ZodOptional<z.ZodObject<{
946
+ x: z.ZodNumber;
947
+ y: z.ZodNumber;
948
+ }, z.core.$strip>>;
949
+ }, z.core.$strip>>;
950
+ placeholder: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
792
951
  }, z.core.$strip>>;
793
952
  author: z.ZodOptional<z.ZodObject<{
794
953
  name: z.ZodString;
@@ -910,6 +1069,21 @@ interface RenderContext {
910
1069
  * `<path>/<slug>`), and the list's page number (`?page=`).
911
1070
  */
912
1071
  posts?: PostsContext;
1072
+ /**
1073
+ * How the page's images load: the host's image URL builder (for `srcset`)
1074
+ * and whether the page's first large image has taken the high priority.
1075
+ * Without it, images load at their own URL and large ones lazily.
1076
+ */
1077
+ media?: RenderMedia;
1078
+ }
1079
+ /** One page render's image state. */
1080
+ interface RenderMedia {
1081
+ /** The host's image URL builder (genesis-media); pass-through when the host gives none. */
1082
+ imageUrl: ImageUrlBuilder;
1083
+ /** Set once the page's first large image has rendered: it alone loads at high priority. */
1084
+ firstLarge: {
1085
+ claimed: boolean;
1086
+ };
913
1087
  }
914
1088
  interface PostsContext {
915
1089
  /** The post page's path (`/blog`): posts live at `<path>/<slug>`. */
@@ -1027,4 +1201,4 @@ declare function newSectionId(prefix?: string): string;
1027
1201
  /** A section node from a preset: the editor's Add, and templates. */
1028
1202
  declare function nodeFromPreset(type: string, presetName?: string, id?: string): SectionNode;
1029
1203
 
1030
- export { SectionId as $, type AnySectionDefinition as A, BUILT_IN_SECTION_TYPES as B, Copy as C, type PostDocInput as D, type PostDraft as E, type FormsResolver as F, type PostMeta as G, Href as H, Image as I, PostSlug as J, type PostStatus as K, type LivePost as L, MAX_DOC_BYTES as M, PostSummarySchema as N, type PostsContext as O, PageKind as P, type RegisterSectionOptions as Q, type Release as R, type SectionCategory as S, type ReleaseMeta as T, ReleaseSnapshot as U, RichText as V, SECTION_CATEGORIES as W, type SavePostInput as X, type SavePostResult as Y, type SectionDefinition as Z, SectionDefinitionError as _, PageDoc as a, type SectionManifest as a0, type SectionPlacement as a1, type SectionPreset as a2, type SectionRenderProps as a3, type SectionVariant as a4, SeoDefaults as a5, Surface as a6, TokenOverrides as a7, defineSection as a8, getSection as a9, isPlainEmail as aa, listSections as ab, mailtoHref as ac, newSectionId as ad, nodeFromPreset as ae, opensInNewTab as af, parseSnapshot as ag, postSummary as ah, registerBuiltInSection as ai, registerSection as aj, richTextPlain as ak, sectionJsonSchema as al, sectionManifests as am, unregisterSection as an, validatePostSlug as ao, type PageMeta as b, type RenderContext as c, type ResolvedForm as d, Seo as e, SectionNode as f, SiteDoc as g, ReleasePage as h, type PostSummary as i, Redirect as j, Link as k, type SiteDocInput as l, type BuiltInSectionType as m, FileRef as n, FontChoice as o, type FormsResolverContext as p, type ImportPost as q, type ImportPostsResult as r, Line as s, LinkEvent as t, MAX_IMPORT_POSTS as u, MAX_LIVE_POSTS as v, MenuItem as w, PagePath as x, PostAuthor as y, PostDoc as z };
1204
+ export { SectionDefinitionError as $, type AnySectionDefinition as A, BUILT_IN_SECTION_TYPES as B, Copy as C, type PostDocInput as D, type PostDraft as E, type FormsResolver as F, type PostMeta as G, Href as H, Image as I, PostSlug as J, type PostStatus as K, type LivePost as L, MAX_DOC_BYTES as M, PostSummarySchema as N, type PostsContext as O, PageKind as P, type RegisterSectionOptions as Q, type Release as R, type SectionCategory as S, type ReleaseMeta as T, ReleaseSnapshot as U, type RenderMedia as V, RichText as W, SECTION_CATEGORIES as X, type SavePostInput as Y, type SavePostResult as Z, type SectionDefinition as _, PageDoc as a, SectionId as a0, type SectionManifest as a1, type SectionPlacement as a2, type SectionPreset as a3, type SectionRenderProps as a4, type SectionVariant as a5, SeoDefaults as a6, type SiteDocInput as a7, Surface as a8, TokenOverrides as a9, defineSection as aa, getSection as ab, isPlainEmail as ac, listSections as ad, mailtoHref as ae, newSectionId as af, nodeFromPreset as ag, opensInNewTab as ah, parseSnapshot as ai, postSummary as aj, registerBuiltInSection as ak, registerSection as al, richTextPlain as am, sectionJsonSchema as an, sectionManifests as ao, unregisterSection as ap, validatePostSlug as aq, type PageMeta as b, type RenderContext as c, type ResolvedForm as d, Seo as e, SectionNode as f, SiteDoc as g, ReleasePage as h, type PostSummary as i, Redirect as j, BodyFontChoice as k, type BuiltInSectionType as l, FileRef as m, FontChoice as n, type FormsResolverContext as o, type ImportPost as p, type ImportPostsResult as q, Line as r, Link as s, LinkEvent as t, MAX_IMPORT_POSTS as u, MAX_LIVE_POSTS as v, MenuItem as w, PagePath as x, PostAuthor as y, PostDoc as z };