Skip to content

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Apr 13, 2021
1 parent 6db1cee commit 8f773ba
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
28 changes: 21 additions & 7 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export namespace CometChat {
DEFAULT: string,
SPOTLIGHT: string,
SINGLE: string,
TILE: string,
GRID: string
};
let CALL_TYPE: {
AUDIO: string;
Expand Down Expand Up @@ -570,9 +572,6 @@ export namespace CometChat {
* @memberof CometChat
*/
export function getCallParticipantCount(sessionId: string, type: string): Promise<number>;
export function toggleAudio(): void;
export function toggleVideo(): void;
export function leaveCall(): void;
export function createCallView(context: any): {
prop1: typeof CometChat.makeCall;
onMessage: (event: any) => void;
Expand Down Expand Up @@ -1662,6 +1661,7 @@ export namespace CometChat {
onCallEnded?: Function;
onError?: Function;
onUserListUpdated?: Function;
onMediaDeviceListUpdated?: Function;
constructor(...args: any[]);
}
export class LoginListener {
Expand Down Expand Up @@ -1816,14 +1816,18 @@ export namespace CometChat {
onCallStarted(call: Call): Promise<Call>;
endCallSession(): void;
startCall(callSettings: CallSettings, view: HTMLElement): void;
getAudioInputDevices(): MediaDevice[];
getAudioOutputDevices(): MediaDevice[];
getVideoInputDevices(): MediaDevice[];
setAudioInputDevice(deviceId: string): void;
setAudioOutputDevice(deviceId: string): void;
setVideoInputDevice(deviceId: string): void;
muteAudio(mute: boolean): void;
pauseVideo(pause: boolean): void;
setMode(mode: string): void;
stopScreenShare(): void;
startScreenShare(): void;
endSession(): void;
static toggleAudio(): void;
static toggleVideo(): void;
static leave(): void;
destroy(): void;
}

Expand Down Expand Up @@ -2021,7 +2025,8 @@ export namespace CometChat {
isDefaultLayoutEnabled(): boolean;
getMode(): string;
isEndCallButtonEnabled(): boolean;
isScreenShareButtonEnabled(): boolean
isScreenShareButtonEnabled(): boolean;
isModeButtonEnabled(): boolean;
isMuteAudioButtonEnabled(): boolean;
isPauseVideoButtonEnabled(): boolean;
getLocalizedStringObject(): Object;
Expand All @@ -2038,6 +2043,7 @@ export namespace CometChat {
ShowMuteAudioButton: boolean;
ShowPauseVideoButton: boolean;
ShowScreenShareButton: boolean;
ShowSwitchModeButton: boolean;
localizedObject: Object;
StartAudioMuted: boolean;
StartVideoMuted: boolean;
Expand All @@ -2050,12 +2056,20 @@ export namespace CometChat {
showMuteAudioButton(showMuteAudioButton: boolean): this;
showPauseVideoButton(showPauseVideoButton: boolean): this;
showScreenShareButton(ShowScreenShareButton: boolean): this;
showModeButton(showModeButton: boolean): this;
setLocalizedStringObject(localizedStringObject: Object): this;
startWithAudioMuted(audioMuted: boolean): this;
startWithVideoMuted(videoMuted: boolean): this;
build(): CallSettings;
}

export class MediaDevice {
constructor(id, name, active);
getId(): string;
getName(): string;
getIsActive(): boolean;
}

export class CometChatHelper {
static getConversationFromMessage(message: TextMessage | MediaMessage | CustomMessage | any): Promise<Conversation>;
static processMessage(message: Object): Promise<TextMessage | MediaMessage | CustomMessage | BaseMessage>;
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This guide demonstrates how to add chat to a WebSite using CometChat Pro.
[Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)

[![Platform](https://img.shields.io/badge/Platform-Javascript-brightgreen)](#)
<a href=" "> <img src="https://img.shields.io/badge/Version-2.3.0-important" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-2.3.1-important" /></a>
![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/javascript-chat-sdk)
![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/javascript-chat-sdk)
![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/javascript-chat-sdk?style=social)
Expand Down Expand Up @@ -78,7 +78,7 @@ To setup Javascript SDK, you need to first register on CometChat Dashboard. [Cl
1. Run the following command to install the CometChat Pro Javascript SDK<br/>

```javascript
npm install @cometchat-pro/chat@2.3.0 --save
npm install @cometchat-pro/chat@2.3.1 --save
```
</li>

Expand All @@ -87,7 +87,7 @@ To setup Javascript SDK, you need to first register on CometChat Dashboard. [Cl
1. Include the CometChat Pro Javascript library in your HTML code.<br/>

```html
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/[email protected].0/CometChat.js"></script>
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/[email protected].1/CometChat.js"></script>
```

You can refer to the below link for instructions on how to do so:<br/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat-pro/chat",
"version": "2.3.0",
"version": "2.3.1",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit 8f773ba

Please sign in to comment.