@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,118 @@
1
+ .cometchat-ai-assistant-message-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
+ }
11
+
12
+ .cometchat-ai-assistant-message-bubble * {
13
+ box-sizing: border-box;
14
+ max-width: 100%;
15
+ overflow: hidden;
16
+ }
17
+
18
+ .cometchat-ai-assistant-message-bubble pre {
19
+ /* border: 1px solid var(--cometchat-border-color-default); */
20
+ }
21
+
22
+ .cometchat-ai-assistant-message-bubble>p:not([class]) {
23
+ text-align: left;
24
+ line-height: 1.4 !important;
25
+ color: var(--cometchat-text-color-primary);
26
+ }
27
+
28
+ .cometchat-ai-assistant-message-bubble>ol:not([class]) {
29
+ padding-left: 0px !important;
30
+ margin-top: 0px !important;
31
+ text-align: left !important;
32
+ color: var(--cometchat-text-color-primary);
33
+
34
+ }
35
+
36
+ .cometchat-ai-assistant-message-bubble li:not([class]) {
37
+ text-align: left !important;
38
+ color: var(--cometchat-text-color-primary);
39
+
40
+ }
41
+
42
+ .cometchat-ai-assistant-message-bubble>ol:not([class]) ul:not([class]) {
43
+ padding-left: 20px !important;
44
+ text-align: left !important;
45
+ color: var(--cometchat-text-color-primary);
46
+
47
+ }
48
+
49
+ .cometchat-ai-assistant-message-bubble>ul:not([class]) {
50
+ text-align: left !important;
51
+ color: var(--cometchat-text-color-primary);
52
+
53
+ }
54
+
55
+ .cometchat-ai-assistant-message-bubble__code-block {
56
+ max-height: 300px;
57
+ overflow: auto;
58
+ border: 1px solid var(--cometchat-border-color-default);
59
+ width: 100%;
60
+ }
61
+
62
+
63
+
64
+ .cometchat-ai-assistant-message-bubble *:not(pre *) {
65
+ color: var(--cometchat-text-color-primary);
66
+ font-size: 14px;
67
+ font-family: var(--cometchat-font-family);
68
+ }
69
+ .cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block,.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block *{
70
+ font-size: 14px;
71
+ }
72
+
73
+ .cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar {
74
+ width: 0px;
75
+ height: 8px;
76
+ background: transparent;
77
+ }
78
+
79
+ .cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-track {
80
+ background: transparent;
81
+ }
82
+
83
+ .cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-thumb {
84
+ background: var(--cometchat-icon-color-secondary);
85
+ border-radius: var(--cometchat-radius-2);
86
+ }
87
+
88
+ .cometchat-ai-assistant-message-bubble table {
89
+ width: 100%;
90
+ border-collapse: collapse;
91
+ table-layout: auto;
92
+ display: block;
93
+ overflow-x: auto;
94
+ }
95
+
96
+ .cometchat-ai-assistant-message-bubble th,
97
+ .cometchat-ai-assistant-message-bubble td {
98
+ padding: var(--cometchat-padding-2);
99
+ border: 1px solid var(--cometchat-border-color-light);
100
+ text-align: left;
101
+ word-break: break-word; /* prevents text overflow in cells */
102
+ min-width: 100px;
103
+ }
104
+
105
+ .cometchat-ai-assistant-message-bubble table::-webkit-scrollbar {
106
+ width: 0px;
107
+ height: 8px;
108
+ background: transparent;
109
+ }
110
+
111
+ .cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-track {
112
+ background: transparent;
113
+ }
114
+
115
+ .cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-thumb {
116
+ background: var(--cometchat-icon-color-secondary);
117
+ border-radius: var(--cometchat-radius-2);
118
+ }
@@ -56,6 +56,22 @@
56
56
  mask-size: contain;
57
57
  }
58
58
 
