@cometchat/chat-uikit-react 5.0.6 → 5.0.7

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 (35) hide show
  1. package/dist/index.d.ts +13 -3
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatAudioBubble.css +4 -4
  5. package/dist/styles/CometChatConversationSummary.css +2 -2
  6. package/dist/styles/CometChatEditPreview.css +3 -0
  7. package/dist/styles/CometChatFileBubble.css +4 -4
  8. package/dist/styles/CometChatFullScreenViewer.css +2 -2
  9. package/dist/styles/CometChatMessageComposer.css +1 -1
  10. package/dist/styles/CometChatMessageInformation.css +2 -2
  11. package/dist/styles/CometChatMessageList.css +25 -18
  12. package/dist/styles/CometChatPopover.css +19 -0
  13. package/dist/styles/CometChatReactionInfo.css +0 -16
  14. package/dist/styles/CometChatSmartReplies.css +2 -2
  15. package/dist/styles/CreatePolls.css +8 -1
  16. package/dist/styles/StickersKeyboard.css +2 -2
  17. package/dist/styles/components/CometChatAudioBubble.css +4 -4
  18. package/dist/styles/components/CometChatConversationSummary.css +2 -2
  19. package/dist/styles/components/CometChatEditPreview.css +3 -0
  20. package/dist/styles/components/CometChatFileBubble.css +4 -4
  21. package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
  22. package/dist/styles/components/CometChatMessageComposer.css +1 -1
  23. package/dist/styles/components/CometChatMessageInformation.css +2 -2
  24. package/dist/styles/components/CometChatMessageList.css +25 -18
  25. package/dist/styles/components/CometChatPopover.css +19 -0
  26. package/dist/styles/components/CometChatReactionInfo.css +0 -16
  27. package/dist/styles/components/CometChatSmartReplies.css +2 -2
  28. package/dist/styles/components/CreatePolls.css +8 -1
  29. package/dist/styles/components/StickersKeyboard.css +2 -2
  30. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
  31. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  32. package/dist/types/events/CometChatUIEvents.d.ts +1 -0
  33. package/dist/types/utils/Storage.d.ts +3 -0
  34. package/dist/types/utils/util.d.ts +1 -0
  35. package/package.json +6 -2
package/dist/index.d.ts CHANGED
@@ -8207,7 +8207,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
8207
8207
  * @param {any} [additionalConfigurations] - Additional configurations for formatting.
8208
8208
  * @returns {JSX.Element} The JSX element representing the message content view.
8209
8209
  */
8210
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
8210
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
8211
8211
  /**
8212
8212
  * Retrieves the style for the link preview wrapper.
8213
8213
  * @returns {object} The style object for the link preview wrapper.
@@ -8301,7 +8301,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
8301
8301
  * @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
8302
8302
  * @returns {JSX.Element} The content view for the text message.
8303
8303
  */
8304
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
8304
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
8305
8305
  /**
8306
8306
  * Checks if an option with the specified ID already exists in the options list.
8307
8307
  *
@@ -9977,6 +9977,10 @@ interface MessageInformationProps {
9977
9977
  * @param error - CometChatException object representing the error.
9978
9978
  */
9979
9979
  onError?: ((error: CometChat.CometChatException) => void) | null;
9980
+ /**
9981
+ * Template for customizing the appearance of the message.
9982
+ */
9983
+ template?: CometChatMessageTemplate;
9980
9984
  }
9981
9985
  declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
9982
9986
 
@@ -10175,6 +10179,7 @@ interface IPanel {
10175
10179
  configuration?: any;
10176
10180
  message?: CometChat.BaseMessage;
10177
10181
  position?: PanelAlignment;
10182
+ composerId?: ComposerId;
10178
10183
  }
10179
10184
  interface IModal {
10180
10185
  child?: any;
@@ -10582,6 +10587,7 @@ interface PopoverProps {
10582
10587
  disableBackgroundInteraction?: boolean;
10583
10588
  useParentContainer?: boolean;
10584
10589
  useParentHeight?: boolean;
10590
+ showTooltip?: boolean;
10585
10591
  }
10586
10592
  declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
10587
10593
  openPopover: () => void;
@@ -11340,12 +11346,16 @@ declare function processFileForAudio(file: File): Promise<File>;
11340
11346
  declare function formatDateFromTimestamp(timestamp: number): string;
11341
11347
  declare function isMobileDevice(): boolean;
11342
11348
  declare function fireClickEvent(): void;
11349
+ declare const decodeHTML: (input: string) => string;
11343
11350
 
11344
11351
  /**
11345
11352
  * Utility class for managing local storage with change detection capabilities.
11346
11353
  * It is used in CometChatIncomingCall component.
11347
11354
  */
11348
11355
  declare class StorageUtils {
11356
+ private static isWindowListenerAttached;
11357
+ private static storageKeyToRemove;
11358
+ private static handleBeforeUnload;
11349
11359
  /**
11350
11360
  * Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
11351
11361
  * @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
@@ -11556,5 +11566,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
11556
11566
  declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
11557
11567
  declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
11558
11568
 
11559
- export { AuxiliaryButtonAlignment, ButtonAction, 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, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, 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, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
11569
+ export { AuxiliaryButtonAlignment, ButtonAction, 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, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, 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, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
11560
11570
  export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, PollOptions };