@cometchat/chat-uikit-react 5.0.5 → 5.0.7
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 +169 -66
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +4 -4
- package/dist/styles/CometChatConversationStarter.css +2 -1
- package/dist/styles/CometChatConversationSummary.css +2 -2
- package/dist/styles/CometChatEditPreview.css +3 -0
- package/dist/styles/CometChatFileBubble.css +4 -4
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatMediaRecorder.css +76 -4
- package/dist/styles/CometChatMessageBubble.css +4 -1
- package/dist/styles/CometChatMessageComposer.css +20 -3
- package/dist/styles/CometChatMessageInformation.css +6 -2
- package/dist/styles/CometChatMessageList.css +40 -24
- package/dist/styles/CometChatOngoingCall.css +1 -1
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -16
- package/dist/styles/CometChatReactionList.css +3 -4
- package/dist/styles/CometChatSmartReplies.css +2 -2
- package/dist/styles/CometChatThreadedMessagePreview.css +1 -1
- package/dist/styles/CreatePolls.css +8 -1
- package/dist/styles/StickersKeyboard.css +2 -2
- package/dist/styles/components/CometChatAudioBubble.css +4 -4
- package/dist/styles/components/CometChatConversationStarter.css +2 -1
- package/dist/styles/components/CometChatConversationSummary.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +3 -0
- package/dist/styles/components/CometChatFileBubble.css +4 -4
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatMediaRecorder.css +76 -4
- package/dist/styles/components/CometChatMessageBubble.css +4 -1
- package/dist/styles/components/CometChatMessageComposer.css +20 -3
- package/dist/styles/components/CometChatMessageInformation.css +6 -2
- package/dist/styles/components/CometChatMessageList.css +40 -24
- package/dist/styles/components/CometChatOngoingCall.css +1 -1
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -16
- package/dist/styles/components/CometChatReactionList.css +3 -4
- package/dist/styles/components/CometChatSmartReplies.css +2 -2
- package/dist/styles/components/CometChatThreadedMessagePreview.css +1 -1
- package/dist/styles/components/CreatePolls.css +8 -1
- package/dist/styles/components/StickersKeyboard.css +2 -2
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +1 -0
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
- package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
- package/dist/types/events/CometChatUIEvents.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +105 -16
- package/dist/types/utils/DataSource.d.ts +1 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +2 -0
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
- package/rollup.config.js +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
|
|
5
|
+
import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -425,6 +426,7 @@ declare class CometChatLocalize {
|
|
|
425
426
|
WRONG_FILE_TYPE: string;
|
|
426
427
|
MESSAGE_HEADER: string;
|
|
427
428
|
MESSAGE_LIST: string;
|
|
429
|
+
/**Properties and constants */
|
|
428
430
|
MESSAGE_COMPOSER: string;
|
|
429
431
|
USERS_WITH_MESSAGES: string;
|
|
430
432
|
USER_LIST: string;
|
|
@@ -452,7 +454,7 @@ declare class CometChatLocalize {
|
|
|
452
454
|
MESSAGE_IMAGE: string;
|
|
453
455
|
MESSAGE_FILE: string;
|
|
454
456
|
MESSAGE_VIDEO: string;
|
|
455
|
-
MESSAGE_AUDIO: string;
|
|
457
|
+
MESSAGE_AUDIO: string; /**Override resources */
|
|
456
458
|
CUSTOM_MESSAGE: string;
|
|
457
459
|
SELECT_A_DATE: string;
|
|
458
460
|
TIME_ZONE: string;
|
|
@@ -503,6 +505,11 @@ declare class CometChatLocalize {
|
|
|
503
505
|
ADD_MEMBERS: string;
|
|
504
506
|
SEND_MESSAGE: string;
|
|
505
507
|
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
|
+
*/
|
|
506
513
|
BLOCK_USER: string;
|
|
507
514
|
DELETE_AND_EXIT: string;
|
|
508
515
|
LEAVE_GROUP: string;
|
|
@@ -787,6 +794,8 @@ declare class CometChatLocalize {
|
|
|
787
794
|
SAVE: string;
|
|
788
795
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
789
796
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
797
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
798
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
790
799
|
};
|
|
791
800
|
de: {
|
|
792
801
|
INFO: string;
|
|
@@ -1182,6 +1191,8 @@ declare class CometChatLocalize {
|
|
|
1182
1191
|
SAVE: string;
|
|
1183
1192
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1184
1193
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1194
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1195
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1185
1196
|
};
|
|
1186
1197
|
en: {
|
|
1187
1198
|
INFO: string;
|
|
@@ -1289,7 +1300,11 @@ declare class CometChatLocalize {
|
|
|
1289
1300
|
TYPING: string;
|
|
1290
1301
|
IS_TYPING: string;
|
|
1291
1302
|
CLOSE: string;
|
|
1292
|
-
ENTER_GROUP_NAME: 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
|
+
*/
|
|
1293
1308
|
ADD_MEMBERS: string;
|
|
1294
1309
|
SEND_MESSAGE: string;
|
|
1295
1310
|
UNBLOCK_USER: string;
|
|
@@ -1577,6 +1592,8 @@ declare class CometChatLocalize {
|
|
|
1577
1592
|
SAVE: string;
|
|
1578
1593
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1579
1594
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1595
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1596
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1580
1597
|
};
|
|
1581
1598
|
es: {
|
|
1582
1599
|
INFO: string;
|
|
@@ -1601,12 +1618,17 @@ declare class CometChatLocalize {
|
|
|
1601
1618
|
MESSAGE_RECEIPT: string;
|
|
1602
1619
|
MESSAGE: string;
|
|
1603
1620
|
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
|
+
*/
|
|
1604
1626
|
NO_RECIPIENT: string;
|
|
1605
1627
|
NO_RECIPIENTS: string;
|
|
1606
1628
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1607
1629
|
CONVERSATIONS: string;
|
|
1608
1630
|
CONVERSATION_LIST: string;
|
|
1609
|
-
MESSAGES: string;
|
|
1631
|
+
MESSAGES: string; /**Properties and constants */
|
|
1610
1632
|
WRONG_FILE_TYPE: string;
|
|
1611
1633
|
MESSAGE_HEADER: string;
|
|
1612
1634
|
MESSAGE_LIST: string;
|
|
@@ -1629,7 +1651,7 @@ declare class CometChatLocalize {
|
|
|
1629
1651
|
GROUP_PASSWORD_BLANK: string;
|
|
1630
1652
|
GROUP_NAME_BLANK: string;
|
|
1631
1653
|
GROUP_TYPE_BLANK: string;
|
|
1632
|
-
DELETE_CONVERSATION: string;
|
|
1654
|
+
DELETE_CONVERSATION: string; /**Add to the original array of translations if language code is not found */
|
|
1633
1655
|
ADD_TO_CHAT: string;
|
|
1634
1656
|
MORE: string;
|
|
1635
1657
|
COPY: string;
|
|
@@ -1665,7 +1687,10 @@ declare class CometChatLocalize {
|
|
|
1665
1687
|
MODERATOR: string;
|
|
1666
1688
|
PARTICIPANT: string;
|
|
1667
1689
|
PUBLIC: string;
|
|
1668
|
-
PRIVATE: string;
|
|
1690
|
+
PRIVATE: string; /**
|
|
1691
|
+
* Set the active language
|
|
1692
|
+
* @param {String} language
|
|
1693
|
+
*/
|
|
1669
1694
|
PASSWORD_PROTECTED: string;
|
|
1670
1695
|
PRIVACY_AND_SECURITY: string;
|
|
1671
1696
|
PREFERENCES: string;
|
|
@@ -1972,6 +1997,8 @@ declare class CometChatLocalize {
|
|
|
1972
1997
|
SAVE: string;
|
|
1973
1998
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1974
1999
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2000
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2001
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1975
2002
|
};
|
|
1976
2003
|
fr: {
|
|
1977
2004
|
INFO: string;
|
|
@@ -2036,7 +2063,10 @@ declare class CometChatLocalize {
|
|
|
2036
2063
|
CUSTOM_MESSAGE: string;
|
|
2037
2064
|
SELECT_A_DATE: string;
|
|
2038
2065
|
TIME_ZONE: string;
|
|
2039
|
-
MEETING_SCHEDULED: string;
|
|
2066
|
+
MEETING_SCHEDULED: string; /**
|
|
2067
|
+
* Returns the browser language
|
|
2068
|
+
* @returns {String} browser langauge i.e. en-US
|
|
2069
|
+
*/
|
|
2040
2070
|
SOMETHING_WRONG: string;
|
|
2041
2071
|
MEETING_SLOT_BOOK: string;
|
|
2042
2072
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -2367,6 +2397,8 @@ declare class CometChatLocalize {
|
|
|
2367
2397
|
SAVE: string;
|
|
2368
2398
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2369
2399
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2400
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2401
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2370
2402
|
};
|
|
2371
2403
|
hi: {
|
|
2372
2404
|
INFO: string;
|
|
@@ -2456,7 +2488,10 @@ declare class CometChatLocalize {
|
|
|
2456
2488
|
PARTICIPANT: string;
|
|
2457
2489
|
PUBLIC: string;
|
|
2458
2490
|
PRIVATE: string;
|
|
2459
|
-
PASSWORD_PROTECTED: 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
|
+
*/
|
|
2460
2495
|
PRIVACY_AND_SECURITY: string;
|
|
2461
2496
|
PREFERENCES: string;
|
|
2462
2497
|
MEMBERS: string;
|
|
@@ -2762,6 +2797,8 @@ declare class CometChatLocalize {
|
|
|
2762
2797
|
SAVE: string;
|
|
2763
2798
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2764
2799
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2800
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2801
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2765
2802
|
};
|
|
2766
2803
|
ms: {
|
|
2767
2804
|
INFO: string;
|
|
@@ -2822,6 +2859,7 @@ declare class CometChatLocalize {
|
|
|
2822
2859
|
MESSAGE_IMAGE: string;
|
|
2823
2860
|
MESSAGE_FILE: string;
|
|
2824
2861
|
MESSAGE_VIDEO: string;
|
|
2862
|
+
/**Add to the original array of translations if language code is not found */
|
|
2825
2863
|
MESSAGE_AUDIO: string;
|
|
2826
2864
|
CUSTOM_MESSAGE: string;
|
|
2827
2865
|
SELECT_A_DATE: string;
|
|
@@ -2845,7 +2883,10 @@ declare class CometChatLocalize {
|
|
|
2845
2883
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2846
2884
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2847
2885
|
ONLINE: string;
|
|
2848
|
-
ADMINISTRATOR: 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
|
+
*/
|
|
2849
2890
|
ADMIN: string;
|
|
2850
2891
|
MODERATOR: string;
|
|
2851
2892
|
PARTICIPANT: string;
|
|
@@ -2859,7 +2900,10 @@ declare class CometChatLocalize {
|
|
|
2859
2900
|
EDITED: string;
|
|
2860
2901
|
TODAY: string;
|
|
2861
2902
|
YESTERDAY: string;
|
|
2862
|
-
SUNDAY: string;
|
|
2903
|
+
SUNDAY: string; /**
|
|
2904
|
+
* Set the active language
|
|
2905
|
+
* @param {String} language
|
|
2906
|
+
*/
|
|
2863
2907
|
MONDAY: string;
|
|
2864
2908
|
TUESDAY: string;
|
|
2865
2909
|
WEDNESDAY: string;
|
|
@@ -3157,6 +3201,8 @@ declare class CometChatLocalize {
|
|
|
3157
3201
|
SAVE: string;
|
|
3158
3202
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3159
3203
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3204
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3205
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3160
3206
|
};
|
|
3161
3207
|
pt: {
|
|
3162
3208
|
INFO: string;
|
|
@@ -3263,7 +3309,9 @@ declare class CometChatLocalize {
|
|
|
3263
3309
|
SATURDAY: string;
|
|
3264
3310
|
TYPING: string;
|
|
3265
3311
|
IS_TYPING: string;
|
|
3266
|
-
CLOSE: string;
|
|
3312
|
+
CLOSE: string; /**
|
|
3313
|
+
* Sets the default lannguage if no language is passed in init method
|
|
3314
|
+
*/
|
|
3267
3315
|
ENTER_GROUP_NAME: string;
|
|
3268
3316
|
ADD_MEMBERS: string;
|
|
3269
3317
|
SEND_MESSAGE: string;
|
|
@@ -3552,6 +3600,8 @@ declare class CometChatLocalize {
|
|
|
3552
3600
|
SAVE: string;
|
|
3553
3601
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3554
3602
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3603
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3604
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3555
3605
|
};
|
|
3556
3606
|
ru: {
|
|
3557
3607
|
INFO: string;
|
|
@@ -3607,7 +3657,7 @@ declare class CometChatLocalize {
|
|
|
3607
3657
|
DELETE_CONVERSATION: string;
|
|
3608
3658
|
ADD_TO_CHAT: string;
|
|
3609
3659
|
MORE: string;
|
|
3610
|
-
COPY: string;
|
|
3660
|
+
COPY: string; /**Override resources */
|
|
3611
3661
|
VOICE_RECORDING: string;
|
|
3612
3662
|
MESSAGE_IMAGE: string;
|
|
3613
3663
|
MESSAGE_FILE: string;
|
|
@@ -3947,6 +3997,8 @@ declare class CometChatLocalize {
|
|
|
3947
3997
|
SAVE: string;
|
|
3948
3998
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3949
3999
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4000
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4001
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3950
4002
|
};
|
|
3951
4003
|
zh: {
|
|
3952
4004
|
INCOMING_CALL: string;
|
|
@@ -4009,10 +4061,20 @@ declare class CometChatLocalize {
|
|
|
4009
4061
|
SELECT_TIME: string;
|
|
4010
4062
|
NO_CALLS_SELECTED: string;
|
|
4011
4063
|
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
|
+
*/
|
|
4012
4069
|
SELECT__USER: string;
|
|
4013
4070
|
GROUP_PASSWORD_BLANK: string;
|
|
4014
4071
|
GROUP_NAME_BLANK: string;
|
|
4015
4072
|
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
|
+
*/
|
|
4016
4078
|
DELETE_CONVERSATION: string;
|
|
4017
4079
|
ADD_TO_CHAT: string;
|
|
4018
4080
|
MORE: string;
|
|
@@ -4054,7 +4116,10 @@ declare class CometChatLocalize {
|
|
|
4054
4116
|
PREFERENCES: string;
|
|
4055
4117
|
MEMBERS: string;
|
|
4056
4118
|
MEMBER: string;
|
|
4057
|
-
EDITED: string;
|
|
4119
|
+
EDITED: string; /**
|
|
4120
|
+
* Returns the language code
|
|
4121
|
+
* @returns {String} language code i.e. en
|
|
4122
|
+
*/
|
|
4058
4123
|
TODAY: string;
|
|
4059
4124
|
YESTERDAY: string;
|
|
4060
4125
|
SUNDAY: string;
|
|
@@ -4342,6 +4407,8 @@ declare class CometChatLocalize {
|
|
|
4342
4407
|
SAVE: string;
|
|
4343
4408
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4344
4409
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4410
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4411
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4345
4412
|
};
|
|
4346
4413
|
"zh-tw": {
|
|
4347
4414
|
INFO: string;
|
|
@@ -4737,6 +4804,9 @@ declare class CometChatLocalize {
|
|
|
4737
4804
|
SAVE: string;
|
|
4738
4805
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4739
4806
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4807
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4808
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4809
|
+
media_recorder_error_button: string;
|
|
4740
4810
|
};
|
|
4741
4811
|
sv: {
|
|
4742
4812
|
INFO: string;
|
|
@@ -4808,7 +4878,10 @@ declare class CometChatLocalize {
|
|
|
4808
4878
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4809
4879
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4810
4880
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4811
|
-
SCHEDULE: string;
|
|
4881
|
+
SCHEDULE: string; /**
|
|
4882
|
+
* Returns the language code
|
|
4883
|
+
* @returns {String} language code i.e. en
|
|
4884
|
+
*/
|
|
4812
4885
|
MORE_TIMES: string;
|
|
4813
4886
|
MISSED_VOICE_CALL: string;
|
|
4814
4887
|
MEET_WITH: string;
|
|
@@ -5132,6 +5205,8 @@ declare class CometChatLocalize {
|
|
|
5132
5205
|
SAVE: string;
|
|
5133
5206
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5134
5207
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5208
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5209
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5135
5210
|
};
|
|
5136
5211
|
lt: {
|
|
5137
5212
|
INFO: string;
|
|
@@ -5231,7 +5306,11 @@ declare class CometChatLocalize {
|
|
|
5231
5306
|
YESTERDAY: string;
|
|
5232
5307
|
SUNDAY: string;
|
|
5233
5308
|
MONDAY: string;
|
|
5234
|
-
TUESDAY: 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
|
+
*/
|
|
5235
5314
|
WEDNESDAY: string;
|
|
5236
5315
|
THURSDAY: string;
|
|
5237
5316
|
FRIDAY: string;
|
|
@@ -5527,6 +5606,8 @@ declare class CometChatLocalize {
|
|
|
5527
5606
|
SAVE: string;
|
|
5528
5607
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5529
5608
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5609
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5610
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5530
5611
|
};
|
|
5531
5612
|
hu: {
|
|
5532
5613
|
INFO: string;
|
|
@@ -5621,14 +5702,21 @@ declare class CometChatLocalize {
|
|
|
5621
5702
|
PREFERENCES: string;
|
|
5622
5703
|
MEMBERS: string;
|
|
5623
5704
|
MEMBER: string;
|
|
5624
|
-
EDITED: string;
|
|
5705
|
+
EDITED: string; /**
|
|
5706
|
+
* Set the active language
|
|
5707
|
+
* @param {String} language
|
|
5708
|
+
*/
|
|
5625
5709
|
TODAY: string;
|
|
5626
5710
|
YESTERDAY: string;
|
|
5627
5711
|
SUNDAY: string;
|
|
5628
5712
|
MONDAY: string;
|
|
5629
5713
|
TUESDAY: string;
|
|
5630
5714
|
WEDNESDAY: string;
|
|
5631
|
-
THURSDAY: 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
|
+
*/
|
|
5632
5720
|
FRIDAY: string;
|
|
5633
5721
|
SATURDAY: string;
|
|
5634
5722
|
TYPING: string;
|
|
@@ -5922,6 +6010,8 @@ declare class CometChatLocalize {
|
|
|
5922
6010
|
SAVE: string;
|
|
5923
6011
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5924
6012
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
6013
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
6014
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5925
6015
|
};
|
|
5926
6016
|
};
|
|
5927
6017
|
/**
|
|
@@ -6764,28 +6854,28 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6764
6854
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
6765
6855
|
getCopyOption(): CometChatActionsIcon;
|
|
6766
6856
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
6767
|
-
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
6768
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6769
|
-
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
6770
|
-
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6771
|
-
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6772
|
-
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6773
|
-
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6774
|
-
getReceiptClass(status?: number): "error" | "
|
|
6857
|
+
isSentByMe(loggedInUser: CometChat$1.User, message: CometChat$1.BaseMessage): boolean;
|
|
6858
|
+
getTextMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6859
|
+
getIsSentByMe(message: CometChat$1.BaseMessage): boolean;
|
|
6860
|
+
getImageMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6861
|
+
getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6862
|
+
getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6863
|
+
getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6864
|
+
getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
|
|
6775
6865
|
/**
|
|
6776
6866
|
* Function to get receipt for message bubble
|
|
6777
6867
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6778
6868
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6779
6869
|
*/
|
|
6780
|
-
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
6870
|
+
getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
6781
6871
|
/**
|
|
6782
6872
|
* Function to get status and date for message bubble
|
|
6783
6873
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6784
6874
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6785
6875
|
*/
|
|
6786
|
-
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6787
|
-
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6788
|
-
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6876
|
+
getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6877
|
+
getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6878
|
+
getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6789
6879
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6790
6880
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
6791
6881
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6796,25 +6886,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6796
6886
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
6797
6887
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
6798
6888
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
6799
|
-
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6800
|
-
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6889
|
+
getMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6890
|
+
getCommonOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6801
6891
|
getAllMessageTypes(): Array<string>;
|
|
6802
6892
|
addList(): string;
|
|
6803
6893
|
getAllMessageCategories(additionalConfigurations?: {
|
|
6804
6894
|
hideGroupActionMessages?: boolean;
|
|
6805
6895
|
}): Array<string>;
|
|
6806
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
6896
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
|
|
6807
6897
|
getId(): string;
|
|
6808
|
-
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
6809
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6810
|
-
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6811
|
-
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6812
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6898
|
+
getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
6899
|
+
getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6900
|
+
getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6901
|
+
getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6902
|
+
getVideoMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6813
6903
|
getActionMessage(message: any): string;
|
|
6814
|
-
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6815
|
-
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6816
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6817
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6904
|
+
getDeleteMessageBubble(message: CometChat$1.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
6905
|
+
getGroupActionBubble(message: CometChat$1.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
6906
|
+
getTextMessageBubble(messageText: string, message: CometChat$1.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6907
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6818
6908
|
/**
|
|
6819
6909
|
* Function to check mimeType and return the iconUrl of that type
|
|
6820
6910
|
* @param mimeType
|
|
@@ -6827,16 +6917,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6827
6917
|
* @returns
|
|
6828
6918
|
*/
|
|
6829
6919
|
getFileSize: (sizeInBytes: number) => string;
|
|
6830
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6831
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6832
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6920
|
+
getFileMessageBubble(fileUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
6921
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat$1.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
6922
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat$1.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
6833
6923
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
6834
6924
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
6835
6925
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
6836
6926
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
6837
6927
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
6838
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
6839
|
-
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6928
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations: additionalParams): string;
|
|
6929
|
+
getAuxiliaryHeaderMenu(user?: CometChat$1.User, group?: CometChat$1.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6840
6930
|
/**
|
|
6841
6931
|
* Adds styled @ for every mention in the text by matching uid
|
|
6842
6932
|
*
|
|
@@ -6844,21 +6934,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6844
6934
|
* @param {string} subtitle
|
|
6845
6935
|
* @returns {void}
|
|
6846
6936
|
*/
|
|
6847
|
-
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6937
|
+
getMentionsFormattedText(message: CometChat$1.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6848
6938
|
mentionsTargetElement: MentionsTargetElement;
|
|
6849
6939
|
}): string;
|
|
6850
6940
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
6851
6941
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
6852
6942
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
6853
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6854
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6855
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6943
|
+
getFormMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6944
|
+
getSchedulerMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6945
|
+
getCardMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6856
6946
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
6857
6947
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
6858
6948
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
6859
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6860
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6861
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6949
|
+
getFormMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6950
|
+
getSchedulerMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6951
|
+
getCardMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6862
6952
|
}
|
|
6863
6953
|
|
|
6864
6954
|
/**
|
|
@@ -8418,9 +8508,6 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8418
8508
|
* @default false
|
|
8419
8509
|
*/
|
|
8420
8510
|
showStickerKeyboard: boolean;
|
|
8421
|
-
private id;
|
|
8422
|
-
private user?;
|
|
8423
|
-
private group?;
|
|
8424
8511
|
/**
|
|
8425
8512
|
* Constructs a new instance of StickersExtensionDecorator.
|
|
8426
8513
|
* @param dataSource - The data source to be decorated.
|
|
@@ -8446,7 +8533,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8446
8533
|
* @param group - Optional group object.
|
|
8447
8534
|
* @returns An array of auxiliary options.
|
|
8448
8535
|
*/
|
|
8449
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
8536
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): react_jsx_runtime.JSX.Element;
|
|
8450
8537
|
/**
|
|
8451
8538
|
* Creates the sticker auxiliary button component.
|
|
8452
8539
|
* @param id - A map containing relevant IDs.
|
|
@@ -8455,24 +8542,24 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8455
8542
|
* @param group - Optional group object.
|
|
8456
8543
|
* @returns The JSX element for the sticker auxiliary button.
|
|
8457
8544
|
*/
|
|
8458
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
8545
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group) => react_jsx_runtime.JSX.Element;
|
|
8459
8546
|
/**
|
|
8460
8547
|
* Sends a sticker message.
|
|
8461
8548
|
* @param event - The event object containing sticker details.
|
|
8462
8549
|
*/
|
|
8463
|
-
sendSticker(event: any, closeSticker: Function): void;
|
|
8550
|
+
sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
|
|
8464
8551
|
/**
|
|
8465
8552
|
* Sends a sticker message.
|
|
8466
8553
|
* @param event - The event object containing sticker details.
|
|
8467
8554
|
*/
|
|
8468
|
-
getSticker(message: CometChat.CustomMessage): any;
|
|
8555
|
+
getSticker(message: CometChat$1.CustomMessage): any;
|
|
8469
8556
|
/**
|
|
8470
8557
|
* Creates a JSX element for displaying the sticker message content.
|
|
8471
8558
|
* @param stickerMessage - The custom message containing sticker data.
|
|
8472
8559
|
* @param _theme - The theme object for styling.
|
|
8473
8560
|
* @returns The JSX element for the sticker message content.
|
|
8474
8561
|
*/
|
|
8475
|
-
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8562
|
+
getStickerMessageContentView(stickerMessage: CometChat$1.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8476
8563
|
/**
|
|
8477
8564
|
* Creates a sticker message template.
|
|
8478
8565
|
* @param _theme - The theme object for styling.
|
|
@@ -8508,7 +8595,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8508
8595
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
8509
8596
|
* @returns A string representing the last message.
|
|
8510
8597
|
*/
|
|
8511
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
8598
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations?: any): string;
|
|
8512
8599
|
}
|
|
8513
8600
|
|
|
8514
8601
|
/**
|
|
@@ -9890,6 +9977,10 @@ interface MessageInformationProps {
|
|
|
9890
9977
|
* @param error - CometChatException object representing the error.
|
|
9891
9978
|
*/
|
|
9892
9979
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
9980
|
+
/**
|
|
9981
|
+
* Template for customizing the appearance of the message.
|
|
9982
|
+
*/
|
|
9983
|
+
template?: CometChatMessageTemplate;
|
|
9893
9984
|
}
|
|
9894
9985
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
9895
9986
|
|
|
@@ -10088,6 +10179,7 @@ interface IPanel {
|
|
|
10088
10179
|
configuration?: any;
|
|
10089
10180
|
message?: CometChat.BaseMessage;
|
|
10090
10181
|
position?: PanelAlignment;
|
|
10182
|
+
composerId?: ComposerId;
|
|
10091
10183
|
}
|
|
10092
10184
|
interface IModal {
|
|
10093
10185
|
child?: any;
|
|
@@ -10494,6 +10586,8 @@ interface PopoverProps {
|
|
|
10494
10586
|
onOutsideClick?: () => void;
|
|
10495
10587
|
disableBackgroundInteraction?: boolean;
|
|
10496
10588
|
useParentContainer?: boolean;
|
|
10589
|
+
useParentHeight?: boolean;
|
|
10590
|
+
showTooltip?: boolean;
|
|
10497
10591
|
}
|
|
10498
10592
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
10499
10593
|
openPopover: () => void;
|
|
@@ -10520,6 +10614,7 @@ interface ListItemProps {
|
|
|
10520
10614
|
trailingView?: ReactNode;
|
|
10521
10615
|
titleView?: ReactNode;
|
|
10522
10616
|
leadingView?: ReactNode;
|
|
10617
|
+
stopEventPropagation?: boolean;
|
|
10523
10618
|
}
|
|
10524
10619
|
declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
10525
10620
|
|
|
@@ -10928,7 +11023,10 @@ declare function createElement(tagName: string, content?: TreeNode, container?:
|
|
|
10928
11023
|
|
|
10929
11024
|
declare const dom_createElement: typeof createElement;
|
|
10930
11025
|
declare namespace dom {
|
|
10931
|
-
export {
|
|
11026
|
+
export {
|
|
11027
|
+
dom_createElement as createElement,
|
|
11028
|
+
createElement as default,
|
|
11029
|
+
};
|
|
10932
11030
|
}
|
|
10933
11031
|
|
|
10934
11032
|
type PlayerOptions = {
|
|
@@ -11232,7 +11330,7 @@ declare function isSafari(): boolean;
|
|
|
11232
11330
|
*/
|
|
11233
11331
|
declare function isURL(text: string): boolean;
|
|
11234
11332
|
declare function getThemeVariable(name: string): string;
|
|
11235
|
-
declare function getThemeMode(): "
|
|
11333
|
+
declare function getThemeMode(): "light" | "dark";
|
|
11236
11334
|
/**
|
|
11237
11335
|
* Function to convert audio forat from webm to wav
|
|
11238
11336
|
* @param file
|
|
@@ -11248,12 +11346,16 @@ declare function processFileForAudio(file: File): Promise<File>;
|
|
|
11248
11346
|
declare function formatDateFromTimestamp(timestamp: number): string;
|
|
11249
11347
|
declare function isMobileDevice(): boolean;
|
|
11250
11348
|
declare function fireClickEvent(): void;
|
|
11349
|
+
declare const decodeHTML: (input: string) => string;
|
|
11251
11350
|
|
|
11252
11351
|
/**
|
|
11253
11352
|
* Utility class for managing local storage with change detection capabilities.
|
|
11254
11353
|
* It is used in CometChatIncomingCall component.
|
|
11255
11354
|
*/
|
|
11256
11355
|
declare class StorageUtils {
|
|
11356
|
+
private static isWindowListenerAttached;
|
|
11357
|
+
private static storageKeyToRemove;
|
|
11358
|
+
private static handleBeforeUnload;
|
|
11257
11359
|
/**
|
|
11258
11360
|
* Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
|
|
11259
11361
|
* @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
|
|
@@ -11410,7 +11512,7 @@ declare class CometChatUIKitUtility {
|
|
|
11410
11512
|
* @param messageObject - The message object containing extensions.
|
|
11411
11513
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
11412
11514
|
*/
|
|
11413
|
-
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
11515
|
+
static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
|
|
11414
11516
|
/**
|
|
11415
11517
|
* Checks for extension data in a message.
|
|
11416
11518
|
*
|
|
@@ -11418,7 +11520,7 @@ declare class CometChatUIKitUtility {
|
|
|
11418
11520
|
* @param extensionKey - The extension key to look for.
|
|
11419
11521
|
* @returns The extension data if found.
|
|
11420
11522
|
*/
|
|
11421
|
-
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11523
|
+
static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11422
11524
|
/**
|
|
11423
11525
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
11424
11526
|
*
|
|
@@ -11464,4 +11566,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
11464
11566
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
11465
11567
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
11466
11568
|
|
|
11467
|
-
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods,
|
|
11569
|
+
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
11570
|
+
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, PollOptions };
|