{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "connection-status",
  "title": "Connection Status",
  "description": "A pill over a conversation that says the connection dropped, counts down and retries.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/react@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/react/connection-status.tsx",
      "content": "\"use client\";\n\nimport { connectionStatusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/react/primitive\";\nimport type { ComponentProps } from \"react\";\n\nconst parts = createParts(connectionStatusPrimitive, {\n  root: \"div\",\n  mark: \"span\",\n  text: \"span\",\n  retry: \"button\",\n});\n\nexport type ConnectionStatusProps = Omit<ComponentProps<typeof parts.Root>, \"children\">;\n\n/**\n * The connection as a pill over the top of a conversation: its mark, its words and Retry while `onRetry` is set.\n * Put it inside the Conversation, beside the viewport. To arrange the parts yourself, use `ConnectionStatusRoot`.\n */\nexport function ConnectionStatus(props: ConnectionStatusProps) {\n  return (\n    <parts.Root {...props}>\n      <ConnectionStatusMark />\n      <ConnectionStatusText />\n      <ConnectionStatusRetry />\n    </parts.Root>\n  );\n}\n\n/** The bare root, for arranging the parts yourself. */\nexport const ConnectionStatusRoot = parts.Root;\nexport const ConnectionStatusMark = parts.Mark;\n\nexport type ConnectionStatusTextProps = ComponentProps<typeof parts.Text>;\n\n/** The state's words, or the countdown while reconnecting, unless you pass children. */\nexport function ConnectionStatusText({ children = ({ text }) => text, ...props }: ConnectionStatusTextProps) {\n  return <parts.Text {...props}>{children}</parts.Text>;\n}\n\nexport type ConnectionStatusRetryProps = ComponentProps<typeof parts.Retry>;\n\n/** \"Retry\", unless you pass children. Rendered only with `onRetry`. */\nexport function ConnectionStatusRetry({\n  children = ({ label }) => label,\n  ...props\n}: ConnectionStatusRetryProps) {\n  return <parts.Retry {...props}>{children}</parts.Retry>;\n}\n",
      "type": "registry:ui",
      "target": "@ui/connection-status.tsx"
    }
  ],
  "meta": {
    "layer": "react"
  },
  "type": "registry:ui"
}
