{
  "component": {
    "id": "footer-developer",
    "name": "Developer setup footer",
    "tier": "pro",
    "exampleId": "footer-developer",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-developer-demo.tsx",
    "exportName": "FooterDeveloperDemo",
    "sha256": "730c6ade9ff92d87a6278af2f672185cec8022ae78f46a2ba2c1832c96b94b4a",
    "helperImports": [],
    "directComponentImports": [
      "copy-button",
      "footer-developer"
    ],
    "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/footer-developer",
    "registryUrl": "https://tidalui.com/r/pro/footer-developer.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/footer-developer",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-developer",
      "registryUrl": "https://tidalui.com/r/pro/footer-developer.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-developer.tsx",
    "exports": [
      "TidalClipboardAdapter",
      "TidalFooterDeveloper",
      "TidalFooterDeveloperNavGroup",
      "TidalFooterDeveloperOption"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-developer.css",
      "components/ui/copy-button.css",
      "components/ui/segmented-control.css",
      "components/ui/code-block.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "https://tidalui.com/r/segmented-control.json",
      "https://tidalui.com/r/copy-button.json",
      "@tidal-pro/code-block"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "code-block",
      "copy-button",
      "footer-developer",
      "segmented-control"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-developer.css",
      "components/ui/copy-button.css",
      "components/ui/segmented-control.css",
      "components/ui/code-block.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-developer.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useEffect, useMemo, useRef, useState, type MouseEvent } from \"react\";\n\nimport type { TidalClipboardAdapter } from \"./components/ui/copy-button\";\n\nimport { TidalFooterDeveloper, type TidalFooterDeveloperNavGroup, type TidalFooterDeveloperOption } from \"./components/ui/footer-developer\";\n\nimport \"./components/ui/copy-button.css\";\n\nimport \"./components/ui/footer-developer.css\";\n\nimport \"./components/ui/segmented-control.css\";\n\nimport \"./components/ui/code-block.css\";\n\n\n\nconst options: readonly TidalFooterDeveloperOption[] = [\n  {\n    id: \"pnpm\",\n    label: \"pnpm\",\n    command: \"pnpm add react@19.3.0\",\n    filename: \"pnpm\",\n  },\n  {\n    id: \"npm\",\n    label: \"npm\",\n    command: \"npm install react@19.3.0\",\n    filename: \"npm\",\n  },\n  {\n    id: \"bun\",\n    label: \"Bun\",\n    command: \"bun add react@19.3.0\",\n    filename: \"Bun\",\n  },\n];\n\nfunction localLink(label: string, setStatus: (message: string) => void) {\n  return (event: MouseEvent<HTMLAnchorElement>) => {\n    if (\n      event.defaultPrevented ||\n      event.button !== 0 ||\n      event.metaKey ||\n      event.ctrlKey ||\n      event.shiftKey ||\n      event.altKey\n    ) {\n      return;\n    }\n    event.preventDefault();\n    setStatus(`${label} selected in this preview.`);\n  };\n}\n\nexport function FooterDeveloperDemo() {\n  const [selectedOptionId, setSelectedOptionId] = useState(\"pnpm\");\n  const [status, setStatus] = useState(\"No preview action selected.\");\n  const mountedRef = useRef(false);\n  const requestRef = useRef(0);\n  const pendingRef = useRef(\n    new Map<number, { timer: number; settle: () => void }>(),\n  );\n\n  useEffect(() => {\n    mountedRef.current = true;\n    return () => {\n      mountedRef.current = false;\n      requestRef.current += 1;\n      for (const { timer, settle } of pendingRef.current.values()) {\n        window.clearTimeout(timer);\n        settle();\n      }\n      pendingRef.current.clear();\n    };\n  }, []);\n\n  const clipboard = useMemo<TidalClipboardAdapter>(\n    () => ({\n      writeText(value) {\n        const request = ++requestRef.current;\n        if (mountedRef.current) {\n          setStatus(\"The preview adapter is receiving the command.\");\n        }\n        return new Promise<void>((resolve) => {\n          const settle = () => resolve();\n          const timer = window.setTimeout(() => {\n            pendingRef.current.delete(request);\n            if (mountedRef.current && request === requestRef.current) {\n              setStatus(`Preview adapter received ${value.length} characters.`);\n            }\n            resolve();\n          }, 280);\n          pendingRef.current.set(request, { timer, settle });\n        });\n      },\n    }),\n    [],\n  );\n  const groups: readonly TidalFooterDeveloperNavGroup[] = [\n    {\n      id: \"build\",\n      label: \"Build\",\n      links: [\n        {\n          id: \"api\",\n          label: \"API reference\",\n          href: \"#preview-api\",\n          onClick: localLink(\"API reference\", setStatus),\n        },\n        {\n          id: \"sdks\",\n          label: \"SDK guide\",\n          href: \"#preview-sdks\",\n          onClick: localLink(\"SDK guide\", setStatus),\n        },\n      ],\n    },\n    {\n      id: \"operate\",\n      label: \"Operate\",\n      links: [\n        {\n          id: \"status\",\n          label: \"Service status\",\n          href: \"#preview-status\",\n          onClick: localLink(\"Service status\", setStatus),\n        },\n        {\n          id: \"support\",\n          label: \"Developer support\",\n          href: \"#preview-support\",\n          onClick: localLink(\"Developer support\", setStatus),\n        },\n      ],\n    },\n  ];\n\n  return (\n    <TidalFooterDeveloper\n      brand={\n        <a href=\"#preview-home\" onClick={localLink(\"Home\", setStatus)}>\n          TidalUI\n        </a>\n      }\n      heading=\"Start building.\"\n      description=\"Add React to your project, then explore the docs.\"\n      options={options}\n      selectedOptionId={selectedOptionId}\n      onOptionChange={(id) => {\n        setSelectedOptionId(id);\n        setStatus(`${id} command selected.`);\n      }}\n      navigationGroups={groups}\n      requirements=\"Sample commands for React 19.3.0. This preview never runs them.\"\n      copyButtonProps={{\n        clipboard,\n        labels: {\n          idle: \"Copy sample\",\n          pending: \"Sending to adapter\",\n          success: \"Adapter received\",\n          error: \"Adapter failed\",\n        },\n        onCopyError: () => setStatus(\"The preview adapter rejected the copy.\"),\n      }}\n      legal={<span>Developer preview</span>}\n      status={<span role=\"status\">{status}</span>}\n    />\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <FooterDeveloperDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-developer.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "selectedOptionId",
      "type": "inferred-from-existing-demo",
      "initial": "\"pnpm\"",
      "setter": "setSelectedOptionId",
      "proposalCanBeRejected": false
    }
  ],
  "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."
    },
    {
      "name": "onOptionChange",
      "nativeType": "component 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": "Verify focus returns to the invoking control after dismissal.",
    "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": []
}
