Skip to content

Commit 3355e4d

Browse files
committed
Updated UIKit version to 6.0.0
1 parent 4705355 commit 3355e4d

File tree

134 files changed

+7931
-7693
lines changed

Some content is hidden

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

134 files changed

+7931
-7693
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The CometChat React UI Kit provides a pre-built user interface kit that develope
1212

1313
## 🚀 Explore the Sample App!
1414

15-
Dive straight into our [Sample App](https://github.com/cometchat/cometchat-uikit-react/blob/v5/sample-app/README.md#installation) to see CometChat UI Kit in action! Whether you're building a messaging app or enhancing your existing project, this sample app showcases the full potential of our React UI components.
15+
Dive straight into our [Sample App](https://github.com/cometchat/cometchat-uikit-react/blob/v6/sample-app/README.md#installation) to see CometChat UI Kit in action! Whether you're building a messaging app or enhancing your existing project, this sample app showcases the full potential of our React UI components.
1616

1717
## Prerequisites
1818

@@ -26,8 +26,8 @@ To set up CometChat React UI Kit and utilize CometChat for your chat and calls f
2626
- Register at the [CometChat Dashboard](https://app.cometchat.com/) to create an account.
2727
- After registering, log into your CometChat account and create a new app. Once created, CometChat will generate an Auth Key and App ID for you. Keep these credentials secure as you'll need them later.
2828
- Check the [Key Concepts](https://www.cometchat.com/docs/fundamentals/key-concepts) to understand the basic components of CometChat.
29-
- Refer to the [Integration Steps](https://www.cometchat.com/docs/ui-kit/react/integration) in our documentation to integrate the UI Kit into your React app.
29+
- Refer to the [Integration Steps](https://www.cometchat.com/docs/ui-kit/react/v6/integration) in our documentation to integrate the UI Kit into your React app.
3030

3131
## Help and Support
3232

33-
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](https://app.cometchat.com/).
33+
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/v6/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](https://app.cometchat.com/).

SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Help and Support
22

3-
For issues integrating our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/).
3+
For issues integrating our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/v6/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/).

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometchat/chat-uikit-react",
3-
"version": "5.0.3",
3+
"version": "6.0.0",
44
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
55
"author": "CometChat",
66
"dependencies": {
@@ -41,7 +41,7 @@
4141
"webpack-dev-server": "^4.7.4"
4242
},
4343
"homepage": "https://www.cometchat.com",
44-
"repository": "https://github.com/cometchat/cometchat-uikit-react",
44+
"repository": "https://github.com/cometchat/cometchat-uikit-react/tree/v6",
4545
"main": "dist/index.js",
4646
"types": "dist/index.d.ts",
4747
"keywords": [

sample-app/CHANGELOG.md

Lines changed: 7 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,17 @@
1-
## [5.0.3] - 13-02-2025
1+
## [6.0.0] - 14-02-2025
22

33
## New
4-
- None
4+
- Added support for new languages: Italian, Japanese, Korean, Turkish, and Dutch.
5+
- Added date localization support using `CometChatLocalize` for consistent datetime formatting.
56

67
## Enhancements
7-
- None
8-
9-
## Fixes
10-
- Fixed a visibility issue where the `Unblock` button was displayed to the logged-in user even when they were blocked by the other user.
11-
12-
## [5.0.2] - 30-01-2025
13-
14-
## New
15-
- None
16-
17-
## Enhancements
18-
- None
8+
- Refactored localization handling to align with the updated `CometChatLocalization` class.
199

2010
## Fixes
21-
- Fixed an issue where clicking on a mentioned user did not redirect to their message screen.
22-
- Fixed an issue where a newly added group member's avatar was not displayed in the Group Member View.
23-
- Resolved an issue where the group details component re-rendered unexpectedly after each operation.
24-
- Corrected the position of the profile info popup in mobile view to improve the user experience on smaller screens.
25-
26-
## [5.0.1] - 13-01-2025
27-
28-
#### New
29-
- None
30-
31-
#### Enhancements
3211
- None
3312

34-
#### Fixes
35-
- Removed unused dependencies to improve application performance and reduce build size.
36-
- Adjusted the minimum width of the sidebar and tabs to ensure proper layout rendering when the sample app is displayed within fixed-width containers.
37-
- Resolved a flickering issue on the **Banned Member** page when clicking the "Banned Member" option, ensuring a smoother user experience.
38-
39-
## [5.0.0] - 03-01-2025
40-
41-
### New
13+
## Removals
4214
- None
4315

44-
### Enhancements
45-
- Updated CometChat React UI Kit version to v5.0.0
46-
47-
### Fixes
48-
- Fixed an issue where the empty state in the Group Members component was not fully visible.
49-
- Fixed an issue where the Transfer Ownership prompt incorrectly appeared when attempting to leave a group with only one member.
50-
- Fixed an issue where the selected call log was not highlighted as active in the call logs list.
51-
- Fixed an issue where the unban option was not visible in the Banned Members View.
52-
- Fixed an issue where the avatar in Outgoing call was not proper when a call is initiated via Call log detail.
53-
54-
## [5.0.0-beta2] - 10-12-2024
55-
56-
### New
57-
- Introduced a feature to seamlessly open a user's conversation by clicking on their mention.
58-
59-
### Enhancements
60-
- Updated the incoming call icon in Call History component.
61-
- Refined the group listing in new conversations to display only the groups the logged-in user is a member of.
62-
63-
### Fixes
64-
- Resolved an issue where the Details component did not open with the correct width in iPad browsers.
65-
- Fixed an issue where unblocking a user from the composer did not update the "Unblock User" menu to "Block User" in the user details.
16+
## Deprecations
17+
- None

sample-app/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# React Sample App by CometChat
66

7-
This is a reference application showcasing the integration of [CometChat's React UI Kit](https://www.cometchat.com/docs/ui-kit/react/overview) within a React framework. It provides developers with examples of implementing real-time messaging and voice and video calling features in their own React-based applications.
7+
This is a reference application showcasing the integration of [CometChat's React UI Kit](https://www.cometchat.com/docs/ui-kit/react/v6/overview) within a React framework. It provides developers with examples of implementing real-time messaging and voice and video calling features in their own React-based applications.
88

99
<div style="display: flex; align-items: center; justify-content: center">
1010
<img src="../screenshots/sample_app_overview.png" />
@@ -27,23 +27,26 @@ This is a reference application showcasing the integration of [CometChat's React
2727
git clone https://github.com/cometchat/cometchat-uikit-react.git
2828
```
2929

30-
2. Navigate to the cloned directory:
30+
2. Checkout v6 branch:
3131
```sh
32-
cd cometchat-uikit-react/sample-app
32+
git checkout v6
3333
```
3434

35-
3. Install dependencies:
35+
3. Navigate to the cloned directory:
36+
```sh
37+
cd cometchat-uikit-react/sample-app
38+
```
39+
4. Install dependencies:
3640
```sh
3741
npm install
3842
```
39-
40-
4. `[Optional]` Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [sample-app/src/AppConstants.ts](https://github.com/cometchat/cometchat-sample-app-react/blob/v5/sample-app/src/AppConstants.ts) file:https://github.com/cometchat/cometchat-uikit-react/blob/2dba5e2e781db6d2f20c59803ff7f8cef4e7c187/sample-app/src/AppConstants.ts#L1-L5
43+
5. `[Optional]` Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [sample-app/src/AppConstants.ts](https://github.com/cometchat/cometchat-sample-app-react/blob/v6/sample-app/src/AppConstants.ts) file:https://github.com/cometchat/cometchat-uikit-react/blob/2dba5e2e781db6d2f20c59803ff7f8cef4e7c187/sample-app/src/AppConstants.ts#L1-L5
4144

42-
5. Run the project locally to see all CometChat features in action:
45+
6. Run the project locally to see all CometChat features in action:
4346
```
4447
npm start
4548
```
4649

4750
## Help and Support
4851

49-
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/).
52+
For issues running the project or integrating with our UI Kits, consult our [documentation](https://www.cometchat.com/docs/ui-kit/react/v6/integration) or create a [support ticket](https://help.cometchat.com/hc/en-us) or seek real-time support via the [CometChat Dashboard](http://app.cometchat.com/).

sample-app/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "sample-app",
3-
"version": "5.0.3",
4-
"description": "React App made using CometChat React v5 UI Kit.",
3+
"version": "6.0.0",
4+
"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",
99
"@cometchat/chat-sdk-javascript": "^4.0.10",
10-
"@cometchat/chat-uikit-react": "~5.0.3",
10+
"@cometchat/chat-uikit-react": "~6.0.0",
1111
"react": "18.2.0",
1212
"react-dom": "18.2.0",
1313
"react-router-dom": "6.14.2",
@@ -66,7 +66,7 @@
6666
]
6767
},
6868
"homepage": "https://www.cometchat.com",
69-
"repository": "https://github.com/cometchat/cometchat-uikit-react",
69+
"repository": "https://github.com/cometchat/cometchat-uikit-react/tree/v6",
7070
"main": "src/index.tsx",
7171
"keywords": [
7272
"CometChat",
-48 Bytes
Loading

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

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import SearchIcon from "../../assets/search.svg";
77
import SpinnerIcon from "../../assets/Spinner.svg";
88
import backbutton from "../../assets/arrow_back.svg"
99
import closeButton from "../../assets/close2x.svg";
10-
import { CometChatButton, CometChatGroupEvents, CometChatOption, CometChatUIKitConstants, CometChatUIKitUtility, CometChatUsers, SelectionMode, localize, useCometChatErrorHandler, useRefSync } from "@cometchat/chat-uikit-react";
10+
import { CometChatButton, CometChatGroupEvents, CometChatOption, CometChatUIKitConstants, CometChatUIKitUtility, CometChatUsers, SelectionMode, getLocalizedString, useCometChatErrorHandler, useRefSync } from "@cometchat/chat-uikit-react";
1111

1212
interface IAddMembersProps {
1313
/**
@@ -29,12 +29,6 @@ interface IAddMembersProps {
2929
* Function to call when the back button is clicked
3030
*/
3131
onBack?: () => void,
32-
/**
33-
* Title of the component
34-
*
35-
* @defaultValue `localize("ADD_MEMBERS")`
36-
*/
37-
title?: string,
3832
/**
3933
* Hide the search bar
4034
*
@@ -47,12 +41,6 @@ interface IAddMembersProps {
4741
* @defaultValue `./assets/search.svg`
4842
*/
4943
searchIconURL?: string,
50-
/**
51-
* Text to be displayed when the search input has no value
52-
*
53-
* @defaultValue `localize("SEARCH")`
54-
*/
55-
searchPlaceholderText?: string,
5644
/**
5745
* Show alphabetical header
5846
*
@@ -78,22 +66,11 @@ interface IAddMembersProps {
7866
* Custom view for the loading state of the component
7967
*/
8068
loadingStateView?: JSX.Element,
81-
/**
82-
* Text to display in the default empty view
83-
*
84-
* @defaultValue `localize("NO_USERS_FOUND")`
85-
*/
86-
emptyStateText?: string,
69+
8770
/**
8871
* Custom view for the empty state of the component
8972
*/
9073
emptyStateView?: JSX.Element,
91-
/**
92-
* Text to display in the default error view
93-
*
94-
* @defaultValue `localize("SOMETHING_WRONG")`
95-
*/
96-
errorStateText?: string,
9774
/**
9875
* Custom view for the error state of the component
9976
*/
@@ -193,7 +170,7 @@ interface IAddMembersProps {
193170
/**
194171
* Text to display for the default add button
195172
*
196-
* @defaultValue `localize("ADD_MEMBERS")`
173+
* @defaultValue `getLocalizedString("add_members")`
197174
*/
198175
buttonText?: string,
199176
/**
@@ -217,26 +194,16 @@ interface IAddMembersProps {
217194
*/
218195
export function CometChatAddMembers(props: IAddMembersProps) {
219196
const {
220-
backButtonIconURL = backbutton,
221197
showBackButton = false,
222198
onBack,
223-
title = localize("ADD_MEMBERS"),
224199
hideSearch = false,
225-
searchIconURL = SearchIcon,
226-
searchPlaceholderText = localize("SEARCH"),
227200
showSectionHeader = false,
228201
sectionHeaderField = "getName",
229-
loadingIconURL = SpinnerIcon,
230202
loadingStateView,
231-
emptyStateText = localize("NO_USERS_FOUND"),
232203
emptyStateView,
233-
errorStateText = localize("SOMETHING_WRONG"),
234204
errorStateView,
235205
hideError = false,
236-
disableUsersPresence = false,
237-
hideSeparator = false,
238206
onError,
239-
menus,
240207
options,
241208
selectionMode = SelectionMode.multiple,
242209
onSelect,
@@ -246,10 +213,7 @@ export function CometChatAddMembers(props: IAddMembersProps) {
246213
subtitleView,
247214
group,
248215
onAddMembersButtonClick = null,
249-
buttonText = localize("ADD_MEMBERS"),
250-
closeButtonIconURL = closeButton,
251-
onClose,
252-
statusIndicatorStyle,
216+
buttonText = getLocalizedString("add_members"),
253217
} = props;
254218

255219
const membersToAddRef = useRef<CometChat.GroupMember[]>([]);
@@ -472,7 +436,7 @@ export function CometChatAddMembers(props: IAddMembersProps) {
472436

473437
/>
474438
{isError ? <div className="cometchat-add-members_error-view">
475-
{localize("SOMETHING_WRONG")}
439+
{getLocalizedString("member_error_subtitle")}
476440
</div> : null}
477441
{getAddMembersBtnView()}
478442
{getBackBtnView()}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CometChatButton, localize } from "@cometchat/chat-uikit-react";
1+
import { CometChatButton, getLocalizedString } from "@cometchat/chat-uikit-react";
22
import "../../styles/CometChatAlertPopup/CometChatAlertPopup.css";
33

44
export const CometChatAlertPopup = (props: { onConfirmClick?: () => void, title?: string, description?: string }) => {
@@ -22,7 +22,7 @@ export const CometChatAlertPopup = (props: { onConfirmClick?: () => void, title?
2222

2323
<div className="cometchat-alert-popup__button-wrapper">
2424
<CometChatButton
25-
text={localize("UNDERSTOOD")}
25+
text={getLocalizedString("understood")}
2626
onClick={onConfirmClick}
2727
/>
2828
</div>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
22
import { CometChat } from "@cometchat/chat-sdk-javascript";
33
import unbanIconURL from "../../assets/close.svg";
44
import "../../styles/CometChatBannedMembers/CometChatBannedMembers.css";
5-
import { CometChatButton, CometChatGroupEvents, CometChatList, CometChatListItem, CometChatUIKitLoginListener, IGroupMemberUnBanned, States, localize } from "@cometchat/chat-uikit-react";
5+
import { CometChatButton, CometChatGroupEvents, CometChatList, CometChatListItem, CometChatUIKitLoginListener, IGroupMemberUnBanned, States, getLocalizedString } from "@cometchat/chat-uikit-react";
66

77
interface bannedMembersProp {
88
group: CometChat.Group;
@@ -56,7 +56,7 @@ export const CometChatBannedMembers = (props: bannedMembersProp) => {
5656
<CometChatButton
5757
iconURL={unbanIconURL}
5858
onClick={() => unbanMember(bannedMember)}
59-
hoverText={localize('UNBAN')}
59+
hoverText={getLocalizedString('unban')}
6060
/>
6161
);
6262
}
@@ -196,7 +196,7 @@ export const CometChatBannedMembers = (props: bannedMembersProp) => {
196196
<div className="cometchat-banned-members__empty">
197197
<div className="cometchat-banned-members__empty-icon" />
198198
<div className="cometchat-banned-members__empty-text">
199-
{localize("NO_BANNED_MEMBERS")}
199+
{getLocalizedString("no_banned_members")}
200200
</div>
201201
</div>
202202
:

0 commit comments

Comments
 (0)