@cometchat/chat-uikit-react 5.0.0 → 5.0.1
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/assets/image_placeholder.png +0 -0
- package/dist/assets/placeholder.png +0 -0
- package/dist/index.d.ts +349 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +1 -1
- package/dist/types/utils/util.d.ts +18 -0
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
41
41
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
42
42
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
43
43
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
44
|
-
getReceiptClass(status?: number): "wait" | "
|
|
44
|
+
getReceiptClass(status?: number): "wait" | "error" | "read" | "delivered" | "sent" | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Function to get receipt for message bubble
|
|
47
47
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import WaveSurfer from "../components/BaseComponents/CometChatAudioBubble/src/wavesurfer";
|
|
2
|
+
interface MediaPlayer {
|
|
3
|
+
video?: HTMLVideoElement | null;
|
|
4
|
+
mediaRecorder?: MediaRecorder | null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* storing current media which is being played.
|
|
8
|
+
*/
|
|
9
|
+
export declare const currentMediaPlayer: MediaPlayer;
|
|
10
|
+
export declare const currentAudioPlayer: {
|
|
11
|
+
instance: WaveSurfer | null;
|
|
12
|
+
setIsPlaying: ((isPlaying: boolean) => void) | null;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Function to stop current media playback.
|
|
16
|
+
*/
|
|
17
|
+
export declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
|
|
1
18
|
export declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
|
|
2
19
|
export declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
|
|
3
20
|
/**
|
|
@@ -29,3 +46,4 @@ export declare function processFileForAudio(file: File): Promise<File>;
|
|
|
29
46
|
*/
|
|
30
47
|
export declare function formatDateFromTimestamp(timestamp: number): string;
|
|
31
48
|
export declare function isMobileDevice(): boolean;
|
|
49
|
+
export {};
|