@cometchat/chat-uikit-react 5.0.8 → 5.0.10
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 +222 -177
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatActionSheet.css +0 -5
- package/dist/styles/CometChatChangeScope.css +0 -5
- package/dist/styles/CometChatEmojiKeyboard.css +0 -7
- package/dist/styles/CometChatGroupMembers.css +6 -3
- package/dist/styles/CometChatList.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +33 -0
- package/dist/styles/CometChatMessageHeader.css +16 -18
- package/dist/styles/CometChatMessageInformation.css +7 -8
- package/dist/styles/CometChatMessageList.css +14 -0
- package/dist/styles/CometChatReactionList.css +0 -7
- package/dist/styles/CometChatThreadedMessagePreview.css +5 -0
- package/dist/styles/MessageTranslationBubble.css +2 -4
- package/dist/styles/StickersKeyboard.css +0 -23
- package/dist/styles/components/CometChatActionSheet.css +0 -5
- package/dist/styles/components/CometChatChangeScope.css +0 -5
- package/dist/styles/components/CometChatEmojiKeyboard.css +0 -7
- package/dist/styles/components/CometChatGroupMembers.css +6 -3
- package/dist/styles/components/CometChatList.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +33 -0
- package/dist/styles/components/CometChatMessageHeader.css +16 -18
- package/dist/styles/components/CometChatMessageInformation.css +7 -8
- package/dist/styles/components/CometChatMessageList.css +14 -0
- package/dist/styles/components/CometChatReactionList.css +0 -7
- package/dist/styles/components/CometChatThreadedMessagePreview.css +5 -0
- package/dist/styles/components/MessageTranslationBubble.css +2 -4
- package/dist/styles/components/StickersKeyboard.css +0 -23
- 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/CometChatList/CometChatList.d.ts +5 -0
- 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 +6 -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/CometChatConversations.d.ts +5 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +5 -0
- package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +5 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +6 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +6 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +6 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +49 -1
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +6 -0
- 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.
|
|
@@ -300,16 +300,64 @@ declare enum MentionsVisibility {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
interface MentionsProps {
|
|
303
|
+
/**
|
|
304
|
+
* Determines the type of list to display - either users or group members.
|
|
305
|
+
* @defaultValue `UserMemberListType.users`
|
|
306
|
+
*/
|
|
303
307
|
userMemberListType?: UserMemberListType;
|
|
308
|
+
/**
|
|
309
|
+
* Callback function invoked when a user or group member item is clicked.
|
|
310
|
+
* @param user - The clicked user (CometChat.User) or group member (CometChat.GroupMember)
|
|
311
|
+
* @returns void
|
|
312
|
+
*/
|
|
304
313
|
onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
|
|
314
|
+
/**
|
|
315
|
+
* A custom view to render each user or group member item in the list.
|
|
316
|
+
*
|
|
317
|
+
* @param item - An instance of CometChat.User or CometChat.GroupMember to be rendered
|
|
318
|
+
* @returns A JSX element representing the custom item view
|
|
319
|
+
*/
|
|
305
320
|
itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
321
|
+
/**
|
|
322
|
+
* The search keyword used to filter users or group members.
|
|
323
|
+
*/
|
|
306
324
|
searchKeyword?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The group instance for which to display group members.
|
|
327
|
+
*/
|
|
307
328
|
group?: CometChat.Group;
|
|
329
|
+
/**
|
|
330
|
+
* A custom view to render the subtitle for each user or group member item.
|
|
331
|
+
* @param item - An instance of CometChat.User or CometChat.GroupMember
|
|
332
|
+
* @returns A JSX element representing the custom subtitle view
|
|
333
|
+
*/
|
|
308
334
|
subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
335
|
+
/**
|
|
336
|
+
* A request builder to fetch users with custom parameters.
|
|
337
|
+
*/
|
|
309
338
|
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
339
|
+
/**
|
|
340
|
+
* Callback function invoked when the list is empty (no users or group members found).
|
|
341
|
+
*
|
|
342
|
+
* @returns void
|
|
343
|
+
*/
|
|
310
344
|
onEmpty?: () => void;
|
|
345
|
+
/**
|
|
346
|
+
* A request builder to fetch group members with custom parameters.
|
|
347
|
+
*/
|
|
311
348
|
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
349
|
+
/**
|
|
350
|
+
* Callback function invoked when an error occurs while fetching users or group members.
|
|
351
|
+
*
|
|
352
|
+
* @returns void
|
|
353
|
+
*/
|
|
312
354
|
onError?: () => void;
|
|
355
|
+
/**
|
|
356
|
+
* Controls the visibility of the scrollbar in the list.
|
|
357
|
+
*
|
|
358
|
+
* @defaultValue `false`
|
|
359
|
+
*/
|
|
360
|
+
showScrollbar?: boolean;
|
|
313
361
|
}
|
|
314
362
|
declare function CometChatUserMemberWrapper(props: MentionsProps): react_jsx_runtime.JSX.Element;
|
|
315
363
|
|
|
@@ -426,7 +474,6 @@ declare class CometChatLocalize {
|
|
|
426
474
|
WRONG_FILE_TYPE: string;
|
|
427
475
|
MESSAGE_HEADER: string;
|
|
428
476
|
MESSAGE_LIST: string;
|
|
429
|
-
/**Properties and constants */
|
|
430
477
|
MESSAGE_COMPOSER: string;
|
|
431
478
|
USERS_WITH_MESSAGES: string;
|
|
432
479
|
USER_LIST: string;
|
|
@@ -454,7 +501,7 @@ declare class CometChatLocalize {
|
|
|
454
501
|
MESSAGE_IMAGE: string;
|
|
455
502
|
MESSAGE_FILE: string;
|
|
456
503
|
MESSAGE_VIDEO: string;
|
|
457
|
-
MESSAGE_AUDIO: string;
|
|
504
|
+
MESSAGE_AUDIO: string;
|
|
458
505
|
CUSTOM_MESSAGE: string;
|
|
459
506
|
SELECT_A_DATE: string;
|
|
460
507
|
TIME_ZONE: string;
|
|
@@ -505,11 +552,6 @@ declare class CometChatLocalize {
|
|
|
505
552
|
ADD_MEMBERS: string;
|
|
506
553
|
SEND_MESSAGE: string;
|
|
507
554
|
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
555
|
BLOCK_USER: string;
|
|
514
556
|
DELETE_AND_EXIT: string;
|
|
515
557
|
LEAVE_GROUP: string;
|
|
@@ -1300,11 +1342,7 @@ declare class CometChatLocalize {
|
|
|
1300
1342
|
TYPING: string;
|
|
1301
1343
|
IS_TYPING: string;
|
|
1302
1344
|
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
|
-
*/
|
|
1345
|
+
ENTER_GROUP_NAME: string;
|
|
1308
1346
|
ADD_MEMBERS: string;
|
|
1309
1347
|
SEND_MESSAGE: string;
|
|
1310
1348
|
UNBLOCK_USER: string;
|
|
@@ -1618,17 +1656,12 @@ declare class CometChatLocalize {
|
|
|
1618
1656
|
MESSAGE_RECEIPT: string;
|
|
1619
1657
|
MESSAGE: string;
|
|
1620
1658
|
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
1659
|
NO_RECIPIENT: string;
|
|
1627
1660
|
NO_RECIPIENTS: string;
|
|
1628
1661
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1629
1662
|
CONVERSATIONS: string;
|
|
1630
1663
|
CONVERSATION_LIST: string;
|
|
1631
|
-
MESSAGES: string;
|
|
1664
|
+
MESSAGES: string;
|
|
1632
1665
|
WRONG_FILE_TYPE: string;
|
|
1633
1666
|
MESSAGE_HEADER: string;
|
|
1634
1667
|
MESSAGE_LIST: string;
|
|
@@ -1651,7 +1684,7 @@ declare class CometChatLocalize {
|
|
|
1651
1684
|
GROUP_PASSWORD_BLANK: string;
|
|
1652
1685
|
GROUP_NAME_BLANK: string;
|
|
1653
1686
|
GROUP_TYPE_BLANK: string;
|
|
1654
|
-
DELETE_CONVERSATION: string;
|
|
1687
|
+
DELETE_CONVERSATION: string;
|
|
1655
1688
|
ADD_TO_CHAT: string;
|
|
1656
1689
|
MORE: string;
|
|
1657
1690
|
COPY: string;
|
|
@@ -1687,10 +1720,7 @@ declare class CometChatLocalize {
|
|
|
1687
1720
|
MODERATOR: string;
|
|
1688
1721
|
PARTICIPANT: string;
|
|
1689
1722
|
PUBLIC: string;
|
|
1690
|
-
PRIVATE: string;
|
|
1691
|
-
* Set the active language
|
|
1692
|
-
* @param {String} language
|
|
1693
|
-
*/
|
|
1723
|
+
PRIVATE: string;
|
|
1694
1724
|
PASSWORD_PROTECTED: string;
|
|
1695
1725
|
PRIVACY_AND_SECURITY: string;
|
|
1696
1726
|
PREFERENCES: string;
|
|
@@ -2063,10 +2093,7 @@ declare class CometChatLocalize {
|
|
|
2063
2093
|
CUSTOM_MESSAGE: string;
|
|
2064
2094
|
SELECT_A_DATE: string;
|
|
2065
2095
|
TIME_ZONE: string;
|
|
2066
|
-
MEETING_SCHEDULED: string;
|
|
2067
|
-
* Returns the browser language
|
|
2068
|
-
* @returns {String} browser langauge i.e. en-US
|
|
2069
|
-
*/
|
|
2096
|
+
MEETING_SCHEDULED: string;
|
|
2070
2097
|
SOMETHING_WRONG: string;
|
|
2071
2098
|
MEETING_SLOT_BOOK: string;
|
|
2072
2099
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -2488,10 +2515,7 @@ declare class CometChatLocalize {
|
|
|
2488
2515
|
PARTICIPANT: string;
|
|
2489
2516
|
PUBLIC: string;
|
|
2490
2517
|
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
|
-
*/
|
|
2518
|
+
PASSWORD_PROTECTED: string;
|
|
2495
2519
|
PRIVACY_AND_SECURITY: string;
|
|
2496
2520
|
PREFERENCES: string;
|
|
2497
2521
|
MEMBERS: string;
|
|
@@ -2859,7 +2883,6 @@ declare class CometChatLocalize {
|
|
|
2859
2883
|
MESSAGE_IMAGE: string;
|
|
2860
2884
|
MESSAGE_FILE: string;
|
|
2861
2885
|
MESSAGE_VIDEO: string;
|
|
2862
|
-
/**Add to the original array of translations if language code is not found */
|
|
2863
2886
|
MESSAGE_AUDIO: string;
|
|
2864
2887
|
CUSTOM_MESSAGE: string;
|
|
2865
2888
|
SELECT_A_DATE: string;
|
|
@@ -2883,10 +2906,7 @@ declare class CometChatLocalize {
|
|
|
2883
2906
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2884
2907
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2885
2908
|
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
|
-
*/
|
|
2909
|
+
ADMINISTRATOR: string;
|
|
2890
2910
|
ADMIN: string;
|
|
2891
2911
|
MODERATOR: string;
|
|
2892
2912
|
PARTICIPANT: string;
|
|
@@ -2900,10 +2920,7 @@ declare class CometChatLocalize {
|
|
|
2900
2920
|
EDITED: string;
|
|
2901
2921
|
TODAY: string;
|
|
2902
2922
|
YESTERDAY: string;
|
|
2903
|
-
SUNDAY: string;
|
|
2904
|
-
* Set the active language
|
|
2905
|
-
* @param {String} language
|
|
2906
|
-
*/
|
|
2923
|
+
SUNDAY: string;
|
|
2907
2924
|
MONDAY: string;
|
|
2908
2925
|
TUESDAY: string;
|
|
2909
2926
|
WEDNESDAY: string;
|
|
@@ -3309,9 +3326,7 @@ declare class CometChatLocalize {
|
|
|
3309
3326
|
SATURDAY: string;
|
|
3310
3327
|
TYPING: string;
|
|
3311
3328
|
IS_TYPING: string;
|
|
3312
|
-
CLOSE: string;
|
|
3313
|
-
* Sets the default lannguage if no language is passed in init method
|
|
3314
|
-
*/
|
|
3329
|
+
CLOSE: string;
|
|
3315
3330
|
ENTER_GROUP_NAME: string;
|
|
3316
3331
|
ADD_MEMBERS: string;
|
|
3317
3332
|
SEND_MESSAGE: string;
|
|
@@ -3657,7 +3672,7 @@ declare class CometChatLocalize {
|
|
|
3657
3672
|
DELETE_CONVERSATION: string;
|
|
3658
3673
|
ADD_TO_CHAT: string;
|
|
3659
3674
|
MORE: string;
|
|
3660
|
-
COPY: string;
|
|
3675
|
+
COPY: string;
|
|
3661
3676
|
VOICE_RECORDING: string;
|
|
3662
3677
|
MESSAGE_IMAGE: string;
|
|
3663
3678
|
MESSAGE_FILE: string;
|
|
@@ -4061,20 +4076,10 @@ declare class CometChatLocalize {
|
|
|
4061
4076
|
SELECT_TIME: string;
|
|
4062
4077
|
NO_CALLS_SELECTED: string;
|
|
4063
4078
|
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
4079
|
SELECT__USER: string;
|
|
4070
4080
|
GROUP_PASSWORD_BLANK: string;
|
|
4071
4081
|
GROUP_NAME_BLANK: string;
|
|
4072
4082
|
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
4083
|
DELETE_CONVERSATION: string;
|
|
4079
4084
|
ADD_TO_CHAT: string;
|
|
4080
4085
|
MORE: string;
|
|
@@ -4116,10 +4121,7 @@ declare class CometChatLocalize {
|
|
|
4116
4121
|
PREFERENCES: string;
|
|
4117
4122
|
MEMBERS: string;
|
|
4118
4123
|
MEMBER: string;
|
|
4119
|
-
EDITED: string;
|
|
4120
|
-
* Returns the language code
|
|
4121
|
-
* @returns {String} language code i.e. en
|
|
4122
|
-
*/
|
|
4124
|
+
EDITED: string;
|
|
4123
4125
|
TODAY: string;
|
|
4124
4126
|
YESTERDAY: string;
|
|
4125
4127
|
SUNDAY: string;
|
|
@@ -4878,10 +4880,7 @@ declare class CometChatLocalize {
|
|
|
4878
4880
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4879
4881
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4880
4882
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4881
|
-
SCHEDULE: string;
|
|
4882
|
-
* Returns the language code
|
|
4883
|
-
* @returns {String} language code i.e. en
|
|
4884
|
-
*/
|
|
4883
|
+
SCHEDULE: string;
|
|
4885
4884
|
MORE_TIMES: string;
|
|
4886
4885
|
MISSED_VOICE_CALL: string;
|
|
4887
4886
|
MEET_WITH: string;
|
|
@@ -5306,11 +5305,7 @@ declare class CometChatLocalize {
|
|
|
5306
5305
|
YESTERDAY: string;
|
|
5307
5306
|
SUNDAY: string;
|
|
5308
5307
|
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
|
-
*/
|
|
5308
|
+
TUESDAY: string;
|
|
5314
5309
|
WEDNESDAY: string;
|
|
5315
5310
|
THURSDAY: string;
|
|
5316
5311
|
FRIDAY: string;
|
|
@@ -5702,21 +5697,14 @@ declare class CometChatLocalize {
|
|
|
5702
5697
|
PREFERENCES: string;
|
|
5703
5698
|
MEMBERS: string;
|
|
5704
5699
|
MEMBER: string;
|
|
5705
|
-
EDITED: string;
|
|
5706
|
-
* Set the active language
|
|
5707
|
-
* @param {String} language
|
|
5708
|
-
*/
|
|
5700
|
+
EDITED: string;
|
|
5709
5701
|
TODAY: string;
|
|
5710
5702
|
YESTERDAY: string;
|
|
5711
5703
|
SUNDAY: string;
|
|
5712
5704
|
MONDAY: string;
|
|
5713
5705
|
TUESDAY: string;
|
|
5714
5706
|
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
|
-
*/
|
|
5707
|
+
THURSDAY: string;
|
|
5720
5708
|
FRIDAY: string;
|
|
5721
5709
|
SATURDAY: string;
|
|
5722
5710
|
TYPING: string;
|
|
@@ -6854,28 +6842,28 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6854
6842
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
6855
6843
|
getCopyOption(): CometChatActionsIcon;
|
|
6856
6844
|
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
|
|
6845
|
+
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
6846
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6847
|
+
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
6848
|
+
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6849
|
+
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6850
|
+
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6851
|
+
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6864
6852
|
getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
|
|
6865
6853
|
/**
|
|
6866
6854
|
* Function to get receipt for message bubble
|
|
6867
6855
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6868
6856
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6869
6857
|
*/
|
|
6870
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
6858
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
|
|
6871
6859
|
/**
|
|
6872
6860
|
* Function to get status and date for message bubble
|
|
6873
6861
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6874
6862
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6875
6863
|
*/
|
|
6876
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
6877
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
6878
|
-
getBottomView(_messageObject: CometChat
|
|
6864
|
+
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6865
|
+
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6866
|
+
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6879
6867
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6880
6868
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
6881
6869
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6886,25 +6874,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6886
6874
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
6887
6875
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
6888
6876
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
6889
|
-
getMessageOptions(loggedInUser: CometChat
|
|
6890
|
-
getCommonOptions(loggedInUser: CometChat
|
|
6877
|
+
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6878
|
+
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6891
6879
|
getAllMessageTypes(): Array<string>;
|
|
6892
6880
|
addList(): string;
|
|
6893
6881
|
getAllMessageCategories(additionalConfigurations?: {
|
|
6894
6882
|
hideGroupActionMessages?: boolean;
|
|
6895
6883
|
}): Array<string>;
|
|
6896
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
6884
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
6897
6885
|
getId(): string;
|
|
6898
|
-
getTextMessageContentView(message: CometChat
|
|
6899
|
-
getAudioMessageContentView(message: CometChat
|
|
6900
|
-
getFileMessageContentView(message: CometChat
|
|
6901
|
-
getImageMessageContentView(message: CometChat
|
|
6902
|
-
getVideoMessageContentView(message: CometChat
|
|
6886
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6887
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6888
|
+
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6889
|
+
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6890
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6903
6891
|
getActionMessage(message: any): string;
|
|
6904
|
-
getDeleteMessageBubble(message: CometChat
|
|
6905
|
-
getGroupActionBubble(message: CometChat
|
|
6906
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
6907
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat
|
|
6892
|
+
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6893
|
+
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6894
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6895
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6908
6896
|
/**
|
|
6909
6897
|
* Function to check mimeType and return the iconUrl of that type
|
|
6910
6898
|
* @param mimeType
|
|
@@ -6917,16 +6905,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6917
6905
|
* @returns
|
|
6918
6906
|
*/
|
|
6919
6907
|
getFileSize: (sizeInBytes: number) => string;
|
|
6920
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
6921
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
6922
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat
|
|
6908
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6909
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6910
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6923
6911
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
6924
6912
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
6925
6913
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
6926
6914
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
6927
6915
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
6928
|
-
getLastConversationMessage(conversation: CometChat
|
|
6929
|
-
getAuxiliaryHeaderMenu(user?: CometChat
|
|
6916
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
6917
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6930
6918
|
/**
|
|
6931
6919
|
* Adds styled @ for every mention in the text by matching uid
|
|
6932
6920
|
*
|
|
@@ -6934,21 +6922,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6934
6922
|
* @param {string} subtitle
|
|
6935
6923
|
* @returns {void}
|
|
6936
6924
|
*/
|
|
6937
|
-
getMentionsFormattedText(message: CometChat
|
|
6925
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6938
6926
|
mentionsTargetElement: MentionsTargetElement;
|
|
6939
6927
|
}): string;
|
|
6940
6928
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
6941
6929
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
6942
6930
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
6943
|
-
getFormMessageBubble(message: CometChat
|
|
6944
|
-
getSchedulerMessageBubble(message: CometChat
|
|
6945
|
-
getCardMessageBubble(message: CometChat
|
|
6931
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6932
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6933
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6946
6934
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
6947
6935
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
6948
6936
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
6949
|
-
getFormMessageContentView(message: CometChat
|
|
6950
|
-
getSchedulerMessageContentView(message: CometChat
|
|
6951
|
-
getCardMessageContentView(message: CometChat
|
|
6937
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6938
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6939
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6952
6940
|
}
|
|
6953
6941
|
|
|
6954
6942
|
/**
|
|
@@ -7693,7 +7681,7 @@ interface ListProps<T> {
|
|
|
7693
7681
|
*
|
|
7694
7682
|
* @defaultValue `""`
|
|
7695
7683
|
*/
|
|
7696
|
-
headerView?: JSX
|
|
7684
|
+
headerView?: JSX.Element;
|
|
7697
7685
|
/**
|
|
7698
7686
|
* Hide the search bar
|
|
7699
7687
|
*
|
|
@@ -7726,7 +7714,7 @@ interface ListProps<T> {
|
|
|
7726
7714
|
/**
|
|
7727
7715
|
* Custom list item view to be rendered for each object in the `list` prop
|
|
7728
7716
|
*/
|
|
7729
|
-
itemView: (item: T, itemIndex: number) => JSX
|
|
7717
|
+
itemView: (item: T, itemIndex: number) => JSX.Element;
|
|
7730
7718
|
/**
|
|
7731
7719
|
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
7732
7720
|
*/
|
|
@@ -7766,7 +7754,7 @@ interface ListProps<T> {
|
|
|
7766
7754
|
/**
|
|
7767
7755
|
* Custom view for the loading state of the component
|
|
7768
7756
|
*/
|
|
7769
|
-
loadingView?: JSX
|
|
7757
|
+
loadingView?: JSX.Element;
|
|
7770
7758
|
/**
|
|
7771
7759
|
* Hide error view
|
|
7772
7760
|
*
|
|
@@ -7779,11 +7767,11 @@ interface ListProps<T> {
|
|
|
7779
7767
|
/**
|
|
7780
7768
|
* Custom view for the error state of the component
|
|
7781
7769
|
*/
|
|
7782
|
-
errorView?: JSX
|
|
7770
|
+
errorView?: JSX.Element;
|
|
7783
7771
|
/**
|
|
7784
7772
|
* Custom view for the empty state of the component
|
|
7785
7773
|
*/
|
|
7786
|
-
emptyView?: JSX
|
|
7774
|
+
emptyView?: JSX.Element;
|
|
7787
7775
|
/**
|
|
7788
7776
|
* Set the scrollbar to the bottom-most position of the scrollable list
|
|
7789
7777
|
*
|
|
@@ -7801,6 +7789,11 @@ interface ListProps<T> {
|
|
|
7801
7789
|
* @defaultValue `""`
|
|
7802
7790
|
*/
|
|
7803
7791
|
title?: string;
|
|
7792
|
+
/**
|
|
7793
|
+
* Controls the visibility of the scrollbar in the list.
|
|
7794
|
+
* @defaultValue `false`
|
|
7795
|
+
*/
|
|
7796
|
+
showScrollbar?: boolean;
|
|
7804
7797
|
}
|
|
7805
7798
|
/**
|
|
7806
7799
|
* Renders a list component that can display a title, search bar,
|
|
@@ -7808,7 +7801,7 @@ interface ListProps<T> {
|
|
|
7808
7801
|
*
|
|
7809
7802
|
* @param props - The props for configuring the list
|
|
7810
7803
|
*/
|
|
7811
|
-
declare function List<T>(props: ListProps<T>): JSX
|
|
7804
|
+
declare function List<T>(props: ListProps<T>): JSX.Element;
|
|
7812
7805
|
/**
|
|
7813
7806
|
* Renders a scrollable list
|
|
7814
7807
|
*/
|
|
@@ -8207,7 +8200,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
8207
8200
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
8208
8201
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
8209
8202
|
*/
|
|
8210
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
8203
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React__default.JSX.Element;
|
|
8211
8204
|
/**
|
|
8212
8205
|
* Retrieves the style for the link preview wrapper.
|
|
8213
8206
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -8301,7 +8294,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
8301
8294
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
8302
8295
|
* @returns {JSX.Element} The content view for the text message.
|
|
8303
8296
|
*/
|
|
8304
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
8297
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React.JSX.Element;
|
|
8305
8298
|
/**
|
|
8306
8299
|
* Checks if an option with the specified ID already exists in the options list.
|
|
8307
8300
|
*
|
|
@@ -8533,7 +8526,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8533
8526
|
* @param group - Optional group object.
|
|
8534
8527
|
* @returns An array of auxiliary options.
|
|
8535
8528
|
*/
|
|
8536
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
8529
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
8537
8530
|
/**
|
|
8538
8531
|
* Creates the sticker auxiliary button component.
|
|
8539
8532
|
* @param id - A map containing relevant IDs.
|
|
@@ -8542,7 +8535,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8542
8535
|
* @param group - Optional group object.
|
|
8543
8536
|
* @returns The JSX element for the sticker auxiliary button.
|
|
8544
8537
|
*/
|
|
8545
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
8538
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
8546
8539
|
/**
|
|
8547
8540
|
* Sends a sticker message.
|
|
8548
8541
|
* @param event - The event object containing sticker details.
|
|
@@ -8552,14 +8545,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8552
8545
|
* Sends a sticker message.
|
|
8553
8546
|
* @param event - The event object containing sticker details.
|
|
8554
8547
|
*/
|
|
8555
|
-
getSticker(message: CometChat
|
|
8548
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
8556
8549
|
/**
|
|
8557
8550
|
* Creates a JSX element for displaying the sticker message content.
|
|
8558
8551
|
* @param stickerMessage - The custom message containing sticker data.
|
|
8559
8552
|
* @param _theme - The theme object for styling.
|
|
8560
8553
|
* @returns The JSX element for the sticker message content.
|
|
8561
8554
|
*/
|
|
8562
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
8555
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8563
8556
|
/**
|
|
8564
8557
|
* Creates a sticker message template.
|
|
8565
8558
|
* @param _theme - The theme object for styling.
|
|
@@ -8595,7 +8588,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8595
8588
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
8596
8589
|
* @returns A string representing the last message.
|
|
8597
8590
|
*/
|
|
8598
|
-
getLastConversationMessage(conversation: CometChat
|
|
8591
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
8599
8592
|
}
|
|
8600
8593
|
|
|
8601
8594
|
/**
|
|
@@ -8644,7 +8637,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8644
8637
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
8645
8638
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
8646
8639
|
*/
|
|
8647
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | JSX.Element;
|
|
8640
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | React.JSX.Element;
|
|
8648
8641
|
/**
|
|
8649
8642
|
* Provides the video message bubble with support for thumbnail generation.
|
|
8650
8643
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -8655,7 +8648,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8655
8648
|
* @param {Function} [onClick] - Optional click event handler.
|
|
8656
8649
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
8657
8650
|
*/
|
|
8658
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
8651
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | React.JSX.Element;
|
|
8659
8652
|
}
|
|
8660
8653
|
|
|
8661
8654
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -8899,6 +8892,11 @@ interface CallLogsProps {
|
|
|
8899
8892
|
* @returns A JSX element to be rendered as the trailing view.
|
|
8900
8893
|
*/
|
|
8901
8894
|
trailingView?: (call: any) => JSX.Element;
|
|
8895
|
+
/**
|
|
8896
|
+
* Controls the visibility of the scrollbar in the list.
|
|
8897
|
+
* @defaultValue `false`
|
|
8898
|
+
*/
|
|
8899
|
+
showScrollbar?: boolean;
|
|
8902
8900
|
}
|
|
8903
8901
|
declare const CometChatCallLogs: (props: CallLogsProps) => react_jsx_runtime.JSX.Element;
|
|
8904
8902
|
|
|
@@ -9002,54 +9000,59 @@ interface ConversationsProps {
|
|
|
9002
9000
|
/**
|
|
9003
9001
|
* A custom component to render in the top-right corner of the Conversations UI.
|
|
9004
9002
|
*/
|
|
9005
|
-
headerView?: JSX
|
|
9003
|
+
headerView?: JSX.Element;
|
|
9006
9004
|
/**
|
|
9007
9005
|
* A custom component to display during the loading state.
|
|
9008
9006
|
*/
|
|
9009
|
-
loadingView?: JSX
|
|
9007
|
+
loadingView?: JSX.Element;
|
|
9010
9008
|
/**
|
|
9011
9009
|
* A custom component to display when there are no conversations available.
|
|
9012
9010
|
*/
|
|
9013
|
-
emptyView?: JSX
|
|
9011
|
+
emptyView?: JSX.Element;
|
|
9014
9012
|
/**
|
|
9015
9013
|
* A custom component to display when an error occurs.
|
|
9016
9014
|
*/
|
|
9017
|
-
errorView?: JSX
|
|
9015
|
+
errorView?: JSX.Element;
|
|
9018
9016
|
/**
|
|
9019
9017
|
* A custom view to render each conversation in the list.
|
|
9020
9018
|
*
|
|
9021
9019
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9022
9020
|
* @returns A JSX element to be rendered as the conversation item.
|
|
9023
9021
|
*/
|
|
9024
|
-
itemView?: (conversation: CometChat.Conversation) => JSX
|
|
9022
|
+
itemView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9025
9023
|
/**
|
|
9026
9024
|
* A function that renders a JSX element to display the leading view.
|
|
9027
9025
|
*
|
|
9028
9026
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9029
9027
|
* @returns A JSX element to be rendered as the leading view.
|
|
9030
9028
|
*/
|
|
9031
|
-
leadingView?: (conversation: CometChat.Conversation) => JSX
|
|
9029
|
+
leadingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9032
9030
|
/**
|
|
9033
9031
|
* A function that renders a JSX element to display the title view.
|
|
9034
9032
|
*
|
|
9035
9033
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9036
9034
|
* @returns A JSX element to be rendered as the title view.
|
|
9037
9035
|
*/
|
|
9038
|
-
titleView?: (conversation: CometChat.Conversation) => JSX
|
|
9036
|
+
titleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9039
9037
|
/**
|
|
9040
9038
|
* A custom view to render the subtitle for each conversation.
|
|
9041
9039
|
*
|
|
9042
9040
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9043
9041
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9044
9042
|
*/
|
|
9045
|
-
subtitleView?: (conversation: CometChat.Conversation) => JSX
|
|
9043
|
+
subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9046
9044
|
/**
|
|
9047
9045
|
* A custom view to render at the end of each conversation item.
|
|
9048
9046
|
*
|
|
9049
9047
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
9050
9048
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9051
9049
|
*/
|
|
9052
|
-
trailingView?: (conversation: CometChat.Conversation) => JSX
|
|
9050
|
+
trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
9051
|
+
/**
|
|
9052
|
+
* Controls the visibility of the scrollbar in the list.
|
|
9053
|
+
* @defaultValue `false`
|
|
9054
|
+
*/
|
|
9055
|
+
showScrollbar?: boolean;
|
|
9053
9056
|
}
|
|
9054
9057
|
/**
|
|
9055
9058
|
* Renders a scrollable list of conversations that has been created in a CometChat app
|
|
@@ -9162,54 +9165,59 @@ interface GroupMembersProps {
|
|
|
9162
9165
|
/**
|
|
9163
9166
|
* A custom component to render in the top-right corner of the group members list.
|
|
9164
9167
|
*/
|
|
9165
|
-
headerView?: JSX
|
|
9168
|
+
headerView?: JSX.Element;
|
|
9166
9169
|
/**
|
|
9167
9170
|
* A custom view to display during the loading state.
|
|
9168
9171
|
*/
|
|
9169
|
-
loadingView?: JSX
|
|
9172
|
+
loadingView?: JSX.Element;
|
|
9170
9173
|
/**
|
|
9171
9174
|
* Custom view for the error state of the component.
|
|
9172
9175
|
*/
|
|
9173
|
-
errorView?: JSX
|
|
9176
|
+
errorView?: JSX.Element;
|
|
9174
9177
|
/**
|
|
9175
9178
|
* A custom view to display when no group members are available in the list.
|
|
9176
9179
|
*/
|
|
9177
|
-
emptyView?: JSX
|
|
9180
|
+
emptyView?: JSX.Element;
|
|
9178
9181
|
/**
|
|
9179
9182
|
* A custom view to render for each group member in the fetched list.
|
|
9180
9183
|
*
|
|
9181
9184
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9182
9185
|
* @returns A JSX element to be rendered as the group member item.
|
|
9183
9186
|
*/
|
|
9184
|
-
itemView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9187
|
+
itemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9185
9188
|
/**
|
|
9186
9189
|
* A function that renders a JSX element to display the leading view.
|
|
9187
9190
|
*
|
|
9188
9191
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9189
9192
|
* @returns A JSX element to be rendered as the leading view.
|
|
9190
9193
|
*/
|
|
9191
|
-
leadingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9194
|
+
leadingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9192
9195
|
/**
|
|
9193
9196
|
* A function that renders a JSX element to display the title view.
|
|
9194
9197
|
*
|
|
9195
9198
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9196
9199
|
* @returns A JSX element to be rendered as the title view.
|
|
9197
9200
|
*/
|
|
9198
|
-
titleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9201
|
+
titleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9199
9202
|
/**
|
|
9200
9203
|
* A function that renders a JSX element to display the subtitle view.
|
|
9201
9204
|
*
|
|
9202
9205
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9203
9206
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9204
9207
|
*/
|
|
9205
|
-
subtitleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9208
|
+
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9206
9209
|
/**
|
|
9207
9210
|
* A function that renders a JSX element to display the trailing view.
|
|
9208
9211
|
*
|
|
9209
9212
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
9210
9213
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9211
9214
|
*/
|
|
9212
|
-
trailingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
9215
|
+
trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
9216
|
+
/**
|
|
9217
|
+
* Controls the visibility of the scrollbar in the list.
|
|
9218
|
+
* @defaultValue `false`
|
|
9219
|
+
*/
|
|
9220
|
+
showScrollbar?: boolean;
|
|
9213
9221
|
}
|
|
9214
9222
|
declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
9215
9223
|
|
|
@@ -9285,54 +9293,59 @@ interface GroupsProps {
|
|
|
9285
9293
|
/**
|
|
9286
9294
|
* A custom component to render in the top-right corner of the groups list.
|
|
9287
9295
|
*/
|
|
9288
|
-
headerView?: JSX
|
|
9296
|
+
headerView?: JSX.Element;
|
|
9289
9297
|
/**
|
|
9290
9298
|
* A custom view to display during the loading state.
|
|
9291
9299
|
*/
|
|
9292
|
-
loadingView?: JSX
|
|
9300
|
+
loadingView?: JSX.Element;
|
|
9293
9301
|
/**
|
|
9294
9302
|
* Custom view for the empty state of the component.
|
|
9295
9303
|
*/
|
|
9296
|
-
emptyView?: JSX
|
|
9304
|
+
emptyView?: JSX.Element;
|
|
9297
9305
|
/**
|
|
9298
9306
|
* A custom view to display when an error occurs.
|
|
9299
9307
|
*/
|
|
9300
|
-
errorView?: JSX
|
|
9308
|
+
errorView?: JSX.Element;
|
|
9301
9309
|
/**
|
|
9302
9310
|
* A custom view to render for each group in the fetched list.
|
|
9303
9311
|
*
|
|
9304
9312
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9305
9313
|
* @returns A JSX element to be rendered as the group item.
|
|
9306
9314
|
*/
|
|
9307
|
-
itemView?: (group: CometChat.Group) => JSX
|
|
9315
|
+
itemView?: (group: CometChat.Group) => JSX.Element;
|
|
9308
9316
|
/**
|
|
9309
9317
|
* A function that renders a JSX element to display the leading view.
|
|
9310
9318
|
*
|
|
9311
9319
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9312
9320
|
* @returns A JSX element to be rendered as the leading view.
|
|
9313
9321
|
*/
|
|
9314
|
-
leadingView?: (group: CometChat.Group) => JSX
|
|
9322
|
+
leadingView?: (group: CometChat.Group) => JSX.Element;
|
|
9315
9323
|
/**
|
|
9316
9324
|
* A function that renders a JSX element to display the title view.
|
|
9317
9325
|
*
|
|
9318
9326
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9319
9327
|
* @returns A JSX element to be rendered as the title view.
|
|
9320
9328
|
*/
|
|
9321
|
-
titleView?: (group: CometChat.Group) => JSX
|
|
9329
|
+
titleView?: (group: CometChat.Group) => JSX.Element;
|
|
9322
9330
|
/**
|
|
9323
9331
|
* Custom subtitle view to be rendered for each group in the fetched list.
|
|
9324
9332
|
*
|
|
9325
9333
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9326
9334
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9327
9335
|
*/
|
|
9328
|
-
subtitleView?: (group: CometChat.Group) => JSX
|
|
9336
|
+
subtitleView?: (group: CometChat.Group) => JSX.Element;
|
|
9329
9337
|
/**
|
|
9330
9338
|
* A function that renders a JSX element to display the trailing view.
|
|
9331
9339
|
*
|
|
9332
9340
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
9333
9341
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9334
9342
|
*/
|
|
9335
|
-
trailingView?: (group: CometChat.Group) => JSX
|
|
9343
|
+
trailingView?: (group: CometChat.Group) => JSX.Element;
|
|
9344
|
+
/**
|
|
9345
|
+
* Controls the visibility of the scrollbar in the list.
|
|
9346
|
+
* @defaultValue `false`
|
|
9347
|
+
*/
|
|
9348
|
+
showScrollbar?: boolean;
|
|
9336
9349
|
}
|
|
9337
9350
|
/**
|
|
9338
9351
|
* Renders a scrollable list of groups that has been created in a CometChat app
|
|
@@ -9500,15 +9513,20 @@ interface MessageComposerProps {
|
|
|
9500
9513
|
/**
|
|
9501
9514
|
* A custom view for the send button to customize its appearance or behavior.
|
|
9502
9515
|
*/
|
|
9503
|
-
sendButtonView?: JSX
|
|
9516
|
+
sendButtonView?: JSX.Element;
|
|
9504
9517
|
/**
|
|
9505
9518
|
* A custom view for an auxiliary button, which can be used alongside the send button.
|
|
9506
9519
|
*/
|
|
9507
|
-
auxiliaryButtonView?: JSX
|
|
9520
|
+
auxiliaryButtonView?: JSX.Element;
|
|
9508
9521
|
/**
|
|
9509
9522
|
* A custom header section displayed at the top of the message composer, often used for media previews or additional information.
|
|
9510
9523
|
*/
|
|
9511
|
-
headerView?: JSX
|
|
9524
|
+
headerView?: JSX.Element;
|
|
9525
|
+
/**
|
|
9526
|
+
* Controls the visibility of the scrollbar in the list.
|
|
9527
|
+
* @defaultValue `false`
|
|
9528
|
+
*/
|
|
9529
|
+
showScrollbar?: boolean;
|
|
9512
9530
|
}
|
|
9513
9531
|
/**
|
|
9514
9532
|
* Renders a message composer to send messages to a user or group of a CometChat App
|
|
@@ -9526,9 +9544,15 @@ interface MessageHeaderProps {
|
|
|
9526
9544
|
showConversationSummaryButton?: boolean;
|
|
9527
9545
|
/**
|
|
9528
9546
|
* Hides the back button in the header in mobile view.
|
|
9547
|
+
* @deprecated Use 'showBackButton' prop instead. This prop is deprecated and will be removed in future versions.
|
|
9529
9548
|
* @default false
|
|
9530
9549
|
*/
|
|
9531
9550
|
hideBackButton?: boolean;
|
|
9551
|
+
/**
|
|
9552
|
+
* Hides the back button in the header in mobile view.
|
|
9553
|
+
* @default false
|
|
9554
|
+
*/
|
|
9555
|
+
showBackButton?: boolean;
|
|
9532
9556
|
/**
|
|
9533
9557
|
* Hides the video call button.
|
|
9534
9558
|
* @default false
|
|
@@ -9578,28 +9602,28 @@ interface MessageHeaderProps {
|
|
|
9578
9602
|
/**
|
|
9579
9603
|
* A custom JSX element for rendering a menu. It can be used to add options or actions.
|
|
9580
9604
|
*/
|
|
9581
|
-
auxiliaryButtonView?: JSX
|
|
9605
|
+
auxiliaryButtonView?: JSX.Element;
|
|
9582
9606
|
/**
|
|
9583
9607
|
* A custom JSX element for rendering a list item view, typically used to show user or group details.
|
|
9584
9608
|
*/
|
|
9585
|
-
itemView?: JSX
|
|
9609
|
+
itemView?: JSX.Element;
|
|
9586
9610
|
/**
|
|
9587
9611
|
* A function that renders a JSX element to display the leading view.
|
|
9588
9612
|
*/
|
|
9589
|
-
leadingView?: JSX
|
|
9613
|
+
leadingView?: JSX.Element;
|
|
9590
9614
|
/**
|
|
9591
9615
|
* A function that renders a JSX element to display the title view.
|
|
9592
9616
|
*/
|
|
9593
|
-
titleView?: JSX
|
|
9617
|
+
titleView?: JSX.Element;
|
|
9594
9618
|
/**
|
|
9595
9619
|
* Custom subtitle view, allowing you to render a JSX element as the subtitle.
|
|
9596
9620
|
* It can be used to provide additional information under the title.
|
|
9597
9621
|
*/
|
|
9598
|
-
subtitleView?: JSX
|
|
9622
|
+
subtitleView?: JSX.Element;
|
|
9599
9623
|
/**
|
|
9600
9624
|
* A function that renders a JSX element to display the trailing view.
|
|
9601
9625
|
*/
|
|
9602
|
-
trailingView?: JSX
|
|
9626
|
+
trailingView?: JSX.Element;
|
|
9603
9627
|
}
|
|
9604
9628
|
/** Functional component for rendering the CometChatMessageHeader */
|
|
9605
9629
|
declare const CometChatMessageHeader: (props: MessageHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -9807,6 +9831,11 @@ interface MessageListProps {
|
|
|
9807
9831
|
* A custom footer view component for the message list.
|
|
9808
9832
|
*/
|
|
9809
9833
|
footerView?: JSX.Element;
|
|
9834
|
+
/**
|
|
9835
|
+
* Controls the visibility of the scrollbar in the list.
|
|
9836
|
+
* @defaultValue `false`
|
|
9837
|
+
*/
|
|
9838
|
+
showScrollbar?: boolean;
|
|
9810
9839
|
}
|
|
9811
9840
|
declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
|
|
9812
9841
|
|
|
@@ -9915,54 +9944,60 @@ interface UsersProps {
|
|
|
9915
9944
|
/**
|
|
9916
9945
|
* A custom component to render in the top-right corner of the user list.
|
|
9917
9946
|
*/
|
|
9918
|
-
headerView?: JSX
|
|
9947
|
+
headerView?: JSX.Element;
|
|
9919
9948
|
/**
|
|
9920
9949
|
* A custom view to display during the loading state.
|
|
9921
9950
|
*/
|
|
9922
|
-
loadingView?: JSX
|
|
9951
|
+
loadingView?: JSX.Element;
|
|
9923
9952
|
/**
|
|
9924
9953
|
* A custom view to display when an error occurs.
|
|
9925
9954
|
*/
|
|
9926
|
-
errorView?: JSX
|
|
9955
|
+
errorView?: JSX.Element;
|
|
9927
9956
|
/**
|
|
9928
9957
|
* A custom view to display when no users are available in the list.
|
|
9929
9958
|
*/
|
|
9930
|
-
emptyView?: JSX
|
|
9959
|
+
emptyView?: JSX.Element;
|
|
9931
9960
|
/**
|
|
9932
9961
|
* A custom view to render for each user in the fetched list.
|
|
9933
9962
|
*
|
|
9934
9963
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9935
9964
|
* @returns A JSX element to be rendered as the user item.
|
|
9936
9965
|
*/
|
|
9937
|
-
itemView?: (user: CometChat.User) => JSX
|
|
9966
|
+
itemView?: (user: CometChat.User) => JSX.Element;
|
|
9938
9967
|
/**
|
|
9939
9968
|
* A function that renders a JSX element to display the leading view.
|
|
9940
9969
|
*
|
|
9941
9970
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9942
9971
|
* @returns A JSX element to be rendered as the leading view.
|
|
9943
9972
|
*/
|
|
9944
|
-
leadingView?: (user: CometChat.User) => JSX
|
|
9973
|
+
leadingView?: (user: CometChat.User) => JSX.Element;
|
|
9945
9974
|
/**
|
|
9946
9975
|
* A custom function to render the title view of a user.
|
|
9947
9976
|
*
|
|
9948
9977
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9949
9978
|
* @returns A JSX element to be rendered as the title view.
|
|
9950
9979
|
*/
|
|
9951
|
-
titleView?: (user: CometChat.User) => JSX
|
|
9980
|
+
titleView?: (user: CometChat.User) => JSX.Element;
|
|
9952
9981
|
/**
|
|
9953
9982
|
* A custom view to render the subtitle for each user.
|
|
9954
9983
|
*
|
|
9955
9984
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9956
9985
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
9957
9986
|
*/
|
|
9958
|
-
subtitleView?: (user: CometChat.User) => JSX
|
|
9987
|
+
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
9959
9988
|
/**
|
|
9960
9989
|
* A function that renders a JSX element to display the trailing view.
|
|
9961
9990
|
*
|
|
9962
9991
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
9963
9992
|
* @returns A JSX element to be rendered as the trailing view.
|
|
9964
9993
|
*/
|
|
9965
|
-
trailingView?: (user: CometChat.User) => JSX
|
|
9994
|
+
trailingView?: (user: CometChat.User) => JSX.Element;
|
|
9995
|
+
/**
|
|
9996
|
+
* Controls the visibility of the scrollbar in the list list.
|
|
9997
|
+
*
|
|
9998
|
+
* @defaultValue `false`
|
|
9999
|
+
*/
|
|
10000
|
+
showScrollbar?: boolean;
|
|
9966
10001
|
}
|
|
9967
10002
|
/**
|
|
9968
10003
|
* Renders a scrollable list of users that has been created in a CometChat app
|
|
@@ -9990,6 +10025,11 @@ interface MessageInformationProps {
|
|
|
9990
10025
|
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
9991
10026
|
*/
|
|
9992
10027
|
textFormatters?: CometChatTextFormatter[];
|
|
10028
|
+
/**
|
|
10029
|
+
* Controls the visibility of the scrollbar in the list.
|
|
10030
|
+
* @defaultValue `false`
|
|
10031
|
+
*/
|
|
10032
|
+
showScrollbar?: boolean;
|
|
9993
10033
|
}
|
|
9994
10034
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
9995
10035
|
|
|
@@ -11312,7 +11352,7 @@ declare function isSafari(): boolean;
|
|
|
11312
11352
|
*/
|
|
11313
11353
|
declare function isURL(text: string): boolean;
|
|
11314
11354
|
declare function getThemeVariable(name: string): string;
|
|
11315
|
-
declare function getThemeMode(): "
|
|
11355
|
+
declare function getThemeMode(): "dark" | "light";
|
|
11316
11356
|
/**
|
|
11317
11357
|
* Function to convert audio forat from webm to wav
|
|
11318
11358
|
* @param file
|
|
@@ -11414,6 +11454,11 @@ interface ThreadedMessagePreviewProps {
|
|
|
11414
11454
|
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
11415
11455
|
*/
|
|
11416
11456
|
textFormatters?: CometChatTextFormatter[];
|
|
11457
|
+
/**
|
|
11458
|
+
* Controls the visibility of the scrollbar in the list.
|
|
11459
|
+
* @defaultValue `false`
|
|
11460
|
+
*/
|
|
11461
|
+
showScrollbar?: boolean;
|
|
11417
11462
|
}
|
|
11418
11463
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => react_jsx_runtime.JSX.Element;
|
|
11419
11464
|
|
|
@@ -11503,7 +11548,7 @@ declare class CometChatUIKitUtility {
|
|
|
11503
11548
|
* @param messageObject - The message object containing extensions.
|
|
11504
11549
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
11505
11550
|
*/
|
|
11506
|
-
static getExtensionData(messageObject: CometChat
|
|
11551
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
11507
11552
|
/**
|
|
11508
11553
|
* Checks for extension data in a message.
|
|
11509
11554
|
*
|
|
@@ -11511,7 +11556,7 @@ declare class CometChatUIKitUtility {
|
|
|
11511
11556
|
* @param extensionKey - The extension key to look for.
|
|
11512
11557
|
* @returns The extension data if found.
|
|
11513
11558
|
*/
|
|
11514
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
11559
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11515
11560
|
/**
|
|
11516
11561
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
11517
11562
|
*
|