@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.
Files changed (71) hide show
  1. package/dist/assets/bin.svg +1 -0
  2. package/dist/assets/format_blockquote.svg +3 -0
  3. package/dist/assets/format_bold.svg +5 -0
  4. package/dist/assets/format_code.svg +3 -0
  5. package/dist/assets/format_code_block.svg +5 -0
  6. package/dist/assets/format_italic.svg +3 -0
  7. package/dist/assets/format_link.svg +3 -0
  8. package/dist/assets/format_ordered_list.svg +5 -0
  9. package/dist/assets/format_strikethrough.svg +5 -0
  10. package/dist/assets/format_toggle.svg +1 -0
  11. package/dist/assets/format_underline.svg +5 -0
  12. package/dist/assets/format_unordered_list.svg +5 -0
  13. package/dist/assets/pause_circle.svg +1 -0
  14. package/dist/assets/warning-small.svg +0 -0
  15. package/dist/index.d.ts +366 -47
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/styles/CometChatCompactMessageComposer.css +1111 -0
  19. package/dist/styles/CometChatConversations.css +37 -1
  20. package/dist/styles/CometChatDocumentBubble.css +0 -1
  21. package/dist/styles/CometChatFormattingToolbar.css +257 -0
  22. package/dist/styles/CometChatFullScreenViewer.css +2 -2
  23. package/dist/styles/CometChatLinkDialog.css +191 -0
  24. package/dist/styles/CometChatLinkPopover.css +128 -0
  25. package/dist/styles/CometChatMarkdownFormatter.css +141 -0
  26. package/dist/styles/CometChatMediaRecorder.css +73 -1
  27. package/dist/styles/CometChatMessageComposer.css +210 -3
  28. package/dist/styles/CometChatMessagePreview.css +10 -0
  29. package/dist/styles/CometChatSearch.css +11 -0
  30. package/dist/styles/CometChatTextBubble.css +267 -3
  31. package/dist/styles/LinkPreview.css +1 -1
  32. package/dist/styles/components/CometChatCompactMessageComposer.css +1111 -0
  33. package/dist/styles/components/CometChatConversations.css +37 -1
  34. package/dist/styles/components/CometChatDocumentBubble.css +0 -1
  35. package/dist/styles/components/CometChatFormattingToolbar.css +257 -0
  36. package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
  37. package/dist/styles/components/CometChatLinkDialog.css +191 -0
  38. package/dist/styles/components/CometChatLinkPopover.css +128 -0
  39. package/dist/styles/components/CometChatMarkdownFormatter.css +141 -0
  40. package/dist/styles/components/CometChatMediaRecorder.css +73 -1
  41. package/dist/styles/components/CometChatMessageComposer.css +210 -3
  42. package/dist/styles/components/CometChatMessagePreview.css +10 -0
  43. package/dist/styles/components/CometChatSearch.css +11 -0
  44. package/dist/styles/components/CometChatTextBubble.css +267 -3
  45. package/dist/styles/components/LinkPreview.css +1 -1
  46. package/dist/styles/components/index.css +6 -5
  47. package/dist/styles/css-variables.css +1 -0
  48. package/dist/styles/index.css +6 -5
  49. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +13 -0
  50. package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -21
  51. package/dist/types/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -1
  52. package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +3 -1
  53. package/dist/types/components/CometChatCompactMessageComposer/CometChatCompactMessageComposer.d.ts +247 -0
  54. package/dist/types/components/CometChatFormattingToolbar/CometChatFormattingToolbar.d.ts +29 -0
  55. package/dist/types/components/CometChatLinkDialog/CometChatLinkDialog.d.ts +22 -0
  56. package/dist/types/components/CometChatLinkPopover/CometChatLinkPopover.d.ts +24 -0
  57. package/dist/types/components/CometChatLinkPopover/index.d.ts +1 -0
  58. package/dist/types/components/useRichTextComposer/useRichTextComposer.d.ts +138 -0
  59. package/dist/types/formatters/CometChatFormatters/CometChatMarkdownFormatter/CometChatMarkdownFormatter.d.ts +109 -0
  60. package/dist/types/formatters/CometChatFormatters/CometChatRichTextFormatter.d.ts +32 -0
  61. package/dist/types/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +9 -3
  62. package/dist/types/formatters/index.d.ts +2 -0
  63. package/dist/types/index.d.ts +1 -1
  64. package/dist/types/utils/EmojiShortcodeUtils.d.ts +11 -0
  65. package/dist/types/utils/HtmlToMarkdown.d.ts +52 -0
  66. package/dist/types/utils/MarkdownPatternDetector.d.ts +108 -0
  67. package/dist/types/utils/MessageUtils.d.ts +6 -0
  68. package/dist/types/utils/RichTextFormatting.d.ts +143 -0
  69. package/dist/types/utils/util.d.ts +1 -1
  70. package/package.json +2 -2
  71. package/dist/types/utils/useSecureMedia.d.ts +0 -19
@@ -0,0 +1,141 @@
1
+ /**
2
+ * CometChat Markdown Formatter Styles
3
+ *
4
+ * Styles for rendering markdown in message bubbles.
5
+ * Uses native HTML tags for better compatibility.
6
+ */
7
+
8
+ /* Text bubble formatting styles */
9
+ .cometchat-text-bubble__body-text b,
10
+ .cometchat-text-bubble__body-text strong {
11
+ font-weight: var(--cometchat-font-weight-bold, 700);
12
+ }
13
+
14
+ .cometchat-text-bubble__body-text i,
15
+ .cometchat-text-bubble__body-text em {
16
+ font-style: italic;
17
+ }
18
+
19
+ .cometchat-text-bubble__body-text s,
20
+ .cometchat-text-bubble__body-text strike,
21
+ .cometchat-text-bubble__body-text del {
22
+ text-decoration: line-through;
23
+ }
24
+
25
+ .cometchat-text-bubble__body-text u {
26
+ text-decoration: underline;
27
+ }
28
+
29
+ /* Inline code */
30
+ .cometchat-text-bubble__body-text code {
31
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
32
+ font-size: 14px;
33
+ background: var(--cometchat-background-color-03);
34
+ color: var(--cometchat-text-color-highlight);
35
+ padding: 0 var(--cometchat-padding);
36
+ border-radius: var(--cometchat-radius);
37
+ border: 1px solid var(--cometchat-border-color-default);
38
+ white-space: pre-wrap;
39
+ word-break: break-word;
40
+ }
41
+
42
+ /* Inline code for incoming messages */
43
+ .cometchat-text-bubble-incoming .cometchat-text-bubble__body-text code {
44
+ color: var(--cometchat-text-color-highlight);
45
+ background: var(--cometchat-background-color-03);
46
+ border: 1px solid var(--cometchat-border-color-dark);
47
+ }
48
+
49
+ /* Inline code for outgoing messages */
50
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text code {
51
+ color: var(--cometchat-static-white);
52
+ background: rgba(255, 255, 255, 0.20);
53
+ border: 1px solid rgba(245, 245, 245, 0.10);
54
+ }
55
+
56
+ /* Code block */
57
+ .cometchat-text-bubble__body-text pre {
58
+ display: block;
59
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
+ font-size: 14px;
61
+ background: var(--cometchat-background-color-02);
62
+ color: var(--cometchat-text-color-primary);
63
+ border: 1px solid var(--cometchat-border-color-light);
64
+ padding: var(--cometchat-padding-2) var(--cometchat-padding-3);
65
+ border-radius: var(--cometchat-radius-2);
66
+ margin: 0;
67
+ white-space: pre-wrap;
68
+ word-break: break-word;
69
+ overflow-x: auto;
70
+ }
71
+
72
+ .cometchat-text-bubble__body-text pre code,
73
+ .cometchat-text-bubble-incoming .cometchat-text-bubble__body-text pre code,
74
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre code {
75
+ background: transparent;
76
+ color: inherit;
77
+ padding: 0;
78
+ border: none;
79
+ border-radius: 0;
80
+ display: inline;
81
+ font-family: inherit;
82
+ }
83
+
84
+ /* Blockquote */
85
+ .cometchat-text-bubble__body-text blockquote {
86
+ display: block;
87
+ border-left: 3px solid var(--cometchat-primary-color, #3399ff);
88
+ padding: var(--cometchat-padding-2);
89
+ border-radius: var(--cometchat-radius-1);
90
+ margin: var(--cometchat-margin, 4px) 0;
91
+ color: var(--cometchat-text-color-secondary, #727272);
92
+ min-width: 100px;
93
+ }
94
+
95
+ /* Links */
96
+ .cometchat-text-bubble__body-text a {
97
+ color: var(--cometchat-primary-color, #3399ff);
98
+ text-decoration: underline;
99
+ cursor: pointer;
100
+ }
101
+
102
+ /* Outgoing message links should be white */
103
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text a {
104
+ color: var(--cometchat-static-white) !important;
105
+ }
106
+
107
+ /* Links inside code/code blocks for outgoing messages */
108
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text code a,
109
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre a,
110
+ .cometchat-text-bubble-outgoing .cometchat-text-bubble__body-text pre code a {
111
+ color: var(--cometchat-static-white) !important;
112
+ }
113
+
114
+ .cometchat-text-bubble__body-text a:hover {
115
+ text-decoration: none;
116
+ }
117
+
118
+ /* List items */
119
+ .cometchat-text-bubble__body-text li {
120
+ display: list-item;
121
+ margin-left: var(--cometchat-margin-4, 16px);
122
+ }
123
+
124
+ .cometchat-text-bubble__body-text ol,
125
+ .cometchat-text-bubble__body-text ul {
126
+ margin: var(--cometchat-margin, 4px) 0;
127
+ padding-left: var(--cometchat-padding-3, 12px);
128
+ }
129
+
130
+ /* Nested list styling progression */
131
+ .cometchat-text-bubble__body-text ol { list-style-type: decimal; }
132
+ .cometchat-text-bubble__body-text ol ol { list-style-type: lower-alpha; }
133
+ .cometchat-text-bubble__body-text ol ol ol { list-style-type: lower-roman; }
134
+ .cometchat-text-bubble__body-text ul { list-style-type: disc; }
135
+ .cometchat-text-bubble__body-text ul ul { list-style-type: circle; }
136
+ .cometchat-text-bubble__body-text ul ul ul { list-style-type: square; }
137
+ .cometchat-text-bubble__body-text li > ol,
138
+ .cometchat-text-bubble__body-text li > ul {
139
+ margin-top: 0;
140
+ margin-bottom: 0;
141
+ }
@@ -286,4 +286,76 @@
286
286
  -webkit-mask-size: contain;
287
287
  transform: rotate(180deg);
288
288
  mask-size: contain;
289
- }
289
+ }
290
+
291
+ /* Permission denied dialog (centered modal) */
292
+ .cometchat-media-recorder__permission-overlay {
293
+ position: fixed;
294
+ inset: 0;
295
+ z-index: 1000;
296
+ display: flex;
297
+ justify-content: center;
298
+ align-items: center;
299
+ background: rgba(0, 0, 0, 0.5);
300
+ }
301
+
302
+ .cometchat-media-recorder__permission-dialog {
303
+ display: flex;
304
+ flex-direction: column;
305
+ align-items: center;
306
+ gap: var(--cometchat-spacing-3, 12px);
307
+ padding: var(--cometchat-padding-6, 24px);
308
+ width: 320px;
309
+ border-radius: var(--cometchat-radius-4, 16px);
310
+ background: var(--cometchat-background-color-01, #FFF);
311
+ box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.10), 0px 8px 8px -4px rgba(16, 24, 40, 0.04);
312
+ }
313
+
314
+ .cometchat-media-recorder__permission-dialog-icon-wrapper {
315
+ display: flex;
316
+ width: 64px;
317
+ height: 64px;
318
+ justify-content: center;
319
+ align-items: center;
320
+ border-radius: var(--cometchat-radius-max, 1000px);
321
+ background: var(--cometchat-background-color-03, #F5F5F5);
322
+ }
323
+
324
+ .cometchat-media-recorder__permission-dialog-icon {
325
+ width: 32px;
326
+ height: 32px;
327
+ flex-shrink: 0;
328
+ background: var(--cometchat-error-color, #F44649);
329
+ -webkit-mask: url("../../assets/mic_off.svg") center center no-repeat;
330
+ mask: url("../../assets/mic_off.svg") center center no-repeat;
331
+ -webkit-mask-size: contain;
332
+ mask-size: contain;
333
+ }
334
+
335
+ .cometchat-media-recorder__permission-dialog-title {
336
+ color: var(--cometchat-text-color-primary, #141414);
337
+ text-align: center;
338
+ font: var(--cometchat-font-heading4-bold, 700 16px Roboto);
339
+ }
340
+
341
+ .cometchat-media-recorder__permission-dialog-subtitle {
342
+ color: var(--cometchat-text-color-secondary, #727272);
343
+ text-align: center;
344
+ font: var(--cometchat-font-body-regular, 400 14px Roboto);
345
+ }
346
+
347
+ .cometchat-media-recorder__permission-dialog-button {
348
+ width: 100%;
349
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
350
+ border-radius: var(--cometchat-radius-3, 12px);
351
+ border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
352
+ background: var(--cometchat-background-color-01, #FFF);
353
+ color: var(--cometchat-text-color-primary, #141414);
354
+ font: var(--cometchat-font-button-bold, 700 14px Roboto);
355
+ cursor: pointer;
356
+ margin-top: var(--cometchat-margin-1, 4px);
357
+ }
358
+
359
+ .cometchat-media-recorder__permission-dialog-button:hover {
360
+ background: var(--cometchat-background-color-02, #FAFAFA);
361
+ }
@@ -10,6 +10,16 @@
10
10
  background: var(--cometchat-background-color-01);
11
11
  width: 100%;
12
12
  height: 100%;
13
+ position: relative;
14
+ overflow: visible;
15
+ }
16
+
17
+ /* Input wrapper - contains input and link popover */
18
+ .cometchat-message-composer__input-wrapper {
19
+ position: relative;
20
+ width: 100%;
21
+ display: flex;
22
+ flex-direction: column;
13
23
  }
14
24
 
15
25
  /* Send button styling */
@@ -57,7 +67,8 @@
57
67
  border: none;
58
68
  }
59
69
 
60
- /* Voice recording button popover content */ .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
70
+ /* Voice recording button popover content */
71
+ .cometchat-message-composer__voice-recording-button .cometchat-popover__content {
61
72
  width: fit-content;
62
73
  max-height: 300px;
63
74
  height: fit-content;
@@ -84,11 +95,61 @@
84
95
  .cometchat-message-composer__input .cometchat-mentions>span {
85
96
  color: var(--cometchat-text-color-highlight, #6852D6);
86
97
  font: var(--cometchat-font-body-regular);
98
+ font-weight: normal;
99
+ font-style: normal;
100
+ text-decoration: none;
87
101
  }
88
102
 
89
103
  .cometchat-message-composer__input .cometchat-mentions-you>span {
90
104
  color: var(--cometchat-warning-color, #FFAB00);
91
105
  font: var(--cometchat-font-body-regular);
106
+ font-weight: normal;
107
+ font-style: normal;
108
+ text-decoration: none;
109
+ }
110
+
111
+ /* Strip rich text formatting from mentions when wrapped in formatting tags */
112
+ .cometchat-message-composer__input b .cometchat-mentions>span,
113
+ .cometchat-message-composer__input strong .cometchat-mentions>span,
114
+ .cometchat-message-composer__input i .cometchat-mentions>span,
115
+ .cometchat-message-composer__input em .cometchat-mentions>span,
116
+ .cometchat-message-composer__input u .cometchat-mentions>span,
117
+ .cometchat-message-composer__input s .cometchat-mentions>span,
118
+ .cometchat-message-composer__input strike .cometchat-mentions>span,
119
+ .cometchat-message-composer__input del .cometchat-mentions>span,
120
+ .cometchat-message-composer__input b .cometchat-mentions-you>span,
121
+ .cometchat-message-composer__input strong .cometchat-mentions-you>span,
122
+ .cometchat-message-composer__input i .cometchat-mentions-you>span,
123
+ .cometchat-message-composer__input em .cometchat-mentions-you>span,
124
+ .cometchat-message-composer__input u .cometchat-mentions-you>span,
125
+ .cometchat-message-composer__input s .cometchat-mentions-you>span,
126
+ .cometchat-message-composer__input strike .cometchat-mentions-you>span,
127
+ .cometchat-message-composer__input del .cometchat-mentions-you>span {
128
+ font-weight: normal;
129
+ font-style: normal;
130
+ text-decoration: none;
131
+ }
132
+
133
+ /* Mentions inside inline code should inherit code styling */
134
+ .cometchat-message-composer__input code .cometchat-mentions>span,
135
+ .cometchat-message-composer__input code .cometchat-mentions-you>span {
136
+ color: inherit !important;
137
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
138
+ font-size: inherit !important;
139
+ font-weight: normal !important;
140
+ font-style: normal !important;
141
+ text-decoration: none !important;
142
+ }
143
+
144
+ /* Mentions inside code blocks should inherit code block styling */
145
+ .cometchat-message-composer__input pre .cometchat-mentions>span,
146
+ .cometchat-message-composer__input pre .cometchat-mentions-you>span {
147
+ color: inherit !important;
148
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
149
+ font-size: inherit !important;
150
+ font-weight: normal !important;
151
+ font-style: normal !important;
152
+ text-decoration: none !important;
92
153
  }
93
154
 
94
155
  /* Styling for buttons with no specific class */
@@ -150,9 +211,11 @@
150
211
 
151
212
  .cometchat-message-composer__header-error-state-icon {
152
213
  -webkit-mask: url("../../assets/error_info.svg") center center no-repeat;
214
+ mask: url("../../assets/error_info.svg") center center no-repeat;
153
215
  width: 20px;
154
216
  height: 20px;
155
217
  -webkit-mask-size: contain;
218
+ mask-size: contain;
156
219
  background: var(--cometchat-static-white);
157
220
  }
158
221
 
@@ -225,7 +288,7 @@
225
288
  .cometchat-message-composer__auxilary-button-view {
226
289
  display: flex;
227
290
  justify-content: flex-start;
228
- gap: 12px;
291
+ gap: var(--cometchat-spacing-3, 12px);
229
292
  width: 100%;
230
293
  align-items: center;
231
294
  }
@@ -297,6 +360,13 @@
297
360
  .cometchat-message-composer__buttons .cometchat-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {
298
361
  background: var(--cometchat-primary-color);
299
362
  }
363
+
364
+ /* Remove vertical padding when code block is active (pre element has its own padding) */
365
+ .cometchat-message-composer__input--code-block {
366
+ padding-top: 0;
367
+ padding-bottom: 0;
368
+ min-height: auto;
369
+ }
300
370
  .cometchat-message-composer__input-mobile{
301
371
  font: var( --cometchat-font-heading4-regular);
302
372
  }
@@ -362,4 +432,141 @@ height: 58px;
362
432
  .cometchat-message-composer-hide-scrollbar .cometchat-sticker-keyboard__list::-webkit-scrollbar-thumb {
363
433
  background: rgb(232, 229, 229);
364
434
  border-radius: 8px;
365
- }
435
+ }
436
+
437
+
438
+ /* Formatting Toolbar Container - fixed toolbar below input */
439
+ .cometchat-message-composer__formatting-toolbar {
440
+ display: flex;
441
+ width: 100%;
442
+ padding: 0;
443
+ border-bottom: none;
444
+ border-top: none;
445
+ border-right: none;
446
+ border-left: none;
447
+ background: var(--cometchat-background-color-02);
448
+ border-radius: var(--cometchat-radius-2, 8px) var(--cometchat-radius-2, 8px) 0 0;
449
+ }
450
+
451
+ /* Link styling in input */
452
+ .cometchat-message-composer__input a {
453
+ color: var(--cometchat-primary-color);
454
+ text-decoration: underline;
455
+ cursor: pointer;
456
+ }
457
+
458
+ .cometchat-message-composer__input a:hover {
459
+ text-decoration: underline;
460
+ opacity: 0.8;
461
+ }
462
+
463
+ /* List styling - remove default margin and padding */
464
+ .cometchat-message-composer__input ol,
465
+ .cometchat-message-composer__input ul {
466
+ margin: 0 !important;
467
+ padding: 0 !important;
468
+ padding-left: var(--cometchat-padding-3, 12px) !important;
469
+ list-style-position: outside;
470
+ }
471
+
472
+ /* Nested list styling - bullet/number progression */
473
+ /* Ordered: 1. → a. → i. */
474
+ .cometchat-message-composer__input ol {
475
+ list-style-type: decimal;
476
+ }
477
+ .cometchat-message-composer__input ol ol {
478
+ list-style-type: lower-alpha;
479
+ }
480
+ .cometchat-message-composer__input ol ol ol {
481
+ list-style-type: lower-roman;
482
+ }
483
+
484
+ /* Unordered: disc → circle → square */
485
+ .cometchat-message-composer__input ul {
486
+ list-style-type: disc;
487
+ }
488
+ .cometchat-message-composer__input ul ul {
489
+ list-style-type: circle;
490
+ }
491
+ .cometchat-message-composer__input ul ul ul {
492
+ list-style-type: square;
493
+ }
494
+
495
+ /* Nested lists inside list items need proper spacing */
496
+ .cometchat-message-composer__input li > ol,
497
+ .cometchat-message-composer__input li > ul {
498
+ margin-top: 0 !important;
499
+ margin-bottom: 0 !important;
500
+ }
501
+
502
+ .cometchat-message-composer__input li {
503
+ margin: 0 !important;
504
+ padding: 0 !important;
505
+ }
506
+
507
+ /* Blockquote styling with left border */
508
+ .cometchat-message-composer__input blockquote {
509
+ margin: 0 !important;
510
+ padding: 0 !important;
511
+ padding-left: var(--cometchat-padding-3, 12px) !important;
512
+ border-left: 4px solid var(--cometchat-border-color-default, #E8E8E8) !important;
513
+ color: var(--cometchat-text-color-primary);
514
+ }
515
+
516
+ /* Paragraph styling - remove default margin */
517
+ .cometchat-message-composer__input p {
518
+ margin: 0 !important;
519
+ padding: 0 !important;
520
+ }
521
+
522
+ /* Inline code styling */
523
+ .cometchat-message-composer__input code {
524
+ background: var(--cometchat-background-color-03, #F5F5F5);
525
+ color: var(--cometchat-text-color-highlight, #6852D6);
526
+ padding: var(--cometchat-padding-1, 2px) var(--cometchat-padding-1, 4px);
527
+ border-radius: var(--cometchat-radius-1, 4px);
528
+ border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
529
+ font: var(--cometchat-font-caption1-regular);
530
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
531
+ }
532
+
533
+ /* Inline code with explicit class - monospace font via CSS variables */
534
+ .cometchat-message-composer__input code.cometchat-rich-text-code-inline {
535
+ background: var(--cometchat-background-color-03, #F5F5F5);
536
+ color: var(--cometchat-text-color-highlight, #6852D6);
537
+ padding: var(--cometchat-padding-1, 2px) var(--cometchat-padding-1, 4px);
538
+ border-radius: var(--cometchat-radius-1, 4px);
539
+ border: 1px solid var(--cometchat-border-color-default, #E8E8E8);
540
+ font: var(--cometchat-font-caption1-regular);
541
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
542
+ display: inline;
543
+ }
544
+
545
+ /* Code block styling */
546
+ .cometchat-message-composer__input pre {
547
+ background: var(--cometchat-background-color-02, #F5F5F5);
548
+ border: 1px solid var(--cometchat-border-color-light, #E8E8E8);
549
+ border-radius: var(--cometchat-radius-2, 8px);
550
+ padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);
551
+ margin: 0;
552
+ overflow-x: auto;
553
+ font: var(--cometchat-font-caption1-regular);
554
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
555
+ white-space: pre-wrap;
556
+ word-wrap: break-word;
557
+ }
558
+
559
+ .cometchat-message-composer__input pre code {
560
+ background: transparent;
561
+ color: var(--cometchat-text-color-primary);
562
+ padding: 0;
563
+ border: none;
564
+ border-radius: 0;
565
+ }
566
+
567
+ .cometchat-message-composer__input pre.cometchat-rich-text-code-block code {
568
+ color: var(--cometchat-text-color-primary);
569
+ font: var(--cometchat-font-caption1-regular);
570
+ font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
571
+ font-style: normal;
572
+ }
@@ -125,6 +125,16 @@
125
125
  color: var(--cometchat-static-white);
126
126
  }
127
127
 
128
+ .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle-text a {
129
+ color: var(--cometchat-static-white) !important;
130
+ text-decoration: underline;
131
+ }
132
+
133
+ .cometchat-message-bubble-outgoing .cometchat-message-preview__subtitle-text .cometchat-url {
134
+ color: var(--cometchat-static-white) !important;
135
+ text-decoration: underline;
136
+ }
137
+
128
138
  .bubble-view{
129
139
  border-radius: 4px;
130
140
  }
@@ -322,6 +322,17 @@
322
322
  width: 100%;
323
323
  }
324
324
 
325
+ /* Inline code styling in search conversation subtitle */
326
+ .cometchat-search__conversations-subtitle-text code {
327
+ font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
328
+ font-size: 0.9em;
329
+ background: var(--cometchat-background-color-03);
330
+ color: var(--cometchat-text-color-secondary);
331
+ padding: 0 var(--cometchat-padding-1, 2px);
332
+ border-radius: var(--cometchat-radius-1, 4px);
333
+ border: 1px solid var(--cometchat-border-color-light);
334
+ }
335
+
325
336
  .cometchat-search__conversations-subtitle-text-sender {
326
337
  overflow: hidden;
327
338
  color: var(--cometchat-text-color-secondary, #727272);