{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "connection-status-vue",
  "title": "Connection Status (Vue)",
  "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/vue@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/vue/connection-status.ts",
      "content": "import { connectionStatusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/vue/primitive\";\nimport { defineComponent, h } from \"vue\";\n\nconst parts = createParts(connectionStatusPrimitive, {\n  root: \"div\",\n  mark: \"span\",\n  text: \"span\",\n  retry: \"button\",\n});\n\n/** The bare root, for arranging the parts yourself. */\nexport const ConnectionStatusRoot = parts.Root;\nexport const ConnectionStatusMark = parts.Mark;\n\n/** The state's words, or the countdown while reconnecting, unless you fill the default slot. */\nexport const ConnectionStatusText = defineComponent({\n  name: \"ConnectionStatusText\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Text, attrs, {\n        ...slots,\n        default: slots.default ?? (({ state }: { state: { text: string } }) => state.text),\n      });\n  },\n}) as unknown as typeof parts.Text;\n\n/** \"Retry\", unless you fill the default slot. Rendered only with `on-retry`. */\nexport const ConnectionStatusRetry = defineComponent({\n  name: \"ConnectionStatusRetry\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Retry, attrs, {\n        ...slots,\n        default: slots.default ?? (({ state }: { state: { label: string } }) => state.label),\n      });\n  },\n}) as unknown as typeof parts.Retry;\n\n/**\n * The connection as a pill over the top of a conversation: its mark, its words and Retry while `on-retry` is set.\n * Put it inside the Conversation, beside the viewport. To arrange the parts yourself, use `ConnectionStatusRoot`.\n */\nexport const ConnectionStatus = defineComponent({\n  name: \"ConnectionStatus\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Root, attrs, {\n        render: slots.render,\n        default: () => [h(ConnectionStatusMark), h(ConnectionStatusText), h(ConnectionStatusRetry)],\n      });\n  },\n}) as unknown as typeof parts.Root;\n",
      "type": "registry:ui",
      "target": "@ui/vue/connection-status.ts"
    }
  ],
  "meta": {
    "layer": "vue"
  },
  "type": "registry:ui"
}
