@cometchat/chat-uikit-react 5.0.8 → 5.0.10
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 +222 -177
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatActionSheet.css +0 -5
- package/dist/styles/CometChatChangeScope.css +0 -5
- package/dist/styles/CometChatEmojiKeyboard.css +0 -7
- package/dist/styles/CometChatGroupMembers.css +6 -3
- package/dist/styles/CometChatList.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +33 -0
- package/dist/styles/CometChatMessageHeader.css +16 -18
- package/dist/styles/CometChatMessageInformation.css +7 -8
- package/dist/styles/CometChatMessageList.css +14 -0
- package/dist/styles/CometChatReactionList.css +0 -7
- package/dist/styles/CometChatThreadedMessagePreview.css +5 -0
- package/dist/styles/MessageTranslationBubble.css +2 -4
- package/dist/styles/StickersKeyboard.css +0 -23
- package/dist/styles/components/CometChatActionSheet.css +0 -5
- package/dist/styles/components/CometChatChangeScope.css +0 -5
- package/dist/styles/components/CometChatEmojiKeyboard.css +0 -7
- package/dist/styles/components/CometChatGroupMembers.css +6 -3
- package/dist/styles/components/CometChatList.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +33 -0
- package/dist/styles/components/CometChatMessageHeader.css +16 -18
- package/dist/styles/components/CometChatMessageInformation.css +7 -8
- package/dist/styles/components/CometChatMessageList.css +14 -0
- package/dist/styles/components/CometChatReactionList.css +0 -7
- package/dist/styles/components/CometChatThreadedMessagePreview.css +5 -0
- package/dist/styles/components/MessageTranslationBubble.css +2 -4
- package/dist/styles/components/StickersKeyboard.css +0 -23
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/Enums/Enums.d.ts +2 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +5 -0
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +1 -1
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +6 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -1
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +5 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +5 -0
- package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +5 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +6 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +6 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +6 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +49 -1
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +6 -0
- 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 +2 -3
- package/dist/types/modals/CometChatActionsView.d.ts +1 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +16 -76
- package/dist/types/utils/DataSource.d.ts +1 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +1 -2
- package/package.json +1 -1
package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
|
|
3
2
|
import { MessageBubbleAlignment } from "../../../Enums/Enums";
|
|
3
|
+
import { JSX } from "react";
|
|
4
4
|
/**Interface defining the structure for MessageBubbleProps */
|
|
5
5
|
interface MessageBubbleProps {
|
|
6
6
|
id: string | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DatePatterns } from "../../../Enums/Enums";
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
interface CallLogsProps {
|
|
4
4
|
/**
|
|
5
5
|
* Object representing the active call that is currently selected.
|
|
@@ -78,6 +78,11 @@ interface CallLogsProps {
|
|
|
78
78
|
* @returns A JSX element to be rendered as the trailing view.
|
|
79
79
|
*/
|
|
80
80
|
trailingView?: (call: any) => JSX.Element;
|
|
81
|
+
/**
|
|
82
|
+
* Controls the visibility of the scrollbar in the list.
|
|
83
|
+
* @defaultValue `false`
|
|
84
|
+
*/
|
|
85
|
+
showScrollbar?: boolean;
|
|
81
86
|
}
|
|
82
87
|
declare const CometChatCallLogs: (props: CallLogsProps) => import("react/jsx-runtime").JSX.Element;
|
|
83
88
|
export { CometChatCallLogs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
interface IncomingCallProps {
|
|
4
4
|
/**
|
|
5
5
|
* The CometChat call object used to initialize and display the incoming call component.
|
|
@@ -150,6 +150,11 @@ interface ConversationsProps {
|
|
|
150
150
|
* @returns A JSX element to be rendered as the trailing view.
|
|
151
151
|
*/
|
|
152
152
|
trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
153
|
+
/**
|
|
154
|
+
* Controls the visibility of the scrollbar in the list.
|
|
155
|
+
* @defaultValue `false`
|
|
156
|
+
*/
|
|
157
|
+
showScrollbar?: boolean;
|
|
153
158
|
}
|
|
154
159
|
export type Action = {
|
|
155
160
|
type: "appendConversations";
|
|
@@ -156,6 +156,11 @@ interface GroupMembersProps {
|
|
|
156
156
|
* @returns A JSX element to be rendered as the trailing view.
|
|
157
157
|
*/
|
|
158
158
|
trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
159
|
+
/**
|
|
160
|
+
* Controls the visibility of the scrollbar in the list.
|
|
161
|
+
* @defaultValue `false`
|
|
162
|
+
*/
|
|
163
|
+
showScrollbar?: boolean;
|
|
159
164
|
}
|
|
160
165
|
export type Action = {
|
|
161
166
|
type: "appendGroupMembers";
|
|
@@ -121,6 +121,11 @@ interface GroupsProps {
|
|
|
121
121
|
* @returns A JSX element to be rendered as the trailing view.
|
|
122
122
|
*/
|
|
123
123
|
trailingView?: (group: CometChat.Group) => JSX.Element;
|
|
124
|
+
/**
|
|
125
|
+
* Controls the visibility of the scrollbar in the list.
|
|
126
|
+
* @defaultValue `false`
|
|
127
|
+
*/
|
|
128
|
+
showScrollbar?: boolean;
|
|
124
129
|
}
|
|
125
130
|
export type Action = {
|
|
126
131
|
type: "appendGroups";
|
|
@@ -149,6 +149,11 @@ interface MessageComposerProps {
|
|
|
149
149
|
* A custom header section displayed at the top of the message composer, often used for media previews or additional information.
|
|
150
150
|
*/
|
|
151
151
|
headerView?: JSX.Element;
|
|
152
|
+
/**
|
|
153
|
+
* Controls the visibility of the scrollbar in the list.
|
|
154
|
+
* @defaultValue `false`
|
|
155
|
+
*/
|
|
156
|
+
showScrollbar?: boolean;
|
|
152
157
|
}
|
|
153
158
|
/**
|
|
154
159
|
* Represents the state of the message composer.
|
|
@@ -10,9 +10,15 @@ interface MessageHeaderProps {
|
|
|
10
10
|
showConversationSummaryButton?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Hides the back button in the header in mobile view.
|
|
13
|
+
* @deprecated Use 'showBackButton' prop instead. This prop is deprecated and will be removed in future versions.
|
|
13
14
|
* @default false
|
|
14
15
|
*/
|
|
15
16
|
hideBackButton?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Hides the back button in the header in mobile view.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
showBackButton?: boolean;
|
|
16
22
|
/**
|
|
17
23
|
* Hides the video call button.
|
|
18
24
|
* @default false
|
|
@@ -21,6 +21,11 @@ interface MessageInformationProps {
|
|
|
21
21
|
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
22
22
|
*/
|
|
23
23
|
textFormatters?: CometChatTextFormatter[];
|
|
24
|
+
/**
|
|
25
|
+
* Controls the visibility of the scrollbar in the list.
|
|
26
|
+
* @defaultValue `false`
|
|
27
|
+
*/
|
|
28
|
+
showScrollbar?: boolean;
|
|
24
29
|
}
|
|
25
30
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
31
|
export { CometChatMessageInformation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
2
|
import { DatePatterns, MessageListAlignment } from "../../Enums/Enums";
|
|
4
3
|
import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
4
|
+
import { JSX } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* Props for the MessageList component.
|
|
7
7
|
*/
|
|
@@ -205,6 +205,11 @@ interface MessageListProps {
|
|
|
205
205
|
* A custom footer view component for the message list.
|
|
206
206
|
*/
|
|
207
207
|
footerView?: JSX.Element;
|
|
208
|
+
/**
|
|
209
|
+
* Controls the visibility of the scrollbar in the list.
|
|
210
|
+
* @defaultValue `false`
|
|
211
|
+
*/
|
|
212
|
+
showScrollbar?: boolean;
|
|
208
213
|
}
|
|
209
214
|
declare const CometChatMessageList: (props: MessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
210
215
|
export { CometChatMessageList };
|
package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
2
|
import { CometChatTextFormatter } from "../../formatters";
|
|
3
|
+
import { JSX } from "react";
|
|
4
4
|
interface ThreadedMessagePreviewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Hides the visibility of the date header.
|
|
@@ -48,6 +48,11 @@ interface ThreadedMessagePreviewProps {
|
|
|
48
48
|
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
49
49
|
*/
|
|
50
50
|
textFormatters?: CometChatTextFormatter[];
|
|
51
|
+
/**
|
|
52
|
+
* Controls the visibility of the scrollbar in the list.
|
|
53
|
+
* @defaultValue `false`
|
|
54
|
+
*/
|
|
55
|
+
showScrollbar?: boolean;
|
|
51
56
|
}
|
|
52
57
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
58
|
export { CometChatThreadedMessagePreview };
|
|
@@ -1,15 +1,63 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UserMemberListType } from '../../Enums/Enums';
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
export interface MentionsProps {
|
|
4
|
+
/**
|
|
5
|
+
* Determines the type of list to display - either users or group members.
|
|
6
|
+
* @defaultValue `UserMemberListType.users`
|
|
7
|
+
*/
|
|
4
8
|
userMemberListType?: UserMemberListType;
|
|
9
|
+
/**
|
|
10
|
+
* Callback function invoked when a user or group member item is clicked.
|
|
11
|
+
* @param user - The clicked user (CometChat.User) or group member (CometChat.GroupMember)
|
|
12
|
+
* @returns void
|
|
13
|
+
*/
|
|
5
14
|
onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
|
|
15
|
+
/**
|
|
16
|
+
* A custom view to render each user or group member item in the list.
|
|
17
|
+
*
|
|
18
|
+
* @param item - An instance of CometChat.User or CometChat.GroupMember to be rendered
|
|
19
|
+
* @returns A JSX element representing the custom item view
|
|
20
|
+
*/
|
|
6
21
|
itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* The search keyword used to filter users or group members.
|
|
24
|
+
*/
|
|
7
25
|
searchKeyword?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The group instance for which to display group members.
|
|
28
|
+
*/
|
|
8
29
|
group?: CometChat.Group;
|
|
30
|
+
/**
|
|
31
|
+
* A custom view to render the subtitle for each user or group member item.
|
|
32
|
+
* @param item - An instance of CometChat.User or CometChat.GroupMember
|
|
33
|
+
* @returns A JSX element representing the custom subtitle view
|
|
34
|
+
*/
|
|
9
35
|
subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* A request builder to fetch users with custom parameters.
|
|
38
|
+
*/
|
|
10
39
|
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Callback function invoked when the list is empty (no users or group members found).
|
|
42
|
+
*
|
|
43
|
+
* @returns void
|
|
44
|
+
*/
|
|
11
45
|
onEmpty?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* A request builder to fetch group members with custom parameters.
|
|
48
|
+
*/
|
|
12
49
|
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
50
|
+
/**
|
|
51
|
+
* Callback function invoked when an error occurs while fetching users or group members.
|
|
52
|
+
*
|
|
53
|
+
* @returns void
|
|
54
|
+
*/
|
|
13
55
|
onError?: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Controls the visibility of the scrollbar in the list.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue `false`
|
|
60
|
+
*/
|
|
61
|
+
showScrollbar?: boolean;
|
|
14
62
|
}
|
|
15
63
|
export declare function CometChatUserMemberWrapper(props: MentionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -155,6 +155,12 @@ export interface UsersProps {
|
|
|
155
155
|
* @returns A JSX element to be rendered as the trailing view.
|
|
156
156
|
*/
|
|
157
157
|
trailingView?: (user: CometChat.User) => JSX.Element;
|
|
158
|
+
/**
|
|
159
|
+
* Controls the visibility of the scrollbar in the list list.
|
|
160
|
+
*
|
|
161
|
+
* @defaultValue `false`
|
|
162
|
+
*/
|
|
163
|
+
showScrollbar?: boolean;
|
|
158
164
|
}
|
|
159
165
|
type State = {
|
|
160
166
|
searchText: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
2
|
/**
|
|
4
3
|
* Class representing a Thumbnail Generation extension decorator.
|
|
@@ -25,7 +24,7 @@ export declare class ThumbnailGenerationExtensionDecorator extends DataSourceDec
|
|
|
25
24
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
26
25
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
27
26
|
*/
|
|
28
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): JSX.Element | Element;
|
|
27
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): import("react").JSX.Element | Element;
|
|
29
28
|
/**
|
|
30
29
|
* Provides the video message bubble with support for thumbnail generation.
|
|
31
30
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -36,5 +35,5 @@ export declare class ThumbnailGenerationExtensionDecorator extends DataSourceDec
|
|
|
36
35
|
* @param {Function} [onClick] - Optional click event handler.
|
|
37
36
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
38
37
|
*/
|
|
39
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): JSX.Element | Element;
|
|
38
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): import("react").JSX.Element | Element;
|
|
40
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatActions } from "./CometChatActions";
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* CometChatActionsView is a pre-defined structure for creating actions
|
|
5
5
|
* that the user can perform on a message with a customized UI view representation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatMessageOption } from "./CometChatMessageOption";
|
|
3
2
|
import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
|
|
4
3
|
import { CometChatTextFormatter } from "../formatters";
|
|
4
|
+
import { JSX } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* CometChatMessageTemplate is a pre-defined structure for creating message views
|
|
7
7
|
* that can be used as a starting point or blueprint for creating message views,
|
|
@@ -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;
|
|
@@ -919,11 +913,7 @@ declare class CometChatLocalize {
|
|
|
919
913
|
TYPING: string;
|
|
920
914
|
IS_TYPING: string;
|
|
921
915
|
CLOSE: 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
|
-
*/
|
|
916
|
+
ENTER_GROUP_NAME: string;
|
|
927
917
|
ADD_MEMBERS: string;
|
|
928
918
|
SEND_MESSAGE: string;
|
|
929
919
|
UNBLOCK_USER: string;
|
|
@@ -1237,17 +1227,12 @@ declare class CometChatLocalize {
|
|
|
1237
1227
|
MESSAGE_RECEIPT: string;
|
|
1238
1228
|
MESSAGE: string;
|
|
1239
1229
|
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
|
-
*/
|
|
1245
1230
|
NO_RECIPIENT: string;
|
|
1246
1231
|
NO_RECIPIENTS: string;
|
|
1247
1232
|
CONVERSATIONS_WITH_MESSAGES: string;
|
|
1248
1233
|
CONVERSATIONS: string;
|
|
1249
1234
|
CONVERSATION_LIST: string;
|
|
1250
|
-
MESSAGES: string;
|
|
1235
|
+
MESSAGES: string;
|
|
1251
1236
|
WRONG_FILE_TYPE: string;
|
|
1252
1237
|
MESSAGE_HEADER: string;
|
|
1253
1238
|
MESSAGE_LIST: string;
|
|
@@ -1270,7 +1255,7 @@ declare class CometChatLocalize {
|
|
|
1270
1255
|
GROUP_PASSWORD_BLANK: string;
|
|
1271
1256
|
GROUP_NAME_BLANK: string;
|
|
1272
1257
|
GROUP_TYPE_BLANK: string;
|
|
1273
|
-
DELETE_CONVERSATION: string;
|
|
1258
|
+
DELETE_CONVERSATION: string;
|
|
1274
1259
|
ADD_TO_CHAT: string;
|
|
1275
1260
|
MORE: string;
|
|
1276
1261
|
COPY: string;
|
|
@@ -1306,10 +1291,7 @@ declare class CometChatLocalize {
|
|
|
1306
1291
|
MODERATOR: string;
|
|
1307
1292
|
PARTICIPANT: string;
|
|
1308
1293
|
PUBLIC: string;
|
|
1309
|
-
PRIVATE: string;
|
|
1310
|
-
* Set the active language
|
|
1311
|
-
* @param {String} language
|
|
1312
|
-
*/
|
|
1294
|
+
PRIVATE: string;
|
|
1313
1295
|
PASSWORD_PROTECTED: string;
|
|
1314
1296
|
PRIVACY_AND_SECURITY: string;
|
|
1315
1297
|
PREFERENCES: string;
|
|
@@ -1682,10 +1664,7 @@ declare class CometChatLocalize {
|
|
|
1682
1664
|
CUSTOM_MESSAGE: string;
|
|
1683
1665
|
SELECT_A_DATE: string;
|
|
1684
1666
|
TIME_ZONE: string;
|
|
1685
|
-
MEETING_SCHEDULED: string;
|
|
1686
|
-
* Returns the browser language
|
|
1687
|
-
* @returns {String} browser langauge i.e. en-US
|
|
1688
|
-
*/
|
|
1667
|
+
MEETING_SCHEDULED: string;
|
|
1689
1668
|
SOMETHING_WRONG: string;
|
|
1690
1669
|
MEETING_SLOT_BOOK: string;
|
|
1691
1670
|
MEETING_BOOK_NEW_SLOT: string;
|
|
@@ -2107,10 +2086,7 @@ declare class CometChatLocalize {
|
|
|
2107
2086
|
PARTICIPANT: string;
|
|
2108
2087
|
PUBLIC: string;
|
|
2109
2088
|
PRIVATE: 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
|
-
*/
|
|
2089
|
+
PASSWORD_PROTECTED: string;
|
|
2114
2090
|
PRIVACY_AND_SECURITY: string;
|
|
2115
2091
|
PREFERENCES: string;
|
|
2116
2092
|
MEMBERS: string;
|
|
@@ -2478,7 +2454,6 @@ declare class CometChatLocalize {
|
|
|
2478
2454
|
MESSAGE_IMAGE: string;
|
|
2479
2455
|
MESSAGE_FILE: string;
|
|
2480
2456
|
MESSAGE_VIDEO: string;
|
|
2481
|
-
/**Add to the original array of translations if language code is not found */
|
|
2482
2457
|
MESSAGE_AUDIO: string;
|
|
2483
2458
|
CUSTOM_MESSAGE: string;
|
|
2484
2459
|
SELECT_A_DATE: string;
|
|
@@ -2502,10 +2477,7 @@ declare class CometChatLocalize {
|
|
|
2502
2477
|
CUSTOM_MESSAGE_DOCUMENT: string;
|
|
2503
2478
|
CUSTOM_MESSAGE_WHITEBOARD: string;
|
|
2504
2479
|
ONLINE: 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
|
-
*/
|
|
2480
|
+
ADMINISTRATOR: string;
|
|
2509
2481
|
ADMIN: string;
|
|
2510
2482
|
MODERATOR: string;
|
|
2511
2483
|
PARTICIPANT: string;
|
|
@@ -2519,10 +2491,7 @@ declare class CometChatLocalize {
|
|
|
2519
2491
|
EDITED: string;
|
|
2520
2492
|
TODAY: string;
|
|
2521
2493
|
YESTERDAY: string;
|
|
2522
|
-
SUNDAY: string;
|
|
2523
|
-
* Set the active language
|
|
2524
|
-
* @param {String} language
|
|
2525
|
-
*/
|
|
2494
|
+
SUNDAY: string;
|
|
2526
2495
|
MONDAY: string;
|
|
2527
2496
|
TUESDAY: string;
|
|
2528
2497
|
WEDNESDAY: string;
|
|
@@ -2928,9 +2897,7 @@ declare class CometChatLocalize {
|
|
|
2928
2897
|
SATURDAY: string;
|
|
2929
2898
|
TYPING: string;
|
|
2930
2899
|
IS_TYPING: string;
|
|
2931
|
-
CLOSE: string;
|
|
2932
|
-
* Sets the default lannguage if no language is passed in init method
|
|
2933
|
-
*/
|
|
2900
|
+
CLOSE: string;
|
|
2934
2901
|
ENTER_GROUP_NAME: string;
|
|
2935
2902
|
ADD_MEMBERS: string;
|
|
2936
2903
|
SEND_MESSAGE: string;
|
|
@@ -3276,7 +3243,7 @@ declare class CometChatLocalize {
|
|
|
3276
3243
|
DELETE_CONVERSATION: string;
|
|
3277
3244
|
ADD_TO_CHAT: string;
|
|
3278
3245
|
MORE: string;
|
|
3279
|
-
COPY: string;
|
|
3246
|
+
COPY: string;
|
|
3280
3247
|
VOICE_RECORDING: string;
|
|
3281
3248
|
MESSAGE_IMAGE: string;
|
|
3282
3249
|
MESSAGE_FILE: string;
|
|
@@ -3680,20 +3647,10 @@ declare class CometChatLocalize {
|
|
|
3680
3647
|
SELECT_TIME: string;
|
|
3681
3648
|
NO_CALLS_SELECTED: string;
|
|
3682
3649
|
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
|
-
*/
|
|
3688
3650
|
SELECT__USER: string;
|
|
3689
3651
|
GROUP_PASSWORD_BLANK: string;
|
|
3690
3652
|
GROUP_NAME_BLANK: string;
|
|
3691
3653
|
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
|
-
*/
|
|
3697
3654
|
DELETE_CONVERSATION: string;
|
|
3698
3655
|
ADD_TO_CHAT: string;
|
|
3699
3656
|
MORE: string;
|
|
@@ -3735,10 +3692,7 @@ declare class CometChatLocalize {
|
|
|
3735
3692
|
PREFERENCES: string;
|
|
3736
3693
|
MEMBERS: string;
|
|
3737
3694
|
MEMBER: string;
|
|
3738
|
-
EDITED: string;
|
|
3739
|
-
* Returns the language code
|
|
3740
|
-
* @returns {String} language code i.e. en
|
|
3741
|
-
*/
|
|
3695
|
+
EDITED: string;
|
|
3742
3696
|
TODAY: string;
|
|
3743
3697
|
YESTERDAY: string;
|
|
3744
3698
|
SUNDAY: string;
|
|
@@ -4497,10 +4451,7 @@ declare class CometChatLocalize {
|
|
|
4497
4451
|
MEETING_NO_SLOTS_AVAILABLE: string;
|
|
4498
4452
|
MEETING_TRY_DIFFERENT_DATE: string;
|
|
4499
4453
|
NO_TIME_SLOTS_AVAILABLE: string;
|
|
4500
|
-
SCHEDULE: string;
|
|
4501
|
-
* Returns the language code
|
|
4502
|
-
* @returns {String} language code i.e. en
|
|
4503
|
-
*/
|
|
4454
|
+
SCHEDULE: string;
|
|
4504
4455
|
MORE_TIMES: string;
|
|
4505
4456
|
MISSED_VOICE_CALL: string;
|
|
4506
4457
|
MEET_WITH: string;
|
|
@@ -4925,11 +4876,7 @@ declare class CometChatLocalize {
|
|
|
4925
4876
|
YESTERDAY: string;
|
|
4926
4877
|
SUNDAY: string;
|
|
4927
4878
|
MONDAY: 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
|
-
*/
|
|
4879
|
+
TUESDAY: string;
|
|
4933
4880
|
WEDNESDAY: string;
|
|
4934
4881
|
THURSDAY: string;
|
|
4935
4882
|
FRIDAY: string;
|
|
@@ -5321,21 +5268,14 @@ declare class CometChatLocalize {
|
|
|
5321
5268
|
PREFERENCES: string;
|
|
5322
5269
|
MEMBERS: string;
|
|
5323
5270
|
MEMBER: string;
|
|
5324
|
-
EDITED: string;
|
|
5325
|
-
* Set the active language
|
|
5326
|
-
* @param {String} language
|
|
5327
|
-
*/
|
|
5271
|
+
EDITED: string;
|
|
5328
5272
|
TODAY: string;
|
|
5329
5273
|
YESTERDAY: string;
|
|
5330
5274
|
SUNDAY: string;
|
|
5331
5275
|
MONDAY: string;
|
|
5332
5276
|
TUESDAY: string;
|
|
5333
5277
|
WEDNESDAY: 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
|
-
*/
|
|
5278
|
+
THURSDAY: string;
|
|
5339
5279
|
FRIDAY: string;
|
|
5340
5280
|
SATURDAY: string;
|
|
5341
5281
|
TYPING: string;
|
|
@@ -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";
|
|
@@ -6,6 +5,7 @@ import { additionalParams } from "./ConversationUtils";
|
|
|
6
5
|
import { CometChatActionsIcon, CometChatActionsView, CometChatMessageComposerAction, CometChatMessageTemplate } from "../modals/";
|
|
7
6
|
import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
|
|
8
7
|
import { ComposerId } from "./MessagesDataSource";
|
|
8
|
+
import { JSX } from "react";
|
|
9
9
|
/**
|
|
10
10
|
* Class for providing message options and views.
|
|
11
11
|
* It is used in AI and calling module and utils related to messages.
|
|
@@ -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";
|
|
@@ -7,6 +6,7 @@ import { CometChatTextFormatter } from "../formatters/CometChatFormatters/CometC
|
|
|
7
6
|
import { additionalParams } from "./ConversationUtils";
|
|
8
7
|
import { CometChatActionsIcon, CometChatActionsView, CometChatMessageComposerAction, CometChatMessageTemplate } from "../modals";
|
|
9
8
|
import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
|
|
9
|
+
import { JSX } from "react";
|
|
10
10
|
/**
|
|
11
11
|
* This class is used in AI, calling and Extension modules.
|
|
12
12
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
1
|
import { DataSource } from "./DataSource";
|
|
2
|
+
import { JSX } from "react";
|
|
4
3
|
import { additionalParams } from "./ConversationUtils";
|
|
5
4
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
6
5
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|