@cometchat/chat-uikit-react 6.3.11 → 6.3.12
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 +42 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +21 -0
- package/dist/types/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/useSecureMedia.d.ts +19 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -677,6 +677,11 @@ declare class UIKitSettings {
|
|
|
677
677
|
* @type {CometChat.StorageMode}
|
|
678
678
|
*/
|
|
679
679
|
readonly storageMode: CometChat.StorageMode;
|
|
680
|
+
/**
|
|
681
|
+
* Secure media mode for accessing protected media resources. Defaults to EMBEDDED if not set.
|
|
682
|
+
* @type {CometChat.SecureMediaMode}
|
|
683
|
+
*/
|
|
684
|
+
readonly secureMediaMode: CometChat.SecureMediaMode;
|
|
680
685
|
/**
|
|
681
686
|
* Private constructor to initialize the settings using the provided builder.
|
|
682
687
|
* @param {UIKitSettingsBuilder} builder - The builder instance containing the settings configuration.
|
|
@@ -743,6 +748,11 @@ declare class UIKitSettings {
|
|
|
743
748
|
* @returns {CometChat.StorageMode} The storage mode.
|
|
744
749
|
*/
|
|
745
750
|
getStorageMode(): CometChat.StorageMode;
|
|
751
|
+
/**
|
|
752
|
+
* Retrieves the secure media mode.
|
|
753
|
+
* @returns {CometChat.SecureMediaMode} The secure media mode.
|
|
754
|
+
*/
|
|
755
|
+
getSecureMediaMode(): CometChat.SecureMediaMode;
|
|
746
756
|
}
|
|
747
757
|
declare class UIKitSettingsBuilder {
|
|
748
758
|
/**
|
|
@@ -816,6 +826,11 @@ declare class UIKitSettingsBuilder {
|
|
|
816
826
|
* @type {CometChat.StorageMode}
|
|
817
827
|
*/
|
|
818
828
|
storageMode?: CometChat.StorageMode;
|
|
829
|
+
/**
|
|
830
|
+
* Secure media mode for accessing protected media resources. Defaults to EMBEDDED if not set.
|
|
831
|
+
* @type {CometChat.SecureMediaMode}
|
|
832
|
+
*/
|
|
833
|
+
secureMediaMode?: CometChat.SecureMediaMode;
|
|
819
834
|
/**
|
|
820
835
|
* Builds and returns an instance of UIKitSettings.
|
|
821
836
|
* @returns {UIKitSettings} A new instance of UIKitSettings with the specified configuration.
|
|
@@ -898,6 +913,12 @@ declare class UIKitSettingsBuilder {
|
|
|
898
913
|
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
899
914
|
*/
|
|
900
915
|
setStorageMode(storageMode: CometChat.StorageMode): UIKitSettingsBuilder;
|
|
916
|
+
/**
|
|
917
|
+
* Sets the secure media mode for accessing protected media resources. Defaults to EMBEDDED.
|
|
918
|
+
* @param {CometChat.SecureMediaMode} secureMediaMode - The secure media mode.
|
|
919
|
+
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
920
|
+
*/
|
|
921
|
+
setSecureMediaMode(secureMediaMode: CometChat.SecureMediaMode): UIKitSettingsBuilder;
|
|
901
922
|
}
|
|
902
923
|
|
|
903
924
|
/**
|
|
@@ -7066,5 +7087,25 @@ interface CometChatAIAssistantChatHistoryProps {
|
|
|
7066
7087
|
}
|
|
7067
7088
|
declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
7068
7089
|
|
|
7069
|
-
|
|
7090
|
+
interface UseSecureMediaResult {
|
|
7091
|
+
resolvedUrl: string | null;
|
|
7092
|
+
isLoading: boolean;
|
|
7093
|
+
error: Error | null;
|
|
7094
|
+
}
|
|
7095
|
+
/**
|
|
7096
|
+
* Checks whether the given URL requires secure presigned access.
|
|
7097
|
+
*/
|
|
7098
|
+
declare function requiresSecureMediaAccess(url: string): boolean;
|
|
7099
|
+
/**
|
|
7100
|
+
* Resolves a media URL to a presigned URL if secure access is required, else returns as-is.
|
|
7101
|
+
* For imperative/non-hook contexts (downloads, WaveSurfer load, etc.).
|
|
7102
|
+
*/
|
|
7103
|
+
declare function resolveSecureUrl(url: string): Promise<string>;
|
|
7104
|
+
/**
|
|
7105
|
+
* React hook that resolves a media URL to a presigned URL if secure access is required.
|
|
7106
|
+
* Handles cancellation on unmount/url change.
|
|
7107
|
+
*/
|
|
7108
|
+
declare function useSecureMedia(url: string | null): UseSecureMediaResult;
|
|
7109
|
+
|
|
7110
|
+
export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFlagMessageDialog, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessagePreview, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, 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, createMessageCopy, createMessageCopyFromBaseMessage, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, emitStreamingState, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, requiresSecureMediaAccess, resolveSecureUrl, sanitizeCalendarObject, sanitizeHtmlStringToFragment, setAIAssistantTools, setStreamSpeed, shouldShowCustomMimeTypes, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useSecureMedia, useStateRef, verifyCallUser };
|
|
7070
7111
|
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };
|