@cometchat/chat-uikit-react 6.0.2 → 6.0.4

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 (69) hide show
  1. package/dist/index.d.ts +71 -57
  2. package/dist/index.js +1 -10
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatAudioBubble.css +4 -4
  5. package/dist/styles/CometChatConversationStarter.css +2 -1
  6. package/dist/styles/CometChatConversationSummary.css +2 -2
  7. package/dist/styles/CometChatEditPreview.css +3 -0
  8. package/dist/styles/CometChatFileBubble.css +4 -4
  9. package/dist/styles/CometChatFullScreenViewer.css +2 -2
  10. package/dist/styles/CometChatMediaRecorder.css +76 -4
  11. package/dist/styles/CometChatMessageBubble.css +4 -1
  12. package/dist/styles/CometChatMessageComposer.css +20 -3
  13. package/dist/styles/CometChatMessageInformation.css +6 -2
  14. package/dist/styles/CometChatMessageList.css +41 -24
  15. package/dist/styles/CometChatOngoingCall.css +2 -2
  16. package/dist/styles/CometChatPopover.css +19 -0
  17. package/dist/styles/CometChatReactionInfo.css +0 -15
  18. package/dist/styles/CometChatReactionList.css +3 -4
  19. package/dist/styles/CometChatSmartReplies.css +2 -2
  20. package/dist/styles/CometChatThreadHeader.css +1 -1
  21. package/dist/styles/CreatePolls.css +8 -1
  22. package/dist/styles/StickersKeyboard.css +2 -2
  23. package/dist/styles/components/CometChatAudioBubble.css +4 -4
  24. package/dist/styles/components/CometChatConversationStarter.css +2 -1
  25. package/dist/styles/components/CometChatConversationSummary.css +2 -2
  26. package/dist/styles/components/CometChatEditPreview.css +3 -0
  27. package/dist/styles/components/CometChatFileBubble.css +4 -4
  28. package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
  29. package/dist/styles/components/CometChatMediaRecorder.css +76 -4
  30. package/dist/styles/components/CometChatMessageBubble.css +4 -1
  31. package/dist/styles/components/CometChatMessageComposer.css +20 -3
  32. package/dist/styles/components/CometChatMessageInformation.css +6 -2
  33. package/dist/styles/components/CometChatMessageList.css +41 -24
  34. package/dist/styles/components/CometChatOngoingCall.css +2 -2
  35. package/dist/styles/components/CometChatPopover.css +19 -0
  36. package/dist/styles/components/CometChatReactionInfo.css +0 -15
  37. package/dist/styles/components/CometChatReactionList.css +3 -4
  38. package/dist/styles/components/CometChatSmartReplies.css +2 -2
  39. package/dist/styles/components/CometChatThreadHeader.css +1 -1
  40. package/dist/styles/components/CreatePolls.css +8 -1
  41. package/dist/styles/components/StickersKeyboard.css +2 -2
  42. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
  43. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  44. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
  45. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
  46. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  47. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
  48. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
  49. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
  50. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
  51. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
  52. package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
  53. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  54. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
  55. package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
  56. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
  57. package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
  58. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
  59. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
  60. package/dist/types/events/CometChatUIEvents.d.ts +1 -0
  61. package/dist/types/modals/CometChatActionsView.d.ts +1 -0
  62. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
  63. package/dist/types/utils/DataSource.d.ts +1 -0
  64. package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
  65. package/dist/types/utils/MessagesDataSource.d.ts +8 -6
  66. package/dist/types/utils/Storage.d.ts +3 -0
  67. package/dist/types/utils/util.d.ts +1 -0
  68. package/package.json +6 -2
  69. package/rollup.config.js +1 -1
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
5
+ import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
5
6
  import { Subject } from 'rxjs';
6
7
 
