@cometchat/chat-uikit-react 5.0.4 → 5.0.5
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/assets/missedCallIcon.svg +10 -0
- package/dist/index.d.ts +122 -115
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallLogs.css +2 -2
- package/dist/styles/CometChatMessageInformation.css +3 -1
- package/dist/styles/CometChatMessageList.css +5 -2
- package/dist/styles/PollsBubble.css +5 -0
- package/dist/styles/StickersKeyboard.css +0 -6
- package/dist/styles/components/CometChatCallLogs.css +2 -2
- package/dist/styles/components/CometChatMessageInformation.css +3 -1
- package/dist/styles/components/CometChatMessageList.css +5 -2
- package/dist/styles/components/PollsBubble.css +5 -0
- package/dist/styles/components/StickersKeyboard.css +0 -6
- package/dist/styles/components/index.css +3 -0
- package/dist/styles/index.css +3 -0
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +9 -6
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -1
- package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -1
- package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
- package/dist/types/modals/CometChatActionsView.d.ts +0 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +44 -76
- package/dist/types/utils/DataSource.d.ts +9 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
- package/dist/types/utils/MessagesDataSource.d.ts +9 -2
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -426,7 +425,6 @@ declare class CometChatLocalize {
|
|
|
426
425
|
WRONG_FILE_TYPE: string;
|
|
427
426
|
MESSAGE_HEADER: string;
|
|
428
427
|
MESSAGE_LIST: string;
|
|
429
|
-
/**Properties and constants */
|
|
430
428
|
MESSAGE_COMPOSER: string;
|
|
431
429
|
USERS_WITH_MESSAGES: string;
|
|
432
430
|
USER_LIST: string;
|
|
@@ -454,7 +452,7 @@ declare class CometChatLocalize {
|
|
|
454
452
|
MESSAGE_IMAGE: string;
|
|
455
453
|
MESSAGE_FILE: string;
|
|
456
454
|
MESSAGE_VIDEO: string;
|
|
457
|
-
MESSAGE_AUDIO: string;
|
|
455
|
+
MESSAGE_AUDIO: string;
|
|
458
456
|
CUSTOM_MESSAGE: string;
|
|
459
457
|
SELECT_A_DATE: string;
|
|
460
458
|
TIME_ZONE: string;
|
|
@@ -505,11 +503,6 @@ declare class CometChatLocalize {
|
|
|
505
503
|
ADD_MEMBERS: string;
|
|
506
504
|
SEND_MESSAGE: string;
|
|
507
505
|
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
506
|
BLOCK_USER: string;
|
|
514
507
|
DELETE_AND_EXIT: string;
|
|
515
508
|
LEAVE_GROUP: string;
|
|
@@ -792,6 +785,8 @@ declare class CometChatLocalize {
|
|
|
792
785
|
NO_USERS_FOUND: string;
|
|
793
786
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
794
787
|
SAVE: string;
|
|
788
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
789
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
795
790
|
};
|
|
796
791
|
de: {
|
|
797
792
|
INFO: string;
|
|
@@ -1185,6 +1180,8 @@ declare class CometChatLocalize {
|
|
|
1185
1180
|
NO_USERS_FOUND: string;
|
|
1186
1181
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1187
1182
|
SAVE: string;
|
|
1183
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1184
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1188
1185
|
};
|
|
1189
1186
|
en: {
|
|
1190
1187
|
INFO: string;
|
|
@@ -1292,11 +1289,7 @@ declare class CometChatLocalize {
|
|
|
1292
1289
|
TYPING: string;
|
|
1293
1290
|
IS_TYPING: string;
|
|
1294
1291
|
CLOSE: string;
|
|
1295
|
-
ENTER_GROUP_NAME: string;
|
|
1296
|
-
* Accepts the string to localize and return the localized string
|
|
1297
|
-
* @param {String} str
|
|
1298
|
-
* @returns {String} localized str
|
|
1299
|
-
*/
|
|
1292
|
+
ENTER_GROUP_NAME: string;
|
|
1300
1293
|
ADD_MEMBERS: string;
|
|
1301
1294
|
SEND_MESSAGE: string;
|
|
1302
1295
|
UNBLOCK_USER: string;
|
|
@@ -1582,6 +1575,8 @@ declare class CometChatLocalize {
|
|
|
1582
1575
|
NO_USERS_FOUND: string;
|
|
1583
1576
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1584
1577
|
SAVE: string;
|
|
1578
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1579
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1585
1580
|
};
|
|
1586
1581
|
es: {
|
|
1587
1582
|
INFO: string;
|
|
@@ -1606,17 +1601,12 @@ declare class CometChatLocalize {
|
|
|
1606
1601
|
MESSAGE_RECEIPT: string;
|
|
1607
1602
|
MESSAGE: string;
|
|
1608
1603
|
RECEIPT_INFORMATION: string;
|
|
1609
|
-
/**
|
|
1610
|
-
* The `CometChatLocalize` class handles localization for the CometChat application.
|
|
1611
|
-
* It provides functionality to detect the user's browser language settings and
|
|
1612
|
-
* set the application's language accordingly.
|
|
1613
|
-
*/
|
|
1614
1604
|
NO_RECIPIENT: string;
|
|
1615
1605
|
NO_RECIPIENTS: string;
|
|
1616
1606
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1617
1607
|
CONVERSATIONS: string;
|
|
1618
1608
|
CONVERSATION_LIST: string;
|
|
1619
|
-
MESSAGES: string;
|
|
1609
|
+
MESSAGES: string;
|
|
1620
1610
|
WRONG_FILE_TYPE: string;
|
|
1621
1611
|
MESSAGE_HEADER: string;
|
|
1622
1612
|
MESSAGE_LIST: string;
|
|
@@ -1639,7 +1629,7 @@ declare class CometChatLocalize {
|
|
|
1639
1629
|
GROUP_PASSWORD_BLANK: string;
|
|
1640
1630
|
GROUP_NAME_BLANK: string;
|
|
1641
1631
|
GROUP_TYPE_BLANK: string;
|
|
1642
|
-
DELETE_CONVERSATION: string;
|
|
1632
|
+
DELETE_CONVERSATION: string;
|
|
1643
1633
|
ADD_TO_CHAT: string;
|
|
1644
1634
|
MORE: string;
|
|
1645
1635
|
COPY: string;
|
|
@@ -1675,10 +1665,7 @@ declare class CometChatLocalize {
|
|
|
1675
1665
|
MODERATOR: string;
|
|
1676
1666
|
PARTICIPANT: string;
|
|
1677
1667
|
PUBLIC: string;
|
|
1678
|
-
PRIVATE: string;
|
|
1679
|
-
* Set the active language
|
|
1680
|
-
* @param {String} language
|
|
1681
|
-
*/
|
|
1668
|
+
PRIVATE: string;
|
|
1682
1669
|
PASSWORD_PROTECTED: string;
|
|
1683
1670
|
PRIVACY_AND_SECURITY: string;
|
|
1684
1671
|
PREFERENCES: string;
|
|
@@ -1983,6 +1970,8 @@ declare class CometChatLocalize {
|
|
|
1983
1970
|
NO_USERS_FOUND: string;
|
|
1984
1971
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1985
1972
|
SAVE: string;
|
|
1973
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1974
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1986
1975
|
};
|
|
1987
1976
|
fr: {
|
|
1988
1977
|
INFO: string;
|
|
@@ -2047,10 +2036,7 @@ declare class CometChatLocalize {
|
|
|
2047
2036
|
CUSTOM_MESSAGE: string;
|
|
2048
2037
|
SELECT_A_DATE: string;
|
|
2049
2038
|
TIME_ZONE: string;
|
|
2050
|
-
MEETING_SCHEDULED: string;
|
|
2051
|
-
* Returns the browser language
|
|
2052
|
-
* @returns {String} browser langauge i.e. en-US
|
|
2053
|
-
*/
|
|
2039
|
+
MEETING_SCHEDULED: string;
|
|
2054
2040
|
SOMETHING_WRONG: string;
|
|
2055
2041
|
MEETING_SLOT_BOOK: string;
|
|
2056
2042
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -2379,6 +2365,8 @@ declare class CometChatLocalize {
|
|
|
2379
2365
|
NO_USERS_FOUND: string;
|
|
2380
2366
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2381
2367
|
SAVE: string;
|
|
2368
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2369
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2382
2370
|
};
|
|
2383
2371
|
hi: {
|
|
2384
2372
|
INFO: string;
|
|
@@ -2468,10 +2456,7 @@ declare class CometChatLocalize {
|
|
|
2468
2456
|
PARTICIPANT: string;
|
|
2469
2457
|
PUBLIC: string;
|
|
2470
2458
|
PRIVATE: string;
|
|
2471
|
-
PASSWORD_PROTECTED: string;
|
|
2472
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2473
|
-
* @returns {String} active language
|
|
2474
|
-
*/
|
|
2459
|
+
PASSWORD_PROTECTED: string;
|
|
2475
2460
|
PRIVACY_AND_SECURITY: string;
|
|
2476
2461
|
PREFERENCES: string;
|
|
2477
2462
|
MEMBERS: string;
|
|
@@ -2775,6 +2760,8 @@ declare class CometChatLocalize {
|
|
|
2775
2760
|
NO_USERS_FOUND: string;
|
|
2776
2761
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2777
2762
|
SAVE: string;
|
|
2763
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2764
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2778
2765
|
};
|
|
2779
2766
|
ms: {
|
|
2780
2767
|
INFO: string;
|
|
@@ -2835,7 +2822,6 @@ declare class CometChatLocalize {
|
|
|
2835
2822
|
MESSAGE_IMAGE: string;
|
|
2836
2823
|
MESSAGE_FILE: string;
|
|
2837
2824
|
MESSAGE_VIDEO: string;
|
|
2838
|
-
/**Add to the original array of translations if language code is not found */
|
|
2839
2825
|
MESSAGE_AUDIO: string;
|
|
2840
2826
|
CUSTOM_MESSAGE: string;
|
|
2841
2827
|
SELECT_A_DATE: string;
|
|
@@ -2859,10 +2845,7 @@ declare class CometChatLocalize {
|
|
|
2859
2845
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2860
2846
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2861
2847
|
ONLINE: string;
|
|
2862
|
-
ADMINISTRATOR: string;
|
|
2863
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2864
|
-
* @returns {String} active language
|
|
2865
|
-
*/
|
|
2848
|
+
ADMINISTRATOR: string;
|
|
2866
2849
|
ADMIN: string;
|
|
2867
2850
|
MODERATOR: string;
|
|
2868
2851
|
PARTICIPANT: string;
|
|
@@ -2876,10 +2859,7 @@ declare class CometChatLocalize {
|
|
|
2876
2859
|
EDITED: string;
|
|
2877
2860
|
TODAY: string;
|
|
2878
2861
|
YESTERDAY: string;
|
|
2879
|
-
SUNDAY: string;
|
|
2880
|
-
* Set the active language
|
|
2881
|
-
* @param {String} language
|
|
2882
|
-
*/
|
|
2862
|
+
SUNDAY: string;
|
|
2883
2863
|
MONDAY: string;
|
|
2884
2864
|
TUESDAY: string;
|
|
2885
2865
|
WEDNESDAY: string;
|
|
@@ -3175,6 +3155,8 @@ declare class CometChatLocalize {
|
|
|
3175
3155
|
NO_USERS_FOUND: string;
|
|
3176
3156
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3177
3157
|
SAVE: string;
|
|
3158
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3159
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3178
3160
|
};
|
|
3179
3161
|
pt: {
|
|
3180
3162
|
INFO: string;
|
|
@@ -3281,9 +3263,7 @@ declare class CometChatLocalize {
|
|
|
3281
3263
|
SATURDAY: string;
|
|
3282
3264
|
TYPING: string;
|
|
3283
3265
|
IS_TYPING: string;
|
|
3284
|
-
CLOSE: string;
|
|
3285
|
-
* Sets the default lannguage if no language is passed in init method
|
|
3286
|
-
*/
|
|
3266
|
+
CLOSE: string;
|
|
3287
3267
|
ENTER_GROUP_NAME: string;
|
|
3288
3268
|
ADD_MEMBERS: string;
|
|
3289
3269
|
SEND_MESSAGE: string;
|
|
@@ -3570,6 +3550,8 @@ declare class CometChatLocalize {
|
|
|
3570
3550
|
NO_USERS_FOUND: string;
|
|
3571
3551
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3572
3552
|
SAVE: string;
|
|
3553
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3554
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3573
3555
|
};
|
|
3574
3556
|
ru: {
|
|
3575
3557
|
INFO: string;
|
|
@@ -3625,7 +3607,7 @@ declare class CometChatLocalize {
|
|
|
3625
3607
|
DELETE_CONVERSATION: string;
|
|
3626
3608
|
ADD_TO_CHAT: string;
|
|
3627
3609
|
MORE: string;
|
|
3628
|
-
COPY: string;
|
|
3610
|
+
COPY: string;
|
|
3629
3611
|
VOICE_RECORDING: string;
|
|
3630
3612
|
MESSAGE_IMAGE: string;
|
|
3631
3613
|
MESSAGE_FILE: string;
|
|
@@ -3963,6 +3945,8 @@ declare class CometChatLocalize {
|
|
|
3963
3945
|
NO_USERS_FOUND: string;
|
|
3964
3946
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3965
3947
|
SAVE: string;
|
|
3948
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3949
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3966
3950
|
};
|
|
3967
3951
|
zh: {
|
|
3968
3952
|
INCOMING_CALL: string;
|
|
@@ -4025,20 +4009,10 @@ declare class CometChatLocalize {
|
|
|
4025
4009
|
SELECT_TIME: string;
|
|
4026
4010
|
NO_CALLS_SELECTED: string;
|
|
4027
4011
|
SELECT__GROUP: string;
|
|
4028
|
-
/**
|
|
4029
|
-
* Initializes localization with the specified language and custom resources.
|
|
4030
|
-
* @param {string} [language=""] - The language code to set.
|
|
4031
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4032
|
-
*/
|
|
4033
4012
|
SELECT__USER: string;
|
|
4034
4013
|
GROUP_PASSWORD_BLANK: string;
|
|
4035
4014
|
GROUP_NAME_BLANK: string;
|
|
4036
4015
|
GROUP_TYPE_BLANK: string;
|
|
4037
|
-
/**
|
|
4038
|
-
* Initializes localization with the specified language and custom resources.
|
|
4039
|
-
* @param {string} [language=""] - The language code to set.
|
|
4040
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
4041
|
-
*/
|
|
4042
4016
|
DELETE_CONVERSATION: string;
|
|
4043
4017
|
ADD_TO_CHAT: string;
|
|
4044
4018
|
MORE: string;
|
|
@@ -4080,10 +4054,7 @@ declare class CometChatLocalize {
|
|
|
4080
4054
|
PREFERENCES: string;
|
|
4081
4055
|
MEMBERS: string;
|
|
4082
4056
|
MEMBER: string;
|
|
4083
|
-
EDITED: string;
|
|
4084
|
-
* Returns the language code
|
|
4085
|
-
* @returns {String} language code i.e. en
|
|
4086
|
-
*/
|
|
4057
|
+
EDITED: string;
|
|
4087
4058
|
TODAY: string;
|
|
4088
4059
|
YESTERDAY: string;
|
|
4089
4060
|
SUNDAY: string;
|
|
@@ -4369,6 +4340,8 @@ declare class CometChatLocalize {
|
|
|
4369
4340
|
NO_USERS_FOUND: string;
|
|
4370
4341
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4371
4342
|
SAVE: string;
|
|
4343
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4344
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4372
4345
|
};
|
|
4373
4346
|
"zh-tw": {
|
|
4374
4347
|
INFO: string;
|
|
@@ -4762,6 +4735,8 @@ declare class CometChatLocalize {
|
|
|
4762
4735
|
NO_USERS_FOUND: string;
|
|
4763
4736
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4764
4737
|
SAVE: string;
|
|
4738
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4739
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4765
4740
|
};
|
|
4766
4741
|
sv: {
|
|
4767
4742
|
INFO: string;
|
|
@@ -4833,10 +4808,7 @@ declare class CometChatLocalize {
|
|
|
4833
4808
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4834
4809
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4835
4810
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4836
|
-
SCHEDULE: string;
|
|
4837
|
-
* Returns the language code
|
|
4838
|
-
* @returns {String} language code i.e. en
|
|
4839
|
-
*/
|
|
4811
|
+
SCHEDULE: string;
|
|
4840
4812
|
MORE_TIMES: string;
|
|
4841
4813
|
MISSED_VOICE_CALL: string;
|
|
4842
4814
|
MEET_WITH: string;
|
|
@@ -5158,6 +5130,8 @@ declare class CometChatLocalize {
|
|
|
5158
5130
|
NO_USERS_FOUND: string;
|
|
5159
5131
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5160
5132
|
SAVE: string;
|
|
5133
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5134
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5161
5135
|
};
|
|
5162
5136
|
lt: {
|
|
5163
5137
|
INFO: string;
|
|
@@ -5257,11 +5231,7 @@ declare class CometChatLocalize {
|
|
|
5257
5231
|
YESTERDAY: string;
|
|
5258
5232
|
SUNDAY: string;
|
|
5259
5233
|
MONDAY: string;
|
|
5260
|
-
TUESDAY: string;
|
|
5261
|
-
* Accepts the string to localize and return the localized string
|
|
5262
|
-
* @param {String} str
|
|
5263
|
-
* @returns {String} localized str
|
|
5264
|
-
*/
|
|
5234
|
+
TUESDAY: string;
|
|
5265
5235
|
WEDNESDAY: string;
|
|
5266
5236
|
THURSDAY: string;
|
|
5267
5237
|
FRIDAY: string;
|
|
@@ -5555,6 +5525,8 @@ declare class CometChatLocalize {
|
|
|
5555
5525
|
NO_USERS_FOUND: string;
|
|
5556
5526
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5557
5527
|
SAVE: string;
|
|
5528
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5529
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5558
5530
|
};
|
|
5559
5531
|
hu: {
|
|
5560
5532
|
INFO: string;
|
|
@@ -5649,21 +5621,14 @@ declare class CometChatLocalize {
|
|
|
5649
5621
|
PREFERENCES: string;
|
|
5650
5622
|
MEMBERS: string;
|
|
5651
5623
|
MEMBER: string;
|
|
5652
|
-
EDITED: string;
|
|
5653
|
-
* Set the active language
|
|
5654
|
-
* @param {String} language
|
|
5655
|
-
*/
|
|
5624
|
+
EDITED: string;
|
|
5656
5625
|
TODAY: string;
|
|
5657
5626
|
YESTERDAY: string;
|
|
5658
5627
|
SUNDAY: string;
|
|
5659
5628
|
MONDAY: string;
|
|
5660
5629
|
TUESDAY: string;
|
|
5661
5630
|
WEDNESDAY: string;
|
|
5662
|
-
THURSDAY: string;
|
|
5663
|
-
* Accepts the string to localize and return the localized string
|
|
5664
|
-
* @param {String} str
|
|
5665
|
-
* @returns {String} localized str
|
|
5666
|
-
*/
|
|
5631
|
+
THURSDAY: string;
|
|
5667
5632
|
FRIDAY: string;
|
|
5668
5633
|
SATURDAY: string;
|
|
5669
5634
|
TYPING: string;
|
|
@@ -5955,6 +5920,8 @@ declare class CometChatLocalize {
|
|
|
5955
5920
|
NO_USERS_FOUND: string;
|
|
5956
5921
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5957
5922
|
SAVE: string;
|
|
5923
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5924
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5958
5925
|
};
|
|
5959
5926
|
};
|
|
5960
5927
|
/**
|
|
@@ -6797,28 +6764,28 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6797
6764
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
6798
6765
|
getCopyOption(): CometChatActionsIcon;
|
|
6799
6766
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
6800
|
-
isSentByMe(loggedInUser: CometChat
|
|
6801
|
-
getTextMessageOptions(loggedInUser: CometChat
|
|
6802
|
-
getIsSentByMe(message: CometChat
|
|
6803
|
-
getImageMessageOptions(loggedInUser: CometChat
|
|
6804
|
-
getVideoMessageOptions(loggedInUser: CometChat
|
|
6805
|
-
getAudioMessageOptions(loggedInUser: CometChat
|
|
6806
|
-
getFileMessageOptions(loggedInUser: CometChat
|
|
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>;
|
|
6807
6774
|
getReceiptClass(status?: number): "error" | "wait" | "read" | "delivered" | "sent" | undefined;
|
|
6808
6775
|
/**
|
|
6809
6776
|
* Function to get receipt for message bubble
|
|
6810
6777
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6811
6778
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6812
6779
|
*/
|
|
6813
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
6780
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
6814
6781
|
/**
|
|
6815
6782
|
* Function to get status and date for message bubble
|
|
6816
6783
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6817
6784
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6818
6785
|
*/
|
|
6819
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
6820
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
6821
|
-
getBottomView(_messageObject: CometChat
|
|
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;
|
|
6822
6789
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6823
6790
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
6824
6791
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6829,25 +6796,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6829
6796
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
6830
6797
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
6831
6798
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
6832
|
-
getMessageOptions(loggedInUser: CometChat
|
|
6833
|
-
getCommonOptions(loggedInUser: CometChat
|
|
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>;
|
|
6834
6801
|
getAllMessageTypes(): Array<string>;
|
|
6835
6802
|
addList(): string;
|
|
6836
6803
|
getAllMessageCategories(additionalConfigurations?: {
|
|
6837
6804
|
hideGroupActionMessages?: boolean;
|
|
6838
6805
|
}): Array<string>;
|
|
6839
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
6806
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
6840
6807
|
getId(): string;
|
|
6841
|
-
getTextMessageContentView(message: CometChat
|
|
6842
|
-
getAudioMessageContentView(message: CometChat
|
|
6843
|
-
getFileMessageContentView(message: CometChat
|
|
6844
|
-
getImageMessageContentView(message: CometChat
|
|
6845
|
-
getVideoMessageContentView(message: CometChat
|
|
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;
|
|
6846
6813
|
getActionMessage(message: any): string;
|
|
6847
|
-
getDeleteMessageBubble(message: CometChat
|
|
6848
|
-
getGroupActionBubble(message: CometChat
|
|
6849
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
6850
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat
|
|
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;
|
|
6851
6818
|
/**
|
|
6852
6819
|
* Function to check mimeType and return the iconUrl of that type
|
|
6853
6820
|
* @param mimeType
|
|
@@ -6860,16 +6827,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6860
6827
|
* @returns
|
|
6861
6828
|
*/
|
|
6862
6829
|
getFileSize: (sizeInBytes: number) => string;
|
|
6863
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
6864
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
6865
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat
|
|
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;
|
|
6866
6833
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
6867
6834
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
6868
6835
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
6869
6836
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
6870
6837
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
6871
|
-
getLastConversationMessage(conversation: CometChat
|
|
6872
|
-
getAuxiliaryHeaderMenu(user?: CometChat
|
|
6838
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
6839
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
6873
6840
|
/**
|
|
6874
6841
|
* Adds styled @ for every mention in the text by matching uid
|
|
6875
6842
|
*
|
|
@@ -6877,12 +6844,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6877
6844
|
* @param {string} subtitle
|
|
6878
6845
|
* @returns {void}
|
|
6879
6846
|
*/
|
|
6880
|
-
getMentionsFormattedText(message: CometChat
|
|
6847
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
6881
6848
|
mentionsTargetElement: MentionsTargetElement;
|
|
6882
6849
|
}): string;
|
|
6883
6850
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
6884
6851
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
6885
6852
|
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;
|
|
6856
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
6857
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
6858
|
+
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;
|
|
6886
6862
|
}
|
|
6887
6863
|
|
|
6888
6864
|
/**
|
|
@@ -7406,6 +7382,15 @@ declare abstract class DataSource {
|
|
|
7406
7382
|
abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
|
|
7407
7383
|
abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
|
|
7408
7384
|
abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
|
|
7385
|
+
abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7386
|
+
abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7387
|
+
abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7388
|
+
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
7389
|
+
abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
7390
|
+
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
7391
|
+
abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7392
|
+
abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7393
|
+
abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7409
7394
|
}
|
|
7410
7395
|
|
|
7411
7396
|
interface CometChatUiKit {
|
|
@@ -7601,6 +7586,15 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
7601
7586
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
7602
7587
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
7603
7588
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
7589
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7590
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7591
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7592
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
7593
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
7594
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
7595
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7596
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7597
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
7604
7598
|
}
|
|
7605
7599
|
|
|
7606
7600
|
interface ListProps<T> {
|
|
@@ -8452,7 +8446,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8452
8446
|
* @param group - Optional group object.
|
|
8453
8447
|
* @returns An array of auxiliary options.
|
|
8454
8448
|
*/
|
|
8455
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
8449
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
8456
8450
|
/**
|
|
8457
8451
|
* Creates the sticker auxiliary button component.
|
|
8458
8452
|
* @param id - A map containing relevant IDs.
|
|
@@ -8461,7 +8455,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8461
8455
|
* @param group - Optional group object.
|
|
8462
8456
|
* @returns The JSX element for the sticker auxiliary button.
|
|
8463
8457
|
*/
|
|
8464
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
8458
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
8465
8459
|
/**
|
|
8466
8460
|
* Sends a sticker message.
|
|
8467
8461
|
* @param event - The event object containing sticker details.
|
|
@@ -8471,14 +8465,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8471
8465
|
* Sends a sticker message.
|
|
8472
8466
|
* @param event - The event object containing sticker details.
|
|
8473
8467
|
*/
|
|
8474
|
-
getSticker(message: CometChat
|
|
8468
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
8475
8469
|
/**
|
|
8476
8470
|
* Creates a JSX element for displaying the sticker message content.
|
|
8477
8471
|
* @param stickerMessage - The custom message containing sticker data.
|
|
8478
8472
|
* @param _theme - The theme object for styling.
|
|
8479
8473
|
* @returns The JSX element for the sticker message content.
|
|
8480
8474
|
*/
|
|
8481
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
8475
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
8482
8476
|
/**
|
|
8483
8477
|
* Creates a sticker message template.
|
|
8484
8478
|
* @param _theme - The theme object for styling.
|
|
@@ -8514,7 +8508,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
8514
8508
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
8515
8509
|
* @returns A string representing the last message.
|
|
8516
8510
|
*/
|
|
8517
|
-
getLastConversationMessage(conversation: CometChat
|
|
8511
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
8518
8512
|
}
|
|
8519
8513
|
|
|
8520
8514
|
/**
|
|
@@ -9905,6 +9899,7 @@ declare class CometChatUIKitConstants {
|
|
|
9905
9899
|
custom: string;
|
|
9906
9900
|
action: string;
|
|
9907
9901
|
call: string;
|
|
9902
|
+
interactive: string;
|
|
9908
9903
|
}>;
|
|
9909
9904
|
static MessageTypes: Readonly<{
|
|
9910
9905
|
text: string;
|
|
@@ -9915,6 +9910,10 @@ declare class CometChatUIKitConstants {
|
|
|
9915
9910
|
delete: "delete";
|
|
9916
9911
|
edited: "edited";
|
|
9917
9912
|
groupMember: "groupMember";
|
|
9913
|
+
form: "form";
|
|
9914
|
+
card: "card";
|
|
9915
|
+
customInteractive: "customInteractive";
|
|
9916
|
+
scheduler: "scheduler";
|
|
9918
9917
|
}>;
|
|
9919
9918
|
static groupMemberAction: Readonly<{
|
|
9920
9919
|
ROLE: "role";
|
|
@@ -9997,7 +9996,6 @@ declare class CometChatUIKitConstants {
|
|
|
9997
9996
|
CUSTOM_MESSAGE_RECEIVED: "onCustomMessageReceived";
|
|
9998
9997
|
TRANSIENT_MESSAGE_RECEIVED: "onTransientMessageReceived";
|
|
9999
9998
|
INTERACTIVE_MESSAGE_RECEIVED: "onInteractiveMessageReceived";
|
|
10000
|
-
INTERACTION_GOAL_COMPLETED: "onInteractionGoalCompleted";
|
|
10001
9999
|
DELIVERY: "delivery";
|
|
10002
10000
|
READ: "read";
|
|
10003
10001
|
APP_SYSTEM: "app_system";
|
|
@@ -10234,6 +10232,10 @@ declare class CometChatMessageEvents {
|
|
|
10234
10232
|
static onTransientMessageReceived: Subject<CometChat.TransientMessage>;
|
|
10235
10233
|
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
10236
10234
|
static onMessageReactionRemoved: Subject<CometChat.ReactionEvent>;
|
|
10235
|
+
static onCustomInteractiveMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
10236
|
+
static onFormMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
10237
|
+
static onCardMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
10238
|
+
static onSchedulerMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
10237
10239
|
}
|
|
10238
10240
|
/**
|
|
10239
10241
|
* Interface for message-related events
|
|
@@ -10426,6 +10428,8 @@ interface ContextMenuProps {
|
|
|
10426
10428
|
onOptionClicked?: (option: CometChatActionsIcon | CometChatActionsView | CometChatOption) => void;
|
|
10427
10429
|
placement?: Placement$1;
|
|
10428
10430
|
closeOnOutsideClick?: boolean;
|
|
10431
|
+
disableBackgroundInteraction?: boolean;
|
|
10432
|
+
useParentContainer?: boolean;
|
|
10429
10433
|
}
|
|
10430
10434
|
/**
|
|
10431
10435
|
* CometChatContextMenu is a composite component used to display menu data in required format.
|
|
@@ -10488,6 +10492,8 @@ interface PopoverProps {
|
|
|
10488
10492
|
content: ReactNode;
|
|
10489
10493
|
childClickHandler?: (openContent: Function, event: Event) => void;
|
|
10490
10494
|
onOutsideClick?: () => void;
|
|
10495
|
+
disableBackgroundInteraction?: boolean;
|
|
10496
|
+
useParentContainer?: boolean;
|
|
10491
10497
|
}
|
|
10492
10498
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
10493
10499
|
openPopover: () => void;
|
|
@@ -11241,6 +11247,7 @@ declare function processFileForAudio(file: File): Promise<File>;
|
|
|
11241
11247
|
*/
|
|
11242
11248
|
declare function formatDateFromTimestamp(timestamp: number): string;
|
|
11243
11249
|
declare function isMobileDevice(): boolean;
|
|
11250
|
+
declare function fireClickEvent(): void;
|
|
11244
11251
|
|
|
11245
11252
|
/**
|
|
11246
11253
|
* Utility class for managing local storage with change detection capabilities.
|
|
@@ -11403,7 +11410,7 @@ declare class CometChatUIKitUtility {
|
|
|
11403
11410
|
* @param messageObject - The message object containing extensions.
|
|
11404
11411
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
11405
11412
|
*/
|
|
11406
|
-
static getExtensionData(messageObject: CometChat
|
|
11413
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
11407
11414
|
/**
|
|
11408
11415
|
* Checks for extension data in a message.
|
|
11409
11416
|
*
|
|
@@ -11411,7 +11418,7 @@ declare class CometChatUIKitUtility {
|
|
|
11411
11418
|
* @param extensionKey - The extension key to look for.
|
|
11412
11419
|
* @returns The extension data if found.
|
|
11413
11420
|
*/
|
|
11414
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
11421
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11415
11422
|
/**
|
|
11416
11423
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
11417
11424
|
*
|
|
@@ -11457,4 +11464,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
11457
11464
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
11458
11465
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
11459
11466
|
|
|
11460
|
-
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, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, 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, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
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, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, 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, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|