@cometchat/chat-uikit-angular 4.0.2 → 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/CometChatList/cometchat-list.component.d.ts +12 -9
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +64 -28
- package/CometChatMessageComposer/cometchat-message-composer.module.d.ts +3 -3
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +72 -48
- 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/Shared/CometChatUIkit/CometChatUIKit.d.ts +4 -2
- package/Shared/Framework/AIExtensionDataSource.d.ts +5 -0
- package/Shared/Framework/DataSource.d.ts +3 -3
- package/Shared/Framework/DataSourceDecorator.d.ts +4 -4
- package/Shared/Utils/CallDetailUtils.d.ts +8 -0
- package/Shared/Utils/CallLogUtils.d.ts +8 -0
- package/Shared/Utils/MessageUtils.d.ts +2 -3
- 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 +1 -1
- 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 +303 -98
- package/esm2020/CometChatMessageComposer/cometchat-message-composer.module.mjs +7 -14
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +1 -1
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +654 -301
- 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 +1 -1
- 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 +20 -9
- 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 -8
- package/esm2020/Shared/Utils/CallDetailUtils.mjs +72 -0
- package/esm2020/Shared/Utils/CallLogUtils.mjs +122 -0
- package/esm2020/Shared/Utils/MessageUtils.mjs +28 -46
- 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 +3803 -787
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +3831 -806
- 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/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,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
-
import { AvatarStyle, BackdropStyle, BaseStyle, CallscreenStyle, ConfirmDialogStyle, DateStyle, DocumentBubbleStyle, FullScreenViewerStyle, MenuListStyle, ReceiptStyle } from
|
|
2
|
+
import { AvatarStyle, BackdropStyle, BaseStyle, CallscreenStyle, ConfirmDialogStyle, DateStyle, DocumentBubbleStyle, FullScreenViewerStyle, MenuListStyle, PanelStyle, ReceiptStyle } from "@cometchat/uikit-elements";
|
|
3
3
|
import { CardBubbleStyle, FormBubbleStyle, ImageModerationStyle, MessageInformationConfiguration, MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, SmartRepliesConfiguration, SmartRepliesStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme, CometChatUIKitConstants, DatePatterns, DocumentIconAlignment, MessageBubbleAlignment, MessageListAlignment, States, TimestampAlignment, localize } from "@cometchat/uikit-resources";
|
|
5
5
|
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
@@ -8,14 +8,14 @@ import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
|
8
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;
|
|
@@ -54,6 +54,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
54
54
|
sentIcon: string;
|
|
55
55
|
waitIcon: string;
|
|
56
56
|
errorIcon: string;
|
|
57
|
+
aiErrorIcon: string;
|
|
58
|
+
aiEmptyIcon: string;
|
|
57
59
|
alignment: MessageListAlignment;
|
|
58
60
|
showAvatar: boolean;
|
|
59
61
|
datePattern: DatePatterns;
|
|
@@ -64,6 +66,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
64
66
|
newMessageIndicatorText: string;
|
|
65
67
|
scrollToBottomOnNewMessages: boolean;
|
|
66
68
|
thresholdValue: number;
|
|
69
|
+
unreadMessageThreshold: number;
|
|
70
|
+
apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
|
|
67
71
|
onThreadRepliesClick: ((message: CometChat.BaseMessage, view: TemplateRef<any>) => void) | null;
|
|
68
72
|
headerView: TemplateRef<any>;
|
|
69
73
|
footerView: TemplateRef<any>;
|
|
@@ -85,17 +89,26 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
85
89
|
starterErrorStateText: string;
|
|
86
90
|
starterEmptyStateText: string;
|
|
87
91
|
starterLoadingStateText: string;
|
|
92
|
+
summaryErrorStateText: string;
|
|
93
|
+
summaryEmptyStateText: string;
|
|
94
|
+
summaryLoadingStateText: string;
|
|
88
95
|
requestBuilder: any;
|
|
89
96
|
closeImageModeration: any;
|
|
90
97
|
timeStampColor: string;
|
|
91
98
|
timeStampFont: string;
|
|
92
99
|
smartReplyStyle: SmartRepliesStyle;
|
|
93
100
|
conversationStarterStyle: SmartRepliesStyle;
|
|
101
|
+
conversationSummaryStyle: PanelStyle;
|
|
94
102
|
showSmartReply: boolean;
|
|
95
103
|
enableConversationStarter: boolean;
|
|
96
104
|
showConversationStarter: boolean;
|
|
97
105
|
conversationStarterState: States;
|
|
98
106
|
conversationStarterReplies: string[];
|
|
107
|
+
enableConversationSummary: boolean;
|
|
108
|
+
showConversationSummary: boolean;
|
|
109
|
+
conversationSummaryState: States;
|
|
110
|
+
conversationSummary: string[];
|
|
111
|
+
getUnreadCount: any;
|
|
99
112
|
ccHidePanel: Subscription;
|
|
100
113
|
ccShowPanel: Subscription;
|
|
101
114
|
smartReplyMessage: CometChat.BaseMessage | null;
|
|
@@ -241,6 +254,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
241
254
|
threadOpenIcon: string;
|
|
242
255
|
confirmDialogStyle: ConfirmDialogStyle;
|
|
243
256
|
messageToReact: CometChat.BaseMessage | null;
|
|
257
|
+
private ConversationSummarySubscription;
|
|
244
258
|
limit: number;
|
|
245
259
|
types: string[];
|
|
246
260
|
categories: string[];
|
|
@@ -291,14 +305,14 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
291
305
|
translateMessage: (id: number) => void;
|
|
292
306
|
setOptionsCallback(options: CometChatMessageOption[]): CometChatMessageOption[];
|
|
293
307
|
/**
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
308
|
+
* send message options based on type
|
|
309
|
+
* @param {CometChat.BaseMessage} msgObject
|
|
310
|
+
*/
|
|
297
311
|
setMessageOptions(msgObject: CometChat.BaseMessage): CometChatMessageOption[];
|
|
298
312
|
/**
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
* passing style based on message object
|
|
314
|
+
* @param {CometChat.BaseMessage} messageObject
|
|
315
|
+
*/
|
|
302
316
|
setMessageBubbleStyle(msg: CometChat.BaseMessage): BaseStyle;
|
|
303
317
|
getSessionId(message: CometChat.CustomMessage): any;
|
|
304
318
|
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
@@ -345,9 +359,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
345
359
|
startDirectCall: (sessionId: string) => void;
|
|
346
360
|
launchCollaborativeWhiteboardDocument: (url: string) => void;
|
|
347
361
|
/**
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
362
|
+
* Extracting types and categories from template
|
|
363
|
+
*
|
|
364
|
+
*/
|
|
351
365
|
checkMessageTemplate(): void;
|
|
352
366
|
getPollBubbleData(message: CometChat.CustomMessage, type?: string): any;
|
|
353
367
|
getThreadCount(message: CometChat.BaseMessage): string;
|
|
@@ -372,10 +386,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
372
386
|
setMessagesStyle(): void;
|
|
373
387
|
setReceiptStyle(): void;
|
|
374
388
|
createRequestBuilder(): void;
|
|
389
|
+
computeUnreadCount(): void;
|
|
375
390
|
/**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
391
|
+
* Listener To Receive Messages in Real Time
|
|
392
|
+
* @param
|
|
393
|
+
*/
|
|
379
394
|
fetchPreviousMessages: () => void;
|
|
380
395
|
fetchActionMessages(): void;
|
|
381
396
|
fetchNextMessage: () => void;
|
|
@@ -383,9 +398,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
383
398
|
attachConnectionListener(): void;
|
|
384
399
|
addMessageEventListeners(): void;
|
|
385
400
|
/**
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
401
|
+
*
|
|
402
|
+
* @param
|
|
403
|
+
*/
|
|
389
404
|
/**
|
|
390
405
|
* Updates messageList on basis of user activity or group activity or calling activity
|
|
391
406
|
* @param {any=null} key
|
|
@@ -395,9 +410,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
395
410
|
*/
|
|
396
411
|
messageUpdate(key?: string | null, message?: CometChat.MessageReceipt | CometChat.BaseMessage | any, group?: CometChat.Group | null, options?: any): void;
|
|
397
412
|
/**
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
413
|
+
* translate message then call update message
|
|
414
|
+
* @param {CometChat.BaseMessage} message
|
|
415
|
+
*/
|
|
401
416
|
/**
|
|
402
417
|
* @param {CometChat.BaseMessage} message
|
|
403
418
|
*/
|
|
@@ -411,9 +426,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
411
426
|
*/
|
|
412
427
|
messageReceived(message: CometChat.BaseMessage): void;
|
|
413
428
|
/**
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
429
|
+
* Updating the reply count of Thread Parent Message
|
|
430
|
+
* @param {CometChat.BaseMessage} messages
|
|
431
|
+
*/
|
|
417
432
|
updateReplyCount(messages: CometChat.BaseMessage): void;
|
|
418
433
|
/**
|
|
419
434
|
* @param {CometChat.BaseMessage} message
|
|
@@ -427,8 +442,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
427
442
|
getMessageReceipt(message: CometChat.BaseMessage): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
428
443
|
messageReadAndDelivered(message: CometChat.MessageReceipt): void;
|
|
429
444
|
/**
|
|
430
|
-
|
|
431
|
-
|
|
445
|
+
* @param {CometChat.BaseMessage} readMessage
|
|
446
|
+
*/
|
|
432
447
|
markAllMessagAsRead(messageKey: number): void;
|
|
433
448
|
markAllMessagAsDelivered(messageKey: number): void;
|
|
434
449
|
/**
|
|
@@ -489,27 +504,27 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
489
504
|
*/
|
|
490
505
|
ioBottom(): void;
|
|
491
506
|
/**
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
* listening to top scroll using intersection observer
|
|
508
|
+
*/
|
|
494
509
|
ioTop(): void;
|
|
495
510
|
addMessage: (message: CometChat.BaseMessage) => void;
|
|
496
511
|
/**
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
512
|
+
* callback for copy message
|
|
513
|
+
* @param {CometChat.TextMessage} object
|
|
514
|
+
*/
|
|
500
515
|
onCopyMessage: (object: CometChat.TextMessage) => void;
|
|
501
516
|
/**
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
517
|
+
* callback for deleteMessage
|
|
518
|
+
* @param {CometChat.BaseMessage} object
|
|
519
|
+
*/
|
|
505
520
|
/**
|
|
506
|
-
|
|
507
|
-
|
|
521
|
+
* @param {CometChat.BaseMessage} messages
|
|
522
|
+
*/
|
|
508
523
|
messageSent(messages: CometChat.BaseMessage): void;
|
|
509
524
|
/**
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
525
|
+
* callback for editMessage option
|
|
526
|
+
* @param {CometChat.BaseMessage} object
|
|
527
|
+
*/
|
|
513
528
|
onEditMessage: (object: CometChat.BaseMessage) => void;
|
|
514
529
|
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
515
530
|
removeMessage: (message: CometChat.BaseMessage) => void;
|
|
@@ -518,14 +533,16 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
518
533
|
showHeaderTitle(message: CometChat.BaseMessage): boolean;
|
|
519
534
|
subscribeToEvents(): void;
|
|
520
535
|
closeSmartReply: () => void;
|
|
536
|
+
closeConversationSummary: () => void;
|
|
521
537
|
sendReply: (event: any) => void;
|
|
522
538
|
sendConversationStarter: (event: any) => void;
|
|
523
539
|
fetchConversationStarter(): void;
|
|
540
|
+
fetchConversationSummary(): string[];
|
|
524
541
|
getReplies(): string[] | null;
|
|
525
542
|
unsubscribeToEvents(): void;
|
|
526
543
|
/**
|
|
527
|
-
|
|
528
|
-
|
|
544
|
+
* styling part
|
|
545
|
+
*/
|
|
529
546
|
chatsListStyle: () => {
|
|
530
547
|
height: string | undefined;
|
|
531
548
|
background: string | undefined;
|
|
@@ -541,6 +558,10 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
541
558
|
textFont: string;
|
|
542
559
|
textColor: string | undefined;
|
|
543
560
|
};
|
|
561
|
+
conversationSummaryStateStyle: () => {
|
|
562
|
+
textFont: string;
|
|
563
|
+
textColor: string | undefined;
|
|
564
|
+
};
|
|
544
565
|
emptyStyle: () => {
|
|
545
566
|
textFont: string | undefined;
|
|
546
567
|
textColor: string | undefined;
|
|
@@ -551,6 +572,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
551
572
|
conversationStarterLoader: () => {
|
|
552
573
|
iconTint: string | undefined;
|
|
553
574
|
};
|
|
575
|
+
conversationSummaryLoader: () => {
|
|
576
|
+
iconTint: string | undefined;
|
|
577
|
+
};
|
|
554
578
|
wrapperStyle: () => {
|
|
555
579
|
height: string | undefined;
|
|
556
580
|
width: string | undefined;
|
|
@@ -562,5 +586,5 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
562
586
|
height: string;
|
|
563
587
|
};
|
|
564
588
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
565
|
-
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>;
|
|
566
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,7 +1,8 @@
|
|
|
1
|
+
import { UIKitSettings } from "@cometchat/uikit-shared";
|
|
1
2
|
import { CardMessage, CometChatLocalize, CustomInteractiveMessage, FormMessage } from "@cometchat/uikit-resources";
|
|
2
|
-
import { CometChatSoundManager } from '@cometchat/uikit-shared';
|
|
3
3
|
import { ExtensionsDataSource } from "../Framework/ExtensionDataSource";
|
|
4
|
-
import {
|
|
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: {
|
|
@@ -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>;
|
|
@@ -11,8 +12,6 @@ export declare abstract class DataSource {
|
|
|
11
12
|
abstract getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
12
13
|
abstract getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
13
14
|
abstract getFileMessageTemplate(): CometChatMessageTemplate;
|
|
14
|
-
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
15
|
-
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
16
15
|
abstract getGroupActionTemplate(): CometChatMessageTemplate;
|
|
17
16
|
abstract getAllMessageTemplates(theme?: CometChatTheme): Array<CometChatMessageTemplate>;
|
|
18
17
|
abstract getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
@@ -27,4 +26,5 @@ export declare abstract class DataSource {
|
|
|
27
26
|
abstract getDeleteOption(theme: CometChatTheme): CometChatMessageOption;
|
|
28
27
|
abstract getReplyInThreadOption(theme: CometChatTheme): CometChatMessageOption;
|
|
29
28
|
abstract getEditOption(theme: CometChatTheme): CometChatMessageOption;
|
|
29
|
+
abstract getAIOptions(theme: CometChatTheme, id?: Map<String, any>, aiOptionsStyles?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
30
30
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
|
-
import { ComposerId } from "../Utils/MessageUtils";
|
|
1
|
+
import { CometChatActionsView, CometChatMessageComposerAction, CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
3
2
|
import { DataSource } from "./DataSource";
|
|
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);
|
|
@@ -14,8 +15,6 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
14
15
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
15
16
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
16
17
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
17
|
-
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
18
|
-
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
19
18
|
getGroupActionTemplate(): CometChatMessageTemplate;
|
|
20
19
|
getAllMessageTemplates(): CometChatMessageTemplate[];
|
|
21
20
|
getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
@@ -30,4 +29,5 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
30
29
|
getAuxiliaryOptions(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): any;
|
|
31
30
|
getId(): string;
|
|
32
31
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
32
|
+
getAIOptions(theme: CometChatTheme, id?: Map<String, any>, aiOptionsStyles?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
33
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 {
|
|
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;
|
|
@@ -20,8 +20,6 @@ export declare class MessageUtils implements DataSource {
|
|
|
20
20
|
getImageMessageTemplate(): CometChatMessageTemplate;
|
|
21
21
|
getGroupActionTemplate(): CometChatMessageTemplate;
|
|
22
22
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
23
|
-
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
24
|
-
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
25
23
|
getAllMessageTemplates(): Array<CometChatMessageTemplate>;
|
|
26
24
|
getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
27
25
|
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatMessageOption>;
|
|
@@ -38,6 +36,7 @@ export declare class MessageUtils implements DataSource {
|
|
|
38
36
|
fileAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
39
37
|
getAttachmentOptions(theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group, id?: ComposerId): CometChatMessageComposerAction[];
|
|
40
38
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
39
|
+
getAIOptions(theme: CometChatTheme, id?: Map<String, any>): Array<CometChatMessageComposerAction | CometChatActionsView>;
|
|
41
40
|
}
|
|
42
41
|
export declare type ComposerId = {
|
|
43
42
|
parentMessageId: number | null;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CometChatThemeService } from "./../../../../CometChatTheme.service";
|
|
2
|
+
import { CometChatException } from "@cometchat/chat-sdk-javascript";
|
|
3
|
+
import { OnInit, TemplateRef, ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
4
|
+
import { AvatarStyle, MessageInputStyle, DateStyle } from "@cometchat/uikit-elements";
|
|
5
|
+
import { CometChatMessageTemplate, MessageListAlignment, MessageBubbleAlignment, DatePatterns } from "@cometchat/uikit-resources";
|
|
6
|
+
import { BaseStyle } from "@cometchat/uikit-shared";
|
|
7
|
+
import { Subscription } from "rxjs";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AIAssistBotMessageListComponent implements OnInit {
|
|
10
|
+
private ref;
|
|
11
|
+
private themeService;
|
|
12
|
+
messagesList: CometChat.BaseMessage[];
|
|
13
|
+
botMessagesList: CometChat.BaseMessage[];
|
|
14
|
+
hideSearch: boolean;
|
|
15
|
+
footerView: TemplateRef<any>;
|
|
16
|
+
user: CometChat.User;
|
|
17
|
+
group: CometChat.Group;
|
|
18
|
+
currentAskAIBot: any;
|
|
19
|
+
subtitleText: string;
|
|
20
|
+
sendIconUrl: string;
|
|
21
|
+
waitIcon: string;
|
|
22
|
+
errorIcon: string;
|
|
23
|
+
botFirstMessageText: string;
|
|
24
|
+
closeButtonIconURL: string;
|
|
25
|
+
sendButtonIconURL: string;
|
|
26
|
+
avatarStyle: AvatarStyle;
|
|
27
|
+
aiBotChatHeaderStyle: any;
|
|
28
|
+
aiBotChatContainerStyle: any;
|
|
29
|
+
datePattern: DatePatterns;
|
|
30
|
+
bubbleDateStyle: DateStyle;
|
|
31
|
+
inputRef: ElementRef;
|
|
32
|
+
ccChatChanged: Subscription;
|
|
33
|
+
messageTemplate: CometChatMessageTemplate[];
|
|
34
|
+
alignment: MessageListAlignment;
|
|
35
|
+
loggedInUser: CometChat.User;
|
|
36
|
+
receipts: any;
|
|
37
|
+
currentMessageObject: CometChat.BaseMessage | null;
|
|
38
|
+
typesMap: any;
|
|
39
|
+
messageTypesMap: any;
|
|
40
|
+
inputValue: string;
|
|
41
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
setAvatarStyle(): void;
|
|
44
|
+
setAiBotChatHeader(): void;
|
|
45
|
+
setAiBotChatContainerStyle(): void;
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
subscribeToEvents(): void;
|
|
48
|
+
unSubscribeToEvent(): void;
|
|
49
|
+
onError(error: CometChatException): void;
|
|
50
|
+
generateRandomString(length: any): string;
|
|
51
|
+
handleClick(): void;
|
|
52
|
+
setMessageBubbleStyle(msg: CometChat.BaseMessage): BaseStyle;
|
|
53
|
+
getBubbleAlignment(message: CometChat.BaseMessage): MessageBubbleAlignment.left | MessageBubbleAlignment.right;
|
|
54
|
+
messageInputStyle: MessageInputStyle;
|
|
55
|
+
sendButtonStyle: any;
|
|
56
|
+
messageInputChanged: (event: any) => void;
|
|
57
|
+
closeButtonStyle: any;
|
|
58
|
+
labelStyle: any;
|
|
59
|
+
onCloseDetails(): void;
|
|
60
|
+
setMessagesStyle(): void;
|
|
61
|
+
getBotTitleStyle(): {
|
|
62
|
+
font: string;
|
|
63
|
+
color: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
getBotSubtitleStyle(): {
|
|
66
|
+
font: string;
|
|
67
|
+
color: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AIAssistBotMessageListComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAssistBotMessageListComponent, "aiassist-bot-message-list", never, { "hideSearch": "hideSearch"; "footerView": "footerView"; "user": "user"; "group": "group"; "currentAskAIBot": "currentAskAIBot"; "subtitleText": "subtitleText"; "sendIconUrl": "sendIconUrl"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "botFirstMessageText": "botFirstMessageText"; "closeButtonIconURL": "closeButtonIconURL"; "sendButtonIconURL": "sendButtonIconURL"; "avatarStyle": "avatarStyle"; "aiBotChatHeaderStyle": "aiBotChatHeaderStyle"; "aiBotChatContainerStyle": "aiBotChatContainerStyle"; "datePattern": "datePattern"; "alignment": "alignment"; }, {}, never, never>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./aiassist-bot-message-list/aiassist-bot-message-list.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../../CometChatList/cometchat-list.module";
|
|
5
|
+
import * as i4 from "../../../CometChatMessageBubble/cometchat-message-bubble.module";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class AIAssistBotMessageList {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AIAssistBotMessageList, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AIAssistBotMessageList, [typeof i1.AIAssistBotMessageListComponent], [typeof i2.CommonModule, typeof i3.CometChatList, typeof i4.CometChatMessageBubble, typeof i5.FormsModule], [typeof i1.AIAssistBotMessageListComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AIAssistBotMessageList>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_4792_74815)">
|
|
3
|
+
<path d="M14.1094 16.2188H13.4062C13.0333 16.2188 12.6756 16.0706 12.4119 15.8069C12.1482 15.5431 12 15.1855 12 14.8125V11.2969C12 11.1104 11.9259 10.9316 11.7941 10.7997C11.6622 10.6678 11.4834 10.5938 11.2969 10.5938H10.5938" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M11.6484 7.78125C11.5552 7.78125 11.4658 7.74421 11.3998 7.67828C11.3339 7.61235 11.2969 7.52293 11.2969 7.42969C11.2969 7.33645 11.3339 7.24703 11.3998 7.1811C11.4658 7.11516 11.5552 7.07812 11.6484 7.07812" stroke="black" stroke-width="1.5"/>
|
|
5
|
+
<path d="M11.6484 7.78125C11.7417 7.78125 11.8311 7.74421 11.897 7.67828C11.963 7.61235 12 7.52293 12 7.42969C12 7.33645 11.963 7.24703 11.897 7.1811C11.8311 7.11516 11.7417 7.07812 11.6484 7.07812" stroke="black" stroke-width="1.5"/>
|
|
6
|
+
<path d="M12 22.5469C17.8247 22.5469 22.5469 17.8247 22.5469 12C22.5469 6.17531 17.8247 1.45312 12 1.45312C6.17531 1.45312 1.45312 6.17531 1.45312 12C1.45312 17.8247 6.17531 22.5469 12 22.5469Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_4792_74815">
|
|
10
|
+
<rect width="24" height="24" fill="white"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.44531 0.847656L9.30781 6.71016C9.34591 6.7482 9.37613 6.79338 9.39675 6.84311C9.41738 6.89285 9.42799 6.94616 9.42799 7C9.42799 7.05384 9.41738 7.10715 9.39675 7.15689C9.37613 7.20662 9.34591 7.2518 9.30781 7.28984L3.44531 13.1523" stroke="#141414" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.02825 7.46456L3.47884 7.91556C3.71313 8.14977 4.03084 8.28134 4.36212 8.28134C4.6934 8.28134 5.01112 8.14977 5.2454 7.91556L5.90796 7.25301C5.96601 7.195 6.01206 7.12612 6.04348 7.05031C6.0749 6.9745 6.09107 6.89324 6.09107 6.81117C6.09107 6.72911 6.0749 6.64785 6.04348 6.57204C6.01206 6.49622 5.96601 6.42735 5.90796 6.36934L4.6199 5.08088C4.55683 5.01726 4.4808 4.96794 4.39699 4.93629C4.31317 4.90463 4.22353 4.89138 4.13414 4.89742C4.04475 4.90346 3.9577 4.92866 3.87891 4.97131C3.80012 5.01396 3.73143 5.07306 3.67749 5.1446C2.32779 6.97692 3.14569 8.90668 4.80439 10.5658C6.46309 12.2248 8.39414 13.0419 10.2277 11.6922C10.2991 11.6381 10.358 11.5693 10.4004 11.4904C10.4429 11.4115 10.4678 11.3244 10.4736 11.235C10.4794 11.1456 10.4659 11.056 10.4341 10.9723C10.4022 10.8886 10.3527 10.8127 10.289 10.7498L9.00048 9.46137C8.94247 9.40333 8.87359 9.35728 8.79778 9.32586C8.72196 9.29445 8.6407 9.27828 8.55863 9.27828C8.47657 9.27828 8.39531 9.29445 8.31949 9.32586C8.24368 9.35728 8.1748 9.40333 8.11679 9.46137L7.45422 10.1239C7.33819 10.2399 7.24614 10.3777 7.18335 10.5293C7.12055 10.6808 7.08823 10.8433 7.08823 11.0074C7.08823 11.1715 7.12055 11.3339 7.18335 11.4855C7.24614 11.6371 7.33819 11.7748 7.45422 11.8909L7.91231 12.3464" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M8.31006 7.06025L12.3704 3" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M10.8087 7.06014H8.31006V4.56152" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2.74414 12.6866C2.05378 12.6866 1.49414 12.127 1.49414 11.4366V4.56348C1.49414 3.87312 2.05378 3.31348 2.74414 3.31348H9.75069C10.441 3.31348 11.0007 3.87312 11.0007 4.56348V11.4366C11.0007 12.127 10.441 12.6866 9.75069 12.6866H2.74414Z" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M11.3257 9.56328C11.1254 9.45359 11.001 9.24347 11.001 9.01515V6.98597C11.001 6.75765 11.1254 6.5475 11.3257 6.4378L13.5804 5.20274C13.9969 4.97458 14.5056 5.27598 14.5056 5.75089V10.2502C14.5056 10.7251 13.9969 11.0265 13.5804 10.7983L11.3257 9.56328Z" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6.73097 10.0147H4.1499V7.43359" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M8.30195 5.85107L4.2251 9.92794" stroke="#727272" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|