UNPKG

@xapp/chat-widget

Version:
27 lines (26 loc) 977 B
import 'rollup-plugin-inject-process-env'; import { WidgetEnv } from "@xapp/stentor-chat-widget"; import { FC } from "react"; import { ChatDetail } from "../../store/ChatAction"; import { ChatWidgetMode } from "./ChatWidget"; export interface StaticMessagesChatWidgetContainerProps { readonly messages: readonly ChatDetail[]; readonly mode?: ChatWidgetMode; readonly config: Omit<WidgetEnv, "connection">; /** * Disable automatic scrolling behavior when messages change. * Useful for embedded preview contexts where the widget should not * affect the parent page's scroll position. * * @default false */ readonly disableAutoScroll?: boolean; /** * Enable preview mode to disable input and interactions. * * @default false */ readonly preview?: boolean; } declare const StaticMessagesChatWidgetContainer: FC<StaticMessagesChatWidgetContainerProps>; export default StaticMessagesChatWidgetContainer;