@cometchat/chat-uikit-react 5.0.4 → 5.0.6
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 +111 -11
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallLogs.css +2 -2
- package/dist/styles/CometChatConversationStarter.css +2 -1
- package/dist/styles/CometChatMediaRecorder.css +76 -4
- package/dist/styles/CometChatMessageBubble.css +4 -1
- package/dist/styles/CometChatMessageComposer.css +19 -2
- package/dist/styles/CometChatMessageInformation.css +7 -1
- package/dist/styles/CometChatMessageList.css +20 -8
- package/dist/styles/CometChatOngoingCall.css +1 -1
- package/dist/styles/CometChatReactionList.css +3 -4
- package/dist/styles/CometChatThreadedMessagePreview.css +1 -1
- 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/CometChatConversationStarter.css +2 -1
- package/dist/styles/components/CometChatMediaRecorder.css +76 -4
- package/dist/styles/components/CometChatMessageBubble.css +4 -1
- package/dist/styles/components/CometChatMessageComposer.css +19 -2
- package/dist/styles/components/CometChatMessageInformation.css +7 -1
- package/dist/styles/components/CometChatMessageList.css +20 -8
- package/dist/styles/components/CometChatOngoingCall.css +1 -1
- package/dist/styles/components/CometChatReactionList.css +3 -4
- package/dist/styles/components/CometChatThreadedMessagePreview.css +1 -1
- 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/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +9 -6
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +3 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +1 -4
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -1
- package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +57 -0
- package/dist/types/utils/DataSource.d.ts +9 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +9 -0
- package/dist/types/utils/MessagesDataSource.d.ts +9 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +7 -2
- package/rollup.config.js +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { MouseEvent } from "react";
|
|
2
|
-
|
|
3
|
-
id?: string
|
|
4
|
-
onListItemClicked?: (
|
|
5
|
-
id
|
|
6
|
-
}) => void
|
|
7
|
-
|
|
2
|
+
interface ICometChatListItem {
|
|
3
|
+
id?: string;
|
|
4
|
+
onListItemClicked?: (input: {
|
|
5
|
+
id: string;
|
|
6
|
+
}) => void;
|
|
7
|
+
menuRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const useCometChatListItem: ({ id, onListItemClicked, menuRef, }: ICometChatListItem) => {
|
|
8
10
|
listItemClick: (event: MouseEvent<HTMLDivElement>) => void;
|
|
9
11
|
isHovering: boolean;
|
|
10
12
|
showTail: () => void;
|
|
11
13
|
hideTail: () => void;
|
|
12
14
|
};
|
|
15
|
+
export {};
|
|
@@ -14,6 +14,9 @@ interface PopoverProps {
|
|
|
14
14
|
content: ReactNode;
|
|
15
15
|
childClickHandler?: (openContent: Function, event: Event) => void;
|
|
16
16
|
onOutsideClick?: () => void;
|
|
17
|
+
disableBackgroundInteraction?: boolean;
|
|
18
|
+
useParentContainer?: boolean;
|
|
19
|
+
useParentHeight?: boolean;
|
|
17
20
|
}
|
|
18
21
|
declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
|
|
19
22
|
openPopover: () => void;
|
|
@@ -17,9 +17,6 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
19
|
showStickerKeyboard: boolean;
|
|
20
|
-
private id;
|
|
21
|
-
private user?;
|
|
22
|
-
private group?;
|
|
23
20
|
/**
|
|
24
21
|
* Constructs a new instance of StickersExtensionDecorator.
|
|
25
22
|
* @param dataSource - The data source to be decorated.
|
|
@@ -59,7 +56,7 @@ export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
59
56
|
* Sends a sticker message.
|
|
60
57
|
* @param event - The event object containing sticker details.
|
|
61
58
|
*/
|
|
62
|
-
sendSticker(event: any, closeSticker: Function): void;
|
|
59
|
+
sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
|
|
63
60
|
/**
|
|
64
61
|
* Sends a sticker message.
|
|
65
62
|
* @param event - The event object containing sticker details.
|
|
@@ -4,6 +4,7 @@ export declare class CometChatUIKitConstants {
|
|
|
4
4
|
custom: string;
|
|
5
5
|
action: string;
|
|
6
6
|
call: string;
|
|
7
|
+
interactive: string;
|
|
7
8
|
}>;
|
|
8
9
|
static MessageTypes: Readonly<{
|
|
9
10
|
text: string;
|
|
@@ -14,6 +15,10 @@ export declare class CometChatUIKitConstants {
|
|
|
14
15
|
delete: "delete";
|
|
15
16
|
edited: "edited";
|
|
16
17
|
groupMember: "groupMember";
|
|
18
|
+
form: "form";
|
|
19
|
+
card: "card";
|
|
20
|
+
customInteractive: "customInteractive";
|
|
21
|
+
scheduler: "scheduler";
|
|
17
22
|
}>;
|
|
18
23
|
static groupMemberAction: Readonly<{
|
|
19
24
|
ROLE: "role";
|
|
@@ -96,7 +101,6 @@ export declare class CometChatUIKitConstants {
|
|
|
96
101
|
CUSTOM_MESSAGE_RECEIVED: "onCustomMessageReceived";
|
|
97
102
|
TRANSIENT_MESSAGE_RECEIVED: "onTransientMessageReceived";
|
|
98
103
|
INTERACTIVE_MESSAGE_RECEIVED: "onInteractiveMessageReceived";
|
|
99
|
-
INTERACTION_GOAL_COMPLETED: "onInteractionGoalCompleted";
|
|
100
104
|
DELIVERY: "delivery";
|
|
101
105
|
READ: "read";
|
|
102
106
|
APP_SYSTEM: "app_system";
|
|
@@ -33,6 +33,10 @@ export declare class CometChatMessageEvents {
|
|
|
33
33
|
static onTransientMessageReceived: Subject<CometChat.TransientMessage>;
|
|
34
34
|
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
35
35
|
static onMessageReactionRemoved: Subject<CometChat.ReactionEvent>;
|
|
36
|
+
static onCustomInteractiveMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
37
|
+
static onFormMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
38
|
+
static onCardMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
39
|
+
static onSchedulerMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
36
40
|
}
|
|
37
41
|
/**
|
|
38
42
|
* Interface for message-related events
|
|
@@ -411,6 +411,10 @@ declare class CometChatLocalize {
|
|
|
411
411
|
NO_USERS_FOUND: string;
|
|
412
412
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
413
413
|
SAVE: string;
|
|
414
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
415
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
416
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
417
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
414
418
|
};
|
|
415
419
|
de: {
|
|
416
420
|
INFO: string;
|
|
@@ -804,6 +808,10 @@ declare class CometChatLocalize {
|
|
|
804
808
|
NO_USERS_FOUND: string;
|
|
805
809
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
806
810
|
SAVE: string;
|
|
811
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
812
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
813
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
814
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
807
815
|
};
|
|
808
816
|
en: {
|
|
809
817
|
INFO: string;
|
|
@@ -1201,6 +1209,10 @@ declare class CometChatLocalize {
|
|
|
1201
1209
|
NO_USERS_FOUND: string;
|
|
1202
1210
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1203
1211
|
SAVE: string;
|
|
1212
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1213
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1214
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1215
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1204
1216
|
};
|
|
1205
1217
|
es: {
|
|
1206
1218
|
INFO: string;
|
|
@@ -1602,6 +1614,10 @@ declare class CometChatLocalize {
|
|
|
1602
1614
|
NO_USERS_FOUND: string;
|
|
1603
1615
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
1604
1616
|
SAVE: string;
|
|
1617
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
1618
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
1619
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
1620
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
1605
1621
|
};
|
|
1606
1622
|
fr: {
|
|
1607
1623
|
INFO: string;
|
|
@@ -1998,6 +2014,10 @@ declare class CometChatLocalize {
|
|
|
1998
2014
|
NO_USERS_FOUND: string;
|
|
1999
2015
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2000
2016
|
SAVE: string;
|
|
2017
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2018
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2019
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2020
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2001
2021
|
};
|
|
2002
2022
|
hi: {
|
|
2003
2023
|
INFO: string;
|
|
@@ -2394,6 +2414,10 @@ declare class CometChatLocalize {
|
|
|
2394
2414
|
NO_USERS_FOUND: string;
|
|
2395
2415
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2396
2416
|
SAVE: string;
|
|
2417
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2418
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2419
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2420
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2397
2421
|
};
|
|
2398
2422
|
ms: {
|
|
2399
2423
|
INFO: string;
|
|
@@ -2794,6 +2818,10 @@ declare class CometChatLocalize {
|
|
|
2794
2818
|
NO_USERS_FOUND: string;
|
|
2795
2819
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
2796
2820
|
SAVE: string;
|
|
2821
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
2822
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
2823
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
2824
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
2797
2825
|
};
|
|
2798
2826
|
pt: {
|
|
2799
2827
|
INFO: string;
|
|
@@ -3189,6 +3217,10 @@ declare class CometChatLocalize {
|
|
|
3189
3217
|
NO_USERS_FOUND: string;
|
|
3190
3218
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3191
3219
|
SAVE: string;
|
|
3220
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3221
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3222
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3223
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3192
3224
|
};
|
|
3193
3225
|
ru: {
|
|
3194
3226
|
INFO: string;
|
|
@@ -3582,6 +3614,10 @@ declare class CometChatLocalize {
|
|
|
3582
3614
|
NO_USERS_FOUND: string;
|
|
3583
3615
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3584
3616
|
SAVE: string;
|
|
3617
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
3618
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
3619
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
3620
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3585
3621
|
};
|
|
3586
3622
|
zh: {
|
|
3587
3623
|
INCOMING_CALL: string;
|
|
@@ -3988,6 +4024,10 @@ declare class CometChatLocalize {
|
|
|
3988
4024
|
NO_USERS_FOUND: string;
|
|
3989
4025
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
3990
4026
|
SAVE: string;
|
|
4027
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4028
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4029
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4030
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
3991
4031
|
};
|
|
3992
4032
|
"zh-tw": {
|
|
3993
4033
|
INFO: string;
|
|
@@ -4381,6 +4421,11 @@ declare class CometChatLocalize {
|
|
|
4381
4421
|
NO_USERS_FOUND: string;
|
|
4382
4422
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4383
4423
|
SAVE: string;
|
|
4424
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4425
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4426
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4427
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4428
|
+
media_recorder_error_button: string;
|
|
4384
4429
|
};
|
|
4385
4430
|
sv: {
|
|
4386
4431
|
INFO: string;
|
|
@@ -4777,6 +4822,10 @@ declare class CometChatLocalize {
|
|
|
4777
4822
|
NO_USERS_FOUND: string;
|
|
4778
4823
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
4779
4824
|
SAVE: string;
|
|
4825
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
4826
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
4827
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
4828
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
4780
4829
|
};
|
|
4781
4830
|
lt: {
|
|
4782
4831
|
INFO: string;
|
|
@@ -5174,6 +5223,10 @@ declare class CometChatLocalize {
|
|
|
5174
5223
|
NO_USERS_FOUND: string;
|
|
5175
5224
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5176
5225
|
SAVE: string;
|
|
5226
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5227
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5228
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5229
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5177
5230
|
};
|
|
5178
5231
|
hu: {
|
|
5179
5232
|
INFO: string;
|
|
@@ -5574,6 +5627,10 @@ declare class CometChatLocalize {
|
|
|
5574
5627
|
NO_USERS_FOUND: string;
|
|
5575
5628
|
USERS_EMPTY_STATE_MESSAGE: string;
|
|
5576
5629
|
SAVE: string;
|
|
5630
|
+
MESSAGE_TYPE_NOT_SUPPORTED: string;
|
|
5631
|
+
MESSAGE_ALREADY_TRANSLATED: string;
|
|
5632
|
+
MEDIA_RECORDER_ERROR_TITLE: string;
|
|
5633
|
+
MEDIA_RECORDER_ERROR_SUBTITLE: string;
|
|
5577
5634
|
};
|
|
5578
5635
|
};
|
|
5579
5636
|
/**
|
|
@@ -51,4 +51,13 @@ export declare abstract class DataSource {
|
|
|
51
51
|
abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
|
|
52
52
|
abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
|
|
53
53
|
abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
|
|
54
|
+
abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
55
|
+
abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
56
|
+
abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
57
|
+
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
58
|
+
abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
59
|
+
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
60
|
+
abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
61
|
+
abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
62
|
+
abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
54
63
|
}
|
|
@@ -53,4 +53,13 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
53
53
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
54
54
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
55
55
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
56
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
57
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
58
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
59
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
60
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
61
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
62
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
63
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
64
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
56
65
|
}
|
|
@@ -120,4 +120,13 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
120
120
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
121
121
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
122
122
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
123
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
124
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
125
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
126
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
127
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
128
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
129
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
130
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
131
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
123
132
|
}
|
|
@@ -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.6",
|
|
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",
|
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",
|