Skip to content

Commit 19cde97

Browse files
Update UiKit to version 4.3.13
1 parent 3935b96 commit 19cde97

File tree

47 files changed

+699
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+699
-239
lines changed

dist/assets/placeholder.png

-7.8 KB
Loading

dist/index.d.ts

Lines changed: 149 additions & 34 deletions
Large diffs are not rendered by default.

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/Calling/CallingExtensionDecorator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ export declare class CallingExtensionDecorator extends DataSourceDecorator {
6868
getCallActionMessage(_message: CometChat.Call): string;
6969
getDefaultAudioCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
7070
getDefaultVideoCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
71-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
71+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalParams?: any): string;
7272
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any[];
7373
}
Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
11
import { CallButtonsStyle } from "@cometchat/uikit-shared";
2-
interface ICallButtonsProps {
3-
user?: CometChat.User;
4-
group?: CometChat.Group;
2+
import { CometChat } from "@cometchat/chat-sdk-javascript";
3+
interface ICallButtonsBaseProps {
54
voiceCallIconURL?: string;
65
voiceCallIconText?: string;
76
voiceCallIconHoverText?: string;
87
videoCallIconURL?: string;
98
videoCallIconText?: string;
109
videoCallIconHoverText?: string;
1110
callButtonsStyle?: CallButtonsStyle;
12-
onVoiceCallClick?: Function | undefined;
13-
onVideoCallClick?: Function | undefined;
14-
onError?: Function;
11+
onVoiceCallClick?: () => void;
12+
onVideoCallClick?: () => void;
13+
onError?: (error: CometChat.CometChatException) => void;
1514
}
15+
interface ICallButtonsUserProps extends ICallButtonsBaseProps {
16+
user: CometChat.User;
17+
group?: CometChat.Group | null;
18+
}
19+
interface ICallButtonsGroupProps extends ICallButtonsBaseProps {
20+
user?: CometChat.User | null;
21+
group: CometChat.Group;
22+
}
23+
type ICallButtonsProps = ICallButtonsUserProps | ICallButtonsGroupProps;
1624
declare const CometChatCallButtons: {
1725
(props: ICallButtonsProps): import("react/jsx-runtime").JSX.Element;
18-
defaultProps: ICallButtonsProps;
26+
defaultProps: {
27+
voiceCallIconURL: string;
28+
voiceCallIconText: any;
29+
voiceCallIconHoverText: any;
30+
videoCallIconURL: string;
31+
videoCallIconText: any;
32+
videoCallIconHoverText: any;
33+
callButtonsStyle: {
34+
width: string;
35+
height: string;
36+
border: string;
37+
borderRadius: string;
38+
background: string;
39+
};
40+
onVoiceCallClick: undefined;
41+
onVideoCallClick: undefined;
42+
onError: (error: CometChat.CometChatException) => void;
43+
};
1944
};
2045
export { CometChatCallButtons };
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { AvatarStyle } from "@cometchat/uikit-elements";
2-
import { CometChatTheme, CometChatDetailsTemplate } from "@cometchat/uikit-resources";
31
import { CallLogDetailsStyle, CallLogHistoryConfiguration, CallLogParticipantsConfiguration, CallLogRecordingsConfiguration } from "@cometchat/uikit-shared";
2+
import { CometChatDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
3+
import { AvatarStyle } from "@cometchat/uikit-elements";
4+
import { CometChat } from "@cometchat/chat-sdk-javascript";
45
interface ICallLogDetailsProps {
56
title?: string;
67
backIconUrl?: string;
7-
call: any;
8+
call: CometChat.Call;
89
onBackClick?: Function;
910
avatarStyle?: AvatarStyle;
1011
data?: (callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme) => CometChatDetailsTemplate[];
@@ -15,6 +16,16 @@ interface ICallLogDetailsProps {
1516
}
1617
declare const CometChatCallLogDetails: {
1718
(props: ICallLogDetailsProps): import("react/jsx-runtime").JSX.Element;
18-
defaultProps: ICallLogDetailsProps;
19+
defaultProps: {
20+
title: any;
21+
backIconUrl: string;
22+
onBackClick: undefined;
23+
avatarStyle: AvatarStyle;
24+
data: (callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme) => CometChatDetailsTemplate[];
25+
callLogHistoryConfiguration: CallLogHistoryConfiguration;
26+
callLogParticipantsConfiguration: CallLogParticipantsConfiguration;
27+
callLogRecordingsConfiguration: CallLogRecordingsConfiguration;
28+
callLogDetailsStyle: CallLogDetailsStyle;
29+
};
1930
};
2031
export { CometChatCallLogDetails };

dist/types/Calling/CometChatCallLogDetails/style.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// <reference types="react" />
22
import { CometChatTheme } from "@cometchat/uikit-resources";
33
import { CallLogDetailsStyle } from "@cometchat/uikit-shared";
4+
import { ListItemStyle } from "@cometchat/uikit-elements";
45
export declare function getProfileContainerStyle(): React.CSSProperties;
56
export declare function getButtonContainerStyle(): React.CSSProperties;
67
export declare function getBackButtonStyle(theme: CometChatTheme, style: CallLogDetailsStyle): {
@@ -17,3 +18,4 @@ export declare function getTitleStyle(theme: CometChatTheme, style: CallLogDetai
1718
color: string | undefined;
1819
background: string;
1920
};
21+
export declare function getListItemStyle(theme: CometChatTheme, style: any): ListItemStyle;

dist/types/Calling/CometChatCallLogHistory/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { CallLogHistoryStyle } from "@cometchat/uikit-shared";
12
import { DatePatterns } from "@cometchat/uikit-resources";
23
import { ListItemStyle } from "@cometchat/uikit-elements";
3-
import { CallLogHistoryStyle } from "@cometchat/uikit-shared";
44
interface ICallLogHistoryProps {
55
title?: string;
66
emptyStateText?: string;

dist/types/Calling/Utils/CallDetailsUtils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CometChatTheme, CometChatCallDetailsTemplate } from "@cometchat/uikit-resources";
1+
import { CometChatCallDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
22
export declare class CallingDetailsUtils {
33
static getDefaultCallTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): Array<CometChatCallDetailsTemplate>;
44
private static getCallButtons;

0 commit comments

Comments
 (0)