yt-chat-components 1.1.4 → 1.1.6

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 (42) hide show
  1. package/.idea/modules.xml +1 -1
  2. package/.idea/sonarlint/issuestore/index.pb +3 -31
  3. package/dist/build/static/js/bundle.min.js +1 -0
  4. package/package.json +81 -79
  5. package/public/index.html +108 -108
  6. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +498 -498
  7. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -249
  8. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  9. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1099 -1099
  10. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -50
  11. package/src/YtChatView/chatWidget/index.tsx +2593 -2593
  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 +945 -945
  17. package/src/YtChatView/mobileChat/index.module.css +253 -253
  18. package/src/YtChatView/previewDialog/index.jsx +600 -600
  19. package/src/YtChatView/previewDialog/index.module.css +253 -253
  20. package/src/chatWidget/chatWindow/index.tsx +426 -426
  21. package/src/chatWidget/index.tsx +2195 -2195
  22. package/src/index.tsx +10 -10
  23. package/webpack.config.js +50 -50
  24. package/.idea/sonarlint/issuestore/3/6/364385cedcce4c06de1901392ffeeac0caef0f3c +0 -0
  25. package/.idea/sonarlint/issuestore/3/9/39129446b425a1d640160c068e4194e96639eedf +0 -0
  26. package/.idea/sonarlint/issuestore/4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785 +0 -0
  27. package/.idea/sonarlint/issuestore/4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d +0 -0
  28. package/.idea/sonarlint/issuestore/4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be +0 -0
  29. package/.idea/sonarlint/issuestore/4/b/4b6989b8ccae808ebc45d02230d336ea53800365 +0 -0
  30. package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
  31. package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
  32. package/.idea/sonarlint/issuestore/6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea +0 -0
  33. package/.idea/sonarlint/issuestore/8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8 +0 -0
  34. package/.idea/sonarlint/issuestore/c/c/cc2352788140b6778ac06df4b33f50b390d2d8be +0 -0
  35. package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
  36. package/.idea/sonarlint/issuestore/d/7/d747cbed4201192dfa83a1a51345b020a050b647 +0 -0
  37. package/.idea/sonarlint/issuestore/d/9/d938938695d447dadda115e28781c6541f53fc4f +0 -0
  38. package/build/static/js/bundle.min.js +0 -2
  39. package/build/static/js/bundle.min.js.LICENSE.txt +0 -132
  40. /package/.idea/{langflow-embedded-chat.iml → langflow-embedded-chat-clone.iml} +0 -0
  41. /package/.idea/sonarlint/issuestore/{0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5 → 7/0/7030d0b2f71b999ff89a343de08c414af32fc93a} +0 -0
  42. /package/.idea/sonarlint/issuestore/{2/7/27e69cb561aeea20c1afbdd32d260dd60b89a81b → 9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7} +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
+ };