@cometchat/chat-uikit-react 6.1.2 → 6.2.0

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 (61) hide show
  1. package/dist/assets/Profile.png +0 -0
  2. package/dist/assets/chat-history.svg +3 -0
  3. package/dist/assets/copy-text.svg +3 -0
  4. package/dist/assets/new-chat.svg +3 -0
  5. package/dist/assets/right-arrow.svg +3 -0
  6. package/dist/assets/send-message.svg +3 -0
  7. package/dist/assets/stop-message.svg +3 -0
  8. package/dist/assets/warning-small.svg +0 -0
  9. package/dist/index.d.ts +258 -34
  10. package/dist/index.js +9 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles/CometChatAIAssistantChat.css +456 -0
  13. package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
  14. package/dist/styles/CometChatAIAssistantMessageBubble.css +86 -0
  15. package/dist/styles/CometChatConversations.css +3 -0
  16. package/dist/styles/CometChatErrorView.css +22 -0
  17. package/dist/styles/CometChatMessageComposer.css +9 -9
  18. package/dist/styles/CometChatMessageHeader.css +2 -4
  19. package/dist/styles/CometChatMessageList.css +4 -4
  20. package/dist/styles/CometChatStreamMessageBubble.css +154 -0
  21. package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
  22. package/dist/styles/CometChatToolCallResultBubble.css +91 -0
  23. package/dist/styles/components/CometChatAIAssistantChat.css +456 -0
  24. package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
  25. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +86 -0
  26. package/dist/styles/components/CometChatConversations.css +3 -0
  27. package/dist/styles/components/CometChatErrorView.css +22 -0
  28. package/dist/styles/components/CometChatMessageComposer.css +9 -9
  29. package/dist/styles/components/CometChatMessageHeader.css +2 -4
  30. package/dist/styles/components/CometChatMessageList.css +4 -4
  31. package/dist/styles/components/CometChatStreamMessageBubble.css +154 -0
  32. package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
  33. package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
  34. package/dist/styles/components/index.css +8 -2
  35. package/dist/styles/css-variables.css +5 -0
  36. package/dist/styles/index.css +8 -2
  37. package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
  38. package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
  39. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
  40. package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
  41. package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
  42. package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
  43. package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
  44. package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
  45. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
  46. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  47. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
  48. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
  49. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
  50. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  51. package/dist/types/constants/CometChatUIKitConstants.d.ts +15 -0
  52. package/dist/types/events/CometChatMessageEvents.d.ts +3 -0
  53. package/dist/types/index.d.ts +7 -0
  54. package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
  55. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
  56. package/dist/types/services/stream-message.service.d.ts +44 -0
  57. package/dist/types/utils/DataSource.d.ts +9 -1
  58. package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
  59. package/dist/types/utils/MessagesDataSource.d.ts +15 -6
  60. package/dist/types/utils/util.d.ts +2 -0
  61. package/package.json +6 -3
