@cometchat/chat-uikit-angular 4.2.0 → 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.
- package/Calls/CallingExtensionDecorator.d.ts +1 -1
- package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +31 -26
- package/CometChatDetails/cometchat-details/cometchat-details.component.d.ts +3 -3
- package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts +24 -14
- package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts +3 -2
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +84 -5
- package/CometChatMessageComposer/cometchat-message-composer.module.d.ts +2 -1
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +254 -49
- package/CometChatMessages/cometchat-messages/cometchat-messages.component.d.ts +1 -0
- package/CometChatUserMemberWrapper/cometchat-user-member-wrapper.component.d.ts +41 -0
- package/CometChatUserMemberWrapper/cometchat-user-member-wrapper.module.d.ts +11 -0
- package/CometChatUsers/cometchat-users/cometchat-users.component.d.ts +22 -12
- package/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
- package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
- package/Extensions/PollsExtension/PollsExtensionDecorator.d.ts +1 -1
- package/Extensions/Stickers/StickersExtensionDecorator.d.ts +3 -3
- package/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +1 -1
- package/README.md +7 -8
- package/Shared/CometChatUIkit/CometChatUIKit.d.ts +5 -4
- package/Shared/Framework/DataSource.d.ts +11 -4
- package/Shared/Framework/DataSourceDecorator.d.ts +10 -3
- package/Shared/Utils/MessageUtils.d.ts +99 -2
- package/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.d.ts +2 -2
- package/assets/InfoSimpleIcon.svg +4 -0
- package/assets/message-delivered.svg +4 -3
- package/assets/message-read.svg +4 -3
- package/assets/threadIndicatorIcon.svg +11 -0
- package/esm2020/Calls/CallingExtensionDecorator.mjs +26 -13
- package/esm2020/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.mjs +1 -1
- package/esm2020/CometChatContacts/cometchat-contacts/cometchat-contacts.component.mjs +3 -3
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +280 -129
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.mjs +3 -3
- package/esm2020/CometChatDetails/cometchat-details/cometchat-details.component.mjs +6 -8
- package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +155 -58
- package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.mjs +3 -3
- package/esm2020/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.mjs +11 -5
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +354 -64
- package/esm2020/CometChatMessageComposer/cometchat-message-composer.module.mjs +5 -4
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +3 -3
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +2 -2
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +780 -287
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +10 -4
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +3 -3
- package/esm2020/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.mjs +1 -1
- package/esm2020/CometChatUserMemberWrapper/cometchat-user-member-wrapper.component.mjs +75 -0
- package/esm2020/CometChatUserMemberWrapper/cometchat-user-member-wrapper.module.mjs +21 -0
- package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +114 -36
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +1 -1
- package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.mjs +18 -13
- package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.mjs +19 -13
- package/esm2020/Extensions/PollsExtension/PollsExtensionDecorator.mjs +10 -8
- package/esm2020/Extensions/Stickers/StickersExtensionDecorator.mjs +22 -18
- package/esm2020/Extensions/TextModerator/TextModeratorExtensionDecorator.mjs +62 -7
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +24 -9
- package/esm2020/Shared/Framework/DataSource.mjs +1 -1
- package/esm2020/Shared/Framework/DataSourceDecorator.mjs +24 -3
- package/esm2020/Shared/Utils/MessageUtils.mjs +250 -11
- package/esm2020/Shared/Views/AIAssistBotMessageList/aiassist-bot-message-list/aiassist-bot-message-list.component.mjs +5 -4
- package/esm2020/public-api.mjs +4 -4
- package/fesm2015/cometchat-chat-uikit-angular.mjs +4325 -2831
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +4328 -2809
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +6 -6
- package/public-api.d.ts +3 -3
- package/Extensions/Reactions/ReactionExtension.d.ts +0 -5
- package/Extensions/Reactions/ReactionExtensionDecorator.d.ts +0 -9
- package/esm2020/Extensions/Reactions/ReactionExtension.mjs +0 -12
- package/esm2020/Extensions/Reactions/ReactionExtensionDecorator.mjs +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
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, SchedulerBubbleStyle, SmartRepliesConfiguration, SmartRepliesStyle } from "@cometchat/uikit-shared";
|
|
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
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";
|
|
@@ -38,6 +38,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
38
38
|
directCalling: TemplateRef<any>;
|
|
39
39
|
schedulerBubble: TemplateRef<any>;
|
|
40
40
|
pollBubble: TemplateRef<any>;
|
|
41
|
+
messageBubbleRef: QueryList<ElementRef>;
|
|
41
42
|
hideError: boolean;
|
|
42
43
|
errorStateView: TemplateRef<any>;
|
|
43
44
|
loadingStateView: TemplateRef<any>;
|
|
@@ -68,17 +69,22 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
68
69
|
scrollToBottomOnNewMessages: boolean;
|
|
69
70
|
thresholdValue: number;
|
|
70
71
|
unreadMessageThreshold: number;
|
|
72
|
+
reactionsConfiguration: ReactionsConfiguration;
|
|
73
|
+
disableReactions: Boolean;
|
|
74
|
+
emojiKeyboardStyle: EmojiKeyboardStyle;
|
|
71
75
|
apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
|
|
72
76
|
onThreadRepliesClick: ((message: CometChat.BaseMessage, view: TemplateRef<any>) => void) | null;
|
|
73
77
|
headerView: TemplateRef<any>;
|
|
74
78
|
footerView: TemplateRef<any>;
|
|
75
79
|
parentMessageId: number;
|
|
80
|
+
threadIndicatorIcon: string;
|
|
76
81
|
avatarStyle: AvatarStyle;
|
|
77
82
|
backdropStyle: BackdropStyle;
|
|
78
83
|
dateSeparatorStyle: DateStyle;
|
|
79
84
|
messageListStyle: MessageListStyle;
|
|
80
85
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
81
86
|
messageInformationConfiguration: MessageInformationConfiguration;
|
|
87
|
+
disableMentions: boolean;
|
|
82
88
|
state: States;
|
|
83
89
|
optionsStyle: MenuListStyle;
|
|
84
90
|
receiptStyle: ReceiptStyle;
|
|
@@ -198,6 +204,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
198
204
|
ccCallAccepted: Subscription;
|
|
199
205
|
ccGroupMemberScopeChanged: Subscription;
|
|
200
206
|
onTextMessageReceived: Subscription;
|
|
207
|
+
onMessageReactionAdded: Subscription;
|
|
208
|
+
onMessageReactionRemoved: Subscription;
|
|
201
209
|
onCustomMessageReceived: Subscription;
|
|
202
210
|
onFormMessageReceived: Subscription;
|
|
203
211
|
onSchedulerMessageReceived: Subscription;
|
|
@@ -238,20 +246,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
238
246
|
connectionListenerId: string;
|
|
239
247
|
lastMessageId: number;
|
|
240
248
|
isConnectionReestablished: boolean;
|
|
241
|
-
|
|
242
|
-
height: string;
|
|
243
|
-
width: string;
|
|
244
|
-
border: string;
|
|
245
|
-
borderRadius: string;
|
|
246
|
-
background: string;
|
|
247
|
-
padding: string;
|
|
248
|
-
buttonIconTint: string | undefined;
|
|
249
|
-
display: string;
|
|
250
|
-
flexFlow: string;
|
|
251
|
-
alignItems: string;
|
|
252
|
-
justifyContent: string;
|
|
253
|
-
buttonTextColor: string | undefined;
|
|
254
|
-
};
|
|
249
|
+
textFormatters?: Array<CometChatTextFormatter>;
|
|
255
250
|
closeIconURL: string;
|
|
256
251
|
threadOpenIcon: string;
|
|
257
252
|
confirmDialogStyle: ConfirmDialogStyle;
|
|
@@ -266,28 +261,15 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
266
261
|
addReaction: (event: any) => void;
|
|
267
262
|
getCallBubbleTitle(message: CometChat.BaseMessage): any;
|
|
268
263
|
getCallActionMessage: (call: CometChat.Call) => string;
|
|
269
|
-
reactToMessages(emoji: string): void;
|
|
270
|
-
hasReaction(message: any): boolean;
|
|
271
264
|
ngOnDestroy(): void;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
reactionCountTextColor: string | undefined;
|
|
281
|
-
activeReactionCountTextColor: string | undefined;
|
|
282
|
-
activeReactionCountTextFont: string;
|
|
283
|
-
addReactionIconTint: string | undefined;
|
|
284
|
-
activeReactionBackground: string | undefined;
|
|
285
|
-
reactionBackground: string;
|
|
286
|
-
reactionBorder: string;
|
|
287
|
-
activeReactionBorder: string;
|
|
288
|
-
reactionBorderRadius: string;
|
|
289
|
-
addReactionIconBackground: string | undefined;
|
|
290
|
-
};
|
|
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;
|
|
291
273
|
showEmojiKeyboard: (id: number, event: any) => void;
|
|
292
274
|
setBubbleView: () => void;
|
|
293
275
|
openThreadView: (message: CometChat.BaseMessage) => void;
|
|
@@ -304,12 +286,27 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
304
286
|
isTranslated(message: CometChat.TextMessage): any;
|
|
305
287
|
updateTranslatedMessage: (translation: any) => void;
|
|
306
288
|
translateMessage: (id: number) => void;
|
|
307
|
-
setOptionsCallback(options: CometChatMessageOption[]): CometChatMessageOption[];
|
|
289
|
+
setOptionsCallback(options: CometChatMessageOption[], id: number): CometChatMessageOption[];
|
|
308
290
|
/**
|
|
309
291
|
* send message options based on type
|
|
310
292
|
* @param {CometChat.BaseMessage} msgObject
|
|
311
293
|
*/
|
|
312
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;
|
|
313
310
|
/**
|
|
314
311
|
* passing style based on message object
|
|
315
312
|
* @param {CometChat.BaseMessage} messageObject
|
|
@@ -319,9 +316,47 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
319
316
|
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
320
317
|
openLinkURL(event: any): void;
|
|
321
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
|
+
*/
|
|
322
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
|
+
*/
|
|
323
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
|
+
*/
|
|
324
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;
|
|
325
360
|
setBubbleAlignment: (message: CometChat.BaseMessage) => MessageBubbleAlignment;
|
|
326
361
|
getFormMessageBubbleStyle(): FormBubbleStyle;
|
|
327
362
|
getCardMessageBubbleStyle(): CardBubbleStyle;
|
|
@@ -354,6 +389,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
354
389
|
setTextBubbleStyle: (message: CometChat.BaseMessage) => {
|
|
355
390
|
textFont: string;
|
|
356
391
|
textColor: string | undefined;
|
|
392
|
+
bubblePadding: string;
|
|
393
|
+
} | {
|
|
394
|
+
textFont: string;
|
|
395
|
+
textColor: string | undefined;
|
|
396
|
+
bubblePadding?: undefined;
|
|
357
397
|
};
|
|
358
398
|
setFileBubbleStyle(message: CometChat.BaseMessage): any;
|
|
359
399
|
ngAfterViewInit(): void;
|
|
@@ -385,7 +425,18 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
385
425
|
setAvatarStyle(): void;
|
|
386
426
|
setDateStyle(): void;
|
|
387
427
|
setMessagesStyle(): void;
|
|
388
|
-
|
|
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
|
+
};
|
|
389
440
|
createRequestBuilder(): void;
|
|
390
441
|
computeUnreadCount(): void;
|
|
391
442
|
/**
|
|
@@ -410,6 +461,14 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
410
461
|
* @param {any=null} options
|
|
411
462
|
*/
|
|
412
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;
|
|
413
472
|
/**
|
|
414
473
|
* translate message then call update message
|
|
415
474
|
* @param {CometChat.BaseMessage} message
|
|
@@ -479,14 +538,6 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
479
538
|
* @param {string} type
|
|
480
539
|
*/
|
|
481
540
|
customMessageReceivedHandler: (message: CometChat.BaseMessage) => void;
|
|
482
|
-
/**
|
|
483
|
-
* TrackBy method to update UI when a change is detected
|
|
484
|
-
*/
|
|
485
|
-
/**
|
|
486
|
-
* @param {number} index
|
|
487
|
-
* @param {any} item
|
|
488
|
-
*/
|
|
489
|
-
getMessageId(index: number, item: any): any;
|
|
490
541
|
/**
|
|
491
542
|
* Compares two dates and sets Date on a a new day
|
|
492
543
|
*/
|
|
@@ -495,6 +546,13 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
495
546
|
* @param {number} secondDate
|
|
496
547
|
*/
|
|
497
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[];
|
|
498
556
|
/**
|
|
499
557
|
* prepend Fetched Messages
|
|
500
558
|
* @param {CometChat.BaseMessage} messages
|
|
@@ -514,6 +572,14 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
514
572
|
* @param {CometChat.TextMessage} object
|
|
515
573
|
*/
|
|
516
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;
|
|
517
583
|
/**
|
|
518
584
|
* callback for deleteMessage
|
|
519
585
|
* @param {CometChat.BaseMessage} object
|
|
@@ -529,21 +595,76 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
529
595
|
onEditMessage: (object: CometChat.BaseMessage) => void;
|
|
530
596
|
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
531
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;
|
|
532
627
|
deleteMessage: (message: CometChat.BaseMessage) => void;
|
|
533
628
|
scrollToBottom: () => void;
|
|
534
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
|
+
*/
|
|
535
639
|
subscribeToEvents(): void;
|
|
536
640
|
closeSmartReply: () => void;
|
|
537
641
|
closeConversationSummary: () => void;
|
|
642
|
+
showStatusInfo(message: CometChat.BaseMessage): boolean;
|
|
538
643
|
sendReply: (event: any) => void;
|
|
539
644
|
sendConversationStarter: (event: any) => void;
|
|
540
645
|
fetchConversationStarter(): void;
|
|
541
646
|
fetchConversationSummary(): string[];
|
|
542
647
|
getReplies(): string[] | null;
|
|
648
|
+
/**
|
|
649
|
+
* Method to unsubscribe all the Rxjs events when the CometChatMessageListComponent gets destroy
|
|
650
|
+
*/
|
|
543
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;
|
|
544
659
|
/**
|
|
545
660
|
* styling part
|
|
546
661
|
*/
|
|
662
|
+
getBubbleDateStyle: (message: CometChat.BaseMessage) => {
|
|
663
|
+
textColor: string | undefined;
|
|
664
|
+
textFont: string;
|
|
665
|
+
padding: string;
|
|
666
|
+
display: string;
|
|
667
|
+
};
|
|
547
668
|
chatsListStyle: () => {
|
|
548
669
|
height: string | undefined;
|
|
549
670
|
background: string | undefined;
|
|
@@ -577,6 +698,58 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
577
698
|
iconTint: string | undefined;
|
|
578
699
|
};
|
|
579
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
|
+
};
|
|
580
753
|
wrapperStyle: () => {
|
|
581
754
|
height: string | undefined;
|
|
582
755
|
width: string | undefined;
|
|
@@ -587,6 +760,38 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
587
760
|
listStyle: () => {
|
|
588
761
|
height: string;
|
|
589
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
|
+
};
|
|
590
795
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
591
|
-
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>;
|
|
592
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;
|
|
@@ -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
|
|
2
|
-
import { CometChat } from
|
|
3
|
-
import { AvatarStyle, BaseStyle, ListItemStyle } from
|
|
4
|
-
import { Subscription } from
|
|
5
|
-
import { CometChatOption, SelectionMode, TitleAlignment, States } from
|
|
6
|
-
import { UsersStyle, ListStyle } from
|
|
7
|
-
import { CometChatThemeService } from
|
|
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
|
|
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
|
-
|
|
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():
|
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
|
|
2
2
|
import { CometChatMessageTemplate } from "@cometchat/uikit-resources";
|
|
3
|
-
import { CometChat } from
|
|
4
|
-
import { StickersConfiguration } from
|
|
3
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
4
|
+
import { StickersConfiguration } from "@cometchat/uikit-shared";
|
|
5
5
|
import { DataSource } from "../../Shared/Framework/DataSource";
|
|
6
6
|
import { ComposerId } from "../../Shared/Utils/MessageUtils";
|
|
7
7
|
import { CometChatException } from "../../Shared/Utils/ComeChatException";
|
|
@@ -24,5 +24,5 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
24
24
|
getAllMessageCategories(): string[];
|
|
25
25
|
getAllMessageTypes(): string[];
|
|
26
26
|
getId(): string;
|
|
27
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
27
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
28
28
|
}
|
|
@@ -4,5 +4,5 @@ export declare class TextModeratorExtensionDecorator extends DataSourceDecorator
|
|
|
4
4
|
constructor(dataSource: DataSource);
|
|
5
5
|
getId(): string;
|
|
6
6
|
getModeratedtext(message: CometChat.TextMessage): string;
|
|
7
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User): string;
|
|
7
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
8
8
|
}
|