{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "changelog",
  "type": "registry:block",
  "title": "Changelog page",
  "description": "A complete changelog page built from Facade UI sections: a header, the releases with their changes, and an optional email sign-up. You supply one content object.",
  "categories": [
    "template"
  ],
  "registryDependencies": [
    "https://facadeui.dev/r/changelog-list.json",
    "https://facadeui.dev/r/container.json",
    "https://facadeui.dev/r/cta-group.json",
    "https://facadeui.dev/r/footer.json",
    "https://facadeui.dev/r/nav-top.json",
    "https://facadeui.dev/r/newsletter.json",
    "https://facadeui.dev/r/section.json",
    "https://facadeui.dev/r/section-header.json",
    "https://facadeui.dev/r/types.json"
  ],
  "files": [
    {
      "path": "src/templates/changelog.tsx",
      "type": "registry:component",
      "target": "components/templates/changelog.tsx",
      "content": "/**\n * Changelog — a release history page, assembled from registry sections.\n *\n * A page header, the releases, and an optional email sign-up for people who\n * want the next one in their inbox. Like the other templates it is\n * composition: `ChangelogList` does the work and installs on its own too.\n *\n * a11y: the page title is the only `<h1>`; each release is an `<h2>` inside\n * its own `<article>`, so heading navigation steps release by release. The\n * sign-up reports its outcome through `Newsletter`'s live region.\n *\n * Dependencies: react, @/lib/types, @/components/sections/*,\n * @/components/ui/*.\n */\n\nimport type { ReactNode } from \"react\"\n\nimport type { CtaItem, LinkComponent } from \"@/lib/types\"\nimport {\n  ChangelogList,\n  type ChangeKind,\n  type ChangelogEntry,\n} from \"@/components/sections/changelog-list\"\nimport { Footer, type FooterGroup, type FooterLink } from \"@/components/sections/footer\"\nimport { NavTop, type NavItem } from \"@/components/sections/nav-top\"\nimport { Newsletter, type NewsletterStatus } from \"@/components/sections/newsletter\"\nimport { Container } from \"@/components/ui/container\"\nimport { CtaGroup } from \"@/components/ui/cta-group\"\nimport { Section } from \"@/components/ui/section\"\nimport { SectionHeader } from \"@/components/ui/section-header\"\n\nexport interface ChangelogContent {\n  brand: ReactNode\n  nav: NavItem[]\n  navActions?: CtaItem[]\n\n  header: {\n    eyebrow?: string\n    title: string\n    description?: string\n    /** Links beside the title, such as an RSS feed or the GitHub releases. */\n    actions?: CtaItem[]\n  }\n\n  /** Newest first. */\n  releases: ChangelogEntry[]\n  /** Words for the change kinds, for translation. */\n  kindLabels?: Partial<Record<ChangeKind, string>>\n\n  subscribe?: {\n    eyebrow?: string\n    title: string\n    description?: string\n    note?: ReactNode\n  }\n\n  footer: {\n    groups?: FooterGroup[]\n    brand?: ReactNode\n    copyright?: ReactNode\n    legal?: FooterLink[]\n  }\n}\n\nexport interface ChangelogProps {\n  content: ChangelogContent\n  link?: LinkComponent\n  /** Marks the active nav item. */\n  currentPath?: string\n  /** Shown above the header. Usually a `Banner`. */\n  banner?: ReactNode\n  /** Wire this to your own form action or mutation. */\n  onSubscribe?: (email: string) => void\n  subscribeStatus?: NewsletterStatus\n  subscribeError?: string\n}\n\nexport function Changelog({\n  content,\n  link,\n  currentPath,\n  banner,\n  onSubscribe,\n  subscribeStatus,\n  subscribeError,\n}: ChangelogProps) {\n  const { header, releases, subscribe, footer } = content\n\n  return (\n    <>\n      {banner}\n\n      <NavTop\n        brand={content.brand}\n        items={content.nav}\n        actions={content.navActions}\n        link={link}\n        currentPath={currentPath}\n      />\n\n      <main id=\"main\">\n        {/* A div: the h1 names the page, so a second landmark adds nothing. */}\n        <Section as=\"div\" spacing=\"md\" className=\"border-b\">\n          <Container size=\"md\">\n            <SectionHeader\n              headingLevel={1}\n              size=\"lg\"\n              eyebrow={header.eyebrow}\n              title={header.title}\n              description={header.description}\n              actions={\n                header.actions ? (\n                  <CtaGroup items={header.actions} link={link} size=\"sm\" />\n                ) : undefined\n              }\n            />\n          </Container>\n        </Section>\n\n        <ChangelogList\n          items={releases}\n          kindLabels={content.kindLabels}\n          link={link}\n          itemHeadingLevel={2}\n          spacing=\"sm\"\n        />\n\n        {subscribe ? (\n          <Newsletter\n            eyebrow={subscribe.eyebrow}\n            title={subscribe.title}\n            description={subscribe.description}\n            note={subscribe.note}\n            onSubmit={onSubscribe}\n            status={subscribeStatus}\n            errorMessage={subscribeError}\n            headingLevel={2}\n          />\n        ) : null}\n      </main>\n\n      <Footer\n        brand={footer.brand ?? content.brand}\n        groups={footer.groups}\n        copyright={footer.copyright}\n        legal={footer.legal}\n        link={link}\n        headingLevel={2}\n      />\n    </>\n  )\n}\n"
    }
  ],
  "docs": "Import styles/facade-tokens.css in your global stylesheet, after @import \"tailwindcss\". Render the template from a page with your own content object; it sets the page outline (one h1). Docs: https://facadeui.dev/components/changelog"
}
