@cometchat/chat-uikit-react
Version:
Ready-to-use Chat UI Components for React(Javascript/Web)
258 lines (257 loc) • 6.72 kB
TypeScript
/**
* It is used for specifying the position of the auxiliary buttons.
* It is used in CometChatMessageComposer component.
*/
export declare enum AuxiliaryButtonAlignment {
left = 0,
right = 1
}
/**
* It is used for specifying the function of enter button
* It is used in CometChatMessageComposer component.
*/
export declare enum EnterKeyBehavior {
SendMessage = "sendMessage",
NewLine = "newLine",
None = "none"
}
/**
* It is used for describing the position of the element on the UI.
* It is used in CometChatContextualMenu, CometChatMessageBubble, CometChatUsers and CometChatGroupMembers components.
*/
export declare enum Placement {
top = "top",
right = "right",
bottom = "bottom",
left = "left"
}
/**
* It is used for specifying the alignment of the message list.
* It is used in CometChatMessageList component.
*/
export declare enum MessageListAlignment {
left = 0,
standard = 1
}
/**
* This is used for specifying the position of the message bubble.
* It is used in various components where the message bubbles are used.
*/
export declare enum MessageBubbleAlignment {
left = 0,
right = 1,
center = 2
}
/**
* This is used for specifying the position of the document icon.
* It is used in Decorators like CallingExtension, CollaborativeDocument, CollaborativeWhiteboard.
*/
export declare enum DocumentIconAlignment {
left = 0,
right = 1
}
/**
* This is used to specify the alignment of the tabs.
* It is used in CometChatTabs and CometChatContacts components.
*/
export declare enum TabAlignment {
top = 0,
bottom = 1,
left = 2,
right = 3
}
/**
* This is used to specify the status of the message delivery.
* It is used in components related to messages.
*/
export declare enum MessageStatus {
inprogress = 0,
success = 1,
error = 2
}
/**
* This is used to specify the types of the read receipts for the message.
* It is used in Bubbles, CometChatMessageInformation components.
*/
export declare enum Receipts {
wait = 0,
sent = 1,
delivered = 2,
read = 3,
error = 4
}
/**
* This is used for specifying the position of the title.
*/
export declare enum TitleAlignment {
left = 0,
center = 1
}
/**
* It is used to specify the mode of selection for the list of items.
* It is used in components where there is a list of items involed, like users/groups etc.
*/
export declare enum SelectionMode {
single = 0,
multiple = 1,
none = 2
}
/**
* This is used to specify the states of the operation on the UI.
* It has options like:
* loading: to be used while waiting for a particular operation,
* empty: when there is nothing to be displayed,
* error: when an error occurs in the operation, and
* loaded: when the operation is completed.
*/
export declare enum States {
loading = 0,
empty = 1,
error = 2,
loaded = 3
}
/**
* This is used to specify the position for the time-stamp.
* It is used in CometChatMessageList component.
*/
export declare enum TimestampAlignment {
top = 0,
bottom = 1
}
/**
* This is used to specify the alignment for the icon button.
* It is used in CometChatTabs, CometChatOutgoingCall components.
*/
export declare enum IconButtonAlignment {
top = "column",
bottom = "column-reverse",
left = "row",
right = "row-reverse"
}
/**
* It is used to specify the type for the recording.
* It is used in CometChatMessageComposer component.
*/
export declare enum RecordingType {
audio = 0,
video = 1
}
/**
* It is used to specify which tabs should be visible amongst user and group.
* It is used in CometChatContacts component.
*/
export declare enum TabsVisibility {
usersAndGroups = 0,
users = 1,
groups = 2
}
/**
* This is used to specify the type of the call.
* It is used in CometChatCallLogs, CometChatOngoingCall components.
*/
export declare enum CallWorkflow {
defaultCalling = 0,
directCalling = 1
}
/**
* This is used to provide the alignment for the panel.
* It is used in CometChatMessageList component and AI module components.
*/
export declare enum PanelAlignment {
composerHeader = 0,
messageListHeader = 1,
messageListFooter = 2,
messages = 3
}
/**
* It is used to provide the alignment for the labels.
*/
export declare enum LabelAlignment {
top = "column",
bottom = "column-reverse",
left = "row",
right = "row-reverse"
}
/**
* It is used to specify the type of the UI element.
* It is used in modal components.
*/
export declare enum ElementType {
label = "label",
text = "textInput",
dropdown = "dropdown",
checkbox = "checkbox",
radio = "radio",
button = "button",
singleSelect = "singleSelect",
dateTime = "dateTime"
}
/**
* It is used to specify what action a button should perform.
* It is used in InteractiveMessageUtils function and in modal components.
*/
export declare enum ButtonAction {
apiAction = "apiAction",
urlNavigation = "urlNavigation",
custom = "custom"
}
/**
* It is used to specify the type of the http request call.
* It is used in InteractiveMessageUtils function and APIAction inside modals.
*/
export declare enum HTTPSRequestMethods {
POST = "POST",
PUT = "PUT",
PATCH = "PATCH",
DELETE = "DELETE"
}
/**
* It is used to select the mode for date time picker component.
* It is used in DateTimePickerElement component.
*/
export declare enum DateTimePickerMode {
date = "date",
dateTime = "dateTime",
time = "time"
}
/**
* It is used for specifying the type of user/members list.
* It is used in CometChatMessageComposer and CometChatUserMemberWrapper components.
*/
export declare enum UserMemberListType {
users = 0,
groupmembers = 1
}
/**
* This is used to specify the source for mouse event with mentions information.
* It is used in CometChatMentionsFormatter util.
*/
export declare enum MouseEventSource {
mentions = 0
}
/**
* It is used to describe the mode for previewing message.
* It is used in CometChatMessageComposer component.
*/
export declare enum PreviewMessageMode {
edit = 0,
none = 1
}
/**
* It is generally used for formatting the text by providing the required data.
* It is used in CometChatConversations, CometChatTextFormatter and CometChatMentionsFormatter.
*/
export declare enum MentionsTargetElement {
textinput = 0,
textbubble = 1,
conversation = 2
}
/**
* It is used for providing the value for the mentions visibility.
* It is used in CometChatMentionsFormatter component.
*/
export declare enum MentionsVisibility {
usersConversationOnly = 0,
groupConversationOnly = 1,
both = 2
}