yt-chat-components 1.2.3 → 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 (35) 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 +3 -3
  6. package/build/index.html +1 -1
  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.map +1 -1
  10. package/package.json +80 -79
  11. package/public/index.html +108 -108
  12. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.module.css +50 -50
  13. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.tsx +549 -549
  14. package/src/YtChatView/chatWidget/chatWindow/callInterface/style.ts +44 -44
  15. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +501 -501
  16. package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.tsx +23 -23
  17. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -249
  18. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  19. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1182 -1186
  20. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -50
  21. package/src/YtChatView/chatWidget/index.tsx +2598 -2596
  22. package/src/YtChatView/logoBtn/index.css +3 -3
  23. package/src/YtChatView/logoBtn/index.jsx +103 -103
  24. package/src/YtChatView/logoSplitBtn/index.css +3 -3
  25. package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
  26. package/src/YtChatView/mobileChat/index.jsx +945 -945
  27. package/src/YtChatView/mobileChat/index.module.css +253 -253
  28. package/src/YtChatView/previewDialog/index.jsx +601 -601
  29. package/src/YtChatView/previewDialog/index.module.css +253 -253
  30. package/src/chatWidget/chatWindow/index.tsx +426 -426
  31. package/src/chatWidget/index.tsx +2195 -2195
  32. package/src/index.tsx +10 -10
  33. package/webpack.config.js +50 -50
  34. package/build/static/css/main.e41b943a.css +0 -2
  35. package/build/static/css/main.e41b943a.css.map +0 -1
@@ -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
+ };