UNPKG

@xapp/chat-widget

Version:
24 lines (23 loc) 676 B
import 'rollup-plugin-inject-process-env'; /*! Copyright (c) 2021, XAPPmedia */ import { WidgetEnv } from "@xapp/stentor-chat-widget"; declare global { interface Window { xaConfig?: WidgetEnv; xaLogLevel?: "debug"; } } export interface WindowWithConfig extends Window { readonly xaConfig?: WidgetEnv; } /** * An external script could have replaced the config on the window. * * @param config */ export declare function injectConfig(config?: string): void; export interface AppProps { readonly env: WidgetEnv; } export { default as React } from "react"; export { ChatMessagePart, ChatMessagePartProps } from "./components/ChatMessagePart";