@cometchat/chat-uikit-react 5.0.5 → 5.0.6

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 (46) hide show
  1. package/dist/index.d.ts +161 -68
  2. package/dist/index.js +1 -10
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatConversationStarter.css +2 -1
  5. package/dist/styles/CometChatMediaRecorder.css +76 -4
  6. package/dist/styles/CometChatMessageBubble.css +4 -1
  7. package/dist/styles/CometChatMessageComposer.css +19 -2
  8. package/dist/styles/CometChatMessageInformation.css +4 -0
  9. package/dist/styles/CometChatMessageList.css +15 -6
  10. package/dist/styles/CometChatOngoingCall.css +1 -1
  11. package/dist/styles/CometChatReactionList.css +3 -4
  12. package/dist/styles/CometChatThreadedMessagePreview.css +1 -1
  13. package/dist/styles/components/CometChatConversationStarter.css +2 -1
  14. package/dist/styles/components/CometChatMediaRecorder.css +76 -4
  15. package/dist/styles/components/CometChatMessageBubble.css +4 -1
  16. package/dist/styles/components/CometChatMessageComposer.css +19 -2
  17. package/dist/styles/components/CometChatMessageInformation.css +4 -0
  18. package/dist/styles/components/CometChatMessageList.css +15 -6
  19. package/dist/styles/components/CometChatOngoingCall.css +1 -1
  20. package/dist/styles/components/CometChatReactionList.css +3 -4
  21. package/dist/styles/components/CometChatThreadedMessagePreview.css +1 -1
  22. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
  23. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  24. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
  25. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
  26. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  27. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
  28. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
  29. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
  30. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
  31. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
  32. package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
  33. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
  34. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +1 -0
  35. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
  36. package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
  37. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
  38. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
  39. package/dist/types/modals/CometChatActionsView.d.ts +1 -0
  40. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
  41. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +105 -16
  42. package/dist/types/utils/DataSource.d.ts +1 -0
  43. package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
  44. package/dist/types/utils/MessagesDataSource.d.ts +2 -0
  45. package/package.json +1 -1
  46. package/rollup.config.js +1 -1
@@ -12,7 +12,8 @@
12
12
 
13
13
  .cometchat-conversation-starter__item {
14
14
  display: flex;
15
- height: 33px;
15
+ min-height: 33px;
16
+ height: fit-content;
16
17
  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);
17
18
  align-items: center;
18
19
  align-content: center;
@@ -13,6 +13,9 @@
13
13
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
14
14
  }
15
15
 
16
+ .cometchat-media-recorder__recording{
17
+ justify-content: space-between;
18
+ }
16
19
  .cometchat-media-recorder {
17
20
  width: max-content;
18
21
  }
@@ -127,11 +130,8 @@
127
130
  background: var(--cometchat-background-color-01, #FFF);
128
131
  box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.10), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
129
132
  }
