{
  "component": {
    "id": "media-showcase",
    "name": "Media showcase",
    "tier": "pro",
    "exampleId": "media-showcase",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/media-showcase-demo.tsx",
    "exportName": "MediaShowcaseDemo",
    "sha256": "b6cd8c190d98bbdecf01bc9b8f16be40615a555267a9a1eee2ce191ef01d4093",
    "helperImports": [],
    "directComponentImports": [
      "media-showcase"
    ],
    "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/media-showcase",
    "registryUrl": "https://tidalui.com/r/pro/media-showcase.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/media-showcase",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/media-showcase",
      "registryUrl": "https://tidalui.com/r/pro/media-showcase.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/media-showcase.tsx",
    "exports": [
      "TidalMediaShowcase",
      "TidalMediaShowcaseItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/media-showcase.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "media-showcase"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/media-showcase.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/media-showcase.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/media-showcase-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useMemo, useState } from \"react\";\n\nimport { TidalMediaShowcase, type TidalMediaShowcaseItem } from \"./components/ui/media-showcase\";\n\nimport \"./components/ui/media-showcase.css\";\n\nfunction tidalExampleAvatarDataUri(seed: unknown) {\n  const text = String(seed).replace(/[^a-z0-9]/gi, \"\").slice(-2) || \"UI\";\n  const palette = [\"#333333\", \"#555555\", \"#777777\", \"#999999\", \"#bbbbbb\"];\n  const color = palette[Array.from(text).reduce((sum, character) => sum + character.charCodeAt(0), 0) % palette.length];\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\"><rect width=\"96\" height=\"96\" rx=\"48\" fill=\"${color}\"/><circle cx=\"48\" cy=\"38\" r=\"17\" fill=\"white\" fill-opacity=\".92\"/><path d=\"M18 92c3-22 15-34 30-34s27 12 30 34\" fill=\"white\" fill-opacity=\".92\"/></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nfunction tidalExampleImageDataUri(label: string) {\n  const safeLabel = label.replace(/[<>&]/g, \"\").slice(0, 28) || \"Sample image\";\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1200 675\"><defs><linearGradient id=\"g\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"1\"><stop stop-color=\"#171717\"/><stop offset=\"1\" stop-color=\"#555555\"/></linearGradient></defs><rect width=\"1200\" height=\"675\" fill=\"url(#g)\"/><circle cx=\"950\" cy=\"100\" r=\"260\" fill=\"white\" fill-opacity=\".08\"/><text x=\"80\" y=\"570\" fill=\"white\" font-family=\"system-ui,sans-serif\" font-size=\"64\" font-weight=\"700\">${safeLabel}</text></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nconst tidalExampleStyles = \".tidal-scope .media-showcase-demo {\\n  display: grid;\\n  width: min(100%, 880px);\\n  min-width: 0;\\n  gap: 10px;\\n}\\n\\n.tidal-scope .media-showcase-storyboard,\\n.tidal-scope .media-showcase-audio-fallback {\\n  width: 100%;\\n  height: 100%;\\n  min-height: inherit;\\n}\\n\\n.tidal-scope .media-showcase-storyboard {\\n  display: grid;\\n  grid-template-rows: auto minmax(0, 1fr);\\n  padding: clamp(14px, 4cqi, 34px);\\n  background:\\n    radial-gradient(circle at 18% 22%, var(--t-wash), transparent 34%),\\n    var(--t-canvas);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-bar {\\n  display: grid;\\n  min-height: 44px;\\n  grid-template-columns: 12px minmax(0, 1fr) auto;\\n  align-items: center;\\n  gap: 10px;\\n  border-bottom: 1px solid var(--t-border);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 680;\\n  line-height: 1.35;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-bar > span {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-bar > span:first-child {\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 50%;\\n  background: var(--t-ink);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-body {\\n  display: grid;\\n  min-width: 0;\\n  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr);\\n  align-items: center;\\n  gap: clamp(18px, 6cqi, 58px);\\n  padding-block: clamp(22px, 7cqi, 64px);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-copy {\\n  display: grid;\\n  min-width: 0;\\n  gap: 9px;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-copy small {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 720;\\n  letter-spacing: 0.06em;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-copy strong {\\n  max-width: 15ch;\\n  font-family: var(--t-display);\\n  font-size: clamp(26px, 6cqi, 54px);\\n  font-weight: 500;\\n  letter-spacing: -0.055em;\\n  line-height: 0.95;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-copy > span {\\n  display: block;\\n  width: min(100%, 240px);\\n  height: 7px;\\n  border-radius: 99px;\\n  background: var(--t-line);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-copy > span:last-child {\\n  width: min(72%, 170px);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel {\\n  display: grid;\\n  min-width: 0;\\n  gap: 12px;\\n  padding: clamp(16px, 4cqi, 28px);\\n  border: 1px solid var(--t-border-strong);\\n  border-radius: 16px;\\n  background: var(--t-surface);\\n  box-shadow: var(--t-shadow-soft);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 700;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel > strong {\\n  font-size: clamp(36px, 8cqi, 64px);\\n  font-weight: 530;\\n  letter-spacing: -0.06em;\\n  line-height: 0.9;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel > div {\\n  display: flex;\\n  height: 54px;\\n  align-items: end;\\n  gap: 5px;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel i {\\n  flex: 1;\\n  height: 38%;\\n  border-radius: 4px 4px 0 0;\\n  background: var(--t-ink);\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel i:nth-child(2) {\\n  height: 66%;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel i:nth-child(3) {\\n  height: 92%;\\n}\\n\\n.tidal-scope .media-showcase-storyboard-panel i:nth-child(4) {\\n  height: 54%;\\n}\\n\\n.tidal-scope .media-showcase-audio-fallback {\\n  display: grid;\\n  place-items: center;\\n  align-content: center;\\n  gap: 9px;\\n  padding: 24px;\\n  background: var(--t-canvas);\\n  text-align: center;\\n}\\n\\n.tidal-scope .media-showcase-audio-fallback > div {\\n  display: flex;\\n  min-height: 94px;\\n  align-items: center;\\n  gap: 5px;\\n}\\n\\n.tidal-scope .media-showcase-audio-fallback > div > span {\\n  width: 5px;\\n  max-height: 70px;\\n  border-radius: 999px;\\n  background: var(--t-ink);\\n}\\n\\n.tidal-scope .media-showcase-audio-fallback strong {\\n  font-size: clamp(24px, 5cqi, 40px);\\n  font-weight: 560;\\n  letter-spacing: -0.045em;\\n}\\n\\n.tidal-scope .media-showcase-audio-fallback p,\\n.tidal-scope .media-showcase-demo-note {\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .media-showcase-demo-note {\\n  text-align: center;\\n}\\n\\n.tidal-scope .media-showcase-thumb-mark,\\n.tidal-scope .media-showcase-thumb-wave {\\n  display: grid;\\n  place-items: center;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font-size: 11px;\\n  font-weight: 760;\\n}\\n\\n.tidal-scope .media-showcase-thumb-wave {\\n  letter-spacing: -0.18em;\\n}\\n\\n@container tidal-media-showcase (max-width: 480px) {\\n  .media-showcase-storyboard-body {\\n    grid-template-columns: minmax(0, 1fr);\\n    gap: 18px;\\n    padding-block: 20px;\\n  }\\n\\n  .media-showcase-storyboard-panel {\\n    grid-template-columns: minmax(0, 1fr) auto;\\n    align-items: center;\\n  }\\n\\n  .media-showcase-storyboard-panel > div {\\n    grid-column: 1 / -1;\\n  }\\n}\\n\\n@container tidal-media-showcase (max-width: 240px) {\\n  .media-showcase-storyboard {\\n    padding: 10px;\\n  }\\n\\n  .media-showcase-storyboard-bar > span:last-child,\\n  .media-showcase-storyboard-panel > div {\\n    display: none;\\n  }\\n\\n  .media-showcase-storyboard-panel {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .media-showcase-storyboard,\\n  .tidal-scope .media-showcase-audio-fallback {\\n    scroll-behavior: auto;\\n  }\\n}\";\n\nfunction StoryboardFrame() {\n  return (\n    <div\n      className=\"media-showcase-storyboard\"\n      aria-label=\"Workspace storyboard frame\"\n    >\n      <div className=\"media-showcase-storyboard-bar\">\n        <span />\n        <span>Workspace overview</span>\n        <span>Frame 02</span>\n      </div>\n      <div className=\"media-showcase-storyboard-body\">\n        <div className=\"media-showcase-storyboard-copy\">\n          <small>Release brief</small>\n          <strong>Review the plan in one place.</strong>\n          <span />\n          <span />\n        </div>\n        <div className=\"media-showcase-storyboard-panel\">\n          <span>Open</span>\n          <strong>12</strong>\n          <div>\n            <i />\n            <i />\n            <i />\n            <i />\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction AudioFallback() {\n  return (\n    <div\n      className=\"media-showcase-audio-fallback\"\n      role=\"img\"\n      aria-label=\"Audio note fallback\"\n    >\n      <div aria-hidden=\"true\">\n        {Array.from({ length: 18 }, (_, index) => (\n          <span\n            key={index}\n            style={{ blockSize: `${18 + ((index * 17) % 52)}px` }}\n          />\n        ))}\n      </div>\n      <strong>Audio note</strong>\n      <p>No audio file is attached to this local preview.</p>\n    </div>\n  );\n}\n\nexport function MediaShowcaseDemo() {\n  const [currentItemId, setCurrentItemId] = useState(\"cover\");\n  const items = useMemo<readonly TidalMediaShowcaseItem[]>(\n    () => [\n      {\n        id: \"cover\",\n        kind: \"image\",\n        label: \"Launch cover\",\n        src: tidalExampleImageDataUri(\"TidalUI sample media\"),\n        alt: \"TidalUI component montage with editorial type and soft color fields\",\n        meta: \"Image · 1200 × 630\",\n        caption: \"A finished cover image for the sample release brief.\",\n        thumbnail: <img src={tidalExampleImageDataUri(\"TidalUI sample media\")} alt=\"\" />,\n      },\n      {\n        id: \"storyboard\",\n        kind: \"custom\",\n        label: \"Walkthrough frame\",\n        meta: \"Supplied media slot\",\n        caption:\n          \"A storyboard frame can stand in until a recording is attached.\",\n        media: <StoryboardFrame />,\n        transcriptLabel: \"Read frame notes\",\n        transcript:\n          \"The release brief opens with assigned work, review status, and the next action in one compact workspace.\",\n        thumbnail: <span className=\"media-showcase-thumb-mark\">02</span>,\n      },\n      {\n        id: \"audio-note\",\n        kind: \"custom\",\n        label: \"Audio note\",\n        meta: \"Explicit local fallback\",\n        caption:\n          \"The transcript remains available when a media file is not supplied.\",\n        media: <AudioFallback />,\n        transcript:\n          \"Keep the overview concise, preserve the review trail, and make the next action clear.\",\n        thumbnail: (\n          <span className=\"media-showcase-thumb-wave\" aria-hidden=\"true\">\n            ||||\n          </span>\n        ),\n      },\n    ],\n    [],\n  );\n\n  return (\n    <div className=\"media-showcase-demo\">\n      <TidalMediaShowcase\n        label=\"Release media\"\n        items={items}\n        currentItemId={currentItemId}\n        onCurrentItemChange={setCurrentItemId}\n      />\n      <p className=\"media-showcase-demo-note\">\n        Sample media. Selection stays in this preview.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <MediaShowcaseDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/media-showcase.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "currentItemId",
      "type": "inferred-from-existing-demo",
      "initial": "\"cover\"",
      "setter": "setCurrentItemId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCurrentItemChange",
      "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": "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": []
}
