初始化模版工程
This commit is contained in:
37
components/nova-sdk/index.ts
Normal file
37
components/nova-sdk/index.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Nova SDK Kit - React 组件库
|
||||
*
|
||||
* 提供聊天界面的核心组件:
|
||||
* - MessageInput: 消息输入框
|
||||
* - MessageList: 消息列表/对话流
|
||||
* - TaskPanel: 图片和文件展示面板
|
||||
* - NovaChat: 整合上述组件的完整聊天界面
|
||||
*/
|
||||
|
||||
// 类型导出
|
||||
export * from './types'
|
||||
|
||||
// Context & Provider
|
||||
export { NovaKitProvider } from './context/NovaKitProvider'
|
||||
export type { NovaKitProviderProps } from './context/NovaKitProvider'
|
||||
export { useNovaKit } from './context/useNovaKit'
|
||||
|
||||
// 消息输入框组件
|
||||
export { MessageInput } from './message-input'
|
||||
export type { MessageInputProps } from './message-input'
|
||||
|
||||
// 消息列表组件
|
||||
export { MessageList, MessageItem } from './message-list'
|
||||
export type { MessageListProps } from './message-list'
|
||||
|
||||
// 任务面板组件(图片/文件展示)
|
||||
export { TaskPanel, ArtifactList, ArtifactPreview } from './task-panel'
|
||||
export { isImageFile } from './task-panel/utils'
|
||||
export type { TaskPanelProps } from './task-panel'
|
||||
|
||||
// 完整聊天组件
|
||||
export { NovaChat } from './nova-chat'
|
||||
export type { NovaChatProps, ApiEvent } from './nova-chat'
|
||||
|
||||
// 工具相关组件
|
||||
export * from './tools'
|
||||
Reference in New Issue
Block a user