@marktiderman/genesis-sites 0.8.0 → 0.9.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 (64) hide show
  1. package/README.md +128 -11
  2. package/SKILL.md +5 -0
  3. package/dist/analytics.d.ts +184 -0
  4. package/dist/analytics.js +3 -0
  5. package/dist/analytics.js.map +1 -0
  6. package/dist/assets/islands.399b13ea6f.js +1 -0
  7. package/dist/assets/sites-forms.b64c156079.css +10 -0
  8. package/dist/assets/sites-forms.css +1 -1
  9. package/dist/assets/sites.2fac65f96a.css +2 -0
  10. package/dist/assets/sites.css +1 -1
  11. package/dist/assets.generated-ZBFSP23U.js +3 -0
  12. package/dist/{assets.generated-YGLB7VKL.js.map → assets.generated-ZBFSP23U.js.map} +1 -1
  13. package/dist/{chunk-MXV2HOJO.js → chunk-5G2H6EZ2.js} +6 -6
  14. package/dist/chunk-5G2H6EZ2.js.map +1 -0
  15. package/dist/chunk-5RYCQEEE.js +256 -0
  16. package/dist/chunk-5RYCQEEE.js.map +1 -0
  17. package/dist/{chunk-FMQTSXJN.js → chunk-ATRS5GSD.js} +60 -19
  18. package/dist/chunk-ATRS5GSD.js.map +1 -0
  19. package/dist/{chunk-MU2Z2C4F.js → chunk-CXBBUKGB.js} +14 -4
  20. package/dist/chunk-CXBBUKGB.js.map +1 -0
  21. package/dist/{chunk-6CXTOPYI.js → chunk-QGU6FDH5.js} +74 -8
  22. package/dist/chunk-QGU6FDH5.js.map +1 -0
  23. package/dist/{chunk-I767PDBR.js → chunk-SBONYMUC.js} +38 -15
  24. package/dist/chunk-SBONYMUC.js.map +1 -0
  25. package/dist/{chunk-YAMQ2JKO.js → chunk-UOKNFG5O.js} +127 -14
  26. package/dist/chunk-UOKNFG5O.js.map +1 -0
  27. package/dist/{chunk-QE7KS2JS.js → chunk-UUC5USJH.js} +8 -45
  28. package/dist/chunk-UUC5USJH.js.map +1 -0
  29. package/dist/editor.d.ts +63 -14
  30. package/dist/editor.js +682 -254
  31. package/dist/editor.js.map +1 -1
  32. package/dist/handler-OR554RTS.js +11 -0
  33. package/dist/{handler-J5BCH2VW.js.map → handler-OR554RTS.js.map} +1 -1
  34. package/dist/import.d.ts +3 -3
  35. package/dist/import.js +1 -1
  36. package/dist/index.d.ts +23 -9
  37. package/dist/index.js +4 -4
  38. package/dist/{redirects-BNSD9MKa.d.ts → redirects-LcCNIJHQ.d.ts} +2 -2
  39. package/dist/{registry-BPn-tDlL.d.ts → registry-Cw7NF_le.d.ts} +17 -1
  40. package/dist/sections.d.ts +1 -1
  41. package/dist/sections.js +3 -3
  42. package/dist/{store-B_GMH42V.d.ts → store-BNYD5NAQ.d.ts} +30 -4
  43. package/dist/supabase.d.ts +4 -4
  44. package/dist/supabase.js +4 -4
  45. package/dist/{templates-CFSSG1iU.d.ts → templates-DPv0OYLl.d.ts} +2 -2
  46. package/dist/templates.d.ts +3 -3
  47. package/dist/templates.js +7 -3
  48. package/dist/templates.js.map +1 -1
  49. package/dist/{theme-Dw42GDI_.d.ts → theme-HJzN2tOm.d.ts} +2 -2
  50. package/dist/web.d.ts +49 -13
  51. package/dist/web.js +7 -6
  52. package/package.json +6 -2
  53. package/dist/assets/islands.83aaf5e0df.js +0 -1
  54. package/dist/assets/sites-forms.bac9a6aafd.css +0 -10
  55. package/dist/assets/sites.323090ba26.css +0 -2
  56. package/dist/assets.generated-YGLB7VKL.js +0 -3
  57. package/dist/chunk-6CXTOPYI.js.map +0 -1
  58. package/dist/chunk-FMQTSXJN.js.map +0 -1
  59. package/dist/chunk-I767PDBR.js.map +0 -1
  60. package/dist/chunk-MU2Z2C4F.js.map +0 -1
  61. package/dist/chunk-MXV2HOJO.js.map +0 -1
  62. package/dist/chunk-QE7KS2JS.js.map +0 -1
  63. package/dist/chunk-YAMQ2JKO.js.map +0 -1
  64. package/dist/handler-J5BCH2VW.js +0 -10
@@ -0,0 +1,11 @@
1
+ export { ASSETS_PREFIX, handleSiteRequest, renderSitePageToString } from './chunk-ATRS5GSD.js';
2
+ import './chunk-5G2H6EZ2.js';
3
+ import './chunk-OFJISW3T.js';
4
+ import './chunk-5RYCQEEE.js';
5
+ import './chunk-SBONYMUC.js';
6
+ import './chunk-VZUDRPFG.js';
7
+ import './chunk-UOKNFG5O.js';
8
+ import './chunk-QGU6FDH5.js';
9
+ import './chunk-CXBBUKGB.js';
10
+ //# sourceMappingURL=handler-OR554RTS.js.map
11
+ //# sourceMappingURL=handler-OR554RTS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"handler-J5BCH2VW.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"handler-OR554RTS.js"}
package/dist/import.d.ts CHANGED
@@ -2,11 +2,11 @@ import { Transport } from '@marktiderman/genesis-media/server';
2
2
  export { BlockedAddressError, FetchedResponse, Transport, guardedLookup, isPublicAddress, urlProblems } from '@marktiderman/genesis-media/server';
3
3
  import { Sniffed } from '@marktiderman/genesis-media';
4
4
  export { Sniffed, sniff } from '@marktiderman/genesis-media';
5
- import { S as SiteStore } from './store-B_GMH42V.js';
6
- import './registry-BPn-tDlL.js';
5
+ import { S as SiteStore } from './store-BNYD5NAQ.js';
6
+ import './registry-Cw7NF_le.js';
7
7
  import 'react';
8
8
  import 'zod';
9
- import './theme-Dw42GDI_.js';
9
+ import './theme-HJzN2tOm.js';
10
10
  import '@marktiderman/genesis-design-system';
11
11
 