59
+
60
+ .cometchat-conversations__subtitle-receipts-wait{
61
+ -webkit-mask: url("../../assets/status_sending.svg") center center no-repeat;
62
+ mask: url("../../assets/status_sending.svg") center center no-repeat;
63
+ -webkit-mask-size: contain;
64
+ mask-size: contain;
65
+ }
66
+
67
+ .cometchat-conversations__subtitle-receipts-error{
68
+ -webkit-mask: url("../../assets/error_icon.svg") center center no-repeat;
69
+ mask: url("../../assets/error_icon.svg") center center no-repeat;
70
+ -webkit-mask-size: contain;
71
+ mask-size: contain;
72
+ background-color: var(--cometchat-error-color);
73
+ }
74
+
59
75
  .cometchat-conversations__subtitle-receipts-delivered{
60
76
  -webkit-mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
61
77
  mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
@@ -493,6 +509,9 @@ background: var(--cometchat-icon-color-secondary, #A1A1A1);
493
509
  background: var(--cometchat-background-color-01, #FFF);
494
510
 
495
511
  }
512
+ .cometchat-conversations .cometchat-conversations__list-item-agent .cometchat-list-item__title-container {
513
+ max-width: 90%;
514
+ }
496
515
 
497
516
  .cometchat-conversations__shimmer-item {
498
517
  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 */
@@ -144,31 +144,32 @@
144
144
  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-2, 8px);
145
145
  ;
146
146
  }
147
- .cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__body-image{
148
- max-width: 100%;
149
- max-height: 84vh;
150
- object-fit: contain;
147
+ .cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__body-image {
148
+ max-width: 100%;
149
+ max-height: 84vh;
150
+ object-fit: contain;
151
151
  }
152
152
 
153
153
  .cometchat-message-bubble__audio-call .cometchat-call-bubble .cometchat-call-bubble__body {
154
154
  padding: 0;
155
155
  }
156
- .cometchat-message-bubble__thread-view-replies .cometchat-button{
156
+ .cometchat-message-bubble__thread-view-replies .cometchat-button {
157
157
  align-items: flex-end;
158
-
158
+
159
159
  }
160
- .cometchat-reactions-info-wrapper > .cometchat{
161
- width:fit-content;
160
+ .cometchat-reactions-info-wrapper>.cometchat {
161
+ width: fit-content;
162
162
  }
163
- .cometchat-message-bubble__thread-view-replies .cometchat-button .cometchat-button__text{
163
+ .cometchat-message-bubble__thread-view-replies .cometchat-button .cometchat-button__text {
164
164
  margin-bottom: -2px;
165
165
  }
166
- .cometchat-message-bubble__body-footer-view .cometchat-reactions .cometchat{
166
+ .cometchat-message-bubble__body-footer-view .cometchat-reactions .cometchat {
167
167
  width: fit-content;
168
168
  }
169
- .cometchat-reactions .cometchat-popover,.cometchat-reactions .cometchat-popover__button{
170
- width: fit-content;
169
+ .cometchat-reactions .cometchat-popover, .cometchat-reactions .cometchat-popover__button{
170
+ width: fit-content;
171
171
  }
172
+
172
173
  /* Date header inside message list */
173
174
  .cometchat-message-list__date-header {
174
175
  position: absolute;
@@ -416,6 +417,20 @@ width: fit-content;
416
417
 
417
418
  }
418
419
 
420
+ .cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body {
421
+ border-bottom-left-radius: 0;
422
+ border-bottom-right-radius: 0;
423
+ }
424
+
425
+
426
+ .cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-video-bubble{
427
+ min-width: 240px;
428
+ }
429
+
430
+ .cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-image-bubble{
431
+ min-width: 240px;
432
+ }
433
+
419
434
  /* Status view for "delivered" receipt inside message bubble */
420
435
  .cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {
421
436
  -webkit-mask: url("../../assets/status_delivered.svg") center center no-repeat;
@@ -429,7 +444,7 @@ width: fit-content;
429
444
  -webkit-mask: url("../../assets/status_read.svg") center center no-repeat;
430
445
  -webkit-mask-size: contain;
431
446
  background: var(--cometchat-message-seen-color,#56E8A7);
432
-
447
+
433
448
 
434
449
  }
435
450
 
@@ -482,7 +497,7 @@ width: fit-content;
482
497
  border-radius: var(--cometchat-radius-max, 8px);
483
498
  background: var(--cometchat-shimmer-gradient-color);
484
499
  background-size: 200% 100%;
485
- animation: shimmer .8s infinite;
500
+ animation: listLoadingAnimation .8s infinite;
486
501
  margin-right: var(--cometchat-margin-2);
487
502
 
488
503
  }
@@ -515,7 +530,7 @@ width: fit-content;
515
530
  align-items: center;
516
531
  background: var(--cometchat-shimmer-gradient-color);
517
532
  background-size: 200% 100%;
518
- animation: shimmer .8s infinite;
533
+ animation: listLoadingAnimation .8s infinite;
519
534
  border-radius: var(--cometchat-radius-2, 8px);
520
535
  }
521
536
 
@@ -524,7 +539,7 @@ width: fit-content;
524
539
  height: 53px;
525
540
  background: var(--cometchat-shimmer-gradient-color);
526
541
  background-size: 200% 100%;
527
- animation: shimmer .8s infinite;
542
+ animation: listLoadingAnimation .8s infinite;
528
543
  border-radius: var(--cometchat-radius-2, 8px);
529
544
  }
530
545
 
@@ -653,7 +668,7 @@ width: fit-content;
653
668
  }
654
669
 
655
670
 
656
- @keyframes shimmer {
671
+ @keyframes listLoadingAnimation {
657
672
  0% {
658
673
  background-position: 200% 0;
659
674
  }
@@ -665,7 +680,7 @@ width: fit-content;
665
680
 
666
681
  }
667
682
 
668
- /**
683
+ /**
669
684
  * Setting transparent background and gap for sticker message bubble
670
685
  */
671
686
  .cometchat-message-bubble__body-wrapper .cometchat-message-bubble__sticker-message {
@@ -709,7 +724,7 @@ width: fit-content;
709
724
  .cometchat-message-information__popup-wrapper {
710
725
  display: flex;
711
726
  position: fixed;
712
- z-index: 2;
727
+ z-index: 3;
713
728
  left: 0;
714
729
  top: 0;
715
730
  width: 100%;
@@ -0,0 +1,25 @@
1
+ /* Bottom view for "blocked" messages inside message bubble */
2
+ .cometchat-moderation-status__icon{
3
+ min-width: 16px;
4
+ min-height: 16px;
5
+ -webkit-mask: url("../../assets/message_blocked.svg") center center no-repeat;
6
+ -webkit-mask-size: contain;
7
+ background-color: var(--cometchat-error-color);
8
+ display: inline-block;
9
+ }
10
+
11
+ .cometchat-moderation-status {
12
+ display: flex;
13
+ flex-direction: row;
14
+ align-items: flex-start;
15
+ background-color: var(--cometchat-error-color-100);
16
+ padding: var(--cometchat-padding-1) var(--cometchat-padding-2);
17
+ gap: var(--cometchat-spacing-1, 4px);
18
+ border-radius: 0 0 var(--cometchat-radius-3, 12px) var(--cometchat-radius-3, 12px);
19
+ }
20
+
21
+ .cometchat-moderation-status .cometchat-moderation-status__message {
22
+ color: var(--cometchat-error-color, #F44649);
23
+ text-align: left;
24
+ font: var(--cometchat-font-body-regular);
25
+ }
@@ -231,6 +231,12 @@
231
231
  -webkit-mask-size: contain;
232
232
  mask-size: contain;
233
233
  }
234
+ .cometchat-search__conversations-subtitle-receipts-wait{
235
+ -webkit-mask: url("../../assets/status_sending.svg") center center no-repeat;
236
+ mask: url("../../assets/status_sending.svg") center center no-repeat;
237
+ -webkit-mask-size: contain;
238
+ mask-size: contain;
239
+ }
234
240
 
235
241
  .cometchat-search__conversations-subtitle-receipts-delivered {
236
242
  -webkit-mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
@@ -239,6 +245,13 @@
239
245
  mask-size: contain;
240
246
  }
241
247
 
248
+ .cometchat-search__conversations-subtitle-receipts-error{
249
+ -webkit-mask: url("../../assets/error_icon.svg") center center no-repeat;
250
+ mask: url("../../assets/error_icon.svg") center center no-repeat;
251
+ -webkit-mask-size: contain;
252
+ mask-size: contain;
253
+ background-color: var(--cometchat-error-color);
254
+ }
242
255
 
243
256
  .cometchat-search__conversations-subtitle-receipts-read {
244
257
  -webkit-mask: url("../../assets/conversations_read.svg") center center no-repeat;
@@ -0,0 +1,183 @@
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__code-block {
68
+ max-height: 300px;
69
+ overflow: auto;
70
+ border: 1px solid var(--cometchat-border-color-default);
71
+ width: 100%;
72
+
73
+ }
74
+
75
+ .cometchat-stream-message-bubble *:not(pre *) {
76
+ color: var(--cometchat-text-color-primary);
77
+ font-size: 14px;
78
+ font-family: var(--cometchat-font-family);
79
+ }
80
+ .cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block,.cometchat-stream-message-bubble .cometchat-stream-message-bubble__code-block *{
81
+ font-size: 14px;
82
+ }
83
+ .cometchat-stream-message-bubble__thinking {
84
+ border-radius: 16px;
85
+ animation: fadeIn 0.5s ease;
86
+ position: relative;
87
+ overflow: hidden;
88
+ color: #717680;
89
+ font: var(--cometchat-font-body-regular);
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: flex-start;
93
+ align-self: flex-start;
94
+ height: fit-content;
95
+ width: fit-content;
96
+ min-width: fit-content;
97
+ }
98
+
99
+
100
+ .cometchat-stream-message-bubble__thinking::after {
101
+ content: '';
102
+ position: absolute;
103
+ top: 0;
104
+ left: -60%;
105
+ width: 60%;
106
+ height: 100%;
107
+ background: var( --cometchat-text-shimmer-gradient-color);
108
+ animation: shimmer 1.5s infinite;
109
+ pointer-events: none;
110
+ opacity: 0.7;
111
+ }
112
+
113
+ .cometchat-stream-message-bubble__tool-call-text {
114
+ width: fit-content;
115
+ text-align: left;
116
+ color: var(--cometchat-text-color-secondary);
117
+
118
+ }
119
+
120
+ .cometchat-stream-message-bubble__thinking {
121
+ align-items: flex-start;
122
+ border-radius: 0px;
123
+ }
124
+
125
+ .cometchat-stream-message-bubble__thinking>.cometchat-stream-message-bubble__thinking-text {
126
+ border-radius: 0px;
127
+ color: var(--cometchat-text-color-secondary);
128
+ }
129
+ .cometchat-stream-message-bubble__code-block::-webkit-scrollbar {
130
+ width: 0px;
131
+ height: 8px;
132
+ background: transparent;
133
+ }
134
+
135
+ .cometchat-stream-message-bubble__code-block::-webkit-scrollbar-track {
136
+ background: transparent;
137
+ }
138
+
139
+ .cometchat-stream-message-bubble__code-block::-webkit-scrollbar-thumb {
140
+ background: var(--cometchat-icon-color-secondary);
141
+ border-radius: 4px;
142
+ }
143
+
144
+ .cometchat-stream-message-bubble table {
145
+ width: 100%;
146
+ border-collapse: collapse;
147
+ table-layout: auto;
148
+ display: block;
149
+ overflow-x: auto;
150
+ }
151
+
152
+ .cometchat-stream-message-bubble th,
153
+ .cometchat-stream-message-bubble td {
154
+ padding: var(--cometchat-padding-2);
155
+ border: 1px solid var(--cometchat-border-color-light);
156
+ text-align: left;
157
+ word-break: break-word; /* prevents text overflow in cells */
158
+ min-width: 100px;
159
+ }
160
+
161
+ .cometchat-stream-message-bubble table::-webkit-scrollbar {
162
+ width: 0px;
163
+ height: 8px;
164
+ background: transparent;
165
+ }
166
+
167
+ .cometchat-stream-message-bubble table::-webkit-scrollbar-track {
168
+ background: transparent;
169
+ }
170
+
171
+ .cometchat-stream-message-bubble table::-webkit-scrollbar-thumb {
172
+ background: var(--cometchat-icon-color-secondary);
173
+ border-radius: var(--cometchat-radius-2);
174
+ }
175
+ @keyframes shimmer {
176
+ 0% {
177
+ left: -60%;
178
+ }
179
+
180
+ 100% {
181
+ left: 100%;
182
+ }
183
+ }