@cometchat/chat-uikit-angular 4.1.1 → 4.3.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.
Files changed (71) hide show
  1. package/Calls/CallingExtensionDecorator.d.ts +1 -1
  2. package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +32 -26
  3. package/CometChatDetails/cometchat-details/cometchat-details.component.d.ts +3 -3
  4. package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts +24 -14
  5. package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts +3 -2
  6. package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +84 -5
  7. package/CometChatMessageComposer/cometchat-message-composer.module.d.ts +2 -1
  8. package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +258 -51
  9. package/CometChatMessages/cometchat-messages/cometchat-messages.component.d.ts +1 -0
  10. package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +7 -0
  11. package/CometChatUserMemberWrapper/cometchat-user-member-wrapper.component.d.ts +41 -0
  12. package/CometChatUserMemberWrapper/cometchat-user-member-wrapper.module.d.ts +11 -0
  13. package/CometChatUsers/cometchat-users/cometchat-users.component.d.ts +22 -12
  14. package/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
  15. package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
  16. package/Extensions/PollsExtension/PollsExtensionDecorator.d.ts +1 -1
  17. package/Extensions/Stickers/StickersExtensionDecorator.d.ts +3 -3
  18. package/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +1 -1
  19. package/README.md +7 -8
  20. package/Shared/CometChatUIkit/CometChatUIKit.d.ts +8 -1
  21. package/Shared/Framework/DataSource.d.ts +11 -3
  22. package/Shared/Framework/DataSourceDecorator.d.ts +11 -3
  23. package/Shared/Utils/MessageUtils.d.ts +100 -2
  24. package/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.d.ts +2 -2
  25. package/assets/InfoSimpleIcon.svg +4 -0
  26. package/assets/empty-slot.svg +14 -0
  27. package/assets/message-delivered.svg +4 -3
  28. package/assets/message-read.svg +4 -3
  29. package/assets/threadIndicatorIcon.svg +11 -0
  30. package/esm2020/Calls/CallingExtensionDecorator.mjs +26 -13
  31. package/esm2020/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.mjs +1 -1
  32. package/esm2020/CometChatContacts/cometchat-contacts/cometchat-contacts.component.mjs +3 -3
  33. package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +286 -130
  34. package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.mjs +3 -4
  35. package/esm2020/CometChatDetails/cometchat-details/cometchat-details.component.mjs +6 -8
  36. package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +155 -58
  37. package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.mjs +3 -3
  38. package/esm2020/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.mjs +11 -5
  39. package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +354 -64
  40. package/esm2020/CometChatMessageComposer/cometchat-message-composer.module.mjs +5 -4
  41. package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +3 -3
  42. package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +2 -2
  43. package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +947 -317
  44. package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +10 -4
  45. package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +52 -3
  46. package/esm2020/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.mjs +1 -1
  47. package/esm2020/CometChatUserMemberWrapper/cometchat-user-member-wrapper.component.mjs +75 -0
  48. package/esm2020/CometChatUserMemberWrapper/cometchat-user-member-wrapper.module.mjs +21 -0
  49. package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +114 -36
  50. package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +1 -1
  51. package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.mjs +18 -13
  52. package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.mjs +19 -13
  53. package/esm2020/Extensions/PollsExtension/PollsExtensionDecorator.mjs +10 -8
  54. package/esm2020/Extensions/Stickers/StickersExtensionDecorator.mjs +22 -18
  55. package/esm2020/Extensions/TextModerator/TextModeratorExtensionDecorator.mjs +62 -7
  56. package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +51 -3
  57. package/esm2020/Shared/Framework/DataSource.mjs +1 -1
  58. package/esm2020/Shared/Framework/DataSourceDecorator.mjs +27 -3
  59. package/esm2020/Shared/Utils/MessageUtils.mjs +261 -10
  60. package/esm2020/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.mjs +5 -4
  61. package/esm2020/public-api.mjs +4 -4
  62. package/fesm2015/cometchat-chat-uikit-angular.mjs +3941 -2204
  63. package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
  64. package/fesm2020/cometchat-chat-uikit-angular.mjs +4542 -2786
  65. package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
  66. package/package.json +6 -6
  67. package/public-api.d.ts +3 -3
  68. package/Extensions/Reactions/ReactionExtension.d.ts +0 -5
  69. package/Extensions/Reactions/ReactionExtensionDecorator.d.ts +0 -9
  70. package/esm2020/Extensions/Reactions/ReactionExtension.mjs +0 -12
  71. package/esm2020/Extensions/Reactions/ReactionExtensionDecorator.mjs +0 -31
