@cometchat/chat-uikit-react 6.2.3 → 6.2.5

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.
@@ -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>ol:not([class]) ul:not([class]) {
55
- padding-left: 20px !important;
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>ul:not([class]) {
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: 100%;
146
- border-collapse: collapse;
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-light);
156
- text-align: left;
157
- word-break: break-word; /* prevents text overflow in cells */
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,83 @@
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 ul,.cometchat-stream-message-bubble ol,.cometchat-stream-message-bubble hr{
209
+ margin: 0;
210
+ }
211
+ .cometchat-stream-message-bubble li{
212
+ overflow: visible !important;
213
+ line-height: 20px;
214
+ padding: 0px 0px 6px 0px;
215
+ }
216
+ .cometchat-stream-message-bubble img{
217
+ max-height: 300px;
218
+ width: fit-content;
219
+ border-radius: var(--cometchat-radius-2);
220
+ }
221
+ .cometchat-stream-message-bubble > ol:first-child > li:first-child,
222
+ .cometchat-stream-message-bubble > ul:first-child > li:first-child
223
+ {
224
+ padding-top: 0px;
225
+ }
226
+
227
+ .cometchat-stream-message-bubble h1,
228
+ .cometchat-stream-message-bubble h2,
229
+ .cometchat-stream-message-bubble h3,
230
+ .cometchat-stream-message-bubble h4,
231
+ .cometchat-stream-message-bubble h5,
232
+ .cometchat-stream-message-bubble h6 {
233
+ line-height: 20px;
234
+ font-size: initial;
235
+ padding: var(--cometchat-padding-2) 0px;
236
+ margin: 0;
237
+ }
238
+ .cometchat-stream-message-bubble > h1:first-child,
239
+ .cometchat-stream-message-bubble > h2:first-child,
240
+ .cometchat-stream-message-bubble > h3:first-child,
241
+ .cometchat-stream-message-bubble > h4:first-child,
242
+ .cometchat-stream-message-bubble > h5:first-child,
243
+ .cometchat-stream-message-bubble > h6:first-child {
244
+ padding-top: 0px;
245
+ }
246
+
247
+ .cometchat-stream-message-bubble p{
248
+ line-height: 20px;
249
+ padding: var(--cometchat-padding-2) 0px;
250
+ }
251
+
252
+ .cometchat-stream-message-bubble > ul:first-child li:first-child > p:first-child{
253
+ padding-top: 0px;
254
+ }
255
+ .cometchat-stream-message-bubble > ol:first-child li:first-child > p:first-child{
256
+ padding-top: 0px;
257
+ }
258
+
259
+ .cometchat-stream-message-bubble > p:first-child{
260
+ padding-top: 0px;
261
+
262
+ }
175
263
  @keyframes shimmer {
176
264
  0% {
177
265
  left: -60%;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "6.2.3",
3
+ "version": "6.2.5",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "exports": {