@kweaver-ai/chatkit 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-1 组件
4
+ */
5
+ export declare const Avatar1: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar1;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-10 组件
4
+ */
5
+ export declare const Avatar10: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar10;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-2 组件
4
+ */
5
+ export declare const Avatar2: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar2;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-3 组件
4
+ */
5
+ export declare const Avatar3: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar3;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-4 组件
4
+ */
5
+ export declare const Avatar4: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar4;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-5 组件
4
+ */
5
+ export declare const Avatar5: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar5;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-6 组件
4
+ */
5
+ export declare const Avatar6: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar6;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-7 组件
4
+ */
5
+ export declare const Avatar7: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar7;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-8 组件
4
+ */
5
+ export declare const Avatar8: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar8;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Avatar-9 组件
4
+ */
5
+ export declare const Avatar9: React.FC<React.SVGProps<SVGSVGElement>>;
6
+ export default Avatar9;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { Avatar1 } from './Avatar-1';
3
+ import { Avatar2 } from './Avatar-2';
4
+ import { Avatar3 } from './Avatar-3';
5
+ import { Avatar4 } from './Avatar-4';
6
+ import { Avatar5 } from './Avatar-5';
7
+ import { Avatar6 } from './Avatar-6';
8
+ import { Avatar7 } from './Avatar-7';
9
+ import { Avatar8 } from './Avatar-8';
10
+ import { Avatar9 } from './Avatar-9';
11
+ import { Avatar10 } from './Avatar-10';
12
+ /**
13
+ * Avatar 组件属性接口
14
+ */
15
+ export interface AvatarProps extends React.SVGProps<SVGSVGElement> {
16
+ /** SVG 名称,支持 '1' 到 '10' */
17
+ name: string;
18
+ }
19
+ /**
20
+ * Avatar 组件
21
+ * 根据传入的 name 参数渲染对应的 Avatar 图标
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * <Avatar name="1" width={48} height={48} />
26
+ * <Avatar name="10" className="avatar-icon" />
27
+ * ```
28
+ */
29
+ export declare const Avatar: React.FC<AvatarProps>;
30
+ /**
31
+ * 根据名称获取 Avatar 组件
32
+ *
33
+ * @param name - SVG 名称,支持 '1' 到 '10'
34
+ * @returns 对应的 Avatar 组件,如果不存在则返回 null
35
+ */
36
+ export declare const getAvatarByName: (name: string) => React.FC<React.SVGProps<SVGSVGElement>> | null;
37
+ export { Avatar1, Avatar2, Avatar3, Avatar4, Avatar5, Avatar6, Avatar7, Avatar8, Avatar9, Avatar10 };
38
+ export default Avatar;
@@ -15,7 +15,7 @@ interface ConversationHistoryProps {
15
15
  /** 删除指定会话的回调函数 */
16
16
  onDeleteConversation: (conversationId: string) => Promise<void>;
17
17
  /** Agent Name (agent 名称) */
18
- agentName?: string;
18
+ agentInfo?: any;
19
19
  }
20
20
  /**
21
21
  * 历史会话列表组件
@@ -8,6 +8,8 @@ interface MessageItemProps {
8
8
  message: ChatMessage;
9
9
  /** 是否正在流式更新 */
10
10
  isStreaming?: boolean;
11
+ /** 助手信息 */
12
+ agentAvatar?: string;
11
13
  }
12
14
  /**
13
15
  * MessageItem 组件
@@ -8,6 +8,8 @@ interface MessageListProps {
8
8
  messages: ChatMessage[];
9
9
  /** 当前正在流式更新的消息 ID */
10
10
  streamingMessageId?: string | null;
11
+ /** 助手信息 */
12
+ agentAvatar?: string;
11
13
  }
12
14
  /**
13
15
  * MessageList 组件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kweaver-ai/chatkit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },