@cometchat/chat-uikit-react 5.0.7 → 5.0.9

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.
Files changed (42) hide show
  1. package/dist/index.d.ts +162 -225
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatMessageComposer.css +7 -0
  5. package/dist/styles/CometChatMessageHeader.css +0 -6
  6. package/dist/styles/CometChatReactionList.css +1 -1
  7. package/dist/styles/MessageTranslationBubble.css +2 -4
  8. package/dist/styles/components/CometChatMessageComposer.css +7 -0
  9. package/dist/styles/components/CometChatMessageHeader.css +0 -6
  10. package/dist/styles/components/CometChatReactionList.css +1 -1
  11. package/dist/styles/components/MessageTranslationBubble.css +2 -4
  12. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
  13. package/dist/types/Enums/Enums.d.ts +2 -1
  14. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  15. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
  16. package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +1 -1
  17. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -1
  18. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -1
  19. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
  20. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
  21. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -1
  22. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +1 -1
  23. package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
  24. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
  25. package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +6 -0
  26. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +10 -0
  27. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -1
  28. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +11 -1
  29. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -1
  30. package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
  31. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
  32. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +2 -3
  33. package/dist/types/events/CometChatUIEvents.d.ts +1 -0
  34. package/dist/types/modals/CometChatActionsView.d.ts +1 -1
  35. package/dist/types/modals/CometChatMessageTemplate.d.ts +4 -3
  36. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +16 -76
  37. package/dist/types/utils/DataSource.d.ts +2 -2
  38. package/dist/types/utils/DataSourceDecorator.d.ts +2 -2
  39. package/dist/types/utils/MessageReceiptUtils.d.ts +3 -30
  40. package/dist/types/utils/MessageUtils.d.ts +4 -3
  41. package/dist/types/utils/MessagesDataSource.d.ts +3 -4
  42. package/package.json +2 -2
@@ -319,4 +319,11 @@ height: 58px;
319
319
  }
320
320
  .cometchat-message-composer__secondary-button-view-attachment-button-5 .cometchat-popover__content{
321
321
  height: 285px;
322
+ }
323
+ .cometchat-message-composer .cometchat-edit-preview__subtitle{
324
+ height: fit-content;
325
+ max-height: 100px;
326
+ overflow: hidden;
327
+ text-overflow: ellipsis;
328
+ white-space: nowrap;
322
329
  }
@@ -176,10 +176,4 @@ padding: 0;
176
176
  .cometchat-message-header .cometchat-list-item .cometchat-list-item__body-title {
177
177
  display: initial;
178
178
  }
179
- }
180
-
181
- @media (min-width: 769px) {
182
- .cometchat-message-header__back-button {
183
- display: none;
184
- }
185
179
  }
@@ -119,7 +119,7 @@
119
119
  .cometchat-reaction-list__shimmer {
120
120
  display: flex;
121
121
  width: 280px;
122
- max-height: 300px;
122
+ height: 200px;
123
123
  flex-direction: column;
124
124
  align-items: flex-start;
125
125
  align-self: stretch;
@@ -36,18 +36,16 @@
36
36
  text-align: left;
37
37
  white-space: pre-line;
38
38
  overflow: auto;
39
+ width: 100%;
40
+ display: block;
39
41
  }
40
42
 
41
43
  .cometchat-tanslation-bubble-incoming .cometchat-tanslation-bubble__translated-text {
42
- width: 100%;
43
- display: flex;
44
44
  color: var(--cometchat-neutral-color-900, #141414);
45
45
  }
46
46
 
47
47
 
48
48
  .cometchat-tanslation-bubble-outgoing .cometchat-tanslation-bubble__translated-text {
49
- width: 100%;
50
- display: flex;
51
49
  color: var(--cometchat-static-white, #FFF);
52
50
  }
53
51
 
@@ -319,4 +319,11 @@ height: 58px;
319
319
  }
320
320
  .cometchat-message-composer__secondary-button-view-attachment-button-5 .cometchat-popover__content{
321
321
  height: 285px;
322
+ }
323
+ .cometchat-message-composer .cometchat-edit-preview__subtitle{
324
+ height: fit-content;
325
+ max-height: 100px;
326
+ overflow: hidden;
327
+ text-overflow: ellipsis;
328
+ white-space: nowrap;
322
329
  }
@@ -176,10 +176,4 @@ padding: 0;
176
176
  .cometchat-message-header .cometchat-list-item .cometchat-list-item__body-title {
177
177
  display: initial;
178
178
  }
179
- }
180
-
181
- @media (min-width: 769px) {
182
- .cometchat-message-header__back-button {
183
- display: none;
184
- }
185
179
  }
