@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.
- package/dist/chatkit.cjs.js +75 -75
- package/dist/chatkit.es.js +16896 -16655
- package/dist/components/Avatar/Avatar-1.d.ts +6 -0
- package/dist/components/Avatar/Avatar-10.d.ts +6 -0
- package/dist/components/Avatar/Avatar-2.d.ts +6 -0
- package/dist/components/Avatar/Avatar-3.d.ts +6 -0
- package/dist/components/Avatar/Avatar-4.d.ts +6 -0
- package/dist/components/Avatar/Avatar-5.d.ts +6 -0
- package/dist/components/Avatar/Avatar-6.d.ts +6 -0
- package/dist/components/Avatar/Avatar-7.d.ts +6 -0
- package/dist/components/Avatar/Avatar-8.d.ts +6 -0
- package/dist/components/Avatar/Avatar-9.d.ts +6 -0
- package/dist/components/Avatar/index.d.ts +38 -0
- package/dist/components/base/assistant/ConversationHistory.d.ts +1 -1
- package/dist/components/base/assistant/MessageItem.d.ts +2 -0
- package/dist/components/base/assistant/MessageList.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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;
|