12
12
  /**
package/dist/import.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MAX_URL_LENGTH } from './chunk-MU2Z2C4F.js';
1
+ import { MAX_URL_LENGTH } from './chunk-CXBBUKGB.js';
2
2
  import { createGuardedTransport, fetchGuarded, FetchRefusedError } from '@marktiderman/genesis-media/server';
3
3
  export { BlockedAddressError, guardedLookup, isPublicAddress, urlProblems } from '@marktiderman/genesis-media/server';
4
4
  import { sniff } from '@marktiderman/genesis-media';
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { P as PageMeta$1, g as SiteDoc, b as PageDoc, f as SectionNode, A as AnySectionDefinition, h as ReleasePage, i as PostSummary, L as LivePost, j as Redirect } from './registry-BPn-tDlL.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, a as PageKind, 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-BPn-tDlL.js';
3
- import { R as ReservedPaths } from './store-B_GMH42V.js';
4
- 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, 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-B_GMH42V.js';
5
- export { a as RedirectContext, R as RedirectDestination, b as RedirectMatch, r as redirectDestinations, c as redirectFromProblems, d as redirectToProblems, e as removeRedirect, u as upsertRedirect } from './redirects-BNSD9MKa.js';
1
+ import { P as PageMeta$1, g as SiteDoc, b as PageDoc, f as SectionNode, A as AnySectionDefinition, h as ReleasePage, i as PostSummary, L as LivePost, j as Redirect } from './registry-Cw7NF_le.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, a as PageKind, 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-Cw7NF_le.js';
3
+ import { R as ReservedPaths } from './store-BNYD5NAQ.js';
4
+ export { e as ASSET_TYPES, A as Asset, f as AssetHostOptions, a as AssetMeta, C as CheckLevel, g as CheckReleaseOptions, D as DEFAULT_RESERVED_PATHS, 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, d as SaveResult, c as SiteCheckLevels, p as SiteConflictError, q as SiteDraft, b as SiteIssue, S as SiteStore, r as applyCheckLevels, s as assetPath, t as checkAssetHosts, u as checkBlog, v as checkContrast, w as checkHtmlOutline, x as checkPage, y as checkPost, z as checkRelease, B as checkSiteDoc, E as createMemorySiteStore, F as formCacheTag, G as isConflict, H as isExternalHref, J as isOwnUrl, K as isPublishable, L as isReservedPath, O as isSafeHref, Q as isSafeImageSrc, T as normalizeRequestPath, U as pagePathProblems, V as prepareImportPost, W as prepareRelease, X as siteCacheTag, Y as validatePagePath, Z as withCacheInvalidation } from './store-BNYD5NAQ.js';
5
+ export { a as RedirectContext, R as RedirectDestination, b as RedirectMatch, r as redirectDestinations, c as redirectFromProblems, d as redirectToProblems, e as removeRedirect, u as upsertRedirect } from './redirects-LcCNIJHQ.js';
6
6
  export { LATIN_UNICODE_RANGE, SELF_HOSTED_FONTS, SelfHostedFont, fontFileKey } from '@marktiderman/genesis-design-system/fonts';
7
- 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-Dw42GDI_.js';
8
- export { O as OnePageSiteInput, T as TemplateInput, a as TemplateMessage, b as TemplateResult, l as landingPage, o as onePageSite, s as starterSite } from './templates-CFSSG1iU.js';
7
+ 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-HJzN2tOm.js';
8
+ export { O as OnePageSiteInput, T as TemplateInput, a as TemplateMessage, b as TemplateResult, l as landingPage, o as onePageSite, s as starterSite } from './templates-DPv0OYLl.js';
9
9
  export { FONT_CHOICES, FontInfo } from '@marktiderman/genesis-design-system';
10
10
  import '@marktiderman/genesis-media';
11
11
  import 'react';
@@ -66,6 +66,19 @@ declare function notFoundPageDoc(input?: {
66
66
  title?: string;
67
67
  }): PageDoc;
68
68
 
69
+ type Root = Pick<PageDoc, "root">;
70
+ /** The page's window, as epoch milliseconds (null where open). */
71
+ declare function pageWindow(doc: Root): {
72
+ from: number | null;
73
+ until: number | null;
74
+ };
75
+ /** Is the page shown at `at`? A page with no window always is. */
76
+ declare function isPageShown(doc: Root, at: Date): boolean;
77
+ /** The page's next boundary after `at` (when it appears or disappears), or null. */
78
+ declare function nextPageBoundary(doc: Root, at: Date): number | null;
79
+ /** Why a page can't have this window (empty when it can). */
80
+ declare function pageWindowProblems(doc: Root, path: string): string[];
81
+
69
82
  /**
70
83
  * Props migrations. A section node records the props version it was written
71
84
  * at (`v`); its definition declares the current `version` and a pure
@@ -154,7 +167,8 @@ declare function absoluteUrl(origin: string, basePath: string, path: string): st
154
167
  /**
155
168
  * The page's title with the site's template (`%s · Riverside Works`), so every
156
169
  * tab and search result names the site. An SEO title written for the page
157
- * (`seo.title`) is used as it is.
170
+ * (`seo.title`) is used as it is, and a page titled with the site's name
171
+ * isn't given it twice.
158
172
  */
159
173
  declare function pageTitle(site: SiteDoc, doc: PageDoc, _path: string): string;
160
174
  /** Every meta value a page prints in its `<head>`. */
@@ -271,4 +285,4 @@ declare const exampleBrands: Readonly<{
271
285
  };
272
286
  }>;
273
287
 
274
- export { AnySectionDefinition, DEFAULT_LANDING_DIRECTORY, LANDING_SLUG, LivePost, type MigratedNode, type MigratedPage, type MigrationIssue, NOT_FOUND_PATH, PageDoc, PageMeta$1 as PageMeta, type PageMetaInput, PostSummary, Redirect, ReleasePage, ReservedPaths, type RobotsInput, type RssInput, SectionNode, type PageMeta as SeoPageMeta, SiteDoc, type SitemapInput, absoluteUrl, articleJsonLd, breadcrumbJsonLd, escapeXml, exampleBrands, faqPageJsonLd, isLandingPage, isNotFoundPage, isUnderPrefix, landingDirectory, landingDirectoryProblems, landingMoves, landingPages, landingPath, landingSlugOf, landingSlugProblems, localBusinessJsonLd, matchPrefixRedirect, matchRedirect, migrateNode, migratePage, migrateSite, notFoundPageDoc, organizationJsonLd, pageMeta, pageTitle, postDescription, postPath, redirectLoops, redirectsAfterMove, robotsTxt, rssXml, safeJsonForHtml, sitemapXml, websiteJsonLd };
288
+ export { AnySectionDefinition, DEFAULT_LANDING_DIRECTORY, LANDING_SLUG, LivePost, type MigratedNode, type MigratedPage, type MigrationIssue, NOT_FOUND_PATH, PageDoc, PageMeta$1 as PageMeta, type PageMetaInput, PostSummary, Redirect, ReleasePage, ReservedPaths, type RobotsInput, type RssInput, SectionNode, type PageMeta as SeoPageMeta, SiteDoc, type SitemapInput, absoluteUrl, articleJsonLd, breadcrumbJsonLd, escapeXml, exampleBrands, faqPageJsonLd, isLandingPage, isNotFoundPage, isPageShown, isUnderPrefix, landingDirectory, landingDirectoryProblems, landingMoves, landingPages, landingPath, landingSlugOf, landingSlugProblems, localBusinessJsonLd, matchPrefixRedirect, matchRedirect, migrateNode, migratePage, migrateSite, nextPageBoundary, notFoundPageDoc, organizationJsonLd, pageMeta, pageTitle, pageWindow, pageWindowProblems, postDescription, postPath, redirectLoops, redirectsAfterMove, robotsTxt, rssXml, safeJsonForHtml, sitemapXml, websiteJsonLd };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { LATIN_UNICODE_RANGE, SELF_HOSTED_FONTS, fontFileKey } from './chunk-OFJISW3T.js';
2
- export { DEFAULT_LANDING_DIRECTORY, LANDING_SLUG, exampleBrands, isLandingPage, landingDirectory, landingDirectoryProblems, landingMoves, landingPage, landingPages, landingPath, landingSlugOf, landingSlugProblems, onePageSite, redirectDestinations, redirectFromProblems, redirectToProblems, removeRedirect, starterSite, upsertRedirect } from './chunk-QE7KS2JS.js';
2
+ export { exampleBrands, landingPage, onePageSite, redirectDestinations, redirectFromProblems, redirectToProblems, removeRedirect, starterSite, upsertRedirect } from './chunk-UUC5USJH.js';
3
3
  export { isPlainEmail, mailtoHref } from './chunk-VZUDRPFG.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-YAMQ2JKO.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, NOT_FOUND_PATH, 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, faqPageJsonLd, getSection, isNotFoundPage, isUnderPrefix, listSections, localBusinessJsonLd, matchPrefixRedirect, matchRedirect, newSectionId, nodeFromPreset, notFoundPageDoc, opensInNewTab, organizationJsonLd, pageMeta, pageTitle, parseSnapshot, postDescription, postPath, postSummary, redirectLoops, redirectsAfterMove, registerBuiltInSection, registerSection, richTextPlain, robotsTxt, rssXml, safeJsonForHtml, sectionJsonSchema, sectionManifests, sitemapXml, unregisterSection, validatePostSlug, websiteJsonLd } from './chunk-6CXTOPYI.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';
4
+ export { ASSET_TYPES, DEFAULT_LANDING_DIRECTORY, FONT_CHOICES, LANDING_SLUG, PublishBlockedError, SiteConflictError, applyCheckLevels, assetPath, brandDisplayName, checkAssetHosts, checkBlog, checkContrast, checkHtmlOutline, checkPage, checkPost, checkRelease, checkSiteDoc, contrastRatio, createMemorySiteStore, formCacheTag, hexToHslTriplet, isConflict, isLandingPage, isOwnUrl, isPageShown, isPublishable, isSiteBrand, landingDirectory, landingDirectoryProblems, landingMoves, landingPages, landingPath, landingSlugOf, landingSlugProblems, luminance, migrateNode, migratePage, migrateSite, mix, nextPageBoundary, pageWindow, pageWindowProblems, parseHex, prepareImportPost, prepareRelease, siteCacheTag, siteTheme, stableHash, themeCss, toCanonicalBrand, withCacheInvalidation } from './chunk-UOKNFG5O.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, NOT_FOUND_PATH, 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, faqPageJsonLd, getSection, isNotFoundPage, isUnderPrefix, listSections, localBusinessJsonLd, matchPrefixRedirect, matchRedirect, newSectionId, nodeFromPreset, notFoundPageDoc, opensInNewTab, organizationJsonLd, pageMeta, pageTitle, parseSnapshot, postDescription, postPath, postSummary, redirectLoops, redirectsAfterMove, registerBuiltInSection, registerSection, richTextPlain, robotsTxt, rssXml, safeJsonForHtml, sectionJsonSchema, sectionManifests, sitemapXml, unregisterSection, validatePostSlug, websiteJsonLd } from './chunk-QGU6FDH5.js';
6
+ export { DEFAULT_RESERVED_PATHS, MAX_PAGE_PATH_LENGTH, MAX_URL_LENGTH, PAGE_PATH, isExternalHref, isReservedPath, isSafeHref, isSafeImageSrc, normalizeRequestPath, pagePathProblems, validatePagePath } from './chunk-CXBBUKGB.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { j as Redirect, P as PageMeta } from './registry-BPn-tDlL.js';
2
- import { R as ReservedPaths } from './store-B_GMH42V.js';
1
+ import { j as Redirect, P as PageMeta } from './registry-Cw7NF_le.js';
2
+ import { R as ReservedPaths } from './store-BNYD5NAQ.js';
3
3
 
