@cometchat/chat-uikit-react 6.0.2 → 6.0.4
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/index.d.ts +71 -57
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +4 -4
- package/dist/styles/CometChatConversationStarter.css +2 -1
- package/dist/styles/CometChatConversationSummary.css +2 -2
- package/dist/styles/CometChatEditPreview.css +3 -0
- package/dist/styles/CometChatFileBubble.css +4 -4
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatMediaRecorder.css +76 -4
- package/dist/styles/CometChatMessageBubble.css +4 -1
- package/dist/styles/CometChatMessageComposer.css +20 -3
- package/dist/styles/CometChatMessageInformation.css +6 -2
- package/dist/styles/CometChatMessageList.css +41 -24
- package/dist/styles/CometChatOngoingCall.css +2 -2
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -15
- package/dist/styles/CometChatReactionList.css +3 -4
- package/dist/styles/CometChatSmartReplies.css +2 -2
- package/dist/styles/CometChatThreadHeader.css +1 -1
- package/dist/styles/CreatePolls.css +8 -1
- package/dist/styles/StickersKeyboard.css +2 -2
- package/dist/styles/components/CometChatAudioBubble.css +4 -4
- package/dist/styles/components/CometChatConversationStarter.css +2 -1
- package/dist/styles/components/CometChatConversationSummary.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +3 -0
- package/dist/styles/components/CometChatFileBubble.css +4 -4
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatMediaRecorder.css +76 -4
- package/dist/styles/components/CometChatMessageBubble.css +4 -1
- package/dist/styles/components/CometChatMessageComposer.css +20 -3
- package/dist/styles/components/CometChatMessageInformation.css +6 -2
- package/dist/styles/components/CometChatMessageList.css +41 -24
- package/dist/styles/components/CometChatOngoingCall.css +2 -2
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -15
- package/dist/styles/components/CometChatReactionList.css +3 -4
- package/dist/styles/components/CometChatSmartReplies.css +2 -2
- package/dist/styles/components/CometChatThreadHeader.css +1 -1
- package/dist/styles/components/CreatePolls.css +8 -1
- package/dist/styles/components/StickersKeyboard.css +2 -2
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
- package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
- package/dist/types/events/CometChatUIEvents.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
- package/dist/types/utils/DataSource.d.ts +1 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +8 -6
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
- package/rollup.config.js +1 -1
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
background-color: var(--cometchat-primary-button-icon, #FFFFFF);
|
|
62
62
|
height: 32px;
|
|
63
63
|
width: 32px;
|
|
64
|
-
-webkit-mask: url("../../assets/close.svg");
|
|
65
|
-
mask: url("../../assets/close.svg");
|
|
64
|
+
-webkit-mask: url("../../assets/close.svg") center center no-repeat;
|
|
65
|
+
mask: url("../../assets/close.svg") center center no-repeat;
|
|
66
66
|
-webkit-mask-size: 100%;
|
|
67
67
|
mask-size: 100%;
|
|
68
68
|
}
|
|
@@ -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:
|
|
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);
|
|
@@ -132,7 +149,7 @@
|
|
|
132
149
|
}
|
|
133
150
|
|
|
134
151
|
.cometchat-message-composer__header-error-state-icon {
|
|
135
|
-
-webkit-mask: url("../../assets/error_info.svg");
|
|
152
|
+
-webkit-mask: url("../../assets/error_info.svg") center center no-repeat;
|
|
136
153
|
width: 20px;
|
|
137
154
|
height: 20px;
|
|
138
155
|
-webkit-mask-size: contain;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
padding: 0px;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
align-items: flex-start;
|
|
101
|
-
|
|
101
|
+
height: 260px;
|
|
102
102
|
overflow: hidden auto;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
.cometchat-message-information__shimmer {
|
|
162
162
|
width: 100%;
|
|
163
|
-
height:
|
|
163
|
+
height: 260px;
|
|
164
164
|
background: var(--cometchat-background-color-01, #FFF);
|
|
165
165
|
|
|
166
166
|
}
|
|
@@ -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
|
}
|
|
@@ -554,96 +554,96 @@ width: fit-content;
|
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__missed-call .cometchat-action-bubble__icon {
|
|
557
|
-
-webkit-mask: url("../../assets/missed_video_call_no_fill.svg");
|
|
557
|
+
-webkit-mask: url("../../assets/missed_video_call_no_fill.svg") center center no-repeat;
|
|
558
558
|
-webkit-mask-size: contain;
|
|
559
559
|
background: var(--cometchat-error-color);
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__ended-call .cometchat-action-bubble__icon {
|
|
563
|
-
-webkit-mask: url("../../assets/call_end_no_fill.svg");
|
|
563
|
+
-webkit-mask: url("../../assets/call_end_no_fill.svg") center center no-repeat;
|
|
564
564
|
-webkit-mask-size: contain;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__outgoing-call .cometchat-action-bubble__icon {
|
|
568
|
-
-webkit-mask: url("../../assets/outgoing_video_no_fill.svg");
|
|
568
|
+
-webkit-mask: url("../../assets/outgoing_video_no_fill.svg") center center no-repeat;
|
|
569
569
|
-webkit-mask-size: contain;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__incoming-call .cometchat-action-bubble__icon {
|
|
573
|
-
-webkit-mask: url("../../assets/incoming_video_no_fill.svg");
|
|
573
|
+
-webkit-mask: url("../../assets/incoming_video_no_fill.svg") center center no-repeat;
|
|
574
574
|
-webkit-mask-size: contain;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__busy-call .cometchat-action-bubble__icon {
|
|
578
|
-
-webkit-mask: url("../../assets/video_call_button.svg");
|
|
578
|
+
-webkit-mask: url("../../assets/video_call_button.svg") center center no-repeat;
|
|
579
579
|
-webkit-mask-size: contain;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__answered-call .cometchat-action-bubble__icon {
|
|
583
|
-
-webkit-mask: url("../../assets/video_call_button.svg");
|
|
583
|
+
-webkit-mask: url("../../assets/video_call_button.svg") center center no-repeat;
|
|
584
584
|
-webkit-mask-size: contain;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__unanswered-call .cometchat-action-bubble__icon {
|
|
588
|
-
-webkit-mask: url("../../assets/video_call_button.svg");
|
|
588
|
+
-webkit-mask: url("../../assets/video_call_button.svg") center center no-repeat;
|
|
589
589
|
-webkit-mask-size: contain;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__cancelled-call .cometchat-action-bubble__icon {
|
|
593
|
-
-webkit-mask: url("../../assets/video_call_button.svg");
|
|
593
|
+
-webkit-mask: url("../../assets/video_call_button.svg") center center no-repeat;
|
|
594
594
|
-webkit-mask-size: contain;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
.cometchat-message-bubble__video-call .cometchat-message-bubble__rejected-call .cometchat-action-bubble__icon {
|
|
598
|
-
-webkit-mask: url("../../assets/video_call_button.svg");
|
|
598
|
+
-webkit-mask: url("../../assets/video_call_button.svg") center center no-repeat;
|
|
599
599
|
-webkit-mask-size: contain;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
|
|
603
603
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__missed-call .cometchat-action-bubble__icon {
|
|
604
|
-
-webkit-mask: url("../../assets/phone_missed_no_fill.svg");
|
|
604
|
+
-webkit-mask: url("../../assets/phone_missed_no_fill.svg") center center no-repeat;
|
|
605
605
|
-webkit-mask-size: contain;
|
|
606
606
|
background: var(--cometchat-error-color);
|
|
607
607
|
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__ended-call .cometchat-action-bubble__icon {
|
|
611
|
-
-webkit-mask: url("../../assets/call_end_no_fill.svg");
|
|
611
|
+
-webkit-mask: url("../../assets/call_end_no_fill.svg") center center no-repeat;
|
|
612
612
|
-webkit-mask-size: contain;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__outgoing-call .cometchat-action-bubble__icon {
|
|
616
|
-
-webkit-mask: url("../../assets/phone_outgoing_no_fill.svg");
|
|
616
|
+
-webkit-mask: url("../../assets/phone_outgoing_no_fill.svg") center center no-repeat;
|
|
617
617
|
-webkit-mask-size: contain;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__incoming-call .cometchat-action-bubble__icon {
|
|
621
|
-
-webkit-mask: url("../../assets/phone_incoming_no_fill.svg");
|
|
621
|
+
-webkit-mask: url("../../assets/phone_incoming_no_fill.svg") center center no-repeat;
|
|
622
622
|
-webkit-mask-size: contain;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__busy-call .cometchat-action-bubble__icon {
|
|
626
|
-
-webkit-mask: url("../../assets/audio_call_button.svg");
|
|
626
|
+
-webkit-mask: url("../../assets/audio_call_button.svg") center center no-repeat;
|
|
627
627
|
-webkit-mask-size: contain;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__answered-call .cometchat-action-bubble__icon {
|
|
631
|
-
-webkit-mask: url("../../assets/audio_call_button.svg");
|
|
631
|
+
-webkit-mask: url("../../assets/audio_call_button.svg") center center no-repeat;
|
|
632
632
|
-webkit-mask-size: contain;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__unanswered-call .cometchat-action-bubble__icon {
|
|
636
|
-
-webkit-mask: url("../../assets/audio_call_button.svg");
|
|
636
|
+
-webkit-mask: url("../../assets/audio_call_button.svg") center center no-repeat;
|
|
637
637
|
-webkit-mask-size: contain;
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__cancelled-call .cometchat-action-bubble__icon {
|
|
641
|
-
-webkit-mask: url("../../assets/audio_call_button.svg");
|
|
641
|
+
-webkit-mask: url("../../assets/audio_call_button.svg") center center no-repeat;
|
|
642
642
|
-webkit-mask-size: contain;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
.cometchat-message-bubble__audio-call .cometchat-message-bubble__rejected-call .cometchat-action-bubble__icon {
|
|
646
|
-
-webkit-mask: url("../../assets/audio_call_button.svg");
|
|
646
|
+
-webkit-mask: url("../../assets/audio_call_button.svg") center center no-repeat;
|
|
647
647
|
-webkit-mask-size: contain;
|
|
648
648
|
}
|
|
649
649
|
|
|
@@ -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
|
|
@@ -687,6 +681,14 @@ width: fit-content;
|
|
|
687
681
|
*/
|
|
688
682
|
.cometchat-message-bubble__sticker-message .cometchat-message-bubble__status-info-view {
|
|
689
683
|
background: rgba(20, 20, 20, 0.60);
|
|
684
|
+
align-items: center;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.cometchat-message-bubble__sticker-message .cometchat-message-bubble__status-info-view > .cometchat{
|
|
688
|
+
box-sizing: border-box;
|
|
689
|
+
align-items: center;
|
|
690
|
+
justify-content: center;
|
|
691
|
+
display: flex;
|
|
690
692
|
}
|
|
691
693
|
|
|
692
694
|
/**
|
|
@@ -711,4 +713,19 @@ width: fit-content;
|
|
|
711
713
|
align-items: center;
|
|
712
714
|
overflow: auto;
|
|
713
715
|
background-color: rgba(0, 0, 0, 0.6);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.cometchat-message-list__body
|
|
719
|
+
{
|
|
720
|
+
justify-content: flex-end;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.cometchat-message-list .cometchat-message-list__body .cometchat-list__body{
|
|
724
|
+
height: fit-content;
|
|
725
|
+
max-height: 100%;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.cometchat-message-list > .cometchat-message-list__body > .cometchat {
|
|
729
|
+
height: fit-content !important;
|
|
730
|
+
max-height: 100%;
|
|
714
731
|
}
|
|
@@ -7,4 +7,23 @@
|
|
|
7
7
|
border: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
8
8
|
background: var(--cometchat-background-color-01, #FFF);
|
|
9
9
|
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cometchat-popover__content-tooltip-top,
|
|
13
|
+
.cometchat-popover__content-tooltip-bottom {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 6px;
|
|
17
|
+
background: var(--cometchat-static-black, #141414);
|
|
18
|
+
-webkit-mask: url("../../assets/tooltip.svg") center center no-repeat;
|
|
19
|
+
-webkit-mask-size: contain;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cometchat-popover__content-tooltip-top {
|
|
23
|
+
bottom: -7px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cometchat-popover__content-tooltip-bottom {
|
|
27
|
+
transform: rotate(180deg);
|
|
28
|
+
top: -7px;
|
|
10
29
|
}
|
|
@@ -19,21 +19,6 @@
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.cometchat-reaction-info__tooltip {
|
|
23
|
-
width: 32px;
|
|
24
|
-
height: 6px;
|
|
25
|
-
background: var(--cometchat-static-black, #141414);
|
|
26
|
-
-webkit-mask: url("../../assets/tooltip.svg") center center no-repeat;
|
|
27
|
-
-webkit-mask-size: contain;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.cometchat-reaction-info__tooltip-side {
|
|
31
|
-
width: 6px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
background: var(--cometchat-static-black, #141414);
|
|
34
|
-
-webkit-mask: url("../../assets/tooltip-side.svg") center center no-repeat;
|
|
35
|
-
-webkit-mask-size: contain;
|
|
36
|
-
}
|
|
37
22
|
|
|
38
23
|
.cometchat-reaction-info__emoji-text {
|
|
39
24
|
display: flex;
|
|
@@ -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:
|
|
169
|
-
height:
|
|
167
|
+
width: 32px;
|
|
168
|
+
height: 32px;
|
|
170
169
|
justify-content: center;
|
|
171
170
|
align-items: center;
|
|
172
171
|
animation: shimmerAnimation 10s infinite linear;
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.cometchat-smart-replies__header-close-button {
|
|
37
|
-
mask: url("../../assets/close.svg");
|
|
38
|
-
-webkit-mask: url("../../assets/close.svg");
|
|
37
|
+
mask: url("../../assets/close.svg") center center no-repeat;
|
|
38
|
+
-webkit-mask: url("../../assets/close.svg") center center no-repeat;
|
|
39
39
|
background-color: var(--cometchat-icon-color-primary, #141414);
|
|
40
40
|
width: 20px;
|
|
41
41
|
height: 20px;
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.cometchat-create-poll__button {
|
|
176
|
-
width:
|
|
176
|
+
width: 100%;
|
|
177
177
|
height: 40px;
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
bottom: 0px;
|
|
237
237
|
border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
238
238
|
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-5) var(--cometchat-padding-4, 16px);
|
|
239
|
+
width: 100%;
|
|
239
240
|
|
|
240
241
|
}
|
|
241
242
|
|
|
@@ -290,4 +291,10 @@
|
|
|
290
291
|
.cometchat-create-poll__body-options-add-button-disabled{
|
|
291
292
|
color: var(--cometchat-text-color-disabled, #DCDCDC);
|
|
292
293
|
font: var(--cometchat-font-caption1-medium);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@media (max-width: 768px) {
|
|
297
|
+
.cometchat-create-poll{
|
|
298
|
+
width: 360px;
|
|
299
|
+
}
|
|
293
300
|
}
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
.cometchat-sticker-keyboard__empty-view-icon {
|
|
169
169
|
width: 60px;
|
|
170
170
|
height: 60px;
|
|
171
|
-
-webkit-mask-image: url("../../assets/sticker.svg");
|
|
172
|
-
mask-image: url("../../assets/sticker.svg");
|
|
171
|
+
-webkit-mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
172
|
+
mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
173
173
|
-webkit-mask-size: 100%;
|
|
174
174
|
mask-size: 100%;
|
|
175
175
|
-webkit-mask-repeat: no-repeat;
|
|
@@ -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>;
|
|
@@ -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 };
|
|
@@ -16,6 +16,8 @@ interface PopoverProps {
|
|
|
16
16
|
onOutsideClick?: () => void;
|
|
17
17
|
disableBackgroundInteraction?: boolean;
|
|
18
18
|
useParentContainer?: boolean;
|
|
19
|
+
useParentHeight?: boolean;
|
|
20
|
+
showTooltip?: boolean;
|
|
19
21
|
}
|
|
20
22
|
declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
|
|
21
23
|
openPopover: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CometChatMessageTemplate } from "../../modals";
|
|
1
2
|
import { CalendarObject } from "../../utils/CalendarObject";
|
|
2
3
|
interface MessageInformationProps {
|
|
3
4
|
message: CometChat.BaseMessage;
|
|
@@ -15,6 +16,10 @@ interface MessageInformationProps {
|
|
|
15
16
|
* Format for the timestamp displayed next to messages.
|
|
16
17
|
*/
|
|
17
18
|
messageSentAtDateTimeFormat?: CalendarObject;
|
|
19
|
+
/**
|
|
20
|
+
* Template for customizing the appearance of the message.
|
|
21
|
+
*/
|
|
22
|
+
template?: CometChatMessageTemplate;
|
|
18
23
|
}
|
|
19
24
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
25
|
export { CometChatMessageInformation };
|
|
@@ -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.
|