@@ -119,7 +119,7 @@
119
119
  .cometchat-reaction-list__shimmer {
120
120
  display: flex;
121
121
  width: 280px;
122
- max-height: 300px;
122
+ height: 200px;
123
123
  flex-direction: column;
124
124
  align-items: flex-start;
125
125
  align-self: stretch;
@@ -36,18 +36,16 @@
36
36
  text-align: left;
37
37
  white-space: pre-line;
38
38
  overflow: auto;
39
+ width: 100%;
40
+ display: block;
39
41
  }
40
42
 
41
43
  .cometchat-tanslation-bubble-incoming .cometchat-tanslation-bubble__translated-text {
42
- width: 100%;
43
- display: flex;
44
44
  color: var(--cometchat-neutral-color-900, #141414);
45
45
  }
46
46
 
47
47
 
48
48
  .cometchat-tanslation-bubble-outgoing .cometchat-tanslation-bubble__translated-text {
49
- width: 100%;
50
- display: flex;
51
49
  color: var(--cometchat-static-white, #FFF);
52
50
  }
53
51
 
@@ -1,4 +1,3 @@
1
- import { BaseMessage, CometChat } from "@cometchat/chat-sdk-javascript";
2
1
  interface MessageExtensionType {
3
2
  hasXSS?: string;
4
3
  sanitized_text?: string;
@@ -77,7 +77,8 @@ export declare enum TabAlignment {
77
77
  export declare enum MessageStatus {
78
78
  inprogress = 0,
79
79
  success = 1,
80
- error = 2
80
+ error = 2,
81
+ cancelled = 3
81
82
  }
82
83
  /**
83
84
  * This is used to specify the types of the read receipts for the message.
@@ -31,8 +31,8 @@ declare class WebAudioPlayer extends EventEmitter<WebAudioPlayerEvents> {
31
31
  constructor(audioContext?: AudioContext);
32
32
  /** Subscribe to an event. Returns an unsubscribe function. */
33
33
  addEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void, options?: {
34
- once?: boolean | undefined;
35
- } | undefined) => () => void;
34
+ once?: boolean;
35
+ }) => () => void;
36
36
  /** Unsubscribe from an event */
37
37
  removeEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void) => void;
38
38
  load(): Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatEmoji, CometChatEmojiCategory } from "./CometChatEmoji";
