@cometchat/chat-uikit-react 6.3.6 → 6.3.8
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/mark_unread.svg +3 -0
- package/dist/index.d.ts +32 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatConversations.css +2 -2
- package/dist/styles/CometChatEditPreview.css +2 -0
- package/dist/styles/CometChatMessageBubble.css +12 -0
- package/dist/styles/CometChatMessageList.css +21 -0
- package/dist/styles/CometChatModerationView.css +1 -0
- package/dist/styles/CometChatThreadHeader.css +4 -0
- package/dist/styles/CometChatUsers.css +153 -0
- package/dist/styles/StickersKeyboard.css +1 -1
- package/dist/styles/components/CometChatConversations.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +2 -0
- package/dist/styles/components/CometChatMessageBubble.css +12 -0
- package/dist/styles/components/CometChatMessageList.css +21 -0
- package/dist/styles/components/CometChatModerationView.css +1 -0
- package/dist/styles/components/CometChatThreadHeader.css +4 -0
- package/dist/styles/components/CometChatUsers.css +153 -0
- package/dist/styles/components/StickersKeyboard.css +1 -1
- package/dist/types/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +4 -1
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +2 -0
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +6 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +11 -1
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +6 -0
- package/dist/types/components/CometChatSearch/useCometChatSearchConversationsList.d.ts +6 -0
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +10 -0
- package/dist/types/constants/CometChatUIKitConstants.d.ts +1 -0
- package/dist/types/events/CometChatConversationEvents.d.ts +2 -0
- package/dist/types/utils/MessageUtils.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +2 -0
- package/package.json +2 -2
|
@@ -259,13 +259,13 @@ box-sizing: border-box;
|
|
|
259
259
|
.cometchat-conversations__trailing-view {
|
|
260
260
|
display: flex;
|
|
261
261
|
flex-direction: column;
|
|
262
|
-
gap: var(--cometchat-padding-1,4px);
|
|
262
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.cometchat-conversations__trailing-view-badge {
|
|
266
266
|
display: flex;
|
|
267
267
|
justify-content: flex-end;
|
|
268
|
-
gap: var(--cometchat-padding-1,4px);
|
|
268
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.cometchat-conversations__trailing-view-badge-count {
|
|
@@ -46,12 +46,14 @@
|
|
|
46
46
|
font: var(--cometchat-font-body-regular);
|
|
47
47
|
color: var(--cometchat-text-color-primary);
|
|
48
48
|
font-style: normal;
|
|
49
|
+
margin: 0;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
/*
|
|
52
53
|
Subtitle text inside the edit preview, containing the actual text being edited.
|
|
53
54
|
*/
|
|
54
55
|
.cometchat-edit-preview__subtitle {
|
|
56
|
+
margin: 0;
|
|
55
57
|
font-style: normal;
|
|
56
58
|
text-align: left;
|
|
57
59
|
color: var(--cometchat-text-color-secondary);
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
margin-bottom: 5px;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list{
|
|
21
|
+
height: auto;
|
|
22
|
+
max-height: 216px;
|
|
23
|
+
overflow: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar,
|
|
27
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar-thumb {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
19
31
|
.cometchat-message-bubble .cometchat-reactions{
|
|
20
32
|
width: 100%;
|
|
21
33
|
margin-top: -4px;
|
|
@@ -753,6 +753,27 @@
|
|
|
753
753
|
max-height: 100%;
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
+
.cometchat-message-list__new-message-divider {
|
|
757
|
+
display: flex;
|
|
758
|
+
align-items: center;
|
|
759
|
+
justify-content: center;
|
|
760
|
+
gap: var(--cometchat-spacing-4);
|
|
761
|
+
width: 100%;
|
|
762
|
+
padding: var(--cometchat-margin-4) var(--cometchat-spacing-7);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.cometchat-message-list__new-message-divider span{
|
|
766
|
+
text-wrap: nowrap;
|
|
767
|
+
font: var(--cometchat-font-body-medium);
|
|
768
|
+
color: var(--cometchat-error-color);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.cometchat-message-list__new-message-divider div {
|
|
772
|
+
width: 100%;
|
|
773
|
+
height: 1px;
|
|
774
|
+
background-color: var(--cometchat-error-color);
|
|
775
|
+
}
|
|
776
|
+
|
|
756
777
|
@keyframes backgroundFade {
|
|
757
778
|
0% { background-color: var(--cometchat-extended-primary-color-200); }
|
|
758
779
|
50% { background-color: var(--cometchat-extended-primary-color-100); }
|
|
@@ -7,6 +7,28 @@
|
|
|
7
7
|
gap: 0px;
|
|
8
8
|
flex-shrink: 0;
|
|
9
9
|
background: var(--cometchat-background-color-01, #FFF);
|
|
10
|
+
position: relative;
|
|
11
|
+
/* Prevent native text selection highlight when using Shift+Click to select user ranges */
|
|
12
|
+
user-select: none;
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
-moz-user-select: none;
|
|
15
|
+
-ms-user-select: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Allow text selection in input fields */
|
|
19
|
+
.cometchat-users input,
|
|
20
|
+
.cometchat-users .cometchat-search-bar__input {
|
|
21
|
+
user-select: text;
|
|
22
|
+
-webkit-user-select: text;
|
|
23
|
+
-moz-user-select: text;
|
|
24
|
+
-ms-user-select: text;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Hide selection highlight only for list items (not inputs) */
|
|
28
|
+
.cometchat-users__list-item::selection,
|
|
29
|
+
.cometchat-users__list-item *::selection {
|
|
30
|
+
background: transparent;
|
|
31
|
+
color: inherit;
|
|
10
32
|
}
|
|
11
33
|
|
|
12
34
|
.cometchat-users__empty-state-view {
|
|
@@ -132,6 +154,10 @@
|
|
|
132
154
|
|
|
133
155
|
.cometchat-users__list-item {
|
|
134
156
|
cursor: pointer;
|
|
157
|
+
user-select: none;
|
|
158
|
+
-webkit-user-select: none;
|
|
159
|
+
-moz-user-select: none;
|
|
160
|
+
-ms-user-select: none;
|
|
135
161
|
}
|
|
136
162
|
|
|
137
163
|
.cometchat-users__list-item .cometchat-avatar {
|
|
@@ -157,4 +183,131 @@
|
|
|
157
183
|
100% {
|
|
158
184
|
background-position: 468px 0;
|
|
159
185
|
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.cometchat-users__selected-preview {
|
|
189
|
+
position: absolute;
|
|
190
|
+
bottom: 0;
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
width: 100%;
|
|
194
|
+
max-height: 30vh;
|
|
195
|
+
padding-top: var(--cometchat-padding-4, 16px);
|
|
196
|
+
padding-left: var(--cometchat-padding-4, 16px);
|
|
197
|
+
padding-right: var(--cometchat-padding-4, 16px);
|
|
198
|
+
padding-bottom: 0;
|
|
199
|
+
background: var(--cometchat-background-color-01, #FFF);
|
|
200
|
+
border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
overflow-y: auto;
|
|
203
|
+
overflow-x: hidden;
|
|
204
|
+
z-index: 10;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Hide scrollbar when showScrollbar is false */
|
|
208
|
+
.cometchat-users__selected-preview-hide-scrollbar {
|
|
209
|
+
scrollbar-width: none; /* Firefox */
|
|
210
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.cometchat-users__selected-preview-hide-scrollbar::-webkit-scrollbar {
|
|
214
|
+
display: none; /* Chrome, Safari, Opera */
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.cometchat-users__selected-preview-container {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-wrap: wrap;
|
|
220
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
221
|
+
max-height: calc(2 * (32px + var(--cometchat-padding-2, 8px)));
|
|
222
|
+
overflow-y: auto;
|
|
223
|
+
overflow-x: hidden;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Hide scrollbar when showScrollbar is false */
|
|
227
|
+
.cometchat-users__selected-preview-container-hide-scrollbar {
|
|
228
|
+
scrollbar-width: none; /* Firefox */
|
|
229
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cometchat-users__selected-preview-container-hide-scrollbar::-webkit-scrollbar {
|
|
233
|
+
display: none; /* Chrome, Safari, Opera */
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.cometchat-users__selected-preview-chip {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
240
|
+
border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
|
|
241
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
242
|
+
background: var(--cometchat-background-color-03, #F5F5F5);
|
|
243
|
+
border-radius: var(--cometchat-radius-max, 1000px);
|
|
244
|
+
height: 32px;
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
flex-shrink: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.cometchat-users__selected-preview-chip .cometchat-avatar {
|
|
250
|
+
width: 24px;
|
|
251
|
+
height: 24px;
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
}
|
|
254
|
+
.cometchat-users__selected-preview-chip .cometchat-avatar .cometchat-avatar__text {
|
|
255
|
+
font: var( --cometchat-font-caption1-bold);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.cometchat-users__selected-preview-chip-name {
|
|
259
|
+
color: var(--cometchat-text-color-primary, #141414);
|
|
260
|
+
font: var(--cometchat-font-body-medium);
|
|
261
|
+
max-width: 48px;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
text-overflow: ellipsis;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.cometchat-users__selected-preview-chip-close {
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
width: 16px;
|
|
272
|
+
height: 16px;
|
|
273
|
+
padding: 0;
|
|
274
|
+
border: none;
|
|
275
|
+
background: transparent;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
flex-shrink: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.cometchat-users__selected-preview-chip-close img {
|
|
281
|
+
width: 16px;
|
|
282
|
+
height: 16px;
|
|
283
|
+
opacity: 0.6;
|
|
284
|
+
transition: opacity 0.2s;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.cometchat-users__selected-preview-chip-close:hover img {
|
|
288
|
+
opacity: 1;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.cometchat-users__selected-preview-chip-close-button {
|
|
292
|
+
border: none;
|
|
293
|
+
background: none;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
user-select: none;
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.cometchat-users__selected-preview-chip-close-button .cometchat-button {
|
|
300
|
+
background: transparent;
|
|
301
|
+
border: none;
|
|
302
|
+
border-radius: 0;
|
|
303
|
+
padding: 0;
|
|
304
|
+
margin: 0;
|
|
305
|
+
height: fit-content;
|
|
306
|
+
width: fit-content;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.cometchat-users__selected-preview-chip-close-button .cometchat-button .cometchat-button__icon {
|
|
310
|
+
height: 24px;
|
|
311
|
+
width: 24px;
|
|
312
|
+
background: var(--cometchat-icon-color-secondary);
|
|
160
313
|
}
|
|
@@ -259,13 +259,13 @@ box-sizing: border-box;
|
|
|
259
259
|
.cometchat-conversations__trailing-view {
|
|
260
260
|
display: flex;
|
|
261
261
|
flex-direction: column;
|
|
262
|
-
gap: var(--cometchat-padding-1,4px);
|
|
262
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.cometchat-conversations__trailing-view-badge {
|
|
266
266
|
display: flex;
|
|
267
267
|
justify-content: flex-end;
|
|
268
|
-
gap: var(--cometchat-padding-1,4px);
|
|
268
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.cometchat-conversations__trailing-view-badge-count {
|
|
@@ -46,12 +46,14 @@
|
|
|
46
46
|
font: var(--cometchat-font-body-regular);
|
|
47
47
|
color: var(--cometchat-text-color-primary);
|
|
48
48
|
font-style: normal;
|
|
49
|
+
margin: 0;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
/*
|
|
52
53
|
Subtitle text inside the edit preview, containing the actual text being edited.
|
|
53
54
|
*/
|
|
54
55
|
.cometchat-edit-preview__subtitle {
|
|
56
|
+
margin: 0;
|
|
55
57
|
font-style: normal;
|
|
56
58
|
text-align: left;
|
|
57
59
|
color: var(--cometchat-text-color-secondary);
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
margin-bottom: 5px;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list{
|
|
21
|
+
height: auto;
|
|
22
|
+
max-height: 216px;
|
|
23
|
+
overflow: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar,
|
|
27
|
+
.cometchat-message-bubble .cometchat-menu-list__sub-menu-list::-webkit-scrollbar-thumb {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
19
31
|
.cometchat-message-bubble .cometchat-reactions{
|
|
20
32
|
width: 100%;
|
|
21
33
|
margin-top: -4px;
|
|
@@ -753,6 +753,27 @@
|
|
|
753
753
|
max-height: 100%;
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
+
.cometchat-message-list__new-message-divider {
|
|
757
|
+
display: flex;
|
|
758
|
+
align-items: center;
|
|
759
|
+
justify-content: center;
|
|
760
|
+
gap: var(--cometchat-spacing-4);
|
|
761
|
+
width: 100%;
|
|
762
|
+
padding: var(--cometchat-margin-4) var(--cometchat-spacing-7);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.cometchat-message-list__new-message-divider span{
|
|
766
|
+
text-wrap: nowrap;
|
|
767
|
+
font: var(--cometchat-font-body-medium);
|
|
768
|
+
color: var(--cometchat-error-color);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.cometchat-message-list__new-message-divider div {
|
|
772
|
+
width: 100%;
|
|
773
|
+
height: 1px;
|
|
774
|
+
background-color: var(--cometchat-error-color);
|
|
775
|
+
}
|
|
776
|
+
|
|
756
777
|
@keyframes backgroundFade {
|
|
757
778
|
0% { background-color: var(--cometchat-extended-primary-color-200); }
|
|
758
779
|
50% { background-color: var(--cometchat-extended-primary-color-100); }
|
|
@@ -7,6 +7,28 @@
|
|
|
7
7
|
gap: 0px;
|
|
8
8
|
flex-shrink: 0;
|
|
9
9
|
background: var(--cometchat-background-color-01, #FFF);
|
|
10
|
+
position: relative;
|
|
11
|
+
/* Prevent native text selection highlight when using Shift+Click to select user ranges */
|
|
12
|
+
user-select: none;
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
-moz-user-select: none;
|
|
15
|
+
-ms-user-select: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Allow text selection in input fields */
|
|
19
|
+
.cometchat-users input,
|
|
20
|
+
.cometchat-users .cometchat-search-bar__input {
|
|
21
|
+
user-select: text;
|
|
22
|
+
-webkit-user-select: text;
|
|
23
|
+
-moz-user-select: text;
|
|
24
|
+
-ms-user-select: text;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Hide selection highlight only for list items (not inputs) */
|
|
28
|
+
.cometchat-users__list-item::selection,
|
|
29
|
+
.cometchat-users__list-item *::selection {
|
|
30
|
+
background: transparent;
|
|
31
|
+
color: inherit;
|
|
10
32
|
}
|
|
11
33
|
|
|
12
34
|
.cometchat-users__empty-state-view {
|
|
@@ -132,6 +154,10 @@
|
|
|
132
154
|
|
|
133
155
|
.cometchat-users__list-item {
|
|
134
156
|
cursor: pointer;
|
|
157
|
+
user-select: none;
|
|
158
|
+
-webkit-user-select: none;
|
|
159
|
+
-moz-user-select: none;
|
|
160
|
+
-ms-user-select: none;
|
|
135
161
|
}
|
|
136
162
|
|
|
137
163
|
.cometchat-users__list-item .cometchat-avatar {
|
|
@@ -157,4 +183,131 @@
|
|
|
157
183
|
100% {
|
|
158
184
|
background-position: 468px 0;
|
|
159
185
|
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.cometchat-users__selected-preview {
|
|
189
|
+
position: absolute;
|
|
190
|
+
bottom: 0;
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
width: 100%;
|
|
194
|
+
max-height: 30vh;
|
|
195
|
+
padding-top: var(--cometchat-padding-4, 16px);
|
|
196
|
+
padding-left: var(--cometchat-padding-4, 16px);
|
|
197
|
+
padding-right: var(--cometchat-padding-4, 16px);
|
|
198
|
+
padding-bottom: 0;
|
|
199
|
+
background: var(--cometchat-background-color-01, #FFF);
|
|
200
|
+
border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
overflow-y: auto;
|
|
203
|
+
overflow-x: hidden;
|
|
204
|
+
z-index: 10;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Hide scrollbar when showScrollbar is false */
|
|
208
|
+
.cometchat-users__selected-preview-hide-scrollbar {
|
|
209
|
+
scrollbar-width: none; /* Firefox */
|
|
210
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.cometchat-users__selected-preview-hide-scrollbar::-webkit-scrollbar {
|
|
214
|
+
display: none; /* Chrome, Safari, Opera */
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.cometchat-users__selected-preview-container {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-wrap: wrap;
|
|
220
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
221
|
+
max-height: calc(2 * (32px + var(--cometchat-padding-2, 8px)));
|
|
222
|
+
overflow-y: auto;
|
|
223
|
+
overflow-x: hidden;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Hide scrollbar when showScrollbar is false */
|
|
227
|
+
.cometchat-users__selected-preview-container-hide-scrollbar {
|
|
228
|
+
scrollbar-width: none; /* Firefox */
|
|
229
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cometchat-users__selected-preview-container-hide-scrollbar::-webkit-scrollbar {
|
|
233
|
+
display: none; /* Chrome, Safari, Opera */
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.cometchat-users__selected-preview-chip {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
240
|
+
border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
|
|
241
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
242
|
+
background: var(--cometchat-background-color-03, #F5F5F5);
|
|
243
|
+
border-radius: var(--cometchat-radius-max, 1000px);
|
|
244
|
+
height: 32px;
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
flex-shrink: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.cometchat-users__selected-preview-chip .cometchat-avatar {
|
|
250
|
+
width: 24px;
|
|
251
|
+
height: 24px;
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
}
|
|
254
|
+
.cometchat-users__selected-preview-chip .cometchat-avatar .cometchat-avatar__text {
|
|
255
|
+
font: var( --cometchat-font-caption1-bold);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.cometchat-users__selected-preview-chip-name {
|
|
259
|
+
color: var(--cometchat-text-color-primary, #141414);
|
|
260
|
+
font: var(--cometchat-font-body-medium);
|
|
261
|
+
max-width: 48px;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
text-overflow: ellipsis;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.cometchat-users__selected-preview-chip-close {
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
width: 16px;
|
|
272
|
+
height: 16px;
|
|
273
|
+
padding: 0;
|
|
274
|
+
border: none;
|
|
275
|
+
background: transparent;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
flex-shrink: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.cometchat-users__selected-preview-chip-close img {
|
|
281
|
+
width: 16px;
|
|
282
|
+
height: 16px;
|
|
283
|
+
opacity: 0.6;
|
|
284
|
+
transition: opacity 0.2s;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.cometchat-users__selected-preview-chip-close:hover img {
|
|
288
|
+
opacity: 1;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.cometchat-users__selected-preview-chip-close-button {
|
|
292
|
+
border: none;
|
|
293
|
+
background: none;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
user-select: none;
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.cometchat-users__selected-preview-chip-close-button .cometchat-button {
|
|
300
|
+
background: transparent;
|
|
301
|
+
border: none;
|
|
302
|
+
border-radius: 0;
|
|
303
|
+
padding: 0;
|
|
304
|
+
margin: 0;
|
|
305
|
+
height: fit-content;
|
|
306
|
+
width: fit-content;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.cometchat-users__selected-preview-chip-close-button .cometchat-button .cometchat-button__icon {
|
|
310
|
+
height: 24px;
|
|
311
|
+
width: 24px;
|
|
312
|
+
background: var(--cometchat-icon-color-secondary);
|
|
160
313
|
}
|
|
@@ -5,6 +5,8 @@ interface CheckboxProps {
|
|
|
5
5
|
onCheckBoxValueChanged: (input: {
|
|
6
6
|
checked: boolean;
|
|
7
7
|
labelText: string | undefined;
|
|
8
|
+
shiftKey?: boolean;
|
|
9
|
+
metaKey?: boolean;
|
|
8
10
|
}) => void;
|
|
9
11
|
}
|
|
10
12
|
declare const CometChatCheckbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ChangeEvent } from "react";
|
|
1
|
+
import { ChangeEvent, MouseEvent } from "react";
|
|
2
2
|
export declare const useCometChatCheckbox: ({ checked, onCheckBoxValueChanged }: {
|
|
3
3
|
checked?: boolean | undefined;
|
|
4
4
|
onCheckBoxValueChanged?: ((input: {
|
|
5
5
|
checked: boolean;
|
|
6
6
|
labelText: string | undefined;
|
|
7
|
+
shiftKey?: boolean;
|
|
8
|
+
metaKey?: boolean;
|
|
7
9
|
}) => void) | undefined;
|
|
8
10
|
}) => {
|
|
9
11
|
isChecked: boolean;
|
|
10
12
|
updateCheckbox: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
handleClick: (event: MouseEvent<HTMLInputElement>) => void;
|
|
11
14
|
};
|
|
@@ -224,6 +224,9 @@ export type Action = {
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "resetUnreadCountAndSetReadAtIfLastMessage";
|
|
226
226
|
message: CometChat.BaseMessage;
|
|
227
|
+
} | {
|
|
228
|
+
type: "resetUnreadCount";
|
|
229
|
+
conversation: CometChat.Conversation;
|
|
227
230
|
} | {
|
|
228
231
|
type: "setLastMessageReadOrDeliveredAt";
|
|
229
232
|
updateReadAt: boolean;
|
|
@@ -234,6 +237,9 @@ export type Action = {
|
|
|
234
237
|
} | {
|
|
235
238
|
type: "setIsFirstReload";
|
|
236
239
|
isFirstReload: boolean;
|
|
240
|
+
} | {
|
|
241
|
+
type: "updateConversation";
|
|
242
|
+
conversation: CometChat.Conversation;
|
|
237
243
|
};
|
|
238
244
|
/**
|
|
239
245
|
* Renders a scrollable list of conversations that has been created in a CometChat app
|
|
@@ -87,6 +87,11 @@ interface MessageListProps {
|
|
|
87
87
|
* @default false
|
|
88
88
|
*/
|
|
89
89
|
hideMessageInfoOption?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Shows the option to mark messages as unread.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
showMarkAsUnreadOption?: boolean;
|
|
90
95
|
/**
|
|
91
96
|
* Hides avatars for messages.
|
|
92
97
|
* @default false
|
|
@@ -97,6 +102,11 @@ interface MessageListProps {
|
|
|
97
102
|
* @default false
|
|
98
103
|
*/
|
|
99
104
|
hideGroupActionMessages?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* If set to true, the message list will start from unread messages.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
startFromUnreadMessages?: boolean;
|
|
100
110
|
/**
|
|
101
111
|
* Unique identifier of the parent message for displaying threaded conversations.
|
|
102
112
|
*/
|
|
@@ -137,7 +147,7 @@ interface MessageListProps {
|
|
|
137
147
|
scrollToBottomOnNewMessages?: boolean;
|
|
138
148
|
/**
|
|
139
149
|
* Specifies how many message options are visible in the main menu by default.
|
|
140
|
-
* @default
|
|
150
|
+
* @default 3
|
|
141
151
|
*/
|
|
142
152
|
quickOptionsCount?: number;
|
|
143
153
|
/**
|
|
@@ -32,6 +32,12 @@ export declare class MessageListManager {
|
|
|
32
32
|
* @returns {Promise}
|
|
33
33
|
*/
|
|
34
34
|
fetchPreviousMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Function to get the limit set in the messagesRequestBuilder.
|
|
37
|
+
*
|
|
38
|
+
* @returns {number | undefined}
|
|
39
|
+
*/
|
|
40
|
+
getLimit: () => number | undefined;
|
|
35
41
|
/**
|
|
36
42
|
* Function to attach the group and call listeners for a particular user/group. This listener is attached when the chat is opened and is removed once the chat is closed or when switching to a new chat, where it creates a new listener for the particular chat.
|
|
37
43
|
*
|
|
@@ -184,6 +184,9 @@ export type Action = {
|
|
|
184
184
|
} | {
|
|
185
185
|
type: "resetUnreadCountAndSetReadAtIfLastMessage";
|
|
186
186
|
message: CometChat.BaseMessage;
|
|
187
|
+
} | {
|
|
188
|
+
type: "resetUnreadCount";
|
|
189
|
+
conversation: CometChat.Conversation;
|
|
187
190
|
} | {
|
|
188
191
|
type: "setLastMessageReadOrDeliveredAt";
|
|
189
192
|
updateReadAt: boolean;
|
|
@@ -191,6 +194,9 @@ export type Action = {
|
|
|
191
194
|
} | {
|
|
192
195
|
type: "setHasMoreResults";
|
|
193
196
|
hasMoreResults: boolean;
|
|
197
|
+
} | {
|
|
198
|
+
type: "updateConversation";
|
|
199
|
+
conversation: CometChat.Conversation;
|
|
194
200
|
};
|
|
195
201
|
/**
|
|
196
202
|
* Hook for managing and rendering a list of conversations in the search component
|