@@ -1,7 +1,7 @@
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";
1
+ import { ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
2
+ import { AvatarStyle, BackdropStyle, BaseStyle, CallscreenStyle, ConfirmDialogStyle, DateStyle, DocumentBubbleStyle, EmojiKeyboardStyle, FullScreenViewerStyle, MenuListStyle, PanelStyle, ReceiptStyle } from "@cometchat/uikit-elements";
3
+ import { CardBubbleStyle, FormBubbleStyle, ImageModerationStyle, MessageInformationConfiguration, MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, SchedulerBubbleStyle, SmartRepliesConfiguration, SmartRepliesStyle, ReactionsStyle, ReactionListConfiguration, ReactionInfoConfiguration, ReactionsConfiguration, CometChatTextFormatter } from "@cometchat/uikit-shared";
4
+ import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme, CometChatUIKitConstants, DatePatterns, DocumentIconAlignment, MessageBubbleAlignment, MessageListAlignment, SchedulerMessage, States, TimestampAlignment, localize } from "@cometchat/uikit-resources";
5
5
  import { LinkPreviewStyle } from "@cometchat/uikit-shared";
6
6
  import { CometChat } from "@cometchat/chat-sdk-javascript";
7
7
  import { CometChatThemeService } from "../../CometChatTheme.service";
@@ -36,7 +36,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
36
36
  whiteboardBubble: TemplateRef<any>;
37
37
  popoverRef: any;
38
38
  directCalling: TemplateRef<any>;
39
+ schedulerBubble: TemplateRef<any>;
39
40
  pollBubble: TemplateRef<any>;
41
+ messageBubbleRef: QueryList<ElementRef>;
40
42
  hideError: boolean;
41
43
  errorStateView: TemplateRef<any>;
42
44
  loadingStateView: TemplateRef<any>;
@@ -67,17 +69,22 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
67
69
  scrollToBottomOnNewMessages: boolean;
68
70
  thresholdValue: number;
69
71
  unreadMessageThreshold: number;
72
+ reactionsConfiguration: ReactionsConfiguration;
73
+ disableReactions: Boolean;
74
+ emojiKeyboardStyle: EmojiKeyboardStyle;
70
75
  apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
71
76
  onThreadRepliesClick: ((message: CometChat.BaseMessage, view: TemplateRef<any>) => void) | null;
72
77
  headerView: TemplateRef<any>;
73
78
  footerView: TemplateRef<any>;
74
79
  parentMessageId: number;
80
+ threadIndicatorIcon: string;
75
81
  avatarStyle: AvatarStyle;
76
82
  backdropStyle: BackdropStyle;
77
83
  dateSeparatorStyle: DateStyle;
78
84
  messageListStyle: MessageListStyle;
79
85
  onError: ((error: CometChat.CometChatException) => void) | null;
80
86
  messageInformationConfiguration: MessageInformationConfiguration;
87
+ disableMentions: boolean;
81
88
  state: States;
82
89
  optionsStyle: MenuListStyle;
83
90
  receiptStyle: ReceiptStyle;
@@ -197,8 +204,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
197
204
  ccCallAccepted: Subscription;
198
205
  ccGroupMemberScopeChanged: Subscription;
199
206
  onTextMessageReceived: Subscription;
207
+ onMessageReactionAdded: Subscription;
208
+ onMessageReactionRemoved: Subscription;
200
209
  onCustomMessageReceived: Subscription;
201
210
  onFormMessageReceived: Subscription;
211
+ onSchedulerMessageReceived: Subscription;
202
212
  onCardMessageReceived: Subscription;
203
213
  onCustomInteractiveMessageReceived: Subscription;
204
214
  onMediaMessageReceived: Subscription;
@@ -236,25 +246,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
236
246
  connectionListenerId: string;
237
247
  lastMessageId: number;
238
248
  isConnectionReestablished: boolean;
239
- getThreadViewStyle(message: CometChat.BaseMessage): {
240
- height: string;
241
- width: string;
242
- border: string;
243
- borderRadius: string;
244
- background: string;
245
- padding: string;
246
- buttonIconTint: string | undefined;
247
- display: string;
248
- flexFlow: string;
249
- alignItems: string;
250
- justifyContent: string;
251
- buttonTextColor: string | undefined;
252
- };
249
+ textFormatters?: Array<CometChatTextFormatter>;
253
250
  closeIconURL: string;
254
251
  threadOpenIcon: string;
255
252
  confirmDialogStyle: ConfirmDialogStyle;
256
253
  messageToReact: CometChat.BaseMessage | null;
257
- private ConversationSummarySubscription;
258
254
  limit: number;
259
255
  types: string[];
260
256
  categories: string[];
@@ -265,28 +261,15 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
265
261
  addReaction: (event: any) => void;
266
262
  getCallBubbleTitle(message: CometChat.BaseMessage): any;
267
263
  getCallActionMessage: (call: CometChat.Call) => string;