7
8
  /**
@@ -1284,20 +1285,20 @@ declare class MessagesDataSource implements DataSource {
1284
1285
  getSendMessagePrivatelyOption(): CometChatActionsIcon;
1285
1286
  getCopyOption(): CometChatActionsIcon;
1286
1287
  getMessageInfoOption(): CometChatActionsIcon;
1287
- isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
1288
- getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1289
- getIsSentByMe(message: CometChat.BaseMessage): boolean;
1290
- getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1291
- getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1292
- getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1293
- getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1294
- getReceiptClass(status?: number): "error" | "wait" | "read" | "delivered" | "sent" | undefined;
1288
+ isSentByMe(loggedInUser: CometChat$1.User, message: CometChat$1.BaseMessage): boolean;
1289
+ getTextMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1290
+ getIsSentByMe(message: CometChat$1.BaseMessage): boolean;
1291
+ getImageMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1292
+ getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1293
+ getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1294
+ getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1295
+ getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
1295
1296
  /**
1296
1297
  * Function to get receipt for message bubble
1297
1298
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
1298
1299
  * @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
1299
1300
  */
1300
- getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
1301
+ getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
1301
1302
  /**
1302
1303
  * Function for displaying the timestamp next to messages.
1303
1304
  * @returns CalendarObject
@@ -1305,23 +1306,23 @@ declare class MessagesDataSource implements DataSource {
1305
1306
  getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
1306
1307
  today: string;
1307
1308
  yesterday: string;
1308
- lastWeek?: string;
1309
+ lastWeek?: string | undefined;
1309
1310
  otherDays: string;
1310
1311
  relativeTime?: {
1311
- minute?: string;
1312
- minutes?: string;
1313
- hour?: string;
1314
- hours?: string;
1315
- };
1312
+ minute?: string | undefined;
1313
+ minutes?: string | undefined;
1314
+ hour?: string | undefined;
1315
+ hours?: string | undefined;
1316
+ } | undefined;
1316
1317
  };
1317
1318
  /**
1318
1319
  * Function to get status and date for message bubble
1319
1320
  * @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
1320
1321
  * @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
1321
1322
  */
1322
- getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
1323
- getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
1324
- getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
1323
+ getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
1324
+ getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
1325
+ getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
1325
1326
  getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
1326
1327
  getAudioMessageTemplate(): CometChatMessageTemplate;
1327
1328
  getVideoMessageTemplate(): CometChatMessageTemplate;