4
4
  /**
5
5
  * A place a redirect can go, offered in the editor's picker: `path` is a site
@@ -148,6 +148,8 @@ declare const PageDoc: z.ZodObject<{
148
148
  props: z.ZodObject<{
149
149
  title: z.ZodString;
150
150
  hideSiteChrome: z.ZodOptional<z.ZodBoolean>;
151
+ showFrom: z.ZodOptional<z.ZodISODateTime>;
152
+ showUntil: z.ZodOptional<z.ZodISODateTime>;
151
153
  }, z.core.$loose>;
152
154
  }, z.core.$strip>;
153
155
  content: z.ZodArray<z.ZodObject<{
@@ -532,6 +534,8 @@ declare const ReleasePage: z.ZodObject<{
532
534
  props: z.ZodObject<{
533
535
  title: z.ZodString;
534
536
  hideSiteChrome: z.ZodOptional<z.ZodBoolean>;
537
+ showFrom: z.ZodOptional<z.ZodISODateTime>;
538
+ showUntil: z.ZodOptional<z.ZodISODateTime>;
535
539
  }, z.core.$loose>;
536
540
  }, z.core.$strip>;
537
541
  content: z.ZodArray<z.ZodObject<{
@@ -748,6 +752,8 @@ declare const ReleaseSnapshot: z.ZodObject<{
748
752
  props: z.ZodObject<{
749
753
  title: z.ZodString;
750
754
  hideSiteChrome: z.ZodOptional<z.ZodBoolean>;
755
+ showFrom: z.ZodOptional<z.ZodISODateTime>;
756
+ showUntil: z.ZodOptional<z.ZodISODateTime>;
751
757
  }, z.core.$loose>;
752
758
  }, z.core.$strip>;
753
759
  content: z.ZodArray<z.ZodObject<{
@@ -792,6 +798,7 @@ declare const ReleaseSnapshot: z.ZodObject<{
792
798
  }, z.core.$strip>>;
793
799
  }, z.core.$strip>;
794
800
  }, z.core.$strip>>;
801
+ brand: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
795
802
  }, z.core.$strip>;
796
803
  type ReleaseSnapshot = z.infer<typeof ReleaseSnapshot>;
797
804
  /**
@@ -1117,6 +1124,15 @@ interface SectionPreset<P = Record<string, unknown>> {
1117
1124
  name: string;
1118
1125
  variant: string;
1119
1126
  props: P;
1127
+ /**
1128
+ * The props are made-up content its owner must replace: names, prices,
1129
+ * times, quotes, an address, or copy that says what to write ("Say what you
1130
+ * do, for whom"). A section added from it is marked `placeholder`, so the
1131
+ * publish check holds it until it is edited or hidden, and the editor shows
1132
+ * its text as hints. Leave it off for a preset that is ready to publish as
1133
+ * it is (a header, a footer, a post list).
1134
+ */
1135
+ sample?: boolean;
1120
1136
  }
1121
1137
  /** What a section's renderer is told about the page it is on. */
1122
1138
  interface RenderContext {
@@ -1279,7 +1295,7 @@ interface SectionManifest {
1279
1295
  declare function sectionManifests(): SectionManifest[];
1280
1296
  /** A new section id: short, alphanumeric, unique enough within a page. */
1281
1297
  declare function newSectionId(prefix?: string): string;
1282
- /** A section node from a preset: the editor's Add, and templates. */
1298
+ /** A section node from a preset: the editor's Add, and templates. A `sample` preset's node is a `placeholder`. */
1283
1299
  declare function nodeFromPreset(type: string, presetName?: string, id?: string): SectionNode;
1284
1300
 
1285
1301
  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, type PageMeta 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 _, PageKind 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, PageDoc 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 };
@@ -1,4 +1,4 @@
1
- import { _ as SectionDefinition, W as RichText, s as Link, c as RenderContext, f as SectionNode, a8 as Surface, I as Image, m as FileRef, A as AnySectionDefinition } from './registry-BPn-tDlL.js';
1
+ import { _ as SectionDefinition, W as RichText, s as Link, c as RenderContext, f as SectionNode, a8 as Surface, I as Image, m as FileRef, A as AnySectionDefinition } from './registry-Cw7NF_le.js';
2
2
  import { z } from 'zod';
3
3
  import * as React from 'react';
4
4
  import { BandProps } from '@marktiderman/genesis-ui/band';
package/dist/sections.js CHANGED
@@ -1,6 +1,6 @@
1
- export { Anchor, ButtonLink, CHIP_TONES, HeadingAccent, HiddenTitle, ICONS, IconName, ItemTitle, MAP_PROVIDERS, SectionBand, SectionIntro, SectionTitle, SiteFormHeader, SiteImage, TextLink, WEEKDAYS, answerToRichText, blogListSection, builtInSections, ctaSection, faqSection, featuresSection, fileDescription, fileHref, fileSection, footerSection, formEmbedSection, formatPostDate, formatTime, gallerySection, heroSection, linkAttrs, logosSection, mapEmbedUrl, mapPageUrl, mapSection, navSection, postBodySection, pricingSection, resolveHref, richTextSection, scheduleSection, siteFormSlots, statsSection, teamSection, testimonialsSection, timelineSection, titleId, withAccent } from './chunk-I767PDBR.js';
1
+ export { Anchor, ButtonLink, CHIP_TONES, HeadingAccent, HiddenTitle, ICONS, IconName, ItemTitle, MAP_PROVIDERS, SectionBand, SectionIntro, SectionTitle, SiteFormHeader, SiteImage, TextLink, WEEKDAYS, answerToRichText, blogListSection, builtInSections, ctaSection, faqSection, featuresSection, fileDescription, fileHref, fileSection, footerSection, formEmbedSection, formatPostDate, formatTime, gallerySection, heroSection, linkAttrs, logosSection, mapEmbedUrl, mapPageUrl, mapSection, navSection, postBodySection, pricingSection, resolveHref, richTextSection, scheduleSection, siteFormSlots, statsSection, teamSection, testimonialsSection, timelineSection, titleId, withAccent } from './chunk-SBONYMUC.js';
2
2
  import './chunk-VZUDRPFG.js';
3
- import './chunk-6CXTOPYI.js';
4
- import './chunk-MU2Z2C4F.js';
3
+ import './chunk-QGU6FDH5.js';
4
+ import './chunk-CXBBUKGB.js';
5
5
  //# sourceMappingURL=sections.js.map
6
6
  //# sourceMappingURL=sections.js.map
@@ -1,5 +1,5 @@
1
- import { A as AnySectionDefinition, U as ReleaseSnapshot, h as ReleasePage, g as SiteDoc, R as Release, P as PageMeta, b as PageDoc, a as PageKind, T as ReleaseMeta, i as PostSummary, L as LivePost, G as PostMeta, E as PostDraft, Y as SavePostInput, Z as SavePostResult, p as ImportPost, q as ImportPostsResult, a7 as SiteDocInput, z as PostDoc, K as PostStatus } from './registry-BPn-tDlL.js';
2
- import { b as SiteTheme, B as BrandInput } from './theme-Dw42GDI_.js';
1
+ import { A as AnySectionDefinition, U as ReleaseSnapshot, h as ReleasePage, g as SiteDoc, R as Release, P as PageMeta, b as PageDoc, a as PageKind, T as ReleaseMeta, i as PostSummary, L as LivePost, G as PostMeta, E as PostDraft, Y as SavePostInput, Z as SavePostResult, p as ImportPost, q as ImportPostsResult, a7 as SiteDocInput, z as PostDoc, K as PostStatus } from './registry-Cw7NF_le.js';
2
+ import { b as SiteTheme, B as BrandInput } from './theme-HJzN2tOm.js';
3
3
 
4
4
  /**
5
5
  * URL and path rules shared by the schemas, the renderer and the database.
@@ -15,7 +15,7 @@ import { b as SiteTheme, B as BrandInput } from './theme-Dw42GDI_.js';
15
15
  declare const MAX_URL_LENGTH = 2048;
16
16
  /** Is this a link a site may render: a site path, a fragment, or an http(s), mailto or tel URL? */
17
17
  declare function isSafeHref(value: unknown): value is string;
18
- /** Is this a URL an image may load from: a site path or an `https:` URL? */
18
+ /** Is this a URL an image may load from: a site path, an `https:` URL, or http on this computer (`isLocalDevUrl`)? */
19
19
  declare function isSafeImageSrc(value: unknown): value is string;
20
20
  /** Is this an external (absolute) link, opened with `rel="noopener noreferrer"`? */
21
21
  declare function isExternalHref(href: string): boolean;
@@ -58,6 +58,28 @@ interface SiteIssue {
58
58
  sectionId?: string;
59
59
  }
60
60
  declare const isPublishable: (issues: readonly SiteIssue[]) => boolean;
61
+ /** What a check the app chooses does: stop the publish, list a warning, or nothing. */
62
+ type CheckLevel = "block" | "warn" | "off";
63
+ /**
64
+ * The publish checks an app chooses for itself. Each one blocks, warns or is
65
+ * off; left out, it warns.
66
+ *
67
+ * @stability Beta
68
+ */
69
+ interface SiteCheckLevels {
70
+ /** A section still showing one of the starter sample pictures (`sample-image`). */
71
+ sampleImages?: CheckLevel;
72
+ /** A form section naming a form the host doesn't have, or none (`form-missing`). */
73
+ missingForms?: CheckLevel;
74
+ }
75
+ /**
76
+ * The issues as the app's check levels have them: a chosen check's issue is an
77
+ * error when it blocks, a warning when it warns (the default), and dropped
78
+ * when it's off. Every other issue is left as it is.
79
+ *
80
+ * @stability Beta
81
+ */
82
+ declare function applyCheckLevels(issues: readonly SiteIssue[], levels?: SiteCheckLevels): SiteIssue[];
61
83
  type Lookup = (type: string) => AnySectionDefinition | undefined;
62
84
  /**
63
85
  * Is this URL the site's own: a site path (`/photo.jpg`), or a URL on one of
@@ -88,6 +110,8 @@ interface CheckReleaseOptions {
88
110
  logo?: string;
89
111
  lookup?: Lookup;
90
112
  reserved?: ReservedPaths;
113
+ /** The sample-pictures check the app chooses: blocks, warns (the default) or is off. Missing forms are `checkSite`'s. */
114
+ checks?: Pick<SiteCheckLevels, "sampleImages">;
91
115
  }
