@cometchat/chat-uikit-angular 4.0.1 → 4.0.2
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/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +18 -7
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +2 -2
- package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts +7 -6
- package/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.d.ts +6 -4
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +25 -8
- package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +8 -5
- package/Shared/CometChatUIkit/CometChatUIKit.d.ts +11 -3
- package/Shared/Framework/DataSource.d.ts +2 -0
- package/Shared/Framework/DataSourceDecorator.d.ts +3 -1
- package/Shared/Utils/MessageUtils.d.ts +3 -1
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +71 -45
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +16 -24
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +15 -17
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +18 -20
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +287 -52
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +3 -3
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +23 -23
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +157 -31
- package/esm2020/Shared/Framework/DataSource.mjs +1 -1
- package/esm2020/Shared/Framework/DataSourceDecorator.mjs +7 -1
- package/esm2020/Shared/Utils/MessageUtils.mjs +36 -7
- package/esm2020/Shared/Views/CometChatCardView/cometchat-card-view/cometchat-card-view.component.mjs +1 -1
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/cometchat-chat-uikit-angular.mjs +735 -319
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +724 -314
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +5 -5
- package/LICENSE.md +0 -3
package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Subscription } from "rxjs";
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import { AvatarStyle, BackdropStyle, BadgeStyle, ConfirmDialogStyle, DateStyle, ListItemStyle, ReceiptStyle } from '@cometchat/uikit-elements';
|
|
4
3
|
import { BaseStyle, ConversationsStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
5
4
|
import { CometChatOption, DatePatterns, SelectionMode, States, TitleAlignment } from '@cometchat/uikit-resources';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import { ChangeDetectorRef, NgZone, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
6
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
8
7
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -88,6 +88,18 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
88
88
|
ccGroupLeft: Subscription;
|
|
89
89
|
ccUserBlocked: Subscription;
|
|
90
90
|
ccMessageRead: Subscription;
|
|
91
|
+
onTextMessageReceived: Subscription;
|
|
92
|
+
onMediaMessageReceived: Subscription;
|
|
93
|
+
onCustomMessageReceived: Subscription;
|
|
94
|
+
onFormMessageReceived: Subscription;
|
|
95
|
+
onCardMessageReceived: Subscription;
|
|
96
|
+
onCustomInteractiveMessageReceived: Subscription;
|
|
97
|
+
onMessagesRead: Subscription;
|
|
98
|
+
onMessageDeleted: Subscription;
|
|
99
|
+
onMessageEdited: Subscription;
|
|
100
|
+
onMessagesDelivered: Subscription;
|
|
101
|
+
onTypingStarted: Subscription;
|
|
102
|
+
onTypingEnded: Subscription;
|
|
91
103
|
ccOutgoingCall: Subscription;
|
|
92
104
|
ccCallRejected: Subscription;
|
|
93
105
|
ccCallEnded: Subscription;
|
|
@@ -130,7 +142,6 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
130
142
|
conversationOptions: CometChatOption[];
|
|
131
143
|
showConfirmDialog: boolean;
|
|
132
144
|
conversationToBeDeleted: CometChat.Conversation | null;
|
|
133
|
-
conversationListenerId: string;
|
|
134
145
|
userListenerId: string;
|
|
135
146
|
groupListenerId: string;
|
|
136
147
|
groupToUpdate: CometChat.Group | {};
|
|
@@ -236,7 +247,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
236
247
|
/**
|
|
237
248
|
* Updates the conversation list's last message , badgeCount , user presence based on activities propagated by listeners
|
|
238
249
|
*/
|
|
239
|
-
conversationUpdated: (key: any, item: import("@cometchat/chat-sdk-javascript").
|
|
250
|
+
conversationUpdated: (key: any, item: import("@cometchat/chat-sdk-javascript").Group | import("@cometchat/chat-sdk-javascript").User | null | undefined, message: CometChat.BaseMessage, options?: null) => void;
|
|
240
251
|
/**
|
|
241
252
|
* @param {CometChat.BaseMessage} message
|
|
242
253
|
*/
|
|
@@ -49,6 +49,7 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
49
49
|
onSendButtonClick: ((message: CometChat.BaseMessage) => void) | undefined;
|
|
50
50
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
51
51
|
backdropStyle: BackdropStyle;
|
|
52
|
+
actionSheetStyle: ActionSheetStyle;
|
|
52
53
|
hideVoiceRecording: boolean;
|
|
53
54
|
mediaRecorderStyle: MediaRecorderStyle;
|
|
54
55
|
voiceRecordingIconURL: string;
|
|
@@ -96,7 +97,6 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
96
97
|
sendButtonIconURL: string;
|
|
97
98
|
emojiButtonIconURL: string;
|
|
98
99
|
stickerButtonIconURL: string;
|
|
99
|
-
actionsheetStyle: ActionSheetStyle;
|
|
100
100
|
actions: CometChatMessageComposerAction[];
|
|
101
101
|
messageText: string;
|
|
102
102
|
attachmentButtonStyle: any;
|
|
@@ -189,5 +189,5 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
189
189
|
setComposerStyle(): void;
|
|
190
190
|
closePreview(): void;
|
|
191
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageComposerComponent, never>;
|
|
192
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageComposerComponent, "cometchat-message-composer", never, { "user": "user"; "group": "group"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessage": "customSoundForMessage"; "disableTypingEvents": "disableTypingEvents"; "text": "text"; "placeholderText": "placeholderText"; "headerView": "headerView"; "onTextChange": "onTextChange"; "attachmentIconURL": "attachmentIconURL"; "attachmentOptions": "attachmentOptions"; "secondaryButtonView": "secondaryButtonView"; "auxilaryButtonView": "auxilaryButtonView"; "auxiliaryButtonsAlignment": "auxiliaryButtonsAlignment"; "sendButtonView": "sendButtonView"; "parentMessageId": "parentMessageId"; "hideLiveReaction": "hideLiveReaction"; "LiveReactionIconURL": "LiveReactionIconURL"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; "hideVoiceRecording": "hideVoiceRecording"; "mediaRecorderStyle": "mediaRecorderStyle"; "voiceRecordingIconURL": "voiceRecordingIconURL"; "voiceRecordingCloseIconURL": "voiceRecordingCloseIconURL"; "voiceRecordingStartIconURL": "voiceRecordingStartIconURL"; "voiceRecordingStopIconURL": "voiceRecordingStopIconURL"; "voiceRecordingSubmitIconURL": "voiceRecordingSubmitIconURL"; }, {}, never, never>;
|
|
192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageComposerComponent, "cometchat-message-composer", never, { "user": "user"; "group": "group"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessage": "customSoundForMessage"; "disableTypingEvents": "disableTypingEvents"; "text": "text"; "placeholderText": "placeholderText"; "headerView": "headerView"; "onTextChange": "onTextChange"; "attachmentIconURL": "attachmentIconURL"; "attachmentOptions": "attachmentOptions"; "secondaryButtonView": "secondaryButtonView"; "auxilaryButtonView": "auxilaryButtonView"; "auxiliaryButtonsAlignment": "auxiliaryButtonsAlignment"; "sendButtonView": "sendButtonView"; "parentMessageId": "parentMessageId"; "hideLiveReaction": "hideLiveReaction"; "LiveReactionIconURL": "LiveReactionIconURL"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; "actionSheetStyle": "actionSheetStyle"; "hideVoiceRecording": "hideVoiceRecording"; "mediaRecorderStyle": "mediaRecorderStyle"; "voiceRecordingIconURL": "voiceRecordingIconURL"; "voiceRecordingCloseIconURL": "voiceRecordingCloseIconURL"; "voiceRecordingStartIconURL": "voiceRecordingStartIconURL"; "voiceRecordingStopIconURL": "voiceRecordingStopIconURL"; "voiceRecordingSubmitIconURL": "voiceRecordingSubmitIconURL"; }, {}, never, never>;
|
|
193
193
|
}
|
package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ListItemStyle, AvatarStyle, BaseStyle } from '@cometchat/uikit-elements';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
1
|
+
import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
2
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
5
3
|
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
6
|
-
import {
|
|
4
|
+
import { CometChat } from '@cometchat/chat-sdk-javascript';
|
|
7
5
|
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
6
|
+
import { MessageHeaderStyle } from '@cometchat/uikit-shared';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -35,7 +35,6 @@ export declare class CometChatMessageHeaderComponent implements OnInit, OnChange
|
|
|
35
35
|
listItemView: TemplateRef<any>;
|
|
36
36
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
37
37
|
onBack: () => void;
|
|
38
|
-
msgListenerId: string;
|
|
39
38
|
groupsListenerId: string;
|
|
40
39
|
userListenerId: string;
|
|
41
40
|
subtitleText: string;
|
|
@@ -48,6 +47,8 @@ export declare class CometChatMessageHeaderComponent implements OnInit, OnChange
|
|
|
48
47
|
ccGroupMemberKicked: Subscription;
|
|
49
48
|
ccGroupMemberBanned: Subscription;
|
|
50
49
|
ccOwnershipChanged: Subscription;
|
|
50
|
+
onTypingStarted: Subscription;
|
|
51
|
+
onTypingEnded: Subscription;
|
|
51
52
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
52
53
|
ngOnChanges(changes: SimpleChanges): void;
|
|
53
54
|
ngOnInit(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
2
|
import { CometChatMessageTemplate, Receipts, States } from '@cometchat/uikit-resources';
|
|
4
|
-
import { ListStyle, MessageInformationStyle } from '@cometchat/uikit-shared';
|
|
5
3
|
import { DateStyle, LabelStyle, ListItemStyle, ReceiptStyle } from '@cometchat/uikit-elements';
|
|
4
|
+
import { ListStyle, MessageInformationStyle } from '@cometchat/uikit-shared';
|
|
5
|
+
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
6
|
+
import { Subscription } from "rxjs";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
@@ -36,11 +37,12 @@ export declare class CometChatMessageInformationComponent implements OnInit, OnC
|
|
|
36
37
|
loadingIconURL: string;
|
|
37
38
|
loadingStateView: TemplateRef<any>;
|
|
38
39
|
errorStateView: TemplateRef<any>;
|
|
40
|
+
onMessagesDelivered: Subscription;
|
|
41
|
+
onMessagesRead: Subscription;
|
|
39
42
|
receipts: CometChat.MessageReceipt[];
|
|
40
43
|
receiptStyle: ReceiptStyle;
|
|
41
44
|
isUserType: boolean;
|
|
42
45
|
deliveredReceipt: Receipts;
|
|
43
|
-
msgListenerId: string;
|
|
44
46
|
readReceipt: Receipts;
|
|
45
47
|
listStyle: ListStyle;
|
|
46
48
|
messageText: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { AvatarStyle, BackdropStyle, BaseStyle, CallscreenStyle, ConfirmDialogStyle, DateStyle, DocumentBubbleStyle, FullScreenViewerStyle, MenuListStyle, ReceiptStyle } from '@cometchat/uikit-elements';
|
|
3
|
+
import { CardBubbleStyle, FormBubbleStyle, ImageModerationStyle, MessageInformationConfiguration, MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, SmartRepliesConfiguration, SmartRepliesStyle } from "@cometchat/uikit-shared";
|
|
4
|
+
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme, CometChatUIKitConstants, DatePatterns, DocumentIconAlignment, MessageBubbleAlignment, MessageListAlignment, States, TimestampAlignment, localize } from "@cometchat/uikit-resources";
|
|
5
|
+
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
2
6
|
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
-
import { Subscription } from "rxjs";
|
|
4
|
-
import { DateStyle, AvatarStyle, MenuListStyle, ReceiptStyle, BaseStyle, DocumentBubbleStyle, ConfirmDialogStyle, FullScreenViewerStyle, CallscreenStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
5
7
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
6
|
-
import {
|
|
7
|
-
import { MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, ImageModerationStyle, SmartRepliesStyle, SmartRepliesConfiguration, MessageInformationConfiguration } from "@cometchat/uikit-shared";
|
|
8
|
-
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -29,6 +29,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
29
29
|
audioBubble: TemplateRef<any>;
|
|
30
30
|
videoBubble: TemplateRef<any>;
|
|
31
31
|
imageBubble: TemplateRef<any>;
|
|
32
|
+
formBubble: TemplateRef<any>;
|
|
33
|
+
cardBubble: TemplateRef<any>;
|
|
32
34
|
stickerBubble: TemplateRef<any>;
|
|
33
35
|
documentBubble: TemplateRef<any>;
|
|
34
36
|
whiteboardBubble: TemplateRef<any>;
|
|
@@ -138,7 +140,6 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
138
140
|
typesMap: any;
|
|
139
141
|
messageTypesMap: any;
|
|
140
142
|
theme: CometChatTheme;
|
|
141
|
-
msgListenerId: string;
|
|
142
143
|
groupListenerId: string;
|
|
143
144
|
callListenerId: string;
|
|
144
145
|
loggedInUser: CometChat.User;
|
|
@@ -148,6 +149,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
148
149
|
custom: string;
|
|
149
150
|
action: string;
|
|
150
151
|
call: string;
|
|
152
|
+
interactive: string;
|
|
151
153
|
}>;
|
|
152
154
|
numberOfTopScroll: number;
|
|
153
155
|
keepRecentMessages: boolean;
|
|
@@ -181,6 +183,18 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
181
183
|
ccCallEnded: Subscription;
|
|
182
184
|
ccCallAccepted: Subscription;
|
|
183
185
|
ccGroupMemberScopeChanged: Subscription;
|
|
186
|
+
onTextMessageReceived: Subscription;
|
|
187
|
+
onCustomMessageReceived: Subscription;
|
|
188
|
+
onFormMessageReceived: Subscription;
|
|
189
|
+
onCardMessageReceived: Subscription;
|
|
190
|
+
onCustomInteractiveMessageReceived: Subscription;
|
|
191
|
+
onMediaMessageReceived: Subscription;
|
|
192
|
+
onMessagesDelivered: Subscription;
|
|
193
|
+
onMessagesRead: Subscription;
|
|
194
|
+
onMessageDeleted: Subscription;
|
|
195
|
+
onMessageEdited: Subscription;
|
|
196
|
+
onTransientMessageReceived: Subscription;
|
|
197
|
+
onInteractionGoalCompleted: Subscription;
|
|
184
198
|
threadedAlignment: MessageBubbleAlignment;
|
|
185
199
|
messageInfoAlignment: MessageBubbleAlignment;
|
|
186
200
|
openEmojiKeyboard: boolean;
|
|
@@ -271,7 +285,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
271
285
|
openMessageInfo(messageObject: CometChat.BaseMessage): void;
|
|
272
286
|
closeMessageInfoPage: () => void;
|
|
273
287
|
sendMessagePrivately(messageObject: CometChat.BaseMessage): void;
|
|
274
|
-
getMessageById(id: number): false | import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
288
|
+
getMessageById(id: number | string): false | import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
275
289
|
isTranslated(message: CometChat.TextMessage): any;
|
|
276
290
|
updateTranslatedMessage: (translation: any) => void;
|
|
277
291
|
translateMessage: (id: number) => void;
|
|
@@ -294,6 +308,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
294
308
|
getHeaderView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
295
309
|
getFooterView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
296
310
|
setBubbleAlignment: (message: CometChat.BaseMessage) => MessageBubbleAlignment;
|
|
311
|
+
getFormMessageBubbleStyle(): FormBubbleStyle;
|
|
312
|
+
getCardMessageBubbleStyle(): CardBubbleStyle;
|
|
297
313
|
getCallBubbleStyle(message: CometChat.BaseMessage): {
|
|
298
314
|
titleFont: string;
|
|
299
315
|
titleColor: string | undefined;
|
|
@@ -424,6 +440,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
424
440
|
* @param {CometChat.BaseMessage} message
|
|
425
441
|
*/
|
|
426
442
|
messageEdited: (message: CometChat.BaseMessage) => void;
|
|
443
|
+
updateInteractiveMessage: (receipt: CometChat.InteractionReceipt) => void;
|
|
427
444
|
/**
|
|
428
445
|
* Emits an Action Indicating that a message was deleted by the user/person you are chatting with
|
|
429
446
|
* @param {CometChat.BaseMessage} message
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
2
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
3
|
+
import { MessageComposerConfiguration, MessageComposerStyle, MessageListConfiguration, ThreadedMessagesStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
5
|
-
import {
|
|
5
|
+
import { Subscription } from "rxjs";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
@@ -42,7 +42,10 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
|
|
|
42
42
|
ccMessageEdited: Subscription;
|
|
43
43
|
ccMessageDeleted: Subscription;
|
|
44
44
|
ccMessageRead: Subscription;
|
|
45
|
-
|
|
45
|
+
onMessagesDelivered: Subscription;
|
|
46
|
+
onMessagesRead: Subscription;
|
|
47
|
+
onMessageDeleted: Subscription;
|
|
48
|
+
onMessageEdited: Subscription;
|
|
46
49
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
47
50
|
ngOnInit(): void;
|
|
48
51
|
ngOnChanges(change: SimpleChanges): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CometChatLocalize } from "@cometchat/uikit-resources";
|
|
2
|
-
import { UIKitSettings } from '@cometchat/uikit-shared';
|
|
3
|
-
import { ExtensionsDataSource } from "../Framework/ExtensionDataSource";
|
|
1
|
+
import { CardMessage, CometChatLocalize, CustomInteractiveMessage, FormMessage } from "@cometchat/uikit-resources";
|
|
4
2
|
import { CometChatSoundManager } from '@cometchat/uikit-shared';
|
|
3
|
+
import { ExtensionsDataSource } from "../Framework/ExtensionDataSource";
|
|
4
|
+
import { UIKitSettings } from '@cometchat/uikit-shared';
|
|
5
5
|
export declare class CometChatUIKit {
|
|
6
6
|
static uiKitSettings: UIKitSettings;
|
|
7
7
|
static SoundManager: typeof CometChatSoundManager;
|
|
@@ -20,6 +20,14 @@ export declare class CometChatUIKit {
|
|
|
20
20
|
static updateUser(user: CometChat.User): Promise<Object | undefined>;
|
|
21
21
|
static logout(): Promise<Object | undefined>;
|
|
22
22
|
static checkAuthSettings(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Sends a form message and emits events based on the message status.
|
|
25
|
+
* @param message - The form message to be sent.
|
|
26
|
+
* @param disableLocalEvents - A boolean indicating whether to disable local events or not. Default value is false.
|
|
27
|
+
*/
|
|
28
|
+
static sendFormMessage(message: FormMessage, disableLocalEvents?: boolean): void;
|
|
29
|
+
static sendCardMessage(message: CardMessage, disableLocalEvents?: boolean): void;
|
|
30
|
+
static sendCustomInteractiveMessage(message: CustomInteractiveMessage, disableLocalEvents?: boolean): void;
|
|
23
31
|
static sendCustomMessage(message: CometChat.CustomMessage): Promise<CometChat.BaseMessage>;
|
|
24
32
|
static sendTextMessage(message: CometChat.TextMessage): Promise<CometChat.BaseMessage>;
|
|
25
33
|
static sendMediaMessage(message: CometChat.MediaMessage): Promise<CometChat.BaseMessage>;
|
|
@@ -11,6 +11,8 @@ export declare abstract class DataSource {
|
|
|
11
11
|
abstract getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
12
12
|
abstract getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
13
13
|
abstract getFileMessageTemplate(): CometChatMessageTemplate;
|
|
14
|
+
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
15
|
+
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
14
16
|
abstract getGroupActionTemplate(): CometChatMessageTemplate;
|
|
15
17
|
abstract getAllMessageTemplates(theme?: CometChatTheme): Array<CometChatMessageTemplate>;
|
|
16
18
|
abstract getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CometChatMessageOption, CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
|
-
import { DataSource } from "./DataSource";
|
|
3
2
|
import { ComposerId } from "../Utils/MessageUtils";
|
|
3
|
+
import { DataSource } from "./DataSource";
|
|
4
4
|
export declare abstract class DataSourceDecorator implements DataSource {
|
|
5
5
|
dataSource: DataSource;
|
|
6
6
|
constructor(dataSource: DataSource);
|
|
@@ -14,6 +14,8 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
14
14
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
15
15
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
16
16
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
17
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
18
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
17
19
|
getGroupActionTemplate(): CometChatMessageTemplate;
|
|
18
20
|
getAllMessageTemplates(): CometChatMessageTemplate[];
|
|
19
21
|
getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CometChatMessageComposerAction, CometChatMessageOption, CometChatMessageTemplate, CometChatTheme, MessageBubbleAlignment } 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,6 +20,8 @@ export declare class MessageUtils implements DataSource {
|
|
|
20
20
|
getImageMessageTemplate(): CometChatMessageTemplate;
|
|
21
21
|
getGroupActionTemplate(): CometChatMessageTemplate;
|
|
22
22
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
23
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
24
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
23
25
|
getAllMessageTemplates(): Array<CometChatMessageTemplate>;
|
|
24
26
|
getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
25
27
|
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatMessageOption>;
|