{
  "component": {
    "id": "changelog-block",
    "name": "Changelog block",
    "tier": "pro",
    "exampleId": "changelog-block",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/changelog-block-demo.tsx",
    "exportName": "ChangelogBlockDemo",
    "sha256": "0b6c19f2e3f429fc06aafb23610e17d16e0fda9e26ef3839d1b9740b1cdab520",
    "helperImports": [],
    "directComponentImports": [
      "changelog-block"
    ],
    "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-block",
    "registryUrl": "https://tidalui.com/r/pro/changelog-block.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-block",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/changelog-block",
      "registryUrl": "https://tidalui.com/r/pro/changelog-block.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/changelog-block.tsx",
    "exports": [
      "TidalChangelogBlock",
      "TidalChangelogRelease"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/changelog-block.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "changelog-block"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/changelog-block.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/changelog-block.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/changelog-block-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useMemo, useState } from \"react\";\n\nimport { RotateCcw } from \"lucide-react\";\n\nimport { TidalChangelogBlock, type TidalChangelogRelease } from \"./components/ui/changelog-block\";\n\nimport \"./components/ui/changelog-block.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .changelog-demo,\\n.tidal-scope .changelog-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .changelog-demo {\\n  width: 100%;\\n  min-width: 0;\\n  padding: clamp(12px, 3.4vw, 38px);\\n  color: var(--t-ink);\\n  background:\\n    linear-gradient(var(--t-border) 1px, transparent 1px),\\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\\n    var(--t-subtle);\\n  background-size: 26px 26px;\\n  border-radius: 22px;\\n  container: changelog-demo / inline-size;\\n}\\n\\n.tidal-scope .changelog-demo-shell {\\n  display: grid;\\n  width: 100%;\\n  max-width: 1020px;\\n  min-width: 0;\\n  gap: 13px;\\n  margin: 0 auto;\\n}\\n\\n.tidal-scope .changelog-demo .tidal-changelog {\\n  margin: 0 auto;\\n}\\n\\n.tidal-scope .changelog-demo .tidal-changelog-header-action svg {\\n  flex: none;\\n}\\n\\n.tidal-scope .changelog-demo-status {\\n  margin: 0;\\n  padding: 0 5px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  text-align: center;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .changelog-demo-note {\\n  width: 100%;\\n  max-width: 920px;\\n  min-width: 0;\\n  margin: 0 auto;\\n  padding: 15px 17px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  scroll-margin-top: 16px;\\n}\\n\\n.tidal-scope .changelog-demo-note > span,\\n.tidal-scope .changelog-demo-note > strong,\\n.tidal-scope .changelog-demo-note > p {\\n  display: block;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .changelog-demo-note > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 700;\\n  letter-spacing: 0.12em;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .changelog-demo-note > strong {\\n  margin-top: 5px;\\n  font-size: 13px;\\n  font-weight: 650;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .changelog-demo-note > p {\\n  margin: 4px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.6;\\n}\\n\\n@container changelog-demo (max-width: 440px) {\\n  .tidal-scope .changelog-demo {\\n    padding: 7px;\\n    background-size: 18px 18px;\\n    border-radius: 18px;\\n  }\\n}\";\n\ntype VersionFilter = \"all\" | \"2.4\" | \"2.3\";\n\nconst RELEASES: readonly TidalChangelogRelease[] = [\n  {\n    id: \"2.4.0\",\n    version: \"v2.4.0\",\n    title: \"Faster project review\",\n    publishedAt: \"2026-10-08\",\n    dateLabel: \"October 8, 2026\",\n    summary:\n      \"The fictional Orbit Desk sample now keeps review notes beside the work they describe.\",\n    changes: [\n      {\n        id: \"review-queue\",\n        kind: \"added\",\n        title: \"Review queue\",\n        description: \"Collect open decisions in one local view.\",\n        href: \"#changelog-demo-notes\",\n      },\n      {\n        id: \"search-order\",\n        kind: \"improved\",\n        title: \"Project search order\",\n        description: \"Recent exact matches appear first in the sample.\",\n      },\n      {\n        id: \"focus-return\",\n        kind: \"fixed\",\n        title: \"Dialog focus return\",\n        description: \"Closing a sample review returns focus to its trigger.\",\n      },\n    ],\n    details: (\n      <div>\n        <strong>Local migration note</strong>\n        <p>\n          Existing fictional projects need no action. The review queue appears\n          only in this rendered sample.\n        </p>\n      </div>\n    ),\n    link: {\n      href: \"#changelog-demo-notes\",\n      label: \"Read sample note\",\n    },\n  },\n  {\n    id: \"2.3.1\",\n    version: \"v2.3.1\",\n    title: \"Clearer task status\",\n    publishedAt: \"2026-09-24\",\n    dateLabel: \"September 24, 2026\",\n    summary:\n      \"Status text and shape now stay readable across light and dark sample surfaces.\",\n    changes: [\n      {\n        id: \"status-copy\",\n        kind: \"improved\",\n        title: \"Status labels\",\n        description: \"Every state uses a literal word alongside its marker.\",\n      },\n      {\n        id: \"empty-project\",\n        kind: \"fixed\",\n        title: \"Empty project layout\",\n        description:\n          \"The first-action control remains visible at narrow widths.\",\n      },\n    ],\n    details: (\n      <p>\n        This example describes interface behavior only. It does not update a\n        real project or account.\n      </p>\n    ),\n  },\n  {\n    id: \"2.3.0\",\n    version: \"v2.3.0\",\n    title: \"Shared project briefs\",\n    publishedAt: \"2026-09-10\",\n    dateLabel: \"September 10, 2026\",\n    summary:\n      \"A concise brief preview joins the fictional project planning sample.\",\n    changes: [\n      {\n        id: \"brief-preview\",\n        kind: \"added\",\n        title: \"Brief preview\",\n        description: \"Review scope, owner, and next step in one panel.\",\n      },\n      {\n        id: \"legacy-label\",\n        kind: \"removed\",\n        title: \"Legacy priority label\",\n        description: \"The sample now uses one consistent priority vocabulary.\",\n      },\n    ],\n    details: (\n      <p>\n        The removed label refers only to the fictional sample data shown here.\n      </p>\n    ),\n  },\n];\n\nconst FILTERS = [\n  { id: \"all\", label: \"All versions\", count: 3 },\n  { id: \"2.4\", label: \"Version 2.4\", count: 1 },\n  { id: \"2.3\", label: \"Version 2.3\", count: 2 },\n] as const;\n\nexport function ChangelogBlockDemo() {\n  const [filter, setFilter] = useState<VersionFilter>(\"all\");\n  const [expandedIds, setExpandedIds] = useState<ReadonlySet<string>>(\n    () => new Set([\"2.4.0\"]),\n  );\n  const [motionKey, setMotionKey] = useState(0);\n  const [message, setMessage] = useState(\n    \"Showing all three fictional releases. Version 2.4 details are open.\",\n  );\n\n  const visibleReleases = useMemo(\n    () =>\n      filter === \"all\"\n        ? RELEASES\n        : RELEASES.filter((release) => release.id.startsWith(filter)),\n    [filter],\n  );\n\n  function selectFilter(nextFilter: string) {\n    const next = nextFilter as VersionFilter;\n    setFilter(next);\n    setMessage(\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    setMessage(\n      `${releaseId} sample details ${expanded ? \"opened\" : \"closed\"}.`,\n    );\n  }\n\n  function replayMotion() {\n    setMotionKey((current) => current + 1);\n    setMessage(\"The finite entrance sequence replayed in this local preview.\");\n  }\n\n  return (\n    <section className=\"changelog-demo\" aria-label=\"Changelog block preview\">\n      <div className=\"changelog-demo-shell\">\n        <TidalChangelogBlock\n          title=\"Product updates\"\n          eyebrow={null}\n          description=\"Release notes for a fictional product. Filter versions or open a release for details.\"\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={motionKey}\n          headerAction={\n            <button type=\"button\" onClick={replayMotion}>\n              <RotateCcw aria-hidden=\"true\" size={15} />\n              Replay entrance\n            </button>\n          }\n        />\n\n        <p\n          className=\"changelog-demo-status\"\n          role=\"status\"\n          aria-live=\"polite\"\n          aria-atomic=\"true\"\n        >\n          {message}\n        </p>\n\n        <aside id=\"changelog-demo-notes\" className=\"changelog-demo-note\">\n          <span>SAMPLE NOTE</span>\n          <strong>Review queue</strong>\n          <p>\n            This anchor shows a real local destination. No release, account,\n            request, subscription, or stored record is created.\n          </p>\n        </aside>\n      </div>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ChangelogBlockDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/changelog-block.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "activeFilter",
      "type": "inferred-from-existing-demo",
      "initial": "\"all\"",
      "setter": "setFilter",
      "proposalCanBeRejected": false
    },
    {
      "prop": "motionKey",
      "type": "inferred-from-existing-demo",
      "initial": "0",
      "setter": "setMotionKey",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onExpandedChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onFilterChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "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": "Existing demo label or ARIA prop",
    "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": "Verify focus returns to the invoking control after dismissal.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "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": []
}