130
-
133
+ .cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon,
131
134
  .cometchat-media-recorder__recording-control-record-icon {
132
- -webkit-mask: url("../../assets/recording_resume.svg") center center no-repeat;
133
- mask: url("../../assets/recording_resume.svg") center center no-repeat;
134
- background: var(--cometchat-error-color, #F44649);
135
135
  width: 32px;
136
136
  height: 32px;
137
137
  flex-shrink: 0;
@@ -139,6 +139,21 @@
139
139
  mask-size: contain;
140
140
  }
141
141
 
142
+ .cometchat-media-recorder__recording-control-record-icon {
143
+ -webkit-mask: url("../../assets/recording_resume.svg") center center no-repeat;
144
+ mask: url("../../assets/recording_resume.svg") center center no-repeat;
145
+ background: var(--cometchat-error-color, #F44649);
146
+ }
147
+
148
+ .cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon {
149
+ -webkit-mask: url("../../assets/mic_off.svg") center center no-repeat;
150
+ mask: url("../../assets/mic_off.svg") center center no-repeat;
151
+ background: var(--cometchat-text-color-tertiary, #A1A1A1);
152
+ }
153
+
154
+ .cometchat-media-recorder__recording-control-error {
155
+ pointer-events: none;
156
+ }
142
157
  .cometchat-media-recorder__recording-control-pause-icon {
143
158
  -webkit-mask: url("../../assets/pause.svg") center center no-repeat;
144
159
  mask: url("../../assets/pause.svg") center center no-repeat;
@@ -214,4 +229,61 @@
214
229
  text-align: center;
215
230
  font: var(--cometchat-font-heading4-regular, 400 16px Roboto);
216
231
  line-height: 120%;
232
+ }
233
+ .cometchat-media-recorder__error {
234
+ display: flex;
235
+ justify-content: flex-start;
236
+ align-items: flex-start;
237
+ background: var(--cometchat-background-color-02, #FAFAFA);
238
+ border-radius: var(--cometchat-radius-4) var(--cometchat-radius-4) 0px 0px;
239
+ padding: var(--cometchat-padding-2);
240
+ gap: var(--cometchat-padding-2);
241
+ width: 260px;
242
+ position: absolute;
243
+ z-index: 2;
244
+ bottom: 100%;
245
+ }
246
+
247
+ .cometchat-media-recorder__error-content {
248
+ display: flex;
249
+ flex-direction: column;
250
+ gap: var(--cometchat-padding-1);
251
+ }
252
+
253
+ .cometchat-media-recorder__error-content-title {
254
+ font: var(--cometchat-font-caption1-bold);
255
+ }
256
+
257
+ .cometchat-media-recorder__error-content-subtitle {
258
+ font: var(--cometchat-font-caption1-regular);
259
+
260
+ }
261
+
262
+ .cometchat-media-recorder__error-content-title,
263
+ .cometchat-media-recorder__error-content-subtitle {
264
+ text-align: left;
265
+ color: var(--cometchat-text-color-secondary, #727272);
266
+
267
+ }
268
+
269
+ .cometchat-media-recorder__error-icon-wrapper {
270
+ width: 16px;
271
+ height: 16px;
272
+ display: flex;
273
+ justify-content: center;
274
+ align-items: center;
275
+ background: var(--cometchat-error-color);
276
+ border-radius: var(--cometchat-radius-max);
277
+ }
278
+
279
+ .cometchat-media-recorder__error-icon {
280
+ width: 16px;
281
+ height: 16px;
282
+ flex-shrink: 0;
283
+ background: var(--cometchat-static-white);
284
+ -webkit-mask: url("../../assets/error_info.svg") center center no-repeat;
285
+ mask: url("../../assets/error_info.svg") center center no-repeat;
286
+ -webkit-mask-size: contain;
287
+ transform: rotate(180deg);
288
+ mask-size: contain;
217
289
  }
@@ -49,7 +49,10 @@
49
49
  align-items: flex-start;
50
50
  }
51
51
  .cometchat-message-bubble__text-message .cometchat-message-bubble__body-content-view{
52
- width: 100%;
52
+ width: fit-content;
53
+ display: flex;
54
+ align-self: flex-start;
55
+ max-width: 100%;
53
56
  }
54
57
  .cometchat-message-bubble .cometchat-text-bubble__body-text{
55
58
  text-align: left;
@@ -57,12 +57,29 @@
57
57
  border: none;
58
58
  }
59
59
 
60
- /* Voice recording button popover content */
61
- .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
60
+ /* Voice recording button popover content */ .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
62
61
  width: fit-content;
62
+ max-height: 300px;
63
+ height: fit-content;
64
+ min-height: 200px;
63
65
  }
64
66
 
67
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder {
68
+ max-height: 300px;
69
+ min-height: 220px;
70
+ overflow: hidden;
71
+ }
65
72
 
73
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recording {
74
+ max-height: 300px;
75
+ min-height: 220px;
76
+ }
77
+
78
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recorded {
79
+ max-height: 300px;
80
+ min-height: 220px;
81
+ justify-content: space-between;
82
+ }
66
83
 
67
84
  .cometchat-message-composer__input .cometchat-mentions>span {
68
85
  color: var(--cometchat-text-color-highlight, #6852D6);
@@ -231,4 +231,8 @@
231
231
 
232
232
  .cometchat-message-information .cometchat-list__header {
233
233
  border-bottom: none;
234
+ }
235
+
236
+ .cometchat-message-information .cometchat-message-bubble {
237
+ pointer-events: none;
234
238
  }
@@ -659,12 +659,6 @@ width: fit-content;
659
659
 
660
660
 
661
661
  }
662
- /**
663
- * Adding margin on first message to avoid overlap for message and date header.
664
- */
665
- .cometchat-message-list__body .cometchat-list__body .cometchat-list__item-wrapper:nth-of-type(2) {
666
- margin-top: 30px;
667
- }
668
662
 
669
663
  /**
670
664
  * Setting transparent background and gap for sticker message bubble
@@ -711,4 +705,19 @@ width: fit-content;
711
705
  align-items: center;
712
706
  overflow: auto;
713
707
  background-color: rgba(0, 0, 0, 0.6);
708
+ }
709
+
710
+ .cometchat-message-list__body
711
+ {
712
+ justify-content: flex-end;
713
+ }
714
+
715
+ .cometchat-message-list .cometchat-message-list__body .cometchat-list__body{
716
+ height: fit-content;
717
+ max-height: 100%;
718
+ }
719
+
720
+ .cometchat-message-list > .cometchat-message-list__body > .cometchat {
721
+ height: fit-content !important;
722
+ max-height: 100%;
714
723
  }
@@ -1,4 +1,4 @@
1
- .cometchat-ongoing-call {
1
+ .cometchat-ongoing-call,.cometchat:has(> .cometchat-ongoing-call) {
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border-radius: 0;
@@ -71,12 +71,12 @@
71
71
  display: flex;
72
72
  padding: 0px;
73
73
  flex-direction: column;
74
- max-height: 300px;
75
74
  align-items: flex-start;
76
75
  align-self: stretch;
77
76
  border-radius: var(--cometchat-radius-0, 0px);
78
77
  background: var(--cometchat-background-color-01, #FFF);
79
78
  overflow-y: auto;
79
+ height: 200px;
80
80
  }
81
81
 
82
82
  .cometchat-reaction-list .cometchat-list-item {
@@ -120,7 +120,6 @@
120
120
  display: flex;
121
121
  width: 280px;
122
122
  max-height: 300px;
123
- padding: var(--cometchat-padding-2, 8px) 0px;
124
123
  flex-direction: column;
125
124
  align-items: flex-start;
126
125
  align-self: stretch;
@@ -165,8 +164,8 @@
165
164
  background: var(--cometchat-shimmer-gradient-color);
166
165
  display: flex;
167
166
  border-radius: var(--cometchat-radius-max, 1000px);
168
- width: 40px;
169
- height: 40px;
167
+ width: 32px;
168
+ height: 32px;
170
169
  justify-content: center;
171
170
  align-items: center;
172
171
  animation: shimmerAnimation 10s infinite linear;
@@ -1,6 +1,6 @@
1
1
  .cometchat-threaded-message-preview {
2
2
  display: flex;
3
- width: 420px;
3
+ width: 100%;
4
4
  flex-direction: column;
5
5
  justify-content: center;
6
6
  align-items: flex-start;
@@ -12,7 +12,8 @@
12
12
 
13
13
  .cometchat-conversation-starter__item {
14
14
  display: flex;
15
- height: 33px;
15
+ min-height: 33px;
16
+ height: fit-content;
16
17
  padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);
17
18
  align-items: center;
18
19
  align-content: center;
@@ -13,6 +13,9 @@
13
13
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
14
14
  }
15
15
 
16
+ .cometchat-media-recorder__recording{
17
+ justify-content: space-between;
18
+ }
16
19
  .cometchat-media-recorder {
17
20
  width: max-content;
18
21
  }
@@ -127,11 +130,8 @@
127
130
  background: var(--cometchat-background-color-01, #FFF);
128
131
  box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.10), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
129
132
  }
130
-
133
+ .cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon,
131
134
  .cometchat-media-recorder__recording-control-record-icon {
132
- -webkit-mask: url("../../assets/recording_resume.svg") center center no-repeat;
133
- mask: url("../../assets/recording_resume.svg") center center no-repeat;
134
- background: var(--cometchat-error-color, #F44649);
135
135
  width: 32px;
136
136
  height: 32px;
137
137
  flex-shrink: 0;
@@ -139,6 +139,21 @@
139
139
  mask-size: contain;
140
140
  }
141
141
 
142
+ .cometchat-media-recorder__recording-control-record-icon {
143
+ -webkit-mask: url("../../assets/recording_resume.svg") center center no-repeat;
144
+ mask: url("../../assets/recording_resume.svg") center center no-repeat;
145
+ background: var(--cometchat-error-color, #F44649);
146
+ }
147
+
148
+ .cometchat-media-recorder__recording-control-error>.cometchat-media-recorder__recording-control-record-icon {
149
+ -webkit-mask: url("../../assets/mic_off.svg") center center no-repeat;
150
+ mask: url("../../assets/mic_off.svg") center center no-repeat;
151
+ background: var(--cometchat-text-color-tertiary, #A1A1A1);
152
+ }
153
+
154
+ .cometchat-media-recorder__recording-control-error {
155
+ pointer-events: none;
156
+ }
142
157
  .cometchat-media-recorder__recording-control-pause-icon {
143
158
  -webkit-mask: url("../../assets/pause.svg") center center no-repeat;
144
159
  mask: url("../../assets/pause.svg") center center no-repeat;
@@ -214,4 +229,61 @@
214
229
  text-align: center;
215
230
  font: var(--cometchat-font-heading4-regular, 400 16px Roboto);
216
231
  line-height: 120%;
232
+ }
233
+ .cometchat-media-recorder__error {
234
+ display: flex;
235
+ justify-content: flex-start;
236
+ align-items: flex-start;
237
+ background: var(--cometchat-background-color-02, #FAFAFA);
238
+ border-radius: var(--cometchat-radius-4) var(--cometchat-radius-4) 0px 0px;
239
+ padding: var(--cometchat-padding-2);
240
+ gap: var(--cometchat-padding-2);
241
+ width: 260px;
242
+ position: absolute;
243
+ z-index: 2;
244
+ bottom: 100%;
245
+ }
246
+
247
+ .cometchat-media-recorder__error-content {
248
+ display: flex;
249
+ flex-direction: column;
250
+ gap: var(--cometchat-padding-1);
251
+ }
252
+
253
+ .cometchat-media-recorder__error-content-title {
254
+ font: var(--cometchat-font-caption1-bold);
255
+ }
256
+
257
+ .cometchat-media-recorder__error-content-subtitle {
258
+ font: var(--cometchat-font-caption1-regular);
259
+
260
+ }
261
+
262
+ .cometchat-media-recorder__error-content-title,
263
+ .cometchat-media-recorder__error-content-subtitle {
264
+ text-align: left;
265
+ color: var(--cometchat-text-color-secondary, #727272);
266
+
267
+ }
268
+
269
+ .cometchat-media-recorder__error-icon-wrapper {
270
+ width: 16px;
271
+ height: 16px;
272
+ display: flex;
273
+ justify-content: center;
274
+ align-items: center;
275
+ background: var(--cometchat-error-color);
276
+ border-radius: var(--cometchat-radius-max);
277
+ }
278
+
279
+ .cometchat-media-recorder__error-icon {
280
+ width: 16px;
281
+ height: 16px;
282
+ flex-shrink: 0;
283
+ background: var(--cometchat-static-white);
284
+ -webkit-mask: url("../../assets/error_info.svg") center center no-repeat;
285
+ mask: url("../../assets/error_info.svg") center center no-repeat;
286
+ -webkit-mask-size: contain;
287
+ transform: rotate(180deg);
288
+ mask-size: contain;
217
289
  }
@@ -49,7 +49,10 @@
49
49
  align-items: flex-start;
50
50
  }
51
51
  .cometchat-message-bubble__text-message .cometchat-message-bubble__body-content-view{
52
- width: 100%;
52
+ width: fit-content;
53
+ display: flex;
54
+ align-self: flex-start;
55
+ max-width: 100%;
53
56
  }
54
57
  .cometchat-message-bubble .cometchat-text-bubble__body-text{
55
58
  text-align: left;
@@ -57,12 +57,29 @@
57
57
  border: none;
58
58
  }
59
59
 
60
- /* Voice recording button popover content */
61
- .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
60
+ /* Voice recording button popover content */ .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
62
61
  width: fit-content;
62
+ max-height: 300px;
63
+ height: fit-content;
64
+ min-height: 200px;
63
65
  }
64
66
 
67
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder {
68
+ max-height: 300px;
69
+ min-height: 220px;
70
+ overflow: hidden;
71
+ }
65
72
 
73
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recording {
74
+ max-height: 300px;
75
+ min-height: 220px;
76
+ }
77
+
78
+ .cometchat-message-composer__voice-recording-button .cometchat-media-recorder__recorded {
79
+ max-height: 300px;
80
+ min-height: 220px;
81
+ justify-content: space-between;
82
+ }
66
83
 
67
84
  .cometchat-message-composer__input .cometchat-mentions>span {
68
85
  color: var(--cometchat-text-color-highlight, #6852D6);
@@ -231,4 +231,8 @@
231
231
 
232
232
  .cometchat-message-information .cometchat-list__header {
233
233
  border-bottom: none;
234
+ }
235
+
236
+ .cometchat-message-information .cometchat-message-bubble {
237
+ pointer-events: none;
234
238
  }
@@ -659,12 +659,6 @@ width: fit-content;
659
659
 
660
660
 
661
661
  }
662
- /**
663
- * Adding margin on first message to avoid overlap for message and date header.
664
- */
665
- .cometchat-message-list__body .cometchat-list__body .cometchat-list__item-wrapper:nth-of-type(2) {
666
- margin-top: 30px;
667
- }
668
662
 
669
663
  /**
670
664
  * Setting transparent background and gap for sticker message bubble
@@ -711,4 +705,19 @@ width: fit-content;
711
705
  align-items: center;
712
706
  overflow: auto;
713
707
  background-color: rgba(0, 0, 0, 0.6);
708
+ }
709
+
710
+ .cometchat-message-list__body
711
+ {
712
+ justify-content: flex-end;
713
+ }
714
+
715
+ .cometchat-message-list .cometchat-message-list__body .cometchat-list__body{
716
+ height: fit-content;
717
+ max-height: 100%;
718
+ }
719
+
720
+ .cometchat-message-list > .cometchat-message-list__body > .cometchat {
721
+ height: fit-content !important;
722
+ max-height: 100%;
714
723
  }
@@ -1,4 +1,4 @@
1
- .cometchat-ongoing-call {
1
+ .cometchat-ongoing-call,.cometchat:has(> .cometchat-ongoing-call) {
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border-radius: 0;
@@ -71,12 +71,12 @@
71
71
  display: flex;
72
72
  padding: 0px;
73
73
  flex-direction: column;
74
- max-height: 300px;
75
74
  align-items: flex-start;
76
75
  align-self: stretch;
77
76
  border-radius: var(--cometchat-radius-0, 0px);
78
77
  background: var(--cometchat-background-color-01, #FFF);
79
78
  overflow-y: auto;
79
+ height: 200px;
80
80
  }
81
81
 
82
82
  .cometchat-reaction-list .cometchat-list-item {
@@ -120,7 +120,6 @@
120
120
  display: flex;
121
121
  width: 280px;
122
122
  max-height: 300px;
123
- padding: var(--cometchat-padding-2, 8px) 0px;
124
123
  flex-direction: column;
125
124
  align-items: flex-start;
126
125
  align-self: stretch;
@@ -165,8 +164,8 @@
165
164
  background: var(--cometchat-shimmer-gradient-color);
166
165
  display: flex;
167
166
  border-radius: var(--cometchat-radius-max, 1000px);
168
- width: 40px;
169
- height: 40px;
167
+ width: 32px;
168
+ height: 32px;
170
169
  justify-content: center;
171
170
  align-items: center;
172
171
  animation: shimmerAnimation 10s infinite linear;
@@ -1,6 +1,6 @@
1
1
  .cometchat-threaded-message-preview {
2
2
  display: flex;
3
- width: 420px;
3
+ width: 100%;
4
4
  flex-direction: column;
5
5
  justify-content: center;
6
6
  align-items: flex-start;
@@ -1,3 +1,4 @@
1
+ import { BaseMessage, CometChat } from "@cometchat/chat-sdk-javascript";
1
2
  interface MessageExtensionType {
2
3
  hasXSS?: string;
3
4
  sanitized_text?: string;
@@ -31,8 +31,8 @@ declare class WebAudioPlayer extends EventEmitter<WebAudioPlayerEvents> {
31
31
  constructor(audioContext?: AudioContext);
32
32
  /** Subscribe to an event. Returns an unsubscribe function. */
33
33
  addEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void, options?: {
34
- once?: boolean;
35
- }) => () => void;
34
+ once?: boolean | undefined;
35
+ } | undefined) => () => void;
36
36
  /** Unsubscribe from an event */
37
37
  removeEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void) => void;