268
- reactToMessages(emoji: string): void;
269
- hasReaction(message: any): boolean;
270
264
  ngOnDestroy(): void;
271
- reactionsStyle(message: CometChat.BaseMessage): {
272
- height: string;
273
- width: string;
274
- border: string;
275
- borderRadius: string;
276
- background: string;
277
- reactionEmojiFontSize: string;
278
- reactionCountTextFont: string;
279
- reactionCountTextColor: string | undefined;
280
- activeReactionCountTextColor: string | undefined;
281
- activeReactionCountTextFont: string;
282
- addReactionIconTint: string | undefined;
283
- activeReactionBackground: string | undefined;
284
- reactionBackground: string;
285
- reactionBorder: string;
286
- activeReactionBorder: string;
287
- reactionBorderRadius: string;
288
- addReactionIconBackground: string | undefined;
289
- };
265
+ /**
266
+ * Creates a new ReactionsStyle object with the defined or default styles.
267
+ *
268
+ * @returns {ReactionsStyle} Returns an instance of ReactionsStyle with the set or default styles.
269
+ */
270
+ getReactionsStyle(): ReactionsStyle;
271
+ isMobileView: () => boolean;
272
+ getBubbleById(id: string): ElementRef | undefined;
290
273
  showEmojiKeyboard: (id: number, event: any) => void;
291
274
  setBubbleView: () => void;
292
275
  openThreadView: (message: CometChat.BaseMessage) => void;
@@ -303,12 +286,27 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
303
286
  isTranslated(message: CometChat.TextMessage): any;
304
287
  updateTranslatedMessage: (translation: any) => void;
305
288
  translateMessage: (id: number) => void;
306
- setOptionsCallback(options: CometChatMessageOption[]): CometChatMessageOption[];
289
+ setOptionsCallback(options: CometChatMessageOption[], id: number): CometChatMessageOption[];
307
290
  /**
308
291
  * send message options based on type
309
292
  * @param {CometChat.BaseMessage} msgObject
310
293
  */
311
294
  setMessageOptions(msgObject: CometChat.BaseMessage): CometChatMessageOption[];
295
+ /**
296
+ * Reacts to a message by either adding or removing the reaction.
297
+ *
298
+ * @param {string} emoji - The emoji used for the reaction.
299
+ * @param {CometChat.BaseMessage} message - The message that was reacted to.
300
+ */
301
+ reactToMessage(emoji: string, message: CometChat.BaseMessage): void;
302
+ /**
303
+ * Filters out the 'add reaction' option if reactions are disabled.
304
+ *
305
+ * @param {CometChatMessageOption[]} options - The original set of message options.
306
+ * @returns {CometChatMessageOption[]} The filtered set of message options.
307
+ */
308
+ filterEmojiOptions: (options: CometChatMessageOption[]) => CometChatMessageOption[];
309
+ getClonedReactionObject(message: CometChat.BaseMessage): import("@cometchat/chat-sdk-javascript").BaseMessage;
312
310
  /**
313
311
  * passing style based on message object
314
312
  * @param {CometChat.BaseMessage} messageObject
@@ -318,9 +316,47 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
318
316
  getWhiteboardDocument(message: CometChat.CustomMessage): any;
319
317
  openLinkURL(event: any): void;
320
318
  getSticker(message: CometChat.CustomMessage): any;
319
+ /**
320
+ * Checks if the 'statusInfoView' is present in the default template provided by the user
321
+ * If present, returns the user-defined template, otherwise returns null.
322
+ *
323
+ * @param message Message object for which the status info view needs to be fetched
324
+ * @returns User-defined TemplateRef if present, otherwise null
325
+ */
321
326
  getContentView: (message: CometChat.BaseMessage) => TemplateRef<any> | null;
327
+ /**
328
+ * Checks if the 'headerView' is present in the default template provided by the user
329
+ * If present, returns the user-defined template, otherwise returns null.
330
+ *
331
+ * @param message Message object for which the status info view needs to be fetched
332
+ * @returns User-defined TemplateRef if present, otherwise null
333
+ */
322
334
  getHeaderView(message: CometChat.BaseMessage): TemplateRef<any> | null;
335
+ /**
336
+ * Checks if the 'footerView' is present in the default template provided by the user
337
+ * If present, returns the user-defined template, otherwise returns null.
338
+ *
339
+ * @param message Message object for which the status info view needs to be fetched
340
+ * @returns User-defined TemplateRef if present, otherwise null
341
+ */
323
342
  getFooterView(message: CometChat.BaseMessage): TemplateRef<any> | null;
