@cometchat/chat-uikit-react 5.0.8 → 5.0.9
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 +143 -197
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatMessageHeader.css +0 -6
- package/dist/styles/MessageTranslationBubble.css +2 -4
- package/dist/styles/components/CometChatMessageHeader.css +0 -6
- package/dist/styles/components/MessageTranslationBubble.css +2 -4
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/Enums/Enums.d.ts +2 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +1 -1
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -1
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +6 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +1 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -1
- package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +2 -3
- package/dist/types/modals/CometChatActionsView.d.ts +1 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +16 -76
- package/dist/types/utils/DataSource.d.ts +1 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { JSX
|
|
2
|
+
import React__default, { JSX, 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';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -110,7 +109,8 @@ declare enum TabAlignment {
|
|
|
110
109
|
declare enum MessageStatus {
|
|
111
110
|
inprogress = 0,
|
|
112
111
|
success = 1,
|
|
113
|
-
error = 2
|
|
112
|
+
error = 2,
|
|
113
|
+
cancelled = 3
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* This is used to specify the types of the read receipts for the message.
|
|
@@ -426,7 +426,6 @@ declare class CometChatLocalize {
|
|
|
426
426
|
WRONG_FILE_TYPE: string;
|
|
427
427
|
MESSAGE_HEADER: string;
|
|
428
428
|
MESSAGE_LIST: string;
|
|
429
|
-
/**Properties and constants */
|
|
430
429
|
MESSAGE_COMPOSER: string;
|
|
431
430
|
USERS_WITH_MESSAGES: string;
|
|
432
431
|
USER_LIST: string;
|
|
@@ -454,7 +453,7 @@ declare class CometChatLocalize {
|
|
|
454
453
|
MESSAGE_IMAGE: string;
|
|
455
454
|
MESSAGE_FILE: string;
|
|
456
455
|
MESSAGE_VIDEO: string;
|
|
457
|
-
MESSAGE_AUDIO: string;
|
|
456
|
+
MESSAGE_AUDIO: string;
|
|
458
457
|
CUSTOM_MESSAGE: string;
|
|
459
458
|
SELECT_A_DATE: string;
|
|
460
459
|
TIME_ZONE: string;
|
|
@@ -505,11 +504,6 @@ declare class CometChatLocalize {
|
|
|
505
504
|
ADD_MEMBERS: string;
|
|
506
505
|
SEND_MESSAGE: string;
|
|
507
506
|
UNBLOCK_USER: string;
|
|
508
|
-
/**
|
|
509
|
-
* Accepts the string to localize and return the localized string
|
|
510
|
-
* @param {String} str
|
|
511
|
-
* @returns {String} localized str
|
|
512
|
-
*/
|
|
513
507
|
BLOCK_USER: string;
|
|
514
508
|
DELETE_AND_EXIT: string;
|
|
515
509
|
LEAVE_GROUP: string;
|
|
@@ -1300,11 +1294,7 @@ declare class CometChatLocalize {
|
|
|
1300
1294
|
TYPING: string;
|
|
1301
1295
|
IS_TYPING: string;
|
|
1302
1296
|
CLOSE: string;
|
|
1303
|
-
ENTER_GROUP_NAME: string;
|
|
1304
|
-
* Accepts the string to localize and return the localized string
|
|
1305
|
-
* @param {String} str
|
|
1306
|
-
* @returns {String} localized str
|
|
1307
|
-
*/
|
|
1297
|
+
ENTER_GROUP_NAME: string;
|
|
1308
1298
|
ADD_MEMBERS: string;
|
|
1309
1299
|
SEND_MESSAGE: string;
|
|
1310
1300
|
UNBLOCK_USER: string;
|
|
@@ -1618,17 +1608,12 @@ declare class CometChatLocalize {
|
|
|
1618
1608
|
MESSAGE_RECEIPT: string;
|
|
1619
1609
|
MESSAGE: string;
|
|
1620
1610
|
RECEIPT_INFORMATION: string;
|
|
1621
|
-
/**
|
|
1622
|
-
* The `CometChatLocalize` class handles localization for the CometChat application.
|
|
1623
|
-
* It provides functionality to detect the user's browser language settings and
|
|
1624
|
-
* set the application's language accordingly.
|
|
1625
|
-
*/
|
|
1626
1611
|
NO_RECIPIENT: string;
|
|
1627
1612
|
NO_RECIPIENTS: string;
|
|
1628
1613
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1629
1614
|
CONVERSATIONS: string;
|
|
1630
1615
|
CONVERSATION_LIST: string;
|
|
1631
|
-
MESSAGES: string;
|
|
1616
|
+
MESSAGES: string;
|
|
1632
1617
|
WRONG_FILE_TYPE: string;
|
|
1633
1618
|
MESSAGE_HEADER: string;
|
|
1634
1619
|
MESSAGE_LIST: string;
|
|
@@ -1651,7 +1636,7 @@ declare class CometChatLocalize {
|
|
|
1651
1636
|
GROUP_PASSWORD_BLANK: string;
|
|
1652
1637
|
GROUP_NAME_BLANK: string;
|
|
1653
1638
|
GROUP_TYPE_BLANK: string;
|
|
1654
|
-
DELETE_CONVERSATION: string;
|
|
1639
|
+
DELETE_CONVERSATION: string;
|
|
1655
1640
|
ADD_TO_CHAT: string;
|
|
1656
1641
|
MORE: string;
|
|
1657
1642
|
COPY: string;
|
|
@@ -1687,10 +1672,7 @@ declare class CometChatLocalize {
|
|
|
1687
1672
|
MODERATOR: string;
|
|
1688
1673
|
PARTICIPANT: string;
|
|
1689
1674
|
PUBLIC: string;
|
|
1690
|
-
PRIVATE: string;
|
|
1691
|
-
* Set the active language
|
|
1692
|
-
* @param {String} language
|
|
1693
|
-
*/
|
|
1675
|
+
PRIVATE: string;
|
|
1694
1676
|
PASSWORD_PROTECTED: string;
|
|
1695
1677
|
PRIVACY_AND_SECURITY: string;
|
|
1696
1678
|
PREFERENCES: string;
|
|
@@ -2063,10 +2045,7 @@ declare class CometChatLocalize {
|
|
|
2063
2045
|
CUSTOM_MESSAGE: string;
|
|
2064
2046
|
SELECT_A_DATE: string;
|
|
2065
2047
|
TIME_ZONE: string;
|
|
2066
|
-
MEETING_SCHEDULED: string;
|
|
2067
|
-
* Returns the browser language
|
|
2068
|
-
* @returns {String} browser langauge i.e. en-US
|
|
2069
|
-
*/
|
|
2048
|
+
MEETING_SCHEDULED: string;
|
|
2070
2049
|
SOMETHING_WRONG: string;
|
|
2071
2050
|
MEETING_SLOT_BOOK: string;
|
|
2072
2051
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -2488,10 +2467,7 @@ declare class CometChatLocalize {
|
|
|
2488
2467
|
PARTICIPANT: string;
|
|
2489
2468
|
PUBLIC: string;
|
|
2490
2469
|
PRIVATE: string;
|
|
2491
|
-
PASSWORD_PROTECTED: string;
|
|
2492
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2493
|
-
* @returns {String} active language
|
|
2494
|
-
*/
|
|
2470
|
+
PASSWORD_PROTECTED: string;
|
|
2495
2471
|
PRIVACY_AND_SECURITY: string;
|
|
2496
2472
|
PREFERENCES: string;
|
|
2497
2473
|
MEMBERS: string;
|
|
@@ -2859,7 +2835,6 @@ declare class CometChatLocalize {
|
|
|
2859
2835
|
MESSAGE_IMAGE: string;
|
|
2860
2836
|
MESSAGE_FILE: string;
|
|
2861
2837
|
MESSAGE_VIDEO: string;
|
|
2862
|
-
/**Add to the original array of translations if language code is not found */
|
|
2863
2838
|
MESSAGE_AUDIO: string;
|
|
2864
2839
|
CUSTOM_MESSAGE: string;
|
|
2865
2840
|
SELECT_A_DATE: string;
|
|
@@ -2883,10 +2858,7 @@ declare class CometChatLocalize {
|
|
|
2883
2858
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2884
2859
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2885
2860
|
ONLINE: string;
|
|
2886
|
-
ADMINISTRATOR: string;
|
|
2887
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2888
|
-
* @returns {String} active language
|
|
2889
|
-
*/
|
|
2861
|
+
ADMINISTRATOR: string;
|
|
2890
2862
|
ADMIN: string;
|
|
2891
2863
|
MODERATOR: string;
|
|
2892
2864
|
PARTICIPANT: string;
|
|
@@ -2900,10 +2872,7 @@ declare class CometChatLocalize {
|
|
|
2900
2872
|
EDITED: string;
|
|
2901
2873
|
TODAY: string;
|
|
2902
2874
|
YESTERDAY: string;
|
|
2903
|
-
SUNDAY: string;
|
|
2904
|
-
* Set the active language
|
|
2905
|
-
* @param {String} language
|
|
2906
|
-
*/
|
|
2875
|
+
SUNDAY: string;
|
|
2907
2876
|
MONDAY: string;
|
|
2908
2877
|
TUESDAY: string;
|
|
2909
2878
|
WEDNESDAY: string;
|
|
@@ -3309,9 +3278,7 @@ declare class CometChatLocalize {
|
|
|
3309
3278
|
SATURDAY: string;
|
|
3310
3279
|
TYPING: string;
|
|
3311
3280
|
IS_TYPING: string;
|
|
3312
|
-
CLOSE: string;
|
|
3313
|
-
* Sets the default lannguage if no language is passed in init method
|
|
3314
|
-
*/
|
|
3281
|
+
CLOSE: string;
|
|
3315
3282
|
ENTER_GROUP_NAME: string;
|
|
3316
3283
|
ADD_MEMBERS: string;
|
|
3317
3284
|
SEND_MESSAGE: string;
|
|
@@ -3657,7 +3624,7 @@ declare class CometChatLocalize {
|
|
|
3657
3624
|
DELETE_CONVERSATION: string;
|
|
3658
3625
|
ADD_TO_CHAT: string;
|
|
3659
3626
|
MORE: string;
|
|
3660
|
-
COPY: string;
|
|
3627
|
+
COPY: string;
|
|
3661
3628
|
VOICE_RECORDING: string;
|
|
3662
3629
|
MESSAGE_IMAGE: string;
|
|
3663
3630
|
MESSAGE_FILE: string;
|
|
@@ -4061,20 +4028,10 @@ declare class CometChatLocalize {
|
|
|
4061
4028
|
SELECT_TIME: string;
|
|
4062
4029
|
NO_CALLS_SELECTED: string;
|
|
4063
4030
|
SELECT__GROUP: string;
|
|
4064
|
-
/**
|
|
4065
|
-
* Initializes localization with the specified language and custom resources.
|
|
4066
|
-
* @param {string} [language=""] - The language code to set.
|
|
4067
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4068
|
-
*/
|
|
4069
4031
|
SELECT__USER: string;
|
|
4070
4032
|
GROUP_PASSWORD_BLANK: string;
|
|
4071
4033
|
GROUP_NAME_BLANK: string;
|
|
4072
4034
|
GROUP_TYPE_BLANK: string;
|
|
4073
|
-
/**
|
|
4074
|
-
* Initializes localization with the specified language and custom resources.
|
|
4075
|
-
* @param {string} [language=""] - The language code to set.
|
|
4076
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4077
|
-
*/
|
|
4078
4035
|
DELETE_CONVERSATION: string;
|
|
4079
4036
|
ADD_TO_CHAT: string;
|
|
4080
4037
|
MORE: string;
|
|
@@ -4116,10 +4073,7 @@ declare class CometChatLocalize {
|
|
|
4116
4073
|
PREFERENCES: string;
|
|
4117
4074
|
MEMBERS: string;
|
|
4118
4075
|
MEMBER: string;
|
|
4119
|
-
EDITED: string;
|
|
4120
|
-
* Returns the language code
|
|
4121
|
-
* @returns {String} language code i.e. en
|
|
4122
|
-
*/
|
|
4076
|
+
EDITED: string;
|
|
4123
4077
|
TODAY: string;
|
|
4124
4078
|
YESTERDAY: string;
|
|
4125
4079
|
SUNDAY: string;
|
|
@@ -4878,10 +4832,7 @@ declare class CometChatLocalize {
|
|
|
4878
4832
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4879
4833
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4880
4834
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4881
|
-
SCHEDULE: string;
|
|
4882
|
-
* Returns the language code
|
|
4883
|
-
* @returns {String} language code i.e. en
|
|
4884
|
-
*/
|
|
4835
|
+
SCHEDULE: string;
|
|
4885
4836
|
MORE_TIMES: string;
|
|
4886
4837
|
MISSED_VOICE_CALL: string;
|
|
4887
4838
|
MEET_WITH: string;
|
|
@@ -5306,11 +5257,7 @@ declare class CometChatLocalize {
|
|
|
5306
5257
|
YESTERDAY: string;
|
|
5307
5258
|
SUNDAY: string;
|
|
5308
5259
|
MONDAY: string;
|
|
5309
|
-
TUESDAY: string;
|
|
5310
|
-
* Accepts the string to localize and return the localized string
|
|
5311
|
-
* @param {String} str
|
|
5312
|
-
* @returns {String} localized str
|
|
5313
|
-
*/
|
|
5260
|
+
TUESDAY: string;
|
|
5314
5261
|
WEDNESDAY: string;
|
|
5315
5262
|
THURSDAY: string;
|
|
5316
5263
|
FRIDAY: string;
|
|
@@ -5702,21 +5649,14 @@ declare class CometChatLocalize {
|
|
|
5702
5649
|
PREFERENCES: string;
|
|
5703
5650
|
MEMBERS: string;
|
|
5704
5651
|
MEMBER: string;
|
|
5705
|
-
EDITED: string;
|
|
5706
|
-
* Set the active language
|
|
5707
|
-
* @param {String} language
|
|
5708
|
-
*/
|
|
5652
|
+
EDITED: string;
|
|
5709
5653
|
TODAY: string;
|
|
5710
5654
|
YESTERDAY: string;
|
|
5711
5655
|
SUNDAY: string;
|
|
5712
5656
|
MONDAY: string;
|
|
5713
5657
|
TUESDAY: string;
|
|
5714
5658
|
WEDNESDAY: string;
|
|
5715
|
-
THURSDAY: string;
|
|
5716
|
-
* Accepts the string to localize and return the localized string
|
|
5717
|
-
* @param {String} str
|
|
5718
|
-
* @returns {String} localized str
|
|
5719
|
-
*/
|
|
5659
|
+
THURSDAY: string;
|
|
5720
5660
|
FRIDAY: string;
|
|
5721
5661
|
SATURDAY: string;
|
|
5722
5662
|
TYPING: string;
|
|
@@ -6854,28 +6794,28 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6854
6794
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
6855
6795
|
getCopyOption(): CometChatActionsIcon;
|
|
6856
6796
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
6857
|
-
isSentByMe(loggedInUser: CometChat
|
|
6858
|
-
getTextMessageOptions(loggedInUser: CometChat
|
|
6859
|
-
getIsSentByMe(message: CometChat
|
|
6860
|
-
getImageMessageOptions(loggedInUser: CometChat
|
|
6861
|
-
getVideoMessageOptions(loggedInUser: CometChat
|
|
6862
|
-
getAudioMessageOptions(loggedInUser: CometChat
|
|
6863
|
-
getFileMessageOptions(loggedInUser: CometChat
|
|
6797
|
+
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
6798
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6799
|
+
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
6800
|
+
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6801
|
+
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6802
|
+
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6803
|
+
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6864
6804
|
getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
|
|
6865
6805
|
/**
|
|
6866
6806
|
* Function to get receipt for message bubble
|
|
6867
6807
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6868
6808
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6869
6809
|
*/
|
|
6870
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
6810
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
|
|
6871
6811
|
/**
|
|
6872
6812
|
* Function to get status and date for message bubble
|
|
6873
6813
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6874
6814
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6875
6815
|
*/
|
|
6876
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
6877
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
6878
|
-
getBottomView(_messageObject: CometChat
|
|
6816
|
+
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6817
|
+
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6818
|
+
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6879
6819
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6880
6820
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
6881
6821
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6886,25 +6826,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6886
6826
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
6887
6827
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
6888
6828
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
6889
|
-
getMessageOptions(loggedInUser: CometChat
|
|
6890
|
-
getCommonOptions(loggedInUser: CometChat
|
|
6829
|
+
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6830
|
+
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6891
6831
|
getAllMessageTypes(): Array<string>;
|
|
6892
6832
|
addList(): string;
|
|
6893
6833
|
getAllMessageCategories(additionalConfigurations?: {
|
|
6894
6834
|
hideGroupActionMessages?: boolean;
|
|
6895
6835
|
}): Array<string>;
|
|
6896
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
6836
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
6897
6837
|
getId(): string;
|
|
6898
|
-
getTextMessageContentView(message: CometChat
|
|
6899
|
-
getAudioMessageContentView(message: CometChat
|
|
6900
|
-
getFileMessageContentView(message: CometChat
|
|
6901
|
-
getImageMessageContentView(message: CometChat
|
|
6902
|
-
getVideoMessageContentView(message: CometChat
|
|
6838
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
6839
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6840
|
+
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6841
|
+
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6842
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6903
6843
|
getActionMessage(message: any): string;
|
|
6904
|
-
getDeleteMessageBubble(message: CometChat
|
|
6905
|
-
getGroupActionBubble(message: CometChat
|
|
6906
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
6907
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat
|
|
6844
|
+
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6845
|
+
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6846
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6847
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6908
6848
|
/**
|
|
6909
6849
|
* Function to check mimeType and return the iconUrl of that type
|
|
6910
6850
|
* @param mimeType
|
|
@@ -6917,16 +6857,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6917
6857
|
* @returns
|
|
6918
6858
|
*/
|
|
6919
6859
|
getFileSize: (sizeInBytes: number) => string;
|
|
6920
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
6921
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
6922
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat
|
|
6860
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6861
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6862
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6923
6863
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
6924
6864
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
6925
6865
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
6926
6866
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
6927
6867
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
6928
|
-
getLastConversationMessage(conversation: CometChat
|
|
6929
|
-
getAuxiliaryHeaderMenu(user?: CometChat
|
|
6868
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
6869
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6930
6870
|
/**
|
|
6931
6871
|
* Adds styled @ for every mention in the text by matching uid
|
|
6932
6872
|
*
|
|
@@ -6934,21 +6874,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6934
6874
|
* @param {string} subtitle
|
|
6935
6875
|
* @returns {void}
|
|
6936
6876
|
*/
|
|
6937
|
-
getMentionsFormattedText(message: CometChat
|
|
6877
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6938
6878
|
mentionsTargetElement: MentionsTargetElement;
|
|
6939
6879
|
}): string;
|
|
6940
6880
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
6941
6881
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
6942
6882
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
6943
|
-
getFormMessageBubble(message: CometChat
|
|
6944
|
-
getSchedulerMessageBubble(message: CometChat
|
|
6945
|
-
getCardMessageBubble(message: CometChat
|
|
6883
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6884
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6885
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6946
6886
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
6947
6887
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
6948
6888
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
6949
|
-
getFormMessageContentView(message: CometChat
|
|
6950
|
-
getSchedulerMessageContentView(message: CometChat
|
|
6951
|
-
getCardMessageContentView(message: CometChat
|
|
6889
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6890
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6891
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6952
6892
|
}
|
|
6953
6893
|
|
|
6954
6894
|
/**
|
|
@@ -7641,13 +7581,13 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
7641
7581
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7642
7582
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7643
7583
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7644
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): Element |
|
|
7645
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element |
|
|
7646
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element |
|
|
7647
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element |
|
|
7648
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element |
|
|
7649
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element |
|
|
7650
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element |
|
|
7584
|
+
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): JSX.Element | Element | null;
|
|
7585
|
+
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX.Element | Element | null;
|
|
7586
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
|
|
7587
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7588
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7589
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7590
|
+
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7651
7591
|
getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
7652
7592
|
getImageMessageTemplate(): CometChatMessageTemplate;
|
|
7653
7593
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -7663,28 +7603,28 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
7663
7603
|
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
7664
7604
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
7665
7605
|
getId(): string;
|
|
7666
|
-
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element |
|
|
7667
|
-
getGroupActionBubble(message: CometChat.BaseMessage): Element |
|
|
7668
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element |
|
|
7669
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element |
|
|
7670
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element |
|
|
7671
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element |
|
|
7672
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element |
|
|
7606
|
+
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
|
|
7607
|
+
getGroupActionBubble(message: CometChat.BaseMessage): JSX.Element | Element;
|
|
7608
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
|
|
7609
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
|
|
7610
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
|
|
7611
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
|
|
7612
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
|
|
7673
7613
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
|
|
7674
7614
|
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
7675
7615
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
7676
7616
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
7677
7617
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
7678
7618
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
7679
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7680
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7681
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7619
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7620
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7621
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7682
7622
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
7683
7623
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
7684
7624
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
7685
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7686
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7687
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element |
|
|
7625
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7626
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7627
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7688
7628
|
}
|
|
7689
7629
|
|
|
7690
7630
|
interface ListProps<T> {
|
|
@@ -7693,7 +7633,7 @@ interface ListProps<T> {
|
|
|
7693
7633
|
*
|
|
7694
7634
|
* @defaultValue `""`
|
|
7695
7635
|
*/
|
|
7696
|
-
headerView?: JSX
|
|
7636
|
+
headerView?: JSX.Element;
|
|
7697
7637
|
/**
|
|
7698
7638
|
* Hide the search bar
|
|
7699
7639
|
*
|
|
@@ -7726,7 +7666,7 @@ interface ListProps<T> {
|
|
|
7726
7666
|
/**
|
|
7727
7667
|
* Custom list item view to be rendered for each object in the `list` prop
|
|
7728
7668
|
*/
|
|
7729
|
-
itemView: (item: T, itemIndex: number) => JSX
|
|
7669
|
+
itemView: (item: T, itemIndex: number) => JSX.Element;
|
|
7730
7670
|
/**
|
|
7731
7671
|
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
7732
7672
|
*/
|
|
@@ -7766,7 +7706,7 @@ interface ListProps<T> {
|
|
|
7766
7706
|
/**
|
|
7767
7707
|
* Custom view for the loading state of the component
|
|
7768
7708
|
*/
|
|
7769
|
-
loadingView?: JSX
|
|
7709
|
+
loadingView?: JSX.Element;
|
|
7770
7710
|
/**
|
|
7771
7711
|
* Hide error view
|
|
7772
7712
|
*
|
|
@@ -7779,11 +7719,11 @@ interface ListProps<T> {
|
|
|
7779
7719
|
/**
|
|
7780
7720
|
* Custom view for the error state of the component
|
|
7781
7721
|
*/
|
|
7782
|
-
errorView?: JSX
|
|
7722
|
+
errorView?: JSX.Element;
|
|
7783
7723
|
/**
|
|
7784
7724
|
* Custom view for the empty state of the component
|
|
7785
7725
|
*/
|
|
7786
|
-
emptyView?: JSX
|
|
7726
|
+
emptyView?: JSX.Element;
|
|
7787
7727
|
/**
|
|
7788
7728
|
* Set the scrollbar to the bottom-most position of the scrollable list
|
|
7789
7729
|
*
|
|
@@ -7808,7 +7748,7 @@ interface ListProps<T> {
|
|
|
7808
7748
|
*
|
|
7809
7749
|
* @param props - The props for configuring the list
|
|
7810
7750
|
*/
|
|
7811
|
-
declare function List<T>(props: ListProps<T>): JSX
|
|
7751
|
+
declare function List<T>(props: ListProps<T>): JSX.Element;
|
|
7812
7752
|
/**
|
|
7813
7753
|
* Renders a scrollable list
|
|
7814
7754
|
*/
|
|
@@ -8207,7 +8147,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
8207
8147
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
8208
8148
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
8209
8149
|
*/
|
|
8210
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
8150
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
8211
8151
|
/**
|
|
8212
8152
|
* Retrieves the style for the link preview wrapper.
|
|
8213
8153
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -8301,7 +8241,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
8301
8241
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
8302
8242
|
* @returns {JSX.Element} The content view for the text message.
|
|
8303
8243
|
*/
|
|
8304
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
8244
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
8305
8245
|
/**
|
|
8306
8246
|
* Checks if an option with the specified ID already exists in the options list.
|
|
8307
8247
|
*
|
|
@@ -8533,7 +8473,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8533
8473
|
* @param group - Optional group object.
|
|
8534
8474
|
* @returns An array of auxiliary options.
|
|
8535
8475
|
*/
|
|
8536
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
8476
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
8537
8477
|
/**
|
|
8538
8478
|
* Creates the sticker auxiliary button component.
|
|
8539
8479
|
* @param id - A map containing relevant IDs.
|
|
@@ -8542,7 +8482,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8542
8482
|
* @param group - Optional group object.
|
|
8543
8483
|
* @returns The JSX element for the sticker auxiliary button.
|
|
8544
8484
|
*/
|
|
8545
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
8485
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
8546
8486
|
/**
|
|
8547
8487
|
* Sends a sticker message.
|
|
8548
8488
|
* @param event - The event object containing sticker details.
|
|
@@ -8552,14 +8492,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8552
8492
|
* Sends a sticker message.
|
|
8553
8493
|
* @param event - The event object containing sticker details.
|
|
8554
8494
|
*/
|
|
8555
|
-
getSticker(message: CometChat
|
|
8495
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
8556
8496
|
/**
|
|
8557
8497
|
* Creates a JSX element for displaying the sticker message content.
|
|
8558
8498
|
* @param stickerMessage - The custom message containing sticker data.
|
|
8559
8499
|
* @param _theme - The theme object for styling.
|
|
8560
8500
|
* @returns The JSX element for the sticker message content.
|
|
8561
8501
|
*/
|
|
8562
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
8502
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8563
8503
|
/**
|
|
8564
8504
|
* Creates a sticker message template.
|
|
8565
8505
|
* @param _theme - The theme object for styling.
|
|
@@ -8595,7 +8535,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8595
8535
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
8596
8536
|
* @returns A string representing the last message.
|
|
8597
8537
|
*/
|
|
8598
|
-
getLastConversationMessage(conversation: CometChat
|
|
8538
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
8599
8539
|
}
|
|
8600
8540
|
|
|
8601
8541
|
/**
|
|
@@ -8644,7 +8584,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8644
8584
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
8645
8585
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
8646
8586
|
*/
|
|
8647
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element |
|
|
8587
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
|
|
8648
8588
|
/**
|
|
8649
8589
|
* Provides the video message bubble with support for thumbnail generation.
|
|
8650
8590
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -8655,7 +8595,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8655
8595
|
* @param {Function} [onClick] - Optional click event handler.
|
|
8656
8596
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
8657
8597
|
*/
|
|
8658
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element |
|
|
8598
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
|
|
8659
8599
|
}
|
|
8660
8600
|
|
|
8661
8601
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -9002,54 +8942,54 @@ interface ConversationsProps {
|
|
|
9002
8942
|
/**
|
|
9003
8943
|
* A custom component to render in the top-right corner of the Conversations UI.
|
|
9004
8944
|
*/
|
|
9005
|
-
headerView?: JSX
|
|
8945
|
+
headerView?: JSX.Element;
|
|
9006
8946
|
/**
|
|
9007
8947
|
* A custom component to display during the loading state.
|
|
9008
8948
|
*/
|
|
9009
|
-
loadingView?: JSX
|
|
8949
|
+
loadingView?: JSX.Element;
|
|
9010
8950
|
/**
|
|
9011
8951
|
* A custom component to display when there are no conversations available.
|
|
9012
8952
|
*/
|
|
9013
|
-
emptyView?: JSX
|
|
8953
|
+
emptyView?: JSX.Element;
|
|
9014
8954
|
/**
|
|
9015
8955
|
* A custom component to display when an error occurs.
|
|
9016
8956
|
*/
|
|
9017
|
-
errorView?: JSX
|
|
8957
|
+
errorView?: JSX.Element;
|
|
9018
8958
|
/**
|
|
9019
8959
|
* A custom view to render each conversation in the list.
|
|
9020
8960
|
*
|
|
9021
8961
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9022
8962
|
* @returns A JSX element to be rendered as the conversation item.
|
|
9023
8963
|
*/
|
|
9024
|
-
itemView?: (conversation: CometChat.Conversation) => JSX
|
|
8964
|
+
itemView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9025
8965
|
/**
|
|
9026
8966
|
* A function that renders a JSX element to display the leading view.
|
|
9027
8967
|
*
|
|
9028
8968
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9029
8969
|
* @returns A JSX element to be rendered as the leading view.
|
|
9030
8970
|
*/
|
|
9031
|
-
leadingView?: (conversation: CometChat.Conversation) => JSX
|
|
8971
|
+
leadingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9032
8972
|
/**
|
|
9033
8973
|
* A function that renders a JSX element to display the title view.
|
|
9034
8974
|
*
|
|
9035
8975
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9036
8976
|
* @returns A JSX element to be rendered as the title view.
|
|
9037
8977
|
*/
|
|
9038
|
-
titleView?: (conversation: CometChat.Conversation) => JSX
|
|
8978
|
+
titleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9039
8979
|
/**
|
|
9040
8980
|
* A custom view to render the subtitle for each conversation.
|
|
9041
8981
|
*
|
|
9042
8982
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9043
8983
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9044
8984
|
*/
|
|
9045
|
-
subtitleView?: (conversation: CometChat.Conversation) => JSX
|
|
8985
|
+
subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9046
8986
|
/**
|
|
9047
8987
|
* A custom view to render at the end of each conversation item.
|
|
9048
8988
|
*
|
|
9049
8989
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9050
8990
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9051
8991
|
*/
|
|
9052
|
-
trailingView?: (conversation: CometChat.Conversation) => JSX
|
|
8992
|
+
trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9053
8993
|
}
|
|
9054
8994
|
/**
|
|
9055
8995
|
* Renders a scrollable list of conversations that has been created in a CometChat app
|
|
@@ -9162,54 +9102,54 @@ interface GroupMembersProps {
|
|
|
9162
9102
|
/**
|
|
9163
9103
|
* A custom component to render in the top-right corner of the group members list.
|
|
9164
9104
|
*/
|
|
9165
|
-
headerView?: JSX
|
|
9105
|
+
headerView?: JSX.Element;
|
|
9166
9106
|
/**
|
|
9167
9107
|
* A custom view to display during the loading state.
|
|
9168
9108
|
*/
|
|
9169
|
-
loadingView?: JSX
|
|
9109
|
+
loadingView?: JSX.Element;
|
|
9170
9110
|
/**
|
|
9171
9111
|
* Custom view for the error state of the component.
|
|
9172
9112
|
*/
|
|
9173
|
-
errorView?: JSX
|
|
9113
|
+
errorView?: JSX.Element;
|
|
9174
9114
|
/**
|
|
9175
9115
|
* A custom view to display when no group members are available in the list.
|
|
9176
9116
|
*/
|
|
9177
|
-
emptyView?: JSX
|
|
9117
|
+
emptyView?: JSX.Element;
|
|
9178
9118
|
/**
|
|
9179
9119
|
* A custom view to render for each group member in the fetched list.
|
|
9180
9120
|
*
|
|
9181
9121
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9182
9122
|
* @returns A JSX element to be rendered as the group member item.
|
|
9183
9123
|
*/
|
|
9184
|
-
itemView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9124
|
+
itemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9185
9125
|
/**
|
|
9186
9126
|
* A function that renders a JSX element to display the leading view.
|
|
9187
9127
|
*
|
|
9188
9128
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9189
9129
|
* @returns A JSX element to be rendered as the leading view.
|
|
9190
9130
|
*/
|
|
9191
|
-
leadingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9131
|
+
leadingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9192
9132
|
/**
|
|
9193
9133
|
* A function that renders a JSX element to display the title view.
|
|
9194
9134
|
*
|
|
9195
9135
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9196
9136
|
* @returns A JSX element to be rendered as the title view.
|
|
9197
9137
|
*/
|
|
9198
|
-
titleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9138
|
+
titleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9199
9139
|
/**
|
|
9200
9140
|
* A function that renders a JSX element to display the subtitle view.
|
|
9201
9141
|
*
|
|
9202
9142
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9203
9143
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9204
9144
|
*/
|
|
9205
|
-
subtitleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9145
|
+
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9206
9146
|
/**
|
|
9207
9147
|
* A function that renders a JSX element to display the trailing view.
|
|
9208
9148
|
*
|
|
9209
9149
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9210
9150
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9211
9151
|
*/
|
|
9212
|
-
trailingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9152
|
+
trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9213
9153
|
}
|
|
9214
9154
|
declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
9215
9155
|
|
|
@@ -9285,54 +9225,54 @@ interface GroupsProps {
|
|
|
9285
9225
|
/**
|
|
9286
9226
|
* A custom component to render in the top-right corner of the groups list.
|
|
9287
9227
|
*/
|
|
9288
|
-
headerView?: JSX
|
|
9228
|
+
headerView?: JSX.Element;
|
|
9289
9229
|
/**
|
|
9290
9230
|
* A custom view to display during the loading state.
|
|
9291
9231
|
*/
|
|
9292
|
-
loadingView?: JSX
|
|
9232
|
+
loadingView?: JSX.Element;
|
|
9293
9233
|
/**
|
|
9294
9234
|
* Custom view for the empty state of the component.
|
|
9295
9235
|
*/
|
|
9296
|
-
emptyView?: JSX
|
|
9236
|
+
emptyView?: JSX.Element;
|
|
9297
9237
|
/**
|
|
9298
9238
|
* A custom view to display when an error occurs.
|
|
9299
9239
|
*/
|
|
9300
|
-
errorView?: JSX
|
|
9240
|
+
errorView?: JSX.Element;
|
|
9301
9241
|
/**
|
|
9302
9242
|
* A custom view to render for each group in the fetched list.
|
|
9303
9243
|
*
|
|
9304
9244
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9305
9245
|
* @returns A JSX element to be rendered as the group item.
|
|
9306
9246
|
*/
|
|
9307
|
-
itemView?: (group: CometChat.Group) => JSX
|
|
9247
|
+
itemView?: (group: CometChat.Group) => JSX.Element;
|
|
9308
9248
|
/**
|
|
9309
9249
|
* A function that renders a JSX element to display the leading view.
|
|
9310
9250
|
*
|
|
9311
9251
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9312
9252
|
* @returns A JSX element to be rendered as the leading view.
|
|
9313
9253
|
*/
|
|
9314
|
-
leadingView?: (group: CometChat.Group) => JSX
|
|
9254
|
+
leadingView?: (group: CometChat.Group) => JSX.Element;
|
|
9315
9255
|
/**
|
|
9316
9256
|
* A function that renders a JSX element to display the title view.
|
|
9317
9257
|
*
|
|
9318
9258
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9319
9259
|
* @returns A JSX element to be rendered as the title view.
|
|
9320
9260
|
*/
|
|
9321
|
-
titleView?: (group: CometChat.Group) => JSX
|
|
9261
|
+
titleView?: (group: CometChat.Group) => JSX.Element;
|
|
9322
9262
|
/**
|
|
9323
9263
|
* Custom subtitle view to be rendered for each group in the fetched list.
|
|
9324
9264
|
*
|
|
9325
9265
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9326
9266
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9327
9267
|
*/
|
|
9328
|
-
subtitleView?: (group: CometChat.Group) => JSX
|
|
9268
|
+
subtitleView?: (group: CometChat.Group) => JSX.Element;
|
|
9329
9269
|
/**
|
|
9330
9270
|
* A function that renders a JSX element to display the trailing view.
|
|
9331
9271
|
*
|
|
9332
9272
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9333
9273
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9334
9274
|
*/
|
|
9335
|
-
trailingView?: (group: CometChat.Group) => JSX
|
|
9275
|
+
trailingView?: (group: CometChat.Group) => JSX.Element;
|
|
9336
9276
|
}
|
|
9337
9277
|
/**
|
|
9338
9278
|
* Renders a scrollable list of groups that has been created in a CometChat app
|
|
@@ -9500,15 +9440,15 @@ interface MessageComposerProps {
|
|
|
9500
9440
|
/**
|
|
9501
9441
|
* A custom view for the send button to customize its appearance or behavior.
|
|
9502
9442
|
*/
|
|
9503
|
-
sendButtonView?: JSX
|
|
9443
|
+
sendButtonView?: JSX.Element;
|
|
9504
9444
|
/**
|
|
9505
9445
|
* A custom view for an auxiliary button, which can be used alongside the send button.
|
|
9506
9446
|
*/
|
|
9507
|
-
auxiliaryButtonView?: JSX
|
|
9447
|
+
auxiliaryButtonView?: JSX.Element;
|
|
9508
9448
|
/**
|
|
9509
9449
|
* A custom header section displayed at the top of the message composer, often used for media previews or additional information.
|
|
9510
9450
|
*/
|
|
9511
|
-
headerView?: JSX
|
|
9451
|
+
headerView?: JSX.Element;
|
|
9512
9452
|
}
|
|
9513
9453
|
/**
|
|
9514
9454
|
* Renders a message composer to send messages to a user or group of a CometChat App
|
|
@@ -9526,9 +9466,15 @@ interface MessageHeaderProps {
|
|
|
9526
9466
|
showConversationSummaryButton?: boolean;
|
|
9527
9467
|
/**
|
|
9528
9468
|
* Hides the back button in the header in mobile view.
|
|
9469
|
+
* @deprecated Use 'showBackButton' prop instead. This prop is deprecated and will be removed in future versions.
|
|
9529
9470
|
* @default false
|
|
9530
9471
|
*/
|
|
9531
9472
|
hideBackButton?: boolean;
|
|
9473
|
+
/**
|
|
9474
|
+
* Hides the back button in the header in mobile view.
|
|
9475
|
+
* @default false
|
|
9476
|
+
*/
|
|
9477
|
+
showBackButton?: boolean;
|
|
9532
9478
|
/**
|
|
9533
9479
|
* Hides the video call button.
|
|
9534
9480
|
* @default false
|
|
@@ -9578,28 +9524,28 @@ interface MessageHeaderProps {
|
|
|
9578
9524
|
/**
|
|
9579
9525
|
* A custom JSX element for rendering a menu. It can be used to add options or actions.
|
|
9580
9526
|
*/
|
|
9581
|
-
auxiliaryButtonView?: JSX
|
|
9527
|
+
auxiliaryButtonView?: JSX.Element;
|
|
9582
9528
|
/**
|
|
9583
9529
|
* A custom JSX element for rendering a list item view, typically used to show user or group details.
|
|
9584
9530
|
*/
|
|
9585
|
-
itemView?: JSX
|
|
9531
|
+
itemView?: JSX.Element;
|
|
9586
9532
|
/**
|
|
9587
9533
|
* A function that renders a JSX element to display the leading view.
|
|
9588
9534
|
*/
|
|
9589
|
-
leadingView?: JSX
|
|
9535
|
+
leadingView?: JSX.Element;
|
|
9590
9536
|
/**
|
|
9591
9537
|
* A function that renders a JSX element to display the title view.
|
|
9592
9538
|
*/
|
|
9593
|
-
titleView?: JSX
|
|
9539
|
+
titleView?: JSX.Element;
|
|
9594
9540
|
/**
|
|
9595
9541
|
* Custom subtitle view, allowing you to render a JSX element as the subtitle.
|
|
9596
9542
|
* It can be used to provide additional information under the title.
|
|
9597
9543
|
*/
|
|
9598
|
-
subtitleView?: JSX
|
|
9544
|
+
subtitleView?: JSX.Element;
|
|
9599
9545
|
/**
|
|
9600
9546
|
* A function that renders a JSX element to display the trailing view.
|
|
9601
9547
|
*/
|
|
9602
|
-
trailingView?: JSX
|
|
9548
|
+
trailingView?: JSX.Element;
|
|
9603
9549
|
}
|
|
9604
9550
|
/** Functional component for rendering the CometChatMessageHeader */
|
|
9605
9551
|
declare const CometChatMessageHeader: (props: MessageHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -9915,54 +9861,54 @@ interface UsersProps {
|
|
|
9915
9861
|
/**
|
|
9916
9862
|
* A custom component to render in the top-right corner of the user list.
|
|
9917
9863
|
*/
|
|
9918
|
-
headerView?: JSX
|
|
9864
|
+
headerView?: JSX.Element;
|
|
9919
9865
|
/**
|
|
9920
9866
|
* A custom view to display during the loading state.
|
|
9921
9867
|
*/
|
|
9922
|
-
loadingView?: JSX
|
|
9868
|
+
loadingView?: JSX.Element;
|
|
9923
9869
|
/**
|
|
9924
9870
|
* A custom view to display when an error occurs.
|
|
9925
9871
|
*/
|
|
9926
|
-
errorView?: JSX
|
|
9872
|
+
errorView?: JSX.Element;
|
|
9927
9873
|
/**
|
|
9928
9874
|
* A custom view to display when no users are available in the list.
|
|
9929
9875
|
*/
|
|
9930
|
-
emptyView?: JSX
|
|
9876
|
+
emptyView?: JSX.Element;
|
|
9931
9877
|
/**
|
|
9932
9878
|
* A custom view to render for each user in the fetched list.
|
|
9933
9879
|
*
|
|
9934
9880
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9935
9881
|
* @returns A JSX element to be rendered as the user item.
|
|
9936
9882
|
*/
|
|
9937
|
-
itemView?: (user: CometChat.User) => JSX
|
|
9883
|
+
itemView?: (user: CometChat.User) => JSX.Element;
|
|
9938
9884
|
/**
|
|
9939
9885
|
* A function that renders a JSX element to display the leading view.
|
|
9940
9886
|
*
|
|
9941
9887
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9942
9888
|
* @returns A JSX element to be rendered as the leading view.
|
|
9943
9889
|
*/
|
|
9944
|
-
leadingView?: (user: CometChat.User) => JSX
|
|
9890
|
+
leadingView?: (user: CometChat.User) => JSX.Element;
|
|
9945
9891
|
/**
|
|
9946
9892
|
* A custom function to render the title view of a user.
|
|
9947
9893
|
*
|
|
9948
9894
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9949
9895
|
* @returns A JSX element to be rendered as the title view.
|
|
9950
9896
|
*/
|
|
9951
|
-
titleView?: (user: CometChat.User) => JSX
|
|
9897
|
+
titleView?: (user: CometChat.User) => JSX.Element;
|
|
9952
9898
|
/**
|
|
9953
9899
|
* A custom view to render the subtitle for each user.
|
|
9954
9900
|
*
|
|
9955
9901
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9956
9902
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9957
9903
|
*/
|
|
9958
|
-
subtitleView?: (user: CometChat.User) => JSX
|
|
9904
|
+
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
9959
9905
|
/**
|
|
9960
9906
|
* A function that renders a JSX element to display the trailing view.
|
|
9961
9907
|
*
|
|
9962
9908
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9963
9909
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9964
9910
|
*/
|
|
9965
|
-
trailingView?: (user: CometChat.User) => JSX
|
|
9911
|
+
trailingView?: (user: CometChat.User) => JSX.Element;
|
|
9966
9912
|
}
|
|
9967
9913
|
/**
|
|
9968
9914
|
* Renders a scrollable list of users that has been created in a CometChat app
|
|
@@ -11312,7 +11258,7 @@ declare function isSafari(): boolean;
|
|
|
11312
11258
|
*/
|
|
11313
11259
|
declare function isURL(text: string): boolean;
|
|
11314
11260
|
declare function getThemeVariable(name: string): string;
|
|
11315
|
-
declare function getThemeMode(): "
|
|
11261
|
+
declare function getThemeMode(): "dark" | "light";
|
|
11316
11262
|
/**
|
|
11317
11263
|
* Function to convert audio forat from webm to wav
|
|
11318
11264
|
* @param file
|
|
@@ -11503,7 +11449,7 @@ declare class CometChatUIKitUtility {
|
|
|
11503
11449
|
* @param messageObject - The message object containing extensions.
|
|
11504
11450
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
11505
11451
|
*/
|
|
11506
|
-
static getExtensionData(messageObject: CometChat
|
|
11452
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
11507
11453
|
/**
|
|
11508
11454
|
* Checks for extension data in a message.
|
|
11509
11455
|
*
|
|
@@ -11511,7 +11457,7 @@ declare class CometChatUIKitUtility {
|
|
|
11511
11457
|
* @param extensionKey - The extension key to look for.
|
|
11512
11458
|
* @returns The extension data if found.
|
|
11513
11459
|
*/
|
|
11514
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
11460
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11515
11461
|
/**
|
|
11516
11462
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
11517
11463
|
*
|