92
116
  /**
93
117
  * Everything a publish checks, for a whole release.
@@ -176,6 +200,8 @@ interface PublishOptions {
176
200
  * where images load from. A store adds its own `assetOrigin`.
177
201
  */
178
202
  assetOrigins?: readonly string[];
203
+ /** The sample-pictures check the app chooses: blocks, warns (the default) or is off. Missing forms are `checkSite`'s. */
204
+ checks?: Pick<SiteCheckLevels, "sampleImages">;
179
205
  }
180
206
  interface NewPage {
181
207
  path: string;
@@ -363,4 +389,4 @@ interface MemoryStoreOptions {
363
389
  */
364
390
  declare function createMemorySiteStore(options?: MemoryStoreOptions): MemorySiteStore;
365
391
 
366
- export { type Asset as A, isConflict as B, type CheckReleaseOptions as C, DEFAULT_RESERVED_PATHS as D, isExternalHref as E, isOwnUrl as F, isPublishable as G, isReservedPath as H, type InvalidationInfo as I, isSafeHref as J, isSafeImageSrc as K, normalizeRequestPath as L, MAX_PAGE_PATH_LENGTH as M, type NewPage as N, pagePathProblems as O, type PublishOptions as P, prepareImportPost as Q, type ReservedPaths as R, type SiteStore as S, prepareRelease as T, siteCacheTag as U, validatePagePath as V, withCacheInvalidation as W, type AssetMeta as a, type SiteIssue as b, type SaveResult as c, ASSET_TYPES as d, type AssetHostOptions as e, MAX_URL_LENGTH as f, type MemorySiteStore as g, type MemoryStoreOptions as h, type NewSite as i, PAGE_PATH as j, type PageDraft as k, type PreparedRelease as l, PublishBlockedError as m, SiteConflictError as n, type SiteDraft as o, assetPath as p, checkAssetHosts as q, checkBlog as r, checkContrast as s, checkHtmlOutline as t, checkPage as u, checkPost as v, checkRelease as w, checkSiteDoc as x, createMemorySiteStore as y, formCacheTag as z };
392
+ export { type Asset as A, checkSiteDoc as B, type CheckLevel as C, DEFAULT_RESERVED_PATHS as D, createMemorySiteStore as E, formCacheTag as F, isConflict as G, isExternalHref as H, type InvalidationInfo as I, isOwnUrl as J, isPublishable as K, isReservedPath as L, MAX_PAGE_PATH_LENGTH as M, type NewPage as N, isSafeHref as O, type PublishOptions as P, isSafeImageSrc as Q, type ReservedPaths as R, type SiteStore as S, normalizeRequestPath as T, pagePathProblems as U, prepareImportPost as V, prepareRelease as W, siteCacheTag as X, validatePagePath as Y, withCacheInvalidation as Z, type AssetMeta as a, type SiteIssue as b, type SiteCheckLevels as c, type SaveResult as d, ASSET_TYPES as e, type AssetHostOptions as f, type CheckReleaseOptions as g, MAX_URL_LENGTH as h, type MemorySiteStore as i, type MemoryStoreOptions as j, type NewSite as k, PAGE_PATH as l, type PageDraft as m, type PreparedRelease as n, PublishBlockedError as o, SiteConflictError as p, type SiteDraft as q, applyCheckLevels as r, assetPath as s, checkAssetHosts as t, checkBlog as u, checkContrast as v, checkHtmlOutline as w, checkPage as x, checkPost as y, checkRelease as z };
@@ -1,11 +1,11 @@
1
1
  import { SupabaseClient } from '@supabase/supabase-js';
2
- import { S as SiteStore } from './store-B_GMH42V.js';
3
- export { d as ASSET_TYPES } from './store-B_GMH42V.js';
4
- import './registry-BPn-tDlL.js';
2
+ import { S as SiteStore } from './store-BNYD5NAQ.js';
3
+ export { e as ASSET_TYPES } from './store-BNYD5NAQ.js';
4
+ import './registry-Cw7NF_le.js';
5
5
  import '@marktiderman/genesis-media';
6
6
  import 'react';
7
7
  import 'zod';
8
- import './theme-Dw42GDI_.js';
8
+ import './theme-HJzN2tOm.js';
9
9
  import '@marktiderman/genesis-design-system';
10
10
 
11
11
  /**
package/dist/supabase.js CHANGED
@@ -1,7 +1,7 @@
1
- import { prepareImportPost, checkPost, isPublishable, PublishBlockedError, assetPath, ASSET_TYPES, prepareRelease } from './chunk-YAMQ2JKO.js';
2
- export { ASSET_TYPES } from './chunk-YAMQ2JKO.js';
3
- import { MAX_IMPORT_POSTS, validatePostSlug, PostDoc, PostSummarySchema, PageDoc, SiteDoc, parseSnapshot, ReleaseSnapshot } from './chunk-6CXTOPYI.js';
4
- import './chunk-MU2Z2C4F.js';
1
+ import { prepareImportPost, checkPost, isPublishable, PublishBlockedError, assetPath, ASSET_TYPES, prepareRelease } from './chunk-UOKNFG5O.js';
2
+ export { ASSET_TYPES } from './chunk-UOKNFG5O.js';
3
+ import { MAX_IMPORT_POSTS, validatePostSlug, PostDoc, PostSummarySchema, PageDoc, SiteDoc, parseSnapshot, ReleaseSnapshot } from './chunk-QGU6FDH5.js';
4
+ import './chunk-CXBBUKGB.js';
5
5
 
6
6
  // src/supabase/index.ts
7
7
  var SITES_SCHEMA = "genesis_sites";
@@ -1,5 +1,5 @@
1
- import { s as Link, a7 as SiteDocInput, a as PageKind, b as PageDoc } from './registry-BPn-tDlL.js';
2
- import { S as SiteBrand, B as BrandInput } from './theme-Dw42GDI_.js';
1
+ import { s as Link, a7 as SiteDocInput, a as PageKind, b as PageDoc } from './registry-Cw7NF_le.js';
2
+ import { S as SiteBrand, B as BrandInput } from './theme-HJzN2tOm.js';
3
3
 
4
4
  /**
5
5
  * Templates: whole sites from a little input.
@@ -1,6 +1,6 @@
1
- import { l as BuiltInSectionType, a3 as SectionPreset } from './registry-BPn-tDlL.js';
2
- import { S as SiteBrand } from './theme-Dw42GDI_.js';
3
- import { a as TemplateMessage } from './templates-CFSSG1iU.js';
1
+ import { l as BuiltInSectionType, a3 as SectionPreset } from './registry-Cw7NF_le.js';
2
+ import { S as SiteBrand } from './theme-HJzN2tOm.js';
3
+ import { a as TemplateMessage } from './templates-DPv0OYLl.js';
4
4
  import { DesignSystem } from '@marktiderman/genesis-design-system';
5
5
  import '@marktiderman/genesis-media';
6
6
  import 'react';
package/dist/templates.js CHANGED
@@ -62,6 +62,7 @@ var message = {
62
62
  var team = [
63
63
  {
64
64
  name: "Coach cards",
65
+ sample: true,
65
66
  variant: "cards",
66
67
  props: {
67
68
  heading: "Meet the coaches",
@@ -75,6 +76,7 @@ var team = [
75
76
  var schedule = [
76
77
  {
77
78
  name: "Class timetable",
79
+ sample: true,
78
80
  variant: "grid",
79
81
  props: {
80
82
  heading: "Class times",
@@ -96,6 +98,7 @@ var schedule = [
96
98
  var features = [
97
99
  {
98
100
  name: "First visit steps",
101
+ sample: true,
99
102
  variant: "steps",
100
103
  props: {
101
104
  heading: "How to start",
@@ -108,14 +111,15 @@ var features = [
108
111
  }
109
112
  ];
110
113
  var stats = [
111
- { name: "Gym in numbers", variant: "row", props: { items: [{ value: "12", label: "years open" }, { value: "40+", label: "classes a week" }, { value: "6", label: "coaches" }] } }
114
+ { name: "Gym in numbers", sample: true, variant: "row", props: { items: [{ value: "12", label: "years open" }, { value: "40+", label: "classes a week" }, { value: "6", label: "coaches" }] } }
112
115
  ];
113
116
  var logos = [
114
- { name: "Gym trust bar", variant: "trust-bar", props: { claim: "Why people train here", items: [{ name: "Small classes" }, { name: "Friendly coaches" }, { name: "Free first visit" }], surface: "inverse" } }
117
+ { name: "Gym trust bar", sample: true, variant: "trust-bar", props: { claim: "Why people train here", items: [{ name: "Small classes" }, { name: "Friendly coaches" }, { name: "Free first visit" }], surface: "inverse" } }
115
118
  ];
116
119
  var pricing = [
117
120
  {
118
121
  name: "Memberships",
122
+ sample: true,
119
123
  variant: "cards",
120
124
  props: {
121
125
  heading: "Memberships",
@@ -127,7 +131,7 @@ var pricing = [
127
131
  }
128
132
  ];
129
133
  var file = [
130
- { name: "Forms to bring", variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Waiver", description: "Sign it before your first class.", file: { src: "/files/waiver.pdf", mime: "application/pdf" } }] } }
134
+ { name: "Forms to bring", sample: true, variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Waiver", description: "Sign it before your first class.", file: { src: "/files/waiver.pdf", mime: "application/pdf" } }] } }
131
135
  ];
132
136
  var fitness = Object.freeze({
133
137
  id: "fitness",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/templates/design-systems.ts","../src/templates/fitness.ts","../src/templates/index.ts"],"names":[],"mappings":";;;AAkBO,IAAM,oBAAkC,kBAAA,CAAmB;AAAA,EAChE,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,CAAA;AAAA,EACT,KAAA,EAAO,OAAA;AAAA,EACP,WAAA,EAAa,mGAAA;AAAA,EACb,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,EAAE,GAAG,YAAA,EAAc,OAAA,EAAS,EAAE,GAAA,EAAK,CAAA,EAAG,GAAA,EAAK,CAAA,EAAE,EAAG,EAAA,EAAI,EAAE,GAAA,EAAK,GAAA,EAAK,GAAA,EAAK,CAAA,EAAE,EAAG,EAAA,EAAI,EAAE,GAAA,EAAK,CAAA,EAAG,GAAA,EAAK,GAAA,EAAI,EAAE;AAAA,IACzG,OAAA,EAAS;AAAA,MACP,SAAA,EAAW,EAAE,aAAA,EAAe,GAAA,EAAK,aAAA,EAAe,GAAA,EAAK,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AAA,EAAa,KAAA,EAAO,MAAA,EAAQ,MAAA,EAAQ,aAAa,WAAA,EAAa,0BAAA,EAA4B,WAAA,EAAa,IAAA,EAAM,GAAA,EAAK,EAAE,KAAA,EAAO,MAAA,EAAQ,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA;AAAE;AACtN;AACF;AAEJ,CAAA;AAEA,IAAM,IAAA,GAAwB;AAAA,EAC5B,EAAE,IAAA,EAAM,gBAAA,EAAkB,OAAA,EAAS,OAAA,EAAS,OAAO,EAAE,OAAA,EAAS,gBAAA,EAAkB,KAAA,EAAO,CAAC,EAAE,OAAO,QAAA,EAAU,WAAA,EAAa,kCAAA,EAAoC,IAAA,EAAM,EAAE,GAAA,EAAK,mBAAA,EAAqB,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,EAAE;AAC7N,CAAA;AAGO,IAAM,OAAA,GAA4B,OAAO,MAAA,CAAO;AAAA,EACrD,EAAA,EAAI,SAAA;AAAA,EACJ,KAAA,EAAO,SAAA;AAAA,EACP,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA,EAAe,CAAC,iBAAA,EAAmB,kBAAkB,CAAA;AAAA,EACrD,OAAA,EAAS,EAAE,IAAA,EAAM,QAAA,EAAU,UAAU,KAAA,EAAO,KAAA,EAAO,SAAS,IAAA;AAC9D,CAAC;;;AC1FM,IAAM,iBAAA,GAAgE,OAAO,MAAA,CAAO,EAAE,CAAC,OAAA,CAAQ,EAAE,GAAG,OAAA,EAAS","file":"templates.js","sourcesContent":["/**\n * Industry design systems: template content, defined like the neutral ones\n * in genesis-design-system (`defineDesignSystem`). A host registers the ones\n * it offers (`registerDesignSystem(...industryDesignSystems)`), and a brand\n * names one by id (`{ designSystem: { id: \"forge@1\" } }`).\n *\n * Each is a set of tokens only: no section renders differently because of\n * it, so swapping one for another (or for a neutral one) re-themes a site\n * without touching its pages.\n */\nimport { DEFAULT_RAMP, defineDesignSystem, type DesignSystem } from \"@marktiderman/genesis-design-system\";\n\n/**\n * Forge: bold and athletic. Poster-sized headings (up to 112px, capitals in\n * a condensed face), square corners and 2px edges, a cool ground, crisp\n * photos with a little grain, and lively motion. For a strength gym or a\n * training box.\n */\nexport const forgeDesignSystem: DesignSystem = defineDesignSystem({\n name: \"forge\",\n version: 1,\n label: \"Forge\",\n description: \"Bold and athletic: poster headings, square corners, heavy edges, a cool ground and lively motion.\",\n type: {\n ramp: { ...DEFAULT_RAMP, display: { min: 3, max: 7 }, h1: { min: 2.5, max: 5 }, h2: { min: 2, max: 3.5 } },\n classes: {\n condensed: { displayWeight: 400, headingWeight: 400, displayTracking: 0.01, headingTracking: 0.01, case: \"upper\", displayLeading: 0.88 },\n grotesk: { displayWeight: 700, headingWeight: 700, displayTracking: -0.01, headingTracking: -0.005, case: \"upper\", displayLeading: 0.92 },\n geometric: { displayWeight: 700, headingWeight: 700, displayTracking: -0.01, case: \"upper\", displayLeading: 0.95 },\n },\n eyebrow: { weight: 600, tracking: 0.14, case: \"upper\" },\n },\n space: { density: \"normal\" },\n shape: { corners: \"square\", borderWidth: 2, shadow: \"flat\" },\n surfaces: { ground: \"chalk\" },\n image: { filter: \"crisp\", grain: 3, scrim: \"full\" },\n motion: { level: \"lively\" },\n});\n\n/**\n * Studio: calm. A warm ground, generous space, rounded corners, soft\n * shadows, light headings that never shout (no display step bigger than an\n * h1), warm photos and calm motion. For a yoga or Pilates studio.\n */\nexport const studioDesignSystem: DesignSystem = defineDesignSystem({\n name: \"studio\",\n version: 1,\n label: \"Studio\",\n description: \"Calm: a warm ground, generous space, rounded corners, soft shadows, light headings and calm motion.\",\n type: {\n ramp: { ...DEFAULT_RAMP, display: { min: 2.5, max: 4.75 }, h1: { min: 2.25, max: 4 } },\n leading: { display: 1.05, h1: 1.05 },\n classes: {\n serif: { displayWeight: 400, headingWeight: 400, displayTracking: -0.015, headingTracking: -0.01, displayLeading: 1.05 },\n grotesk: { displayWeight: 400, headingWeight: 500, displayTracking: -0.025, headingTracking: -0.015, displayLeading: 1.05 },\n geometric: { displayWeight: 400, headingWeight: 500, displayTracking: -0.02, displayLeading: 1.05 },\n condensed: { displayWeight: 400, headingWeight: 400, case: \"as-written\", displayLeading: 1 },\n },\n eyebrow: { weight: 500, tracking: 0.18, case: \"upper\" },\n },\n space: { density: \"generous\" },\n shape: { corners: \"round\", borderWidth: 1, shadow: \"soft\" },\n surfaces: { ground: \"paper\" },\n image: { filter: \"warm\", grain: 0, scrim: \"full\" },\n motion: { level: \"calm\" },\n});\n\n/** Every industry design system in this library. */\nexport const industryDesignSystems: readonly DesignSystem[] = Object.freeze([forgeDesignSystem, studioDesignSystem]);\n","/**\n * Fitness: section presets and sample data for a functional fitness gym.\n *\n * Template content only, on the neutral sections: nothing here changes how a\n * section renders. The business is made up.\n */\nimport type { SectionPreset } from \"../core/registry\";\nimport type { SiteBrand } from \"../core/theme\";\nimport type { TemplateMessage } from \"../core/templates\";\nimport type { IndustryTemplate } from \"./types\";\nimport { forgeDesignSystem, studioDesignSystem } from \"./design-systems\";\n\nconst brand: SiteBrand = {\n name: \"Riverside Gym\",\n colors: { primary: \"#0f766e\", primaryDark: \"#2dd4bf\" },\n fonts: { heading: \"space-grotesk\", body: \"inter\" },\n};\n\nconst message: TemplateMessage = {\n headline: \"Train with people who know your name\",\n subhead: \"Small classes and real coaching by the river.\",\n benefits: [\n { title: \"Coached classes\", body: \"A coach in every class.\" },\n { title: \"Open gym\", body: \"Six days a week.\" },\n ],\n};\n\nconst team: SectionPreset[] = [\n {\n name: \"Coach cards\",\n variant: \"cards\",\n props: {\n heading: \"Meet the coaches\",\n members: [\n { name: \"Coach name\", role: \"Head coach\", credentials: \"Level 2 coach, nutrition coach\", summary: \"A line about what they love to coach.\", bio: \"Their story, in a few short paragraphs.\\n\\nWhat they love about coaching.\" },\n { name: \"Coach name\", role: \"Coach\", summary: \"A line about what they love to coach.\" },\n ],\n },\n },\n];\n\nconst schedule: SectionPreset[] = [\n {\n name: \"Class timetable\",\n variant: \"grid\",\n props: {\n heading: \"Class times\",\n labels: { items: \"classes\", types: \"Class types\" },\n types: [\n { id: \"strength\", name: \"Strength\", description: \"Barbell work in a coached group.\", tone: \"primary\" },\n { id: \"conditioning\", name: \"Conditioning\", description: \"Intervals for every level.\", tone: \"soft\" },\n { id: \"open\", name: \"Open gym\", description: \"Train on your own; a coach is on the floor.\", tone: \"plain\" },\n ],\n sessions: [\n { day: \"mon\", start: \"06:00\", end: \"07:00\", title: \"Strength\", type: \"strength\", host: \"Coach name\" },\n { day: \"mon\", start: \"18:00\", end: \"19:00\", title: \"Conditioning\", type: \"conditioning\", host: \"Coach name\" },\n { day: \"wed\", start: \"06:00\", end: \"07:00\", title: \"Strength\", type: \"strength\", host: \"Coach name\" },\n { day: \"sat\", start: \"09:00\", title: \"Open gym\", type: \"open\" },\n ],\n },\n },\n];\n\nconst features: SectionPreset[] = [\n {\n name: \"First visit steps\",\n variant: \"steps\",\n props: {\n heading: \"How to start\",\n items: [\n { title: \"Come to a free class\", body: \"Meet the coaches and try a session.\", cta: { label: \"Book a free class\", href: \"#contact\" } },\n { title: \"Learn the basics\", body: \"A few sessions on the movements, with a coach.\" },\n { title: \"Pick a plan\", body: \"Choose what fits your week.\", cta: { label: \"See the plans\", href: \"/plans\" } },\n ],\n },\n },\n];\n\nconst stats: SectionPreset[] = [\n { name: \"Gym in numbers\", variant: \"row\", props: { items: [{ value: \"12\", label: \"years open\" }, { value: \"40+\", label: \"classes a week\" }, { value: \"6\", label: \"coaches\" }] } },\n];\n\nconst logos: SectionPreset[] = [\n { name: \"Gym trust bar\", variant: \"trust-bar\", props: { claim: \"Why people train here\", items: [{ name: \"Small classes\" }, { name: \"Friendly coaches\" }, { name: \"Free first visit\" }], surface: \"inverse\" } },\n];\n\nconst pricing: SectionPreset[] = [\n {\n name: \"Memberships\",\n variant: \"cards\",\n props: {\n heading: \"Memberships\",\n groups: [\n { heading: \"Start here\", anchor: \"start\", tiers: [{ name: \"Drop-in\", price: \"$20\", description: \"One class\", cta: { label: \"Book a visit\", href: \"#contact\" } }] },\n { heading: \"Every week\", anchor: \"weekly\", tiers: [{ name: \"Unlimited\", price: \"$139\", period: \"per month\", description: \"Every class and open gym\", highlighted: true, cta: { label: \"Join\", href: \"#contact\" } }] },\n ],\n },\n },\n];\n\nconst file: SectionPreset[] = [\n { name: \"Forms to bring\", variant: \"cards\", props: { heading: \"Forms to bring\", files: [{ label: \"Waiver\", description: \"Sign it before your first class.\", file: { src: \"/files/waiver.pdf\", mime: \"application/pdf\" } }] } },\n];\n\n/** A functional fitness gym's presets and sample data. */\nexport const fitness: IndustryTemplate = Object.freeze({\n id: \"fitness\",\n label: \"Fitness\",\n brand,\n message,\n designSystems: [forgeDesignSystem, studioDesignSystem],\n presets: { team, schedule, features, stats, logos, pricing, file },\n});\n","/**\n * @marktiderman/genesis-sites/templates: industry template content.\n *\n * The core (schemas, sections, the editor, defaults) never names an industry.\n * Industry flavour lives here, as data on the neutral sections: presets per\n * section and sample data. Nothing here is a code path; a section renders the\n * same whichever template its props came from. The businesses are made up.\n *\n * Industry design systems (`forgeDesignSystem`, `studioDesignSystem`) are here\n * too: tokens only. Register the ones you offer with genesis-design-system's\n * `registerDesignSystem(...industryDesignSystems)`.\n *\n * @packageDocumentation\n */\nexport type { IndustryTemplate } from \"./types\";\nexport { fitness } from \"./fitness\";\nexport { forgeDesignSystem, industryDesignSystems, studioDesignSystem } from \"./design-systems\";\n\nimport { fitness } from \"./fitness\";\nimport type { IndustryTemplate } from \"./types\";\n\n/** Every template in this package, by id. */\nexport const industryTemplates: Readonly<Record<string, IndustryTemplate>> = Object.freeze({ [fitness.id]: fitness });\n"]}