343
+ /**
344
+ * Checks if the 'bottomView' is present in the default template provided by the user
345
+ * If present, returns the user-defined template, otherwise returns null.
346
+ *
347
+ * @param message Message object for which the status info view needs to be fetched
348
+ * @returns User-defined TemplateRef if present, otherwise null
349
+ */
350
+ getBottomView(message: CometChat.BaseMessage): TemplateRef<any> | null;
351
+ /**
352
+ * Checks if the 'statusInfoView' is present in the default template provided by the user
353
+ * If present, returns the user-defined template, otherwise returns null.
354
+ *
355
+ * @param message Message object for which the status info view needs to be fetched
356
+ * @returns User-defined TemplateRef if present, otherwise null
357
+ */
358
+ getStatusInfoView(message: CometChat.BaseMessage): TemplateRef<any> | null;
359
+ isAudioOrVideoMessage(message: CometChat.BaseMessage): boolean;
324
360
  setBubbleAlignment: (message: CometChat.BaseMessage) => MessageBubbleAlignment;
325
361
  getFormMessageBubbleStyle(): FormBubbleStyle;
326
362
  getCardMessageBubbleStyle(): CardBubbleStyle;
@@ -353,6 +389,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
353
389
  setTextBubbleStyle: (message: CometChat.BaseMessage) => {
354
390
  textFont: string;
355
391
  textColor: string | undefined;
392
+ bubblePadding: string;
393
+ } | {
394
+ textFont: string;
395
+ textColor: string | undefined;
396
+ bubblePadding?: undefined;
356
397
  };
357
398
  setFileBubbleStyle(message: CometChat.BaseMessage): any;
358
399
  ngAfterViewInit(): void;
@@ -384,7 +425,18 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
384
425
  setAvatarStyle(): void;
385
426
  setDateStyle(): void;
386
427
  setMessagesStyle(): void;
387
- setReceiptStyle(): void;
428
+ getReceiptStyle(message: CometChat.BaseMessage): {
429
+ waitIconTint?: string | undefined;
430
+ sentIconTint?: string | undefined;
431
+ deliveredIconTint?: string | undefined;
432
+ readIconTint?: string | undefined;
433
+ errorIconTint?: string | undefined;
434
+ height?: string | undefined;
435
+ width?: string | undefined;
436
+ border?: string | undefined;
437
+ borderRadius?: string | undefined;
438
+ background?: string | undefined;
439
+ };
388
440
  createRequestBuilder(): void;
389
441
  computeUnreadCount(): void;
390
442
  /**
@@ -409,6 +461,14 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
409
461
  * @param {any=null} options
410
462
  */
411
463
  messageUpdate(key?: string | null, message?: CometChat.MessageReceipt | CometChat.BaseMessage | any, group?: CometChat.Group | null, options?: any): void;
464
+ /**
465
+ * Updates a message's reactions based on a new reaction.
466
+ *
467
+ * @param {CometChat.ReactionEvent} message - The new message reaction.
468
+ * @param {boolean} isAdded - True if the reaction was added, false if it was removed.
469
+ * @returns {boolean} Returns false if the message was not found, true otherwise.
470
+ */
471
+ onReactionUpdated(message: CometChat.ReactionEvent, isAdded: boolean): boolean;
412
472
  /**
413
473
  * translate message then call update message
414
474
  * @param {CometChat.BaseMessage} message
@@ -478,14 +538,6 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
478
538
  * @param {string} type
479
539
  */
480
540
  customMessageReceivedHandler: (message: CometChat.BaseMessage) => void;
481
- /**
482
- * TrackBy method to update UI when a change is detected
483
- */
484
- /**
485
- * @param {number} index
486
- * @param {any} item
487
- */
488
- getMessageId(index: number, item: any): any;
489
541
  /**
490
542
  * Compares two dates and sets Date on a a new day
491
543
  */
@@ -494,6 +546,13 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
494
546
  * @param {number} secondDate
495
547
  */
496
548
  isDateDifferent(firstDate: number | undefined, secondDate: number | undefined): boolean;
549
+ /**
550
+ * Returns formatters for the text bubbles
551
+ *
552
+ * @param {CometChat.BaseMessage} message
553
+ * @returns
554
+ */
555
+ getTextFormatters: (message: CometChat.BaseMessage) => CometChatTextFormatter[];
497
556
  /**
498
557
  * prepend Fetched Messages
499
558
  * @param {CometChat.BaseMessage} messages
@@ -513,6 +572,14 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
513
572
  * @param {CometChat.TextMessage} object
514
573
  */
515
574
  onCopyMessage: (object: CometChat.TextMessage) => void;
