@cometchat/chat-uikit-react 4.3.22 → 4.3.24
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/close.svg +1 -1
- package/dist/index.d.ts +15 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/Calling/CallingExtension.d.ts +4 -2
- package/dist/types/Calling/CallingExtensionDecorator.d.ts +4 -2
- package/dist/types/Calling/CometChatCallButtons/index.d.ts +3 -1
- package/dist/types/Calling/CometChatIncomingCall/index.d.ts +2 -1
- package/dist/types/Calling/CometChatIncomingCall/style.d.ts +1 -1
- package/dist/types/Shared/CometChatUIKit/CometChatUIKit.d.ts +6 -0
- package/package.json +4 -4
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class CallingExtension extends
|
|
1
|
+
import { CallingConfiguration, CallingExtensionDataSource } from '@cometchat/uikit-shared';
|
|
2
|
+
export declare class CallingExtension extends CallingExtensionDataSource {
|
|
3
|
+
private configuration?;
|
|
4
|
+
constructor(configuration?: CallingConfiguration);
|
|
3
5
|
enable(): void;
|
|
4
6
|
addExtension(): void;
|
|
5
7
|
getExtensionId(): string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CometChatMessageTemplate, CometChatTheme, MessageBubbleAlignment } from "@cometchat/uikit-resources";
|
|
2
|
+
import { CallingConfiguration } from "@cometchat/uikit-shared";
|
|
2
3
|
import { DataSource } from "../Shared/Framework/DataSource";
|
|
3
4
|
import { DataSourceDecorator } from "../Shared/Framework/DataSourceDecorator";
|
|
4
5
|
export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
5
6
|
theme: CometChatTheme;
|
|
6
7
|
loggedInUser: CometChat.User | null;
|
|
7
|
-
|
|
8
|
+
configuration?: CallingConfiguration;
|
|
9
|
+
constructor(dataSource: DataSource, configuration?: CallingConfiguration);
|
|
8
10
|
addLoginListener(): void;
|
|
9
11
|
getLoggedInUser(): Promise<void>;
|
|
10
12
|
getAllMessageTypes(): string[];
|
|
@@ -39,7 +41,7 @@ export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
39
41
|
getSessionId(_message: CometChat.CustomMessage): any;
|
|
40
42
|
getCallBubbleTitle(_message: CometChat.CustomMessage): any;
|
|
41
43
|
getDirectCallMessageBubble(_message: CometChat.CustomMessage, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
startDirectCall(sessionId: string, theme: CometChatTheme): void;
|
|
44
|
+
startDirectCall(sessionId: string, message: CometChat.CustomMessage, theme: CometChatTheme): void;
|
|
43
45
|
callStatusStyle(_message: CometChat.Call, theme: CometChatTheme): {
|
|
44
46
|
buttonTextFont: string;
|
|
45
47
|
buttonTextColor: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallButtonsStyle } from "@cometchat/uikit-shared";
|
|
1
|
+
import { CallButtonsStyle, CallScreenConfiguration, OutgoingCallConfiguration } from "@cometchat/uikit-shared";
|
|
2
2
|
interface ICallButtonsBaseProps {
|
|
3
3
|
voiceCallIconURL?: string;
|
|
4
4
|
voiceCallIconText?: string;
|
|
@@ -12,6 +12,8 @@ interface ICallButtonsBaseProps {
|
|
|
12
12
|
onError?: (error: CometChat.CometChatException) => void;
|
|
13
13
|
user?: CometChat.User | null;
|
|
14
14
|
group?: CometChat.Group | null;
|
|
15
|
+
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
16
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
15
17
|
}
|
|
16
18
|
declare const CometChatCallButtons: (props: ICallButtonsBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export { CometChatCallButtons };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { IncomingCallStyle } from "@cometchat/uikit-shared";
|
|
2
|
+
import { CallScreenConfiguration, IncomingCallStyle } from "@cometchat/uikit-shared";
|
|
3
3
|
interface IIncomingCallProps {
|
|
4
4
|
call?: any;
|
|
5
5
|
disableSoundForCalls?: boolean;
|
|
@@ -7,6 +7,7 @@ interface IIncomingCallProps {
|
|
|
7
7
|
onAccept?: Function;
|
|
8
8
|
onDecline?: Function;
|
|
9
9
|
acceptButtonText?: string;
|
|
10
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
10
11
|
declineButtonText?: string;
|
|
11
12
|
subtitleView?: any;
|
|
12
13
|
onError?: Function;
|
|
@@ -64,7 +64,7 @@ export declare const DeclineButtonStyle: (incomingCallStyle: IncomingCallStyle)
|
|
|
64
64
|
buttonTextFont: string | undefined;
|
|
65
65
|
buttonTextColor: string | undefined;
|
|
66
66
|
};
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const getDefaultOngoingCallStyle: (ongoingCallStyle: any, theme: CometChatTheme) => CallscreenStyle;
|
|
68
68
|
export declare const IconStyle: (incomingCallStyle: IncomingCallStyle) => {
|
|
69
69
|
height: string;
|
|
70
70
|
width: string;
|
|
@@ -2,6 +2,7 @@ import { CardMessage, CometChatLocalize, CustomInteractiveMessage, FormMessage,
|
|
|
2
2
|
import { CometChatSoundManager, UIKitSettings } from '@cometchat/uikit-shared';
|
|
3
3
|
import { AIExtensionDataSource } from "../Framework/AIExtensionDataSource";
|
|
4
4
|
import { ExtensionsDataSource } from "../Framework/ExtensionsDataSource";
|
|
5
|
+
import { CallingExtensionDataSource } from "@cometchat/uikit-shared";
|
|
5
6
|
declare class CometChatUIKit {
|
|
6
7
|
static uiKitSettings: UIKitSettings | null;
|
|
7
8
|
static SoundManager: typeof CometChatSoundManager;
|
|
@@ -9,6 +10,11 @@ declare class CometChatUIKit {
|
|
|
9
10
|
static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
|
|
10
11
|
static init(uiKitSettings: UIKitSettings | null): Promise<Object> | undefined;
|
|
11
12
|
static defaultExtensions: ExtensionsDataSource[];
|
|
13
|
+
/**
|
|
14
|
+
* Default callingExtension included in the UI Kit.
|
|
15
|
+
* @type {CallingExtensionDataSource}
|
|
16
|
+
*/
|
|
17
|
+
static defaultCallingExtension: CallingExtensionDataSource;
|
|
12
18
|
static defaultAIFeatures: AIExtensionDataSource[];
|
|
13
19
|
static enableCalling(): void;
|
|
14
20
|
private static initiateAfterLogin;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.24",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@cometchat/chat-sdk-javascript": "^4.0.10",
|
|
8
|
-
"@cometchat/uikit-elements": "^4.3.
|
|
9
|
-
"@cometchat/uikit-resources": "^4.3.
|
|
10
|
-
"@cometchat/uikit-shared": "^4.3.
|
|
8
|
+
"@cometchat/uikit-elements": "^4.3.18",
|
|
9
|
+
"@cometchat/uikit-resources": "^4.3.14",
|
|
10
|
+
"@cometchat/uikit-shared": "^4.3.21"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/cli": "^7.17.0",
|