1
+ {"version":3,"sources":["../src/templates/design-systems.ts","../src/templates/fitness.ts","../src/templates/index.ts"],"names":[],"mappings":";;;AAkBO,IAAM,oBAAkC,kBAAA,CAAmB;AAAA,EAChE,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,CAAA;AAAA,EACT,KAAA,EAAO,OAAA;AAAA,EACP,WAAA,EAAa,mGAA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;AAAA,EACA,OAAA;AAAA,EACA,aAAA,EAAe,CAAC,iBAAA,EAAmB,kBAAkB,CAAA;AAAA,EACrD,OAAA,EAAS,EAAE,IAAA,EAAM,QAAA,EAAU,UAAU,KAAA,EAAO,KAAA,EAAO,SAAS,IAAA;AAC9D,CAAC;;;AC9FM,IAAM,iBAAA,GAAgE,OAAO,MAAA,CAAO,EAAE,CAAC,OAAA,CAAQ,EAAE,GAAG,OAAA,EAAS","file":"templates.js","sourcesContent":["/**\n * Industry design systems: template content, defined like the neutral ones\n * in genesis-design-system (`defineDesignSystem`). A host registers the ones\n * it offers (`registerDesignSystem(...industryDesignSystems)`), and a brand\n * names one by id (`{ designSystem: { id: \"forge@1\" } }`).\n *\n * Each is a set of tokens only: no section renders differently because of\n * it, so swapping one for another (or for a neutral one) re-themes a site\n * without touching its pages.\n */\nimport { DEFAULT_RAMP, defineDesignSystem, type DesignSystem } from \"@marktiderman/genesis-design-system\";\n\n/**\n * Forge: bold and athletic. Poster-sized headings (up to 112px, capitals in\n * a condensed face), square corners and 2px edges, a cool ground, crisp\n * photos with a little grain, and lively motion. For a strength gym or a\n * training box.\n */\nexport const forgeDesignSystem: DesignSystem = defineDesignSystem({\n name: \"forge\",\n version: 1,\n label: \"Forge\",\n description: \"Bold and athletic: poster headings, square corners, heavy edges, a cool ground and lively motion.\",\n type: {\n ramp: { ...DEFAULT_RAMP, display: { min: 3, max: 7 }, h1: { min: 2.5, max: 5 }, h2: { min: 2, max: 3.5 } },\n classes: {\n condensed: { displayWeight: 400, headingWeight: 400, displayTracking: 0.01, headingTracking: 0.01, case: \"upper\", displayLeading: 0.88 },\n grotesk: { displayWeight: 700, headingWeight: 700, displayTracking: -0.01, headingTracking: -0.005, case: \"upper\", displayLeading: 0.92 },\n geometric: { displayWeight: 700, headingWeight: 700, displayTracking: -0.01, case: \"upper\", displayLeading: 0.95 },\n },\n eyebrow: { weight: 600, tracking: 0.14, case: \"upper\" },\n },\n space: { density: \"normal\" },\n shape: { corners: \"square\", borderWidth: 2, shadow: \"flat\" },\n surfaces: { ground: \"chalk\" },\n image: { filter: \"crisp\", grain: 3, scrim: \"full\" },\n motion: { level: \"lively\" },\n});\n\n/**\n * Studio: calm. A warm ground, generous space, rounded corners, soft\n * shadows, light headings that never shout (no display step bigger than an\n * h1), warm photos and calm motion. For a yoga or Pilates studio.\n */\nexport const studioDesignSystem: DesignSystem = defineDesignSystem({\n name: \"studio\",\n version: 1,\n label: \"Studio\",\n description: \"Calm: a warm ground, generous space, rounded corners, soft shadows, light headings and calm motion.\",\n type: {\n ramp: { ...DEFAULT_RAMP, display: { min: 2.5, max: 4.75 }, h1: { min: 2.25, max: 4 } },\n leading: { display: 1.05, h1: 1.05 },\n classes: {\n serif: { displayWeight: 400, headingWeight: 400, displayTracking: -0.015, headingTracking: -0.01, displayLeading: 1.05 },\n grotesk: { displayWeight: 400, headingWeight: 500, displayTracking: -0.025, headingTracking: -0.015, displayLeading: 1.05 },\n geometric: { displayWeight: 400, headingWeight: 500, displayTracking: -0.02, displayLeading: 1.05 },\n condensed: { displayWeight: 400, headingWeight: 400, case: \"as-written\", displayLeading: 1 },\n },\n eyebrow: { weight: 500, tracking: 0.18, case: \"upper\" },\n },\n space: { density: \"generous\" },\n shape: { corners: \"round\", borderWidth: 1, shadow: \"soft\" },\n surfaces: { ground: \"paper\" },\n image: { filter: \"warm\", grain: 0, scrim: \"full\" },\n motion: { level: \"calm\" },\n});\n\n/** Every industry design system in this library. */\nexport const industryDesignSystems: readonly DesignSystem[] = Object.freeze([forgeDesignSystem, studioDesignSystem]);\n","/**\n * Fitness: section presets and sample data for a functional fitness gym.\n *\n * Template content only, on the neutral sections: nothing here changes how a\n * section renders. The business is made up.\n */\nimport type { SectionPreset } from \"../core/registry\";\nimport type { SiteBrand } from \"../core/theme\";\nimport type { TemplateMessage } from \"../core/templates\";\nimport type { IndustryTemplate } from \"./types\";\nimport { forgeDesignSystem, studioDesignSystem } from \"./design-systems\";\n\nconst brand: SiteBrand = {\n name: \"Riverside Gym\",\n colors: { primary: \"#0f766e\", primaryDark: \"#2dd4bf\" },\n fonts: { heading: \"space-grotesk\", body: \"inter\" },\n};\n\nconst message: TemplateMessage = {\n headline: \"Train with people who know your name\",\n subhead: \"Small classes and real coaching by the river.\",\n benefits: [\n { title: \"Coached classes\", body: \"A coach in every class.\" },\n { title: \"Open gym\", body: \"Six days a week.\" },\n ],\n};\n\nconst team: SectionPreset[] = [\n {\n name: \"Coach cards\",\n sample: true,\n variant: \"cards\",\n props: {\n heading: \"Meet the coaches\",\n members: [\n { name: \"Coach name\", role: \"Head coach\", credentials: \"Level 2 coach, nutrition coach\", summary: \"A line about what they love to coach.\", bio: \"Their story, in a few short paragraphs.\\n\\nWhat they love about coaching.\" },\n { name: \"Coach name\", role: \"Coach\", summary: \"A line about what they love to coach.\" },\n ],\n },\n },\n];\n\nconst schedule: SectionPreset[] = [\n {\n name: \"Class timetable\",\n sample: true,\n variant: \"grid\",\n props: {\n heading: \"Class times\",\n labels: { items: \"classes\", types: \"Class types\" },\n types: [\n { id: \"strength\", name: \"Strength\", description: \"Barbell work in a coached group.\", tone: \"primary\" },\n { id: \"conditioning\", name: \"Conditioning\", description: \"Intervals for every level.\", tone: \"soft\" },\n { id: \"open\", name: \"Open gym\", description: \"Train on your own; a coach is on the floor.\", tone: \"plain\" },\n ],\n sessions: [\n { day: \"mon\", start: \"06:00\", end: \"07:00\", title: \"Strength\", type: \"strength\", host: \"Coach name\" },\n { day: \"mon\", start: \"18:00\", end: \"19:00\", title: \"Conditioning\", type: \"conditioning\", host: \"Coach name\" },\n { day: \"wed\", start: \"06:00\", end: \"07:00\", title: \"Strength\", type: \"strength\", host: \"Coach name\" },\n { day: \"sat\", start: \"09:00\", title: \"Open gym\", type: \"open\" },\n ],\n },\n },\n];\n\nconst features: SectionPreset[] = [\n {\n name: \"First visit steps\",\n sample: true,\n variant: \"steps\",\n props: {\n heading: \"How to start\",\n items: [\n { title: \"Come to a free class\", body: \"Meet the coaches and try a session.\", cta: { label: \"Book a free class\", href: \"#contact\" } },\n { title: \"Learn the basics\", body: \"A few sessions on the movements, with a coach.\" },\n { title: \"Pick a plan\", body: \"Choose what fits your week.\", cta: { label: \"See the plans\", href: \"/plans\" } },\n ],\n },\n },\n];\n\nconst stats: SectionPreset[] = [\n { name: \"Gym in numbers\", sample: true, variant: \"row\", props: { items: [{ value: \"12\", label: \"years open\" }, { value: \"40+\", label: \"classes a week\" }, { value: \"6\", label: \"coaches\" }] } },\n];\n\nconst logos: SectionPreset[] = [\n { name: \"Gym trust bar\", sample: true, variant: \"trust-bar\", props: { claim: \"Why people train here\", items: [{ name: \"Small classes\" }, { name: \"Friendly coaches\" }, { name: \"Free first visit\" }], surface: \"inverse\" } },\n];\n\nconst pricing: SectionPreset[] = [\n {\n name: \"Memberships\",\n sample: true,\n variant: \"cards\",\n props: {\n heading: \"Memberships\",\n groups: [\n { heading: \"Start here\", anchor: \"start\", tiers: [{ name: \"Drop-in\", price: \"$20\", description: \"One class\", cta: { label: \"Book a visit\", href: \"#contact\" } }] },\n { heading: \"Every week\", anchor: \"weekly\", tiers: [{ name: \"Unlimited\", price: \"$139\", period: \"per month\", description: \"Every class and open gym\", highlighted: true, cta: { label: \"Join\", href: \"#contact\" } }] },\n ],\n },\n },\n];\n\nconst file: SectionPreset[] = [\n { name: \"Forms to bring\", sample: true, variant: \"cards\", props: { heading: \"Forms to bring\", files: [{ label: \"Waiver\", description: \"Sign it before your first class.\", file: { src: \"/files/waiver.pdf\", mime: \"application/pdf\" } }] } },\n];\n\n/** A functional fitness gym's presets and sample data. */\nexport const fitness: IndustryTemplate = Object.freeze({\n id: \"fitness\",\n label: \"Fitness\",\n brand,\n message,\n designSystems: [forgeDesignSystem, studioDesignSystem],\n presets: { team, schedule, features, stats, logos, pricing, file },\n});\n","/**\n * @marktiderman/genesis-sites/templates: industry template content.\n *\n * The core (schemas, sections, the editor, defaults) never names an industry.\n * Industry flavour lives here, as data on the neutral sections: presets per\n * section and sample data. Nothing here is a code path; a section renders the\n * same whichever template its props came from. The businesses are made up.\n *\n * Industry design systems (`forgeDesignSystem`, `studioDesignSystem`) are here\n * too: tokens only. Register the ones you offer with genesis-design-system's\n * `registerDesignSystem(...industryDesignSystems)`.\n *\n * @packageDocumentation\n */\nexport type { IndustryTemplate } from \"./types\";\nexport { fitness } from \"./fitness\";\nexport { forgeDesignSystem, industryDesignSystems, studioDesignSystem } from \"./design-systems\";\n\nimport { fitness } from \"./fitness\";\nimport type { IndustryTemplate } from \"./types\";\n\n/** Every template in this package, by id. */\nexport const industryTemplates: Readonly<Record<string, IndustryTemplate>> = Object.freeze({ [fitness.id]: fitness });\n"]}
@@ -1,5 +1,5 @@
1
1
  import { DesignSystemChoice, CanonicalBrand, FontInfo, DesignSystem } from '@marktiderman/genesis-design-system';