3
2
  export declare const useCometChatEmojiKeyboard: ({ emojiData, }: {
4
3
  emojiData: CometChatEmojiCategory[];
@@ -4,7 +4,7 @@ interface ICometChatListItem {
4
4
  onListItemClicked?: (input: {
5
5
  id: string;
6
6
  }) => void;
7
- menuRef: React.RefObject<HTMLDivElement>;
7
+ menuRef: React.RefObject<HTMLDivElement | null>;
8
8
  }
9
9
  export declare const useCometChatListItem: ({ id, onListItemClicked, menuRef, }: ICometChatListItem) => {
10
10
  listItemClick: (event: MouseEvent<HTMLDivElement>) => void;
@@ -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.
@@ -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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { JSX } from "react";
2
2
  /**
3
3
  * Props interface for the outgoing call component
4
4
  */
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { JSX } from "react";
2
2
  export declare class OutgoingCallConfiguration {
3
3
  disableSoundForCalls?: boolean;
4
4
  customSoundForCalls?: string;
@@ -4,7 +4,7 @@ import { DatePatterns, SelectionMode, States } from "../../Enums/Enums";
4
4
  import { CometChatOption } from "../../modals";
5
5
  interface ConversationsProps {
6
6
  /**
7
- * Disables the display of message read receipts.
7
+ * Disables the display of message read Receipts.
8
8
  *
9
9
  * @remarks If set to `true`, the receipt status of the sent message won't be displayed.
10
10
  * @defaultValue `false`
@@ -1,4 +1,3 @@
1
- import { CometChat } from '@cometchat/chat-sdk-javascript';
2
1
  type Args = {
3
2
  conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
4
3
  errorHandler: (error: unknown, source?: string) => void;
@@ -37,6 +37,7 @@ type Args = {
37
37
  text: string;
38
38
  getCurrentInput: Function;
39
39
  isPartOfCurrentChatForUIEvent: (message: CometChat.BaseMessage) => boolean | undefined;
40
+ textMessageToEdit: CometChat.TextMessage | null;
40
41
  };
41
42
  export declare function useCometChatMessageComposer(args: Args): void;
42
43
  export {};
@@ -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
@@ -1,4 +1,5 @@
1
1
  import { CometChatMessageTemplate } from "../../modals";
2
+ import { CometChatTextFormatter } from "../../formatters";
2
3
  interface MessageInformationProps {
3
4
  message: CometChat.BaseMessage;
4
5
  onClose?: () => void;
@@ -11,6 +12,15 @@ interface MessageInformationProps {
11
12
  * Template for customizing the appearance of the message.
12
13
  */
13
14
  template?: CometChatMessageTemplate;
15
+ /**
16
+ * Hides the visibility of receipt in the Message Information.
17
+ * @default false
18
+ */
19
+ hideReceipts?: boolean;
20
+ /**
21
+ * Array of text formatters for custom styling or formatting of message text bubbles.
22
+ */
23
+ textFormatters?: CometChatTextFormatter[];
14
24
  }
15
25
  declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
16
26
  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
  */
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { CometChatMessageTemplate } from "../../modals";
2
+ import { CometChatTextFormatter } from "../../formatters";
3
+ import { JSX } from "react";
3
4
  interface ThreadedMessagePreviewProps {
4
5
  /**
5
6
  * Hides the visibility of the date header.
@@ -38,6 +39,15 @@ interface ThreadedMessagePreviewProps {
38
39
  * @returns void
39
40
  */
40
41
  onError?: ((error: CometChat.CometChatException) => void) | null;
42
+ /**
43
+ * Hides the visibility of receipt in the Thread Header.
44
+ * @default false
45
+ */
46
+ hideReceipts?: boolean;
47
+ /**
48
+ * Array of text formatters for custom styling or formatting of message text bubbles.
49
+ */
50
+ textFormatters?: CometChatTextFormatter[];
41
51
  }
42
52
  declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
43
53
  export { CometChatThreadedMessagePreview };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { UserMemberListType } from '../../Enums/Enums';
2
+ import { JSX } from "react";
3
3
  export interface MentionsProps {
4
4
  userMemberListType?: UserMemberListType;
5
5
  onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Args = {
3
2
  searchText: string;
4
3
  usersRequestBuilder: CometChat.UsersRequestBuilder | null;
@@ -1,4 +1,3 @@
1
- import { CometChat } from "@cometchat/chat-sdk-javascript";
2
1
  import { DataSource } from "../../../utils/DataSource";
3
2
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
4
3
  import { ComposerId } from "../../../utils/MessagesDataSource";
@@ -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
  }
@@ -29,6 +29,7 @@ export interface IOpenChat {
29
29
  }
30
30
  export interface IShowOngoingCall {
31
31
  child: any;
32
+ message?: CometChat.CustomMessage;
32
33
  }
33
34
  export interface IPanel {
34
35
  child?: any;
@@ -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,6 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { CometChatMessageOption } from "./CometChatMessageOption";
3
2
  import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
3
+ import { CometChatTextFormatter } from "../formatters";
4
+ import { JSX } from "react";
4
5
  /**
5
6
  * CometChatMessageTemplate is a pre-defined structure for creating message views
6
7
  * that can be used as a starting point or blueprint for creating message views,
@@ -19,7 +20,7 @@ declare class CometChatMessageTemplate {
19
20
  * and Video bubble based on the type of the message.
20
21
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
21
22
  */
22
- contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
23
+ contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
23
24
  /**
24
25
  * Custom component to customize the complete message bubble.
25
26
  * By default, headerView, contentView and footerView collectively form a message bubble.
@@ -48,7 +49,7 @@ declare class CometChatMessageTemplate {
48
49
  * By default, it displays the receipt and the timestamp.
49
50
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
50
51
  */
51
- statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => Element | JSX.Element | null) | null;
52
+ statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => Element | JSX.Element | null) | null;
52
53
  /**
53
54
  * List of available actions that any user can perform on a message, like reacting,
54
55
  * editing or deleting a message.
@@ -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; /**Override resources */
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; /**Properties and constants */
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; /**Add to the original array of translations if language code is not found */
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; /**Override resources */
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.
@@ -17,7 +17,7 @@ export declare abstract class DataSource {
17
17
  abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
18
18
  abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
19
19
  abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
20
- abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
20
+ abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
21
21
  abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
22
22
  abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
23
23
  abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;