@cometchat/chat-uikit-react 6.2.2 → 6.2.4
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/index.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +4 -5
- package/dist/styles/CometChatAIAssistantChatHistory.css +6 -2
- package/dist/styles/CometChatAIAssistantMessageBubble.css +93 -15
- package/dist/styles/CometChatConversations.css +3 -1
- package/dist/styles/CometChatStreamMessageBubble.css +102 -17
- package/dist/styles/components/CometChatAIAssistantChat.css +4 -5
- package/dist/styles/components/CometChatAIAssistantChatHistory.css +6 -2
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +93 -15
- package/dist/styles/components/CometChatConversations.css +3 -1
- package/dist/styles/components/CometChatStreamMessageBubble.css +102 -17
- package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +5 -0
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +3 -0
- package/package.json +1 -1
|
@@ -33,37 +33,30 @@
|
|
|
33
33
|
/* Target all <p> tags without a class */
|
|
34
34
|
.cometchat-stream-message-bubble>p:not([class]) {
|
|
35
35
|
text-align: left;
|
|
36
|
-
line-height: 1.4 !important;
|
|
37
|
-
/* color: var(--cometchat-text-color-secondary); */
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
.cometchat-stream-message-bubble>ol:not([class]) {
|
|
41
39
|
padding-left: 0px !important;
|
|
42
40
|
margin-top: 0px !important;
|
|
43
41
|
text-align: left !important;
|
|
44
|
-
/* color: var(--cometchat-text-color-secondary); */
|
|
45
42
|
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
.cometchat-stream-message-bubble li:not([class]) {
|
|
49
46
|
text-align: left !important;
|
|
50
|
-
/* color: var(--cometchat-text-color-secondary); */
|
|
51
47
|
|
|
52
48
|
}
|
|
53
49
|
|
|
54
|
-
.cometchat-stream-message-bubble
|
|
55
|
-
padding-left:
|
|
50
|
+
.cometchat-stream-message-bubble ol:not([class]),.cometchat-stream-message-bubble ul:not([class]) {
|
|
51
|
+
padding-left: var(--cometchat-padding-5) !important;
|
|
56
52
|
text-align: left !important;
|
|
57
|
-
/* color: var(--cometchat-text-color-secondary); */
|
|
58
53
|
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
.cometchat-stream-message-bubble
|
|
56
|
+
.cometchat-stream-message-bubble ul:not([class]) {
|
|
62
57
|
text-align: left !important;
|
|
63
|
-
/* color: var(--cometchat-text-color-secondary); */
|
|
64
58
|
|
|
65
59
|
}
|
|
66
|
-
|
|
67
60
|
.cometchat-stream-message-bubble__code-block {
|
|
68
61
|
max-height: 300px;
|
|
69
62
|
overflow: auto;
|
|
@@ -94,6 +87,7 @@
|
|
|
94
87
|
height: fit-content;
|
|
95
88
|
width: fit-content;
|
|
96
89
|
min-width: fit-content;
|
|
90
|
+
padding-top: 1px;
|
|
97
91
|
}
|
|
98
92
|
|
|
99
93
|
|
|
@@ -114,6 +108,7 @@
|
|
|
114
108
|
width: fit-content;
|
|
115
109
|
text-align: left;
|
|
116
110
|
color: var(--cometchat-text-color-secondary);
|
|
111
|
+
padding-top: 1px;
|
|
117
112
|
|
|
118
113
|
}
|
|
119
114
|
|
|
@@ -142,22 +137,38 @@
|
|
|
142
137
|
}
|
|
143
138
|
|
|
144
139
|
.cometchat-stream-message-bubble table {
|
|
145
|
-
width:
|
|
146
|
-
|
|
140
|
+
width: fit-content;
|
|
141
|
+
max-width: 100%;
|
|
147
142
|
table-layout: auto;
|
|
148
143
|
display: block;
|
|
149
144
|
overflow-x: auto;
|
|
145
|
+
border-radius: var(--cometchat-radius-2);
|
|
146
|
+
margin: var(--cometchat-margin-2) 0;
|
|
147
|
+
border-collapse: separate;
|
|
148
|
+
border-spacing: 0;
|
|
149
|
+
overflow: hidden;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/* Round only outer cells */
|
|
153
|
+
.cometchat-stream-message-bubble tr:first-child th:first-child {
|
|
154
|
+
border-top-left-radius: var(--cometchat-radius-2);
|
|
155
|
+
}
|
|
156
|
+
.cometchat-stream-message-bubble tr:first-child th:last-child {
|
|
157
|
+
border-top-right-radius: var(--cometchat-radius-2);
|
|
158
|
+
}
|
|
159
|
+
.cometchat-stream-message-bubble tr:last-child td:first-child {
|
|
160
|
+
border-bottom-left-radius: var(--cometchat-radius-2);
|
|
161
|
+
}
|
|
162
|
+
.cometchat-stream-message-bubble tr:last-child td:last-child {
|
|
163
|
+
border-bottom-right-radius: var(--cometchat-radius-2);
|
|
164
|
+
}
|
|
152
165
|
.cometchat-stream-message-bubble th,
|
|
153
166
|
.cometchat-stream-message-bubble td {
|
|
154
167
|
padding: var(--cometchat-padding-2);
|
|
155
|
-
border: 1px solid var(--cometchat-border-color-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
min-width: 100px;
|
|
168
|
+
border: 1px solid var(--cometchat-border-color-dark);
|
|
169
|
+
width: fit-content;
|
|
170
|
+
max-width: 100%;
|
|
159
171
|
}
|
|
160
|
-
|
|
161
172
|
.cometchat-stream-message-bubble table::-webkit-scrollbar {
|
|
162
173
|
width: 0px;
|
|
163
174
|
height: 8px;
|
|
@@ -172,6 +183,80 @@
|
|
|
172
183
|
background: var(--cometchat-icon-color-secondary);
|
|
173
184
|
border-radius: var(--cometchat-radius-2);
|
|
174
185
|
}
|
|
186
|
+
|
|
187
|
+
.cometchat-stream-message-bubble th,
|
|
188
|
+
.cometchat-stream-message-bubble td {
|
|
189
|
+
padding: var(--cometchat-padding-2);
|
|
190
|
+
border: 1px solid var(--cometchat-border-color-dark);
|
|
191
|
+
width: fit-content;
|
|
192
|
+
max-width: 100%;
|
|
193
|
+
}
|
|
194
|
+
.cometchat-stream-message-bubble td{
|
|
195
|
+
text-align: left !important;
|
|
196
|
+
}
|
|
197
|
+
.cometchat-stream-message-bubble th{
|
|
198
|
+
text-align: center !important;
|
|
199
|
+
}
|
|
200
|
+
.cometchat-stream-message-bubble th{
|
|
201
|
+
background: var(--cometchat-background-color-04);
|
|
202
|
+
}
|
|
203
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__link{
|
|
204
|
+
text-decoration: underline;
|
|
205
|
+
color: var(--cometchat-text-color-highlight);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.cometchat-stream-message-bubble li{
|
|
209
|
+
overflow: visible !important;
|
|
210
|
+
line-height: 20px;
|
|
211
|
+
padding: 6px 0px;
|
|
212
|
+
}
|
|
213
|
+
.cometchat-stream-message-bubble img{
|
|
214
|
+
max-height: 300px;
|
|
215
|
+
width: fit-content;
|
|
216
|
+
border-radius: var(--cometchat-radius-2);
|
|
217
|
+
}
|
|
218
|
+
.cometchat-stream-message-bubble > ol:first-child > li:first-child,
|
|
219
|
+
.cometchat-stream-message-bubble > ul:first-child > li:first-child
|
|
220
|
+
{
|
|
221
|
+
padding-top: 0px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.cometchat-stream-message-bubble h1,
|
|
225
|
+
.cometchat-stream-message-bubble h2,
|
|
226
|
+
.cometchat-stream-message-bubble h3,
|
|
227
|
+
.cometchat-stream-message-bubble h4,
|
|
228
|
+
.cometchat-stream-message-bubble h5,
|
|
229
|
+
.cometchat-stream-message-bubble h6 {
|
|
230
|
+
line-height: 20px;
|
|
231
|
+
font-size: initial;
|
|
232
|
+
padding: var(--cometchat-padding-2) 0px;
|
|
233
|
+
margin: 0;
|
|
234
|
+
}
|
|
235
|
+
.cometchat-stream-message-bubble > h1:first-child,
|
|
236
|
+
.cometchat-stream-message-bubble > h2:first-child,
|
|
237
|
+
.cometchat-stream-message-bubble > h3:first-child,
|
|
238
|
+
.cometchat-stream-message-bubble > h4:first-child,
|
|
239
|
+
.cometchat-stream-message-bubble > h5:first-child,
|
|
240
|
+
.cometchat-stream-message-bubble > h6:first-child {
|
|
241
|
+
padding-top: 0px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.cometchat-stream-message-bubble p{
|
|
245
|
+
line-height: 20px;
|
|
246
|
+
padding: var(--cometchat-padding-2) 0px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.cometchat-stream-message-bubble > ul:first-child li:first-child > p:first-child{
|
|
250
|
+
padding-top: 0px;
|
|
251
|
+
}
|
|
252
|
+
.cometchat-stream-message-bubble > ol:first-child li:first-child > p:first-child{
|
|
253
|
+
padding-top: 0px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cometchat-stream-message-bubble > p:first-child{
|
|
257
|
+
padding-top: 0px;
|
|
258
|
+
|
|
259
|
+
}
|
|
175
260
|
@keyframes shimmer {
|
|
176
261
|
0% {
|
|
177
262
|
left: -60%;
|
package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ interface CometChatAIAssistantChatHistoryProps {
|
|
|
23
23
|
* Callback function triggered when clicked on new chat button
|
|
24
24
|
*/
|
|
25
25
|
onNewChatClicked?: ((id?: number) => void) | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Hides new chat button.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
hideNewChat?: boolean;
|
|
26
31
|
}
|
|
27
32
|
declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
33
|
export { CometChatAIAssistantChatHistory };
|
|
@@ -171,6 +171,9 @@ interface ConversationsProps {
|
|
|
171
171
|
showScrollbar?: boolean;
|
|
172
172
|
}
|
|
173
173
|
export type Action = {
|
|
174
|
+
type: "addConversationOfTheGroupAtTheTop";
|
|
175
|
+
conversation: CometChat.Conversation;
|
|
176
|
+
} | {
|
|
174
177
|
type: "appendConversations";
|
|
175
178
|
conversations: CometChat.Conversation[];
|
|
176
179
|
removeOldConversation?: boolean;
|