@@ -493,6 +493,9 @@ background: var(--cometchat-icon-color-secondary, #A1A1A1);
493
493
  background: var(--cometchat-background-color-01, #FFF);
494
494
 
495
495
  }
496
+ .cometchat-conversations .cometchat-conversations__list-item-agent .cometchat-list-item__title-container {
497
+ max-width: 90%;
498
+ }
496
499
 
497
500
  .cometchat-conversations__shimmer-item {
498
501
  width: 100%;
@@ -0,0 +1,22 @@
1
+ .cometchat-error-view {
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: flex-start;
6
+ padding: var(--cometchat-padding-4);
7
+ box-sizing: border-box;
8
+ border-radius: var(--cometchat-radius-2);
9
+ border: 1px solid var(--cometchat-border-color-default);
10
+ background: var(--cometchat-error-color-100);
11
+ width: fit-content;
12
+ margin-top: var(--cometchat-margin-2);
13
+ }
14
+ .cometchat-error-view__message {
15
+ font: var(--cometchat-font-caption1-regular);
16
+ text-align: left;
17
+ line-height: 1.4;
18
+ margin: 0;
19
+ word-wrap: break-word;
20
+ hyphens: auto;
21
+ color: var(--cometchat-error-color);
22
+ }
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  /* Styling for buttons with no specific class */
95
- .cometchat-message-composer div:not([class]) .cometchat-button {
95
+ .cometchat-message-composer__buttons .cometchat-button {
96
96
  width: fit-content;
97
97
  background: transparent;
98
98
  padding: 0;
@@ -257,41 +257,41 @@
257
257
  }
258
258
 
259
259
  /* Send button icon default styling */
260
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon {
260
+ .cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon {
261
261
  background: var(--cometchat-static-white);
262
262
  }
263
263
 
264
264
  /* Icon styling for buttons with no specific class */
265
- .cometchat-message-composer div:not([class]) .cometchat-button .cometchat-button__icon {
265
+ .cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon {
266
266
  background: var(--cometchat-icon-color-secondary);
267
267
  }
268
268
 
269
- .cometchat-message-composer div:not([class]) .cometchat-button .cometchat-button__icon:hover {
269
+ .cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon:hover {
270
270
  background: var(--cometchat-primary-color, #6852D6);
271
271
  }
272
272
 
273
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {
273
+ .cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {
274
274
  background: var(--cometchat-static-white);
275
275
  }
276
276
 
277
277
  /* Active emoji keyboard button icon */
278
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__emoji-keyboard-button-active .cometchat-button__icon {
278
+ .cometchat-message-composer__buttons .cometchat-message-composer__emoji-keyboard-button-active .cometchat-button__icon {
279
279
  background: var(--cometchat-primary-color);
280
280
  }
281
281
 
282
282
  /* Active action sheet button icon */
283
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {
283
+ .cometchat-message-composer__buttons .cometchat-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {
284
284
  background: var(--cometchat-primary-color);
285
285
  }
286
286
 
287
287
  /* Active voice recording button icon */
288
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__voice-recording-button-active .cometchat-button__icon {
288
+ .cometchat-message-composer__buttons .cometchat-message-composer__voice-recording-button-active .cometchat-button__icon {
289
289
  background: var(--cometchat-primary-color);
290
290
  }
291
291
 
292
292
 
293
293
  /* Active stickerkeyboard button icon */
294
- .cometchat-message-composer div:not([class]) .cometchat-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {
294
+ .cometchat-message-composer__buttons .cometchat-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {
295
295
  background: var(--cometchat-primary-color);
296
296
  }
297
297
  .cometchat-message-composer__input-mobile{
@@ -25,10 +25,8 @@
25
25
  width: 100%;
26
26
  text-align: left;
27
27
  height: 100%;
28
- display: flex;
29
- align-items: center;
30
- justify-content: flex-start;
31
28
  min-height: 17px;
29
+ display: block;
32
30
  }
33
31
 
34
32
  /* Subtitle styling for typing state in the message header */
@@ -57,7 +55,7 @@
57
55
  }
58
56
 
59
57
  .cometchat-message-header .cometchat-list-item__trailing-view {
60
- display: none;
58
+ width: auto;
61
59
  }
62
60
 
63
61
  /* Styling for the back button in the message header */
@@ -482,7 +482,7 @@ width: fit-content;
482
482
  border-radius: var(--cometchat-radius-max, 8px);
483
483
  background: var(--cometchat-shimmer-gradient-color);
484
484
  background-size: 200% 100%;
485
- animation: shimmer .8s infinite;
485
+ animation: listLoadingAnimation .8s infinite;
486
486
  margin-right: var(--cometchat-margin-2);
487
487
 
488
488
  }
@@ -515,7 +515,7 @@ width: fit-content;
515
515
  align-items: center;
516
516
  background: var(--cometchat-shimmer-gradient-color);
517
517
  background-size: 200% 100%;
518
- animation: shimmer .8s infinite;
518
+ animation: listLoadingAnimation .8s infinite;
519
519
  border-radius: var(--cometchat-radius-2, 8px);
520
520
  }
521
521
 
@@ -524,7 +524,7 @@ width: fit-content;
524
524
  height: 53px;
525
525
  background: var(--cometchat-shimmer-gradient-color);
526
526
  background-size: 200% 100%;
527
- animation: shimmer .8s infinite;
527
+ animation: listLoadingAnimation .8s infinite;
528
528
  border-radius: var(--cometchat-radius-2, 8px);
529
529
  }
530
530
 
@@ -653,7 +653,7 @@ width: fit-content;
653
653
  }
654
654
 
655
655
 
656
- @keyframes shimmer {
656
+ @keyframes listLoadingAnimation {
657
657
  0% {
658
658
  background-position: 200% 0;
659
659
  }
@@ -0,0 +1,154 @@
1
+ .cometchat-stream-message-bubble * {
2
+ box-sizing: border-box;
3
+ max-width: 100%;
4
+ overflow: hidden;
5
+ }
6
+
7
+ .cometchat-stream-message-bubble .cometchat-stream-message-bubble__copy {
8
+ mask: url("../../assets/Copy.svg") center center no-repeat;
9
+ -webkit-mask: url("../../assets/Copy.svg") center center no-repeat;
10
+ mask-size: contain;
11
+ -webkit-mask-size: contain;
12
+ align-self: flex-start;
13
+ display: flex;
14
+ justify-content: flex-start;
15
+ align-items: flex-start;
16
+ margin-top: var(--cometchat-margin-3);
17
+ height: 20px;
18
+ width: 20px;
19
+ background: var(--cometchat-icon-color-secondary);
20
+
21
+ }
22
+
23
+ .cometchat-stream-message-bubble {
24
+ overflow: hidden;
25
+ text-align: left;
26
+ }
27
+
28
+ .cometchat-message-bubble__wrapper {
29
+ align-items: center;
30
+ }
31
+
32
+
33
+ /* Target all <p> tags without a class */
34
+ .cometchat-stream-message-bubble>p:not([class]) {
35
+ text-align: left;
36
+ line-height: 1.4 !important;
37
+ /* color: var(--cometchat-text-color-secondary); */
38
+ }
39
+
40
+ .cometchat-stream-message-bubble>ol:not([class]) {
41
+ padding-left: 0px !important;
42
+ margin-top: 0px !important;
43
+ text-align: left !important;
44
+ /* color: var(--cometchat-text-color-secondary); */
45
+
46
+ }
47
+
48
+ .cometchat-stream-message-bubble li:not([class]) {
49
+ text-align: left !important;
50
+ /* color: var(--cometchat-text-color-secondary); */
51
+
52
+ }
53
+
54
+ .cometchat-stream-message-bubble>ol:not([class]) ul:not([class]) {
55
+ padding-left: 20px !important;
56
+ text-align: left !important;
57
+ /* color: var(--cometchat-text-color-secondary); */
58
+
59
+ }
60
+
61
+ .cometchat-stream-message-bubble>ul:not([class]) {
62
+ text-align: left !important;
63
+ /* color: var(--cometchat-text-color-secondary); */
64
+
65
+ }
66
+
67
+ .cometchat-stream-message-bubble pre>div {
68
+ max-height: 300px;
69
+ overflow: scroll;
70
+ border: 1px solid var(--cometchat-border-color-default);
71
+ }
72
+
73
+ @media (min-width: 620px) and (max-width: 780px) {
74
+ .cometchat-stream-message-bubble pre>div {
75
+ /* max-width: 600px; */
76
+ }
77
+ }
78
+
79
+ @media (min-width: 480px) and (max-width: 619px) {
80
+ .cometchat-stream-message-bubble pre>div {
81
+ /* max-width: 400px; */
82
+ }
83
+ }
84
+
85
+ @media (min-width: 320px) and (max-width: 479px) {
86
+ .cometchat-stream-message-bubble pre>div {
87
+ /* max-width: 300px; */
88
+ }
89
+ }
90
+
91
+ .cometchat-stream-message-bubble *:not(pre *) {
92
+ color: var(--cometchat-text-color-primary);
93
+ font-size: 14px;
94
+ font-family: var(--cometchat-font-family);
95
+ }
96
+ .cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block,.cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block *{
97
+ font-size: 14px;
98
+ }
99
+ .cometchat-stream-message-bubble__thinking {
100
+ border-radius: 16px;
101
+ animation: fadeIn 0.5s ease;
102
+ position: relative;
103
+ overflow: hidden;
104
+ color: #717680;
105
+ font: var(--cometchat-font-body-regular);
106
+ display: flex;
107
+ align-items: center;
108
+ justify-content: flex-start;
109
+ align-self: flex-start;
110
+ height: fit-content;
111
+ width: fit-content;
112
+ min-width: fit-content;
113
+ }
114
+
115
+
116
+ .cometchat-stream-message-bubble__thinking::after {
117
+ content: '';
118
+ position: absolute;
119
+ top: 0;
120
+ left: -60%;
121
+ width: 60%;
122
+ height: 100%;
123
+ background: var( --cometchat-text-shimmer-gradient-color);
124
+ animation: shimmer 1.5s infinite;
125
+ pointer-events: none;
126
+ opacity: 0.7;
127
+ }
128
+
129
+ .cometchat-stream-message-bubble__tool-call-text {
130
+ width: fit-content;
131
+ text-align: left;
132
+ color: var(--cometchat-text-color-secondary);
133
+
134
+ }
135
+
136
+ .cometchat-stream-message-bubble__thinking {
137
+ align-items: flex-start;
138
+ border-radius: 0px;
139
+ }
140
+
141
+ .cometchat-stream-message-bubble__thinking>.cometchat-stream-message-bubble__thinking-text {
142
+ border-radius: 0px;
143
+ color: var(--cometchat-text-color-secondary);
144
+ }
145
+
146
+ @keyframes shimmer {
147
+ 0% {
148
+ left: -60%;
149
+ }
150
+
151
+ 100% {
152
+ left: 100%;
153
+ }
154
+ }
@@ -0,0 +1,100 @@
1
+ .cometchat-toolcall-argument-bubble {
2
+ flex-direction: column;
3
+ gap: 12px;
4
+ display: flex;
5
+ text-align: left;
6
+ justify-content: flex-start;
7
+ width: 100%;
8
+ max-width: 100%;
9
+ overflow: hidden;
10
+ padding: 12px;
11
+ border-radius: 8px;
12
+ background: transparent;
13
+ }
14
+
15
+ .cometchat-toolcall-argument-bubble * {
16
+ box-sizing: border-box;
17
+ max-width: 100%;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .cometchat-toolcall-argument-bubble .cometchat-toolcall-argument__item {
22
+ margin-bottom: 16px;
23
+ }
24
+
25
+ .cometchat-toolcall-argument-bubble .cometchat-toolcall-argument__item:last-child {
26
+ margin-bottom: 0;
27
+ }
28
+
29
+ .cometchat-toolcall-argument-bubble .cometchat-toolcall-argument__name {
30
+ margin-bottom: 8px;
31
+ color: var(--cometchat-text-color-primary, #141414);
32
+ font: var(--cometchat-font-subtitle-medium) !important;
33
+ }
34
+
35
+ .cometchat-toolcall-argument-bubble .cometchat-toolcall-argument__label {
36
+ margin-bottom: 4px;
37
+ /* color: var(--cometchat-text-color-secondary, #666666); */
38
+ font: var(--cometchat-font-body-regular) !important;
39
+ font-size: 12px;
40
+ }
41
+
42
+ .cometchat-toolcall-argument-bubble .cometchat-toolcall-argument__arguments {
43
+ display: flex;
44
+ flex-direction: column;
45
+ }
46
+
47
+ .cometchat-toolcall-argument-bubble pre > div {
48
+ max-height: 200px;
49
+ overflow: scroll;
50
+ border-radius: 4px;
51
+ }
52
+
53
+ @media (min-width: 620px) and (max-width: 780px) {
54
+ .cometchat-toolcall-argument-bubble pre > div {
55
+ max-width: 600px;
56
+ }
57
+ }
58
+
59
+ @media (min-width: 480px) and (max-width: 619px) {
60
+ .cometchat-toolcall-argument-bubble pre > div {
61
+ max-width: 400px;
62
+ }
63
+ }
64
+
65
+ @media (min-width: 320px) and (max-width: 479px) {
66
+ .cometchat-toolcall-argument-bubble pre > div {
67
+ max-width: 320px;
68
+ }
69
+ }
70
+
71
+ .cometchat-toolcall-argument-bubble pre *{
72
+ font-size: 14px;
73
+
74
+ /* font: var(--cometchat-font-body-regular) !important; */
75
+ }
76
+
77
+ /* Target all <p> tags without a class */
78
+ .cometchat-toolcall-argument-bubble > p:not([class]) {
79
+ text-align: left;
80
+ line-height: 1.4 !important;
81
+ /* color: var(--cometchat-text-color-secondary); */
82
+ }
83
+ .cometchat-toolcall-argument-bubble > ol:not([class]){
84
+ padding-left: 0px !important;
85
+ margin-top: 0px !important;
86
+ text-align: left !important;
87
+ /* color: var(--cometchat-text-color-secondary); */
88
+
89
+ }
90
+ .cometchat-toolcall-argument-bubble > ol:not([class]) ul:not([class]) {
91
+ padding-left: 20px !important;
92
+ text-align: left !important;
93
+ /* color: var(--cometchat-text-color-secondary); */
94
+
95
+ }
96
+ .cometchat-toolcall-argument-bubble > ul:not([class]){
97
+ text-align: left !important;
98
+ /* color: var(--cometchat-text-color-secondary); */
99
+
100
+ }
@@ -0,0 +1,91 @@
1
+ .cometchat-toolcall-result-bubble {
2
+ flex-direction: column;
3
+ gap: 12px;
4
+ display: flex;
5
+ text-align: left;
6
+ justify-content: flex-start;
7
+ width: 100%;
8
+ max-width: 100%;
9
+ overflow: hidden;
10
+ padding: 12px;
11
+ border-radius: 8px;
12
+ background: transparent;
13
+ }
14
+
15
+ .cometchat-toolcall-result-bubble * {
16
+ box-sizing: border-box;
17
+ max-width: 100%;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .cometchat-toolcall-result-bubble .cometchat-toolcall-result__item {
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+
26
+ .cometchat-toolcall-result-bubble .cometchat-toolcall-result__label {
27
+ margin-bottom: 4px;
28
+ /* color: var(--cometchat-text-color-secondary, #666666); */
29
+ font: var(--cometchat-font-body-regular) !important;
30
+ font-size: 12px;
31
+ font-weight: 500;
32
+ }
33
+
34
+ .cometchat-toolcall-result-bubble pre > div {
35
+ max-height: 300px;
36
+ overflow: scroll;
37
+ border-radius: 4px;
38
+ }
39
+
40
+ @media (min-width: 620px) and (max-width: 780px) {
41
+ .cometchat-toolcall-result-bubble pre > div {
42
+ max-width: 600px;
43
+ }
44
+ }
45
+
46
+ @media (min-width: 480px) and (max-width: 619px) {
47
+ .cometchat-toolcall-result-bubble pre > div {
48
+ max-width: 400px;
49
+ }
50
+ }
51
+
52
+ @media (min-width: 320px) and (max-width: 479px) {
53
+ .cometchat-toolcall-result-bubble pre > div {
54
+ max-width: 320px;
55
+ }
56
+ }
57
+ .cometchat-toolcall-result-bubble pre *{
58
+ /* font: var(--cometchat-font-body-regular) !important; */
59
+ font-size: 14px;
60
+
61
+ }
62
+
63
+ /* Target all <p> tags without a class */
64
+ .cometchat-toolcall-result-bubble > p:not([class]) {
65
+ text-align: left;
66
+ line-height: 1.4 !important;
67
+ /* color: var(--cometchat-text-color-secondary); */
68
+ }
69
+ .cometchat-toolcall-result-bubble > ol:not([class]){
70
+ padding-left: 0px !important;
71
+ margin-top: 0px !important;
72
+ text-align: left !important;
73
+ /* color: var(--cometchat-text-color-secondary); */
74
+
75
+ }
76
+ .cometchat-toolcall-result-bubble > ol:not([class]) ul:not([class]) {
77
+ padding-left: 20px !important;
78
+ text-align: left !important;
79
+ /* color: var(--cometchat-text-color-secondary); */
80
+
81
+ }
82
+ .cometchat-toolcall-result-bubble li:not([class]){
83
+ text-align: left !important;
84
+ /* color: var(--cometchat-text-color-secondary); */
85
+
86
+ }
87
+ .cometchat-toolcall-result-bubble > ul:not([class]){
88
+ text-align: left !important;
89
+ /* color: var(--cometchat-text-color-secondary); */
90
+
91
+ }
@@ -55,7 +55,13 @@
55
55
  @import url('./CometChatThreadHeader.css');
56
56
  @import url('./CometChatToast.css');
57
57
  @import url('./CometChatSearch.css');
58
-
58
+ @import url('./CometChatAIAssistantChat.css');
59
+ @import url('./CometChatAIAssistantMessageBubble.css');
60
+ @import url('./CometChatStreamMessageBubble.css');
61
+ @import url('./CometChatAIAssistantChatHistory.css');
62
+ @import url('./CometChatErrorView.css');
63
+ /* @import url('./CometChatToolCallResultBubble.css');
64
+ @import url('./CometChatToolCallArgumentBubble.css'); */
59
65
  .cometchat * {
60
66
  box-sizing: border-box;
61
67
  }
@@ -114,4 +120,4 @@ font:var(--cometchat-font-body-regular);
114
120
 
115
121
  .cometchat-text-bubble .cometchat-text-highlight {
116
122
  font: var(--cometchat-font-body-bold);
117
- }
123
+ }
@@ -235,6 +235,7 @@ and errors.
235
235
  --cometchat-warning-color: #FFAB00;
236
236
  --cometchat-success-color: #09C26F;
237
237
  --cometchat-error-color: #F44649;
238
+ --cometchat-error-color-100: #FEF3F2;
238
239
 
239
240
  /*
240
241
  Static colors
@@ -293,6 +294,8 @@ Define border colors for UI elements,
293
294
  */
294
295
  --cometchat-shimmer-background-color: var(--cometchat-neutral-color-200);
295
296
  --cometchat-shimmer-gradient-color: linear-gradient(90deg, #E0E0E0 0%, #EEE 100%);
297
+ --cometchat-text-shimmer-gradient-color: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.70) 50%, rgba(255, 255, 255, 0.00) 100%);
298
+
296
299
 
297
300
  /*
298
301
  Styling for buttons.
@@ -347,6 +350,7 @@ Define border colors for UI elements,
347
350
  --cometchat-success-color: #0B9F5D;
348
351
  --cometchat-message-seen-color: #56E8A7;
349
352
  --cometchat-error-color: #C73C3E;
353
+ --cometchat-error-color-100: #3A0C05;
350
354
 
351
355
  /*
352
356
  Static colors
@@ -401,6 +405,7 @@ Define border colors for UI elements,
401
405
  */
402
406
  --cometchat-shimmer-background-color: var(--cometchat-background-color-01);
403
407
  --cometchat-shimmer-gradient-color: linear-gradient(90deg, #383838 0%, #272727 100%);
408
+ --cometchat-text-shimmer-gradient-color: linear-gradient(270deg, rgba(26, 26, 26, 0.00) 0%, rgba(26, 26, 26, 0.70) 50%, rgba(26, 26, 26, 0.00) 100%);
404
409
 
405
410
  /*
406
411
  Styling for buttons.
@@ -55,7 +55,13 @@
55
55
  @import url('./CometChatThreadHeader.css');
56
56
  @import url('./CometChatToast.css');
57
57
  @import url('./CometChatSearch.css');
58
-
58
+ @import url('./CometChatAIAssistantChat.css');
59
+ @import url('./CometChatAIAssistantMessageBubble.css');
60
+ @import url('./CometChatStreamMessageBubble.css');
61
+ @import url('./CometChatAIAssistantChatHistory.css');
62
+ @import url('./CometChatErrorView.css');
63
+ /* @import url('./CometChatToolCallResultBubble.css');
64
+ @import url('./CometChatToolCallArgumentBubble.css'); */
59
65
  .cometchat * {
60
66
  box-sizing: border-box;
61
67
  }
@@ -114,4 +120,4 @@ font:var(--cometchat-font-body-regular);
114
120
 
115
121
  .cometchat-text-bubble .cometchat-text-highlight {
116
122
  font: var(--cometchat-font-body-bold);
117
- }
123
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface CometChatAIAssistantMessageBubbleProps {
3
+ message?: CometChat.AIAssistantMessage;
4
+ }
5
+ declare const CometChatAIAssistantMessageBubble: React.FC<CometChatAIAssistantMessageBubbleProps>;
6
+ export { CometChatAIAssistantMessageBubble };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CometChatErrorViewProps {
3
+ /**
4
+ * Custom error message to display
5
+ */
6
+ message: string;
7
+ }
8
+ export declare const CometChatErrorView: React.FC<CometChatErrorViewProps>;
9
+ export default CometChatErrorView;
@@ -140,6 +140,13 @@ interface ListProps<T> {
140
140
  * @defaultValue `false`
141
141
  */
142
142
  showScrollbar?: boolean;
143
+ /**
144
+ * Set the scrollbar to the bottom-most position of the scrollable list in Agent Chat
145
+ *
146
+ * @remarks
147
+ *
148
+ */
149
+ scrollToEnd?: boolean;
143
150
  }
144
151
  /**
145
152
  * Renders a list component that can display a title, search bar,
@@ -0,0 +1,4 @@
1
+ declare const CometChatSendButtonView: ({ isButtonDisabled }: {
2
+ isButtonDisabled: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export { CometChatSendButtonView };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface CometChatStreamMessageBubbleProps {
3
+ message?: CometChat.AIAssistantBaseEvent;
4
+ }
5
+ declare const CometChatStreamMessageBubble: React.FC<CometChatStreamMessageBubbleProps>;
6
+ export { CometChatStreamMessageBubble };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface CometChatToolCallArgumentBubbleProps {
3
+ message?: CometChat.AIToolArgumentMessage;
4
+ }
5
+ declare const CometChatToolCallArgumentBubble: React.FC<CometChatToolCallArgumentBubbleProps>;
6
+ export { CometChatToolCallArgumentBubble };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface CometChatToolCallResultBubbleProps {
3
+ message?: CometChat.AIToolResultMessage;
4
+ }
5
+ declare const CometChatToolCallResultBubble: React.FC<CometChatToolCallResultBubbleProps>;
6
+ export { CometChatToolCallResultBubble };
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { CometChatAIAssistantTools } from '../../modals/CometChatAIAssistantTools';
3
+ interface AIAssistantChatProps {
4
+ hideChatHistory?: boolean;
5
+ hideNewChat?: boolean;
6
+ user: CometChat.User;
7
+ onBackButtonClicked?: () => void;
8
+ onCloseButtonClicked?: () => void;
9
+ showBackButton?: boolean;
10
+ showCloseButton?: boolean;
11
+ headerItemView?: React.JSX.Element;
12
+ headerTitleView?: React.JSX.Element;
13
+ headerSubtitleView?: React.JSX.Element;
14
+ headerLeadingView?: React.JSX.Element;
15
+ headerTrailingView?: React.JSX.Element;
16
+ headerAuxiliaryButtonView?: React.JSX.Element;
17
+ streamingSpeed?: number;
18
+ suggestedMessages?: Array<string>;
19
+ hideSuggestedMessages?: boolean;
20
+ emptyView?: React.JSX.Element;
21
+ loadingView?: React.JSX.Element;
22
+ errorView?: React.JSX.Element;
23
+ onError?: (e: CometChat.CometChatException) => void;
24
+ emptyChatGreetingView?: React.JSX.Element;
25
+ emptyChatIntroMessageView?: React.JSX.Element;
26
+ emptyChatImageView?: React.JSX.Element;
27
+ aiAssistantTools?: CometChatAIAssistantTools;
28
+ }
29
+ export declare const CometChatAIAssistantChat: React.MemoExoticComponent<(props: AIAssistantChatProps) => import("react/jsx-runtime").JSX.Element>;
30
+ export {};