@@ -1332,25 +1333,25 @@ declare class MessagesDataSource implements DataSource {
1332
1333
  getFileMessageTemplate(): CometChatMessageTemplate;
1333
1334
  getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
1334
1335
  getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
1335
- getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1336
- getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1336
+ getMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1337
+ getCommonOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1337
1338
  getAllMessageTypes(): Array<string>;
1338
1339
  addList(): string;
1339
1340
  getAllMessageCategories(additionalConfigurations?: {
1340
1341
  hideGroupActionMessages?: boolean;
1341
1342
  }): Array<string>;
1342
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
1343
+ getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
1343
1344
  getId(): string;
1344
- getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
1345
- getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1346
- getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1347
- getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1348
- getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1345
+ getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
1346
+ getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1347
+ getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1348
+ getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1349
+ getVideoMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1349
1350
  getActionMessage(message: any): string;
1350
- getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
1351
- getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
1352
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1353
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1351
+ getDeleteMessageBubble(message: CometChat$1.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
1352
+ getGroupActionBubble(message: CometChat$1.BaseMessage): react_jsx_runtime.JSX.Element;
1353
+ getTextMessageBubble(messageText: string, message: CometChat$1.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1354
+ getAudioMessageBubble(audioUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1354
1355
  /**
1355
1356
  * Function to check mimeType and return the iconUrl of that type
1356
1357
  * @param mimeType
@@ -1363,16 +1364,16 @@ declare class MessagesDataSource implements DataSource {
1363
1364
  * @returns
1364
1365
  */
1365
1366
  getFileSize: (sizeInBytes: number) => string;
1366
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1367
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
1368
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
1367
+ getFileMessageBubble(fileUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1368
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat$1.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
1369
+ getVideoMessageBubble(videoUrl: string, message: CometChat$1.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
1369
1370
  imageAttachmentOption(): CometChatMessageComposerAction;
1370
1371
  videoAttachmentOption(): CometChatMessageComposerAction;
1371
1372
  audioAttachmentOption(): CometChatMessageComposerAction;
1372
1373
  fileAttachmentOption(): CometChatMessageComposerAction;
1373
1374
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
1374
- getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
1375
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
1375
+ getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations: additionalParams): string;
1376
+ getAuxiliaryHeaderMenu(user?: CometChat$1.User, group?: CometChat$1.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
1376
1377
  /**
1377
1378
  * Adds styled @ for every mention in the text by matching uid
1378
1379
  *
@@ -1380,21 +1381,21 @@ declare class MessagesDataSource implements DataSource {
1380
1381
  * @param {string} subtitle
1381
1382
  * @returns {void}
1382
1383
  */
1383
- getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
1384
+ getMentionsFormattedText(message: CometChat$1.TextMessage, subtitle: string, mentionsFormatterParams: {
1384
1385
  mentionsTargetElement: MentionsTargetElement;
1385
1386
  }): string;
1386
1387
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
1387
1388
  getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
1388
1389
  getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
1389
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1390
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1391
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1390
+ getFormMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1391
+ getSchedulerMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1392
+ getCardMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1392
1393
  getFormMessageTemplate(): CometChatMessageTemplate;
1393
1394
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
1394
1395
  getCardMessageTemplate(): CometChatMessageTemplate;
1395
- getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1396
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1397
- getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1396
+ getFormMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1397
+ getSchedulerMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1398
+ getCardMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1398
1399
  }
1399
1400
 
1400
1401
  /**
@@ -2653,7 +2654,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
2653
2654
  * @param {any} [additionalConfigurations] - Additional configurations for formatting.
2654
2655
  * @returns {JSX.Element} The JSX element representing the message content view.
2655
2656
  */
2656
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2657
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
2657
2658
  /**
2658
2659
  * Retrieves the style for the link preview wrapper.
2659
2660
  * @returns {object} The style object for the link preview wrapper.
@@ -2747,7 +2748,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
2747
2748
  * @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
2748
2749
  * @returns {JSX.Element} The content view for the text message.
2749
2750
  */
2750
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2751
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
2751
2752
  /**
2752
2753
  * Checks if an option with the specified ID already exists in the options list.
2753
2754
  *
@@ -2954,9 +2955,6 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
2954
2955
  * @default false
2955
2956
  */
2956
2957
  showStickerKeyboard: boolean;
2957
- private id;
2958
- private user?;
2959
- private group?;
2960
2958
  /**
2961
2959
  * Constructs a new instance of StickersExtensionDecorator.
2962
2960
  * @param dataSource - The data source to be decorated.
@@ -2982,7 +2980,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
2982
2980
  * @param group - Optional group object.
2983
2981
  * @returns An array of auxiliary options.
2984
2982
  */
2985
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
2983
+ getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): react_jsx_runtime.JSX.Element;
2986
2984
  /**
2987
2985
  * Creates the sticker auxiliary button component.
2988
2986
  * @param id - A map containing relevant IDs.
@@ -2991,24 +2989,24 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
2991
2989
  * @param group - Optional group object.
2992
2990
  * @returns The JSX element for the sticker auxiliary button.
2993
2991
  */
2994
- getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
2992
+ getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group) => react_jsx_runtime.JSX.Element;
2995
2993
  /**
2996
2994
  * Sends a sticker message.
2997
2995
  * @param event - The event object containing sticker details.
2998
2996
  */
2999
- sendSticker(event: any, closeSticker: Function): void;
2997
+ sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
3000
2998
  /**
3001
2999
  * Sends a sticker message.
3002
3000
  * @param event - The event object containing sticker details.
3003
3001
  */
3004
- getSticker(message: CometChat.CustomMessage): any;
3002
+ getSticker(message: CometChat$1.CustomMessage): any;
3005
3003
  /**
3006
3004
  * Creates a JSX element for displaying the sticker message content.
3007
3005
  * @param stickerMessage - The custom message containing sticker data.
3008
3006
  * @param _theme - The theme object for styling.
3009
3007
  * @returns The JSX element for the sticker message content.
3010
3008
  */
3011
- getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
3009
+ getStickerMessageContentView(stickerMessage: CometChat$1.CustomMessage): react_jsx_runtime.JSX.Element;
3012
3010
  /**
3013
3011
  * Creates a sticker message template.
3014
3012
  * @param _theme - The theme object for styling.
@@ -3044,7 +3042,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
3044
3042
  * @param additionalConfigurations - Additional configurations, if any.
3045
3043
  * @returns A string representing the last message.
3046
3044
  */
3047
- getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
3045
+ getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations?: any): string;
3048
3046
  }
3049
3047
 
3050
3048
  /**
@@ -4451,6 +4449,10 @@ interface MessageInformationProps {
4451
4449
  * Format for the timestamp displayed next to messages.
4452
4450
  */
4453
4451
  messageSentAtDateTimeFormat?: CalendarObject;
4452
+ /**
4453
+ * Template for customizing the appearance of the message.
4454
+ */
4455
+ template?: CometChatMessageTemplate;
4454
4456
  }
