yt-chat-components 1.2.2 → 1.2.4

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/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  2. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  3. package/.idea/sonarlint/issuestore/9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7 +0 -0
  4. package/.idea/sonarlint/issuestore/index.pb +7 -0
  5. package/build/asset-manifest.json +20 -0
  6. package/build/index.html +1 -0
  7. package/build/static/css/main.8ee59d98.css +2 -0
  8. package/build/static/css/main.8ee59d98.css.map +1 -0
  9. package/build/static/js/main.371ede49.js +3 -0
  10. package/build/static/js/main.371ede49.js.LICENSE.txt +181 -0
  11. package/build/static/js/main.371ede49.js.map +1 -0
  12. package/build/static/media/ai_call_working.a63afffab31dc8264d05.gif +0 -0
  13. package/build/static/media/aiavatar.74bafa995cce4c01b804.png +0 -0
  14. package/build/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png +0 -0
  15. package/build/static/media/icon_history_headerbg.50747e81d01257f55346.png +0 -0
  16. package/build/static/media/moreAi.285e66289f838072060c.png +0 -0
  17. package/build/static/media/moreBg.9fc998472925cecd89f2.png +0 -0
  18. package/build/static/media/phone.19bc6f0d2e9eae4863ae.png +0 -0
  19. package/package.json +80 -78
  20. package/public/index.html +108 -108
  21. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.module.css +50 -50
  22. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.tsx +549 -549
  23. package/src/YtChatView/chatWidget/chatWindow/callInterface/style.ts +44 -44
  24. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +501 -501
  25. package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.tsx +23 -23
  26. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -249
  27. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  28. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1182 -1186
  29. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -50
  30. package/src/YtChatView/chatWidget/index.tsx +2598 -2596
  31. package/src/YtChatView/logoBtn/index.css +3 -3
  32. package/src/YtChatView/logoBtn/index.jsx +103 -103
  33. package/src/YtChatView/logoSplitBtn/index.css +3 -3
  34. package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
  35. package/src/YtChatView/mobileChat/index.jsx +945 -945
  36. package/src/YtChatView/mobileChat/index.module.css +253 -253
  37. package/src/YtChatView/previewDialog/index.jsx +601 -601
  38. package/src/YtChatView/previewDialog/index.module.css +253 -253
  39. package/src/chatWidget/chatWindow/index.tsx +426 -426
  40. package/src/chatWidget/index.tsx +2195 -2195
  41. package/src/index.tsx +11 -127
  42. package/webpack.config.js +50 -50
@@ -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
+ };