yt-chat-components 0.9.9 → 1.0.1
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/modules.xml +1 -1
- package/.idea/sonarlint/issuestore/index.pb +3 -35
- package/dist/build/static/js/bundle.min.js +1 -0
- package/package.json +76 -77
- package/public/index.html +108 -81
- package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +464 -211
- package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -246
- package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
- package/src/YtChatView/chatWidget/chatWindow/index.tsx +1040 -924
- package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -37
- package/src/YtChatView/chatWidget/index.tsx +2586 -2502
- 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 +848 -0
- package/src/YtChatView/mobileChat/index.module.css +254 -0
- package/src/YtChatView/previewDialog/index.jsx +600 -600
- package/src/YtChatView/previewDialog/index.module.css +253 -253
- package/src/assets/aicenter/icon_agents.png +0 -0
- package/src/assets/aicenter/icon_history.png +0 -0
- package/src/assets/aicenter/icon_history_add.png +0 -0
- package/src/assets/aicenter/icon_history_headerbg.png +0 -0
- package/src/assets/aicenter/icon_history_upload.png +0 -0
- package/src/chatWidget/chatWindow/index.tsx +426 -426
- package/src/chatWidget/index.tsx +2193 -2193
- package/src/index.tsx +11 -10
- package/webpack.config.js +50 -50
- package/.idea/sonarlint/issuestore/2/e/2e9f70bf32b414323ca1647e2b6f26e1533ee2fc +0 -0
- package/.idea/sonarlint/issuestore/3/6/364385cedcce4c06de1901392ffeeac0caef0f3c +0 -0
- package/.idea/sonarlint/issuestore/3/9/39129446b425a1d640160c068e4194e96639eedf +0 -0
- package/.idea/sonarlint/issuestore/4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785 +0 -0
- package/.idea/sonarlint/issuestore/4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d +0 -0
- package/.idea/sonarlint/issuestore/4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be +0 -0
- package/.idea/sonarlint/issuestore/4/b/4b6989b8ccae808ebc45d02230d336ea53800365 +0 -0
- package/.idea/sonarlint/issuestore/5/a/5ab44fe33ca96299f51ad4778a73e425b92bf439 +0 -0
- package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
- package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
- package/.idea/sonarlint/issuestore/6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea +0 -0
- package/.idea/sonarlint/issuestore/8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8 +0 -0
- package/.idea/sonarlint/issuestore/c/c/cc2352788140b6778ac06df4b33f50b390d2d8be +0 -0
- package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
- package/.idea/sonarlint/issuestore/d/7/d747cbed4201192dfa83a1a51345b020a050b647 +0 -0
- package/.idea/sonarlint/issuestore/d/9/d938938695d447dadda115e28781c6541f53fc4f +0 -0
- package/build/static/js/bundle.min.js +0 -2
- package/build/static/js/bundle.min.js.LICENSE.txt +0 -132
- /package/.idea/{langflow-embedded-chat.iml → langflow-embedded-chat-clone.iml} +0 -0
- /package/.idea/sonarlint/issuestore/{0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5 → 7/0/7030d0b2f71b999ff89a343de08c414af32fc93a} +0 -0
- /package/.idea/sonarlint/issuestore/{2/7/27e69cb561aeea20c1afbdd32d260dd60b89a81b → 9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7} +0 -0
|
@@ -1,37 +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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
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
|
+
};
|