{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "changelog-feed",
  "title": "Changelog Feed",
  "type": "registry:block",
  "description": "Release timeline whose entries expand in place",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/changelog-feed.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/changelog-feed.jsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport { motion, AnimatePresence } from 'motion/react'\n\nconst ENTRIES = [\n  { v: '2.4.0', d: 'Sep 22', tag: 'Feature', t: 'Traffic map in the dashboard', b: ['Live arcs between edge locations', 'Filter by country and status code'] },\n  { v: '2.3.2', d: 'Sep 15', tag: 'Fix', t: 'Faster cold starts', b: ['Median cold start down to 12 ms', 'Smaller runtime bundle'] },\n  { v: '2.3.0', d: 'Sep 02', tag: 'Feature', t: 'Instant rollback', b: ['Roll back to any build in one click', 'Keeps environment variables in sync'] },\n]\nconst TONE = { Feature: 'bg-acc/15 text-acc', Fix: 'bg-emerald-400/10 text-emerald-300' }\n\n// Block: product changelog on a timeline. Entries expand in place.\nexport default function ChangelogFeed({ entries = ENTRIES }) {\n  const [open, setOpen] = useState(0)\n  return (\n    <section className=\"@container w-full rounded-2xl border border-line bg-bg p-6\">\n      <h2 className=\"text-xl font-semibold tracking-tight text-tx\">Changelog</h2>\n      <ol className=\"relative mt-6 border-l border-line pl-6\">\n        {entries.map((e, i) => (\n          <li key={e.v} className=\"relative pb-6 last:pb-0\">\n            <motion.span animate={{ scale: open === i ? 1.3 : 1, backgroundColor: open === i ? 'var(--acc)' : 'var(--line2)' }} className=\"absolute -left-[29px] top-1.5 size-2.5 rounded-full ring-4 ring-bg\" />\n            <button type=\"button\" onClick={() => setOpen(open === i ? -1 : i)} aria-expanded={open === i} className=\"w-full text-left\">\n              <div className=\"flex flex-wrap items-center gap-2 text-xs\"><span className=\"font-mono text-tx\">v{e.v}</span><span className=\"text-faint\">{e.d}</span><span className={`rounded-full px-2 py-0.5 text-[10px] ${TONE[e.tag] || 'bg-line text-mute'}`}>{e.tag}</span></div>\n              <div className=\"mt-1 text-[15px] text-tx\">{e.t}</div>\n            </button>\n            <AnimatePresence initial={false}>\n              {open === i && (\n                <motion.ul initial={{ height: 0, opacity: 0 }} animate={{ height: 'auto', opacity: 1 }} exit={{ height: 0, opacity: 0 }} transition={{ type: 'spring', stiffness: 300, damping: 32 }} className=\"overflow-hidden\">\n                  {e.b.map((b) => <li key={b} className=\"mt-2 flex gap-2 text-sm text-mute\"><span className=\"text-faint\">-</span>{b}</li>)}\n                </motion.ul>\n              )}\n            </AnimatePresence>\n          </li>\n        ))}\n      </ol>\n    </section>\n  )\n}\n"
    }
  ],
  "cssVars": {
    "theme": {
      "color-bg": "var(--bg)",
      "color-panel": "var(--panel)",
      "color-panel2": "var(--panel2)",
      "color-line": "var(--line)",
      "color-line2": "var(--line2)",
      "color-tx": "var(--tx)",
      "color-mute": "var(--mute)",
      "color-faint": "var(--faint)",
      "color-acc": "var(--acc)",
      "color-acc-fg": "var(--acc-fg)"
    },
    "light": {
      "bg": "#ffffff",
      "panel": "#f5f5f7",
      "panel2": "#e8e8ed",
      "line": "#e5e5ea",
      "line2": "#d2d2d7",
      "tx": "#1d1d1f",
      "mute": "#6e6e73",
      "faint": "#a1a1a6",
      "acc": "#1d1d1f",
      "acc-fg": "#ffffff"
    },
    "dark": {
      "bg": "#000000",
      "panel": "#141416",
      "panel2": "#1f1f22",
      "line": "#262628",
      "line2": "#3a3a3d",
      "tx": "#f5f5f7",
      "mute": "#a1a1a6",
      "faint": "#6e6e73",
      "acc": "#f5f5f7",
      "acc-fg": "#000000"
    }
  },
  "css": {
    ".light": {
      "--bg": "#ffffff",
      "--panel": "#f5f5f7",
      "--panel2": "#e8e8ed",
      "--line": "#e5e5ea",
      "--line2": "#d2d2d7",
      "--tx": "#1d1d1f",
      "--mute": "#6e6e73",
      "--faint": "#a1a1a6",
      "--acc": "#1d1d1f",
      "--acc-fg": "#ffffff"
    }
  }
}
