@cometchat/chat-uikit-react 6.0.7 → 6.1.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/audio_filter_icon.svg +3 -0
- package/dist/assets/chats_filter_icon.svg +1 -0
- package/dist/assets/file_filter_icon.svg +4 -0
- package/dist/assets/group_filter_icon.svg +3 -0
- package/dist/assets/link_filter_icon.svg +3 -0
- package/dist/assets/link_icon_2x.svg +3 -0
- package/dist/assets/messages_filter_icon.svg +1 -0
- package/dist/assets/photo_filter_icon.svg +3 -0
- package/dist/assets/search_message_icon.svg +14 -0
- package/dist/assets/unread_filter_icon.svg +7 -0
- package/dist/assets/video_filter_icon.svg +3 -0
- package/dist/index.d.ts +420 -31
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatConversations.css +16 -1
- package/dist/styles/CometChatList.css +10 -1
- package/dist/styles/CometChatMessageHeader.css +39 -0
- package/dist/styles/CometChatMessageList.css +28 -13
- package/dist/styles/CometChatSearch.css +948 -0
- package/dist/styles/CometChatThreadHeader.css +16 -1
- package/dist/styles/components/CometChatConversations.css +16 -1
- package/dist/styles/components/CometChatList.css +10 -1
- package/dist/styles/components/CometChatMessageHeader.css +39 -0
- package/dist/styles/components/CometChatMessageList.css +28 -13
- package/dist/styles/components/CometChatSearch.css +948 -0
- package/dist/styles/components/CometChatThreadHeader.css +16 -1
- package/dist/styles/components/index.css +5 -0
- package/dist/styles/index.css +5 -0
- package/dist/types/Enums/Enums.d.ts +37 -0
- package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +24 -4
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +14 -1
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +15 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +6 -0
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatSearch/CometChatSearch.d.ts +240 -0
- package/dist/types/components/CometChatSearch/SearchConversationsManager.d.ts +50 -0
- package/dist/types/components/CometChatSearch/useCometChatSearchConversationsList.d.ts +207 -0
- package/dist/types/components/CometChatSearch/useCometChatSearchMessagesList.d.ts +127 -0
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +8 -0
- package/dist/types/formatters/CometChatFormatters/CometChatTextHighlightFormatter/CometChatTextHighlightFormatter.d.ts +26 -0
- package/dist/types/formatters/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/modals/CometChatSearchFilterOption.d.ts +34 -0
- package/dist/types/utils/SearchUtils.d.ts +30 -0
- package/dist/types/utils/util.d.ts +7 -0
- package/package.json +4 -3
|
@@ -573,7 +573,22 @@ width: 100%;
|
|
|
573
573
|
display: none;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
|
|
576
|
+
.cometchat-conversations .cometchat-search-bar__input{
|
|
577
|
+
cursor: pointer;
|
|
578
|
+
}
|
|
579
|
+
.cometchat-conversations .cometchat-list-item__body{
|
|
580
|
+
position: relative;
|
|
581
|
+
}
|
|
582
|
+
.cometchat-conversations .cometchat-list-item__menu-view{
|
|
583
|
+
position: absolute;
|
|
584
|
+
top: 0;
|
|
585
|
+
right: 0;
|
|
586
|
+
z-index: 1;
|
|
587
|
+
}
|
|
588
|
+
.cometchat-conversations .cometchat-list-item__trailing-view-hidden {
|
|
589
|
+
visibility: hidden;
|
|
590
|
+
display: initial;
|
|
591
|
+
}
|
|
577
592
|
@keyframes shimmerAnimation {
|
|
578
593
|
0% {
|
|
579
594
|
background-position: -468px 0;
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
width: 100%;
|
|
65
65
|
height: 100%;
|
|
66
66
|
box-sizing: border-box;
|
|
67
|
-
border-right: 1px solid var(--cometchat-border-color-light)
|
|
67
|
+
border-right: 1px solid var(--cometchat-border-color-light);
|
|
68
|
+
position: relative;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/* Styles for loading, error, and empty views, taking up the remaining space */
|
|
@@ -75,6 +76,14 @@
|
|
|
75
76
|
overflow: hidden;
|
|
76
77
|
width: 100%;
|
|
77
78
|
}
|
|
79
|
+
.cometchat-list__loading-view-top{
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 0;
|
|
82
|
+
bottom: 0;
|
|
83
|
+
height: 100%;
|
|
84
|
+
width: 100%;
|
|
85
|
+
z-index: 2;
|
|
86
|
+
}
|
|
78
87
|
|
|
79
88
|
/* Section header text styling */
|
|
80
89
|
.cometchat-list__section-header {
|
|
@@ -90,6 +90,45 @@
|
|
|
90
90
|
background: var(--cometchat-icon-color-primary, #141414);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/* Styling for the search button in the message header */
|
|
94
|
+
.cometchat-message-header .cometchat-message-header__search-button .cometchat-button {
|
|
95
|
+
background: transparent;
|
|
96
|
+
border: none;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
align-items: center;
|
|
99
|
+
height: fit-content;
|
|
100
|
+
width: fit-content;
|
|
101
|
+
padding: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.cometchat-message-header .cometchat-message-header__search-button .cometchat-button__icon,.cometchat-message-header .cometchat-menu-list__sub-menu-icon {
|
|
105
|
+
height: 24px;
|
|
106
|
+
width: 24px;
|
|
107
|
+
background: var(--cometchat-icon-color-primary, #141414);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Styling for the menu in the message header */
|
|
111
|
+
.cometchat-message-header .cometchat-message-header__menu {
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
height: fit-content;
|
|
116
|
+
width: fit-content;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cometchat-message-header .cometchat-message-header__menu .cometchat-button {
|
|
120
|
+
background: transparent;
|
|
121
|
+
border: none;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
height: 24px;
|
|
125
|
+
width: 24px;
|
|
126
|
+
padding: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cometchat-message-header .cometchat-menu-list__sub-menu-list {
|
|
130
|
+
width: max-content;
|
|
131
|
+
}
|
|
93
132
|
/* List item container within the message header */
|
|
94
133
|
|
|
95
134
|
.cometchat-message-header__listitem {
|
|
@@ -312,12 +312,9 @@ width: fit-content;
|
|
|
312
312
|
|
|
313
313
|
/* Message indicator inside message list */
|
|
314
314
|
.cometchat-message-list__message-indicator {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
justify-content: center;
|
|
319
|
-
align-items: center;
|
|
320
|
-
width: 100%;
|
|
315
|
+
position: absolute;
|
|
316
|
+
right: 12px;
|
|
317
|
+
bottom: 8px;
|
|
321
318
|
}
|
|
322
319
|
|
|
323
320
|
.cometchat-message-list__message-indicator>.cometchat {
|
|
@@ -330,13 +327,13 @@ width: fit-content;
|
|
|
330
327
|
height: fit-content;
|
|
331
328
|
width: fit-content;
|
|
332
329
|
display: flex;
|
|
333
|
-
padding:
|
|
334
|
-
flex-direction: column;
|
|
330
|
+
padding: var(--cometchat-padding-2, 8px);
|
|
331
|
+
flex-direction: column-reverse;
|
|
335
332
|
align-items: flex-start;
|
|
336
333
|
border-radius: var(--cometchat-radius-max, 4px);
|
|
337
|
-
flex-direction: row;
|
|
338
334
|
justify-content: center;
|
|
339
335
|
align-items: center;
|
|
336
|
+
gap: 4px;
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
/* Text inside message indicator button */
|
|
@@ -344,13 +341,20 @@ width: fit-content;
|
|
|
344
341
|
color: var(--cometchat-static-white);
|
|
345
342
|
text-align: center;
|
|
346
343
|
font: var(--cometchat-font-caption1-regular);
|
|
344
|
+
background: var(--cometchat-primary-color, #6852D6);
|
|
345
|
+
border-radius: var(--cometchat-radius-max);
|
|
346
|
+
height: 20px;
|
|
347
|
+
padding: 0px var(--cometchat-padding-2, 8px);
|
|
348
|
+
justify-content: center;
|
|
349
|
+
align-items: center;
|
|
350
|
+
display: flex;
|
|
347
351
|
}
|
|
348
352
|
|
|
349
353
|
/* Icon inside message indicator button */
|
|
350
354
|
.cometchat-message-list__message-indicator .cometchat-button__icon {
|
|
351
355
|
display: flex;
|
|
352
|
-
width:
|
|
353
|
-
height:
|
|
356
|
+
width: 24px;
|
|
357
|
+
height: 24px;
|
|
354
358
|
justify-content: center;
|
|
355
359
|
align-items: center;
|
|
356
360
|
background: var(--cometchat-static-white);
|
|
@@ -363,6 +367,7 @@ width: fit-content;
|
|
|
363
367
|
width: 100%;
|
|
364
368
|
box-sizing: border-box;
|
|
365
369
|
background: transparent;
|
|
370
|
+
z-index: 1;
|
|
366
371
|
}
|
|
367
372
|
|
|
368
373
|
/* Leading view inside message bubble */
|
|
@@ -720,16 +725,26 @@ width: fit-content;
|
|
|
720
725
|
justify-content: flex-end;
|
|
721
726
|
}
|
|
722
727
|
|
|
723
|
-
.cometchat-message-list .cometchat-message-list__body .cometchat-list__body{
|
|
728
|
+
.cometchat-message-list-loaded .cometchat-message-list__body .cometchat-list__body{
|
|
724
729
|
height: fit-content;
|
|
725
730
|
max-height: 100%;
|
|
726
731
|
}
|
|
727
732
|
|
|
728
|
-
.cometchat-message-list > .cometchat-message-list__body > .cometchat {
|
|
733
|
+
.cometchat-message-list-loaded > .cometchat-message-list__body > .cometchat {
|
|
729
734
|
height: fit-content !important;
|
|
730
735
|
max-height: 100%;
|
|
731
736
|
}
|
|
732
737
|
|
|
738
|
+
@keyframes backgroundFade {
|
|
739
|
+
0% { background-color: var(--cometchat-extended-primary-color-200); }
|
|
740
|
+
50% { background-color: var(--cometchat-extended-primary-color-100); }
|
|
741
|
+
75%, 100% { background-color: transparent; }
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.cometchat-message-list__bubble-highlight {
|
|
745
|
+
animation: backgroundFade 3s ease-out forwards;
|
|
746
|
+
}
|
|
747
|
+
|
|
733
748
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar,
|
|
734
749
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar-thumb,
|
|
735
750
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__tabs::-webkit-scrollbar,
|