@cometchat/chat-uikit-react 6.3.6 → 6.3.8
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/mark_unread.svg +3 -0
- package/dist/index.d.ts +32 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatConversations.css +2 -2
- package/dist/styles/CometChatEditPreview.css +2 -0
- package/dist/styles/CometChatMessageBubble.css +12 -0
- package/dist/styles/CometChatMessageList.css +21 -0
- package/dist/styles/CometChatModerationView.css +1 -0
- package/dist/styles/CometChatThreadHeader.css +4 -0
- package/dist/styles/CometChatUsers.css +153 -0
- package/dist/styles/StickersKeyboard.css +1 -1
- package/dist/styles/components/CometChatConversations.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +2 -0
- package/dist/styles/components/CometChatMessageBubble.css +12 -0
- package/dist/styles/components/CometChatMessageList.css +21 -0
- package/dist/styles/components/CometChatModerationView.css +1 -0
- package/dist/styles/components/CometChatThreadHeader.css +4 -0
- package/dist/styles/components/CometChatUsers.css +153 -0
- package/dist/styles/components/StickersKeyboard.css +1 -1
- package/dist/types/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +4 -1
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +2 -0
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +6 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +11 -1
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +6 -0
- package/dist/types/components/CometChatSearch/useCometChatSearchConversationsList.d.ts +6 -0
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +10 -0
- package/dist/types/constants/CometChatUIKitConstants.d.ts +1 -0
- package/dist/types/events/CometChatConversationEvents.d.ts +2 -0
- package/dist/types/utils/MessageUtils.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +2 -0
- package/package.json +2 -2
|
@@ -161,6 +161,16 @@ export interface UsersProps {
|
|
|
161
161
|
* @defaultValue `false`
|
|
162
162
|
*/
|
|
163
163
|
showScrollbar?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Shows a preview of selected users when selectionMode is multiple.
|
|
166
|
+
*
|
|
167
|
+
* @remarks
|
|
168
|
+
* When enabled, displays a preview section with chips showing selected users.
|
|
169
|
+
* Each chip displays avatar, name, and a close button to remove the user.
|
|
170
|
+
*
|
|
171
|
+
* @defaultValue `false`
|
|
172
|
+
*/
|
|
173
|
+
showSelectedUsersPreview?: boolean;
|
|
164
174
|
}
|
|
165
175
|
type State = {
|
|
166
176
|
searchText: string;
|
|
@@ -59,6 +59,7 @@ export declare class CometChatUIKitConstants {
|
|
|
59
59
|
translateMessage: "translate";
|
|
60
60
|
reactToMessage: "react";
|
|
61
61
|
messageInformation: "messageInformation";
|
|
62
|
+
markAsUnread: "markAsUnread";
|
|
62
63
|
flagMessage: "flagMessage";
|
|
63
64
|
copyMessage: "copy";
|
|
64
65
|
shareMessage: "share";
|
|
@@ -4,6 +4,8 @@ import { Subject } from 'rxjs';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class CometChatConversationEvents {
|
|
6
6
|
static ccConversationDeleted: Subject<CometChat.Conversation>;
|
|
7
|
+
static ccUpdateConversation: Subject<CometChat.Conversation>;
|
|
8
|
+
static ccMarkConversationAsRead: Subject<CometChat.Conversation>;
|
|
7
9
|
/**
|
|
8
10
|
* Publishes a conversation event.
|
|
9
11
|
* @param {Subject<CometChat.Conversation>} event - The event to publish.
|
|
@@ -46,7 +46,7 @@ export declare class MessageUtils {
|
|
|
46
46
|
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble (left or right).
|
|
47
47
|
* @returns {JSX.Element} - The message bubble component.
|
|
48
48
|
*/
|
|
49
|
-
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[]): any;
|
|
49
|
+
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[], replyView?: JSX.Element | null): any;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @param {(CometChat.User | CometChat.GroupMember | any)} user
|
|
@@ -25,6 +25,7 @@ export interface additionalParamsOptions {
|
|
|
25
25
|
hideDeleteMessageOption?: boolean;
|
|
26
26
|
hideMessagePrivatelyOption?: boolean;
|
|
27
27
|
hideCopyMessageOption?: boolean;
|
|
28
|
+
hideMarkAsUnreadOption?: boolean;
|
|
28
29
|
hideMessageInfoOption?: boolean;
|
|
29
30
|
hideFlagMessageOption?: boolean;
|
|
30
31
|
}
|
|
@@ -37,6 +38,7 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
37
38
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
38
39
|
getCopyOption(): CometChatActionsIcon;
|
|
39
40
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
41
|
+
getMarkAsUnreadOption(): CometChatActionsIcon;
|
|
40
42
|
getReportOption(): CometChatActionsIcon;
|
|
41
43
|
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
42
44
|
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.8",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"exports": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@cometchat/chat-sdk-javascript": "^4.1.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.1.6",
|
|
12
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
13
13
|
"rxjs": "^7.8.1",
|
|
14
14
|
"react-markdown": "^10.1.0",
|