575
+ /**
576
+ * This is to ensure that the uid doesn't get copied when clicking on the copy option.
577
+ * This function changes the uid regex to '@userName' without formatting
578
+ *
579
+ * @param {CometChat.TextMessage} message
580
+ * @returns
581
+ */
582
+ getMentionsTextWithoutStyle(message: CometChat.TextMessage): string;
516
583
  /**
517
584
  * callback for deleteMessage
518
585
  * @param {CometChat.BaseMessage} object
@@ -528,21 +595,76 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
528
595
  onEditMessage: (object: CometChat.BaseMessage) => void;
529
596
  updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
530
597
  removeMessage: (message: CometChat.BaseMessage) => void;
598
+ /**
599
+ * Returns the style configuration for the thread view of a message.
600
+ *
601
+ * @param {CometChat.BaseMessage} message - The message that the style configuration is for.
602
+ * @returns {Object} The style configuration object.
603
+ */
604
+ getThreadViewStyle(message: CometChat.BaseMessage): {
605
+ height: string;
606
+ width: string;
607
+ border: string;
608
+ borderRadius: string;
609
+ background: string;
610
+ buttonIconTint: string | undefined;
611
+ display: string;
612
+ flexFlow: string;
613
+ alignItems: string;
614
+ buttonTextColor: string | undefined;
615
+ buttonTextFont: string | undefined;
616
+ iconHeight: string;
617
+ iconWidth: string;
618
+ gap: string;
619
+ };
620
+ /**
621
+ * Checks if a message was sent by the currently logged in user.
622
+ *
623
+ * @param {CometChat.BaseMessage} message - The message to check.
624
+ * @returns {boolean} Returns true if the message is sent by the logged in user, false otherwise.
625
+ */
626
+ isSentByMe(message: CometChat.BaseMessage): boolean;
531
627
  deleteMessage: (message: CometChat.BaseMessage) => void;
532
628
  scrollToBottom: () => void;
533
629
  showHeaderTitle(message: CometChat.BaseMessage): boolean;
630
+ /**
631
+ * Updates the count of unread reply messages for a given message.
632
+ *
633
+ * @param {CometChat.BaseMessage} message - The message for which the reply count is being updated.
634
+ */
635
+ updateUnreadReplyCount: (message: CometChat.BaseMessage) => void;
636
+ /**
637
+ * Method to subscribe the required Rxjs events when the CometChatMessageListComponent loads
638
+ */
534
639
  subscribeToEvents(): void;
535
640
  closeSmartReply: () => void;
536
641
  closeConversationSummary: () => void;
642
+ showStatusInfo(message: CometChat.BaseMessage): boolean;
537
643
  sendReply: (event: any) => void;
538
644
  sendConversationStarter: (event: any) => void;
539
645
  fetchConversationStarter(): void;
540
646
  fetchConversationSummary(): string[];
541
647
  getReplies(): string[] | null;
648
+ /**
649
+ * Method to unsubscribe all the Rxjs events when the CometChatMessageListComponent gets destroy
650
+ */
542
651
  unsubscribeToEvents(): void;
652
+ /**
653
+ * Returns the appropriate thread icon based on the sender of the message.
654
+ *
655
+ * @param {CometChat.BaseMessage} message - The message for which the thread icon is being determined.
656
+ * @returns {boolean} The icon for the thread. If the message was sent by the logged in user, returns 'threadRightArrow'. Otherwise, returns 'threadIndicatorIcon'.
657
+ */
658
+ getThreadIconAlignment(message: CometChat.BaseMessage): boolean;
543
659
  /**
544
660
  * styling part
545
661
  */
