@cometchat/chat-uikit-react 4.3.23 → 4.3.25
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 +8 -8
package/dist/assets/close.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="
|
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
3
|
<title>Icons/24/Close</title>
|
|
4
4
|
<g id="Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
|
|
5
5
|
<g id="Icons/24/Close" stroke="#000000" stroke-width="1.5">
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { UserMemberListType, UserPresencePlacement, CometChatLocalize, FormMessa
|
|
|
5
5
|
export * from '@cometchat/uikit-resources';
|
|
6
6
|
import { AvatarStyle, TextBubbleStyle, BaseStyle, ImageBubbleStyle, FileBubbleStyle, DocumentBubbleStyle, ConfirmDialogStyle, ListItemStyle, CallscreenStyle, BadgeStyle, ReceiptStyle, DateStyle, ChangeScopeStyle, ActionSheetStyle, MediaRecorderStyle, EmojiKeyboardStyle, BackdropStyle, CometChatEmojiKeyboard, CometChatIconButton, CometChatButton as CometChatButton$1, CometChatDate, CometChatLabel, CometChatLoader, CometChatAvatar, CometChatReceipt } from '@cometchat/uikit-elements';
|
|
7
7
|
export { ActionSheetStyle, AvatarStyle, BackdropStyle, BadgeStyle, ButtonGroupStyle, CallscreenStyle, CardStyle, ChangeScopeStyle, CheckboxStyle, CometChatActionItem, CometChatActionSheet, CometChatAvatar, CometChatBackdrop, CometChatBadge, CometChatButton, CometChatButtonGroup, CometChatCallscreenWrapper, CometChatCard, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatCreateGroup, CometChatDate, CometChatDivider, CometChatDocumentBubble, CometChatDraggable, CometChatDropdown, CometChatEmoji, CometChatEmojiKeyboard, CometChatFullScreenViewer, CometChatIcon, CometChatIconButton, CometChatInput, CometChatJoinGroup, CometChatLabel, CometChatListItem, CometChatLiveReaction, CometChatLoader, CometChatMediaRecorder, CometChatMenuList, CometChatMessageInput, CometChatModal, CometChatPopover, CometChatPreview, CometChatQuickView, CometChatRadioButton, CometChatReceipt, CometChatSearchInput, CometChatSingleSelect, CometChatStatusIndicator, CometChatTextInput, ConfirmDialogStyle, ContextMenuStyle, CreateGroupStyle, DateStyle, DocumentBubbleStyle, DropdownStyle, EmojiKeyboardStyle, Emojis, FileBubbleStyle, FullScreenViewerStyle, IconStyle, ImageBubbleStyle, InputStyle, JoinGroupStyle, LabelStyle, ListItemStyle, LoaderStyle, MediaRecorderStyle, MenuListStyle, MessageInputStyle, ModalStyle, PopoverStyle, PreviewStyle, QuickViewStyle, RadioButtonStyle, ReceiptStyle, SearchInputStyle, SingleSelectStyle, TextBubbleStyle, TextInputStyle, auxiliaryButtonAlignmentEnum, layoutType } from '@cometchat/uikit-elements';
|
|
8
|
-
import { UIKitSettings, CometChatSoundManager, ComposerId as ComposerId$1, FormBubbleStyle, SchedulerBubbleStyle, CardBubbleStyle, AIOptionsStyle, CometChatTextFormatter, CometChatMentionsFormatter, CometChatUrlsFormatter, BaseStyle as BaseStyle$1, ListStyle, OptionsStyle, ImageModerationStyle, LinkPreviewStyle, MessageTranslationStyle, PollsBubbleStyle, CreatePollStyle, SmartRepliesStyle, StickersStyle, CallButtonsStyle, IncomingCallStyle, CometChatUIKitCalls, OutgoingCallStyle, CallLogsStyle,
|
|
8
|
+
import { UIKitSettings, CometChatSoundManager, CallingExtensionDataSource, ComposerId as ComposerId$1, FormBubbleStyle, SchedulerBubbleStyle, CardBubbleStyle, AIOptionsStyle, CometChatTextFormatter, CometChatMentionsFormatter, CometChatUrlsFormatter, BaseStyle as BaseStyle$1, ListStyle, OptionsStyle, ImageModerationStyle, LinkPreviewStyle, MessageTranslationStyle, PollsBubbleStyle, CreatePollStyle, SmartRepliesStyle, StickersStyle, CallingConfiguration, CallButtonsStyle, OutgoingCallConfiguration, CallScreenConfiguration, IncomingCallStyle, CometChatUIKitCalls, OutgoingCallStyle, CallLogsStyle, CallLogHistoryConfiguration, CallLogParticipantsConfiguration, CallLogRecordingsConfiguration, CallLogDetailsStyle, CallLogHistoryStyle, CallLogParticipantsStyle, CallLogRecordingsStyle, WithDetailsStyle, CallLogDetailsConfiguration, CallLogsConfiguration, AddMembersStyle, BannedMembersStyle, ConversationsStyle, WithMessagesStyle, MessagesConfiguration, ConversationsConfiguration, ContactsConfiguration, AddMembersConfiguration, BannedMembersConfiguration, GroupMembersConfiguration, TransferOwnershipConfiguration, DetailsStyle, GroupMembersStyle, GroupsStyle, GroupsConfiguration, CreateGroupConfiguration, JoinGroupConfiguration, MessageComposerStyle, UserMemberWrapperConfiguration, MessageHeaderStyle, MessageListStyle, MessageInformationConfiguration, ReactionsConfiguration, MessageHeaderConfiguration, MessageListConfiguration, MessageComposerConfiguration, ThreadedMessagesConfiguration, DetailsConfiguration, MessagesStyle, TransferOwnershipStyle, UsersStyle, UsersConfiguration, ContactsStyle, MessageInformationStyle, AIAssistBotConfiguration, AIConversationStarterConfiguration, AISmartRepliesConfiguration, AIConversationSummaryConfiguration, CometChatReactions } from '@cometchat/uikit-shared';
|
|
9
9
|
export * from '@cometchat/uikit-shared';
|
|
10
10
|
import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
|
|
11
11
|
import * as _lit_labs_react from '@lit-labs/react';
|
|
@@ -51,6 +51,11 @@ declare class CometChatUIKit {
|
|
|
51
51
|
static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
|
|
52
52
|
static init(uiKitSettings: UIKitSettings | null): Promise<Object> | undefined;
|
|
53
53
|
static defaultExtensions: ExtensionsDataSource[];
|
|
54
|
+
/**
|
|
55
|
+
* Default callingExtension included in the UI Kit.
|
|
56
|
+
* @type {CallingExtensionDataSource}
|
|
57
|
+
*/
|
|
58
|
+
static defaultCallingExtension: CallingExtensionDataSource;
|
|
54
59
|
static defaultAIFeatures: AIExtensionDataSource[];
|
|
55
60
|
static enableCalling(): void;
|
|
56
61
|
private static initiateAfterLogin;
|
|
@@ -844,7 +849,9 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
844
849
|
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
|
|
845
850
|
}
|
|
846
851
|
|
|
847
|
-
declare class CallingExtension extends
|
|
852
|
+
declare class CallingExtension extends CallingExtensionDataSource {
|
|
853
|
+
private configuration?;
|
|
854
|
+
constructor(configuration?: CallingConfiguration);
|
|
848
855
|
enable(): void;
|
|
849
856
|
addExtension(): void;
|
|
850
857
|
getExtensionId(): string;
|
|
@@ -853,7 +860,8 @@ declare class CallingExtension extends ExtensionsDataSource {
|
|
|
853
860
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
854
861
|
theme: CometChatTheme;
|
|
855
862
|
loggedInUser: CometChat.User | null;
|
|
856
|
-
|
|
863
|
+
configuration?: CallingConfiguration;
|
|
864
|
+
constructor(dataSource: DataSource, configuration?: CallingConfiguration);
|
|
857
865
|
addLoginListener(): void;
|
|
858
866
|
getLoggedInUser(): Promise<void>;
|
|
859
867
|
getAllMessageTypes(): string[];
|
|
@@ -888,7 +896,7 @@ declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
888
896
|
getSessionId(_message: CometChat.CustomMessage): any;
|
|
889
897
|
getCallBubbleTitle(_message: CometChat.CustomMessage): any;
|
|
890
898
|
getDirectCallMessageBubble(_message: CometChat.CustomMessage, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
891
|
-
startDirectCall(sessionId: string, theme: CometChatTheme): void;
|
|
899
|
+
startDirectCall(sessionId: string, message: CometChat.CustomMessage, theme: CometChatTheme): void;
|
|
892
900
|
callStatusStyle(_message: CometChat.Call, theme: CometChatTheme): {
|
|
893
901
|
buttonTextFont: string;
|
|
894
902
|
buttonTextColor: string | undefined;
|
|
@@ -934,6 +942,8 @@ interface ICallButtonsBaseProps {
|
|
|
934
942
|
onError?: (error: CometChat.CometChatException) => void;
|
|
935
943
|
user?: CometChat.User | null;
|
|
936
944
|
group?: CometChat.Group | null;
|
|
945
|
+
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
946
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
937
947
|
}
|
|
938
948
|
declare const CometChatCallButtons: (props: ICallButtonsBaseProps) => react_jsx_runtime.JSX.Element;
|
|
939
949
|
|
|
@@ -944,6 +954,7 @@ interface IIncomingCallProps {
|
|
|
944
954
|
onAccept?: Function;
|
|
945
955
|
onDecline?: Function;
|
|
946
956
|
acceptButtonText?: string;
|
|
957
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
947
958
|
declineButtonText?: string;
|
|
948
959
|
subtitleView?: any;
|
|
949
960
|
onError?: Function;
|