Skip to content

Commit 579bfc7

Browse files
Updated UIKit v.6.2.1
1 parent 8d34667 commit 579bfc7

File tree

64 files changed

+1674
-761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1674
-761
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "@cometchat/chat-uikit-react",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
55
"author": "CometChat",
66
"exports": {
77
".": "./dist/index.js",
88
"./css-variables.css": "./dist/styles/css-variables.css"
99
},
1010
"dependencies": {
11-
"@cometchat/chat-sdk-javascript": "^4.1.0",
11+
"@cometchat/chat-sdk-javascript": "^4.1.1",
1212
"@rollup/plugin-json": "^6.1.0",
1313
"rxjs": "^7.8.1",
1414
"react-markdown": "^10.1.0",
1515
"@types/react-syntax-highlighter": "^15.5.13",
16-
"react-syntax-highlighter": "^15.6.1"
16+
"react-syntax-highlighter": "^15.6.1",
17+
"remark-gfm": "^4.0.1"
1718
},
1819
"scripts": {
1920
"test": "echo \"Error: no test specified\" && exit 1",

sample-app/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [6.2.1] - 22-08-2025
2+
3+
## New
4+
- None
5+
6+
## Enhancements
7+
- None
8+
9+
## Fixes
10+
- Resolved a bug where the search input remained active even when the **Message Information** modal was open.
11+
- User detail shimmer was missing in the call log detail view.
12+
- Fixed an issue where the **Messages Search** component did not close if its conversation was deleted from the details page.
13+
14+
## Removals
15+
- None
16+
117
## [6.2.0] - 14-08-2025
218

319
## New

sample-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "sample-app",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"description": "React App made using CometChat React v6 UI Kit.",
55
"author": "CometChat",
66
"private": true,
77
"dependencies": {
88
"@cometchat/calls-sdk-javascript": "^4.0.11",
9-
"@cometchat/chat-sdk-javascript": "^4.1.0",
10-
"@cometchat/chat-uikit-react": "~6.2.0",
9+
"@cometchat/chat-sdk-javascript": "^4.1.1",
10+
"@cometchat/chat-uikit-react": "~6.2.1",
1111
"react": "18.2.0",
1212
"react-dom": "18.2.0",
1313
"react-router-dom": "6.14.2",

sample-app/src/components/CometChatCallLog/CometChatCallLogDetails.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const CometChatCallDetails = (props: { selectedItem: any, onBack?: () =>
1313
const [activeTab, setActiveTab] = useState("Participants");
1414
const [user, setUser] = useState<CometChat.User>();
1515
const [subtitleText, setSubtitleText] = useState<string>();
16-
1716
function verifyCallUser(call: any, loggedInUser: CometChat.User) {
1817
if (call.getInitiator().getUid() === loggedInUser.getUid()) {
1918
return call.getReceiver();
@@ -70,16 +69,37 @@ export const CometChatCallDetails = (props: { selectedItem: any, onBack?: () =>
7069
</div>
7170
}
7271

72+
const getLoadingView = () => {
73+
return (
74+
<div className='cometchat-call-logs-details__header__shimmer__shimmer'>
75+
{[...Array(1)].map((_, index) => (
76+
<div key={index} className='cometchat-call-logs-details__header__shimmer-item'>
77+
<div className='cometchat-call-logs-details__header__shimmer-item-avatar'></div>
78+
<div className='cometchat-call-logs-details__header__shimmer-item-body'>
79+
<div className='cometchat-call-logs-details__header__shimmer-item-body-title-wrapper'>
80+
<div className='cometchat-call-logs-details__header__shimmer-item-body-title'></div>
81+
<div className='cometchat-call-logs-details__shimmer-item-body-subtitle'></div>
82+
</div>
83+
84+
<div className='cometchat-call-logs-details__header__shimmer-item-body-tail'></div>
85+
<div className='cometchat-call-logs-details__header__shimmer-item-body-tail'></div>
86+
</div>
87+
</div>
88+
))}
89+
</div>
90+
);
91+
};
92+
7393
return (
7494
<div className="cometchat-call-log-details">
7595
<div className="cometchat-call-log-details__header">
7696
<div className="cometchat-call-log-details__header-back" onClick={onBack} />
7797
{getLocalizedString("call_details")}
7898
</div>
7999
<div className="cometchat-call-log-details__call-log-item">
80-
<CometChatListItem avatarName={user?.getName()}
100+
{user ? <CometChatListItem avatarName={user?.getName()}
81101
avatarURL={user?.getAvatar()}
82-
title={user?.getName() || ""} subtitleView={getSubtitleView()} trailingView={getTrailingView()}/>
102+
title={user?.getName() || ""} subtitleView={getSubtitleView()} trailingView={getTrailingView()}/>: getLoadingView()}
83103
</div>
84104
<CometChatCallDetailsInfo call={selectedItem} />
85105
<div className="cometchat-call-log-details__tabs">

sample-app/src/components/CometChatHome/CometChatHome.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function CometChatHome(props: { theme?: string }) {
593593

594594
const updateGroupDetails = (eventGroup: CometChat.Group) => {
595595
if (eventGroup.getGuid() === group?.getGuid()) {
596-
group.setMembersCount(eventGroup.getMembersCount());
596+
group.setMembersCount(eventGroup.getMembersCount());
597597
group.setScope(eventGroup.getScope())
598598
group.setOwner(eventGroup.getOwner())
599599
setGroup(group);
@@ -658,7 +658,7 @@ function CometChatHome(props: { theme?: string }) {
658658
}, [loggedInUser, attachSDKGroupListenerForDetails]);
659659

660660
const onBack = () => {
661-
setAppState({ type: "updateShowMessagesSearch", payload: false })
661+
setAppState({ type: "updateShowMessagesSearch", payload: false });
662662
setAppState({ type: 'updateSideComponentTop', payload: null });
663663
activeSideComponentRef.current = appState.sideComponent.type;
664664

@@ -1410,7 +1410,7 @@ function CometChatHome(props: { theme?: string }) {
14101410
setAppState({ type: 'updateThreadSearchMessage', payload: undefined });
14111411
setAppState({ type: 'updateThreadedMessage', payload: undefined });
14121412
setAppState({ type: 'updateGoToMessageId', payload: undefined });
1413-
setAppState({ type: "updateShowMessagesSearch", payload: false })
1413+
setAppState({ type: "updateShowMessagesSearch", payload: false });
14141414
setShowNewChat(false);
14151415
if (type === "updateSelectedItemGroup" && !(e as CometChat.Group).getHasJoined()) {
14161416
if ((e as CometChat.Group).getType() === CometChatUIKitConstants.GroupTypes.public) {
@@ -1469,6 +1469,8 @@ function CometChatHome(props: { theme?: string }) {
14691469
setAppState({ type: "updateSelectedItem", payload: undefined });
14701470
}
14711471
}
1472+
setAppState({ type: "updateShowMessagesSearch", payload: false });
1473+
setAppState({ type: "updateSideComponent", payload: { visible: false, type: "" } });
14721474
})
14731475

14741476
const ccOpenChat = CometChatUIEvents.ccOpenChat.subscribe((item) => {
@@ -1592,17 +1594,17 @@ function CometChatHome(props: { theme?: string }) {
15921594
}, [appState.sideComponent, appState.showMessagesSearch, appState.sideComponentTop, appState.threadSearchMessage]);
15931595

15941596
const openSearchComponent = () => {
1595-
setAppState({ type: "updateShowConversationsSearch", payload: true })
1597+
setAppState({ type: "updateShowConversationsSearch", payload: true });
15961598
}
15971599
const closeSearch = () => {
1598-
setAppState({ type: "updateShowConversationsSearch", payload: false })
1600+
setAppState({ type: "updateShowConversationsSearch", payload: false });
15991601
}
16001602
const resetSideComponent = (conversationId:string) => {
16011603
if(selectedItem && selectedItem instanceof CometChat.Conversation && (selectedItem as CometChat.Conversation).getConversationId() !== conversationId){
16021604
setAppState({ type: "updateSideComponent", payload: { visible: false, type: "" } });
16031605
setAppState({ type: 'updateThreadSearchMessage', payload: undefined });
16041606
setAppState({ type: 'updateThreadedMessage', payload: undefined });
1605-
setAppState({ type: "updateShowMessagesSearch", payload: false })
1607+
setAppState({ type: "updateShowMessagesSearch", payload: false });
16061608
activeSideComponentRef.current = "";
16071609
}
16081610

@@ -1699,7 +1701,7 @@ function CometChatHome(props: { theme?: string }) {
16991701
}}
17001702
onGroupCreated={(group) => {
17011703
setAppState({ type: "updateSideComponent", payload: { visible: false, type: "" } })
1702-
setSelectedItem(group)
1704+
setSelectedItem(group);
17031705
}
17041706
}
17051707

sample-app/src/metaInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const metaInfo = {
22
name: "sample-app",
3-
version: "6.2.0",
3+
version: "6.2.1",
44
type: "sample",
55
platform: "React",
66
};

sample-app/src/styles/CometChatCallLog/CometChatCallLogDetails.css

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,89 @@
176176
.cometchat-call-log-details__header-back {
177177
display: none;
178178
}
179-
}
179+
}
180+
181+
.cometchat-call-logs-details__header__shimmer {
182+
width: 100%;
183+
height: 100%;
184+
background: var(--cometchat-background-color-01, #FFF);
185+
186+
}
187+
188+
.cometchat-call-logs-details__header__shimmer-item {
189+
width: 100%;
190+
height: 68px;
191+
display: flex;
192+
min-width: 240px;
193+
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
194+
align-items: center;
195+
gap: 12px;
196+
}
197+
198+
.cometchat-call-logs-details__header__shimmer-item-avatar {
199+
display: flex;
200+
flex-shrink: 0;
201+
width: 60px;
202+
height: 60px;
203+
margin-left: -4px;
204+
border-radius: var(--cometchat-radius-max,1000px);
205+
background: var(
206+
--cometchat-shimmer-gradient-color,
207+
linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
208+
);
209+
}
210+
211+
.cometchat-call-logs-details__header__shimmer-item-body {
212+
display: flex;
213+
width: 100%;
214+
height: 100%;
215+
align-items: center;
216+
217+
gap: var(--cometchat-padding-2, 8px);
218+
}
219+
220+
.cometchat-call-logs-details__header__shimmer-item-body-title-wrapper {
221+
width: 100%;
222+
height: 100%;
223+
display: flex;
224+
flex-direction: column;
225+
gap: 10px;
226+
}
227+
228+
.cometchat-call-logs-details__header__shimmer-item-body-title {
229+
width: 50%;
230+
height: 22px;
231+
flex-shrink: 0;
232+
border-radius: var(--cometchat-radius-2, 8px);
233+
background: var(
234+
--cometchat-shimmer-gradient-color,
235+
linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
236+
);
237+
animation: shimmerAnimation 1.5s infinite linear;
238+
239+
}
240+
241+
.cometchat-call-logs-details__shimmer-item-body-subtitle {
242+
width: 10%;
243+
height: 12px;
244+
flex-shrink: 0;
245+
border-radius: var(--cometchat-radius-2, 8px);
246+
background: var(
247+
--cometchat-shimmer-gradient-color,
248+
linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
249+
);
250+
animation: shimmerAnimation 1.5s infinite linear;
251+
252+
}
253+
254+
.cometchat-call-logs-details__header__shimmer-item-body-tail {
255+
width: 80px;
256+
height: 40px;
257+
min-height: 32px;
258+
border-radius: var(--cometchat-radius-2, 8px);
259+
background: var(
260+
--cometchat-shimmer-gradient-color,
261+
linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
262+
);
263+
animation: shimmerAnimation 1.5s infinite linear;
264+
}

src/CometChatUIKit/CometChatUIKit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CometChatUIKit {
100100
return new Promise((resolve, reject) => {
101101
window.CometChatUiKit = {
102102
name: "@cometchat/chat-uikit-react",
103-
version: "6.2.0",
103+
version: "6.2.1",
104104
};
105105
CometChat.init(uiKitSettings?.appId, appSettings).then(() => {
106106
CometChat.getLoggedinUser().then((user: CometChat.User | null) => {

src/assets/message_blocked.svg

Lines changed: 8 additions & 0 deletions
Loading

src/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
22
import ReactMarkdown from 'react-markdown';
33
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
44
import { oneDark, oneLight } from 'react-syntax-highlighter/dist/esm/styles/prism';
5+
import remarkGfm from 'remark-gfm';
56

67
interface CometChatAIAssistantMessageBubbleProps {
78
message?: CometChat.AIAssistantMessage
@@ -33,8 +34,7 @@ const CometChatAIAssistantMessageBubble: React.FC<CometChatAIAssistantMessageBub
3334
className='cometchat-ai-assistant-message-bubble'
3435
>
3536
<ReactMarkdown
36-
37-
37+
remarkPlugins={[remarkGfm]}
3838
children={message?.getAssistantMessageData()?.getText() || ''}
3939
components={{
4040
code({ node, className, children, ...props }: any) {

0 commit comments

Comments
 (0)