662
+ getBubbleDateStyle: (message: CometChat.BaseMessage) => {
663
+ textColor: string | undefined;
664
+ textFont: string;
665
+ padding: string;
666
+ display: string;
667
+ };
546
668
  chatsListStyle: () => {
547
669
  height: string | undefined;
548
670
  background: string | undefined;
@@ -575,6 +697,59 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
575
697
  conversationSummaryLoader: () => {
576
698
  iconTint: string | undefined;
577
699
  };
700
+ getSchedulerBubbleStyle: (messgae: SchedulerMessage) => SchedulerBubbleStyle;
701
+ /**
702
+ * Configuration for the reaction list.
703
+ * This includes styles for the avatar, list items, and reaction history.
704
+ * @returns {ReactionListConfiguration} - The configured reaction list.
705
+ */
706
+ getReactionListConfiguration(): ReactionListConfiguration;
707
+ /**
708
+ * Handles when a reaction item is clicked.
709
+ * @param {CometChat.Reaction} reaction - The clicked reaction.
710
+ * @param {CometChat.BaseMessage} message - The message the reaction is associated with.
711
+ */
712
+ onReactionItemClicked?: ((reaction: CometChat.Reaction, message: CometChat.BaseMessage) => void) | undefined;
713
+ /**
714
+ * Handles adding a reaction when clicked.
715
+ * @param {CometChat.ReactionCount} reaction - The clicked reaction.
716
+ * @param {CometChat.BaseMessage} message - The message the reaction is associated with.
717
+ */
718
+ addReactionOnClick: (reaction: CometChat.ReactionCount, message: CometChat.BaseMessage) => void;
719
+ /**
720
+ * Configuration for the reaction info.
721
+ * This includes styles for the reaction info display.
722
+ * @returns {ReactionInfoConfiguration} - The configured reaction info.
723
+ */
724
+ getReactionInfoConfiguration(): ReactionInfoConfiguration;
725
+ /**
726
+ * Get style object based on message type.
727
+ * @param {CometChat.BaseMessage} message - The message object.
728
+ * @return {object} The style object.
729
+ */
730
+ getStatusInfoStyle: (message: CometChat.BaseMessage) => {
731
+ justifyContent: string;
732
+ height: string;
733
+ borderRadius: string;
734
+ padding: string;
735
+ paddingTop: string;
736
+ position: string;
737
+ marginTop: string;
738
+ marginRight: string;
739
+ background: string | undefined;
740
+ width: string;
741
+ alignSelf: string;
742
+ marginBottom: string;
743
+ display: string;
744
+ alignItems: string;
745
+ gap: string;
746
+ } | {
747
+ justifyContent: string;
748
+ alignItems: string;
749
+ padding: string;
750
+ display: string;
751
+ gap: string;
752
+ };
578
753
  wrapperStyle: () => {
579
754
  height: string | undefined;
580
755
  width: string | undefined;
@@ -585,6 +760,38 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
585
760
  listStyle: () => {
586
761
  height: string;
587
762
  };
763
+ /**
764
+ * Styling for reactions component
765
+ *
766
+ */
767
+ getReactionsWrapperStyle(message: CometChat.BaseMessage): {
768
+ width: string;
769
+ paddingTop: string;
770
+ boxSizing: string;
771
+ display: string;
772
+ marginTop: string;
773
+ justifyContent: string;
774
+ };
775
+ /**
776
+ * Styling for unread thread replies
777
+ * @returns LabelStyle
778
+ */
779
+ getUnreadRepliesCountStyle: () => {
780
+ borderRadius: string;
781
+ width: string;
782
+ height: string;
783
+ border: string;
784
+ background: string | undefined;
785
+ color: string | undefined;
786
+ font: string | undefined;
787
+ display: string;
788
+ justifyContent: string;
789
+ alignItems: string;
790
+ };
791
+ getThreadViewAlignment(message: CometChat.BaseMessage): {
792
+ display: string;
793
+ justifyContent: string;
794
+ };
588
795
  static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, 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>;
796
+ 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"; "reactionsConfiguration": "reactionsConfiguration"; "disableReactions": "disableReactions"; "emojiKeyboardStyle": "emojiKeyboardStyle"; "apiConfiguration": "apiConfiguration"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "threadIndicatorIcon": "threadIndicatorIcon"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; "disableMentions": "disableMentions"; "textFormatters": "textFormatters"; }, {}, never, never>;
590
797
  }
@@ -83,6 +83,7 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
83
83
  constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService, elementRef: ElementRef);
84
84
  ngOnInit(): void;
85
85
  subscribeToEvents(): void;
86
+ setDetailsTemplate(): import("@cometchat/uikit-resources").CometChatDetailsTemplate[] | undefined;
86
87
  unsubscribeToEvents(): void;
87
88
  setMessagesStyle(): void;
88
89
  getAuxilaryView(): any;
@@ -46,6 +46,13 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
46
46
  onMessagesRead: Subscription;
47
47
  onMessageDeleted: Subscription;
48
48
  onMessageEdited: Subscription;
49
+ onTextMessageReceived: Subscription;
50
+ onCustomMessageReceived: Subscription;
51
+ onFormMessageReceived: Subscription;
52
+ onSchedulerMessageReceived: Subscription;
53
+ onCardMessageReceived: Subscription;
54
+ onCustomInteractiveMessageReceived: Subscription;
55
+ onMediaMessageReceived: Subscription;
49
56
  constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
50
57
  ngOnInit(): void;
51
58
  ngOnChanges(change: SimpleChanges): void;
