@cometchat/chat-uikit-react 6.3.10 → 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 +98 -32
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +5 -0
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +5 -0
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +21 -0
- package/dist/types/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -0
- package/dist/types/components/BaseComponents/CometChatList/useCometChatList.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/useSecureMedia.d.ts +19 -0
- package/package.json +4 -4
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
|
/**
|
|
@@ -1511,7 +1532,7 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1511
1532
|
}): Array<string>;
|
|
1512
1533
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
|
|
1513
1534
|
getId(): string;
|
|
1514
|
-
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams):
|
|
1535
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX$1.Element | Element;
|
|
1515
1536
|
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
1516
1537
|
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
1517
1538
|
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
@@ -2302,17 +2323,17 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2302
2323
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2303
2324
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2304
2325
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2305
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean):
|
|
2306
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment):
|
|
2307
|
-
getReplyView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, onReplyPreviewClick?: (messageToReply: CometChat.BaseMessage) => void, textFormatters?: CometChatTextFormatter[]):
|
|
2308
|
-
getFooterView(message: CometChat.BaseMessage):
|
|
2326
|
+
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): JSX$1.Element | Element | null;
|
|
2327
|
+
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element | null;
|
|
2328
|
+
getReplyView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, onReplyPreviewClick?: (messageToReply: CometChat.BaseMessage) => void, textFormatters?: CometChatTextFormatter[]): JSX$1.Element | Element | null;
|
|
2329
|
+
getFooterView(message: CometChat.BaseMessage): JSX$1.Element | Element | null;
|
|
2309
2330
|
getMessagePreviewSubtitle(message: CometChat.BaseMessage, textFormatters?: CometChatTextFormatter[], _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
|
|
2310
2331
|
getMessagePreviewTitle(message: CometChat.BaseMessage, _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
|
|
2311
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2312
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2313
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2314
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2315
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2332
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2333
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2334
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2335
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2336
|
+
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2316
2337
|
getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
2317
2338
|
getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
2318
2339
|
getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
@@ -2332,32 +2353,32 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2332
2353
|
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
2333
2354
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
|
|
2334
2355
|
getId(): string;
|
|
2335
|
-
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment):
|
|
2336
|
-
getGroupActionBubble(message: CometChat.BaseMessage):
|
|
2337
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2338
|
-
getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2339
|
-
getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2340
|
-
getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2341
|
-
getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2342
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2343
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2344
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
2345
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
2356
|
+
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2357
|
+
getGroupActionBubble(message: CometChat.BaseMessage): JSX$1.Element | Element;
|
|
2358
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2359
|
+
getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2360
|
+
getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2361
|
+
getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2362
|
+
getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
|
|
2363
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2364
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2365
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2366
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2346
2367
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
|
|
2347
2368
|
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
|
|
2348
2369
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
2349
2370
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
2350
2371
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
2351
2372
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
2352
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2353
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2354
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2373
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2374
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2375
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2355
2376
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
2356
2377
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
2357
2378
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
2358
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2359
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2360
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2379
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2380
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2381
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
|
|
2361
2382
|
}
|
|
2362
2383
|
|
|
2363
2384
|
interface ListProps<T> {
|
|
@@ -2506,6 +2527,18 @@ interface ListProps<T> {
|
|
|
2506
2527
|
*
|
|
2507
2528
|
*/
|
|
2508
2529
|
scrollToEnd?: boolean;
|
|
2530
|
+
/**
|
|
2531
|
+
* @internal
|
|
2532
|
+
*
|
|
2533
|
+
* Skips the scroll height check when triggering onScrolledToBottom callback in CometChatList.
|
|
2534
|
+
* When true, the callback fires even if the list content fits within the list body container.
|
|
2535
|
+
* Uses the screen/viewport as the intersection root instead of the list body,
|
|
2536
|
+
* so the callback triggers when the bottom of the list becomes visible on screen.
|
|
2537
|
+
* Useful when the list is embedded in a parent scrollable container.
|
|
2538
|
+
*
|
|
2539
|
+
* @defaultValue `false`
|
|
2540
|
+
*/
|
|
2541
|
+
observeScrollFromViewport?: boolean;
|
|
2509
2542
|
}
|
|
2510
2543
|
/**
|
|
2511
2544
|
* Renders a list component that can display a title, search bar,
|
|
@@ -2912,7 +2945,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
2912
2945
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
2913
2946
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
2914
2947
|
*/
|
|
2915
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
2948
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
2916
2949
|
/**
|
|
2917
2950
|
* Retrieves the style for the link preview wrapper.
|
|
2918
2951
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -3006,7 +3039,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
3006
3039
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
3007
3040
|
* @returns {JSX.Element} The content view for the text message.
|
|
3008
3041
|
*/
|
|
3009
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
3042
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
3010
3043
|
/**
|
|
3011
3044
|
* Checks if an option with the specified ID already exists in the options list.
|
|
3012
3045
|
*
|
|
@@ -3351,7 +3384,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3351
3384
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
3352
3385
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
3353
3386
|
*/
|
|
3354
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function):
|
|
3387
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
|
|
3355
3388
|
/**
|
|
3356
3389
|
* Provides the video message bubble with support for thumbnail generation.
|
|
3357
3390
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -3362,7 +3395,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3362
3395
|
* @param {Function} [onClick] - Optional click event handler.
|
|
3363
3396
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
3364
3397
|
*/
|
|
3365
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function):
|
|
3398
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
|
|
3366
3399
|
}
|
|
3367
3400
|
|
|
3368
3401
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -3950,6 +3983,18 @@ interface GroupMembersProps {
|
|
|
3950
3983
|
* @defaultValue `false`
|
|
3951
3984
|
*/
|
|
3952
3985
|
showScrollbar?: boolean;
|
|
3986
|
+
/**
|
|
3987
|
+
* @internal
|
|
3988
|
+
*
|
|
3989
|
+
* Skips the scroll height check when triggering onScrolledToBottom callback in CometChatList.
|
|
3990
|
+
* When true, the callback fires even if the list content fits within the list body container.
|
|
3991
|
+
* Uses the screen/viewport as the intersection root instead of the list body,
|
|
3992
|
+
* so the callback triggers when the bottom of the list becomes visible on screen.
|
|
3993
|
+
* Useful when the list is embedded in a parent scrollable container.
|
|
3994
|
+
*
|
|
3995
|
+
* @defaultValue `false`
|
|
3996
|
+
*/
|
|
3997
|
+
observeScrollFromViewport?: boolean;
|
|
3953
3998
|
}
|
|
3954
3999
|
declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
3955
4000
|
|
|
@@ -4102,6 +4147,7 @@ interface MessageBubbleProps {
|
|
|
4102
4147
|
topMenuSize?: number;
|
|
4103
4148
|
type?: string;
|
|
4104
4149
|
category?: string;
|
|
4150
|
+
toggleOptionsVisibility?: boolean;
|
|
4105
4151
|
}
|
|
4106
4152
|
/**
|
|
4107
4153
|
* React component for displaying different types of messages in the message list.
|
|
@@ -7041,5 +7087,25 @@ interface CometChatAIAssistantChatHistoryProps {
|
|
|
7041
7087
|
}
|
|
7042
7088
|
declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
7043
7089
|
|
|
7044
|
-
|
|
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 };
|
|
7045
7111
|
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };
|