2
- import { n as FontChoice, k as BodyFontChoice, g as SiteDoc } from './registry-BPn-tDlL.js';
2
+ import { n as FontChoice, k as BodyFontChoice, g as SiteDoc } from './registry-Cw7NF_le.js';
3
3
 
4
4
  /**
5
5
  * A site's theme, from its brand: one `<style>` of CSS variables per site.
@@ -65,7 +65,7 @@ type BrandInput = SiteBrand | (CanonicalBrand & {
65
65
  };
66
66
  displayName?: string;
67
67
  });
68
- /** The host's brand, read at render time. */
68
+ /** The host's brand: the editor and preview use it as it is now; a publish stores it in the release. */
69
69
  interface BrandSource {
70
70
  getBrand(siteId: string): Promise<BrandInput | null> | BrandInput | null;
71
71
  }
package/dist/web.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { ImageUrlBuilder } from '@marktiderman/genesis-media';
2
- import { F as FormsResolver, U as ReleaseSnapshot, h as ReleasePage, d as ResolvedForm, O as PostsContext } from './registry-BPn-tDlL.js';
3
- import { S as SiteStore, R as ReservedPaths } from './store-B_GMH42V.js';
4
- import { a as BrandSource, b as SiteTheme } from './theme-Dw42GDI_.js';
2
+ import { F as FormsResolver, U as ReleaseSnapshot, h as ReleasePage, d as ResolvedForm, O as PostsContext } from './registry-Cw7NF_le.js';
3
+ import { S as SiteStore, R as ReservedPaths } from './store-BNYD5NAQ.js';
4
+ import { a as BrandSource, b as SiteTheme } from './theme-HJzN2tOm.js';
5
+ import { SiteBeacon } from './analytics.js';
5
6
  import * as React from 'react';
