{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "connection-status-svelte",
  "title": "Connection Status (Svelte)",
  "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/svelte@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/svelte/connection-status/ConnectionStatus.svelte",
      "content": "<!--\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-->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import ConnectionStatusRetry from \"./ConnectionStatusRetry.svelte\";\n  import ConnectionStatusText from \"./ConnectionStatusText.svelte\";\n  import { parts } from \"./parts\";\n\n  type RootProps = ComponentProps<typeof parts.Root>;\n  let props: { [K in keyof RootProps as K extends \"children\" ? never : K]: RootProps[K] } = $props();\n</script>\n\n<parts.Root {...props}><parts.Mark /><ConnectionStatusText /><ConnectionStatusRetry /></parts.Root>\n",
      "type": "registry:ui",
      "target": "@ui/svelte/connection-status/ConnectionStatus.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/connection-status/ConnectionStatusRetry.svelte",
      "content": "<!-- \"Retry\", unless you pass a `children` snippet. Rendered only with `onRetry`. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Retry> = $props();\n</script>\n\n{#snippet label({ label }: { label: string })}{label}{/snippet}\n\n<parts.Retry {...props} children={children ?? label} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/connection-status/ConnectionStatusRetry.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/connection-status/ConnectionStatusText.svelte",
      "content": "<!-- The state's words, or the countdown while reconnecting, unless you pass a `children` snippet. -->\n<script lang=\"ts\">\n  import type { ComponentProps } from \"svelte\";\n  import { parts } from \"./parts\";\n\n  let { children, ...props }: ComponentProps<typeof parts.Text> = $props();\n</script>\n\n{#snippet words({ text }: { text: string })}{text}{/snippet}\n\n<parts.Text {...props} children={children ?? words} />\n",
      "type": "registry:ui",
      "target": "@ui/svelte/connection-status/ConnectionStatusText.svelte"
    },
    {
      "path": "packages/agent-ui/src/svelte/connection-status/index.ts",
      "content": "import type { ComponentProps } from \"svelte\";\nimport ConnectionStatus from \"./ConnectionStatus.svelte\";\nimport ConnectionStatusRetry from \"./ConnectionStatusRetry.svelte\";\nimport ConnectionStatusText from \"./ConnectionStatusText.svelte\";\nimport { parts } from \"./parts\";\n\n/** The bare root, for arranging the parts yourself. */\nexport const ConnectionStatusRoot = parts.Root;\nexport const ConnectionStatusMark = parts.Mark;\n\nexport { ConnectionStatus, ConnectionStatusRetry, ConnectionStatusText };\nexport type ConnectionStatusProps = ComponentProps<typeof ConnectionStatus>;\nexport type ConnectionStatusTextProps = ComponentProps<typeof ConnectionStatusText>;\nexport type ConnectionStatusRetryProps = ComponentProps<typeof ConnectionStatusRetry>;\n",
      "type": "registry:ui",
      "target": "@ui/svelte/connection-status/index.ts"
    },
    {
      "path": "packages/agent-ui/src/svelte/connection-status/parts.ts",
      "content": "import { connectionStatusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/svelte/primitive\";\n\nexport const parts = createParts(connectionStatusPrimitive, {\n  root: \"div\",\n  mark: \"span\",\n  text: \"span\",\n  retry: \"button\",\n});\n",
      "type": "registry:ui",
      "target": "@ui/svelte/connection-status/parts.ts"
    }
  ],
  "meta": {
    "layer": "svelte"
  },
  "type": "registry:ui"
}
