@cometchat/chat-uikit-react 6.3.12 → 6.4.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/bin.svg +1 -0
- package/dist/assets/format_blockquote.svg +3 -0
- package/dist/assets/format_bold.svg +5 -0
- package/dist/assets/format_code.svg +3 -0
- package/dist/assets/format_code_block.svg +5 -0
- package/dist/assets/format_italic.svg +3 -0
- package/dist/assets/format_link.svg +3 -0
- package/dist/assets/format_ordered_list.svg +5 -0
- package/dist/assets/format_strikethrough.svg +5 -0
- package/dist/assets/format_toggle.svg +1 -0
- package/dist/assets/format_underline.svg +5 -0
- package/dist/assets/format_unordered_list.svg +5 -0
- package/dist/assets/pause_circle.svg +1 -0
- package/dist/assets/warning-small.svg +0 -0
- package/dist/index.d.ts +366 -47
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCompactMessageComposer.css +1111 -0
- package/dist/styles/CometChatConversations.css +37 -1
- package/dist/styles/CometChatDocumentBubble.css +0 -1
- package/dist/styles/CometChatFormattingToolbar.css +257 -0
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatLinkDialog.css +191 -0
- package/dist/styles/CometChatLinkPopover.css +128 -0
- package/dist/styles/CometChatMarkdownFormatter.css +141 -0
- package/dist/styles/CometChatMediaRecorder.css +73 -1
- package/dist/styles/CometChatMessageComposer.css +210 -3
- package/dist/styles/CometChatMessagePreview.css +10 -0
- package/dist/styles/CometChatSearch.css +11 -0
- package/dist/styles/CometChatTextBubble.css +267 -3
- package/dist/styles/LinkPreview.css +1 -1
- package/dist/styles/components/CometChatCompactMessageComposer.css +1111 -0
- package/dist/styles/components/CometChatConversations.css +37 -1
- package/dist/styles/components/CometChatDocumentBubble.css +0 -1
- package/dist/styles/components/CometChatFormattingToolbar.css +257 -0
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatLinkDialog.css +191 -0
- package/dist/styles/components/CometChatLinkPopover.css +128 -0
- package/dist/styles/components/CometChatMarkdownFormatter.css +141 -0
- package/dist/styles/components/CometChatMediaRecorder.css +73 -1
- package/dist/styles/components/CometChatMessageComposer.css +210 -3
- package/dist/styles/components/CometChatMessagePreview.css +10 -0
- package/dist/styles/components/CometChatSearch.css +11 -0
- package/dist/styles/components/CometChatTextBubble.css +267 -3
- package/dist/styles/components/LinkPreview.css +1 -1
- package/dist/styles/components/index.css +6 -5
- package/dist/styles/css-variables.css +1 -0
- package/dist/styles/index.css +6 -5
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +13 -0
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -21
- package/dist/types/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +3 -1
- package/dist/types/components/CometChatCompactMessageComposer/CometChatCompactMessageComposer.d.ts +247 -0
- package/dist/types/components/CometChatFormattingToolbar/CometChatFormattingToolbar.d.ts +29 -0
- package/dist/types/components/CometChatLinkDialog/CometChatLinkDialog.d.ts +22 -0
- package/dist/types/components/CometChatLinkPopover/CometChatLinkPopover.d.ts +24 -0
- package/dist/types/components/CometChatLinkPopover/index.d.ts +1 -0
- package/dist/types/components/useRichTextComposer/useRichTextComposer.d.ts +138 -0
- package/dist/types/formatters/CometChatFormatters/CometChatMarkdownFormatter/CometChatMarkdownFormatter.d.ts +109 -0
- package/dist/types/formatters/CometChatFormatters/CometChatRichTextFormatter.d.ts +32 -0
- package/dist/types/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +9 -3
- package/dist/types/formatters/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/EmojiShortcodeUtils.d.ts +11 -0
- package/dist/types/utils/HtmlToMarkdown.d.ts +52 -0
- package/dist/types/utils/MarkdownPatternDetector.d.ts +108 -0
- package/dist/types/utils/MessageUtils.d.ts +6 -0
- package/dist/types/utils/RichTextFormatting.d.ts +143 -0
- package/dist/types/utils/util.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/utils/useSecureMedia.d.ts +0 -19
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
/* Single Line Message Composer - Main container */
|
|
2
|
+
.cometchat-compact-message-composer {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
border-radius: var(--cometchat-radius-2, 8px);
|
|
8
|
+
border: 1px solid var(--cometchat-border-color-default);
|
|
9
|
+
background: var(--cometchat-background-color-01);
|
|
10
|
+
width: calc(100% - var(--cometchat-margin-2, 8px) * 2);
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: visible;
|
|
13
|
+
bottom: 5px;
|
|
14
|
+
margin: var(--cometchat-margin-2, 8px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Main row container - single horizontal line layout */
|
|
18
|
+
.cometchat-compact-message-composer__row {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: flex-end;
|
|
22
|
+
width: 100%;
|
|
23
|
+
min-height: 48px;
|
|
24
|
+
padding: var(--cometchat-padding-2, 8px);
|
|
25
|
+
gap: var(--cometchat-spacing-2, 8px);
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Left section - Attachment button */
|
|
30
|
+
.cometchat-compact-message-composer__left {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: flex-end;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
padding-bottom: var(--cometchat-padding-1, 4px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cometchat-compact-message-composer__left .cometchat-button {
|
|
39
|
+
width: 24px;
|
|
40
|
+
height: 24px;
|
|
41
|
+
background: transparent;
|
|
42
|
+
padding: 0;
|
|
43
|
+
gap: 0;
|
|
44
|
+
border-radius: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cometchat-compact-message-composer__left .cometchat-button:hover {
|
|
48
|
+
background: transparent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cometchat-compact-message-composer__left .cometchat-button:active {
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cometchat-compact-message-composer__left .cometchat-button .cometchat-button__icon {
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cometchat-compact-message-composer__left .cometchat-button .cometchat-button__icon-default {
|
|
61
|
+
width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Center section - Text input container */
|
|
66
|
+
.cometchat-compact-message-composer__center {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex: 1;
|
|
69
|
+
align-items: center;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
overflow: visible;
|
|
72
|
+
position: relative;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* On desktop, when recording is active, center stays flex-1 but recording bar is pushed right */
|
|
76
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__center {
|
|
77
|
+
flex: 1;
|
|
78
|
+
justify-content: flex-end;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Text input styling */
|
|
82
|
+
.cometchat-compact-message-composer__input {
|
|
83
|
+
width: 100%;
|
|
84
|
+
flex: 1;
|
|
85
|
+
outline: none;
|
|
86
|
+
background: transparent;
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
overflow-x: hidden;
|
|
89
|
+
white-space: pre-wrap;
|
|
90
|
+
overflow-wrap: break-word;
|
|
91
|
+
text-align: left;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-1, 4px);
|
|
94
|
+
color: var(--cometchat-text-color-primary);
|
|
95
|
+
font: var(--cometchat-font-body-regular);
|
|
96
|
+
min-height: 32px;
|
|
97
|
+
max-height: 150px;
|
|
98
|
+
scrollbar-width: none;
|
|
99
|
+
cursor: text;
|
|
100
|
+
user-select: text;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cometchat-compact-message-composer__input::-webkit-scrollbar {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Placeholder styling when input is empty */
|
|
108
|
+
.cometchat-compact-message-composer__input:empty:before {
|
|
109
|
+
content: attr(data-placeholder);
|
|
110
|
+
display: block;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
color: var(--cometchat-text-color-tertiary);
|
|
115
|
+
font: var(--cometchat-font-body-regular);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Mentions styling in input - no rich text formatting allowed */
|
|
119
|
+
/* Use individual font properties instead of font shorthand so font-family
|
|
120
|
+
can be inherited from parent elements like <code> and <pre> */
|
|
121
|
+
.cometchat-compact-message-composer__input .cometchat-mentions > span {
|
|
122
|
+
color: var(--cometchat-text-color-highlight);
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
line-height: 16.8px;
|
|
125
|
+
font-weight: normal;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.cometchat-compact-message-composer__input .cometchat-mentions-you > span {
|
|
131
|
+
color: var(--cometchat-warning-color, #FFAB00);
|
|
132
|
+
font: var(--cometchat-font-body-regular);
|
|
133
|
+
font-weight: normal;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
text-decoration: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Strip rich text formatting from mentions even when wrapped in formatting tags */
|
|
139
|
+
.cometchat-compact-message-composer__input b .cometchat-mentions > span,
|
|
140
|
+
.cometchat-compact-message-composer__input strong .cometchat-mentions > span,
|
|
141
|
+
.cometchat-compact-message-composer__input i .cometchat-mentions > span,
|
|
142
|
+
.cometchat-compact-message-composer__input em .cometchat-mentions > span,
|
|
143
|
+
.cometchat-compact-message-composer__input u .cometchat-mentions > span,
|
|
144
|
+
.cometchat-compact-message-composer__input s .cometchat-mentions > span,
|
|
145
|
+
.cometchat-compact-message-composer__input strike .cometchat-mentions > span,
|
|
146
|
+
.cometchat-compact-message-composer__input del .cometchat-mentions > span,
|
|
147
|
+
.cometchat-compact-message-composer__input b .cometchat-mentions-you > span,
|
|
148
|
+
.cometchat-compact-message-composer__input strong .cometchat-mentions-you > span,
|
|
149
|
+
.cometchat-compact-message-composer__input i .cometchat-mentions-you > span,
|
|
150
|
+
.cometchat-compact-message-composer__input em .cometchat-mentions-you > span,
|
|
151
|
+
.cometchat-compact-message-composer__input u .cometchat-mentions-you > span,
|
|
152
|
+
.cometchat-compact-message-composer__input s .cometchat-mentions-you > span,
|
|
153
|
+
.cometchat-compact-message-composer__input strike .cometchat-mentions-you > span,
|
|
154
|
+
.cometchat-compact-message-composer__input del .cometchat-mentions-you > span {
|
|
155
|
+
font-weight: normal;
|
|
156
|
+
font-style: normal;
|
|
157
|
+
text-decoration: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Mentions inside inline code should inherit code styling */
|
|
161
|
+
.cometchat-compact-message-composer__input code .cometchat-mentions > span,
|
|
162
|
+
.cometchat-compact-message-composer__center code .cometchat-mentions > span,
|
|
163
|
+
.cometchat .cometchat-compact-message-composer__input code .cometchat-mentions > span,
|
|
164
|
+
.cometchat-compact-message-composer__input code .cometchat-mentions-you > span,
|
|
165
|
+
.cometchat-compact-message-composer__center code .cometchat-mentions-you > span,
|
|
166
|
+
.cometchat .cometchat-compact-message-composer__input code .cometchat-mentions-you > span {
|
|
167
|
+
color: inherit !important;
|
|
168
|
+
font: inherit !important;
|
|
169
|
+
font-family: var(--cometchat-font-family) !important;
|
|
170
|
+
font-size: inherit !important;
|
|
171
|
+
font-weight: normal !important;
|
|
172
|
+
font-style: normal !important;
|
|
173
|
+
text-decoration: none !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Mentions inside code blocks should inherit code block styling */
|
|
177
|
+
.cometchat-compact-message-composer__input pre .cometchat-mentions > span,
|
|
178
|
+
.cometchat-compact-message-composer__center pre .cometchat-mentions > span,
|
|
179
|
+
.cometchat .cometchat-compact-message-composer__input pre .cometchat-mentions > span,
|
|
180
|
+
.cometchat-compact-message-composer__input pre .cometchat-mentions-you > span,
|
|
181
|
+
.cometchat-compact-message-composer__center pre .cometchat-mentions-you > span,
|
|
182
|
+
.cometchat .cometchat-compact-message-composer__input pre .cometchat-mentions-you > span {
|
|
183
|
+
color: inherit !important;
|
|
184
|
+
font: inherit !important;
|
|
185
|
+
font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
|
|
186
|
+
font-size: inherit !important;
|
|
187
|
+
font-weight: normal !important;
|
|
188
|
+
font-style: normal !important;
|
|
189
|
+
text-decoration: none !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Hashtag styling in input */
|
|
193
|
+
.cometchat-compact-message-composer__input .hashtag-formatted {
|
|
194
|
+
color: var(--cometchat-success-color);
|
|
195
|
+
font: var(--cometchat-font-body-regular);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Right section - Action buttons */
|
|
199
|
+
/* Right section - Action buttons */
|
|
200
|
+
.cometchat-compact-message-composer__right {
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: row;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: flex-end;
|
|
205
|
+
gap: var(--cometchat-spacing-3, 12px);
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
transition: gap 0.25s ease;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Buttons container styling */
|
|
211
|
+
.cometchat-compact-message-composer__buttons {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: row;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: var(--cometchat-spacing-3, 12px);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cometchat-compact-message-composer__buttons .cometchat-button {
|
|
219
|
+
width: 24px;
|
|
220
|
+
height: 24px;
|
|
221
|
+
background: transparent;
|
|
222
|
+
padding: 0;
|
|
223
|
+
gap: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon {
|
|
227
|
+
width: 24px;
|
|
228
|
+
height: 24px;
|
|
229
|
+
background: var(--cometchat-icon-color-secondary);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon-default {
|
|
233
|
+
width: 24px;
|
|
234
|
+
height: 24px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.cometchat-compact-message-composer__buttons .cometchat-button .cometchat-button__icon:hover {
|
|
238
|
+
background: var(--cometchat-primary-color);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* Send button styling */
|
|
242
|
+
.cometchat-compact-message-composer__send-button {
|
|
243
|
+
display: flex;
|
|
244
|
+
width: 32px;
|
|
245
|
+
height: 32px;
|
|
246
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
247
|
+
justify-content: center;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
250
|
+
border-radius: var(--cometchat-radius-max);
|
|
251
|
+
background: var(--cometchat-background-color-04);
|
|
252
|
+
flex-shrink: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.cometchat-compact-message-composer__send-button .cometchat-button {
|
|
256
|
+
cursor: default;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.cometchat-compact-message-composer__send-button-active {
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
background: var(--cometchat-primary-color);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__send-button .cometchat-button .cometchat-button__icon {
|
|
265
|
+
background: var(--cometchat-static-white);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {
|
|
269
|
+
background: var(--cometchat-static-white);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Active button states */
|
|
273
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__emoji-keyboard-button-active .cometchat-button__icon {
|
|
274
|
+
background: var(--cometchat-primary-color);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {
|
|
278
|
+
background: var(--cometchat-primary-color);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__voice-recording-button-active .cometchat-button__icon {
|
|
282
|
+
background: var(--cometchat-primary-color);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.cometchat-compact-message-composer__buttons .cometchat-compact-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {
|
|
286
|
+
background: var(--cometchat-primary-color);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/* Header section - Edit/Reply preview */
|
|
291
|
+
.cometchat-compact-message-composer__header {
|
|
292
|
+
width: 100%;
|
|
293
|
+
height: fit-content;
|
|
294
|
+
display: flex;
|
|
295
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
296
|
+
justify-content: space-between;
|
|
297
|
+
align-items: flex-start;
|
|
298
|
+
align-self: stretch;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
border-bottom: 1px solid var(--cometchat-border-color-light);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Error state in header */
|
|
304
|
+
.cometchat-compact-message-composer__header-error-state {
|
|
305
|
+
display: flex;
|
|
306
|
+
padding: var(--cometchat-padding-2, 8px);
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: var(--cometchat-padding-1, 4px);
|
|
309
|
+
flex: 1 0 0;
|
|
310
|
+
align-self: stretch;
|
|
311
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
312
|
+
background: var(--cometchat-background-color-02);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.cometchat-compact-message-composer__header-error-state-icon-wrapper {
|
|
316
|
+
width: 20px;
|
|
317
|
+
height: 20px;
|
|
318
|
+
display: flex;
|
|
319
|
+
justify-content: center;
|
|
320
|
+
align-items: center;
|
|
321
|
+
background: var(--cometchat-error-color);
|
|
322
|
+
border-radius: var(--cometchat-radius-max);
|
|
323
|
+
flex-shrink: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.cometchat-compact-message-composer__header-error-state-icon {
|
|
327
|
+
-webkit-mask: url("../../assets/error_info.svg") center center no-repeat;
|
|
328
|
+
mask: url("../../assets/error_info.svg") center center no-repeat;
|
|
329
|
+
width: 20px;
|
|
330
|
+
height: 20px;
|
|
331
|
+
-webkit-mask-size: contain;
|
|
332
|
+
mask-size: contain;
|
|
333
|
+
background: var(--cometchat-static-white);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.cometchat-compact-message-composer__header-error-state-text {
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
color: var(--cometchat-error-color);
|
|
339
|
+
text-overflow: ellipsis;
|
|
340
|
+
font: var(--cometchat-font-caption1-regular);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Edit preview subtitle */
|
|
344
|
+
.cometchat-compact-message-composer .cometchat-edit-preview__subtitle {
|
|
345
|
+
height: fit-content;
|
|
346
|
+
max-height: 60px;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
text-overflow: ellipsis;
|
|
349
|
+
white-space: nowrap;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* Mentions list - positioned above composer */
|
|
353
|
+
.cometchat-compact-message-composer__mentions-list {
|
|
354
|
+
overflow: auto;
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
z-index: 2;
|
|
358
|
+
min-height: 45px;
|
|
359
|
+
padding: 0 0 1px 0;
|
|
360
|
+
width: fit-content;
|
|
361
|
+
min-width: 320px;
|
|
362
|
+
bottom: 100%;
|
|
363
|
+
left: 0;
|
|
364
|
+
position: absolute;
|
|
365
|
+
max-height: 336px;
|
|
366
|
+
border-radius: var(--cometchat-radius-4, 16px);
|
|
367
|
+
border: 1px solid var(--cometchat-background-color-01);
|
|
368
|
+
background: var(--cometchat-background-color-01);
|
|
369
|
+
box-shadow: 0 12px 16px 4px rgba(16, 24, 40, 0.08), 0 4px 6px 4px rgba(16, 24, 40, 0.03);
|
|
370
|
+
scrollbar-width: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.cometchat-compact-message-composer__mentions-list::-webkit-scrollbar {
|
|
374
|
+
display: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.cometchat-compact-message-composer__mentions-list > .cometchat {
|
|
378
|
+
border-radius: inherit;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.cometchat-compact-message-composer__mentions-list .cometchat-list .cometchat-list__header-title {
|
|
382
|
+
display: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.cometchat-compact-message-composer__mentions-list .cometchat-list__item-wrapper {
|
|
386
|
+
cursor: pointer;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* Popover content styles */
|
|
390
|
+
/* Sticker button popover */
|
|
391
|
+
.cometchat-compact-message-composer__auxilary-button-view-sticker-button .cometchat-popover__content {
|
|
392
|
+
height: 300px;
|
|
393
|
+
overflow: hidden;
|
|
394
|
+
width: 272px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* Emoji keyboard button popover */
|
|
398
|
+
.cometchat-compact-message-composer__emoji-keyboard-button .cometchat-popover__content {
|
|
399
|
+
height: 300px;
|
|
400
|
+
width: 300px;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/* Action sheet button popover */
|
|
405
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button .cometchat-popover__content {
|
|
406
|
+
height: 332px;
|
|
407
|
+
border: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button .cometchat-action-sheet {
|
|
411
|
+
min-width: 200px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* Dynamic height for action sheet based on number of options */
|
|
415
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button-1 .cometchat-popover__content {
|
|
416
|
+
height: 58px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button-2 .cometchat-popover__content {
|
|
420
|
+
height: 114px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button-3 .cometchat-popover__content {
|
|
424
|
+
height: 170px;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button-4 .cometchat-popover__content {
|
|
428
|
+
height: 230px;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.cometchat-compact-message-composer__secondary-button-view-attachment-button-5 .cometchat-popover__content {
|
|
432
|
+
height: 285px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* ============================================
|
|
436
|
+
Inline Recording Bar Styles
|
|
437
|
+
============================================ */
|
|
438
|
+
|
|
439
|
+
/* Hidden text input when recording is active */
|
|
440
|
+
.cometchat-compact-message-composer__input--hidden {
|
|
441
|
+
display: none;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Recording bar container */
|
|
445
|
+
/* Desktop: only as wide as content needs, pushed to the right */
|
|
446
|
+
.cometchat-compact-message-composer__recording-bar {
|
|
447
|
+
display: flex;
|
|
448
|
+
flex-direction: row;
|
|
449
|
+
align-items: center;
|
|
450
|
+
flex: 0 0 auto;
|
|
451
|
+
width: fit-content;
|
|
452
|
+
min-width: 0;
|
|
453
|
+
gap: 0;
|
|
454
|
+
margin-left: auto;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* Delete button */
|
|
458
|
+
.cometchat-compact-message-composer__recording-bar-delete {
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
justify-content: center;
|
|
462
|
+
width: 24px;
|
|
463
|
+
height: 24px;
|
|
464
|
+
padding: 0;
|
|
465
|
+
border: none;
|
|
466
|
+
background: transparent;
|
|
467
|
+
cursor: pointer;
|
|
468
|
+
flex-shrink: 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.cometchat-compact-message-composer__recording-bar-delete-icon {
|
|
472
|
+
width: 24px;
|
|
473
|
+
height: 24px;
|
|
474
|
+
background: var(--cometchat-icon-color-secondary);
|
|
475
|
+
-webkit-mask: url("../../assets/bin.svg") center center no-repeat;
|
|
476
|
+
mask: url("../../assets/bin.svg") center center no-repeat;
|
|
477
|
+
-webkit-mask-size: contain;
|
|
478
|
+
mask-size: contain;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.cometchat-compact-message-composer__recording-bar-delete:hover .cometchat-compact-message-composer__recording-bar-delete-icon {
|
|
482
|
+
background: var(--cometchat-error-color);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* Recording indicator (pulsing red dot) */
|
|
486
|
+
@keyframes cometchat-recording-pulse {
|
|
487
|
+
0%, 100% {
|
|
488
|
+
opacity: 1;
|
|
489
|
+
}
|
|
490
|
+
50% {
|
|
491
|
+
opacity: 0.3;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.cometchat-compact-message-composer__recording-bar-indicator {
|
|
496
|
+
width: 8px;
|
|
497
|
+
height: 8px;
|
|
498
|
+
border-radius: var(--cometchat-radius-max);
|
|
499
|
+
background: var(--cometchat-error-color);
|
|
500
|
+
flex-shrink: 0;
|
|
501
|
+
animation: cometchat-recording-pulse 1.5s ease-in-out infinite;
|
|
502
|
+
margin-left: var(--cometchat-margin-4, 16px);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* Waveform visualization */
|
|
506
|
+
/* Desktop: fixed width so bar stays compact on the right */
|
|
507
|
+
.cometchat-compact-message-composer__recording-bar-waveform {
|
|
508
|
+
width: 160px;
|
|
509
|
+
min-width: 0;
|
|
510
|
+
display: flex;
|
|
511
|
+
align-items: center;
|
|
512
|
+
overflow: hidden;
|
|
513
|
+
padding: 0 var(--cometchat-padding-4, 16px);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* Tablet: wider waveform for better bar density */
|
|
517
|
+
@media (min-width: 769px) and (max-width: 1024px) {
|
|
518
|
+
.cometchat-compact-message-composer__recording-bar-waveform {
|
|
519
|
+
width: 240px;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.cometchat-compact-message-composer__recording-bar-waveform canvas {
|
|
524
|
+
width: 100%;
|
|
525
|
+
height: 32px;
|
|
526
|
+
display: block;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* Timer display */
|
|
530
|
+
.cometchat-compact-message-composer__recording-bar-timer {
|
|
531
|
+
font: var(--cometchat-font-caption1-medium);
|
|
532
|
+
color: var(--cometchat-text-color-secondary);
|
|
533
|
+
white-space: nowrap;
|
|
534
|
+
flex-shrink: 0;
|
|
535
|
+
margin-right: var(--cometchat-margin-4, 16px);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/* Pause/Resume button */
|
|
539
|
+
.cometchat-compact-message-composer__recording-bar-pause {
|
|
540
|
+
display: flex;
|
|
541
|
+
align-items: center;
|
|
542
|
+
justify-content: center;
|
|
543
|
+
width: 24px;
|
|
544
|
+
height: 24px;
|
|
545
|
+
padding: 0;
|
|
546
|
+
border: none;
|
|
547
|
+
background: transparent;
|
|
548
|
+
cursor: pointer;
|
|
549
|
+
flex-shrink: 0;
|
|
550
|
+
margin-right: var(--cometchat-margin-3, 12px);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.cometchat-compact-message-composer__recording-bar-pause-icon {
|
|
554
|
+
width: 24px;
|
|
555
|
+
height: 24px;
|
|
556
|
+
background: var(--cometchat-icon-color-secondary);
|
|
557
|
+
-webkit-mask: url("../../assets/pause.svg") center center no-repeat;
|
|
558
|
+
mask: url("../../assets/pause.svg") center center no-repeat;
|
|
559
|
+
-webkit-mask-size: contain;
|
|
560
|
+
mask-size: contain;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.cometchat-compact-message-composer__recording-bar-pause-icon--resume {
|
|
564
|
+
-webkit-mask: url("../../assets/play_arrow.svg") center center no-repeat;
|
|
565
|
+
mask: url("../../assets/play_arrow.svg") center center no-repeat;
|
|
566
|
+
-webkit-mask-size: contain;
|
|
567
|
+
mask-size: contain;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-icon,
|
|
571
|
+
.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-icon--resume {
|
|
572
|
+
background: var(--cometchat-primary-color);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/* Pause-circle SVG icon (used while recording is active on right side) */
|
|
576
|
+
.cometchat-compact-message-composer__recording-bar-pause-circle-icon {
|
|
577
|
+
width: 24px;
|
|
578
|
+
height: 24px;
|
|
579
|
+
display: block;
|
|
580
|
+
/* Render grey to match other secondary icons; use CSS mask so the color token applies */
|
|
581
|
+
-webkit-mask: url("../../assets/pause_circle.svg") center center no-repeat;
|
|
582
|
+
mask: url("../../assets/pause_circle.svg") center center no-repeat;
|
|
583
|
+
-webkit-mask-size: contain;
|
|
584
|
+
mask-size: contain;
|
|
585
|
+
background: var(--cometchat-icon-color-secondary);
|
|
586
|
+
transition: background 0.15s ease;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.cometchat-compact-message-composer__recording-bar-pause:hover .cometchat-compact-message-composer__recording-bar-pause-circle-icon {
|
|
590
|
+
background: var(--cometchat-primary-color);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* Send button - REMOVED from recording bar (uses main composer send button) */
|
|
594
|
+
|
|
595
|
+
/* Playback button (replaces red dot when recording is paused) */
|
|
596
|
+
.cometchat-compact-message-composer__recording-bar-playback {
|
|
597
|
+
display: flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
justify-content: center;
|
|
600
|
+
width: 24px;
|
|
601
|
+
height: 24px;
|
|
602
|
+
padding: 0;
|
|
603
|
+
border: none;
|
|
604
|
+
background: transparent;
|
|
605
|
+
cursor: pointer;
|
|
606
|
+
flex-shrink: 0;
|
|
607
|
+
margin-left: var(--cometchat-margin-4, 16px);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.cometchat-compact-message-composer__recording-bar-playback-icon {
|
|
611
|
+
width: 24px;
|
|
612
|
+
height: 24px;
|
|
613
|
+
background: var(--cometchat-primary-color);
|
|
614
|
+
-webkit-mask: url("../../assets/play_arrow.svg") center center no-repeat;
|
|
615
|
+
mask: url("../../assets/play_arrow.svg") center center no-repeat;
|
|
616
|
+
-webkit-mask-size: contain;
|
|
617
|
+
mask-size: contain;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.cometchat-compact-message-composer__recording-bar-playback-icon--pause {
|
|
621
|
+
-webkit-mask: url("../../assets/pause.svg") center center no-repeat;
|
|
622
|
+
mask: url("../../assets/pause.svg") center center no-repeat;
|
|
623
|
+
-webkit-mask-size: contain;
|
|
624
|
+
mask-size: contain;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/* Grey mic icon shown when recording is paused (idle, not playing back) */
|
|
628
|
+
.cometchat-compact-message-composer__recording-bar-mic-icon {
|
|
629
|
+
width: 24px;
|
|
630
|
+
height: 24px;
|
|
631
|
+
background: var(--cometchat-icon-color-secondary);
|
|
632
|
+
-webkit-mask: url("../../assets/mic.svg") center center no-repeat;
|
|
633
|
+
mask: url("../../assets/mic.svg") center center no-repeat;
|
|
634
|
+
-webkit-mask-size: contain;
|
|
635
|
+
mask-size: contain;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-playback-icon,
|
|
639
|
+
.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-playback-icon--pause,
|
|
640
|
+
.cometchat-compact-message-composer__recording-bar-playback:hover .cometchat-compact-message-composer__recording-bar-mic-icon {
|
|
641
|
+
background: var(--cometchat-primary-color);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* Reduced motion support */
|
|
645
|
+
@media (prefers-reduced-motion: reduce) {
|
|
646
|
+
.cometchat-compact-message-composer__recording-bar-indicator {
|
|
647
|
+
animation: none;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* ============================================
|
|
652
|
+
Mobile: Recording bar full width
|
|
653
|
+
============================================ */
|
|
654
|
+
@media (max-width: 768px) {
|
|
655
|
+
/* When recording is active, hide left/right sections so the bar owns the full row */
|
|
656
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__left,
|
|
657
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__right {
|
|
658
|
+
display: none;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/* Center section stretches to fill the entire row */
|
|
662
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__center {
|
|
663
|
+
flex: 1;
|
|
664
|
+
width: 100%;
|
|
665
|
+
justify-content: flex-start;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/* Recording bar stretches full width on mobile, no right-align */
|
|
669
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar {
|
|
670
|
+
flex: 1;
|
|
671
|
+
width: 100%;
|
|
672
|
+
margin-left: 0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/* Waveform stretches to fill available space on mobile */
|
|
676
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar-waveform {
|
|
677
|
+
flex: 1;
|
|
678
|
+
width: auto;
|
|
679
|
+
min-width: 0;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/* Pause/mic button must not grow on mobile */
|
|
683
|
+
.cometchat-compact-message-composer__row--recording .cometchat-compact-message-composer__recording-bar-pause {
|
|
684
|
+
flex-shrink: 0;
|
|
685
|
+
width: 24px;
|
|
686
|
+
height: 24px;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* Send button inside recording bar on mobile — fixed size, no stretching */
|
|
690
|
+
.cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button {
|
|
691
|
+
flex-shrink: 0;
|
|
692
|
+
width: 32px;
|
|
693
|
+
height: 32px;
|
|
694
|
+
min-width: 32px;
|
|
695
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
696
|
+
border-radius: var(--cometchat-radius-max);
|
|
697
|
+
background: var(--cometchat-primary-color);
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: center;
|
|
700
|
+
justify-content: center;
|
|
701
|
+
cursor: pointer;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button {
|
|
705
|
+
width: 24px;
|
|
706
|
+
height: 24px;
|
|
707
|
+
background: transparent;
|
|
708
|
+
padding: 0;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button__icon {
|
|
712
|
+
width: 24px;
|
|
713
|
+
height: 24px;
|
|
714
|
+
background: var(--cometchat-static-white);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.cometchat-compact-message-composer__recording-bar .cometchat-compact-message-composer__send-button .cometchat-button__icon:hover {
|
|
718
|
+
background: var(--cometchat-static-white);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/* Unblock button styling */
|
|
723
|
+
.cometchat-compact-message-composer__unblock-button {
|
|
724
|
+
color: var(--cometchat-neutral-color-900);
|
|
725
|
+
font: var(--cometchat-font-body-regular);
|
|
726
|
+
cursor: pointer;
|
|
727
|
+
width: 100%;
|
|
728
|
+
height: 40px;
|
|
729
|
+
display: flex;
|
|
730
|
+
align-items: center;
|
|
731
|
+
justify-content: center;
|
|
732
|
+
background: transparent;
|
|
733
|
+
border-radius: var(--cometchat-radius-2, 8px);
|
|
734
|
+
border: 1px solid var(--cometchat-border-color-dark);
|
|
735
|
+
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-5, 20px);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/* Hide scrollbar utility classes */
|
|
739
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar,
|
|
740
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-action-sheet::-webkit-scrollbar-thumb {
|
|
741
|
+
display: none;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar,
|
|
745
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__list::-webkit-scrollbar-thumb,
|
|
746
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar,
|
|
747
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-emoji-keyboard__tabs::-webkit-scrollbar-thumb {
|
|
748
|
+
display: none;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar {
|
|
752
|
+
background: transparent;
|
|
753
|
+
height: 0;
|
|
754
|
+
width: 0;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__tabs::-webkit-scrollbar-thumb {
|
|
758
|
+
background: var(--cometchat-background-color-04);
|
|
759
|
+
border-radius: var(--cometchat-radius-2, 8px);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar {
|
|
763
|
+
background: transparent;
|
|
764
|
+
width: 0;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.cometchat-compact-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar-thumb {
|
|
768
|
+
background: var(--cometchat-background-color-04);
|
|
769
|
+
border-radius: var(--cometchat-radius-2, 8px);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/* Remove vertical padding when code block is active (pre element has its own padding) */
|
|
773
|
+
.cometchat-compact-message-composer__input--code-block {
|
|
774
|
+
padding-top: 0;
|
|
775
|
+
padding-bottom: 0;
|
|
776
|
+
min-height: auto;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/* Mobile input styling */
|
|
780
|
+
.cometchat-compact-message-composer__input-mobile {
|
|
781
|
+
font: var(--cometchat-font-heading4-regular);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
/* ============================================
|
|
786
|
+
Rich Text Formatting Styles
|
|
787
|
+
============================================ */
|
|
788
|
+
|
|
789
|
+
/* Bold text styling */
|
|
790
|
+
.cometchat-compact-message-composer__input .cometchat-rich-text-bold,
|
|
791
|
+
.cometchat-compact-message-composer__input strong,
|
|
792
|
+
.cometchat-compact-message-composer__input b {
|
|
793
|
+
font-weight: 700;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/* Italic text styling */
|
|
797
|
+
.cometchat-compact-message-composer__input .cometchat-rich-text-italic,
|
|
798
|
+
.cometchat-compact-message-composer__input em,
|
|
799
|
+
.cometchat-compact-message-composer__input i {
|
|
800
|
+
font-style: italic;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/* Underline text styling */
|
|
804
|
+
.cometchat-compact-message-composer__input .cometchat-rich-text-underline,
|
|
805
|
+
.cometchat-compact-message-composer__input u {
|
|
806
|
+
text-decoration: underline;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/* Strikethrough text styling */
|
|
810
|
+
.cometchat-compact-message-composer__input .cometchat-rich-text-strikethrough,
|
|
811
|
+
.cometchat-compact-message-composer__input s,
|
|
812
|
+
.cometchat-compact-message-composer__input strike,
|
|
813
|
+
.cometchat-compact-message-composer__input del {
|
|
814
|
+
text-decoration: line-through;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/* Combined underline and strikethrough */
|
|
818
|
+
.cometchat-compact-message-composer__input u s,
|
|
819
|
+
.cometchat-compact-message-composer__input u strike,
|
|
820
|
+
.cometchat-compact-message-composer__input u del,
|
|
821
|
+
.cometchat-compact-message-composer__input s u,
|
|
822
|
+
.cometchat-compact-message-composer__input strike u,
|
|
823
|
+
.cometchat-compact-message-composer__input del u {
|
|
824
|
+
text-decoration: underline line-through;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/* List styling - remove default margin and padding */
|
|
828
|
+
.cometchat-compact-message-composer__input ol,
|
|
829
|
+
.cometchat-compact-message-composer__input ul,
|
|
830
|
+
.cometchat-compact-message-composer__center ol,
|
|
831
|
+
.cometchat-compact-message-composer__center ul,
|
|
832
|
+
.cometchat .cometchat-compact-message-composer__input ol,
|
|
833
|
+
.cometchat .cometchat-compact-message-composer__input ul {
|
|
834
|
+
margin: 0 !important;
|
|
835
|
+
padding: 0 !important;
|
|
836
|
+
padding-left: var(--cometchat-padding-3, 12px) !important;
|
|
837
|
+
list-style-position: outside !important;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.cometchat-compact-message-composer__input ol,
|
|
841
|
+
.cometchat-compact-message-composer__center ol,
|
|
842
|
+
.cometchat .cometchat-compact-message-composer__input ol {
|
|
843
|
+
list-style-type: decimal !important;
|
|
844
|
+
}
|
|
845
|
+
.cometchat-compact-message-composer__input ol ol,
|
|
846
|
+
.cometchat-compact-message-composer__center ol ol,
|
|
847
|
+
.cometchat .cometchat-compact-message-composer__input ol ol {
|
|
848
|
+
list-style-type: lower-alpha !important;
|
|
849
|
+
}
|
|
850
|
+
.cometchat-compact-message-composer__input ol ol ol,
|
|
851
|
+
.cometchat-compact-message-composer__center ol ol ol,
|
|
852
|
+
.cometchat .cometchat-compact-message-composer__input ol ol ol {
|
|
853
|
+
list-style-type: lower-roman !important;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.cometchat-compact-message-composer__input ul,
|
|
857
|
+
.cometchat-compact-message-composer__center ul,
|
|
858
|
+
.cometchat .cometchat-compact-message-composer__input ul {
|
|
859
|
+
list-style-type: disc !important;
|
|
860
|
+
}
|
|
861
|
+
.cometchat-compact-message-composer__input ul ul,
|
|
862
|
+
.cometchat-compact-message-composer__center ul ul,
|
|
863
|
+
.cometchat .cometchat-compact-message-composer__input ul ul {
|
|
864
|
+
list-style-type: circle !important;
|
|
865
|
+
}
|
|
866
|
+
.cometchat-compact-message-composer__input ul ul ul,
|
|
867
|
+
.cometchat-compact-message-composer__center ul ul ul,
|
|
868
|
+
.cometchat .cometchat-compact-message-composer__input ul ul ul {
|
|
869
|
+
list-style-type: square !important;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.cometchat-compact-message-composer__input li,
|
|
873
|
+
.cometchat-compact-message-composer__center li,
|
|
874
|
+
.cometchat .cometchat-compact-message-composer__input li {
|
|
875
|
+
display: list-item !important;
|
|
876
|
+
margin: 0 !important;
|
|
877
|
+
padding: 0 !important;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/* Blockquote styling with left border */
|
|
881
|
+
.cometchat-compact-message-composer__input blockquote,
|
|
882
|
+
.cometchat-compact-message-composer__center blockquote,
|
|
883
|
+
.cometchat .cometchat-compact-message-composer__input blockquote {
|
|
884
|
+
margin: 0 !important;
|
|
885
|
+
padding: 0 !important;
|
|
886
|
+
padding-left: var(--cometchat-padding-3, 12px) !important;
|
|
887
|
+
border-left: 4px solid var(--cometchat-border-color-default, #E8E8E8) !important;
|
|
888
|
+
color: var(--cometchat-text-color-primary);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* Paragraph styling - remove default margin */
|
|
892
|
+
.cometchat-compact-message-composer__input p,
|
|
893
|
+
.cometchat-compact-message-composer__center p,
|
|
894
|
+
.cometchat .cometchat-compact-message-composer__input p {
|
|
895
|
+
margin: 0 !important;
|
|
896
|
+
padding: 0 !important;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/* Inline code styling */
|
|
900
|
+
.cometchat-compact-message-composer__input code,
|
|
901
|
+
.cometchat-compact-message-composer__center code,
|
|
902
|
+
.cometchat .cometchat-compact-message-composer__input code {
|
|
903
|
+
background: var(--cometchat-background-color-03, #F5F5F5);
|
|
904
|
+
color: var(--cometchat-text-color-highlight, #6852D6);
|
|
905
|
+
padding: var(--cometchat-padding) var(--cometchat-padding-1);
|
|
906
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
907
|
+
border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
|
|
908
|
+
font: var(--cometchat-font-caption1-regular);
|
|
909
|
+
font-family: var(--cometchat-font-family);
|
|
910
|
+
display: inline-flex;
|
|
911
|
+
justify-content: center;
|
|
912
|
+
align-items: center;
|
|
913
|
+
gap: 10px;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/* Inline code with explicit class - monospace font via CSS variables */
|
|
917
|
+
.cometchat-compact-message-composer__input code.cometchat-rich-text-code-inline,
|
|
918
|
+
.cometchat-compact-message-composer__center code.cometchat-rich-text-code-inline,
|
|
919
|
+
.cometchat .cometchat-compact-message-composer__input code.cometchat-rich-text-code-inline {
|
|
920
|
+
background: var(--cometchat-background-color-03, #F5F5F5);
|
|
921
|
+
color: var(--cometchat-text-color-highlight, #6852D6);
|
|
922
|
+
padding: var(--cometchat-padding) var(--cometchat-padding-1);
|
|
923
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
924
|
+
border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
|
|
925
|
+
font: var(--cometchat-font-caption1-regular);
|
|
926
|
+
font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
927
|
+
display: inline;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/* Code block styling */
|
|
931
|
+
.cometchat-compact-message-composer__input pre,
|
|
932
|
+
.cometchat-compact-message-composer__center pre,
|
|
933
|
+
.cometchat .cometchat-compact-message-composer__input pre {
|
|
934
|
+
padding: var(--cometchat-padding-3, 12px);
|
|
935
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
936
|
+
border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
|
|
937
|
+
background: var(--cometchat-background-color-02, #FAFAFA);
|
|
938
|
+
margin: 0;
|
|
939
|
+
overflow-x: auto;
|
|
940
|
+
font: var(--cometchat-font-caption1-regular);
|
|
941
|
+
font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
942
|
+
white-space: pre-wrap;
|
|
943
|
+
word-wrap: break-word;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.cometchat-compact-message-composer__input pre code,
|
|
947
|
+
.cometchat-compact-message-composer__center pre code,
|
|
948
|
+
.cometchat .cometchat-compact-message-composer__input pre code {
|
|
949
|
+
background: transparent;
|
|
950
|
+
color: var(--cometchat-text-color-primary);
|
|
951
|
+
padding: 0;
|
|
952
|
+
border: none;
|
|
953
|
+
border-radius: 0;
|
|
954
|
+
font: var(--cometchat-font-caption1-regular);
|
|
955
|
+
font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.cometchat-compact-message-composer__input pre.cometchat-rich-text-code-block code,
|
|
959
|
+
.cometchat-compact-message-composer__center pre.cometchat-rich-text-code-block code,
|
|
960
|
+
.cometchat .cometchat-compact-message-composer__input pre.cometchat-rich-text-code-block code {
|
|
961
|
+
color: var(--cometchat-text-color-primary);
|
|
962
|
+
font: var(--cometchat-font-caption1-regular);
|
|
963
|
+
font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
964
|
+
font-style: normal;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/* Formatting toolbar container */
|
|
968
|
+
.cometchat-compact-message-composer__formatting-toolbar {
|
|
969
|
+
display: flex;
|
|
970
|
+
flex-direction: row;
|
|
971
|
+
align-items: center;
|
|
972
|
+
gap: var(--cometchat-spacing-1, 4px);
|
|
973
|
+
padding: var(--cometchat-padding-2, 8px);
|
|
974
|
+
border-radius: var(--cometchat-radius-2, 8px) var(--cometchat-radius-2, 8px) 0 0;
|
|
975
|
+
background: var(--cometchat-background-color-02);
|
|
976
|
+
border: 1px solid var(--cometchat-border-color-light);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/* Formatting toolbar button */
|
|
980
|
+
.cometchat-compact-message-composer__formatting-button {
|
|
981
|
+
display: flex;
|
|
982
|
+
align-items: center;
|
|
983
|
+
justify-content: center;
|
|
984
|
+
width: 28px;
|
|
985
|
+
height: 28px;
|
|
986
|
+
padding: var(--cometchat-padding-1, 4px);
|
|
987
|
+
border: none;
|
|
988
|
+
border-radius: var(--cometchat-radius-1, 4px);
|
|
989
|
+
background: transparent;
|
|
990
|
+
cursor: pointer;
|
|
991
|
+
transition: background-color 0.15s ease;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.cometchat-compact-message-composer__formatting-button:hover {
|
|
995
|
+
background: var(--cometchat-background-color-03);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/* Active state for formatting buttons */
|
|
999
|
+
.cometchat-compact-message-composer__formatting-button--active {
|
|
1000
|
+
background: var(--cometchat-extended-primary-color-100);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.cometchat-compact-message-composer__formatting-button--active:hover {
|
|
1004
|
+
background: var(--cometchat-extended-primary-color-200);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/* Formatting button icons */
|
|
1008
|
+
.cometchat-compact-message-composer__formatting-button-icon {
|
|
1009
|
+
width: 16px;
|
|
1010
|
+
height: 16px;
|
|
1011
|
+
background: var(--cometchat-icon-color-secondary);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.cometchat-compact-message-composer__formatting-button--active .cometchat-compact-message-composer__formatting-button-icon {
|
|
1015
|
+
background: var(--cometchat-primary-color);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* Bold icon */
|
|
1019
|
+
.cometchat-compact-message-composer__formatting-button-icon--bold {
|
|
1020
|
+
-webkit-mask: url("../../assets/format_bold.svg") center center no-repeat;
|
|
1021
|
+
mask: url("../../assets/format_bold.svg") center center no-repeat;
|
|
1022
|
+
-webkit-mask-size: contain;
|
|
1023
|
+
mask-size: contain;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/* Italic icon */
|
|
1027
|
+
.cometchat-compact-message-composer__formatting-button-icon--italic {
|
|
1028
|
+
-webkit-mask: url("../../assets/format_italic.svg") center center no-repeat;
|
|
1029
|
+
mask: url("../../assets/format_italic.svg") center center no-repeat;
|
|
1030
|
+
-webkit-mask-size: contain;
|
|
1031
|
+
mask-size: contain;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/* Underline icon */
|
|
1035
|
+
.cometchat-compact-message-composer__formatting-button-icon--underline {
|
|
1036
|
+
-webkit-mask: url("../../assets/format_underline.svg") center center no-repeat;
|
|
1037
|
+
mask: url("../../assets/format_underline.svg") center center no-repeat;
|
|
1038
|
+
-webkit-mask-size: contain;
|
|
1039
|
+
mask-size: contain;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/* Strikethrough icon */
|
|
1043
|
+
.cometchat-compact-message-composer__formatting-button-icon--strikethrough {
|
|
1044
|
+
-webkit-mask: url("../../assets/format_strikethrough.svg") center center no-repeat;
|
|
1045
|
+
mask: url("../../assets/format_strikethrough.svg") center center no-repeat;
|
|
1046
|
+
-webkit-mask-size: contain;
|
|
1047
|
+
mask-size: contain;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/* Divider between formatting button groups */
|
|
1051
|
+
.cometchat-compact-message-composer__formatting-divider {
|
|
1052
|
+
width: 1px;
|
|
1053
|
+
height: 20px;
|
|
1054
|
+
background: var(--cometchat-border-color-light);
|
|
1055
|
+
margin: 0 var(--cometchat-spacing-1, 4px);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/* Link styling in input */
|
|
1059
|
+
.cometchat-compact-message-composer__input a {
|
|
1060
|
+
color: var(--cometchat-primary-color);
|
|
1061
|
+
text-decoration: underline;
|
|
1062
|
+
cursor: pointer;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.cometchat-compact-message-composer__input a:hover {
|
|
1066
|
+
text-decoration: underline;
|
|
1067
|
+
opacity: 0.8;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
/* ============================================
|
|
1072
|
+
Mic Button Hide/Show Animation (Web + Mobile)
|
|
1073
|
+
============================================ */
|
|
1074
|
+
|
|
1075
|
+
@keyframes cometchat-mic-slide-out {
|
|
1076
|
+
0% {
|
|
1077
|
+
opacity: 1;
|
|
1078
|
+
max-width: 40px;
|
|
1079
|
+
margin-left: 0;
|
|
1080
|
+
}
|
|
1081
|
+
100% {
|
|
1082
|
+
opacity: 0;
|
|
1083
|
+
max-width: 0;
|
|
1084
|
+
margin-left: calc(-1 * var(--cometchat-spacing-3, 12px));
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
@keyframes cometchat-mic-slide-in {
|
|
1089
|
+
0% {
|
|
1090
|
+
opacity: 0;
|
|
1091
|
+
max-width: 0;
|
|
1092
|
+
margin-left: calc(-1 * var(--cometchat-spacing-3, 12px));
|
|
1093
|
+
}
|
|
1094
|
+
100% {
|
|
1095
|
+
opacity: 1;
|
|
1096
|
+
max-width: 40px;
|
|
1097
|
+
margin-left: 0;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/* Default state: mic visible with slide-in animation */
|
|
1102
|
+
.cometchat-compact-message-composer__voice-recording-button {
|
|
1103
|
+
animation: cometchat-mic-slide-in 0.25s ease forwards;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/* Hidden state: mic slides out to the right and collapses */
|
|
1107
|
+
.cometchat-compact-message-composer__voice-recording-button--hidden {
|
|
1108
|
+
animation: cometchat-mic-slide-out 0.25s ease forwards;
|
|
1109
|
+
pointer-events: none;
|
|
1110
|
+
overflow: hidden;
|
|
1111
|
+
}
|