6
7
  import 'zod';
7
8
  import '@marktiderman/genesis-design-system';
@@ -45,10 +46,13 @@ interface SiteRequestOptions {
45
46
  */
46
47
  mode?: "live" | "preview";
47
48
  /**
48
- * Preview only: the signed-in viewer's user id, as the host's session
49
- * resolved it. Drafts are never read for an anonymous request (anon has no
50
- * grant on them), so a preview without a viewer is null: the host decides
51
- * what to show (its sign-in page, say). Live ignores it.
49
+ * Preview only: who is viewing, as the host vouches for it: the signed-in
50
+ * user's id from its session, or any non-empty label (the editor's preview
51
+ * passes "editor", its store being the signed-in one). Only its presence is
52
+ * checked; the store's sign-in decides which drafts are read. Drafts are
53
+ * never read for an anonymous request (anon has no grant on them), so a
54
+ * preview without a viewer is null: the host decides what to show (its
55
+ * sign-in page, say). Live ignores it.
52
56
  */
53
57
  viewer?: string | null;
54
58
  /**
@@ -97,6 +101,33 @@ interface SiteRequestOptions {
97
101
  * the URLs it builds must be on an asset origin, or the policy blocks them.
98
102
  */
99
103
  imageUrl?: ImageUrlBuilder;
104
+ /**
105
+ * First-party analytics: live pages send a small beacon (a page view, a
106
+ * click on a link with `data-gs-event`, an outbound link, a download) to
107
+ * `/_gs/e` on the site's own address, and `collect` gets each one with the
108
+ * request (for the visitor's IP address, browser and Global Privacy Control
109
+ * header). The host forwards it with `forwardEvent` from
110
+ * `@marktiderman/genesis-sites/analytics`. Without it, pages send nothing.
111
+ */
112
+ analytics?: SiteAnalytics;
113
+ /** The clock for pages' show dates (`showFrom`, `showUntil`); tests set it. Default: now. */
114
+ now?: () => Date;
115
+ }
116
+ /** Where a site's beacons go (`SiteRequestOptions.analytics`). */
117
+ interface SiteAnalytics {
118
+ /**
119
+ * Takes one beacon from one of the site's own pages (a beacon whose `Origin`
120
+ * or `Sec-Fetch-Site` says another site sent it never arrives here). The
121
+ * request waits for it, so forward the event after the response: hand the
122
+ * work to the platform's `waitUntil`, or a queue, and return. `basePath` is
123
+ * already at the start of the beacon's path.
124
+ */
125
+ collect(beacon: SiteBeacon, info: {
126
+ request: Request;
127
+ siteId: string;
128
+ origin: string;
129
+ basePath: string;
130
+ }): void | Promise<void>;
100
131
  }
