@cometchat/chat-uikit-react 6.0.7 → 6.1.1

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.
Files changed (47) hide show
  1. package/dist/assets/audio_filter_icon.svg +3 -0
  2. package/dist/assets/chats_filter_icon.svg +1 -0
  3. package/dist/assets/file_filter_icon.svg +4 -0
  4. package/dist/assets/group_filter_icon.svg +3 -0
  5. package/dist/assets/link_filter_icon.svg +3 -0
  6. package/dist/assets/link_icon_2x.svg +3 -0
  7. package/dist/assets/messages_filter_icon.svg +1 -0
  8. package/dist/assets/photo_filter_icon.svg +3 -0
  9. package/dist/assets/search_message_icon.svg +14 -0
  10. package/dist/assets/unread_filter_icon.svg +7 -0
  11. package/dist/assets/video_filter_icon.svg +3 -0
  12. package/dist/index.d.ts +395 -6
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/styles/CometChatConversations.css +16 -1
  16. package/dist/styles/CometChatList.css +10 -1
  17. package/dist/styles/CometChatMessageHeader.css +39 -0
  18. package/dist/styles/CometChatMessageList.css +28 -13
  19. package/dist/styles/CometChatSearch.css +948 -0
  20. package/dist/styles/CometChatThreadHeader.css +16 -1
  21. package/dist/styles/components/CometChatConversations.css +16 -1
  22. package/dist/styles/components/CometChatList.css +10 -1
  23. package/dist/styles/components/CometChatMessageHeader.css +39 -0
  24. package/dist/styles/components/CometChatMessageList.css +28 -13
  25. package/dist/styles/components/CometChatSearch.css +948 -0
  26. package/dist/styles/components/CometChatThreadHeader.css +16 -1
  27. package/dist/styles/components/index.css +5 -0
  28. package/dist/styles/index.css +5 -0
  29. package/dist/types/Enums/Enums.d.ts +37 -0
  30. package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
  31. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +24 -4
  32. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +14 -1
  33. package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +15 -0
  34. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +6 -0
  35. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  36. package/dist/types/components/CometChatSearch/CometChatSearch.d.ts +240 -0
  37. package/dist/types/components/CometChatSearch/SearchConversationsManager.d.ts +50 -0
  38. package/dist/types/components/CometChatSearch/useCometChatSearchConversationsList.d.ts +207 -0
  39. package/dist/types/components/CometChatSearch/useCometChatSearchMessagesList.d.ts +127 -0
  40. package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +8 -0
  41. package/dist/types/formatters/CometChatFormatters/CometChatTextHighlightFormatter/CometChatTextHighlightFormatter.d.ts +26 -0
  42. package/dist/types/formatters/index.d.ts +1 -0
  43. package/dist/types/index.d.ts +2 -0
  44. package/dist/types/modals/CometChatSearchFilterOption.d.ts +34 -0
  45. package/dist/types/utils/SearchUtils.d.ts +30 -0
  46. package/dist/types/utils/util.d.ts +7 -0
  47. package/package.json +2 -2
@@ -21,18 +21,33 @@
21
21
  background: var(--cometchat-background-color-01, #FFF);
22
22
  }
23
23
 
24
- .cometchat-thread-header__top-bar-title {
24
+ .cometchat-thread-header__top-bar-title-container {
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  justify-content: center;
28
28
  align-items: flex-start;
29
29
  flex: 1 0 0;
30
30
  overflow: hidden;
31
+ }
32
+
33
+ .cometchat-thread-header__top-bar-title {
31
34
  color: var(--cometchat-text-color-primary, #141414);
32
35
  text-overflow: ellipsis;
33
36
  font: var(--cometchat-font-heading3-bold, 700 20px Roboto);
34
37
  }
35
38
 
39
+ .cometchat-thread-header__top-bar-subtitle-text{
40
+ color: var(--cometchat-text-color-secondary, #727272);
41
+ font: var(--cometchat-font-caption1-regular, 400 12px Roboto);
42
+ text-overflow: ellipsis;
43
+ overflow: hidden;
44
+ white-space: nowrap;
45
+ }
46
+
47
+ .cometchat-thread-header__top-bar-subtitle-text-clickable {
48
+ cursor: pointer;
49
+ }
50
+
36
51
  .cometchat-thread-header__top-bar-close {
37
52
  display: flex;
38
53
  width: 24px;
@@ -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
- margin-bottom: 8px;
316
- display: flex;
317
- width: 100;
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: 8px var(--cometchat-padding-2, 8px);
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: 16px;
353
- height: 16px;
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,