@cometchat/chat-uikit-react 4.3.35 → 4.3.37
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/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/CometChatConversations/index.d.ts +3 -0
- package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +3 -1
- package/dist/types/CometChatMessageList/style.d.ts +3 -3
- package/dist/types/Shared/Utils/UtilityFunction.d.ts +6 -0
- package/package.json +3 -3
|
@@ -276,6 +276,9 @@ interface IConversationsProps {
|
|
|
276
276
|
textFormatters?: CometChatTextFormatter[];
|
|
277
277
|
}
|
|
278
278
|
export type Action = {
|
|
279
|
+
type: "addConversationOfTheGroupAtTheTop";
|
|
280
|
+
conversation: CometChat.Conversation;
|
|
281
|
+
} | {
|
|
279
282
|
type: "appendConversations";
|
|
280
283
|
conversations: CometChat.Conversation[];
|
|
281
284
|
removeOldConversation?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@cometchat/uikit-elements";
|
|
2
2
|
import { AvatarStyle, BackdropStyle, DateStyle, EmojiKeyboardStyle } from "@cometchat/uikit-elements";
|
|
3
3
|
import { CometChatMessageTemplate, DatePatterns, MessageListAlignment, TimestampAlignment } from "@cometchat/uikit-resources";
|
|
4
|
-
import { CometChatTextFormatter, MessageInformationConfiguration, MessageListStyle, ReactionsConfiguration } from "@cometchat/uikit-shared";
|
|
4
|
+
import { CometChatTextFormatter, MessageInformationConfiguration, MessageListStyle, NewMessageIndicatorStyle, ReactionsConfiguration } from "@cometchat/uikit-shared";
|
|
5
5
|
interface IMessageListProps {
|
|
6
6
|
parentMessageId?: number;
|
|
7
7
|
user?: CometChat.User;
|
|
@@ -35,6 +35,8 @@ interface IMessageListProps {
|
|
|
35
35
|
templates?: CometChatMessageTemplate[];
|
|
36
36
|
messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
|
|
37
37
|
newMessageIndicatorText?: string;
|
|
38
|
+
newMessageIndicatorIconUrl?: string;
|
|
39
|
+
newMessageIndicatorStyle?: NewMessageIndicatorStyle;
|
|
38
40
|
scrollToBottomOnNewMessages?: boolean;
|
|
39
41
|
thresholdValue?: number;
|
|
40
42
|
onThreadRepliesClick?: Function;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AvatarStyle, DateStyle, LabelStyle, ListItemStyle, LoaderStyle, ReceiptStyle } from "@cometchat/uikit-elements";
|
|
2
2
|
import { CometChatTheme, MessageBubbleAlignment, MessageListAlignment } from "@cometchat/uikit-resources";
|
|
3
|
-
import { BaseStyle, ListStyle, MessageListStyle, ReactionInfoConfiguration, ReactionInfoStyle, ReactionListStyle, ReactionsStyle } from "@cometchat/uikit-shared";
|
|
3
|
+
import { BaseStyle, ListStyle, MessageListStyle, NewMessageIndicatorStyle, ReactionInfoConfiguration, ReactionInfoStyle, ReactionListStyle, ReactionsStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { CSSProperties } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* Generates the style object for the new unread-messages view, visible when the user is not at the bottom and receives a new message
|
|
7
7
|
*
|
|
8
8
|
* @returns {CSSProperties}
|
|
9
9
|
*/
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const newMessagesIndicatorStyle: () => CSSProperties;
|
|
11
11
|
/**
|
|
12
12
|
* Generates the style object for the custom header view, visible on the top of the message list
|
|
13
13
|
*
|
|
@@ -52,7 +52,7 @@ export declare const messageThreadViewStyle: (message: CometChat.BaseMessage, th
|
|
|
52
52
|
* @param {CometChatTheme} theme
|
|
53
53
|
* @returns {CSSProperties}
|
|
54
54
|
*/
|
|
55
|
-
export declare const newMessageTextStyleStyle: (theme: CometChatTheme) => CSSProperties;
|
|
55
|
+
export declare const newMessageTextStyleStyle: (theme: CometChatTheme, newMessageIndicatorStyle?: NewMessageIndicatorStyle) => CSSProperties;
|
|
56
56
|
/**
|
|
57
57
|
* Default style object for CometChatMessageBubble component which renders all types of supported message types.
|
|
58
58
|
*
|
|
@@ -1 +1,7 @@
|
|
|
1
1
|
export declare function isMobileDevice(): boolean;
|
|
2
|
+
/**
|
|
3
|
+
* @function shouldShowCustomMimeTypes
|
|
4
|
+
* @description Returns true if the device is running either iOS (iPhone, iPad, iPod) or macOS.
|
|
5
|
+
* @returns {boolean} True if the device is an Apple device (iOS or macOS), false otherwise.
|
|
6
|
+
*/
|
|
7
|
+
export declare const shouldShowCustomMimeTypes: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.37",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@cometchat/chat-sdk-javascript": "^4.1.1",
|
|
8
8
|
"@cometchat/uikit-elements": "~4.3.27",
|
|
9
|
-
"@cometchat/uikit-resources": "~4.3.
|
|
10
|
-
"@cometchat/uikit-shared": "~4.3.
|
|
9
|
+
"@cometchat/uikit-resources": "~4.3.23",
|
|
10
|
+
"@cometchat/uikit-shared": "~4.3.28"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/cli": "^7.17.0",
|