@cometchat/chat-uikit-react 6.1.2 → 6.2.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 (70) 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/message_blocked.svg +8 -0
  5. package/dist/assets/new-chat.svg +3 -0
  6. package/dist/assets/right-arrow.svg +3 -0
  7. package/dist/assets/send-message.svg +3 -0
  8. package/dist/assets/stop-message.svg +3 -0
  9. package/dist/assets/warning-small.svg +0 -0
  10. package/dist/index.d.ts +447 -198
  11. package/dist/index.js +9 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/styles/CometChatAIAssistantChat.css +465 -0
  14. package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
  15. package/dist/styles/CometChatAIAssistantMessageBubble.css +118 -0
  16. package/dist/styles/CometChatConversations.css +19 -0
  17. package/dist/styles/CometChatErrorView.css +22 -0
  18. package/dist/styles/CometChatMessageComposer.css +9 -9
  19. package/dist/styles/CometChatMessageHeader.css +2 -4
  20. package/dist/styles/CometChatMessageList.css +34 -19
  21. package/dist/styles/CometChatModerationView.css +25 -0
  22. package/dist/styles/CometChatSearch.css +13 -0
  23. package/dist/styles/CometChatStreamMessageBubble.css +183 -0
  24. package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
  25. package/dist/styles/CometChatToolCallResultBubble.css +91 -0
  26. package/dist/styles/components/CometChatAIAssistantChat.css +465 -0
  27. package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
  28. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +118 -0
  29. package/dist/styles/components/CometChatConversations.css +19 -0
  30. package/dist/styles/components/CometChatErrorView.css +22 -0
  31. package/dist/styles/components/CometChatMessageComposer.css +9 -9
  32. package/dist/styles/components/CometChatMessageHeader.css +2 -4
  33. package/dist/styles/components/CometChatMessageList.css +34 -19
  34. package/dist/styles/components/CometChatModerationView.css +25 -0
  35. package/dist/styles/components/CometChatSearch.css +13 -0
  36. package/dist/styles/components/CometChatStreamMessageBubble.css +183 -0
  37. package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
  38. package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
  39. package/dist/styles/components/index.css +9 -2
  40. package/dist/styles/css-variables.css +5 -0
  41. package/dist/styles/index.css +9 -2
  42. package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
  43. package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
  44. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
  45. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  46. package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +2 -0
  47. package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
  48. package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
  49. package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
  50. package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
  51. package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
  52. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
  53. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  54. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +2 -0
  55. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +24 -14
  56. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
  57. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  58. package/dist/types/constants/CometChatUIKitConstants.d.ts +21 -0
  59. package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
  60. package/dist/types/index.d.ts +7 -0
  61. package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
  62. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
  63. package/dist/types/services/stream-message.service.d.ts +44 -0
  64. package/dist/types/utils/DataSource.d.ts +9 -1
  65. package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
  66. package/dist/types/utils/MessageReceiptUtils.d.ts +1 -1
  67. package/dist/types/utils/MessageUtils.d.ts +6 -0
  68. package/dist/types/utils/MessagesDataSource.d.ts +15 -6
  69. package/dist/types/utils/util.d.ts +9 -0
  70. package/package.json +7 -3
