@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
|
@@ -45,7 +45,6 @@ declare class CometChatLocalize {
|
|
|
45
45
|
WRONG_FILE_TYPE: string;
|
|
46
46
|
MESSAGE_HEADER: string;
|
|
47
47
|
MESSAGE_LIST: string;
|
|
48
|
-
/**Properties and constants */
|
|
49
48
|
MESSAGE_COMPOSER: string;
|
|
50
49
|
USERS_WITH_MESSAGES: string;
|
|
51
50
|
USER_LIST: string;
|
|
@@ -73,7 +72,7 @@ declare class CometChatLocalize {
|
|
|
73
72
|
MESSAGE_IMAGE: string;
|
|
74
73
|
MESSAGE_FILE: string;
|
|
75
74
|
MESSAGE_VIDEO: string;
|
|
76
|
-
MESSAGE_AUDIO: string;
|
|
75
|
+
MESSAGE_AUDIO: string;
|
|
77
76
|
CUSTOM_MESSAGE: string;
|
|
78
77
|
SELECT_A_DATE: string;
|
|
79
78
|
TIME_ZONE: string;
|
|
@@ -124,11 +123,6 @@ declare class CometChatLocalize {
|
|
|
124
123
|
ADD_MEMBERS: string;
|
|
125
124
|
SEND_MESSAGE: string;
|
|
126
125
|
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
|
-
*/
|
|
132
126
|
BLOCK_USER: string;
|
|
133
127
|
DELETE_AND_EXIT: string;
|
|
134
128
|
LEAVE_GROUP: string;
|
|
@@ -411,6 +405,8 @@ declare class CometChatLocalize {
|
|
|
411
405
|
NO_USERS_FOUND: string;
|
|
412
406
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
413
407
|
SAVE: string;
|
|
408
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
409
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
414
410
|
};
|
|
415
411
|
de: {
|
|
416
412
|
INFO: string;
|
|
@@ -804,6 +800,8 @@ declare class CometChatLocalize {
|
|
|
804
800
|
NO_USERS_FOUND: string;
|
|
805
801
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
806
802
|
SAVE: string;
|
|
803
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
804
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
807
805
|
};
|
|
808
806
|
en: {
|
|
809
807
|
INFO: string;
|
|
@@ -911,11 +909,7 @@ declare class CometChatLocalize {
|
|
|
911
909
|
TYPING: string;
|
|
912
910
|
IS_TYPING: string;
|
|
913
911
|
CLOSE: string;
|
|
914
|
-
ENTER_GROUP_NAME: string;
|
|
915
|
-
* Accepts the string to localize and return the localized string
|
|
916
|
-
* @param {String} str
|
|
917
|
-
* @returns {String} localized str
|
|
918
|
-
*/
|
|
912
|
+
ENTER_GROUP_NAME: string;
|
|
919
913
|
ADD_MEMBERS: string;
|
|
920
914
|
SEND_MESSAGE: string;
|
|
921
915
|
UNBLOCK_USER: string;
|
|
@@ -1201,6 +1195,8 @@ declare class CometChatLocalize {
|
|
|
1201
1195
|
NO_USERS_FOUND: string;
|
|
1202
1196
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1203
1197
|
SAVE: string;
|
|
1198
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1199
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1204
1200
|
};
|
|
1205
1201
|
es: {
|
|
1206
1202
|
INFO: string;
|
|
@@ -1225,17 +1221,12 @@ declare class CometChatLocalize {
|
|
|
1225
1221
|
MESSAGE_RECEIPT: string;
|
|
1226
1222
|
MESSAGE: string;
|
|
1227
1223
|
RECEIPT_INFORMATION: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* The `CometChatLocalize` class handles localization for the CometChat application.
|
|
1230
|
-
* It provides functionality to detect the user's browser language settings and
|
|
1231
|
-
* set the application's language accordingly.
|
|
1232
|
-
*/
|
|
1233
1224
|
NO_RECIPIENT: string;
|
|
1234
1225
|
NO_RECIPIENTS: string;
|
|
1235
1226
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1236
1227
|
CONVERSATIONS: string;
|
|
1237
1228
|
CONVERSATION_LIST: string;
|
|
1238
|
-
MESSAGES: string;
|
|
1229
|
+
MESSAGES: string;
|
|
1239
1230
|
WRONG_FILE_TYPE: string;
|
|
1240
1231
|
MESSAGE_HEADER: string;
|
|
1241
1232
|
MESSAGE_LIST: string;
|
|
@@ -1258,7 +1249,7 @@ declare class CometChatLocalize {
|
|
|
1258
1249
|
GROUP_PASSWORD_BLANK: string;
|
|
1259
1250
|
GROUP_NAME_BLANK: string;
|
|
1260
1251
|
GROUP_TYPE_BLANK: string;
|
|
1261
|
-
DELETE_CONVERSATION: string;
|
|
1252
|
+
DELETE_CONVERSATION: string;
|
|
1262
1253
|
ADD_TO_CHAT: string;
|
|
1263
1254
|
MORE: string;
|
|
1264
1255
|
COPY: string;
|
|
@@ -1294,10 +1285,7 @@ declare class CometChatLocalize {
|
|
|
1294
1285
|
MODERATOR: string;
|
|
1295
1286
|
PARTICIPANT: string;
|
|
1296
1287
|
PUBLIC: string;
|
|
1297
|
-
PRIVATE: string;
|
|
1298
|
-
* Set the active language
|
|
1299
|
-
* @param {String} language
|
|
1300
|
-
*/
|
|
1288
|
+
PRIVATE: string;
|
|
1301
1289
|
PASSWORD_PROTECTED: string;
|
|
1302
1290
|
PRIVACY_AND_SECURITY: string;
|
|
1303
1291
|
PREFERENCES: string;
|
|
@@ -1602,6 +1590,8 @@ declare class CometChatLocalize {
|
|
|
1602
1590
|
NO_USERS_FOUND: string;
|
|
1603
1591
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1604
1592
|
SAVE: string;
|
|
1593
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1594
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1605
1595
|
};
|
|
1606
1596
|
fr: {
|
|
1607
1597
|
INFO: string;
|
|
@@ -1666,10 +1656,7 @@ declare class CometChatLocalize {
|
|
|
1666
1656
|
CUSTOM_MESSAGE: string;
|
|
1667
1657
|
SELECT_A_DATE: string;
|
|
1668
1658
|
TIME_ZONE: string;
|
|
1669
|
-
MEETING_SCHEDULED: string;
|
|
1670
|
-
* Returns the browser language
|
|
1671
|
-
* @returns {String} browser langauge i.e. en-US
|
|
1672
|
-
*/
|
|
1659
|
+
MEETING_SCHEDULED: string;
|
|
1673
1660
|
SOMETHING_WRONG: string;
|
|
1674
1661
|
MEETING_SLOT_BOOK: string;
|
|
1675
1662
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -1998,6 +1985,8 @@ declare class CometChatLocalize {
|
|
|
1998
1985
|
NO_USERS_FOUND: string;
|
|
1999
1986
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2000
1987
|
SAVE: string;
|
|
1988
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1989
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2001
1990
|
};
|
|
2002
1991
|
hi: {
|
|
2003
1992
|
INFO: string;
|
|
@@ -2087,10 +2076,7 @@ declare class CometChatLocalize {
|
|
|
2087
2076
|
PARTICIPANT: string;
|
|
2088
2077
|
PUBLIC: string;
|
|
2089
2078
|
PRIVATE: string;
|
|
2090
|
-
PASSWORD_PROTECTED: string;
|
|
2091
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2092
|
-
* @returns {String} active language
|
|
2093
|
-
*/
|
|
2079
|
+
PASSWORD_PROTECTED: string;
|
|
2094
2080
|
PRIVACY_AND_SECURITY: string;
|
|
2095
2081
|
PREFERENCES: string;
|
|
2096
2082
|
MEMBERS: string;
|
|
@@ -2394,6 +2380,8 @@ declare class CometChatLocalize {
|
|
|
2394
2380
|
NO_USERS_FOUND: string;
|
|
2395
2381
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2396
2382
|
SAVE: string;
|
|
2383
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2384
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2397
2385
|
};
|
|
2398
2386
|
ms: {
|
|
2399
2387
|
INFO: string;
|
|
@@ -2454,7 +2442,6 @@ declare class CometChatLocalize {
|
|
|
2454
2442
|
MESSAGE_IMAGE: string;
|
|
2455
2443
|
MESSAGE_FILE: string;
|
|
2456
2444
|
MESSAGE_VIDEO: string;
|
|
2457
|
-
/**Add to the original array of translations if language code is not found */
|
|
2458
2445
|
MESSAGE_AUDIO: string;
|
|
2459
2446
|
CUSTOM_MESSAGE: string;
|
|
2460
2447
|
SELECT_A_DATE: string;
|
|
@@ -2478,10 +2465,7 @@ declare class CometChatLocalize {
|
|
|
2478
2465
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2479
2466
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2480
2467
|
ONLINE: string;
|
|
2481
|
-
ADMINISTRATOR: string;
|
|
2482
|
-
* Returns the active language. Return fallback language if translation is not available for the active language
|
|
2483
|
-
* @returns {String} active language
|
|
2484
|
-
*/
|
|
2468
|
+
ADMINISTRATOR: string;
|
|
2485
2469
|
ADMIN: string;
|
|
2486
2470
|
MODERATOR: string;
|
|
2487
2471
|
PARTICIPANT: string;
|
|
@@ -2495,10 +2479,7 @@ declare class CometChatLocalize {
|
|
|
2495
2479
|
EDITED: string;
|
|
2496
2480
|
TODAY: string;
|
|
2497
2481
|
YESTERDAY: string;
|
|
2498
|
-
SUNDAY: string;
|
|
2499
|
-
* Set the active language
|
|
2500
|
-
* @param {String} language
|
|
2501
|
-
*/
|
|
2482
|
+
SUNDAY: string;
|
|
2502
2483
|
MONDAY: string;
|
|
2503
2484
|
TUESDAY: string;
|
|
2504
2485
|
WEDNESDAY: string;
|
|
@@ -2794,6 +2775,8 @@ declare class CometChatLocalize {
|
|
|
2794
2775
|
NO_USERS_FOUND: string;
|
|
2795
2776
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2796
2777
|
SAVE: string;
|
|
2778
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2779
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2797
2780
|
};
|
|
2798
2781
|
pt: {
|
|
2799
2782
|
INFO: string;
|
|
@@ -2900,9 +2883,7 @@ declare class CometChatLocalize {
|
|
|
2900
2883
|
SATURDAY: string;
|
|
2901
2884
|
TYPING: string;
|
|
2902
2885
|
IS_TYPING: string;
|
|
2903
|
-
CLOSE: string;
|
|
2904
|
-
* Sets the default lannguage if no language is passed in init method
|
|
2905
|
-
*/
|
|
2886
|
+
CLOSE: string;
|
|
2906
2887
|
ENTER_GROUP_NAME: string;
|
|
2907
2888
|
ADD_MEMBERS: string;
|
|
2908
2889
|
SEND_MESSAGE: string;
|
|
@@ -3189,6 +3170,8 @@ declare class CometChatLocalize {
|
|
|
3189
3170
|
NO_USERS_FOUND: string;
|
|
3190
3171
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3191
3172
|
SAVE: string;
|
|
3173
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3174
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3192
3175
|
};
|
|
3193
3176
|
ru: {
|
|
3194
3177
|
INFO: string;
|
|
@@ -3244,7 +3227,7 @@ declare class CometChatLocalize {
|
|
|
3244
3227
|
DELETE_CONVERSATION: string;
|
|
3245
3228
|
ADD_TO_CHAT: string;
|
|
3246
3229
|
MORE: string;
|
|
3247
|
-
COPY: string;
|
|
3230
|
+
COPY: string;
|
|
3248
3231
|
VOICE_RECORDING: string;
|
|
3249
3232
|
MESSAGE_IMAGE: string;
|
|
3250
3233
|
MESSAGE_FILE: string;
|
|
@@ -3582,6 +3565,8 @@ declare class CometChatLocalize {
|
|
|
3582
3565
|
NO_USERS_FOUND: string;
|
|
3583
3566
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3584
3567
|
SAVE: string;
|
|
3568
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3569
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3585
3570
|
};
|
|
3586
3571
|
zh: {
|
|
3587
3572
|
INCOMING_CALL: string;
|
|
@@ -3644,20 +3629,10 @@ declare class CometChatLocalize {
|
|
|
3644
3629
|
SELECT_TIME: string;
|
|
3645
3630
|
NO_CALLS_SELECTED: string;
|
|
3646
3631
|
SELECT__GROUP: string;
|
|
3647
|
-
/**
|
|
3648
|
-
* Initializes localization with the specified language and custom resources.
|
|
3649
|
-
* @param {string} [language=""] - The language code to set.
|
|
3650
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
3651
|
-
*/
|
|
3652
3632
|
SELECT__USER: string;
|
|
3653
3633
|
GROUP_PASSWORD_BLANK: string;
|
|
3654
3634
|
GROUP_NAME_BLANK: string;
|
|
3655
3635
|
GROUP_TYPE_BLANK: string;
|
|
3656
|
-
/**
|
|
3657
|
-
* Initializes localization with the specified language and custom resources.
|
|
3658
|
-
* @param {string} [language=""] - The language code to set.
|
|
3659
|
-
* @param {object} [resources={}] - Custom translations to override defaults.
|
|
3660
|
-
*/
|
|
3661
3636
|
DELETE_CONVERSATION: string;
|
|
3662
3637
|
ADD_TO_CHAT: string;
|
|
3663
3638
|
MORE: string;
|
|
@@ -3699,10 +3674,7 @@ declare class CometChatLocalize {
|
|
|
3699
3674
|
PREFERENCES: string;
|
|
3700
3675
|
MEMBERS: string;
|
|
3701
3676
|
MEMBER: string;
|
|
3702
|
-
EDITED: string;
|
|
3703
|
-
* Returns the language code
|
|
3704
|
-
* @returns {String} language code i.e. en
|
|
3705
|
-
*/
|
|
3677
|
+
EDITED: string;
|
|
3706
3678
|
TODAY: string;
|
|
3707
3679
|
YESTERDAY: string;
|
|
3708
3680
|
SUNDAY: string;
|
|
@@ -3988,6 +3960,8 @@ declare class CometChatLocalize {
|
|
|
3988
3960
|
NO_USERS_FOUND: string;
|
|
3989
3961
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3990
3962
|
SAVE: string;
|
|
3963
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3964
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3991
3965
|
};
|
|
3992
3966
|
"zh-tw": {
|
|
3993
3967
|
INFO: string;
|
|
@@ -4381,6 +4355,8 @@ declare class CometChatLocalize {
|
|
|
4381
4355
|
NO_USERS_FOUND: string;
|
|
4382
4356
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4383
4357
|
SAVE: string;
|
|
4358
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4359
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4384
4360
|
};
|
|
4385
4361
|
sv: {
|
|
4386
4362
|
INFO: string;
|
|
@@ -4452,10 +4428,7 @@ declare class CometChatLocalize {
|
|
|
4452
4428
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4453
4429
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4454
4430
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4455
|
-
SCHEDULE: string;
|
|
4456
|
-
* Returns the language code
|
|
4457
|
-
* @returns {String} language code i.e. en
|
|
4458
|
-
*/
|
|
4431
|
+
SCHEDULE: string;
|
|
4459
4432
|
MORE_TIMES: string;
|
|
4460
4433
|
MISSED_VOICE_CALL: string;
|
|
4461
4434
|
MEET_WITH: string;
|
|
@@ -4777,6 +4750,8 @@ declare class CometChatLocalize {
|
|
|
4777
4750
|
NO_USERS_FOUND: string;
|
|
4778
4751
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4779
4752
|
SAVE: string;
|
|
4753
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4754
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4780
4755
|
};
|
|
4781
4756
|
lt: {
|
|
4782
4757
|
INFO: string;
|
|
@@ -4876,11 +4851,7 @@ declare class CometChatLocalize {
|
|
|
4876
4851
|
YESTERDAY: string;
|
|
4877
4852
|
SUNDAY: string;
|
|
4878
4853
|
MONDAY: string;
|
|
4879
|
-
TUESDAY: string;
|
|
4880
|
-
* Accepts the string to localize and return the localized string
|
|
4881
|
-
* @param {String} str
|
|
4882
|
-
* @returns {String} localized str
|
|
4883
|
-
*/
|
|
4854
|
+
TUESDAY: string;
|
|
4884
4855
|
WEDNESDAY: string;
|
|
4885
4856
|
THURSDAY: string;
|
|
4886
4857
|
FRIDAY: string;
|
|
@@ -5174,6 +5145,8 @@ declare class CometChatLocalize {
|
|
|
5174
5145
|
NO_USERS_FOUND: string;
|
|
5175
5146
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5176
5147
|
SAVE: string;
|
|
5148
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5149
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5177
5150
|
};
|
|
5178
5151
|
hu: {
|
|
5179
5152
|
INFO: string;
|
|
@@ -5268,21 +5241,14 @@ declare class CometChatLocalize {
|
|
|
5268
5241
|
PREFERENCES: string;
|
|
5269
5242
|
MEMBERS: string;
|
|
5270
5243
|
MEMBER: string;
|
|
5271
|
-
EDITED: string;
|
|
5272
|
-
* Set the active language
|
|
5273
|
-
* @param {String} language
|
|
5274
|
-
*/
|
|
5244
|
+
EDITED: string;
|
|
5275
5245
|
TODAY: string;
|
|
5276
5246
|
YESTERDAY: string;
|
|
5277
5247
|
SUNDAY: string;
|
|
5278
5248
|
MONDAY: string;
|
|
5279
5249
|
TUESDAY: string;
|
|
5280
5250
|
WEDNESDAY: string;
|
|
5281
|
-
THURSDAY: string;
|
|
5282
|
-
* Accepts the string to localize and return the localized string
|
|
5283
|
-
* @param {String} str
|
|
5284
|
-
* @returns {String} localized str
|
|
5285
|
-
*/
|
|
5251
|
+
THURSDAY: string;
|
|
5286
5252
|
FRIDAY: string;
|
|
5287
5253
|
SATURDAY: string;
|
|
5288
5254
|
TYPING: string;
|
|
@@ -5574,6 +5540,8 @@ declare class CometChatLocalize {
|
|
|
5574
5540
|
NO_USERS_FOUND: string;
|
|
5575
5541
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5576
5542
|
SAVE: string;
|
|
5543
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5544
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5577
5545
|
};
|
|
5578
5546
|
};
|
|
5579
5547
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
3
2
|
import { CometChatTextFormatter } from "../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
4
3
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|
|
@@ -51,4 +50,13 @@ export declare abstract class DataSource {
|
|
|
51
50
|
abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
|
|
52
51
|
abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
|
|
53
52
|
abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
|
|
53
|
+
abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
54
|
+
abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
55
|
+
abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
56
|
+
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
57
|
+
abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
58
|
+
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
59
|
+
abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
60
|
+
abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
61
|
+
abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
54
62
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DataSource } from "./DataSource";
|
|
3
2
|
import { ComposerId } from "./MessagesDataSource";
|
|
4
3
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|
|
@@ -53,4 +52,13 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
53
52
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
54
53
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
55
54
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
55
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
56
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
57
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
58
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
59
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
60
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
61
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
62
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
63
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
56
64
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
1
|
import { DataSource } from "./DataSource";
|
|
4
2
|
import { additionalParams } from "./ConversationUtils";
|
|
5
3
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
@@ -120,4 +118,13 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
120
118
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
121
119
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
122
120
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
121
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
122
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
123
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
124
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
125
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
126
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
127
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
128
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
129
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
123
130
|
}
|
|
@@ -46,4 +46,5 @@ export declare function processFileForAudio(file: File): Promise<File>;
|
|
|
46
46
|
*/
|
|
47
47
|
export declare function formatDateFromTimestamp(timestamp: number): string;
|
|
48
48
|
export declare function isMobileDevice(): boolean;
|
|
49
|
+
export declare function fireClickEvent(): void;
|
|
49
50
|
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@cometchat/chat-sdk-javascript": "^4.0.10",
|
|
8
8
|
"@rollup/plugin-json": "^6.1.0",
|
|
9
9
|
"rxjs": "^7.8.1"
|
|
10
|
-
},
|
|
10
|
+
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
13
|
"build": "rollup -c --bundleConfigAsCjs"
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"webpack-cli": "^4.9.2",
|
|
41
41
|
"webpack-dev-server": "^4.7.4"
|
|
42
42
|
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@types/react": ">=18.0.0 <20.0.0",
|
|
45
|
+
"@types/react-dom": ">=18.0.0 <20.0.0",
|
|
46
|
+
"rxjs": "^7.8.1"
|
|
47
|
+
},
|
|
43
48
|
"homepage": "https://www.cometchat.com",
|
|
44
49
|
"repository": "https://github.com/cometchat/cometchat-uikit-react",
|
|
45
50
|
"main": "dist/index.js",
|