@cometchat/chat-uikit-react 5.0.2 → 5.0.3
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/dist/index.d.ts +95 -48
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatUsers.css +1 -1
- package/dist/styles/components/CometChatUsers.css +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +1 -0
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
- package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +1 -0
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +58 -12
- package/dist/types/utils/DataSource.d.ts +1 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +2 -0
- package/package.json +3 -2
- package/dist/types/utils/CalendarObject.d.ts +0 -27
- package/dist/types/utils/Interface.d.ts +0 -37
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
|
|
5
|
+
import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -909,6 +910,10 @@ declare class CometChatLocalize {
|
|
|
909
910
|
ADD_MEMBERS: string;
|
|
910
911
|
SEND_MESSAGE: string;
|
|
911
912
|
UNBLOCK_USER: string;
|
|
913
|
+
/**
|
|
914
|
+
* Returns rtl or ltr based on the active language
|
|
915
|
+
* @returns {String} the direction of the active langauge
|
|
916
|
+
*/
|
|
912
917
|
BLOCK_USER: string;
|
|
913
918
|
DELETE_AND_EXIT: string;
|
|
914
919
|
LEAVE_GROUP: string;
|
|
@@ -1285,7 +1290,11 @@ declare class CometChatLocalize {
|
|
|
1285
1290
|
TYPING: string;
|
|
1286
1291
|
IS_TYPING: string;
|
|
1287
1292
|
CLOSE: string;
|
|
1288
|
-
ENTER_GROUP_NAME: string;
|
|
1293
|
+
ENTER_GROUP_NAME: string; /**
|
|
1294
|
+
* Accepts the string to localize and return the localized string
|
|
1295
|
+
* @param {String} str
|
|
1296
|
+
* @returns {String} localized str
|
|
1297
|
+
*/
|
|
1289
1298
|
ADD_MEMBERS: string;
|
|
1290
1299
|
SEND_MESSAGE: string;
|
|
1291
1300
|
UNBLOCK_USER: string;
|
|
@@ -1990,7 +1999,7 @@ declare class CometChatLocalize {
|
|
|
1990
1999
|
SEARCH_EMOJI: string;
|
|
1991
2000
|
WOULD__YOU_LIKE_TO_DELETE_THIS_CONVERSATION: string;
|
|
1992
2001
|
GROUPS: string;
|
|
1993
|
-
WRONG_FILE_TYPE: string;
|
|
2002
|
+
WRONG_FILE_TYPE: string; /**Properties and constants */
|
|
1994
2003
|
SHARED: string;
|
|
1995
2004
|
SOUND_MANAGER: string;
|
|
1996
2005
|
THEME: string;
|
|
@@ -2057,7 +2066,9 @@ declare class CometChatLocalize {
|
|
|
2057
2066
|
MISSED_VIDEO_CALL: string;
|
|
2058
2067
|
CUSTOM_MESSAGE_POLL: string;
|
|
2059
2068
|
CUSTOM_MESSAGE_STICKER: string;
|
|
2060
|
-
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2069
|
+
CUSTOM_MESSAGE_DOCUMENT: string; /**
|
|
2070
|
+
* Sets the default lannguage if no language is passed in init method
|
|
2071
|
+
*/
|
|
2061
2072
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2062
2073
|
ONLINE: string;
|
|
2063
2074
|
ADMINISTRATOR: string;
|
|
@@ -2466,7 +2477,9 @@ declare class CometChatLocalize {
|
|
|
2466
2477
|
MEMBER: string;
|
|
2467
2478
|
EDITED: string;
|
|
2468
2479
|
TODAY: string;
|
|
2469
|
-
YESTERDAY: string;
|
|
2480
|
+
YESTERDAY: string; /**
|
|
2481
|
+
* Sets the default lannguage if no language is passed in init method
|
|
2482
|
+
*/
|
|
2470
2483
|
SUNDAY: string;
|
|
2471
2484
|
MONDAY: string;
|
|
2472
2485
|
TUESDAY: string;
|
|
@@ -2778,6 +2791,7 @@ declare class CometChatLocalize {
|
|
|
2778
2791
|
GROUPS: string;
|
|
2779
2792
|
WRONG_FILE_TYPE: string;
|
|
2780
2793
|
SHARED: string;
|
|
2794
|
+
/**Properties and constants */
|
|
2781
2795
|
SOUND_MANAGER: string;
|
|
2782
2796
|
THEME: string;
|
|
2783
2797
|
DELETE_MSG_TEXT: string;
|
|
@@ -2806,7 +2820,7 @@ declare class CometChatLocalize {
|
|
|
2806
2820
|
PASSWORD: string;
|
|
2807
2821
|
CONTINUE: string;
|
|
2808
2822
|
NO_CHATS_SELECTED: string;
|
|
2809
|
-
NO_USERS_SELECTED: string;
|
|
2823
|
+
NO_USERS_SELECTED: string; /**Override resources */
|
|
2810
2824
|
NO_GROUPS_SELECTED: string;
|
|
2811
2825
|
SELECT_DAY: string;
|
|
2812
2826
|
SELECT_TIME: string;
|
|
@@ -2816,7 +2830,10 @@ declare class CometChatLocalize {
|
|
|
2816
2830
|
GROUP_PASSWORD_BLANK: string;
|
|
2817
2831
|
GROUP_NAME_BLANK: string;
|
|
2818
2832
|
GROUP_TYPE_BLANK: string;
|
|
2819
|
-
DELETE_CONVERSATION: string;
|
|
2833
|
+
DELETE_CONVERSATION: string; /**
|
|
2834
|
+
* Returns the browser language
|
|
2835
|
+
* @returns {String} browser langauge i.e. en-US
|
|
2836
|
+
*/
|
|
2820
2837
|
ADD_TO_CHAT: string;
|
|
2821
2838
|
MORE: string;
|
|
2822
2839
|
COPY: string;
|
|
@@ -2824,7 +2841,10 @@ declare class CometChatLocalize {
|
|
|
2824
2841
|
MESSAGE_IMAGE: string;
|
|
2825
2842
|
MESSAGE_FILE: string;
|
|
2826
2843
|
MESSAGE_VIDEO: string;
|
|
2827
|
-
MESSAGE_AUDIO: string;
|
|
2844
|
+
MESSAGE_AUDIO: string; /**
|
|
2845
|
+
* Returns the language code
|
|
2846
|
+
* @returns {String} language code i.e. en
|
|
2847
|
+
*/
|
|
2828
2848
|
CUSTOM_MESSAGE: string;
|
|
2829
2849
|
SELECT_A_DATE: string;
|
|
2830
2850
|
TIME_ZONE: string;
|
|
@@ -2885,6 +2905,10 @@ declare class CometChatLocalize {
|
|
|
2885
2905
|
LOADING: string;
|
|
2886
2906
|
REPLY: string;
|
|
2887
2907
|
REPLIES: string;
|
|
2908
|
+
/**
|
|
2909
|
+
* Returns rtl or ltr based on the active language
|
|
2910
|
+
* @returns {String} the direction of the active langauge
|
|
2911
|
+
*/
|
|
2888
2912
|
AI: string;
|
|
2889
2913
|
SMART_REPLIES: string;
|
|
2890
2914
|
CONVERSATION_STARTER: string;
|
|
@@ -3991,10 +4015,20 @@ declare class CometChatLocalize {
|
|
|
3991
4015
|
SELECT_TIME: string;
|
|
3992
4016
|
NO_CALLS_SELECTED: string;
|
|
3993
4017
|
SELECT__GROUP: string;
|
|
4018
|
+
/**
|
|
4019
|
+
* Initializes localization with the specified language and custom resources.
|
|
4020
|
+
* @param {string} [language=""] - The language code to set.
|
|
4021
|
+
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4022
|
+
*/
|
|
3994
4023
|
SELECT__USER: string;
|
|
3995
4024
|
GROUP_PASSWORD_BLANK: string;
|
|
3996
4025
|
GROUP_NAME_BLANK: string;
|
|
3997
4026
|
GROUP_TYPE_BLANK: string;
|
|
4027
|
+
/**
|
|
4028
|
+
* Initializes localization with the specified language and custom resources.
|
|
4029
|
+
* @param {string} [language=""] - The language code to set.
|
|
4030
|
+
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4031
|
+
*/
|
|
3998
4032
|
DELETE_CONVERSATION: string;
|
|
3999
4033
|
ADD_TO_CHAT: string;
|
|
4000
4034
|
MORE: string;
|
|
@@ -4036,7 +4070,10 @@ declare class CometChatLocalize {
|
|
|
4036
4070
|
PREFERENCES: string;
|
|
4037
4071
|
MEMBERS: string;
|
|
4038
4072
|
MEMBER: string;
|
|
4039
|
-
EDITED: string;
|
|
4073
|
+
EDITED: string; /**
|
|
4074
|
+
* Returns the language code
|
|
4075
|
+
* @returns {String} language code i.e. en
|
|
4076
|
+
*/
|
|
4040
4077
|
TODAY: string;
|
|
4041
4078
|
YESTERDAY: string;
|
|
4042
4079
|
SUNDAY: string;
|
|
@@ -4403,7 +4440,7 @@ declare class CometChatLocalize {
|
|
|
4403
4440
|
MEETING_SCHEDULED: string;
|
|
4404
4441
|
SOMETHING_WRONG: string;
|
|
4405
4442
|
MEETING_SLOT_BOOK: string;
|
|
4406
|
-
MEETING_BOOK_NEW_SLOT: string;
|
|
4443
|
+
MEETING_BOOK_NEW_SLOT: string; /**Override resources */
|
|
4407
4444
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4408
4445
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4409
4446
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
@@ -4760,7 +4797,11 @@ declare class CometChatLocalize {
|
|
|
4760
4797
|
CONVERSATIONS: string;
|
|
4761
4798
|
CONVERSATION_LIST: string;
|
|
4762
4799
|
MESSAGES: string;
|
|
4763
|
-
MESSAGE_HEADER: string;
|
|
4800
|
+
MESSAGE_HEADER: string; /**
|
|
4801
|
+
* Initializes localization with the specified language and custom resources.
|
|
4802
|
+
* @param {string} [language=""] - The language code to set.
|
|
4803
|
+
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4804
|
+
*/
|
|
4764
4805
|
MESSAGE_LIST: string;
|
|
4765
4806
|
MESSAGE_COMPOSER: string;
|
|
4766
4807
|
USERS_WITH_MESSAGES: string;
|
|
@@ -4840,7 +4881,10 @@ declare class CometChatLocalize {
|
|
|
4840
4881
|
SEND_MESSAGE: string;
|
|
4841
4882
|
UNBLOCK_USER: string;
|
|
4842
4883
|
BLOCK_USER: string;
|
|
4843
|
-
DELETE_AND_EXIT: string;
|
|
4884
|
+
DELETE_AND_EXIT: string; /**
|
|
4885
|
+
* Returns true if the active language is rtl otherwise return false
|
|
4886
|
+
* @returns {Boolean} whether the language is rtl or not
|
|
4887
|
+
*/
|
|
4844
4888
|
LEAVE_GROUP: string;
|
|
4845
4889
|
CREATE_GROUP: string;
|
|
4846
4890
|
SHARED_MEDIA: string;
|
|
@@ -5187,7 +5231,10 @@ declare class CometChatLocalize {
|
|
|
5187
5231
|
SELECT_A_DATE: string;
|
|
5188
5232
|
TIME_ZONE: string;
|
|
5189
5233
|
MEETING_SCHEDULED: string;
|
|
5190
|
-
SOMETHING_WRONG: string;
|
|
5234
|
+
SOMETHING_WRONG: string; /**
|
|
5235
|
+
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
5236
|
+
* @returns {String} active language
|
|
5237
|
+
*/
|
|
5191
5238
|
MEETING_SLOT_BOOK: string;
|
|
5192
5239
|
MEETING_BOOK_NEW_SLOT: string;
|
|
5193
5240
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
@@ -6736,28 +6783,28 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6736
6783
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
6737
6784
|
getCopyOption(): CometChatActionsIcon;
|
|
6738
6785
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
6739
|
-
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
6740
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6741
|
-
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
6742
|
-
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6743
|
-
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6744
|
-
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6745
|
-
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6786
|
+
isSentByMe(loggedInUser: CometChat$1.User, message: CometChat$1.BaseMessage): boolean;
|
|
6787
|
+
getTextMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6788
|
+
getIsSentByMe(message: CometChat$1.BaseMessage): boolean;
|
|
6789
|
+
getImageMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6790
|
+
getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6791
|
+
getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6792
|
+
getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6746
6793
|
getReceiptClass(status?: number): "wait" | "error" | "read" | "delivered" | "sent" | undefined;
|
|
6747
6794
|
/**
|
|
6748
6795
|
* Function to get receipt for message bubble
|
|
6749
6796
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6750
6797
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6751
6798
|
*/
|
|
6752
|
-
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
6799
|
+
getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
6753
6800
|
/**
|
|
6754
6801
|
* Function to get status and date for message bubble
|
|
6755
6802
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6756
6803
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6757
6804
|
*/
|
|
6758
|
-
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6759
|
-
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6760
|
-
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6805
|
+
getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6806
|
+
getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6807
|
+
getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6761
6808
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6762
6809
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
6763
6810
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6768,25 +6815,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6768
6815
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
6769
6816
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
6770
6817
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
6771
|
-
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6772
|
-
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6818
|
+
getMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6819
|
+
getCommonOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6773
6820
|
getAllMessageTypes(): Array<string>;
|
|
6774
6821
|
addList(): string;
|
|
6775
6822
|
getAllMessageCategories(additionalConfigurations?: {
|
|
6776
6823
|
hideGroupActionMessages?: boolean;
|
|
6777
6824
|
}): Array<string>;
|
|
6778
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
6825
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
|
|
6779
6826
|
getId(): string;
|
|
6780
|
-
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
6781
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6782
|
-
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6783
|
-
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6784
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6827
|
+
getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
6828
|
+
getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6829
|
+
getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6830
|
+
getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6831
|
+
getVideoMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6785
6832
|
getActionMessage(message: any): string;
|
|
6786
|
-
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6787
|
-
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6788
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6789
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6833
|
+
getDeleteMessageBubble(message: CometChat$1.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6834
|
+
getGroupActionBubble(message: CometChat$1.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6835
|
+
getTextMessageBubble(messageText: string, message: CometChat$1.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6836
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6790
6837
|
/**
|
|
6791
6838
|
* Function to check mimeType and return the iconUrl of that type
|
|
6792
6839
|
* @param mimeType
|
|
@@ -6799,16 +6846,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6799
6846
|
* @returns
|
|
6800
6847
|
*/
|
|
6801
6848
|
getFileSize: (sizeInBytes: number) => string;
|
|
6802
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6803
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6804
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6849
|
+
getFileMessageBubble(fileUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6850
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat$1.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6851
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat$1.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6805
6852
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
6806
6853
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
6807
6854
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
6808
6855
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
6809
6856
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
6810
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
6811
|
-
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6857
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations: additionalParams): string;
|
|
6858
|
+
getAuxiliaryHeaderMenu(user?: CometChat$1.User, group?: CometChat$1.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6812
6859
|
/**
|
|
6813
6860
|
* Adds styled @ for every mention in the text by matching uid
|
|
6814
6861
|
*
|
|
@@ -6816,7 +6863,7 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6816
6863
|
* @param {string} subtitle
|
|
6817
6864
|
* @returns {void}
|
|
6818
6865
|
*/
|
|
6819
|
-
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6866
|
+
getMentionsFormattedText(message: CometChat$1.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6820
6867
|
mentionsTargetElement: MentionsTargetElement;
|
|
6821
6868
|
}): string;
|
|
6822
6869
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
@@ -8391,7 +8438,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8391
8438
|
* @param group - Optional group object.
|
|
8392
8439
|
* @returns An array of auxiliary options.
|
|
8393
8440
|
*/
|
|
8394
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
8441
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): react_jsx_runtime.JSX.Element;
|
|
8395
8442
|
/**
|
|
8396
8443
|
* Creates the sticker auxiliary button component.
|
|
8397
8444
|
* @param id - A map containing relevant IDs.
|
|
@@ -8400,7 +8447,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8400
8447
|
* @param group - Optional group object.
|
|
8401
8448
|
* @returns The JSX element for the sticker auxiliary button.
|
|
8402
8449
|
*/
|
|
8403
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
8450
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group) => react_jsx_runtime.JSX.Element;
|
|
8404
8451
|
/**
|
|
8405
8452
|
* Sends a sticker message.
|
|
8406
8453
|
* @param event - The event object containing sticker details.
|
|
@@ -8410,14 +8457,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8410
8457
|
* Sends a sticker message.
|
|
8411
8458
|
* @param event - The event object containing sticker details.
|
|
8412
8459
|
*/
|
|
8413
|
-
getSticker(message: CometChat.CustomMessage): any;
|
|
8460
|
+
getSticker(message: CometChat$1.CustomMessage): any;
|
|
8414
8461
|
/**
|
|
8415
8462
|
* Creates a JSX element for displaying the sticker message content.
|
|
8416
8463
|
* @param stickerMessage - The custom message containing sticker data.
|
|
8417
8464
|
* @param _theme - The theme object for styling.
|
|
8418
8465
|
* @returns The JSX element for the sticker message content.
|
|
8419
8466
|
*/
|
|
8420
|
-
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8467
|
+
getStickerMessageContentView(stickerMessage: CometChat$1.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8421
8468
|
/**
|
|
8422
8469
|
* Creates a sticker message template.
|
|
8423
8470
|
* @param _theme - The theme object for styling.
|
|
@@ -8453,7 +8500,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8453
8500
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
8454
8501
|
* @returns A string representing the last message.
|
|
8455
8502
|
*/
|
|
8456
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
8503
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations?: any): string;
|
|
8457
8504
|
}
|
|
8458
8505
|
|
|
8459
8506
|
/**
|
|
@@ -11342,7 +11389,7 @@ declare class CometChatUIKitUtility {
|
|
|
11342
11389
|
* @param messageObject - The message object containing extensions.
|
|
11343
11390
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
11344
11391
|
*/
|
|
11345
|
-
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
11392
|
+
static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
|
|
11346
11393
|
/**
|
|
11347
11394
|
* Checks for extension data in a message.
|
|
11348
11395
|
*
|
|
@@ -11350,7 +11397,7 @@ declare class CometChatUIKitUtility {
|
|
|
11350
11397
|
* @param extensionKey - The extension key to look for.
|
|
11351
11398
|
* @returns The extension data if found.
|
|
11352
11399
|
*/
|
|
11353
|
-
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11400
|
+
static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11354
11401
|
/**
|
|
11355
11402
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
11356
11403
|
*
|