@cometchat/chat-uikit-react 6.1.1 → 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.
- package/dist/assets/Profile.png +0 -0
- package/dist/assets/chat-history.svg +3 -0
- package/dist/assets/copy-text.svg +3 -0
- package/dist/assets/new-chat.svg +3 -0
- package/dist/assets/right-arrow.svg +3 -0
- package/dist/assets/search_message_icon.svg +8 -14
- package/dist/assets/send-message.svg +3 -0
- package/dist/assets/stop-message.svg +3 -0
- package/dist/index.d.ts +275 -34
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +456 -0
- package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
- package/dist/styles/CometChatAIAssistantMessageBubble.css +86 -0
- package/dist/styles/CometChatConversations.css +3 -0
- package/dist/styles/CometChatErrorView.css +22 -0
- package/dist/styles/CometChatMessageComposer.css +9 -9
- package/dist/styles/CometChatMessageHeader.css +2 -4
- package/dist/styles/CometChatMessageList.css +4 -4
- package/dist/styles/CometChatOutgoingCall.css +10 -1
- package/dist/styles/CometChatSearch.css +18 -11
- package/dist/styles/CometChatStreamMessageBubble.css +154 -0
- package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
- package/dist/styles/CometChatToolCallResultBubble.css +91 -0
- package/dist/styles/components/CometChatAIAssistantChat.css +456 -0
- package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +86 -0
- package/dist/styles/components/CometChatConversations.css +3 -0
- package/dist/styles/components/CometChatErrorView.css +22 -0
- package/dist/styles/components/CometChatMessageComposer.css +9 -9
- package/dist/styles/components/CometChatMessageHeader.css +2 -4
- package/dist/styles/components/CometChatMessageList.css +4 -4
- package/dist/styles/components/CometChatOutgoingCall.css +10 -1
- package/dist/styles/components/CometChatSearch.css +18 -11
- package/dist/styles/components/CometChatStreamMessageBubble.css +154 -0
- package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
- package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
- package/dist/styles/components/index.css +8 -2
- package/dist/styles/css-variables.css +5 -0
- package/dist/styles/index.css +8 -2
- package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +3 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +4 -0
- package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
- package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
- package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
- package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
- package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +1 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +3 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +15 -0
- package/dist/types/context/CometChatFrameContext.d.ts +14 -0
- package/dist/types/events/CometChatMessageEvents.d.ts +3 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
- package/dist/types/services/stream-message.service.d.ts +44 -0
- package/dist/types/utils/DataSource.d.ts +9 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
- package/dist/types/utils/MessagesDataSource.d.ts +15 -6
- package/dist/types/utils/util.d.ts +2 -0
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
656
|
+
@keyframes listLoadingAnimation {
|
|
657
657
|
0% {
|
|
658
658
|
background-position: 200% 0;
|
|
659
659
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
.cometchat-outgoing-call__title-container {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
|
+
gap: var(--cometchat-spacing-2);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/* Subtitle text for the outgoing call UI */
|
|
@@ -82,6 +83,9 @@
|
|
|
82
83
|
|
|
83
84
|
/* Media query for screens with a max width of 600px */
|
|
84
85
|
@media (max-width: 600px) {
|
|
86
|
+
.cometchat-outgoing-call{
|
|
87
|
+
padding: var(--cometchat-spacing-20) var(--cometchat-spacing-5) var(--cometchat-spacing-15) var(--cometchat-spacing-5);
|
|
88
|
+
}
|
|
85
89
|
|
|
86
90
|
/* Font size for avatar text in smaller screens */
|
|
87
91
|
.cometchat-outgoing-call__avatar .cometchat-avatar__text {
|
|
@@ -103,12 +107,17 @@
|
|
|
103
107
|
.cometchat-outgoing-call__subtitle {
|
|
104
108
|
font: var(--cometchat-font-body-regular);
|
|
105
109
|
}
|
|
110
|
+
.cometchat-outgoing-call__avatar{
|
|
111
|
+
margin-bottom: auto;
|
|
112
|
+
margin-top: var(--cometchat-margin-10);
|
|
113
|
+
}
|
|
106
114
|
|
|
107
115
|
/* Size and border radius adjustment for the container in smaller screens */
|
|
108
|
-
.cometchat-outgoing-call {
|
|
116
|
+
.cometchat-outgoing-call,.cometchat:has(> .cometchat-outgoing-call) {
|
|
109
117
|
height: 100%;
|
|
110
118
|
width: 100%;
|
|
111
119
|
border-radius: 0;
|
|
112
120
|
}
|
|
113
121
|
|
|
122
|
+
|
|
114
123
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
justify-content: flex-start;
|
|
17
17
|
min-height: 64px;
|
|
18
18
|
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
19
|
+
padding-bottom: 0;
|
|
19
20
|
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -253,6 +254,10 @@
|
|
|
253
254
|
color: var(--cometchat-text-color-primary);
|
|
254
255
|
|
|
255
256
|
}
|
|
257
|
+
.cometchat-search__results .cometchat-list__header-title {
|
|
258
|
+
min-height: 20px;
|
|
259
|
+
margin-bottom: var(--cometchat-margin-1);
|
|
260
|
+
}
|
|
256
261
|
|
|
257
262
|
.cometchat-search__results,
|
|
258
263
|
.cometchat-search__conversations,
|
|
@@ -266,10 +271,6 @@
|
|
|
266
271
|
height: 100%;
|
|
267
272
|
}
|
|
268
273
|
|
|
269
|
-
.cometchat-search__conversations-full,
|
|
270
|
-
.cometchat-search__messages-full {
|
|
271
|
-
height: 100%;
|
|
272
|
-
}
|
|
273
274
|
|
|
274
275
|
.cometchat-search__conversations-list-item {
|
|
275
276
|
cursor: pointer;
|
|
@@ -559,6 +560,7 @@
|
|
|
559
560
|
justify-content: center;
|
|
560
561
|
align-items: center;
|
|
561
562
|
background: var(--cometchat-background-color-01, #FFF);
|
|
563
|
+
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
.cometchat-search__empty-view-icon {
|
|
@@ -578,14 +580,16 @@
|
|
|
578
580
|
}
|
|
579
581
|
|
|
580
582
|
.cometchat-search__empty-view-body-title {
|
|
581
|
-
width: 280px;
|
|
583
|
+
max-width: 280px;
|
|
584
|
+
width: auto;
|
|
582
585
|
color: var(--cometchat-text-color-primary, #141414);
|
|
583
586
|
text-align: center;
|
|
584
587
|
font: var(--cometchat-font-heading3-bold);
|
|
585
588
|
}
|
|
586
589
|
|
|
587
590
|
.cometchat-search__empty-view-body-description {
|
|
588
|
-
|
|
591
|
+
max-width: 280px;
|
|
592
|
+
width: auto;
|
|
589
593
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
590
594
|
text-align: center;
|
|
591
595
|
font: var(--cometchat-font-body-regular);
|
|
@@ -639,8 +643,7 @@
|
|
|
639
643
|
|
|
640
644
|
.cometchat-search-messages__list-item .cometchat-list-item__body-subtitle,
|
|
641
645
|
.cometchat-search-messages__list-item .cometchat-search-messages__subtitle {
|
|
642
|
-
display:
|
|
643
|
-
gap: var(--cometchat-padding-1, 4px);
|
|
646
|
+
display: block;
|
|
644
647
|
width: 100%;
|
|
645
648
|
max-width: 98%;
|
|
646
649
|
overflow: hidden;
|
|
@@ -768,7 +771,7 @@
|
|
|
768
771
|
}
|
|
769
772
|
|
|
770
773
|
.cometchat-search__messages-trailing-view {
|
|
771
|
-
height:
|
|
774
|
+
min-height: 50px;
|
|
772
775
|
width: 80px;
|
|
773
776
|
display: flex;
|
|
774
777
|
align-items: center;
|
|
@@ -818,7 +821,7 @@
|
|
|
818
821
|
.cometchat-search .cometchat-list__header-title {
|
|
819
822
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
820
823
|
|
|
821
|
-
font: var(--cometchat-font-
|
|
824
|
+
font: var(--cometchat-font-caption1-medium)
|
|
822
825
|
}
|
|
823
826
|
|
|
824
827
|
.cometchat-search__conversations,
|
|
@@ -826,6 +829,10 @@
|
|
|
826
829
|
min-height: 110px;
|
|
827
830
|
height: fit-content;
|
|
828
831
|
}
|
|
832
|
+
.cometchat-search__conversations-full,
|
|
833
|
+
.cometchat-search__messages-full {
|
|
834
|
+
height: 100%;
|
|
835
|
+
}
|
|
829
836
|
|
|
830
837
|
.cometchat-search__results::-webkit-scrollbar,
|
|
831
838
|
.cometchat-search__input::-webkit-scrollbar {
|
|
@@ -931,7 +938,7 @@
|
|
|
931
938
|
width: 32px;
|
|
932
939
|
}
|
|
933
940
|
|
|
934
|
-
.cometchat-list-item__body-title {
|
|
941
|
+
.cometchat-search__messages .cometchat-list-item__body-title {
|
|
935
942
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
936
943
|
}
|
|
937
944
|
|
|
@@ -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.
|