38
38
  load(): Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatEmoji, CometChatEmojiCategory } from "./CometChatEmoji";
2
3
  export declare const useCometChatEmojiKeyboard: ({ emojiData, }: {
3
4
  emojiData: CometChatEmojiCategory[];
@@ -12,6 +12,7 @@ interface ListItemProps {
12
12
  trailingView?: ReactNode;
13
13
  titleView?: ReactNode;
14
14
  leadingView?: ReactNode;
15
+ stopEventPropagation?: boolean;
15
16
  }
16
17
  declare const CometChatListItem: (props: ListItemProps) => import("react/jsx-runtime").JSX.Element;
17
18
  export { CometChatListItem };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
2
3
  import { MessageBubbleAlignment } from "../../../Enums/Enums";
3
4
  /**Interface defining the structure for MessageBubbleProps */
@@ -16,6 +16,7 @@ interface PopoverProps {
16
16
  onOutsideClick?: () => void;
17
17
  disableBackgroundInteraction?: boolean;
18
18
  useParentContainer?: boolean;
19
+ useParentHeight?: boolean;
19
20
  }
20
21
  declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
21
22
  openPopover: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatePatterns } from "../../../Enums/Enums";
2
3
  interface CallLogsProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
2
3
  interface IncomingCallProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Props interface for the outgoing call component
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare class OutgoingCallConfiguration {
2
3
  disableSoundForCalls?: boolean;
3
4
  customSoundForCalls?: string;
@@ -1,3 +1,4 @@
1
+ import { CometChat } from '@cometchat/chat-sdk-javascript';
1
2
  type Args = {
2
3
  conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
3
4
  errorHandler: (error: unknown, source?: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageTemplate } from "../../modals";
2
3
  import { DatePatterns, MessageListAlignment } from "../../Enums/Enums";
3
4
  import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageTemplate } from "../../modals";
2
3
  interface ThreadedMessagePreviewProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UserMemberListType } from '../../Enums/Enums';
2
3
  export interface MentionsProps {
3
4
  userMemberListType?: UserMemberListType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Args = {
2
3
  searchText: string;
3
4
  usersRequestBuilder: CometChat.UsersRequestBuilder | null;
@@ -1,3 +1,4 @@
1
+ import { CometChat } from "@cometchat/chat-sdk-javascript";
1
2
  import { DataSource } from "../../../utils/DataSource";
2
3
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
4
  import { ComposerId } from "../../../utils/MessagesDataSource";
@@ -16,9 +17,6 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
16
17
  * @default false
17
18
  */
18
19
  showStickerKeyboard: boolean;
19
- private id;
20
- private user?;
21
- private group?;
22
20
  /**
23
21
  * Constructs a new instance of StickersExtensionDecorator.
24
22
  * @param dataSource - The data source to be decorated.
@@ -58,7 +56,7 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
58
56
  * Sends a sticker message.
59
57
  * @param event - The event object containing sticker details.
60
58
  */
61
- sendSticker(event: any, closeSticker: Function): void;
59
+ sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
62
60
  /**
63
61
  * Sends a sticker message.
64
62
  * @param event - The event object containing sticker details.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
2
3
  /**
3
4
  * Class representing a Thumbnail Generation extension decorator.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatActions } from "./CometChatActions";
2
3
  /**
3
4
  * CometChatActionsView is a pre-defined structure for creating actions
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageOption } from "./CometChatMessageOption";
2
3
  import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
3
4
  /**