4455
4457
  declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
4456
4458
 
@@ -4649,6 +4651,7 @@ interface IPanel {
4649
4651
  configuration?: any;
4650
4652
  message?: CometChat.BaseMessage;
4651
4653
  position?: PanelAlignment;
4654
+ composerId?: ComposerId;
4652
4655
  }
4653
4656
  interface IModal {
4654
4657
  child?: any;
@@ -5052,6 +5055,8 @@ interface PopoverProps {
5052
5055
  onOutsideClick?: () => void;
5053
5056
  disableBackgroundInteraction?: boolean;
5054
5057
  useParentContainer?: boolean;
5058
+ useParentHeight?: boolean;
5059
+ showTooltip?: boolean;
5055
5060
  }
5056
5061
  declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
5057
5062
  openPopover: () => void;
@@ -5078,6 +5083,7 @@ interface ListItemProps {
5078
5083
  trailingView?: ReactNode;
5079
5084
  titleView?: ReactNode;
5080
5085
  leadingView?: ReactNode;
5086
+ stopEventPropagation?: boolean;
5081
5087
  }
5082
5088
  declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
5083
5089
 
@@ -5484,7 +5490,10 @@ declare function createElement(tagName: string, content?: TreeNode, container?:
5484
5490
 
5485
5491
  declare const dom_createElement: typeof createElement;
5486
5492
  declare namespace dom {
5487
- export { dom_createElement as createElement, createElement as default };
5493
+ export {
5494
+ dom_createElement as createElement,
5495
+ createElement as default,
5496
+ };
5488
5497
  }
5489
5498
 
5490
5499
  type PlayerOptions = {
@@ -5807,12 +5816,16 @@ declare function sanitizeCalendarObject(calendarObject?: CalendarObject): {
5807
5816
  [k: string]: any;
5808
5817
  };
5809
5818
  declare function fireClickEvent(): void;
5819
+ declare const decodeHTML: (input: string) => string;
5810
5820
 
5811
5821
  /**
5812
5822
  * Utility class for managing local storage with change detection capabilities.
5813
5823
  * It is used in CometChatIncomingCall component.
5814
5824
  */
5815
5825
  declare class StorageUtils {
5826
+ private static isWindowListenerAttached;
5827
+ private static storageKeyToRemove;
5828
+ private static handleBeforeUnload;
5816
5829
  /**
5817
5830
  * Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
5818
5831
  * @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
@@ -5977,7 +5990,7 @@ declare class CometChatUIKitUtility {
5977
5990
  * @param messageObject - The message object containing extensions.
5978
5991
  * @returns The sanitized message text if available, otherwise the original text.
5979
5992
  */
5980
- static getExtensionData(messageObject: CometChat.BaseMessage): string;
5993
+ static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
5981
5994
  /**
5982
5995
  * Checks for extension data in a message.
5983
5996
  *
@@ -5985,7 +5998,7 @@ declare class CometChatUIKitUtility {
5985
5998
  * @param extensionKey - The extension key to look for.
5986
5999
  * @returns The extension data if found.
5987
6000
  */
5988
- static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
6001
+ static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
5989
6002
  /**
5990
6003
  * Sanitizes an HTML string by escaping tags not matching the whitelist.
5991
6004
  *
@@ -6031,4 +6044,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
6031
6044
  declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
6032
6045
  declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
6033
6046
 
6034
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, type LocalizationSettings, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getLocalizedString, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
6047
+ export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getLocalizedString, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
6048
+ export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };