@cometchat/chat-uikit-react 6.1.2 → 6.2.1
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/Profile.png +0 -0
- package/dist/assets/chat-history.svg +3 -0
- package/dist/assets/copy-text.svg +3 -0
- package/dist/assets/message_blocked.svg +8 -0
- package/dist/assets/new-chat.svg +3 -0
- package/dist/assets/right-arrow.svg +3 -0
- package/dist/assets/send-message.svg +3 -0
- package/dist/assets/stop-message.svg +3 -0
- package/dist/assets/warning-small.svg +0 -0
- package/dist/index.d.ts +447 -198
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +465 -0
- package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
- package/dist/styles/CometChatAIAssistantMessageBubble.css +118 -0
- package/dist/styles/CometChatConversations.css +19 -0
- package/dist/styles/CometChatErrorView.css +22 -0
- package/dist/styles/CometChatMessageComposer.css +9 -9
- package/dist/styles/CometChatMessageHeader.css +2 -4
- package/dist/styles/CometChatMessageList.css +34 -19
- package/dist/styles/CometChatModerationView.css +25 -0
- package/dist/styles/CometChatSearch.css +13 -0
- package/dist/styles/CometChatStreamMessageBubble.css +183 -0
- package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
- package/dist/styles/CometChatToolCallResultBubble.css +91 -0
- package/dist/styles/components/CometChatAIAssistantChat.css +465 -0
- package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +118 -0
- package/dist/styles/components/CometChatConversations.css +19 -0
- package/dist/styles/components/CometChatErrorView.css +22 -0
- package/dist/styles/components/CometChatMessageComposer.css +9 -9
- package/dist/styles/components/CometChatMessageHeader.css +2 -4
- package/dist/styles/components/CometChatMessageList.css +34 -19
- package/dist/styles/components/CometChatModerationView.css +25 -0
- package/dist/styles/components/CometChatSearch.css +13 -0
- package/dist/styles/components/CometChatStreamMessageBubble.css +183 -0
- package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
- package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
- package/dist/styles/components/index.css +9 -2
- package/dist/styles/css-variables.css +5 -0
- package/dist/styles/index.css +9 -2
- package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
- package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
- package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
- package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +2 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +24 -14
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +21 -0
- package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
- package/dist/types/services/stream-message.service.d.ts +44 -0
- package/dist/types/utils/DataSource.d.ts +9 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
- package/dist/types/utils/MessageReceiptUtils.d.ts +1 -1
- package/dist/types/utils/MessageUtils.d.ts +6 -0
- package/dist/types/utils/MessagesDataSource.d.ts +15 -6
- package/dist/types/utils/util.d.ts +9 -0
- package/package.json +7 -3
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
.cometchat-ai-assistant-chat-history {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
padding: var(--cometchat-padding-2);
|
|
7
|
+
padding-top: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cometchat-ai-assistant-chat-history__loading,
|
|
11
|
+
.cometchat-ai-assistant-chat-history__empty,
|
|
12
|
+
.cometchat-ai-assistant-chat-history__error {
|
|
13
|
+
padding: 20px;
|
|
14
|
+
text-align: center;
|
|
15
|
+
color: var(--cometchat-text-color-secondary);
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cometchat-ai-assistant-chat-history__list {
|
|
25
|
+
flex: 1;
|
|
26
|
+
overflow-y: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cometchat-ai-assistant-chat-history__list-item {
|
|
30
|
+
padding: var(--cometchat-padding-3) var(--cometchat-padding-2);
|
|
31
|
+
background: var(--cometchat-background-color-02);
|
|
32
|
+
transition: background 0.2s ease;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cometchat-ai-assistant-chat-history__list-item:hover {
|
|
36
|
+
background: var(--cometchat-background-color-03);
|
|
37
|
+
border-radius: var(--cometchat-radius-2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cometchat-ai-assistant-chat-history__list-item-text {
|
|
41
|
+
line-height: 1.5;
|
|
42
|
+
color: var(--cometchat-text-color-primary);
|
|
43
|
+
font: var(--cometchat-font-body-regular);
|
|
44
|
+
text-align: left;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cometchat-ai-assistant-chat-history .cometchat-list__body {
|
|
52
|
+
border: none;
|
|
53
|
+
padding: var(--cometchat-padding-2) 0;
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cometchat-ai-assistant-chat-history__header {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
padding: 0 var(--cometchat-padding-2);
|
|
62
|
+
background: var(--cometchat-background-color-02);
|
|
63
|
+
min-height: 65px;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cometchat-ai-assistant-chat-history__title {
|
|
68
|
+
font: var(--cometchat-font-heading3-bold);
|
|
69
|
+
color: var(--cometchat-text-color-primary);
|
|
70
|
+
margin: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cometchat-ai-assistant-chat-history .cometchat-list__body-intersection-top {
|
|
74
|
+
visibility: hidden !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cometchat-ai-assistant-chat-history__close {
|
|
78
|
+
background: transparent;
|
|
79
|
+
border: none;
|
|
80
|
+
padding: var(--cometchat-padding-2);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
border-radius: var(--cometchat-radius-2);
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
transition: background-color 0.2s ease;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cometchat-ai-assistant-chat-history__close:hover {
|
|
90
|
+
background: var(--cometchat-background-color-03);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cometchat-ai-assistant-chat-history__close-icon {
|
|
94
|
+
width: 24px;
|
|
95
|
+
height: 24px;
|
|
96
|
+
mask: url("../../assets/close.svg") center center no-repeat;
|
|
97
|
+
-webkit-mask: url("../../assets/close.svg") center center no-repeat;
|
|
98
|
+
mask-size: contain;
|
|
99
|
+
-webkit-mask-size: contain;
|
|
100
|
+
background: var(--cometchat-icon-color-secondary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cometchat-ai-assistant-chat-history__shimmer {
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
background: transparent;
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cometchat-ai-assistant-chat-history__shimmer-item {
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 48px;
|
|
113
|
+
display: flex;
|
|
114
|
+
width: 100%;
|
|
115
|
+
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cometchat-ai-assistant-chat-history__shimmer-item-title {
|
|
119
|
+
width: 100%;
|
|
120
|
+
height: 22px;
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
border-radius: var(--cometchat-radius-2, 8px);
|
|
123
|
+
background: var(--cometchat-shimmer-gradient-color,
|
|
124
|
+
linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
|
|
125
|
+
animation: shimmerAnimation 1.5s infinite linear;
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cometchat-ai-assistant-chat-history__empty-state-view,
|
|
130
|
+
.cometchat-ai-assistant-chat-history__error-state-view {
|
|
131
|
+
height: 100%;
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: var(--cometchat-padding-5, 20px);
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: center;
|
|
137
|
+
background: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
.cometchat-ai-assistant-chat-history__empty-state-view-body,
|
|
143
|
+
.cometchat-ai-assistant-chat-history__error-state-view-body {
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
gap: var(--cometchat-padding, 2px);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.cometchat-ai-assistant-chat-history__empty-state-view-body-title,
|
|
150
|
+
.cometchat-ai-assistant-chat-history__error-state-view-body-title {
|
|
151
|
+
width: 280px;
|
|
152
|
+
color: var(--cometchat-text-color-primary, #141414);
|
|
153
|
+
text-align: center;
|
|
154
|
+
font: var(--cometchat-font-heading3-bold);
|
|
155
|
+
font-style: normal;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.cometchat-ai-assistant-chat-history__empty-state-view-body-description,
|
|
159
|
+
.cometchat-ai-assistant-chat-history__error-state-view-body-description {
|
|
160
|
+
width: 280px;
|
|
161
|
+
color: var(--cometchat-text-color-secondary, #727272);
|
|
162
|
+
text-align: center;
|
|
163
|
+
font: var(--cometchat-font-body-regular);
|
|
164
|
+
font-style: normal;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@keyframes shimmerAnimation {
|
|
168
|
+
0% {
|
|
169
|
+
background-position: -468px 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
100% {
|
|
173
|
+
background-position: 468px 0;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.cometchat-ai-assistant-message-bubble {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
/* gap: 12px; */
|
|
4
|
+
display: flex;
|
|
5
|
+
text-align: left;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cometchat-ai-assistant-message-bubble * {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cometchat-ai-assistant-message-bubble pre {
|
|
19
|
+
/* border: 1px solid var(--cometchat-border-color-default); */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cometchat-ai-assistant-message-bubble>p:not([class]) {
|
|
23
|
+
text-align: left;
|
|
24
|
+
line-height: 1.4 !important;
|
|
25
|
+
color: var(--cometchat-text-color-primary);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cometchat-ai-assistant-message-bubble>ol:not([class]) {
|
|
29
|
+
padding-left: 0px !important;
|
|
30
|
+
margin-top: 0px !important;
|
|
31
|
+
text-align: left !important;
|
|
32
|
+
color: var(--cometchat-text-color-primary);
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cometchat-ai-assistant-message-bubble li:not([class]) {
|
|
37
|
+
text-align: left !important;
|
|
38
|
+
color: var(--cometchat-text-color-primary);
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cometchat-ai-assistant-message-bubble>ol:not([class]) ul:not([class]) {
|
|
43
|
+
padding-left: 20px !important;
|
|
44
|
+
text-align: left !important;
|
|
45
|
+
color: var(--cometchat-text-color-primary);
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cometchat-ai-assistant-message-bubble>ul:not([class]) {
|
|
50
|
+
text-align: left !important;
|
|
51
|
+
color: var(--cometchat-text-color-primary);
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cometchat-ai-assistant-message-bubble__code-block {
|
|
56
|
+
max-height: 300px;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
border: 1px solid var(--cometchat-border-color-default);
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
.cometchat-ai-assistant-message-bubble *:not(pre *) {
|
|
65
|
+
color: var(--cometchat-text-color-primary);
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-family: var(--cometchat-font-family);
|
|
68
|
+
}
|
|
69
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block,.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__code-block *{
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar {
|
|
74
|
+
width: 0px;
|
|
75
|
+
height: 8px;
|
|
76
|
+
background: transparent;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-track {
|
|
80
|
+
background: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cometchat-ai-assistant-message-bubble__code-block::-webkit-scrollbar-thumb {
|
|
84
|
+
background: var(--cometchat-icon-color-secondary);
|
|
85
|
+
border-radius: var(--cometchat-radius-2);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.cometchat-ai-assistant-message-bubble table {
|
|
89
|
+
width: 100%;
|
|
90
|
+
border-collapse: collapse;
|
|
91
|
+
table-layout: auto;
|
|
92
|
+
display: block;
|
|
93
|
+
overflow-x: auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cometchat-ai-assistant-message-bubble th,
|
|
97
|
+
.cometchat-ai-assistant-message-bubble td {
|
|
98
|
+
padding: var(--cometchat-padding-2);
|
|
99
|
+
border: 1px solid var(--cometchat-border-color-light);
|
|
100
|
+
text-align: left;
|
|
101
|
+
word-break: break-word; /* prevents text overflow in cells */
|
|
102
|
+
min-width: 100px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar {
|
|
106
|
+
width: 0px;
|
|
107
|
+
height: 8px;
|
|
108
|
+
background: transparent;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-track {
|
|
112
|
+
background: transparent;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.cometchat-ai-assistant-message-bubble table::-webkit-scrollbar-thumb {
|
|
116
|
+
background: var(--cometchat-icon-color-secondary);
|
|
117
|
+
border-radius: var(--cometchat-radius-2);
|
|
118
|
+
}
|
|
@@ -56,6 +56,22 @@
|
|
|
56
56
|
mask-size: contain;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
|
|
60
|
+
.cometchat-conversations__subtitle-receipts-wait{
|
|
61
|
+
-webkit-mask: url("../../assets/status_sending.svg") center center no-repeat;
|
|
62
|
+
mask: url("../../assets/status_sending.svg") center center no-repeat;
|
|
63
|
+
-webkit-mask-size: contain;
|
|
64
|
+
mask-size: contain;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cometchat-conversations__subtitle-receipts-error{
|
|
68
|
+
-webkit-mask: url("../../assets/error_icon.svg") center center no-repeat;
|
|
69
|
+
mask: url("../../assets/error_icon.svg") center center no-repeat;
|
|
70
|
+
-webkit-mask-size: contain;
|
|
71
|
+
mask-size: contain;
|
|
72
|
+
background-color: var(--cometchat-error-color);
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
.cometchat-conversations__subtitle-receipts-delivered{
|
|
60
76
|
-webkit-mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
|
|
61
77
|
mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
|
|
@@ -493,6 +509,9 @@ background: var(--cometchat-icon-color-secondary, #A1A1A1);
|
|
|
493
509
|
background: var(--cometchat-background-color-01, #FFF);
|
|
494
510
|
|
|
495
511
|
}
|
|
512
|
+
.cometchat-conversations .cometchat-conversations__list-item-agent .cometchat-list-item__title-container {
|
|
513
|
+
max-width: 90%;
|
|
514
|
+
}
|
|
496
515
|
|
|
497
516
|
.cometchat-conversations__shimmer-item {
|
|
498
517
|
width: 100%;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.cometchat-error-view {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
padding: var(--cometchat-padding-4);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
border-radius: var(--cometchat-radius-2);
|
|
9
|
+
border: 1px solid var(--cometchat-border-color-default);
|
|
10
|
+
background: var(--cometchat-error-color-100);
|
|
11
|
+
width: fit-content;
|
|
12
|
+
margin-top: var(--cometchat-margin-2);
|
|
13
|
+
}
|
|
14
|
+
.cometchat-error-view__message {
|
|
15
|
+
font: var(--cometchat-font-caption1-regular);
|
|
16
|
+
text-align: left;
|
|
17
|
+
line-height: 1.4;
|
|
18
|
+
margin: 0;
|
|
19
|
+
word-wrap: break-word;
|
|
20
|
+
hyphens: auto;
|
|
21
|
+
color: var(--cometchat-error-color);
|
|
22
|
+
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/* Styling for buttons with no specific class */
|
|
95
|
-
.cometchat-message-
|
|
95
|
+
.cometchat-message-composer__buttons .cometchat-button {
|
|
96
96
|
width: fit-content;
|
|
97
97
|
background: transparent;
|
|
98
98
|
padding: 0;
|
|
@@ -257,41 +257,41 @@
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/* Send button icon default styling */
|
|
260
|
-
.cometchat-message-
|
|
260
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon {
|
|
261
261
|
background: var(--cometchat-static-white);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
/* Icon styling for buttons with no specific class */
|
|
265
|
-
.cometchat-message-
|
|
265
|
+
.cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon {
|
|
266
266
|
background: var(--cometchat-icon-color-secondary);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
.cometchat-message-
|
|
269
|
+
.cometchat-message-composer__buttons .cometchat-button .cometchat-button__icon:hover {
|
|
270
270
|
background: var(--cometchat-primary-color, #6852D6);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
.cometchat-message-
|
|
273
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__send-button .cometchat-button .cometchat-button__icon:hover {
|
|
274
274
|
background: var(--cometchat-static-white);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/* Active emoji keyboard button icon */
|
|
278
|
-
.cometchat-message-
|
|
278
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__emoji-keyboard-button-active .cometchat-button__icon {
|
|
279
279
|
background: var(--cometchat-primary-color);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
/* Active action sheet button icon */
|
|
283
|
-
.cometchat-message-
|
|
283
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__secondary-button-view-attachment-button-active .cometchat-button__icon {
|
|
284
284
|
background: var(--cometchat-primary-color);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/* Active voice recording button icon */
|
|
288
|
-
.cometchat-message-
|
|
288
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__voice-recording-button-active .cometchat-button__icon {
|
|
289
289
|
background: var(--cometchat-primary-color);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
/* Active stickerkeyboard button icon */
|
|
294
|
-
.cometchat-message-
|
|
294
|
+
.cometchat-message-composer__buttons .cometchat-message-composer__auxilary-button-view-sticker-button-active .cometchat-button__icon {
|
|
295
295
|
background: var(--cometchat-primary-color);
|
|
296
296
|
}
|
|
297
297
|
.cometchat-message-composer__input-mobile{
|
|
@@ -25,10 +25,8 @@
|
|
|
25
25
|
width: 100%;
|
|
26
26
|
text-align: left;
|
|
27
27
|
height: 100%;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: flex-start;
|
|
31
28
|
min-height: 17px;
|
|
29
|
+
display: block;
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
/* Subtitle styling for typing state in the message header */
|
|
@@ -57,7 +55,7 @@
|
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
.cometchat-message-header .cometchat-list-item__trailing-view {
|
|
60
|
-
|
|
58
|
+
width: auto;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
/* Styling for the back button in the message header */
|
|
@@ -144,31 +144,32 @@
|
|
|
144
144
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px) var(--cometchat-padding-2, 8px);
|
|
145
145
|
;
|
|
146
146
|
}
|
|
147
|
-
.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__body-image{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
.cometchat-fullscreen-viewer .cometchat-fullscreen-viewer__body-image {
|
|
148
|
+
max-width: 100%;
|
|
149
|
+
max-height: 84vh;
|
|
150
|
+
object-fit: contain;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.cometchat-message-bubble__audio-call .cometchat-call-bubble .cometchat-call-bubble__body {
|
|
154
154
|
padding: 0;
|
|
155
155
|
}
|
|
156
|
-
.cometchat-message-bubble__thread-view-replies .cometchat-button{
|
|
156
|
+
.cometchat-message-bubble__thread-view-replies .cometchat-button {
|
|
157
157
|
align-items: flex-end;
|
|
158
|
-
|
|
158
|
+
|
|
159
159
|
}
|
|
160
|
-
.cometchat-reactions-info-wrapper
|
|
161
|
-
width:fit-content;
|
|
160
|
+
.cometchat-reactions-info-wrapper>.cometchat {
|
|
161
|
+
width: fit-content;
|
|
162
162
|
}
|
|
163
|
-
.cometchat-message-bubble__thread-view-replies .cometchat-button .cometchat-button__text{
|
|
163
|
+
.cometchat-message-bubble__thread-view-replies .cometchat-button .cometchat-button__text {
|
|
164
164
|
margin-bottom: -2px;
|
|
165
165
|
}
|
|
166
|
-
.cometchat-message-bubble__body-footer-view .cometchat-reactions
|
|
166
|
+
.cometchat-message-bubble__body-footer-view .cometchat-reactions .cometchat {
|
|
167
167
|
width: fit-content;
|
|
168
168
|
}
|
|
169
|
-
.cometchat-reactions
|
|
170
|
-
width: fit-content;
|
|
169
|
+
.cometchat-reactions .cometchat-popover, .cometchat-reactions .cometchat-popover__button{
|
|
170
|
+
width: fit-content;
|
|
171
171
|
}
|
|
172
|
+
|
|
172
173
|
/* Date header inside message list */
|
|
173
174
|
.cometchat-message-list__date-header {
|
|
174
175
|
position: absolute;
|
|
@@ -416,6 +417,20 @@ width: fit-content;
|
|
|
416
417
|
|
|
417
418
|
}
|
|
418
419
|
|
|
420
|
+
.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body {
|
|
421
|
+
border-bottom-left-radius: 0;
|
|
422
|
+
border-bottom-right-radius: 0;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-video-bubble{
|
|
427
|
+
min-width: 240px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.cometchat-message-list__bubble-moderation-disapproved .cometchat-message-bubble__body-content-view .cometchat-image-bubble{
|
|
431
|
+
min-width: 240px;
|
|
432
|
+
}
|
|
433
|
+
|
|
419
434
|
/* Status view for "delivered" receipt inside message bubble */
|
|
420
435
|
.cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {
|
|
421
436
|
-webkit-mask: url("../../assets/status_delivered.svg") center center no-repeat;
|
|
@@ -429,7 +444,7 @@ width: fit-content;
|
|
|
429
444
|
-webkit-mask: url("../../assets/status_read.svg") center center no-repeat;
|
|
430
445
|
-webkit-mask-size: contain;
|
|
431
446
|
background: var(--cometchat-message-seen-color,#56E8A7);
|
|
432
|
-
|
|
447
|
+
|
|
433
448
|
|
|
434
449
|
}
|
|
435
450
|
|
|
@@ -482,7 +497,7 @@ width: fit-content;
|
|
|
482
497
|
border-radius: var(--cometchat-radius-max, 8px);
|
|
483
498
|
background: var(--cometchat-shimmer-gradient-color);
|
|
484
499
|
background-size: 200% 100%;
|
|
485
|
-
animation:
|
|
500
|
+
animation: listLoadingAnimation .8s infinite;
|
|
486
501
|
margin-right: var(--cometchat-margin-2);
|
|
487
502
|
|
|
488
503
|
}
|
|
@@ -515,7 +530,7 @@ width: fit-content;
|
|
|
515
530
|
align-items: center;
|
|
516
531
|
background: var(--cometchat-shimmer-gradient-color);
|
|
517
532
|
background-size: 200% 100%;
|
|
518
|
-
animation:
|
|
533
|
+
animation: listLoadingAnimation .8s infinite;
|
|
519
534
|
border-radius: var(--cometchat-radius-2, 8px);
|
|
520
535
|
}
|
|
521
536
|
|
|
@@ -524,7 +539,7 @@ width: fit-content;
|
|
|
524
539
|
height: 53px;
|
|
525
540
|
background: var(--cometchat-shimmer-gradient-color);
|
|
526
541
|
background-size: 200% 100%;
|
|
527
|
-
animation:
|
|
542
|
+
animation: listLoadingAnimation .8s infinite;
|
|
528
543
|
border-radius: var(--cometchat-radius-2, 8px);
|
|
529
544
|
}
|
|
530
545
|
|
|
@@ -653,7 +668,7 @@ width: fit-content;
|
|
|
653
668
|
}
|
|
654
669
|
|
|
655
670
|
|
|
656
|
-
@keyframes
|
|
671
|
+
@keyframes listLoadingAnimation {
|
|
657
672
|
0% {
|
|
658
673
|
background-position: 200% 0;
|
|
659
674
|
}
|
|
@@ -665,7 +680,7 @@ width: fit-content;
|
|
|
665
680
|
|
|
666
681
|
}
|
|
667
682
|
|
|
668
|
-
|
|
683
|
+
/**
|
|
669
684
|
* Setting transparent background and gap for sticker message bubble
|
|
670
685
|
*/
|
|
671
686
|
.cometchat-message-bubble__body-wrapper .cometchat-message-bubble__sticker-message {
|
|
@@ -709,7 +724,7 @@ width: fit-content;
|
|
|
709
724
|
.cometchat-message-information__popup-wrapper {
|
|
710
725
|
display: flex;
|
|
711
726
|
position: fixed;
|
|
712
|
-
z-index:
|
|
727
|
+
z-index: 3;
|
|
713
728
|
left: 0;
|
|
714
729
|
top: 0;
|
|
715
730
|
width: 100%;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Bottom view for "blocked" messages inside message bubble */
|
|
2
|
+
.cometchat-moderation-status__icon{
|
|
3
|
+
min-width: 16px;
|
|
4
|
+
min-height: 16px;
|
|
5
|
+
-webkit-mask: url("../../assets/message_blocked.svg") center center no-repeat;
|
|
6
|
+
-webkit-mask-size: contain;
|
|
7
|
+
background-color: var(--cometchat-error-color);
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cometchat-moderation-status {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
background-color: var(--cometchat-error-color-100);
|
|
16
|
+
padding: var(--cometchat-padding-1) var(--cometchat-padding-2);
|
|
17
|
+
gap: var(--cometchat-spacing-1, 4px);
|
|
18
|
+
border-radius: 0 0 var(--cometchat-radius-3, 12px) var(--cometchat-radius-3, 12px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cometchat-moderation-status .cometchat-moderation-status__message {
|
|
22
|
+
color: var(--cometchat-error-color, #F44649);
|
|
23
|
+
text-align: left;
|
|
24
|
+
font: var(--cometchat-font-body-regular);
|
|
25
|
+
}
|
|
@@ -231,6 +231,12 @@
|
|
|
231
231
|
-webkit-mask-size: contain;
|
|
232
232
|
mask-size: contain;
|
|
233
233
|
}
|
|
234
|
+
.cometchat-search__conversations-subtitle-receipts-wait{
|
|
235
|
+
-webkit-mask: url("../../assets/status_sending.svg") center center no-repeat;
|
|
236
|
+
mask: url("../../assets/status_sending.svg") center center no-repeat;
|
|
237
|
+
-webkit-mask-size: contain;
|
|
238
|
+
mask-size: contain;
|
|
239
|
+
}
|
|
234
240
|
|
|
235
241
|
.cometchat-search__conversations-subtitle-receipts-delivered {
|
|
236
242
|
-webkit-mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
|
|
@@ -239,6 +245,13 @@
|
|
|
239
245
|
mask-size: contain;
|
|
240
246
|
}
|
|
241
247
|
|
|
248
|
+
.cometchat-search__conversations-subtitle-receipts-error{
|
|
249
|
+
-webkit-mask: url("../../assets/error_icon.svg") center center no-repeat;
|
|
250
|
+
mask: url("../../assets/error_icon.svg") center center no-repeat;
|
|
251
|
+
-webkit-mask-size: contain;
|
|
252
|
+
mask-size: contain;
|
|
253
|
+
background-color: var(--cometchat-error-color);
|
|
254
|
+
}
|
|
242
255
|
|
|
243
256
|
.cometchat-search__conversations-subtitle-receipts-read {
|
|
244
257
|
-webkit-mask: url("../../assets/conversations_read.svg") center center no-repeat;
|