101
132
  /**
102
133
  * Serve a site request, or return null when the request isn't the site's.
@@ -118,7 +149,7 @@ declare function renderSitePageToString(request: Request, options: SiteRequestOp
118
149
  /**
119
150
  * SiteRenderer: one page of a release as a whole HTML document. Server-only
120
151
  * output: it is rendered to a string or stream and never hydrated. The only
121
- * script is the islands loader, and only on a page with a phone menu or a
152
+ * script is the islands loader, on a page with analytics (`beacon`), or with a phone menu or a
122
153
  * form.
123
154
  */
124
155
 
@@ -160,6 +191,11 @@ interface SiteRendererProps {
160
191
  forms?: ReadonlyMap<string, ResolvedForm | null>;
161
192
  /** Asset URLs. */
162
193
  assets: SiteAssets;
194
+ /**
195
+ * Where the page sends its analytics beacon (`/_gs/e` under the base
196
+ * path), or none. Every page then loads the islands loader.
197
+ */
198
+ beacon?: string;
163
199
  /**
164
200
  * The blog, when the site has a post page: its path, the posts, the post
165
201
  * this page shows (`page` is then that post on the post page) and the
@@ -190,16 +226,16 @@ declare function collectFormSlugs(_snapshot: ReleaseSnapshot, page: ReleasePage
190
226
  *
191
227
  * @stability Beta
192
228
  */
193
- declare function SiteRenderer({ snapshot, page, notFound, theme, origin, basePath, mode, logo, forms, assets, posts, imageUrl }: SiteRendererProps): React.JSX.Element;
229
+ declare function SiteRenderer({ snapshot, page, notFound, theme, origin, basePath, mode, logo, forms, assets, posts, imageUrl, beacon: beaconPath }: SiteRendererProps): React.JSX.Element;
194
230
 
195
231
  declare const ASSET_SIZES: {
196
- readonly css: 49084;
197
- readonly formsCss: 94982;
198
- readonly islands: 3010;
232
+ readonly css: 49969;
233
+ readonly formsCss: 95639;
234
+ readonly islands: 3924;
199
235
  readonly formIsland: 553656;
200
236
  readonly fonts: 861576;
201
237
  };
202
238
  /** Each self-hosted font file's name under the assets prefix, by its key (`inter-700`). */
203
239
  declare const FONT_FILES: Readonly<Record<string, string>>;
204
240
 
205
- export { ASSETS_PREFIX, ASSET_SIZES, FONT_FILES, type SiteAssets, SiteRenderer, type SiteRendererProps, type SiteRequestOptions, collectFormSlugs, fontFaces, handleSiteRequest, pageStyleText, renderSitePageToString };
241
+ export { ASSETS_PREFIX, ASSET_SIZES, FONT_FILES, type SiteAnalytics, type SiteAssets, SiteRenderer, type SiteRendererProps, type SiteRequestOptions, collectFormSlugs, fontFaces, handleSiteRequest, pageStyleText, renderSitePageToString };