@@ -0,0 +1,465 @@
1
+ .cometchat-ai-assistant-chat {
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+ width: 100%;
6
+ overflow: hidden;
7
+ background: var(--cometchat-background-color-02);
8
+ align-items: center;
9
+
10
+ }
11
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-incoming{
12
+ overflow: hidden;
13
+ max-width: 100%;
14
+ box-sizing: border-box;
15
+ align-self: flex-start;
16
+ padding-top: 3px;
17
+ }
18
+ .cometchat-ai-assistant-chat__wrapper {
19
+ height: 100%;
20
+ width: 100%;
21
+ overflow: hidden;
22
+ position: relative;
23
+ }
24
+
25
+ .cometchat-ai-assistant-chat__message-list-wrapper {
26
+ height: inherit;
27
+ width: 100%;
28
+ overflow: hidden;
29
+ box-sizing: border-box;
30
+ }
31
+
32
+ .cometchat-ai-assistant-chat__header-wrapper {
33
+ height: fit-content;
34
+ width: 100%;
35
+ overflow: hidden;
36
+ }
37
+
38
+ .cometchat-ai-assistant-chat__composer-wrapper {
39
+ height: fit-content;
40
+ width: 100%;
41
+ overflow: hidden;
42
+ background: transparent;
43
+ }
44
+
45
+ /* header */
46
+ .cometchat-ai-assistant-chat .cometchat-message-header {
47
+ border-bottom: 1px solid var(--cometchat-border-color-light);
48
+ }
49
+
50
+ .cometchat-ai-assistant-chat .cometchat-message-header .cometchat-list-item {
51
+ gap: var(--cometchat-spacing-2);
52
+ }
53
+
54
+ .cometchat-ai-assistant-chat .cometchat-message-header .cometchat-list-item__body-title {
55
+ display: block;
56
+ }
57
+
58
+ .cometchat-ai-assistant-chat .cometchat-message-header .cometchat-message-header__subtitle {
59
+ color: var(--cometchat-text-color-secondary);
60
+ }
61
+
62
+ .cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ gap: var(--cometchat-spacing-2);
67
+
68
+ }
69
+
70
+ .cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button {
71
+ height: fit-content;
72
+ width: fit-content;
73
+ border: none;
74
+ background: transparent;
75
+ padding: 0;
76
+ margin: 0;
77
+ box-sizing: border-box;
78
+ padding: 6px;
79
+
80
+ }
81
+
82
+ .cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button__icon {
83
+ background: var(--cometchat-icon-color-secondary);
84
+ height: 24px;
85
+ width: 24px;
86
+ }
87
+
88
+ .cometchat-ai-assistant-chat .cometchat-ai-assistant-chat__header-auxiliary-view .cometchat-button__icon:hover {
89
+ background: var(--cometchat-icon-color-primary);
90
+ transition: background .4s ease-in-out;
91
+ }
92
+
93
+ /* header css end */
94
+
95
+ /* composer */
96
+ .cometchat-ai-assistant-chat .cometchat-message-composer__input {
97
+ border: none;
98
+
99
+ }
100
+
101
+ .cometchat-ai-assistant-chat .cometchat-message-composer {
102
+ border-radius: var(--cometchat-radius-4);
103
+ border: 1px solid var(--cometchat-border-color-default);
104
+ background: var(--cometchat-background-color-01);
105
+ margin: 0px 8px 8px;
106
+ width: auto;
107
+
108
+ }
109
+ .cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view .cometchat-message-bubble__status-info-view-receipts-error {
110
+ height: 12px;
111
+ width: 12px;
112
+ margin-bottom: 2px;
113
+ }
114
+
115
+ .cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view {
116
+ gap: var(--cometchat-padding-1);
117
+ }
118
+ .cometchat-ai-assistant-chat__send-button-view {
119
+ height: 44px;
120
+ width: 44px;
121
+ border-radius: var(--cometchat-radius-max);
122
+ padding: var(--cometchat-padding-3);
123
+ border: 1px solid var(--cometchat-border-color-light);
124
+ background: var(--cometchat-background-color-04);
125
+ display: flex;
126
+ justify-content: center;
127
+ align-items: center;
128
+
129
+ }
130
+
131
+ .cometchat-ai-assistant-chat__send-button-view .cometchat-ai-assistant-chat__send-button-icon {
132
+ mask: url("../../assets/send-message.svg") center center no-repeat;
133
+ -webkit-mask: url("../../assets/send-message.svg") center center no-repeat;
134
+ mask-size: contain;
135
+ -webkit-mask-size: contain;
136
+ height: 20px;
137
+ width: 20px;
138
+ background: var(--cometchat-icon-color-white);
139
+ }
140
+
141
+ .cometchat-ai-assistant-chat__send-button-view--active {
142
+ background: var(--cometchat-secondary-button-background);
143
+
144
+ }
145
+
146
+ .cometchat-ai-assistant-chat .cometchat-message-list .cometchat-list__body {
147
+ border: none;
148
+ height: 100%;
149
+ }
150
+
151
+ .cometchat-ai-assistant-chat .cometchat-message-list__shimmer {
152
+ background: transparent;
153
+ }
154
+
155
+ .cometchat-ai-assistant-chat__send-button-view--streaming {
156
+ background: var(--cometchat-secondary-button-background);
157
+
158
+
159
+ }
160
+
161
+ .cometchat-ai-assistant-chat__send-button-view--streaming .cometchat-ai-assistant-chat__send-button-icon {
162
+ mask: url("../../assets/stop-message.svg") center center no-repeat;
163
+ -webkit-mask: url("../../assets/stop-message.svg") center center no-repeat;
164
+ mask-size: contain;
165
+ -webkit-mask-size: contain;
166
+ height: 16px;
167
+ width: 16px;
168
+ background: var(--cometchat-icon-color-white);
169
+ border-radius: 0px;
170
+ }
171
+
172
+ /* composer css end */
173
+ /* message list */
174
+ .cometchat-ai-assistant-chat .cometchat-list__empty-view {
175
+ display: flex;
176
+ flex-direction: column;
177
+ align-items: center;
178
+ justify-content: center;
179
+ /* height: 90%; */
180
+ padding: var(--cometchat-padding-4);
181
+
182
+ }
183
+
184
+ .cometchat-ai-assistant-chat__empty-state-suggested-messages {
185
+ display: flex;
186
+ flex-direction: row;
187
+ gap: 8px;
188
+ flex-wrap: wrap;
189
+ justify-content: center;
190
+ align-items: center;
191
+ padding-top: var(--cometchat-padding-5);
192
+ max-width: 85%;
193
+ }
194
+
195
+ .cometchat-ai-assistant-chat__suggested-message-icon {
196
+ height: 16px;
197
+ width: 16px;
198
+ mask: url("../../assets/right-arrow.svg") center center no-repeat;
199
+ -webkit-mask: url("../../assets/right-arrow.svg") center center no-repeat;
200
+ mask-size: contain;
201
+ -webkit-mask-size: contain;
202
+ background: var(--cometchat-icon-color-secondary);
203
+ display: inline-block;
204
+
205
+ }
206
+ .cometchat-ai-assistant-chat__suggested-message-pill:hover{
207
+ background: var(--cometchat-background-color-01);
208
+ transition: all .4s ease-in-out;
209
+ cursor: pointer;
210
+ }
211
+ .cometchat-ai-assistant-chat__suggested-message-pill {
212
+ border: 1px solid var(--cometchat-border-color-default);
213
+ background: transparent;
214
+ border-radius: var(--cometchat-radius-max);
215
+ min-height: 32px;
216
+ min-width: 80px;
217
+ color: var(--cometchat-text-color-secondary);
218
+ font: var(--cometchat-font-body-regular);
219
+ display: flex;
220
+ justify-content: center;
221
+ align-items: center;
222
+ gap: var(--cometchat-spacing-2);
223
+ padding: var(--cometchat-padding-2) var(--cometchat-padding-3);
224
+ box-sizing: border-box;
225
+ }
226
+
227
+ .cometchat-ai-assistant-chat .cometchat-message-list {
228
+ background: transparent;
229
+ max-width: calc(100% + (var(--cometchat-padding-4) * 2));
230
+ margin: 0 auto 17px auto;
231
+ }
232
+ .cometchat-ai-assistant-chat .cometchat-message-list__body
233
+ {
234
+ padding: 0 var(--cometchat-padding-1);
235
+ padding-bottom: var(--cometchat-padding-2);
236
+
237
+ }
238
+ /* message list css end */
239
+
240
+ /* mobile view */
241
+ @media (max-width: 768px) {
242
+ .cometchat-ai-assistant-chat {
243
+ width: 100vw;
244
+ position: fixed;
245
+ top: 0px;
246
+ left: 0px;
247
+ z-index: 3;
248
+ }
249
+
250
+ }
251
+
252
+ /* Empty State */
253
+ .cometchat-ai-assistant-chat__empty-state {
254
+ display: flex;
255
+ width: 100%;
256
+ height: 100%;
257
+ align-items: center;
258
+ justify-content: center;
259
+ background: transparent;
260
+ }
261
+
262
+ .cometchat-ai-assistant-chat__empty-state-content {
263
+ display: flex;
264
+ flex-direction: column;
265
+ align-items: center;
266
+ /* gap: var(--cometchat-spacing-3); */
267
+ text-align: center;
268
+ padding-top: var(--cometchat-padding-2);
269
+ }
270
+
271
+ .cometchat-ai-assistant-chat .cometchat-list__body > .cometchat-list__body-intersection-top{
272
+ visibility: hidden;
273
+ }
274
+ .cometchat-ai-assistant-chat__empty-state-icon img {
275
+ width: 60px;
276
+ height: 60px;
277
+ object-fit: contain;
278
+ }
279
+
280
+ .cometchat-ai-assistant-chat__empty-state-icon {
281
+ padding-bottom: var(--cometchat-padding-5);
282
+ }
283
+
284
+ .cometchat-ai-assistant-chat__empty-state-greeting-message {
285
+ color: var(--cometchat-text-color-secondary);
286
+ text-align: center;
287
+ font: var(--cometchat-font-heading3-regular);
288
+ }
289
+
290
+ .cometchat-ai-assistant-chat__empty-state-intro-message {
291
+ color: var(--cometchat-text-color-primary);
292
+ text-align: center;
293
+ font: var(--cometchat-font-title-regular);
294
+ padding-top: var(--cometchat-padding-1);
295
+ }
296
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__body
297
+ ,.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-text-bubble
298
+ {
299
+ background: var(--cometchat-background-color-03);
300
+
301
+ }
302
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body
303
+ {
304
+ background: transparent;
305
+
306
+ }
307
+ .cometchat-ai-assistant-chat .cometchat-message-bubble__wrapper{
308
+ gap: var(--cometchat-spacing-2);
309
+ padding: var(--cometchat-padding-2);
310
+
311
+ }
312
+ .cometchat-message-bubble__body.agent-assistant_custom{
313
+ padding: 0px;;
314
+
315
+ }
316
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-text-bubble__body-text,
317
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-date
318
+ {
319
+ color: var(--cometchat-text-color-primary);
320
+ }
321
+ @media (max-width: 768px) {
322
+ .cometchat-ai-assistant-chat__empty-state-suggested-messages {
323
+ max-width: 90%;
324
+ }
325
+ }
326
+ @media (max-width: 680px) {
327
+ .cometchat-ai-assistant-chat__empty-state-suggested-messages {
328
+ max-width: 100%;
329
+ }
330
+ }
331
+
332
+ /* Chat History Sidebar */
333
+ .cometchat-ai-assistant-chat__sidebar {
334
+ position: absolute;
335
+ top: 0;
336
+ right: 0;
337
+ width: 60%;
338
+ max-width: 420px;
339
+ height: 100%;
340
+ background: var(--cometchat-background-color-01);
341
+ border-left: 1px solid var(--cometchat-border-color-light);
342
+ transform: translateX(100%);
343
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
344
+ z-index: 1000;
345
+ display: flex;
346
+ flex-direction: column;
347
+ }
348
+
349
+ .cometchat-ai-assistant-chat__sidebar--open {
350
+ transform: translateX(0);
351
+ }
352
+ .cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text {
353
+ -webkit-line-clamp: initial !important;
354
+ line-clamp: initial !important;
355
+ }
356
+ .cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-more,
357
+ .cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-less {
358
+ display: none;
359
+ }
360
+ .cometchat-ai-assistant-chat__sidebar-content {
361
+ flex: 1;
362
+ display: flex;
363
+ flex-direction: column;
364
+ overflow: hidden;
365
+ background: var(--cometchat-background-color-02);
366
+ }
367
+ .cometchat-ai-assistant-chat__message-composer-view{
368
+ width: 100%;
369
+ }
370
+ .cometchat-ai-assistant-chat__message-composer-view--disabled {
371
+ cursor: not-allowed ;
372
+ caret-color: transparent ;
373
+ position: relative;
374
+ }
375
+
376
+ .cometchat-ai-assistant-chat__message-composer-view--disabled * {
377
+ pointer-events: none;
378
+ }
379
+
380
+ .cometchat-ai-assistant-chat__message-composer-view--disabled:hover::before {
381
+ opacity: 1;
382
+ background: var(--cometchat-error-color);
383
+ }
384
+ .cometchat-ai-assistant-chat__message-composer-view--disabled .cometchat-ai-assistant-chat__send-button-view--streaming .cometchat-ai-assistant-chat__send-button-icon{
385
+ cursor: not-allowed ;
386
+ pointer-events: none ;
387
+ }
388
+ .cometchat-ai-assistant-message-bubble__copy{
389
+ mask: url("../../assets/Copy.svg") center center no-repeat;
390
+ -webkit-mask: url("../../assets/Copy.svg") center center no-repeat;
391
+ mask-size: contain;
392
+ -webkit-mask-size: contain;
393
+ display: flex;
394
+ justify-content: flex-start;
395
+ align-items: flex-start;
396
+ margin-top: var(--cometchat-margin-3);
397
+ height: 20px;
398
+ width: 20px;
399
+ background: var(--cometchat-icon-color-secondary);
400
+
401
+ }
402
+ .cometchat-ai-assistant-chat__sidebar-overlay {
403
+ position: absolute;
404
+ top: 0;
405
+ left: 0;
406
+ width: 100%;
407
+ height: 100%;
408
+ background: rgba(0, 0, 0, 0.3);
409
+ z-index: 999;
410
+ opacity: 0;
411
+ animation: fadeIn 0.3s ease forwards;
412
+ }
413
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body-content-view,.cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body-wrapper,.cometchat-ai-assistant-chat
414
+ .cometchat-message-bubble-incoming .cometchat-message-bubble__body.tool-result_agentic,
415
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-incoming > div,
416
+ .cometchat-ai-assistant-chat .cometchat-message-bubble-incoming .cometchat-message-bubble__body
417
+ {
418
+ min-width: 100% !important;
419
+ width: 100% !important;
420
+ max-width: 100% !important;
421
+ }
422
+ @keyframes fadeIn {
423
+ to {
424
+ opacity: 1;
425
+ }
426
+ }
427
+
428
+ /* Mobile responsive sidebar */
429
+ @media (max-width: 768px) {
430
+ .cometchat-ai-assistant-chat__sidebar {
431
+ position: fixed;
432
+ z-index: 1000;
433
+ }
434
+
435
+ .cometchat-ai-assistant-chat__sidebar--open {
436
+ position: fixed;
437
+ transform: translateX(0);
438
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
439
+ }
440
+
441
+ .cometchat-ai-assistant-chat__sidebar-overlay {
442
+ position: fixed;
443
+ z-index: 999;
444
+ }
445
+ }
446
+
447
+ @media (max-width: 480px) {
448
+ .cometchat-ai-assistant-chat__sidebar {
449
+ position: fixed;
450
+ z-index: 1000;
451
+ }
452
+
453
+ .cometchat-ai-assistant-chat__sidebar--open {
454
+ width: 100%;
455
+ max-width: none;
456
+ position: fixed;
457
+ transform: translateX(0);
458
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
459
+ }
460
+
461
+ .cometchat-ai-assistant-chat__sidebar-overlay {
462
+ position: fixed;
463
+ z-index: 999;
464
+ }
465
+ }
@@ -0,0 +1,175 @@
1
+ .cometchat-ai-assistant-chat-history {
2
+ height: 100%;
3
+ width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding: var(--cometchat-padding-2);
7
+ padding-top: 0;
8
+ }
9
+
10
+ .cometchat-ai-assistant-chat-history__loading,
11
+ .cometchat-ai-assistant-chat-history__empty,
12
+ .cometchat-ai-assistant-chat-history__error {
13
+ padding: 20px;
14
+ text-align: center;
15
+ color: var(--cometchat-text-color-secondary);
16
+ font-size: 14px;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ height: 100%;
21
+ width: 100%;
22
+ }
23
+
24
+ .cometchat-ai-assistant-chat-history__list {
25
+ flex: 1;
26
+ overflow-y: auto;
27
+ }
28
+
29
+ .cometchat-ai-assistant-chat-history__list-item {
30
+ padding: var(--cometchat-padding-3) var(--cometchat-padding-2);
31
+ background: var(--cometchat-background-color-02);
32
+ transition: background 0.2s ease;
33
+ }
34
+
35
+ .cometchat-ai-assistant-chat-history__list-item:hover {
36
+ background: var(--cometchat-background-color-03);
37
+ border-radius: var(--cometchat-radius-2);
38
+ }
39
+
40
+ .cometchat-ai-assistant-chat-history__list-item-text {
41
+ line-height: 1.5;
42
+ color: var(--cometchat-text-color-primary);
43
+ font: var(--cometchat-font-body-regular);
44
+ text-align: left;
45
+ cursor: pointer;
46
+ white-space: nowrap;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ }
50
+
51
+ .cometchat-ai-assistant-chat-history .cometchat-list__body {
52
+ border: none;
53
+ padding: var(--cometchat-padding-2) 0;
54
+
55
+ }
56
+
57
+ .cometchat-ai-assistant-chat-history__header {
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: space-between;
61
+ padding: 0 var(--cometchat-padding-2);
62
+ background: var(--cometchat-background-color-02);
63
+ min-height: 65px;
64
+ box-sizing: border-box;
65
+ }
66
+
67
+ .cometchat-ai-assistant-chat-history__title {
68
+ font: var(--cometchat-font-heading3-bold);
69
+ color: var(--cometchat-text-color-primary);
70
+ margin: 0;
71
+ }
72
+
73
+ .cometchat-ai-assistant-chat-history .cometchat-list__body-intersection-top {
74
+ visibility: hidden !important;
75
+ }
76
+
77
+ .cometchat-ai-assistant-chat-history__close {
78
+ background: transparent;
79
+ border: none;
80
+ padding: var(--cometchat-padding-2);
81
+ cursor: pointer;
82
+ border-radius: var(--cometchat-radius-2);
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ transition: background-color 0.2s ease;
87
+ }
88
+
89
+ .cometchat-ai-assistant-chat-history__close:hover {
90
+ background: var(--cometchat-background-color-03);
91
+ }
92
+
93
+ .cometchat-ai-assistant-chat-history__close-icon {
94
+ width: 24px;
95
+ height: 24px;
96
+ mask: url("../../assets/close.svg") center center no-repeat;
97
+ -webkit-mask: url("../../assets/close.svg") center center no-repeat;
98
+ mask-size: contain;
99
+ -webkit-mask-size: contain;
100
+ background: var(--cometchat-icon-color-secondary);
101
+ }
102
+
103
+ .cometchat-ai-assistant-chat-history__shimmer {
104
+ width: 100%;
105
+ height: 100%;
106
+ background: transparent;
107
+
108
+ }
109
+
110
+ .cometchat-ai-assistant-chat-history__shimmer-item {
111
+ width: 100%;
112
+ height: 48px;
113
+ display: flex;
114
+ width: 100%;
115
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
116
+ }
117
+
118
+ .cometchat-ai-assistant-chat-history__shimmer-item-title {
119
+ width: 100%;
120
+ height: 22px;
121
+ flex-shrink: 0;
122
+ border-radius: var(--cometchat-radius-2, 8px);
123
+ background: var(--cometchat-shimmer-gradient-color,
124
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
125
+ animation: shimmerAnimation 1.5s infinite linear;
126
+
127
+ }
128
+
129
+ .cometchat-ai-assistant-chat-history__empty-state-view,
130
+ .cometchat-ai-assistant-chat-history__error-state-view {
131
+ height: 100%;
132
+ display: flex;
133
+ flex-direction: column;
134
+ gap: var(--cometchat-padding-5, 20px);
135
+ justify-content: center;
136
+ align-items: center;
137
+ background: transparent;
138
+ }
139
+
140
+
141
+
142
+ .cometchat-ai-assistant-chat-history__empty-state-view-body,
143
+ .cometchat-ai-assistant-chat-history__error-state-view-body {
144
+ display: flex;
145
+ flex-direction: column;
146
+ gap: var(--cometchat-padding, 2px);
147
+ }
148
+
149
+ .cometchat-ai-assistant-chat-history__empty-state-view-body-title,
150
+ .cometchat-ai-assistant-chat-history__error-state-view-body-title {
151
+ width: 280px;
152
+ color: var(--cometchat-text-color-primary, #141414);
153
+ text-align: center;
154
+ font: var(--cometchat-font-heading3-bold);
155
+ font-style: normal;
156
+ }
157
+
158
+ .cometchat-ai-assistant-chat-history__empty-state-view-body-description,
159
+ .cometchat-ai-assistant-chat-history__error-state-view-body-description {
160
+ width: 280px;
161
+ color: var(--cometchat-text-color-secondary, #727272);
162
+ text-align: center;
163
+ font: var(--cometchat-font-body-regular);
164
+ font-style: normal;
165
+ }
166
+
167
+ @keyframes shimmerAnimation {
168
+ 0% {
169
+ background-position: -468px 0;
170
+ }
171
+
172
+ 100% {
173
+ background-position: 468px 0;
174
+ }
175
+ }