Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ui.ts

45 lines1.4 KB

1// Barrel entry for the `@tanstack/ai-react/ui` subpath. The JSX
2// implementation lives under `./chat-ui`; this `.ts` re-export exists so
3// kiira's dist->src resolution (which maps `dist/esm/ui.d.ts` to `src/ui.ts`,
4// never a directory index) can type-check docs snippets that import this
5// subpath.
6export {
7 createChatUI,
8 type ChatUIComponents,
9 type ChatUIFactoryConfig,
10 type ChatUIHost,
11 type ChatUIQueueItem,
12 type InputProps,
13 type InterruptProps,
14 type LayoutProps,
15 type MessageProps,
16 type PartProps,
17 type QueueProps,
18 type SubagentPartsProps,
19 type SubagentProps,
20 type ToolProps,
21} from './chat-ui/create-ui'
22export { createChatHook } from './chat-ui/create-chat-hook'
23export {
24 createChatHookContexts,
25 type ChatUIContexts,
26} from './chat-ui/create-ui-contexts'
27export { Chat, useChatContext, type ChatProps } from './chat-ui/chat'
28export { ChatMessages, type ChatMessagesProps } from './chat-ui/chat-messages'
29export {
30 ChatMessage,
31 type ChatMessageProps,
32 type ToolCallRenderProps,
33} from './chat-ui/chat-message'
34export {
35 ChatInput,
36 type ChatInputProps,
37 type ChatInputRenderProps,
38} from './chat-ui/chat-input'
39export {
40 ToolApproval,
41 type ToolApprovalProps,
42 type ToolApprovalRenderProps,
43} from './chat-ui/tool-approval'
44export { TextPart, type TextPartProps } from './chat-ui/text-part'
45export { ThinkingPart, type ThinkingPartProps } from './chat-ui/thinking-part'