@cometchat/chat-uikit-react 5.0.16 → 5.0.18
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 +36 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +4 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +21 -0
- package/dist/types/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +1 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -0
- package/dist/types/utils/util.d.ts +5 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6129,6 +6129,11 @@ declare class UIKitSettings {
|
|
|
6129
6129
|
* @type {ExtensionsDataSource}
|
|
6130
6130
|
*/
|
|
6131
6131
|
readonly callingExtension?: CallingExtension;
|
|
6132
|
+
/**
|
|
6133
|
+
* Storage mode for persisting data.
|
|
6134
|
+
* @type {CometChat.StorageMode}
|
|
6135
|
+
*/
|
|
6136
|
+
readonly storageMode: CometChat.StorageMode;
|
|
6132
6137
|
/**
|
|
6133
6138
|
* Private constructor to initialize the settings using the provided builder.
|
|
6134
6139
|
* @param {UIKitSettingsBuilder} builder - The builder instance containing the settings configuration.
|
|
@@ -6190,6 +6195,11 @@ declare class UIKitSettings {
|
|
|
6190
6195
|
* @returns {ExtensionsDataSource[]}
|
|
6191
6196
|
*/
|
|
6192
6197
|
getCallsExtension(): ExtensionsDataSource;
|
|
6198
|
+
/**
|
|
6199
|
+
* Retrieves the storage mode.
|
|
6200
|
+
* @returns {CometChat.StorageMode} The storage mode.
|
|
6201
|
+
*/
|
|
6202
|
+
getStorageMode(): CometChat.StorageMode;
|
|
6193
6203
|
}
|
|
6194
6204
|
declare class UIKitSettingsBuilder {
|
|
6195
6205
|
/**
|
|
@@ -6258,6 +6268,11 @@ declare class UIKitSettingsBuilder {
|
|
|
6258
6268
|
* @type {string}
|
|
6259
6269
|
*/
|
|
6260
6270
|
clientHost?: string;
|
|
6271
|
+
/**
|
|
6272
|
+
* Storage mode for persisting data.
|
|
6273
|
+
* @type {CometChat.StorageMode}
|
|
6274
|
+
*/
|
|
6275
|
+
storageMode?: CometChat.StorageMode;
|
|
6261
6276
|
/**
|
|
6262
6277
|
* Builds and returns an instance of UIKitSettings.
|
|
6263
6278
|
* @returns {UIKitSettings} A new instance of UIKitSettings with the specified configuration.
|
|
@@ -6334,6 +6349,12 @@ declare class UIKitSettingsBuilder {
|
|
|
6334
6349
|
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
6335
6350
|
*/
|
|
6336
6351
|
setCallsExtension(callingExtension: CallingExtension): UIKitSettingsBuilder;
|
|
6352
|
+
/**
|
|
6353
|
+
* Sets the storage mode.
|
|
6354
|
+
* @param {CometChat.StorageMode} storageMode - The storage mode.
|
|
6355
|
+
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
6356
|
+
*/
|
|
6357
|
+
setStorageMode(storageMode: CometChat.StorageMode): UIKitSettingsBuilder;
|
|
6337
6358
|
}
|
|
6338
6359
|
|
|
6339
6360
|
/**
|
|
@@ -10041,6 +10062,11 @@ declare class CometChatUIKitConstants {
|
|
|
10041
10062
|
call: string;
|
|
10042
10063
|
interactive: string;
|
|
10043
10064
|
}>;
|
|
10065
|
+
static mimeTypes: Readonly<{
|
|
10066
|
+
audio: "audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg";
|
|
10067
|
+
video: "video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt";
|
|
10068
|
+
image: "image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr";
|
|
10069
|
+
}>;
|
|
10044
10070
|
static MessageTypes: Readonly<{
|
|
10045
10071
|
text: string;
|
|
10046
10072
|
file: string;
|
|
@@ -11336,7 +11362,6 @@ declare const currentAudioPlayer: {
|
|
|
11336
11362
|
* Function to stop current media playback.
|
|
11337
11363
|
*/
|
|
11338
11364
|
declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
|
|
11339
|
-
declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
|
|
11340
11365
|
declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
|
|
11341
11366
|
/**
|
|
11342
11367
|
* Function to check if the current browser is safari.
|
|
@@ -11371,10 +11396,11 @@ declare function fireClickEvent(): void;
|
|
|
11371
11396
|
declare const decodeHTML: (input: string) => string;
|
|
11372
11397
|
declare const sanitizeHtmlStringToFragment: (html: string, textFormatterArray?: CometChatTextFormatter[]) => DocumentFragment;
|
|
11373
11398
|
/**
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11399
|
+
* @function shouldShowCustomMimeTypes
|
|
11400
|
+
* @description Returns true if the device is running either iOS (iPhone, iPad, iPod) or macOS.
|
|
11401
|
+
* @returns {boolean} True if the device is an Apple device (iOS or macOS), false otherwise.
|
|
11402
|
+
*/
|
|
11403
|
+
declare const shouldShowCustomMimeTypes: () => boolean;
|
|
11378
11404
|
|
|
11379
11405
|
/**
|
|
11380
11406
|
* Utility class for managing local storage with change detection capabilities.
|
|
@@ -11564,13 +11590,11 @@ declare class CometChatUIKitUtility {
|
|
|
11564
11590
|
*/
|
|
11565
11591
|
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
11566
11592
|
/**
|
|
11567
|
-
*
|
|
11568
|
-
*
|
|
11569
|
-
* @
|
|
11570
|
-
* @param whitelistRegExes - A list of regular expressions to match allowed tags.
|
|
11571
|
-
* @returns The sanitized HTML string.
|
|
11593
|
+
* Process and sanitize text to escape dangerous HTML while preserving mention formatting
|
|
11594
|
+
* @param text The text string that may contain HTML and mentions
|
|
11595
|
+
* @returns Sanitized string with dangerous HTML escaped but mentions preserved
|
|
11572
11596
|
*/
|
|
11573
|
-
static
|
|
11597
|
+
static sanitizeText(text: string): string;
|
|
11574
11598
|
static convertBlobToWav: (audioBlob: {
|
|
11575
11599
|
arrayBuffer: () => any;
|
|
11576
11600
|
}) => Promise<{
|
|
@@ -11608,5 +11632,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
11608
11632
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
11609
11633
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
11610
11634
|
|
|
11611
|
-
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,
|
|
11635
|
+
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, sanitizeHtmlStringToFragment, shouldShowCustomMimeTypes, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
11612
11636
|
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, PollOptions };
|