@cometchat/chat-uikit-react 5.0.4 → 6.0.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/README.md +3 -3
- package/SUPPORT.md +1 -1
- package/dist/index.d.ts +178 -5644
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatFullScreenViewer.css +1 -1
- package/dist/styles/{CometChatThreadedMessagePreview.css → CometChatThreadHeader.css} +23 -23
- package/dist/styles/components/CometChatFullScreenViewer.css +1 -1
- package/dist/styles/components/{CometChatThreadedMessagePreview.css → CometChatThreadHeader.css} +23 -23
- package/dist/styles/components/index.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types/Enums/Enums.d.ts +0 -10
- package/dist/types/components/BaseComponents/CometChatDate/CometChatDate.d.ts +2 -3
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +8 -8
- package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +5 -5
- package/dist/types/components/Calling/CallingConfiguration.d.ts +2 -0
- package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +6 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +4 -4
- package/dist/types/components/Calling/Utils/utils.d.ts +0 -1
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +4 -3
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +5 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +9 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +18 -9
- package/dist/types/components/{CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts → CometChatThreadHeader/CometChatThreadHeader.d.ts} +13 -4
- package/dist/types/events/CometChatMessageEvents.d.ts +0 -2
- package/dist/types/index.d.ts +4 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +3 -2
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +47 -5601
- package/dist/types/utils/CalendarObject.d.ts +27 -0
- package/dist/types/utils/DataSource.d.ts +3 -2
- package/dist/types/utils/DataSourceDecorator.d.ts +3 -2
- package/dist/types/utils/Interface.d.ts +24 -0
- package/dist/types/utils/MessageUtils.d.ts +3 -2
- package/dist/types/utils/MessagesDataSource.d.ts +20 -3
- package/dist/types/utils/util.d.ts +4 -0
- package/package.json +2 -2
- package/screenshots/sample_app_overview.png +0 -0
- package/dist/types/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
|
-
|
|
3
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
4
|
+
interface CometChatThreadHeaderProps {
|
|
4
5
|
/**
|
|
5
6
|
* Hides the visibility of the date header.
|
|
6
7
|
* @default false
|
|
@@ -30,7 +31,7 @@ interface ThreadedMessagePreviewProps {
|
|
|
30
31
|
* @param messageObject - The message to be rendered.
|
|
31
32
|
* @returns A JSX Element to be rendered as message bubble view.
|
|
32
33
|
*/
|
|
33
|
-
messageBubbleView?:
|
|
34
|
+
messageBubbleView?: JSX.Element;
|
|
34
35
|
/**
|
|
35
36
|
* Callback function triggered when an error occurs.
|
|
36
37
|
*
|
|
@@ -38,6 +39,14 @@ interface ThreadedMessagePreviewProps {
|
|
|
38
39
|
* @returns void
|
|
39
40
|
*/
|
|
40
41
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
42
|
+
/**
|
|
43
|
+
* Format for the date separators in threaded message preview.
|
|
44
|
+
*/
|
|
45
|
+
separatorDateTimeFormat?: CalendarObject;
|
|
46
|
+
/**
|
|
47
|
+
* Format for the timestamp displayed next to messages.
|
|
48
|
+
*/
|
|
49
|
+
messageSentAtDateTimeFormat?: CalendarObject;
|
|
41
50
|
}
|
|
42
|
-
declare const
|
|
43
|
-
export {
|
|
51
|
+
declare const CometChatThreadHeader: (props: CometChatThreadHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export { CometChatThreadHeader };
|
|
@@ -7,7 +7,6 @@ export declare class CometChatMessageEvents {
|
|
|
7
7
|
static ccMessageSent: Subject<IMessages>;
|
|
8
8
|
static ccMessageEdited: Subject<IMessages>;
|
|
9
9
|
static ccMessageTranslated: Subject<IMessages>;
|
|
10
|
-
static ccLiveReaction: Subject<string>;
|
|
11
10
|
static ccMessageRead: Subject<CometChat.BaseMessage>;
|
|
12
11
|
static ccMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
13
12
|
/**
|
|
@@ -30,7 +29,6 @@ export declare class CometChatMessageEvents {
|
|
|
30
29
|
static onMessagesReadByAll: Subject<CometChat.MessageReceipt>;
|
|
31
30
|
static onMessageEdited: Subject<CometChat.BaseMessage>;
|
|
32
31
|
static onMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
33
|
-
static onTransientMessageReceived: Subject<CometChat.TransientMessage>;
|
|
34
32
|
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
35
33
|
static onMessageReactionRemoved: Subject<CometChat.ReactionEvent>;
|
|
36
34
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export { CallingConfiguration } from './components/Calling/CallingConfiguration'
|
|
|
67
67
|
export { CometChatCallButtons } from './components/Calling/CometChatCallButtons/CometChatCallButtons';
|
|
68
68
|
export { OutgoingCallConfiguration } from './components/Calling/OutgoingCallConfiguration';
|
|
69
69
|
export * from './components/Calling/Utils/utils';
|
|
70
|
+
export * from './utils/Interface';
|
|
71
|
+
export { CalendarObject } from './utils/CalendarObject';
|
|
70
72
|
export { CometChatAudioBubble } from './components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble';
|
|
71
73
|
export { CometChatAvatar } from './components/BaseComponents/CometChatAvatar/CometChatAvatar';
|
|
72
74
|
export { CometChatButton } from './components/BaseComponents/CometChatButton/CometChatButton';
|
|
@@ -102,7 +104,8 @@ export { MessageReceiptUtils } from './utils/MessageReceiptUtils';
|
|
|
102
104
|
export { MessageUtils } from './utils/MessageUtils';
|
|
103
105
|
export * from './utils/util';
|
|
104
106
|
export * from './utils/Storage';
|
|
105
|
-
export
|
|
107
|
+
export * from './utils/Interface';
|
|
108
|
+
export { CometChatThreadHeader } from './components/CometChatThreadHeader/CometChatThreadHeader';
|
|
106
109
|
export * from "./components/Calling/Utils/utils";
|
|
107
110
|
export { CometChatUIKitLoginListener } from './CometChatUIKit/CometChatUIKitLoginListener';
|
|
108
111
|
export { CometChatUIKitUtility } from './CometChatUIKit/CometChatUIKitUtility';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageOption } from "./CometChatMessageOption";
|
|
3
|
-
import {
|
|
3
|
+
import { MessageBubbleAlignment } from "../Enums/Enums";
|
|
4
|
+
import { CalendarObject } from "../utils/CalendarObject";
|
|
4
5
|
/**
|
|
5
6
|
* CometChatMessageTemplate is a pre-defined structure for creating message views
|
|
6
7
|
* that can be used as a starting point or blueprint for creating message views,
|
|
@@ -48,7 +49,7 @@ declare class CometChatMessageTemplate {
|
|
|
48
49
|
* By default, it displays the receipt and the timestamp.
|
|
49
50
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
50
51
|
*/
|
|
51
|
-
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean,
|
|
52
|
+
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => Element | JSX.Element | null) | null;
|
|
52
53
|
/**
|
|
53
54
|
* List of available actions that any user can perform on a message, like reacting,
|
|
54
55
|
* editing or deleting a message.
|