yt-chat-components 1.2.0 → 1.2.2
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/.idea/sonarlint/issuestore/index.pb +0 -7
- package/package.json +78 -80
- package/public/index.html +108 -108
- package/src/YtChatView/chatWidget/chatWindow/callInterface/index.module.css +50 -50
- package/src/YtChatView/chatWidget/chatWindow/callInterface/index.tsx +549 -542
- package/src/YtChatView/chatWidget/chatWindow/callInterface/style.ts +44 -44
- package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +501 -501
- package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.tsx +23 -23
- package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -249
- package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
- package/src/YtChatView/chatWidget/chatWindow/index.tsx +1186 -1185
- package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -50
- package/src/YtChatView/chatWidget/index.tsx +2596 -2596
- package/src/YtChatView/logoBtn/index.css +3 -3
- package/src/YtChatView/logoBtn/index.jsx +103 -103
- package/src/YtChatView/logoSplitBtn/index.css +3 -3
- package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
- package/src/YtChatView/mobileChat/index.jsx +945 -945
- package/src/YtChatView/mobileChat/index.module.css +253 -253
- package/src/YtChatView/previewDialog/index.jsx +601 -601
- package/src/YtChatView/previewDialog/index.module.css +253 -253
- package/src/chatWidget/chatWindow/index.tsx +426 -426
- package/src/chatWidget/index.tsx +2195 -2195
- package/src/index.tsx +127 -11
- package/webpack.config.js +50 -50
- package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/issuestore/9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7 +0 -0
- package/build/asset-manifest.json +0 -19
- package/build/index.html +0 -1
- package/build/static/css/main.8ee59d98.css +0 -2
- package/build/static/css/main.8ee59d98.css.map +0 -1
- package/build/static/js/main.ae39ed55.js +0 -3
- package/build/static/js/main.ae39ed55.js.LICENSE.txt +0 -181
- package/build/static/js/main.ae39ed55.js.map +0 -1
- package/build/static/media/aiavatar.74bafa995cce4c01b804.png +0 -0
- package/build/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png +0 -0
- package/build/static/media/icon_history_headerbg.50747e81d01257f55346.png +0 -0
- package/build/static/media/moreAi.285e66289f838072060c.png +0 -0
- package/build/static/media/moreBg.9fc998472925cecd89f2.png +0 -0
- package/build/static/media/phone.19bc6f0d2e9eae4863ae.png +0 -0
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export type ChatMessageType = {
|
|
2
|
-
message: {
|
|
3
|
-
message: string; // 真正的文本消息
|
|
4
|
-
isSend: boolean; // true为用户发送,false为机器人发送
|
|
5
|
-
rawInfo?: any; // 消息的原始信息,对应数据库字段
|
|
6
|
-
};
|
|
7
|
-
isSend: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
host_url: string;
|
|
10
|
-
bot_message_style?: React.CSSProperties;
|
|
11
|
-
user_message_style?: React.CSSProperties;
|
|
12
|
-
error_message_style?: React.CSSProperties;
|
|
13
|
-
rawInfo?: any;
|
|
14
|
-
type?: MessageType,
|
|
15
|
-
handleSendMessage?: (message: string, callback?: Function) => void;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export enum MessageType {
|
|
19
|
-
text,
|
|
20
|
-
form,
|
|
21
|
-
echart // 目前只用于渲染loading
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const InputValueType = {
|
|
25
|
-
text: "text",
|
|
26
|
-
form : "form",
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type ChatMessagePlaceholderType = {
|
|
30
|
-
bot_message_style?: React.CSSProperties;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type embedAppExtend = {
|
|
34
|
-
http_extend: {
|
|
35
|
-
bd:{},
|
|
36
|
-
header: {
|
|
37
|
-
appId: string;
|
|
38
|
-
metaId: string;
|
|
39
|
-
menuId: string;
|
|
40
|
-
};
|
|
41
|
-
params: {
|
|
42
|
-
code: string;
|
|
43
|
-
};
|
|
44
|
-
body: {
|
|
45
|
-
code: string
|
|
46
|
-
}
|
|
47
|
-
operator_id: string;
|
|
48
|
-
upload_file_path_list: string[];
|
|
49
|
-
};
|
|
50
|
-
};
|
|
1
|
+
export type ChatMessageType = {
|
|
2
|
+
message: {
|
|
3
|
+
message: string; // 真正的文本消息
|
|
4
|
+
isSend: boolean; // true为用户发送,false为机器人发送
|
|
5
|
+
rawInfo?: any; // 消息的原始信息,对应数据库字段
|
|
6
|
+
};
|
|
7
|
+
isSend: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
host_url: string;
|
|
10
|
+
bot_message_style?: React.CSSProperties;
|
|
11
|
+
user_message_style?: React.CSSProperties;
|
|
12
|
+
error_message_style?: React.CSSProperties;
|
|
13
|
+
rawInfo?: any;
|
|
14
|
+
type?: MessageType,
|
|
15
|
+
handleSendMessage?: (message: string, callback?: Function) => void;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export enum MessageType {
|
|
19
|
+
text,
|
|
20
|
+
form,
|
|
21
|
+
echart // 目前只用于渲染loading
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const InputValueType = {
|
|
25
|
+
text: "text",
|
|
26
|
+
form : "form",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ChatMessagePlaceholderType = {
|
|
30
|
+
bot_message_style?: React.CSSProperties;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type embedAppExtend = {
|
|
34
|
+
http_extend: {
|
|
35
|
+
bd:{},
|
|
36
|
+
header: {
|
|
37
|
+
appId: string;
|
|
38
|
+
metaId: string;
|
|
39
|
+
menuId: string;
|
|
40
|
+
};
|
|
41
|
+
params: {
|
|
42
|
+
code: string;
|
|
43
|
+
};
|
|
44
|
+
body: {
|
|
45
|
+
code: string
|
|
46
|
+
}
|
|
47
|
+
operator_id: string;
|
|
48
|
+
upload_file_path_list: string[];
|
|
49
|
+
};
|
|
50
|
+
};
|