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