@cometchat/chat-uikit-react 6.2.6 → 6.3.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/warning-small.svg +0 -0
- package/dist/index.d.ts +117 -52
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +1 -0
- package/dist/styles/CometChatAIAssistantMessageBubble.css +32 -6
- package/dist/styles/CometChatConversations.css +2 -2
- package/dist/styles/CometChatMessageBubble.css +5 -0
- package/dist/styles/CometChatMessageHeader.css +1 -1
- package/dist/styles/CometChatMessageList.css +4 -1
- package/dist/styles/CometChatMessagePreview.css +275 -0
- package/dist/styles/CometChatStreamMessageBubble.css +48 -6
- package/dist/styles/components/CometChatAIAssistantChat.css +1 -0
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +32 -6
- package/dist/styles/components/CometChatConversations.css +2 -2
- package/dist/styles/components/CometChatMessageBubble.css +5 -0
- package/dist/styles/components/CometChatMessageHeader.css +1 -1
- package/dist/styles/components/CometChatMessageList.css +4 -1
- package/dist/styles/components/CometChatMessagePreview.css +275 -0
- package/dist/styles/components/CometChatStreamMessageBubble.css +48 -6
- package/dist/styles/components/index.css +5 -0
- package/dist/styles/index.css +5 -0
- package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +1 -1
- package/dist/types/components/BaseComponents/CometChatMessagePreview/CometChatMessagePreview.d.ts +30 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +7 -0
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +20 -15
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/components/Extensions/Polls/CreatePolls.d.ts +4 -0
- package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +2 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +3 -3
- package/dist/types/events/CometChatMessageEvents.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +5 -0
- package/dist/types/utils/DataSource.d.ts +4 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +4 -1
- package/dist/types/utils/MessagesDataSource.d.ts +19 -1
- package/package.json +2 -2
|
@@ -352,6 +352,7 @@ padding-bottom: var(--cometchat-padding-2);
|
|
|
352
352
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text {
|
|
353
353
|
-webkit-line-clamp: initial !important;
|
|
354
354
|
line-clamp: initial !important;
|
|
355
|
+
line-height: 1.75;
|
|
355
356
|
}
|
|
356
357
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-more,
|
|
357
358
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-less {
|
|
@@ -12,8 +12,14 @@
|
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
max-width: 100%;
|
|
14
14
|
overflow: hidden;
|
|
15
|
+
line-height: 1.75;
|
|
16
|
+
margin: 0;
|
|
17
|
+
margin-bottom: var(--cometchat-margin-2);
|
|
15
18
|
}
|
|
16
19
|
|
|
20
|
+
.cometchat-ai-assistant-message-bubble {
|
|
21
|
+
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
22
|
+
}
|
|
17
23
|
|
|
18
24
|
.cometchat-ai-assistant-message-bubble>p:not([class]) {
|
|
19
25
|
text-align: left;
|
|
@@ -34,6 +40,10 @@
|
|
|
34
40
|
|
|
35
41
|
}
|
|
36
42
|
|
|
43
|
+
.cometchat-ai-assistant-message-bubble li *{
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
}
|
|
46
|
+
|
|
37
47
|
.cometchat-ai-assistant-message-bubble ol:not([class]),.cometchat-ai-assistant-message-bubble ul:not([class]) {
|
|
38
48
|
padding-left: var(--cometchat-padding-5) !important;
|
|
39
49
|
text-align: left !important;
|
|
@@ -147,8 +157,7 @@
|
|
|
147
157
|
}
|
|
148
158
|
.cometchat-ai-assistant-message-bubble li{
|
|
149
159
|
overflow: visible !important;
|
|
150
|
-
|
|
151
|
-
padding: 0px 0px 6px 0px;
|
|
160
|
+
padding: 0;
|
|
152
161
|
}
|
|
153
162
|
.cometchat-ai-assistant-message-bubble > ol:first-child > li:first-child,
|
|
154
163
|
.cometchat-ai-assistant-message-bubble > ul:first-child > li:first-child
|
|
@@ -162,11 +171,15 @@
|
|
|
162
171
|
.cometchat-ai-assistant-message-bubble h4,
|
|
163
172
|
.cometchat-ai-assistant-message-bubble h5,
|
|
164
173
|
.cometchat-ai-assistant-message-bubble h6 {
|
|
165
|
-
line-height: 20px;
|
|
166
174
|
font-size: initial;
|
|
167
175
|
padding: var(--cometchat-padding-2) 0px;
|
|
168
176
|
margin: 0;
|
|
169
177
|
}
|
|
178
|
+
|
|
179
|
+
.cometchat-ai-assistant-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{
|
|
180
|
+
margin-top: var(--cometchat-margin-1);
|
|
181
|
+
}
|
|
182
|
+
|
|
170
183
|
.cometchat-ai-assistant-message-bubble > h1:first-child,
|
|
171
184
|
.cometchat-ai-assistant-message-bubble > h2:first-child,
|
|
172
185
|
.cometchat-ai-assistant-message-bubble > h3:first-child,
|
|
@@ -179,10 +192,23 @@
|
|
|
179
192
|
max-height: 300px;
|
|
180
193
|
width: fit-content;
|
|
181
194
|
border-radius: var(--cometchat-radius-2);
|
|
195
|
+
margin-block: var(--cometchat-margin-2) 0;
|
|
182
196
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
|
|
198
|
+
.cometchat-ai-assistant-message-bubble__image-intersection-start, .cometchat-ai-assistant-message-bubble__image-intersection-end{
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
203
|
+
display: block;
|
|
204
|
+
margin-top: -0.5em;
|
|
205
|
+
}
|
|
206
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:not(:has(+ .cometchat-ai-assistant-message-bubble__image-intersection-start)) {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:last-child {
|
|
211
|
+
margin-bottom: 0;
|
|
186
212
|
}
|
|
187
213
|
|
|
188
214
|
.cometchat-ai-assistant-message-bubble > ul:first-child li:first-child > p:first-child{
|
|
@@ -219,8 +219,8 @@ box-sizing: border-box;
|
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
.cometchat-conversations__subtitle-icon-collaborative-whiteboard{
|
|
222
|
-
-webkit-mask: url("../../assets/
|
|
223
|
-
mask: url("../../assets/
|
|
222
|
+
-webkit-mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
223
|
+
mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
224
224
|
-webkit-mask-size: contain;
|
|
225
225
|
mask-size: contain;
|
|
226
226
|
}
|
|
@@ -684,7 +684,6 @@
|
|
|
684
684
|
* Setting transparent background and gap for sticker message bubble
|
|
685
685
|
*/
|
|
686
686
|
.cometchat-message-bubble__body-wrapper .cometchat-message-bubble__sticker-message {
|
|
687
|
-
background-color: transparent;
|
|
688
687
|
gap: var(--cometchat-padding-2, 8px);
|
|
689
688
|
}
|
|
690
689
|
|
|
@@ -760,6 +759,10 @@
|
|
|
760
759
|
animation: backgroundFade 3s ease-out forwards;
|
|
761
760
|
}
|
|
762
761
|
|
|
762
|
+
.cometchat-message-list__bubble-highlight-longer {
|
|
763
|
+
animation: backgroundFade 5s ease-out forwards;
|
|
764
|
+
}
|
|
765
|
+
|
|
763
766
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar,
|
|
764
767
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar-thumb,
|
|
765
768
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__tabs::-webkit-scrollbar,
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Main container for the reply-message preview area.
|
|
3
|
+
*/
|
|
4
|
+
.cometchat-message-preview {
|
|
5
|
+
padding: var(--cometchat-padding-2, 8px);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
margin: 0;
|
|
11
|
+
min-height: 30px;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
min-width: 100px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
20
|
+
position: relative;
|
|
21
|
+
background-color: var(--cometchat-background-color-03);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
.cometchat-message-bubble-incoming .cometchat-message-preview{
|
|
26
|
+
background-color: var(--cometchat-neutral-color-400);
|
|
27
|
+
color: var( --cometchat-primary-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cometchat-message-bubble-outgoing .cometchat-message-preview{
|
|
31
|
+
background: var(--cometchat-extended-primary-color-700);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
Close button for the reply-message preview.
|
|
36
|
+
*/
|
|
37
|
+
.cometchat-message-preview__close {
|
|
38
|
+
mask: url("../../assets/close.svg") center center no-repeat;
|
|
39
|
+
-webkit-mask: url("../../assets/close.svg") center center no-repeat;
|
|
40
|
+
height: 20px;
|
|
41
|
+
width: 20px;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
background: var(--cometchat-icon-color-primary);
|
|
46
|
+
-webkit-mask-size: contain;
|
|
47
|
+
mask-size: contain;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: var(--cometchat-padding-2, 8px);
|
|
50
|
+
right: var(--cometchat-padding-2, 8px);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
Text shown when a message is deleted.
|
|
56
|
+
*/
|
|
57
|
+
.cometchat-message-bubble-outgoing .cometchat-message-preview-deleted__message{
|
|
58
|
+
color: var(--cometchat-static-white);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cometchat-message-preview-deleted__message {
|
|
62
|
+
display: flex;
|
|
63
|
+
gap: 2px;
|
|
64
|
+
height: 100%;
|
|
65
|
+
justify-content: left;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cometchat-message-preview-deleted__message__text{
|
|
70
|
+
font: var(--cometchat-font-caption1-regular, 12px);
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
max-width: 100%;
|
|
75
|
+
}
|
|
76
|
+
.cometchat-message-bubble-incoming .cometchat-message-preview-deleted__message{
|
|
77
|
+
color: var(--cometchat-neutral-color-600);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
Title text inside the reply-message preview.
|
|
82
|
+
*/
|
|
83
|
+
.cometchat-message-preview__title {
|
|
84
|
+
font: var(--cometchat-font-caption1-regular, 12px);
|
|
85
|
+
width: 100%;
|
|
86
|
+
text-align: left;
|
|
87
|
+
color: var(--cometchat-primary-color);
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
Subtitle text inside the reply-message preview, containing the actual text being reply-messageed.
|
|
95
|
+
*/
|
|
96
|
+
.cometchat-message-preview__subtitle {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 5px;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
width: 100%;
|
|
102
|
+
text-align: left;
|
|
103
|
+
color: var(--cometchat-text-color-secondary);
|
|
104
|
+
font: var(--cometchat-font-caption1-regular, 12px);
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.cometchat-message-bubble-outgoing .bubble-view{
|
|
109
|
+
border-left: 3px solid var(--cometchat-static-white);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.composer-view .cometchat-message-preview {
|
|
113
|
+
border-left: 3px solid var(--cometchat-primary-color);
|
|
114
|
+
}
|
|
115
|
+
.cometchat-message-bubble-outgoing .bubble-view .cometchat-message-preview__subtitle-icon{
|
|
116
|
+
background-color: var(--cometchat-static-white);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.cometchat-message-bubble-incoming .bubble-view{
|
|
121
|
+
border-left: 3px solid var(--cometchat-primary-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cometchat-message-bubble-outgoing .cometchat-message-preview__title, .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle{
|
|
125
|
+
color: var(--cometchat-static-white);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.bubble-view{
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cometchat-message-preview_others{
|
|
133
|
+
border-left: 3px solid var(--cometchat-primary-color);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cometchat-message-preview__subtitle-text{
|
|
137
|
+
text-align: left;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
font: var(--cometchat-font-caption1-regular, 12px);
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.cometchat-message-preview__subtitle-icon {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
-webkit-mask-size: contain;
|
|
150
|
+
mask-size: contain;
|
|
151
|
+
border: none;
|
|
152
|
+
align-self: center;
|
|
153
|
+
background: var(--cometchat-icon-color-secondary, #A1A1A1);
|
|
154
|
+
height: 16px;
|
|
155
|
+
width: 16px;
|
|
156
|
+
flex-shrink: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.cometchat-message-preview__subtitle-icon-image {
|
|
160
|
+
-webkit-mask: url("../../assets/conversations_image-message.svg") center center no-repeat;
|
|
161
|
+
mask: url("../../assets/conversations_image-message.svg") center center no-repeat;
|
|
162
|
+
-webkit-mask-size: contain;
|
|
163
|
+
mask-size: contain;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cometchat-message-bubble-incoming .cometchat-message-preview-deleted__message__icon{
|
|
167
|
+
background: var(--cometchat-neutral-color-600);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.cometchat-message-bubble-outgoing .cometchat-message-preview-deleted__message__icon{
|
|
171
|
+
background: var(--cometchat-static-white, #fff);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
.cometchat-message-preview-deleted__message__icon{
|
|
176
|
+
height: 14px;
|
|
177
|
+
width: 14px;
|
|
178
|
+
flex: 0 0 auto;
|
|
179
|
+
-webkit-mask: url("../../assets/message_delete.svg") center center no-repeat;
|
|
180
|
+
mask: url("../../assets/message_delete.svg") center center no-repeat;
|
|
181
|
+
-webkit-mask-size: contain;
|
|
182
|
+
mask-size: contain;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cometchat-message-preview__subtitle-icon-meeting-incoming-audio{
|
|
186
|
+
-webkit-mask: url("../../assets/phone_incoming.svg") center center no-repeat;
|
|
187
|
+
mask: url("../../assets/phone_incoming.svg") center center no-repeat;
|
|
188
|
+
-webkit-mask-size: contain;
|
|
189
|
+
mask-size: contain;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.cometchat-message-preview__subtitle-icon-meeting-outgoing-audio{
|
|
193
|
+
-webkit-mask: url("../../assets/phone_outgoing.svg") center center no-repeat;
|
|
194
|
+
mask: url("../../assets/phone_outgoing.svg") center center no-repeat;
|
|
195
|
+
-webkit-mask-size: contain;
|
|
196
|
+
mask-size: contain;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cometchat-message-preview__subtitle-icon-meeting-incoming-video {
|
|
200
|
+
-webkit-mask: url("../../assets/incoming_video.svg") center center no-repeat;
|
|
201
|
+
mask: url("../../assets/incoming_video.svg") center center no-repeat;
|
|
202
|
+
-webkit-mask-size: contain;
|
|
203
|
+
mask-size: contain;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.cometchat-message-preview__subtitle-icon-meeting-outgoing-video{
|
|
207
|
+
-webkit-mask: url("../../assets/outgoing_video.svg") center center no-repeat;
|
|
208
|
+
mask: url("../../assets/outgoing_video.svg") center center no-repeat;
|
|
209
|
+
-webkit-mask-size: contain;
|
|
210
|
+
mask-size: contain;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
.cometchat-message-preview__subtitle-icon-file {
|
|
215
|
+
-webkit-mask: url("../../assets/conversations_file-message.svg") center center no-repeat;
|
|
216
|
+
mask: url("../../assets/conversations_file-message.svg") center center no-repeat;
|
|
217
|
+
-webkit-mask-size: contain;
|
|
218
|
+
mask-size: contain;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.cometchat-message-preview__subtitle-icon-video {
|
|
222
|
+
-webkit-mask: url("../../assets/conversations_video-message.svg") center center no-repeat;
|
|
223
|
+
mask: url("../../assets/conversations_video-message.svg") center center no-repeat;
|
|
224
|
+
-webkit-mask-size: contain;
|
|
225
|
+
mask-size: contain;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.cometchat-message-preview__subtitle-icon-audio {
|
|
229
|
+
-webkit-mask: url("../../assets/conversations_audio-message.svg") center center no-repeat;
|
|
230
|
+
mask: url("../../assets/conversations_audio-message.svg") center center no-repeat;
|
|
231
|
+
-webkit-mask-size: contain;
|
|
232
|
+
mask-size: contain;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cometchat-message-preview__subtitle-icon-poll {
|
|
236
|
+
-webkit-mask: url("../../assets/conversations_poll-message.svg") center center no-repeat;
|
|
237
|
+
mask: url("../../assets/conversations_poll-message.svg") center center no-repeat;
|
|
238
|
+
-webkit-mask-size: contain;
|
|
239
|
+
mask-size: contain;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
.cometchat-message-preview__subtitle-icon-sticker {
|
|
244
|
+
-webkit-mask: url("../../assets/conversations_sticker-message.svg") center center no-repeat;
|
|
245
|
+
mask: url("../../assets/conversations_sticker-message.svg") center center no-repeat;
|
|
246
|
+
-webkit-mask-size: contain;
|
|
247
|
+
mask-size: contain;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
.cometchat-message-preview__subtitle-icon-collaborative-document {
|
|
252
|
+
-webkit-mask: url("../../assets/conversations_collaborative-document-message.svg") center center no-repeat;
|
|
253
|
+
mask: url("../../assets/conversations_collaborative-document-message.svg") center center no-repeat;
|
|
254
|
+
-webkit-mask-size: contain;
|
|
255
|
+
mask-size: contain;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
.cometchat-message-preview__subtitle-icon-collaborative-whiteboard {
|
|
260
|
+
-webkit-mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
261
|
+
mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
262
|
+
-webkit-mask-size: contain;
|
|
263
|
+
mask-size: contain;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.cometchat-message-preview__subtitle-icon-link {
|
|
267
|
+
-webkit-mask: url("../../assets/conversations_link.svg") center center no-repeat;
|
|
268
|
+
mask: url("../../assets/conversations_link.svg") center center no-repeat;
|
|
269
|
+
-webkit-mask-size: contain;
|
|
270
|
+
mask-size: contain;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cometchat-message-preview__subtitle-icon-none {
|
|
274
|
+
display: none;
|
|
275
|
+
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
max-width: 100%;
|
|
4
4
|
overflow: hidden;
|
|
5
|
+
line-height: 1.75;
|
|
6
|
+
margin: 0;
|
|
7
|
+
margin-bottom: var(--cometchat-margin-2);
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__copy {
|
|
@@ -20,6 +23,10 @@
|
|
|
20
23
|
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
.cometchat-stream-message-bubble {
|
|
27
|
+
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
.cometchat-stream-message-bubble {
|
|
24
31
|
overflow: hidden;
|
|
25
32
|
text-align: left;
|
|
@@ -42,6 +49,10 @@
|
|
|
42
49
|
|
|
43
50
|
}
|
|
44
51
|
|
|
52
|
+
.cometchat-stream-message-bubble li *{
|
|
53
|
+
vertical-align: top;
|
|
54
|
+
}
|
|
55
|
+
|
|
45
56
|
.cometchat-stream-message-bubble li:not([class]) {
|
|
46
57
|
text-align: left !important;
|
|
47
58
|
|
|
@@ -210,14 +221,35 @@
|
|
|
210
221
|
}
|
|
211
222
|
.cometchat-stream-message-bubble li{
|
|
212
223
|
overflow: visible !important;
|
|
213
|
-
|
|
214
|
-
padding: 0px 0px 6px 0px;
|
|
224
|
+
padding: 0;
|
|
215
225
|
}
|
|
216
226
|
.cometchat-stream-message-bubble img{
|
|
217
227
|
max-height: 300px;
|
|
218
228
|
width: fit-content;
|
|
219
229
|
border-radius: var(--cometchat-radius-2);
|
|
230
|
+
margin-block: var(--cometchat-margin-2) 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.cometchat-stream-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{
|
|
234
|
+
margin-top: var(--cometchat-margin-1);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.cometchat-stream-message-bubble__image-intersection-start, .cometchat-stream-message-bubble__image-intersection-end{
|
|
238
|
+
display: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
242
|
+
display: block;
|
|
243
|
+
margin-top: -0.5em;
|
|
220
244
|
}
|
|
245
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {
|
|
246
|
+
display: block;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:last-child {
|
|
250
|
+
margin-bottom: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
221
253
|
.cometchat-stream-message-bubble > ol:first-child > li:first-child,
|
|
222
254
|
.cometchat-stream-message-bubble > ul:first-child > li:first-child
|
|
223
255
|
{
|
|
@@ -230,7 +262,6 @@
|
|
|
230
262
|
.cometchat-stream-message-bubble h4,
|
|
231
263
|
.cometchat-stream-message-bubble h5,
|
|
232
264
|
.cometchat-stream-message-bubble h6 {
|
|
233
|
-
line-height: 20px;
|
|
234
265
|
font-size: initial;
|
|
235
266
|
padding: var(--cometchat-padding-2) 0px;
|
|
236
267
|
margin: 0;
|
|
@@ -244,9 +275,20 @@
|
|
|
244
275
|
padding-top: 0px;
|
|
245
276
|
}
|
|
246
277
|
|
|
247
|
-
.cometchat-stream-message-
|
|
248
|
-
|
|
249
|
-
|
|
278
|
+
.cometchat-stream-message-bubble__image-intersection-start, .cometchat-stream-message-bubble__image-intersection-end{
|
|
279
|
+
display: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
283
|
+
display: block;
|
|
284
|
+
margin-top: -0.5em;
|
|
285
|
+
}
|
|
286
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {
|
|
287
|
+
display: block;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:last-child {
|
|
291
|
+
margin-bottom: 0;
|
|
250
292
|
}
|
|
251
293
|
|
|
252
294
|
.cometchat-stream-message-bubble > ul:first-child li:first-child > p:first-child{
|
|
@@ -352,6 +352,7 @@ padding-bottom: var(--cometchat-padding-2);
|
|
|
352
352
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text {
|
|
353
353
|
-webkit-line-clamp: initial !important;
|
|
354
354
|
line-clamp: initial !important;
|
|
355
|
+
line-height: 1.75;
|
|
355
356
|
}
|
|
356
357
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-more,
|
|
357
358
|
.cometchat-ai-assistant-chat .cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__read-less {
|
|
@@ -12,8 +12,14 @@
|
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
max-width: 100%;
|
|
14
14
|
overflow: hidden;
|
|
15
|
+
line-height: 1.75;
|
|
16
|
+
margin: 0;
|
|
17
|
+
margin-bottom: var(--cometchat-margin-2);
|
|
15
18
|
}
|
|
16
19
|
|
|
20
|
+
.cometchat-ai-assistant-message-bubble {
|
|
21
|
+
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
22
|
+
}
|
|
17
23
|
|
|
18
24
|
.cometchat-ai-assistant-message-bubble>p:not([class]) {
|
|
19
25
|
text-align: left;
|
|
@@ -34,6 +40,10 @@
|
|
|
34
40
|
|
|
35
41
|
}
|
|
36
42
|
|
|
43
|
+
.cometchat-ai-assistant-message-bubble li *{
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
}
|
|
46
|
+
|
|
37
47
|
.cometchat-ai-assistant-message-bubble ol:not([class]),.cometchat-ai-assistant-message-bubble ul:not([class]) {
|
|
38
48
|
padding-left: var(--cometchat-padding-5) !important;
|
|
39
49
|
text-align: left !important;
|
|
@@ -147,8 +157,7 @@
|
|
|
147
157
|
}
|
|
148
158
|
.cometchat-ai-assistant-message-bubble li{
|
|
149
159
|
overflow: visible !important;
|
|
150
|
-
|
|
151
|
-
padding: 0px 0px 6px 0px;
|
|
160
|
+
padding: 0;
|
|
152
161
|
}
|
|
153
162
|
.cometchat-ai-assistant-message-bubble > ol:first-child > li:first-child,
|
|
154
163
|
.cometchat-ai-assistant-message-bubble > ul:first-child > li:first-child
|
|
@@ -162,11 +171,15 @@
|
|
|
162
171
|
.cometchat-ai-assistant-message-bubble h4,
|
|
163
172
|
.cometchat-ai-assistant-message-bubble h5,
|
|
164
173
|
.cometchat-ai-assistant-message-bubble h6 {
|
|
165
|
-
line-height: 20px;
|
|
166
174
|
font-size: initial;
|
|
167
175
|
padding: var(--cometchat-padding-2) 0px;
|
|
168
176
|
margin: 0;
|
|
169
177
|
}
|
|
178
|
+
|
|
179
|
+
.cometchat-ai-assistant-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{
|
|
180
|
+
margin-top: var(--cometchat-margin-1);
|
|
181
|
+
}
|
|
182
|
+
|
|
170
183
|
.cometchat-ai-assistant-message-bubble > h1:first-child,
|
|
171
184
|
.cometchat-ai-assistant-message-bubble > h2:first-child,
|
|
172
185
|
.cometchat-ai-assistant-message-bubble > h3:first-child,
|
|
@@ -179,10 +192,23 @@
|
|
|
179
192
|
max-height: 300px;
|
|
180
193
|
width: fit-content;
|
|
181
194
|
border-radius: var(--cometchat-radius-2);
|
|
195
|
+
margin-block: var(--cometchat-margin-2) 0;
|
|
182
196
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
|
|
198
|
+
.cometchat-ai-assistant-message-bubble__image-intersection-start, .cometchat-ai-assistant-message-bubble__image-intersection-end{
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
203
|
+
display: block;
|
|
204
|
+
margin-top: -0.5em;
|
|
205
|
+
}
|
|
206
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:not(:has(+ .cometchat-ai-assistant-message-bubble__image-intersection-start)) {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:last-child {
|
|
211
|
+
margin-bottom: 0;
|
|
186
212
|
}
|
|
187
213
|
|
|
188
214
|
.cometchat-ai-assistant-message-bubble > ul:first-child li:first-child > p:first-child{
|
|
@@ -219,8 +219,8 @@ box-sizing: border-box;
|
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
.cometchat-conversations__subtitle-icon-collaborative-whiteboard{
|
|
222
|
-
-webkit-mask: url("../../assets/
|
|
223
|
-
mask: url("../../assets/
|
|
222
|
+
-webkit-mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
223
|
+
mask: url("../../assets/collaborative_whiteboard.svg") center center no-repeat;
|
|
224
224
|
-webkit-mask-size: contain;
|
|
225
225
|
mask-size: contain;
|
|
226
226
|
}
|
|
@@ -684,7 +684,6 @@
|
|
|
684
684
|
* Setting transparent background and gap for sticker message bubble
|
|
685
685
|
*/
|
|
686
686
|
.cometchat-message-bubble__body-wrapper .cometchat-message-bubble__sticker-message {
|
|
687
|
-
background-color: transparent;
|
|
688
687
|
gap: var(--cometchat-padding-2, 8px);
|
|
689
688
|
}
|
|
690
689
|
|
|
@@ -760,6 +759,10 @@
|
|
|
760
759
|
animation: backgroundFade 3s ease-out forwards;
|
|
761
760
|
}
|
|
762
761
|
|
|
762
|
+
.cometchat-message-list__bubble-highlight-longer {
|
|
763
|
+
animation: backgroundFade 5s ease-out forwards;
|
|
764
|
+
}
|
|
765
|
+
|
|
763
766
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar,
|
|
764
767
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__list::-webkit-scrollbar-thumb,
|
|
765
768
|
.cometchat-message-list-hide-scrollbar .cometchat-reaction-list__tabs::-webkit-scrollbar,
|