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.
Files changed (49) hide show
  1. package/.idea/modules.xml +1 -1
  2. package/.idea/sonarlint/issuestore/index.pb +3 -35
  3. package/dist/build/static/js/bundle.min.js +1 -0
  4. package/package.json +76 -77
  5. package/public/index.html +108 -81
  6. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +464 -211
  7. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -246
  8. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  9. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1040 -924
  10. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -37
  11. package/src/YtChatView/chatWidget/index.tsx +2586 -2502
  12. package/src/YtChatView/logoBtn/index.css +3 -3
  13. package/src/YtChatView/logoBtn/index.jsx +103 -103
  14. package/src/YtChatView/logoSplitBtn/index.css +3 -3
  15. package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
  16. package/src/YtChatView/mobileChat/index.jsx +848 -0
  17. package/src/YtChatView/mobileChat/index.module.css +254 -0
  18. package/src/YtChatView/previewDialog/index.jsx +600 -600
  19. package/src/YtChatView/previewDialog/index.module.css +253 -253
  20. package/src/assets/aicenter/icon_agents.png +0 -0
  21. package/src/assets/aicenter/icon_history.png +0 -0
  22. package/src/assets/aicenter/icon_history_add.png +0 -0
  23. package/src/assets/aicenter/icon_history_headerbg.png +0 -0
  24. package/src/assets/aicenter/icon_history_upload.png +0 -0
  25. package/src/chatWidget/chatWindow/index.tsx +426 -426
  26. package/src/chatWidget/index.tsx +2193 -2193
  27. package/src/index.tsx +11 -10
  28. package/webpack.config.js +50 -50
  29. package/.idea/sonarlint/issuestore/2/e/2e9f70bf32b414323ca1647e2b6f26e1533ee2fc +0 -0
  30. package/.idea/sonarlint/issuestore/3/6/364385cedcce4c06de1901392ffeeac0caef0f3c +0 -0
  31. package/.idea/sonarlint/issuestore/3/9/39129446b425a1d640160c068e4194e96639eedf +0 -0
  32. package/.idea/sonarlint/issuestore/4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785 +0 -0
  33. package/.idea/sonarlint/issuestore/4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d +0 -0
  34. package/.idea/sonarlint/issuestore/4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be +0 -0
  35. package/.idea/sonarlint/issuestore/4/b/4b6989b8ccae808ebc45d02230d336ea53800365 +0 -0
  36. package/.idea/sonarlint/issuestore/5/a/5ab44fe33ca96299f51ad4778a73e425b92bf439 +0 -0
  37. package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
  38. package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
  39. package/.idea/sonarlint/issuestore/6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea +0 -0
  40. package/.idea/sonarlint/issuestore/8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8 +0 -0
  41. package/.idea/sonarlint/issuestore/c/c/cc2352788140b6778ac06df4b33f50b390d2d8be +0 -0
  42. package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
  43. package/.idea/sonarlint/issuestore/d/7/d747cbed4201192dfa83a1a51345b020a050b647 +0 -0
  44. package/.idea/sonarlint/issuestore/d/9/d938938695d447dadda115e28781c6541f53fc4f +0 -0
  45. package/build/static/js/bundle.min.js +0 -2
  46. package/build/static/js/bundle.min.js.LICENSE.txt +0 -132
  47. /package/.idea/{langflow-embedded-chat.iml → langflow-embedded-chat-clone.iml} +0 -0
  48. /package/.idea/sonarlint/issuestore/{0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5 → 7/0/7030d0b2f71b999ff89a343de08c414af32fc93a} +0 -0
  49. /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
- export type ChatMessagePlaceholderType = {
17
- bot_message_style?: React.CSSProperties;
18
- };
19
-
20
- export type embedAppExtend = {
21
- http_extend: {
22
- bd:{},
23
- header: {
24
- appId: string;
25
- metaId: string;
26
- menuId: string;
27
- };
28
- params: {
29
- code: string;
30
- };
31
- body: {
32
- code: string
33
- }
34
- operator_id: string;
35
- upload_file_path_list: string[];
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
+ };