@@ -0,0 +1,41 @@
1
+ import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
2
+ import { UserMemberListType, UserPresencePlacement } from '@cometchat/uikit-resources';
3
+ import { CometChatThemeService } from '../CometChatTheme.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CometChatUserMemberWrapperComponent {
6
+ private themeService;
7
+ userMemberListType: UserMemberListType;
8
+ onItemClick: (userMember: CometChat.User | CometChat.GroupMember) => void;
9
+ listItemView: any;
10
+ avatarStyle: AvatarStyle;
11
+ statusIndicatorStyle: any;
12
+ searchKeyword: string;
13
+ group: CometChat.Group;
14
+ subtitleView?: any;
15
+ usersRequestBuilder: CometChat.UsersRequestBuilder;
16
+ disableUsersPresence: boolean;
17
+ userPresencePlacement: UserPresencePlacement;
18
+ hideSeperator: boolean;
19
+ loadingStateView: any;
20
+ onEmpty?: () => void;
21
+ onError?: (error: CometChat.CometChatException) => void;
22
+ groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder;
23
+ loadingIconUrl: string;
24
+ disableLoadingState: boolean;
25
+ userMemberListTypeEnum: typeof UserMemberListType;
26
+ constructor(themeService: CometChatThemeService);
27
+ listItemStyle: ListItemStyle;
28
+ getUsersStyle: () => {
29
+ border: string;
30
+ background: string | undefined;
31
+ borderRadius: string;
32
+ };
33
+ getGroupMemebersStyle: () => {
34
+ border: string;
35
+ padding: string;
36
+ background: string | undefined;
37
+ borderRadius: string;
38
+ };
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<CometChatUserMemberWrapperComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<CometChatUserMemberWrapperComponent, "cometchat-user-member-wrapper", never, { "userMemberListType": "userMemberListType"; "onItemClick": "onItemClick"; "listItemView": "listItemView"; "avatarStyle": "avatarStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "searchKeyword": "searchKeyword"; "group": "group"; "subtitleView": "subtitleView"; "usersRequestBuilder": "usersRequestBuilder"; "disableUsersPresence": "disableUsersPresence"; "userPresencePlacement": "userPresencePlacement"; "hideSeperator": "hideSeperator"; "loadingStateView": "loadingStateView"; "onEmpty": "onEmpty"; "onError": "onError"; "groupMemberRequestBuilder": "groupMemberRequestBuilder"; "loadingIconUrl": "loadingIconUrl"; "disableLoadingState": "disableLoadingState"; }, {}, never, never>;
41
+ }
@@ -0,0 +1,11 @@
1
+ import "@cometchat/uikit-elements";
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./cometchat-user-member-wrapper.component";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "../CometChatUsers/cometchat-users.module";
6
+ import * as i4 from "../CometChatGroupMembers/cometchat-group-members.module";
7
+ export declare class CometChatUserMemberWrapper {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CometChatUserMemberWrapper, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatUserMemberWrapper, [typeof i1.CometChatUserMemberWrapperComponent], [typeof i2.CommonModule, typeof i3.CometChatUsers, typeof i4.CometChatGroupMembers], [typeof i1.CometChatUserMemberWrapperComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<CometChatUserMemberWrapper>;
11
+ }
@@ -1,10 +1,11 @@
1
- import { ChangeDetectorRef, OnInit, TemplateRef } from '@angular/core';
2
- import { CometChat } from '@cometchat/chat-sdk-javascript';
3
- import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
4
- import { Subscription } from 'rxjs';
5
- import { CometChatOption, SelectionMode, TitleAlignment, States } from '@cometchat/uikit-resources';
6
- import { UsersStyle, ListStyle } from '@cometchat/uikit-shared';
7
- import { CometChatThemeService } from '../../CometChatTheme.service';
1
+ import { ChangeDetectorRef, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
2
+ import { CometChat } from "@cometchat/chat-sdk-javascript";
3
+ import { AvatarStyle, BaseStyle, ListItemStyle } from "@cometchat/uikit-elements";
4
+ import { Subscription } from "rxjs";
5
+ import { CometChatOption, SelectionMode, TitleAlignment, States } from "@cometchat/uikit-resources";
6
+ import { UsersStyle, ListStyle } from "@cometchat/uikit-shared";
7
+ import { CometChatThemeService } from "../../CometChatTheme.service";
8
+ import { UserPresencePlacement } from "@cometchat/uikit-resources";
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class CometChatUsersComponent implements OnInit {
10
11
  private ref;
@@ -24,7 +25,7 @@ export declare class CometChatUsersComponent implements OnInit {
24
25
  searchIconURL: string;
25
26
  hideSearch: boolean;
26
27
  title: string;
27
- onError: (error: CometChat.CometChatException) => void;
28
+ onError?: (error: CometChat.CometChatException) => void;
28
29
  emptyStateView: TemplateRef<any>;
29
30
  onSelect: (user: CometChat.User, selected: boolean) => void;
30
31
  errorStateView: TemplateRef<any>;
@@ -41,6 +42,11 @@ export declare class CometChatUsersComponent implements OnInit {
41
42
  avatarStyle: AvatarStyle;
42
43
  onItemClick: (user: CometChat.User) => void;
43
44
  searchKeyword: string;
45
+ onEmpty?: () => void;
46
+ userPresencePlacement: UserPresencePlacement;
47
+ disableLoadingState: boolean;
48
+ fetchingUsers: boolean;
49
+ fetchTimeOut: any;
44
50
  userChecked: string;
45
51
  listStyle: ListStyle;
46
52
  usersRequest: any;
@@ -54,14 +60,18 @@ export declare class CometChatUsersComponent implements OnInit {
54
60
  requestBuilder: CometChat.UsersRequest;
55
61
  firstReload: boolean;
56
62
  connectionListenerId: string;
63
+ previousSearchKeyword: string;
57
64
  /**
58
- * Events
59
- */
65
+ * Events
66
+ */
60
67
  ccUserBlocked: Subscription;
61
68
  ccUserUnBlocked: Subscription;
62
69
  onScrolledToBottom: any;
63
70
  constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
64
71
  ngOnInit(): void;
72
+ ngOnChanges(changes: SimpleChanges): void;
73
+ fetchUsersOnSearchKeyWordChange: () => void;
74
+ searchForUser: () => void;
65
75
  onUserSelected(user: CometChat.User, event: any): void;
66
76
  fetchNewUsers(): void;
67
77
  subscribeToEvents(): void;
@@ -89,7 +99,7 @@ export declare class CometChatUsersComponent implements OnInit {
89
99
  removeListener(): void;
90
100
  addMembersToList: (user: CometChat.User, event: any) => void;
91
101
  fetchNextUsersList: (state?: States) => void;
92
- setRequestBuilder(): void;
102
+ setRequestBuilder(): import("@cometchat/chat-sdk-javascript").UsersRequest;
93
103
  /**
94
104
  * @param {string} key
95
105
  */
@@ -107,5 +117,5 @@ export declare class CometChatUsersComponent implements OnInit {
107
117
  borderRadius: string | undefined;
108
118
  };
109
119
  static ɵfac: i0.ɵɵFactoryDeclaration<CometChatUsersComponent, never>;
110
- static ɵcmp: i0.ɵɵComponentDeclaration<CometChatUsersComponent, "cometchat-users", never, { "usersRequestBuilder": "usersRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "disableUsersPresence": "disableUsersPresence"; "listItemView": "listItemView"; "menu": "menu"; "options": "options"; "activeUser": "activeUser"; "hideSeparator": "hideSeparator"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "selectionMode": "selectionMode"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "emptyStateView": "emptyStateView"; "onSelect": "onSelect"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "showSectionHeader": "showSectionHeader"; "sectionHeaderField": "sectionHeaderField"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "titleAlignment": "titleAlignment"; "usersStyle": "usersStyle"; "listItemStyle": "listItemStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "avatarStyle": "avatarStyle"; "onItemClick": "onItemClick"; }, {}, never, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<CometChatUsersComponent, "cometchat-users", never, { "usersRequestBuilder": "usersRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "disableUsersPresence": "disableUsersPresence"; "listItemView": "listItemView"; "menu": "menu"; "options": "options"; "activeUser": "activeUser"; "hideSeparator": "hideSeparator"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "selectionMode": "selectionMode"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "emptyStateView": "emptyStateView"; "onSelect": "onSelect"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "showSectionHeader": "showSectionHeader"; "sectionHeaderField": "sectionHeaderField"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "titleAlignment": "titleAlignment"; "usersStyle": "usersStyle"; "listItemStyle": "listItemStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "avatarStyle": "avatarStyle"; "onItemClick": "onItemClick"; "searchKeyword": "searchKeyword"; "onEmpty": "onEmpty"; "userPresencePlacement": "userPresencePlacement"; "disableLoadingState": "disableLoadingState"; }, {}, never, never>;
111
121
  }
@@ -10,5 +10,5 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
10
10
  getAllMessageTemplates(): CometChatMessageTemplate[];
11
11
  getDocumentTemplate(): CometChatMessageTemplate;
12
12
  getAttachmentOptions(theme?: CometChatTheme, user?: CometChat.User, group?: CometChat.Group, id?: any): any;
13
- getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
13
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
14
14
  }
@@ -10,5 +10,5 @@ export declare class CollaborativeWhiteBoardExtensionDecorator extends DataSourc
10
10
  getAllMessageTemplates(): CometChatMessageTemplate[];
11
11
  getWhiteBoardTemplate(): CometChatMessageTemplate;
12
12
  getAttachmentOptions(theme?: CometChatTheme, user?: CometChat.User, group?: CometChat.Group, id?: any): any;
13
- getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
13
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
14
14
  }
@@ -10,5 +10,5 @@ export declare class PollsExtensionDecorator extends DataSourceDecorator {
10
10
  getAllMessageTemplates(): CometChatMessageTemplate[];
11
11
  getPollsTemplate(): CometChatMessageTemplate;
12
12
  getAttachmentOptions(theme?: CometChatTheme, user?: CometChat.User, group?: CometChat.Group, id?: any): any;
13
- getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
13
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
14
14
  }