UNPKG

@talkjs/react-native

Version:

Official TalkJS SDK for React Native

32 lines 2.35 kB
export declare const SESSION = "window.talkSession"; export declare const CHATBOX = "window.talkChatbox"; export declare const CONVERSATION_LIST = "window.talkConversationList"; export declare const HTML_PANEL = "window.talkHtmlPanel"; export declare const CONTAINER = "talkjs-container"; export declare const BLUR_EVENT = "onBlur"; export declare const FOCUS_EVENT = "onFocus"; export declare const KEYUP_EVENT = "onKeyup"; export declare const SEND_MESSAGE_EVENT = "onSendMessage"; export declare const TRANSLATION_TOGGLED_EVENT = "onTranslationToggled"; export declare const SELECT_CONVERSATION_EVENT = "onSelectConversation"; export declare const LEAVE_CONVERSATION_EVENT = "onLeaveConversation"; export declare const CUSTOM_MESSAGE_ACTION_EVENT = "onCustomMessageAction"; export declare const CUSTOM_CONVERSATION_ACTION_EVENT = "onCustomConversationAction"; export declare const ON_MESSAGE_EVENT = "onMessage"; export declare const UNREADS_CHANGE_EVENT = "unreads.onChange"; export declare const TalkEvents: readonly ["onBlur", "onFocus", "onSendMessage", "onTranslationToggled", "onSelectConversation", "onKeyup", "onLeaveConversation", "onCustomMessageAction", "onCustomConversationAction", "onMessage", "unreads.onChange"]; export type TalkEvent = (typeof TalkEvents)[number]; export declare const WEBVIEW_ERROR = "webViewError"; export declare const TALKJS_ERROR_REGEX: RegExp; export declare const GET_TEXT_EVENT = "message_field_get_text"; export declare const LEAVE_PROMISE_EVENT = "resolve_leave_promise"; export declare const CURRENT_CONVERSATION_EVENT = "current_conversation_event"; export declare const SEND_MESSAGE_PROMISE_EVENT = "resolve_send_message_promise"; export declare const UI_MOUNTED_MESSAGE = "ui_mounted"; export declare const WEBVIEW_LOADED_MESSAGE = "webview_loaded"; export declare const VALID_CREDENTIALS_EVENT = "resolve_has_valid_credentials_promise"; export declare const TOKEN_FETCHER_EVENT = "resolve_token_fetcher_promise"; declare const CustomEvents: readonly ["webViewError", "message_field_get_text", "resolve_leave_promise", "resolve_send_message_promise", "current_conversation_event", "ui_mounted", "webview_loaded", "resolve_has_valid_credentials_promise", "resolve_token_fetcher_promise"]; export type CustomEvent = (typeof CustomEvents)[number]; export {}; //# sourceMappingURL=constants.d.ts.map