@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
1
2
|
import { DataSource } from "../../../utils/DataSource";
|
|
2
3
|
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
4
|
import { ComposerId } from "../../../utils/MessagesDataSource";
|
|
@@ -16,9 +17,6 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
16
17
|
* @default false
|
|
17
18
|
*/
|
|
18
19
|
showStickerKeyboard: boolean;
|
|
19
|
-
private id;
|
|
20
|
-
private user?;
|
|
21
|
-
private group?;
|
|
22
20
|
/**
|
|
23
21
|
* Constructs a new instance of StickersExtensionDecorator.
|
|
24
22
|
* @param dataSource - The data source to be decorated.
|
|
@@ -58,7 +56,7 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
58
56
|
* Sends a sticker message.
|
|
59
57
|
* @param event - The event object containing sticker details.
|
|
60
58
|
*/
|
|
61
|
-
sendSticker(event: any, closeSticker: Function): void;
|
|
59
|
+
sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
|
|
62
60
|
/**
|
|
63
61
|
* Sends a sticker message.
|
|
64
62
|
* @param event - The event object containing sticker details.
|
|
@@ -45,6 +45,7 @@ declare class CometChatLocalize {
|
|
|
45
45
|
WRONG_FILE_TYPE: string;
|
|
46
46
|
MESSAGE_HEADER: string;
|
|
47
47
|
MESSAGE_LIST: string;
|
|
48
|
+
/**Properties and constants */
|
|
48
49
|
MESSAGE_COMPOSER: string;
|
|
49
50
|
USERS_WITH_MESSAGES: string;
|
|
50
51
|
USER_LIST: string;
|
|
@@ -72,7 +73,7 @@ declare class CometChatLocalize {
|
|
|
72
73
|
MESSAGE_IMAGE: string;
|
|
73
74
|
MESSAGE_FILE: string;
|
|
74
75
|
MESSAGE_VIDEO: string;
|
|
75
|
-
MESSAGE_AUDIO: string;
|
|
76
|
+
MESSAGE_AUDIO: string; /**Override resources */
|
|
76
77
|
CUSTOM_MESSAGE: string;
|
|
77
78
|
SELECT_A_DATE: string;
|
|
78
79
|
TIME_ZONE: string;
|
|
@@ -123,6 +124,11 @@ declare class CometChatLocalize {
|
|
|
123
124
|
ADD_MEMBERS: string;
|
|
124
125
|
SEND_MESSAGE: string;
|
|
125
126
|
UNBLOCK_USER: string;
|
|
127
|
+
/**
|
|
128
|
+
* Accepts the string to localize and return the localized string
|
|
129
|
+
* @param {String} str
|
|
130
|
+
* @returns {String} localized str
|
|
131
|
+
*/
|
|
126
132
|
BLOCK_USER: string;
|
|
127
133
|
DELETE_AND_EXIT: string;
|
|
128
134
|
LEAVE_GROUP: string;
|
|
@@ -407,6 +413,8 @@ declare class CometChatLocalize {
|
|
|
407
413
|
SAVE: string;
|
|
408
414
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
409
415
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
416
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
417
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
410
418
|
};
|
|
411
419
|
de: {
|
|
412
420
|
INFO: string;
|
|
@@ -802,6 +810,8 @@ declare class CometChatLocalize {
|
|
|
802
810
|
SAVE: string;
|
|
803
811
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
804
812
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
813
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
814
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
805
815
|
};
|
|
806
816
|
en: {
|
|
807
817
|
INFO: string;
|
|
@@ -909,7 +919,11 @@ declare class CometChatLocalize {
|
|
|
909
919
|
TYPING: string;
|
|
910
920
|
IS_TYPING: string;
|
|
911
921
|
CLOSE: string;
|
|
912
|
-
ENTER_GROUP_NAME: string;
|
|
922
|
+
ENTER_GROUP_NAME: string; /**
|
|
923
|
+
* Accepts the string to localize and return the localized string
|
|
924
|
+
* @param {String} str
|
|
925
|
+
* @returns {String} localized str
|
|
926
|
+
*/
|
|
913
927
|
ADD_MEMBERS: string;
|
|
914
928
|
SEND_MESSAGE: string;
|
|
915
929
|
UNBLOCK_USER: string;
|
|
@@ -1197,6 +1211,8 @@ declare class CometChatLocalize {
|
|
|
1197
1211
|
SAVE: string;
|
|
1198
1212
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1199
1213
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1214
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1215
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1200
1216
|
};
|
|
1201
1217
|
es: {
|
|
1202
1218
|
INFO: string;
|
|
@@ -1221,12 +1237,17 @@ declare class CometChatLocalize {
|
|
|
1221
1237
|
MESSAGE_RECEIPT: string;
|
|
1222
1238
|
MESSAGE: string;
|
|
1223
1239
|
RECEIPT_INFORMATION: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* The `CometChatLocalize` class handles localization for the CometChat application.
|
|
1242
|
+
* It provides functionality to detect the user's browser language settings and
|
|
1243
|
+
* set the application's language accordingly.
|
|
1244
|
+
*/
|
|
1224
1245
|
NO_RECIPIENT: string;
|
|
1225
1246
|
NO_RECIPIENTS: string;
|
|
1226
1247
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1227
1248
|
CONVERSATIONS: string;
|
|
1228
1249
|
CONVERSATION_LIST: string;
|
|
1229
|
-
MESSAGES: string;
|
|
1250
|
+
MESSAGES: string; /**Properties and constants */
|
|
1230
1251
|
WRONG_FILE_TYPE: string;
|
|
1231
1252
|
MESSAGE_HEADER: string;
|
|
1232
1253
|
MESSAGE_LIST: string;
|
|
@@ -1249,7 +1270,7 @@ declare class CometChatLocalize {
|
|
|
1249
1270
|
GROUP_PASSWORD_BLANK: string;
|
|
1250
1271
|
GROUP_NAME_BLANK: string;
|
|
1251
1272
|
GROUP_TYPE_BLANK: string;
|
|
1252
|
-
DELETE_CONVERSATION: string;
|
|
1273
|
+
DELETE_CONVERSATION: string; /**Add to the original array of translations if language code is not found */
|
|
1253
1274
|
ADD_TO_CHAT: string;
|
|
1254
1275
|
MORE: string;
|
|
1255
1276
|
COPY: string;
|
|
@@ -1285,7 +1306,10 @@ declare class CometChatLocalize {
|
|
|
1285
1306
|
MODERATOR: string;
|
|
1286
1307
|
PARTICIPANT: string;
|
|
1287
1308
|
PUBLIC: string;
|
|
1288
|
-
PRIVATE: string;
|
|
1309
|
+
PRIVATE: string; /**
|
|
1310
|
+
* Set the active language
|
|
1311
|
+
* @param {String} language
|
|
1312
|
+
*/
|
|
1289
1313
|
PASSWORD_PROTECTED: string;
|
|
1290
1314
|
PRIVACY_AND_SECURITY: string;
|
|
1291
1315
|
PREFERENCES: string;
|
|
@@ -1592,6 +1616,8 @@ declare class CometChatLocalize {
|
|
|
1592
1616
|
SAVE: string;
|
|
1593
1617
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1594
1618
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1619
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1620
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1595
1621
|
};
|
|
1596
1622
|
fr: {
|
|
1597
1623
|
INFO: string;
|
|
@@ -1656,7 +1682,10 @@ declare class CometChatLocalize {
|
|
|
1656
1682
|
CUSTOM_MESSAGE: string;
|
|
1657
1683
|
SELECT_A_DATE: string;
|
|
1658
1684
|
TIME_ZONE: string;
|
|
1659
|
-
MEETING_SCHEDULED: string;
|
|
1685
|
+
MEETING_SCHEDULED: string; /**
|
|
1686
|
+
* Returns the browser language
|
|
1687
|
+
* @returns {String} browser langauge i.e. en-US
|
|
1688
|
+
*/
|
|
1660
1689
|
SOMETHING_WRONG: string;
|
|
1661
1690
|
MEETING_SLOT_BOOK: string;
|
|
1662
1691
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -1987,6 +2016,8 @@ declare class CometChatLocalize {
|
|
|
1987
2016
|
SAVE: string;
|
|
1988
2017
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1989
2018
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2019
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2020
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1990
2021
|
};
|
|
1991
2022
|
hi: {
|
|
1992
2023
|
INFO: string;
|
|
@@ -2076,7 +2107,10 @@ declare class CometChatLocalize {
|
|
|
2076
2107
|
PARTICIPANT: string;
|
|
2077
2108
|
PUBLIC: string;
|
|
2078
2109
|
PRIVATE: string;
|
|
2079
|
-
PASSWORD_PROTECTED: string;
|
|
2110
|
+
PASSWORD_PROTECTED: string; /**
|
|
2111
|
+
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2112
|
+
* @returns {String} active language
|
|
2113
|
+
*/
|
|
2080
2114
|
PRIVACY_AND_SECURITY: string;
|
|
2081
2115
|
PREFERENCES: string;
|
|
2082
2116
|
MEMBERS: string;
|
|
@@ -2382,6 +2416,8 @@ declare class CometChatLocalize {
|
|
|
2382
2416
|
SAVE: string;
|
|
2383
2417
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2384
2418
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2419
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2420
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2385
2421
|
};
|
|
2386
2422
|
ms: {
|
|
2387
2423
|
INFO: string;
|
|
@@ -2442,6 +2478,7 @@ declare class CometChatLocalize {
|
|
|
2442
2478
|
MESSAGE_IMAGE: string;
|
|
2443
2479
|
MESSAGE_FILE: string;
|
|
2444
2480
|
MESSAGE_VIDEO: string;
|
|
2481
|
+
/**Add to the original array of translations if language code is not found */
|
|
2445
2482
|
MESSAGE_AUDIO: string;
|
|
2446
2483
|
CUSTOM_MESSAGE: string;
|
|
2447
2484
|
SELECT_A_DATE: string;
|
|
@@ -2465,7 +2502,10 @@ declare class CometChatLocalize {
|
|
|
2465
2502
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2466
2503
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2467
2504
|
ONLINE: string;
|
|
2468
|
-
ADMINISTRATOR: string;
|
|
2505
|
+
ADMINISTRATOR: string; /**
|
|
2506
|
+
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2507
|
+
* @returns {String} active language
|
|
2508
|
+
*/
|
|
2469
2509
|
ADMIN: string;
|
|
2470
2510
|
MODERATOR: string;
|
|
2471
2511
|
PARTICIPANT: string;
|
|
@@ -2479,7 +2519,10 @@ declare class CometChatLocalize {
|
|
|
2479
2519
|
EDITED: string;
|
|
2480
2520
|
TODAY: string;
|
|
2481
2521
|
YESTERDAY: string;
|
|
2482
|
-
SUNDAY: string;
|
|
2522
|
+
SUNDAY: string; /**
|
|
2523
|
+
* Set the active language
|
|
2524
|
+
* @param {String} language
|
|
2525
|
+
*/
|
|
2483
2526
|
MONDAY: string;
|
|
2484
2527
|
TUESDAY: string;
|
|
2485
2528
|
WEDNESDAY: string;
|
|
@@ -2777,6 +2820,8 @@ declare class CometChatLocalize {
|
|
|
2777
2820
|
SAVE: string;
|
|
2778
2821
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2779
2822
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2823
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2824
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2780
2825
|
};
|
|
2781
2826
|
pt: {
|
|
2782
2827
|
INFO: string;
|
|
@@ -2883,7 +2928,9 @@ declare class CometChatLocalize {
|
|
|
2883
2928
|
SATURDAY: string;
|
|
2884
2929
|
TYPING: string;
|
|
2885
2930
|
IS_TYPING: string;
|
|
2886
|
-
CLOSE: string;
|
|
2931
|
+
CLOSE: string; /**
|
|
2932
|
+
* Sets the default lannguage if no language is passed in init method
|
|
2933
|
+
*/
|
|
2887
2934
|
ENTER_GROUP_NAME: string;
|
|
2888
2935
|
ADD_MEMBERS: string;
|
|
2889
2936
|
SEND_MESSAGE: string;
|
|
@@ -3172,6 +3219,8 @@ declare class CometChatLocalize {
|
|
|
3172
3219
|
SAVE: string;
|
|
3173
3220
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3174
3221
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3222
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3223
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3175
3224
|
};
|
|
3176
3225
|
ru: {
|
|
3177
3226
|
INFO: string;
|
|
@@ -3227,7 +3276,7 @@ declare class CometChatLocalize {
|
|
|
3227
3276
|
DELETE_CONVERSATION: string;
|
|
3228
3277
|
ADD_TO_CHAT: string;
|
|
3229
3278
|
MORE: string;
|
|
3230
|
-
COPY: string;
|
|
3279
|
+
COPY: string; /**Override resources */
|
|
3231
3280
|
VOICE_RECORDING: string;
|
|
3232
3281
|
MESSAGE_IMAGE: string;
|
|
3233
3282
|
MESSAGE_FILE: string;
|
|
@@ -3567,6 +3616,8 @@ declare class CometChatLocalize {
|
|
|
3567
3616
|
SAVE: string;
|
|
3568
3617
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3569
3618
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3619
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3620
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3570
3621
|
};
|
|
3571
3622
|
zh: {
|
|
3572
3623
|
INCOMING_CALL: string;
|
|
@@ -3629,10 +3680,20 @@ declare class CometChatLocalize {
|
|
|
3629
3680
|
SELECT_TIME: string;
|
|
3630
3681
|
NO_CALLS_SELECTED: string;
|
|
3631
3682
|
SELECT__GROUP: string;
|
|
3683
|
+
/**
|
|
3684
|
+
* Initializes localization with the specified language and custom resources.
|
|
3685
|
+
* @param {string} [language=""] - The language code to set.
|
|
3686
|
+
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
3687
|
+
*/
|
|
3632
3688
|
SELECT__USER: string;
|
|
3633
3689
|
GROUP_PASSWORD_BLANK: string;
|
|
3634
3690
|
GROUP_NAME_BLANK: string;
|
|
3635
3691
|
GROUP_TYPE_BLANK: string;
|
|
3692
|
+
/**
|
|
3693
|
+
* Initializes localization with the specified language and custom resources.
|
|
3694
|
+
* @param {string} [language=""] - The language code to set.
|
|
3695
|
+
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
3696
|
+
*/
|
|
3636
3697
|
DELETE_CONVERSATION: string;
|
|
3637
3698
|
ADD_TO_CHAT: string;
|
|
3638
3699
|
MORE: string;
|
|
@@ -3674,7 +3735,10 @@ declare class CometChatLocalize {
|
|
|
3674
3735
|
PREFERENCES: string;
|
|
3675
3736
|
MEMBERS: string;
|
|
3676
3737
|
MEMBER: string;
|
|
3677
|
-
EDITED: string;
|
|
3738
|
+
EDITED: string; /**
|
|
3739
|
+
* Returns the language code
|
|
3740
|
+
* @returns {String} language code i.e. en
|
|
3741
|
+
*/
|
|
3678
3742
|
TODAY: string;
|
|
3679
3743
|
YESTERDAY: string;
|
|
3680
3744
|
SUNDAY: string;
|
|
@@ -3962,6 +4026,8 @@ declare class CometChatLocalize {
|
|
|
3962
4026
|
SAVE: string;
|
|
3963
4027
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3964
4028
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4029
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4030
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3965
4031
|
};
|
|
3966
4032
|
"zh-tw": {
|
|
3967
4033
|
INFO: string;
|
|
@@ -4357,6 +4423,9 @@ declare class CometChatLocalize {
|
|
|
4357
4423
|
SAVE: string;
|
|
4358
4424
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4359
4425
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4426
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4427
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4428
|
+
media_recorder_error_button: string;
|
|
4360
4429
|
};
|
|
4361
4430
|
sv: {
|
|
4362
4431
|
INFO: string;
|
|
@@ -4428,7 +4497,10 @@ declare class CometChatLocalize {
|
|
|
4428
4497
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4429
4498
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4430
4499
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4431
|
-
SCHEDULE: string;
|
|
4500
|
+
SCHEDULE: string; /**
|
|
4501
|
+
* Returns the language code
|
|
4502
|
+
* @returns {String} language code i.e. en
|
|
4503
|
+
*/
|
|
4432
4504
|
MORE_TIMES: string;
|
|
4433
4505
|
MISSED_VOICE_CALL: string;
|
|
4434
4506
|
MEET_WITH: string;
|
|
@@ -4752,6 +4824,8 @@ declare class CometChatLocalize {
|
|
|
4752
4824
|
SAVE: string;
|
|
4753
4825
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4754
4826
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4827
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4828
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4755
4829
|
};
|
|
4756
4830
|
lt: {
|
|
4757
4831
|
INFO: string;
|
|
@@ -4851,7 +4925,11 @@ declare class CometChatLocalize {
|
|
|
4851
4925
|
YESTERDAY: string;
|
|
4852
4926
|
SUNDAY: string;
|
|
4853
4927
|
MONDAY: string;
|
|
4854
|
-
TUESDAY: string;
|
|
4928
|
+
TUESDAY: string; /**
|
|
4929
|
+
* Accepts the string to localize and return the localized string
|
|
4930
|
+
* @param {String} str
|
|
4931
|
+
* @returns {String} localized str
|
|
4932
|
+
*/
|
|
4855
4933
|
WEDNESDAY: string;
|
|
4856
4934
|
THURSDAY: string;
|
|
4857
4935
|
FRIDAY: string;
|
|
@@ -5147,6 +5225,8 @@ declare class CometChatLocalize {
|
|
|
5147
5225
|
SAVE: string;
|
|
5148
5226
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5149
5227
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5228
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5229
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5150
5230
|
};
|
|
5151
5231
|
hu: {
|
|
5152
5232
|
INFO: string;
|
|
@@ -5241,14 +5321,21 @@ declare class CometChatLocalize {
|
|
|
5241
5321
|
PREFERENCES: string;
|
|
5242
5322
|
MEMBERS: string;
|
|
5243
5323
|
MEMBER: string;
|
|
5244
|
-
EDITED: string;
|
|
5324
|
+
EDITED: string; /**
|
|
5325
|
+
* Set the active language
|
|
5326
|
+
* @param {String} language
|
|
5327
|
+
*/
|
|
5245
5328
|
TODAY: string;
|
|
5246
5329
|
YESTERDAY: string;
|
|
5247
5330
|
SUNDAY: string;
|
|
5248
5331
|
MONDAY: string;
|
|
5249
5332
|
TUESDAY: string;
|
|
5250
5333
|
WEDNESDAY: string;
|
|
5251
|
-
THURSDAY: string;
|
|
5334
|
+
THURSDAY: string; /**
|
|
5335
|
+
* Accepts the string to localize and return the localized string
|
|
5336
|
+
* @param {String} str
|
|
5337
|
+
* @returns {String} localized str
|
|
5338
|
+
*/
|
|
5252
5339
|
FRIDAY: string;
|
|
5253
5340
|
SATURDAY: string;
|
|
5254
5341
|
TYPING: string;
|
|
@@ -5542,6 +5629,8 @@ declare class CometChatLocalize {
|
|
|
5542
5629
|
SAVE: string;
|
|
5543
5630
|
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5544
5631
|
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5632
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5633
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5545
5634
|
};
|
|
5546
5635
|
};
|
|
5547
5636
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
2
3
|
import { CometChatTextFormatter } from "../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
3
4
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
1
3
|
import { DataSource } from "./DataSource";
|
|
2
4
|
import { additionalParams } from "./ConversationUtils";
|
|
3
5
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* It is used in CometChatIncomingCall component.
|
|
4
4
|
*/
|
|
5
5
|
export declare class StorageUtils {
|
|
6
|
+
private static isWindowListenerAttached;
|
|
7
|
+
private static storageKeyToRemove;
|
|
8
|
+
private static handleBeforeUnload;
|
|
6
9
|
/**
|
|
7
10
|
* Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
|
|
8
11
|
* @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
|
|
@@ -47,4 +47,5 @@ export declare function processFileForAudio(file: File): Promise<File>;
|
|
|
47
47
|
export declare function formatDateFromTimestamp(timestamp: number): string;
|
|
48
48
|
export declare function isMobileDevice(): boolean;
|
|
49
49
|
export declare function fireClickEvent(): void;
|
|
50
|
+
export declare const decodeHTML: (input: string) => string;
|
|
50
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.js",
|
|
8
|
+
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
|
+
},
|
|
6
10
|
"dependencies": {
|
|
7
|
-
"@cometchat/chat-sdk-javascript": "^4.0.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.0.11",
|
|
8
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
9
13
|
"rxjs": "^7.8.1"
|
|
10
14
|
},
|
package/rollup.config.js
CHANGED
|
@@ -44,7 +44,7 @@ export default [
|
|
|
44
44
|
}),
|
|
45
45
|
terser(),
|
|
46
46
|
],
|
|
47
|
-
external: ["react", "react-dom", "@cometchat/chat-sdk-javascript", "@cometchat/calls-sdk-javascript"],
|
|
47
|
+
external: ["react", "react-dom","react/jsx-runtime", "@cometchat/chat-sdk-javascript", "@cometchat/calls-sdk-javascript"],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
input: "src/index.ts",
|