@cometchat/chat-uikit-angular 4.0.1 → 4.1.0
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/AI/AIAssistBot/AIAssistBot.d.ts +7 -0
- package/AI/AIAssistBot/AIAssistBotDecorator.d.ts +11 -0
- package/AI/AIConversationStarter/AIConversationStarter.d.ts +2 -2
- package/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +3 -0
- package/AI/AIConversationSummary/AIConversationSummary.d.ts +7 -0
- package/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +10 -0
- package/AI/AISmartReplies/AISmartReplies.d.ts +2 -2
- package/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +3 -0
- package/Calls/CometChatCallLogDetails/cometchat-call-log-details/cometchat-call-log-details.component.d.ts +119 -0
- package/Calls/CometChatCallLogDetails/cometchat-call-log-details.module.d.ts +14 -0
- package/Calls/CometChatCallLogHistory/cometchat-call-log-history/cometchat-call-log-history.component.d.ts +111 -0
- package/Calls/CometChatCallLogHistory/cometchat-call-log-history.module.d.ts +10 -0
- package/Calls/CometChatCallLogParticipants/cometchat-call-log-participants/cometchat-call-log-participants.component.d.ts +76 -0
- package/Calls/CometChatCallLogParticipants/cometchat-call-log-participants.module.d.ts +10 -0
- package/Calls/CometChatCallLogRecordings/cometchat-call-log-recordings/cometchat-call-log-recordings.component.d.ts +90 -0
- package/Calls/CometChatCallLogRecordings/cometchat-call-log-recordings.module.d.ts +10 -0
- package/Calls/CometChatCallLogs/cometchat-call-logs/cometchat-call-logs.component.d.ts +133 -0
- package/Calls/CometChatCallLogs/cometchat-call-logs.module.d.ts +12 -0
- package/Calls/CometChatCallLogsWithDetails/cometchat-call-logs-with-details/cometchat-call-logs-with-details.component.d.ts +54 -0
- package/Calls/CometChatCallLogsWithDetails/cometchat-call-logs-with-details.module.d.ts +12 -0
- package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +18 -7
- package/CometChatList/cometchat-list.component.d.ts +12 -9
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +65 -29
- package/CometChatMessageComposer/cometchat-message-composer.module.d.ts +3 -3
- package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts +7 -6
- package/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.d.ts +6 -4
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +96 -55
- package/CometChatMessageList/cometchat-message-list.module.d.ts +1 -1
- package/CometChatMessages/cometchat-messages/cometchat-messages.component.d.ts +19 -16
- package/CometChatMessages/cometchat-messages.module.d.ts +3 -2
- package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +8 -5
- package/Shared/CometChatUIkit/CometChatUIKit.d.ts +13 -3
- package/Shared/Framework/AIExtensionDataSource.d.ts +5 -0
- package/Shared/Framework/DataSource.d.ts +3 -1
- package/Shared/Framework/DataSourceDecorator.d.ts +3 -1
- package/Shared/Utils/CallDetailUtils.d.ts +8 -0
- package/Shared/Utils/CallLogUtils.d.ts +8 -0
- package/Shared/Utils/MessageUtils.d.ts +2 -1
- package/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.d.ts +71 -0
- package/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list.module.d.ts +11 -0
- package/assets/InfoIcon.svg +13 -0
- package/assets/greaterThanIcon.svg +3 -0
- package/assets/incomingAudioCallIconUrl.svg +5 -0
- package/assets/incomingVideoCallIconUrl.svg +6 -0
- package/assets/missedAudioCallIconUrl.svg +5 -0
- package/assets/missedVideoCallIconUrl.svg +6 -0
- package/assets/outgoingAudioCallIconUrl.svg +5 -0
- package/assets/outgoingVideoCallIconUrl.svg +6 -0
- package/esm2020/AI/AIAssistBot/AIAssistBot.mjs +21 -0
- package/esm2020/AI/AIAssistBot/AIAssistBotDecorator.mjs +68 -0
- package/esm2020/AI/AIConversationStarter/AIConversationStarter.mjs +7 -4
- package/esm2020/AI/AIConversationStarter/AIConversationStarterDecorator.mjs +22 -1
- package/esm2020/AI/AIConversationSummary/AIConversationSummary.mjs +21 -0
- package/esm2020/AI/AIConversationSummary/AIConversationSummaryDecorator.mjs +32 -0
- package/esm2020/AI/AISmartReplies/AISmartReplies.mjs +7 -4
- package/esm2020/AI/AISmartReplies/AISmartRepliesDecorator.mjs +22 -1
- package/esm2020/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.mjs +3 -3
- package/esm2020/Calls/CometChatCallLogDetails/cometchat-call-log-details/cometchat-call-log-details.component.mjs +351 -0
- package/esm2020/Calls/CometChatCallLogDetails/cometchat-call-log-details.module.mjs +47 -0
- package/esm2020/Calls/CometChatCallLogHistory/cometchat-call-log-history/cometchat-call-log-history.component.mjs +352 -0
- package/esm2020/Calls/CometChatCallLogHistory/cometchat-call-log-history.module.mjs +21 -0
- package/esm2020/Calls/CometChatCallLogParticipants/cometchat-call-log-participants/cometchat-call-log-participants.component.mjs +189 -0
- package/esm2020/Calls/CometChatCallLogParticipants/cometchat-call-log-participants.module.mjs +21 -0
- package/esm2020/Calls/CometChatCallLogRecordings/cometchat-call-log-recordings/cometchat-call-log-recordings.component.mjs +246 -0
- package/esm2020/Calls/CometChatCallLogRecordings/cometchat-call-log-recordings.module.mjs +21 -0
- package/esm2020/Calls/CometChatCallLogs/cometchat-call-logs/cometchat-call-logs.component.mjs +585 -0
- package/esm2020/Calls/CometChatCallLogs/cometchat-call-logs.module.mjs +36 -0
- package/esm2020/Calls/CometChatCallLogsWithDetails/cometchat-call-logs-with-details/cometchat-call-logs-with-details.component.mjs +193 -0
- package/esm2020/Calls/CometChatCallLogsWithDetails/cometchat-call-logs-with-details.module.mjs +39 -0
- package/esm2020/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.mjs +1 -1
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +72 -46
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.mjs +3 -3
- package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +1 -1
- package/esm2020/CometChatGroups/cometchat-groups/cometchat-groups.component.mjs +1 -1
- package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.mjs +3 -3
- package/esm2020/CometChatList/cometchat-list.component.mjs +44 -28
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +312 -115
- package/esm2020/CometChatMessageComposer/cometchat-message-composer.module.mjs +7 -14
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +15 -17
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +19 -21
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +888 -300
- package/esm2020/CometChatMessageList/cometchat-message-list.module.mjs +5 -5
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +72 -51
- package/esm2020/CometChatMessages/cometchat-messages.module.mjs +10 -6
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +23 -23
- package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +1 -1
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +3 -3
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +173 -36
- package/esm2020/Shared/Framework/AIExtensionDataSource.mjs +3 -0
- package/esm2020/Shared/Framework/ChatConfigurator.mjs +2 -2
- package/esm2020/Shared/Framework/DataSource.mjs +1 -1
- package/esm2020/Shared/Framework/DataSourceDecorator.mjs +5 -2
- package/esm2020/Shared/Utils/CallDetailUtils.mjs +72 -0
- package/esm2020/Shared/Utils/CallLogUtils.mjs +122 -0
- package/esm2020/Shared/Utils/MessageUtils.mjs +31 -20
- package/esm2020/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.mjs +289 -0
- package/esm2020/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list.module.mjs +22 -0
- package/esm2020/public-api.mjs +106 -91
- package/fesm2015/cometchat-chat-uikit-angular.mjs +4249 -817
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +4271 -836
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +6 -6
- package/public-api.d.ts +105 -90
- package/AI/AIEnabler.d.ts +0 -8
- package/AI/AIEnablerDecorator.d.ts +0 -7
- package/LICENSE.md +0 -3
- package/Shared/Views/CometChatCardView/cometchat-card-view/cometchat-card-view.component.d.ts +0 -71
- package/Shared/Views/CometChatCardView/cometchat-card-view.module.d.ts +0 -8
- package/esm2020/AI/AIEnabler.mjs +0 -70
- package/esm2020/AI/AIEnablerDecorator.mjs +0 -10
- package/esm2020/Shared/Views/CometChatCardView/cometchat-card-view/cometchat-card-view.component.mjs +0 -117
- package/esm2020/Shared/Views/CometChatCardView/cometchat-card-view.module.mjs +0 -23
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { AvatarStyle, BackdropStyle, BaseStyle, CallscreenStyle, ConfirmDialogStyle, DateStyle, DocumentBubbleStyle, FullScreenViewerStyle, MenuListStyle, PanelStyle, ReceiptStyle } from "@cometchat/uikit-elements";
|
|
3
|
+
import { CardBubbleStyle, FormBubbleStyle, ImageModerationStyle, MessageInformationConfiguration, MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, SmartRepliesConfiguration, SmartRepliesStyle } from "@cometchat/uikit-shared";
|
|
4
|
+
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme, CometChatUIKitConstants, DatePatterns, DocumentIconAlignment, MessageBubbleAlignment, MessageListAlignment, States, TimestampAlignment, localize } from "@cometchat/uikit-resources";
|
|
5
|
+
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
2
6
|
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
-
import { Subscription } from "rxjs";
|
|
4
|
-
import { DateStyle, AvatarStyle, MenuListStyle, ReceiptStyle, BaseStyle, DocumentBubbleStyle, ConfirmDialogStyle, FullScreenViewerStyle, CallscreenStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
5
7
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
6
|
-
import {
|
|
7
|
-
import { MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, ImageModerationStyle, SmartRepliesStyle, SmartRepliesConfiguration, MessageInformationConfiguration } from "@cometchat/uikit-shared";
|
|
8
|
-
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* CometChatMessageList is a wrapper component for messageBubble
|
|
13
|
-
*
|
|
14
|
-
* @version 1.0.0
|
|
15
|
-
* @author CometChatTeam
|
|
16
|
-
* @copyright © 2022 CometChat Inc.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
11
|
+
*
|
|
12
|
+
* CometChatMessageList is a wrapper component for messageBubble
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
19
|
export declare class CometChatMessageListComponent implements OnInit, OnDestroy, OnChanges {
|
|
20
20
|
private ngZone;
|
|
21
21
|
private ref;
|
|
@@ -29,6 +29,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
29
29
|
audioBubble: TemplateRef<any>;
|
|
30
30
|
videoBubble: TemplateRef<any>;
|
|
31
31
|
imageBubble: TemplateRef<any>;
|
|
32
|
+
formBubble: TemplateRef<any>;
|
|
33
|
+
cardBubble: TemplateRef<any>;
|
|
32
34
|
stickerBubble: TemplateRef<any>;
|
|
33
35
|
documentBubble: TemplateRef<any>;
|
|
34
36
|
whiteboardBubble: TemplateRef<any>;
|
|
@@ -52,6 +54,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
52
54
|
sentIcon: string;
|
|
53
55
|
waitIcon: string;
|
|
54
56
|
errorIcon: string;
|
|
57
|
+
aiErrorIcon: string;
|
|
58
|
+
aiEmptyIcon: string;
|
|
55
59
|
alignment: MessageListAlignment;
|
|
56
60
|
showAvatar: boolean;
|
|
57
61
|
datePattern: DatePatterns;
|
|
@@ -62,6 +66,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
62
66
|
newMessageIndicatorText: string;
|
|
63
67
|
scrollToBottomOnNewMessages: boolean;
|
|
64
68
|
thresholdValue: number;
|
|
69
|
+
unreadMessageThreshold: number;
|
|
70
|
+
apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
|
|
65
71
|
onThreadRepliesClick: ((message: CometChat.BaseMessage, view: TemplateRef<any>) => void) | null;
|
|
66
72
|
headerView: TemplateRef<any>;
|
|
67
73
|
footerView: TemplateRef<any>;
|
|
@@ -83,17 +89,26 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
83
89
|
starterErrorStateText: string;
|
|
84
90
|
starterEmptyStateText: string;
|
|
85
91
|
starterLoadingStateText: string;
|
|
92
|
+
summaryErrorStateText: string;
|
|
93
|
+
summaryEmptyStateText: string;
|
|
94
|
+
summaryLoadingStateText: string;
|
|
86
95
|
requestBuilder: any;
|
|
87
96
|
closeImageModeration: any;
|
|
88
97
|
timeStampColor: string;
|
|
89
98
|
timeStampFont: string;
|
|
90
99
|
smartReplyStyle: SmartRepliesStyle;
|
|
91
100
|
conversationStarterStyle: SmartRepliesStyle;
|
|
101
|
+
conversationSummaryStyle: PanelStyle;
|
|
92
102
|
showSmartReply: boolean;
|
|
93
103
|
enableConversationStarter: boolean;
|
|
94
104
|
showConversationStarter: boolean;
|
|
95
105
|
conversationStarterState: States;
|
|
96
106
|
conversationStarterReplies: string[];
|
|
107
|
+
enableConversationSummary: boolean;
|
|
108
|
+
showConversationSummary: boolean;
|
|
109
|
+
conversationSummaryState: States;
|
|
110
|
+
conversationSummary: string[];
|
|
111
|
+
getUnreadCount: any;
|
|
97
112
|
ccHidePanel: Subscription;
|
|
98
113
|
ccShowPanel: Subscription;
|
|
99
114
|
smartReplyMessage: CometChat.BaseMessage | null;
|
|
@@ -138,7 +153,6 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
138
153
|
typesMap: any;
|
|
139
154
|
messageTypesMap: any;
|
|
140
155
|
theme: CometChatTheme;
|
|
141
|
-
msgListenerId: string;
|
|
142
156
|
groupListenerId: string;
|
|
143
157
|
callListenerId: string;
|
|
144
158
|
loggedInUser: CometChat.User;
|
|
@@ -148,6 +162,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
148
162
|
custom: string;
|
|
149
163
|
action: string;
|
|
150
164
|
call: string;
|
|
165
|
+
interactive: string;
|
|
151
166
|
}>;
|
|
152
167
|
numberOfTopScroll: number;
|
|
153
168
|
keepRecentMessages: boolean;
|
|
@@ -181,6 +196,18 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
181
196
|
ccCallEnded: Subscription;
|
|
182
197
|
ccCallAccepted: Subscription;
|
|
183
198
|
ccGroupMemberScopeChanged: Subscription;
|
|
199
|
+
onTextMessageReceived: Subscription;
|
|
200
|
+
onCustomMessageReceived: Subscription;
|
|
201
|
+
onFormMessageReceived: Subscription;
|
|
202
|
+
onCardMessageReceived: Subscription;
|
|
203
|
+
onCustomInteractiveMessageReceived: Subscription;
|
|
204
|
+
onMediaMessageReceived: Subscription;
|
|
205
|
+
onMessagesDelivered: Subscription;
|
|
206
|
+
onMessagesRead: Subscription;
|
|
207
|
+
onMessageDeleted: Subscription;
|
|
208
|
+
onMessageEdited: Subscription;
|
|
209
|
+
onTransientMessageReceived: Subscription;
|
|
210
|
+
onInteractionGoalCompleted: Subscription;
|
|
184
211
|
threadedAlignment: MessageBubbleAlignment;
|
|
185
212
|
messageInfoAlignment: MessageBubbleAlignment;
|
|
186
213
|
openEmojiKeyboard: boolean;
|
|
@@ -227,6 +254,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
227
254
|
threadOpenIcon: string;
|
|
228
255
|
confirmDialogStyle: ConfirmDialogStyle;
|
|
229
256
|
messageToReact: CometChat.BaseMessage | null;
|
|
257
|
+
private ConversationSummarySubscription;
|
|
230
258
|
limit: number;
|
|
231
259
|
types: string[];
|
|
232
260
|
categories: string[];
|
|
@@ -271,20 +299,20 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
271
299
|
openMessageInfo(messageObject: CometChat.BaseMessage): void;
|
|
272
300
|
closeMessageInfoPage: () => void;
|
|
273
301
|
sendMessagePrivately(messageObject: CometChat.BaseMessage): void;
|
|
274
|
-
getMessageById(id: number): false | import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
302
|
+
getMessageById(id: number | string): false | import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
275
303
|
isTranslated(message: CometChat.TextMessage): any;
|
|
276
304
|
updateTranslatedMessage: (translation: any) => void;
|
|
277
305
|
translateMessage: (id: number) => void;
|
|
278
306
|
setOptionsCallback(options: CometChatMessageOption[]): CometChatMessageOption[];
|
|
279
307
|
/**
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
308
|
+
* send message options based on type
|
|
309
|
+
* @param {CometChat.BaseMessage} msgObject
|
|
310
|
+
*/
|
|
283
311
|
setMessageOptions(msgObject: CometChat.BaseMessage): CometChatMessageOption[];
|
|
284
312
|
/**
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
313
|
+
* passing style based on message object
|
|
314
|
+
* @param {CometChat.BaseMessage} messageObject
|
|
315
|
+
*/
|
|
288
316
|
setMessageBubbleStyle(msg: CometChat.BaseMessage): BaseStyle;
|
|
289
317
|
getSessionId(message: CometChat.CustomMessage): any;
|
|
290
318
|
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
@@ -294,6 +322,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
294
322
|
getHeaderView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
295
323
|
getFooterView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
296
324
|
setBubbleAlignment: (message: CometChat.BaseMessage) => MessageBubbleAlignment;
|
|
325
|
+
getFormMessageBubbleStyle(): FormBubbleStyle;
|
|
326
|
+
getCardMessageBubbleStyle(): CardBubbleStyle;
|
|
297
327
|
getCallBubbleStyle(message: CometChat.BaseMessage): {
|
|
298
328
|
titleFont: string;
|
|
299
329
|
titleColor: string | undefined;
|
|
@@ -329,9 +359,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
329
359
|
startDirectCall: (sessionId: string) => void;
|
|
330
360
|
launchCollaborativeWhiteboardDocument: (url: string) => void;
|
|
331
361
|
/**
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
362
|
+
* Extracting types and categories from template
|
|
363
|
+
*
|
|
364
|
+
*/
|
|
335
365
|
checkMessageTemplate(): void;
|
|
336
366
|
getPollBubbleData(message: CometChat.CustomMessage, type?: string): any;
|
|
337
367
|
getThreadCount(message: CometChat.BaseMessage): string;
|
|
@@ -356,10 +386,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
356
386
|
setMessagesStyle(): void;
|
|
357
387
|
setReceiptStyle(): void;
|
|
358
388
|
createRequestBuilder(): void;
|
|
389
|
+
computeUnreadCount(): void;
|
|
359
390
|
/**
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
391
|
+
* Listener To Receive Messages in Real Time
|
|
392
|
+
* @param
|
|
393
|
+
*/
|
|
363
394
|
fetchPreviousMessages: () => void;
|
|
364
395
|
fetchActionMessages(): void;
|
|
365
396
|
fetchNextMessage: () => void;
|
|
@@ -367,9 +398,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
367
398
|
attachConnectionListener(): void;
|
|
368
399
|
addMessageEventListeners(): void;
|
|
369
400
|
/**
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
401
|
+
*
|
|
402
|
+
* @param
|
|
403
|
+
*/
|
|
373
404
|
/**
|
|
374
405
|
* Updates messageList on basis of user activity or group activity or calling activity
|
|
375
406
|
* @param {any=null} key
|
|
@@ -379,9 +410,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
379
410
|
*/
|
|
380
411
|
messageUpdate(key?: string | null, message?: CometChat.MessageReceipt | CometChat.BaseMessage | any, group?: CometChat.Group | null, options?: any): void;
|
|
381
412
|
/**
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
413
|
+
* translate message then call update message
|
|
414
|
+
* @param {CometChat.BaseMessage} message
|
|
415
|
+
*/
|
|
385
416
|
/**
|
|
386
417
|
* @param {CometChat.BaseMessage} message
|
|
387
418
|
*/
|
|
@@ -395,9 +426,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
395
426
|
*/
|
|
396
427
|
messageReceived(message: CometChat.BaseMessage): void;
|
|
397
428
|
/**
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
429
|
+
* Updating the reply count of Thread Parent Message
|
|
430
|
+
* @param {CometChat.BaseMessage} messages
|
|
431
|
+
*/
|
|
401
432
|
updateReplyCount(messages: CometChat.BaseMessage): void;
|
|
402
433
|
/**
|
|
403
434
|
* @param {CometChat.BaseMessage} message
|
|
@@ -411,8 +442,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
411
442
|
getMessageReceipt(message: CometChat.BaseMessage): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
412
443
|
messageReadAndDelivered(message: CometChat.MessageReceipt): void;
|
|
413
444
|
/**
|
|
414
|
-
|
|
415
|
-
|
|
445
|
+
* @param {CometChat.BaseMessage} readMessage
|
|
446
|
+
*/
|
|
416
447
|
markAllMessagAsRead(messageKey: number): void;
|
|
417
448
|
markAllMessagAsDelivered(messageKey: number): void;
|
|
418
449
|
/**
|
|
@@ -424,6 +455,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
424
455
|
* @param {CometChat.BaseMessage} message
|
|
425
456
|
*/
|
|
426
457
|
messageEdited: (message: CometChat.BaseMessage) => void;
|
|
458
|
+
updateInteractiveMessage: (receipt: CometChat.InteractionReceipt) => void;
|
|
427
459
|
/**
|
|
428
460
|
* Emits an Action Indicating that a message was deleted by the user/person you are chatting with
|
|
429
461
|
* @param {CometChat.BaseMessage} message
|
|
@@ -472,27 +504,27 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
472
504
|
*/
|
|
473
505
|
ioBottom(): void;
|
|
474
506
|
/**
|
|
475
|
-
|
|
476
|
-
|
|
507
|
+
* listening to top scroll using intersection observer
|
|
508
|
+
*/
|
|
477
509
|
ioTop(): void;
|
|
478
510
|
addMessage: (message: CometChat.BaseMessage) => void;
|
|
479
511
|
/**
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
512
|
+
* callback for copy message
|
|
513
|
+
* @param {CometChat.TextMessage} object
|
|
514
|
+
*/
|
|
483
515
|
onCopyMessage: (object: CometChat.TextMessage) => void;
|
|
484
516
|
/**
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
517
|
+
* callback for deleteMessage
|
|
518
|
+
* @param {CometChat.BaseMessage} object
|
|
519
|
+
*/
|
|
488
520
|
/**
|
|
489
|
-
|
|
490
|
-
|
|
521
|
+
* @param {CometChat.BaseMessage} messages
|
|
522
|
+
*/
|
|
491
523
|
messageSent(messages: CometChat.BaseMessage): void;
|
|
492
524
|
/**
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
525
|
+
* callback for editMessage option
|
|
526
|
+
* @param {CometChat.BaseMessage} object
|
|
527
|
+
*/
|
|
496
528
|
onEditMessage: (object: CometChat.BaseMessage) => void;
|
|
497
529
|
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
498
530
|
removeMessage: (message: CometChat.BaseMessage) => void;
|
|
@@ -501,14 +533,16 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
501
533
|
showHeaderTitle(message: CometChat.BaseMessage): boolean;
|
|
502
534
|
subscribeToEvents(): void;
|
|
503
535
|
closeSmartReply: () => void;
|
|
536
|
+
closeConversationSummary: () => void;
|
|
504
537
|
sendReply: (event: any) => void;
|
|
505
538
|
sendConversationStarter: (event: any) => void;
|
|
506
539
|
fetchConversationStarter(): void;
|
|
540
|
+
fetchConversationSummary(): string[];
|
|
507
541
|
getReplies(): string[] | null;
|
|
508
542
|
unsubscribeToEvents(): void;
|
|
509
543
|
/**
|
|
510
|
-
|
|
511
|
-
|
|
544
|
+
* styling part
|
|
545
|
+
*/
|
|
512
546
|
chatsListStyle: () => {
|
|
513
547
|
height: string | undefined;
|
|
514
548
|
background: string | undefined;
|
|
@@ -524,6 +558,10 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
524
558
|
textFont: string;
|
|
525
559
|
textColor: string | undefined;
|
|
526
560
|
};
|
|
561
|
+
conversationSummaryStateStyle: () => {
|
|
562
|
+
textFont: string;
|
|
563
|
+
textColor: string | undefined;
|
|
564
|
+
};
|
|
527
565
|
emptyStyle: () => {
|
|
528
566
|
textFont: string | undefined;
|
|
529
567
|
textColor: string | undefined;
|
|
@@ -534,6 +572,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
534
572
|
conversationStarterLoader: () => {
|
|
535
573
|
iconTint: string | undefined;
|
|
536
574
|
};
|
|
575
|
+
conversationSummaryLoader: () => {
|
|
576
|
+
iconTint: string | undefined;
|
|
577
|
+
};
|
|
537
578
|
wrapperStyle: () => {
|
|
538
579
|
height: string | undefined;
|
|
539
580
|
width: string | undefined;
|
|
@@ -545,5 +586,5 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
545
586
|
height: string;
|
|
546
587
|
};
|
|
547
588
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
548
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "user": "user"; "group": "group"; "disableReceipt": "disableReceipt"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessages": "customSoundForMessages"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "sentIcon": "sentIcon"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; }, {}, never, never>;
|
|
589
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "user": "user"; "group": "group"; "disableReceipt": "disableReceipt"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessages": "customSoundForMessages"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "sentIcon": "sentIcon"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "aiErrorIcon": "aiErrorIcon"; "aiEmptyIcon": "aiEmptyIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "unreadMessageThreshold": "unreadMessageThreshold"; "apiConfiguration": "apiConfiguration"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; }, {}, never, never>;
|
|
549
590
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef, ElementRef } from "@angular/core";
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef, ElementRef, EventEmitter } from "@angular/core";
|
|
2
2
|
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
3
|
import { CometChatMessageComposerComponent } from "../../CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component";
|
|
4
4
|
import { CometChatMessageListComponent } from "../../CometChatMessageList/cometchat-message-list/cometchat-message-list.component";
|
|
5
|
-
import { ListItemStyle, AvatarStyle, BaseStyle } from
|
|
5
|
+
import { ListItemStyle, AvatarStyle, BaseStyle } from "@cometchat/uikit-elements";
|
|
6
6
|
import { Subscription } from "rxjs";
|
|
7
7
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
8
8
|
import { MessageHeaderConfiguration, MessageListConfiguration, MessageComposerConfiguration, ThreadedMessagesConfiguration, DetailsConfiguration, MessagesStyle, MessageComposerStyle, MessageHeaderStyle, CallButtonsStyle } from "@cometchat/uikit-shared";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* CometChatMessages is a wrapper component for messageList, messageHeader, messageComposer and liveReaction component.
|
|
13
|
-
*
|
|
14
|
-
* @version 1.0.0
|
|
15
|
-
* @author CometChatTeam
|
|
16
|
-
* @copyright © 2022 CometChat Inc.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
11
|
+
*
|
|
12
|
+
* CometChatMessages is a wrapper component for messageList, messageHeader, messageComposer and liveReaction component.
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
19
|
export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
20
20
|
private ref;
|
|
21
21
|
private themeService;
|
|
@@ -24,6 +24,7 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
24
24
|
messageListRef: CometChatMessageListComponent;
|
|
25
25
|
user: CometChat.User;
|
|
26
26
|
group: CometChat.Group;
|
|
27
|
+
currentAskAIBot: CometChat.User;
|
|
27
28
|
hideMessageComposer: boolean;
|
|
28
29
|
disableTyping: boolean;
|
|
29
30
|
messageHeaderConfiguration: MessageHeaderConfiguration;
|
|
@@ -41,6 +42,7 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
41
42
|
hideMessageHeader: boolean;
|
|
42
43
|
hideDetails: boolean;
|
|
43
44
|
auxiliaryMenu: TemplateRef<any>;
|
|
45
|
+
conversationSummaryClicked: EventEmitter<void>;
|
|
44
46
|
loggedInUser: CometChat.User | null;
|
|
45
47
|
callButtonsStyle: CallButtonsStyle;
|
|
46
48
|
messageToBeEdited: CometChat.BaseMessage | null;
|
|
@@ -50,6 +52,7 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
50
52
|
composerStyles: MessageComposerStyle;
|
|
51
53
|
liveReactionTimeout: any;
|
|
52
54
|
openThreadedMessages: boolean;
|
|
55
|
+
showAiBotChat: boolean;
|
|
53
56
|
subtitleView: TemplateRef<any>;
|
|
54
57
|
disableUsersPresence: boolean;
|
|
55
58
|
protectedGroupIcon: string;
|
|
@@ -73,12 +76,12 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
73
76
|
ccGroupLeft: Subscription;
|
|
74
77
|
ccUserBlocked: Subscription;
|
|
75
78
|
ccUserUnBlocked: Subscription;
|
|
79
|
+
ccShowPanel: Subscription;
|
|
76
80
|
threadMessageObject: CometChat.BaseMessage | null;
|
|
77
81
|
parentBubbleView: TemplateRef<any>;
|
|
78
82
|
openDetails: boolean;
|
|
79
83
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService, elementRef: ElementRef);
|
|
80
84
|
ngOnInit(): void;
|
|
81
|
-
ngAfterViewInit(): void;
|
|
82
85
|
subscribeToEvents(): void;
|
|
83
86
|
unsubscribeToEvents(): void;
|
|
84
87
|
setMessagesStyle(): void;
|
|
@@ -102,10 +105,10 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
102
105
|
};
|
|
103
106
|
/**
|
|
104
107
|
* public methods
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
* messageListRef methods
|
|
109
|
+
* This metthod will append message in message list
|
|
110
|
+
* @param {CometChat.BaseMessage} message
|
|
111
|
+
*/
|
|
109
112
|
addMessage(message: CometChat.BaseMessage): void;
|
|
110
113
|
/**
|
|
111
114
|
* This method will update the message in messageList
|
|
@@ -134,5 +137,5 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
134
137
|
*/
|
|
135
138
|
previewMessage(message: CometChat.TextMessage, mode?: string): void;
|
|
136
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessagesComponent, never>;
|
|
137
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessagesComponent, "cometchat-messages", never, { "user": "user"; "group": "group"; "hideMessageComposer": "hideMessageComposer"; "disableTyping": "disableTyping"; "messageHeaderConfiguration": "messageHeaderConfiguration"; "messageListConfiguration": "messageListConfiguration"; "messageComposerConfiguration": "messageComposerConfiguration"; "threadedMessageConfiguration": "threadedMessageConfiguration"; "detailsConfiguration": "detailsConfiguration"; "customSoundForIncomingMessages": "customSoundForIncomingMessages"; "customSoundForOutgoingMessages": "customSoundForOutgoingMessages"; "disableSoundForMessages": "disableSoundForMessages"; "messagesStyle": "messagesStyle"; "messageHeaderView": "messageHeaderView"; "messageComposerView": "messageComposerView"; "messageListView": "messageListView"; "hideMessageHeader": "hideMessageHeader"; "hideDetails": "hideDetails"; "auxiliaryMenu": "auxiliaryMenu"; }, {}, never, never>;
|
|
140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessagesComponent, "cometchat-messages", never, { "user": "user"; "group": "group"; "currentAskAIBot": "currentAskAIBot"; "hideMessageComposer": "hideMessageComposer"; "disableTyping": "disableTyping"; "messageHeaderConfiguration": "messageHeaderConfiguration"; "messageListConfiguration": "messageListConfiguration"; "messageComposerConfiguration": "messageComposerConfiguration"; "threadedMessageConfiguration": "threadedMessageConfiguration"; "detailsConfiguration": "detailsConfiguration"; "customSoundForIncomingMessages": "customSoundForIncomingMessages"; "customSoundForOutgoingMessages": "customSoundForOutgoingMessages"; "disableSoundForMessages": "disableSoundForMessages"; "messagesStyle": "messagesStyle"; "messageHeaderView": "messageHeaderView"; "messageComposerView": "messageComposerView"; "messageListView": "messageListView"; "hideMessageHeader": "hideMessageHeader"; "hideDetails": "hideDetails"; "auxiliaryMenu": "auxiliaryMenu"; }, {}, never, never>;
|
|
138
141
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@cometchat/uikit-elements";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "./cometchat-messages/cometchat-messages.component";
|
|
4
4
|
import * as i2 from "@angular/common";
|
|
@@ -8,8 +8,9 @@ import * as i5 from "../CometChatMessageComposer/cometchat-message-composer.modu
|
|
|
8
8
|
import * as i6 from "../CometChatThreadedMessages/cometchat-threaded-messages.module";
|
|
9
9
|
import * as i7 from "../CometChatDetails/cometchat-details.module";
|
|
10
10
|
import * as i8 from "../Calls/CometChatCallButtons/cometchat-call-buttons.module";
|
|
11
|
+
import * as i9 from "../Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list.module";
|
|
11
12
|
export declare class CometChatMessages {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessages, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessages, [typeof i1.CometChatMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageHeader, typeof i4.CometChatMessageList, typeof i5.CometChatMessageComposer, typeof i6.CometChatThreadedMessages, typeof i7.CometChatDetails, typeof i8.CometChatCallButtons], [typeof i1.CometChatMessagesComponent]>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessages, [typeof i1.CometChatMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageHeader, typeof i4.CometChatMessageList, typeof i5.CometChatMessageComposer, typeof i6.CometChatThreadedMessages, typeof i7.CometChatDetails, typeof i8.CometChatCallButtons, typeof i9.AIAssistBotMessageList], [typeof i1.CometChatMessagesComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessages>;
|
|
15
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
2
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
3
|
+
import { MessageComposerConfiguration, MessageComposerStyle, MessageListConfiguration, ThreadedMessagesStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
5
|
-
import {
|
|
5
|
+
import { Subscription } from "rxjs";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
@@ -42,7 +42,10 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
|
|
|
42
42
|
ccMessageEdited: Subscription;
|
|
43
43
|
ccMessageDeleted: Subscription;
|
|
44
44
|
ccMessageRead: Subscription;
|
|
45
|
-
|
|
45
|
+
onMessagesDelivered: Subscription;
|
|
46
|
+
onMessagesRead: Subscription;
|
|
47
|
+
onMessageDeleted: Subscription;
|
|
48
|
+
onMessageEdited: Subscription;
|
|
46
49
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
47
50
|
ngOnInit(): void;
|
|
48
51
|
ngOnChanges(change: SimpleChanges): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UIKitSettings } from "@cometchat/uikit-shared";
|
|
2
|
+
import { CardMessage, CometChatLocalize, CustomInteractiveMessage, FormMessage } from "@cometchat/uikit-resources";
|
|
3
3
|
import { ExtensionsDataSource } from "../Framework/ExtensionDataSource";
|
|
4
|
-
import { CometChatSoundManager } from
|
|
4
|
+
import { CometChatSoundManager } from "@cometchat/uikit-shared";
|
|
5
|
+
import { AIExtensionDataSource } from "../Framework/AIExtensionDataSource";
|
|
5
6
|
export declare class CometChatUIKit {
|
|
6
7
|
static uiKitSettings: UIKitSettings;
|
|
7
8
|
static SoundManager: typeof CometChatSoundManager;
|
|
@@ -10,6 +11,7 @@ export declare class CometChatUIKit {
|
|
|
10
11
|
static init(uiKitSettings: UIKitSettings): Promise<Object> | undefined;
|
|
11
12
|
static getLoggedinUser(): Promise<CometChat.User> | undefined;
|
|
12
13
|
static defaultExtensions: ExtensionsDataSource[];
|
|
14
|
+
static defaultAIFeatures: AIExtensionDataSource[];
|
|
13
15
|
static enableCalling(): void;
|
|
14
16
|
private static initiateAfterLogin;
|
|
15
17
|
static login(details: {
|
|
@@ -20,6 +22,14 @@ export declare class CometChatUIKit {
|
|
|
20
22
|
static updateUser(user: CometChat.User): Promise<Object | undefined>;
|
|
21
23
|
static logout(): Promise<Object | undefined>;
|
|
22
24
|
static checkAuthSettings(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Sends a form message and emits events based on the message status.
|
|
27
|
+
* @param message - The form message to be sent.
|
|
28
|
+
* @param disableLocalEvents - A boolean indicating whether to disable local events or not. Default value is false.
|
|
29
|
+
*/
|
|
30
|
+
static sendFormMessage(message: FormMessage, disableLocalEvents?: boolean): void;
|
|
31
|
+
static sendCardMessage(message: CardMessage, disableLocalEvents?: boolean): void;
|
|
32
|
+
static sendCustomInteractiveMessage(message: CustomInteractiveMessage, disableLocalEvents?: boolean): void;
|
|
23
33
|
static sendCustomMessage(message: CometChat.CustomMessage): Promise<CometChat.BaseMessage>;
|
|
24
34
|
static sendTextMessage(message: CometChat.TextMessage): Promise<CometChat.BaseMessage>;
|
|
25
35
|
static sendMediaMessage(message: CometChat.MediaMessage): Promise<CometChat.BaseMessage>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
1
|
+
import { CometChatActionsView, CometChatMessageComposerAction, CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
2
|
import { ComposerId } from "../Utils/MessageUtils";
|
|
3
|
+
import { AIOptionsStyle } from "@cometchat/uikit-shared";
|
|
3
4
|
export declare abstract class DataSource {
|
|
4
5
|
abstract getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatMessageOption>;
|
|
5
6
|
abstract getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatMessageOption>;
|
|
@@ -25,4 +26,5 @@ export declare abstract class DataSource {
|
|
|
25
26
|
abstract getDeleteOption(theme: CometChatTheme): CometChatMessageOption;
|
|
26
27
|
abstract getReplyInThreadOption(theme: CometChatTheme): CometChatMessageOption;
|
|
27
28
|
abstract getEditOption(theme: CometChatTheme): CometChatMessageOption;
|
|
29
|
+
abstract getAIOptions(theme: CometChatTheme, id?: Map<String, any>, aiOptionsStyles?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
28
30
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
1
|
+
import { CometChatActionsView, CometChatMessageComposerAction, CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
2
|
import { DataSource } from "./DataSource";
|
|
3
3
|
import { ComposerId } from "../Utils/MessageUtils";
|
|
4
|
+
import { AIOptionsStyle } from "@cometchat/uikit-shared";
|
|
4
5
|
export declare abstract class DataSourceDecorator implements DataSource {
|
|
5
6
|
dataSource: DataSource;
|
|
6
7
|
constructor(dataSource: DataSource);
|
|
@@ -28,4 +29,5 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
28
29
|
getAuxiliaryOptions(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): any;
|
|
29
30
|
getId(): string;
|
|
30
31
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
32
|
+
getAIOptions(theme: CometChatTheme, id?: Map<String, any>, aiOptionsStyles?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
31
33
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CometChatCallDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
|
+
export declare class CallDetailUtils {
|
|
3
|
+
static getDefaultCallTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): Array<CometChatCallDetailsTemplate>;
|
|
4
|
+
static getPrimaryDetailsTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): CometChatCallDetailsTemplate;
|
|
5
|
+
private static getPrimaryOptions;
|
|
6
|
+
static getSecondaryDetailsTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): CometChatCallDetailsTemplate;
|
|
7
|
+
private static getSecondaryOptions;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class CallLogUtils {
|
|
2
|
+
static isSentByMe(call: any, loggedInUser: CometChat.User): boolean;
|
|
3
|
+
static isMissedCall(call: any, loggedInUser: CometChat.User): boolean;
|
|
4
|
+
static getCallStatusWithType(call: any, loggedInUser: CometChat.User, includeType?: boolean): string;
|
|
5
|
+
static convertMinutesToHoursMinutesSeconds(minutes: number): string;
|
|
6
|
+
static convertSecondsToHoursMinutesSeconds(seconds: number): string;
|
|
7
|
+
static isDateDifferent(firstDate: number | undefined, secondDate: number | undefined): boolean;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CometChatMessageOption, MessageBubbleAlignment, CometChatMessageTemplate, CometChatMessageComposerAction, CometChatTheme } from "@cometchat/uikit-resources";
|
|
1
|
+
import { CometChatMessageOption, MessageBubbleAlignment, CometChatMessageTemplate, CometChatMessageComposerAction, CometChatTheme, CometChatActionsView } from "@cometchat/uikit-resources";
|
|
2
2
|
import { DataSource } from "../Framework/DataSource";
|
|
3
3
|
export declare class MessageUtils implements DataSource {
|
|
4
4
|
getEditOption(theme: CometChatTheme): CometChatMessageOption;
|
|
@@ -36,6 +36,7 @@ export declare class MessageUtils implements DataSource {
|
|
|
36
36
|
fileAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
37
37
|
getAttachmentOptions(theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group, id?: ComposerId): CometChatMessageComposerAction[];
|
|
38
38
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
39
|
+
getAIOptions(theme: CometChatTheme, id?: Map<String, any>): Array<CometChatMessageComposerAction | CometChatActionsView>;
|
|
39
40
|
}
|
|
40
41
|
export declare type ComposerId = {
|
|
41
42
|
parentMessageId: number | null;
|