{
  "component": {
    "id": "changelog-page-template",
    "name": "Changelog page template",
    "tier": "pro",
    "exampleId": "changelog-page-template",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/changelog-page-template-demo.tsx",
    "exportName": "ChangelogPageTemplateDemo",
    "sha256": "25dfa80459cd590e69a4a4eb25cdfdd4e6e65eb9849f125b9d6d3bf94eec599e",
    "helperImports": [],
    "directComponentImports": [
      "changelog-block",
      "changelog-page-template",
      "newsletter-signup"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/changelog-page-template",
    "registryUrl": "https://tidalui.com/r/pro/changelog-page-template.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/changelog-page-template",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/changelog-page-template",
      "registryUrl": "https://tidalui.com/r/pro/changelog-page-template.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/changelog-page-template.tsx",
    "exports": [
      "TidalChangelogPageLogConfig",
      "TidalChangelogPageTemplate",
      "TidalChangelogRelease",
      "TidalNewsletterSignupStatus"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/changelog-page-template.css",
      "components/ui/newsletter-signup.css",
      "components/ui/changelog-block.css",
      "components/ui/navigation-bar.css",
      "components/ui/form-field.css",
      "components/ui/footer.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/navigation-bar",
      "@tidal-pro/changelog-block",
      "@tidal-pro/newsletter-signup",
      "@tidal-pro/footer"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "changelog-block",
      "changelog-page-template",
      "footer",
      "form-field",
      "navigation-bar",
      "newsletter-signup"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/changelog-page-template.css",
      "components/ui/newsletter-signup.css",
      "components/ui/changelog-block.css",
      "components/ui/navigation-bar.css",
      "components/ui/form-field.css",
      "components/ui/footer.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/changelog-page-template.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useLayoutEffect, useId, useMemo, useRef, useState, type FormEvent, type InvalidEvent } from \"react\";\n\nimport { TidalChangelogPageTemplate, type TidalChangelogPageLogConfig } from \"./components/ui/changelog-page-template\";\n\nimport type { TidalNewsletterSignupStatus } from \"./components/ui/newsletter-signup\";\n\nimport type { TidalChangelogRelease } from \"./components/ui/changelog-block\";\n\nimport \"./components/ui/newsletter-signup.css\";\n\nimport \"./components/ui/changelog-block.css\";\n\nimport \"./components/ui/changelog-page-template.css\";\n\nimport \"./components/ui/navigation-bar.css\";\n\nimport \"./components/ui/form-field.css\";\n\nimport \"./components/ui/footer.css\";\n\n\n\nexport interface ChangelogPageTemplateDemoProps {\n  theme?: \"light\" | \"dark\";\n}\n\ntype VersionFilter = \"all\" | \"3.0\" | \"2.9\";\n\nconst RELEASES: readonly TidalChangelogRelease[] = [\n  {\n    id: \"3.0.0\",\n    version: \"v3.0.0\",\n    title: \"Project review workspace\",\n    publishedAt: \"2026-10-10\",\n    dateLabel: \"October 10, 2026\",\n    summary:\n      \"The fictional Northstar sample brings review notes and decisions into one page.\",\n    changes: [\n      {\n        id: \"review-workspace\",\n        kind: \"added\",\n        title: \"Review workspace\",\n        description: \"Inspect supplied notes beside each sample project.\",\n      },\n      {\n        id: \"decision-copy\",\n        kind: \"improved\",\n        title: \"Decision labels\",\n        description: \"Every local state now uses a literal label.\",\n      },\n      {\n        id: \"focus-return\",\n        kind: \"fixed\",\n        title: \"Focus return\",\n        description: \"Closing a sample review returns focus to its trigger.\",\n      },\n    ],\n    details: (\n      <p>\n        This release describes the fictional sample interface. It does not\n        update a real product or account.\n      </p>\n    ),\n  },\n  {\n    id: \"2.9.1\",\n    version: \"v2.9.1\",\n    title: \"Clearer delivery status\",\n    publishedAt: \"2026-09-26\",\n    dateLabel: \"September 26, 2026\",\n    summary:\n      \"Status copy and shapes stay readable across the supplied light and dark themes.\",\n    changes: [\n      {\n        id: \"status-copy\",\n        kind: \"improved\",\n        title: \"Status copy\",\n        description: \"Visible words accompany every sample marker.\",\n      },\n      {\n        id: \"mobile-actions\",\n        kind: \"fixed\",\n        title: \"Mobile actions\",\n        description: \"Primary actions remain reachable in the narrow layout.\",\n      },\n    ],\n    details: <p>No migration or stored-data change is represented here.</p>,\n  },\n  {\n    id: \"2.9.0\",\n    version: \"v2.9.0\",\n    title: \"Shared project briefs\",\n    publishedAt: \"2026-09-12\",\n    dateLabel: \"September 12, 2026\",\n    summary: \"A concise brief preview joins the fictional planning workspace.\",\n    changes: [\n      {\n        id: \"brief-preview\",\n        kind: \"added\",\n        title: \"Brief preview\",\n        description: \"Read scope, owner, and next step in one sample card.\",\n      },\n      {\n        id: \"legacy-priority\",\n        kind: \"removed\",\n        title: \"Legacy priority label\",\n        description: \"The sample now uses one consistent priority vocabulary.\",\n      },\n    ],\n    details: <p>The removed label refers only to supplied sample data.</p>,\n  },\n];\n\nconst FILTERS = [\n  { id: \"all\", label: \"All versions\", count: 3 },\n  { id: \"3.0\", label: \"Version 3.0\", count: 1 },\n  { id: \"2.9\", label: \"Version 2.9\", count: 2 },\n] as const;\n\nexport function ChangelogPageTemplateDemo({\n  theme = \"light\",\n}: ChangelogPageTemplateDemoProps) {\n  const instanceId = useId().replace(/:/g, \"\");\n  const topId = `changelog-sample-top-${instanceId}`;\n  const releasesId = `changelog-sample-releases-${instanceId}`;\n  const newsletterId = `changelog-sample-newsletter-${instanceId}`;\n  const releaseNoteId = `changelog-sample-note-${instanceId}`;\n  const [filter, setFilter] = useState<VersionFilter>(\"all\");\n  const [expandedIds, setExpandedIds] = useState<ReadonlySet<string>>(\n    () => new Set([\"3.0.0\"]),\n  );\n  const [motionKey, setMotionKey] = useState(0);\n  const [email, setEmail] = useState(\"\");\n  const [emailError, setEmailError] = useState(\"\");\n  const [newsletterStatus, setNewsletterStatus] =\n    useState<TidalNewsletterSignupStatus>(\"idle\");\n  const [errorFocusVersion, setErrorFocusVersion] = useState(0);\n  const [pageStatus, setPageStatus] = useState(\n    \"Showing all three fictional releases.\",\n  );\n  const emailRef = useRef<HTMLInputElement>(null);\n  const newsletterStatusRef = useRef<HTMLDivElement>(null);\n  const shouldFocusNewsletterStatus = useRef(false);\n\n  const releases = useMemo<readonly TidalChangelogRelease[]>(\n    () =>\n      RELEASES.map((release) =>\n        release.id === \"3.0.0\"\n          ? {\n              ...release,\n              changes: release.changes.map((change) =>\n                change.id === \"review-workspace\"\n                  ? { ...change, href: `#${releaseNoteId}` }\n                  : change,\n              ),\n              link: {\n                href: `#${releaseNoteId}`,\n                label: \"Read the sample note\",\n              },\n            }\n          : release,\n      ),\n    [releaseNoteId],\n  );\n\n  const visibleReleases = useMemo(\n    () =>\n      filter === \"all\"\n        ? releases\n        : releases.filter((release) => release.id.startsWith(filter)),\n    [filter, releases],\n  );\n\n  useLayoutEffect(() => {\n    if (!shouldFocusNewsletterStatus.current) return;\n    shouldFocusNewsletterStatus.current = false;\n    newsletterStatusRef.current?.focus({ preventScroll: true });\n  }, [errorFocusVersion, newsletterStatus]);\n\n  function selectFilter(nextFilter: string) {\n    const next = nextFilter as VersionFilter;\n    setFilter(next);\n    setPageStatus(\n      next === \"all\"\n        ? \"Showing all three fictional releases.\"\n        : `Showing fictional version ${next} releases.`,\n    );\n  }\n\n  function setReleaseExpanded(releaseId: string, expanded: boolean) {\n    setExpandedIds((current) => {\n      const next = new Set(current);\n      if (expanded) next.add(releaseId);\n      else next.delete(releaseId);\n      return next;\n    });\n    setPageStatus(\n      `${releaseId} sample details ${expanded ? \"opened\" : \"closed\"}.`,\n    );\n  }\n\n  function replayMotion() {\n    setMotionKey((current) => current + 1);\n    setPageStatus(\"The finite release entrance replayed in this local page.\");\n  }\n\n  function resetSample() {\n    setFilter(\"all\");\n    setExpandedIds(new Set([\"3.0.0\"]));\n    setMotionKey(0);\n    setEmail(\"\");\n    setEmailError(\"\");\n    setNewsletterStatus(\"idle\");\n    setPageStatus(\"The fictional page returned to its initial local state.\");\n  }\n\n  function handleInvalid(event: InvalidEvent<HTMLInputElement>) {\n    event.preventDefault();\n    setEmailError(\n      event.currentTarget.validity.valueMissing\n        ? \"Add a fictional email address.\"\n        : \"Use a complete fictional email address.\",\n    );\n    shouldFocusNewsletterStatus.current = true;\n    setNewsletterStatus(\"error\");\n    setErrorFocusVersion((current) => current + 1);\n  }\n\n  function handleSubmit(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    setEmailError(\"\");\n    setNewsletterStatus(\"success\");\n    setPageStatus(\n      \"The newsletter sample was prepared locally. No subscription was created.\",\n    );\n  }\n\n  function handleReset() {\n    setEmail(\"\");\n    setEmailError(\"\");\n    setNewsletterStatus(\"idle\");\n    setPageStatus(\"The newsletter sample was cleared locally.\");\n  }\n\n  const changelog: TidalChangelogPageLogConfig = {\n    eyebrow: null,\n    title: \"Release notes\",\n    description:\n      \"Filter the supplied versions, open release details, or replay the finite entrance.\",\n    releases: visibleReleases,\n    filters: FILTERS,\n    activeFilter: filter,\n    onFilterChange: selectFilter,\n    filterLabel: \"Filter fictional release versions\",\n    expandedReleaseIds: expandedIds,\n    onExpandedChange: setReleaseExpanded,\n    motionKey,\n    headerAction: (\n      <button type=\"button\" onClick={replayMotion}>\n        Replay entrance\n      </button>\n    ),\n  };\n\n  return (\n    <TidalChangelogPageTemplate\n      id={topId}\n      theme={theme}\n      eyebrow=\"Fictional product history\"\n      title=\"What changed in Northstar\"\n      description=\"Browse supplied release notes and prepare a local newsletter sample without connecting an account or service.\"\n      sectionIds={{ releases: releasesId, newsletter: newsletterId }}\n      navigation={{\n        title: \"Northstar\",\n        brandHref: `#${topId}`,\n        navigationLabel: \"Northstar changelog navigation\",\n        links: [\n          { id: \"releases\", label: \"Releases\", href: `#${releasesId}` },\n          {\n            id: \"newsletter\",\n            label: \"Newsletter\",\n            href: `#${newsletterId}`,\n          },\n          { id: \"note\", label: \"Sample note\", href: `#${releaseNoteId}` },\n        ],\n        actionItems: [\n          { id: \"reset\", label: \"Reset sample\", onClick: resetSample },\n        ],\n      }}\n      changelog={changelog}\n      newsletter={{\n        title: \"Get release notes by email\",\n        description:\n          \"Validate and prepare a fictional address in this local page preview.\",\n        emailLabel: \"Fictional work email\",\n        emailDescription: \"Use a sample address such as name@example.com.\",\n        emailError,\n        emailRef,\n        emailInputProps: {\n          value: email,\n          placeholder: \"name@example.com\",\n          onChange: (event: import(\"react\").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n            setEmail(event.currentTarget.value);\n            setEmailError(\"\");\n            setNewsletterStatus(\"idle\");\n          },\n          onInvalid: handleInvalid,\n        },\n        status: newsletterStatus,\n        statusMessage:\n          newsletterStatus === \"error\"\n            ? \"Review the fictional email before local preparation.\"\n            : newsletterStatus === \"success\"\n              ? \"Sample prepared locally. No subscription or message was created.\"\n              : undefined,\n        statusRef: newsletterStatusRef,\n        statusActionLabel:\n          newsletterStatus === \"error\"\n            ? \"Review email\"\n            : newsletterStatus === \"success\"\n              ? \"Edit sample\"\n              : undefined,\n        onStatusAction: () => {\n          setNewsletterStatus(\"idle\");\n          emailRef.current?.focus({ preventScroll: true });\n        },\n        submitLabel: \"Prepare sample\",\n        consent:\n          \"Consumer-supplied consent language belongs here. This preview creates no subscription.\",\n        onSubmit: handleSubmit,\n        onReset: handleReset,\n        footer: <button type=\"reset\">Clear sample</button>,\n      }}\n      footer={{\n        brand: <a href={`#${topId}`}>Northstar</a>,\n        description: \"A fictional changelog page sample.\",\n        groups: [\n          {\n            id: \"updates\",\n            title: \"Updates\",\n            links: [\n              { href: `#${releasesId}`, label: \"Release notes\" },\n              { href: `#${newsletterId}`, label: \"Newsletter sample\" },\n            ],\n          },\n          {\n            id: \"page\",\n            title: \"Page\",\n            links: [\n              { href: `#${topId}`, label: \"Overview\" },\n              { href: `#${releaseNoteId}`, label: \"Sample note\" },\n            ],\n          },\n        ],\n        legal: \"Fictional release content for local review.\",\n      }}\n      sampleNote={\n        <div id={releaseNoteId}>\n          <strong>Local sample</strong>\n          <output aria-live=\"polite\">{pageStatus}</output>\n        </div>\n      }\n    />\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <ChangelogPageTemplateDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/changelog-page-template.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
