UNPKG

@calq/neura-chat-widget

Version:

NeuraChat embedable script to insert chat widget

27 lines (26 loc) 795 B
export interface NeuraChatWidgetOptions { baseUrl: string; widgetId: string; } export interface NeuraChatWidgetConfig { locale: string; locales: string[]; greeting: boolean; greeting_text: Record<string, string>; accent_color: string; placeholder: Record<string, string>; } export interface NeuraChatInlineWidgetOptions extends NeuraChatWidgetOptions { element: HTMLElement | string; } export interface NeuraChatBubbleWidgetOptions extends NeuraChatWidgetOptions { position: "left" | "right"; } export interface NeuraChatWidgetInstance { destroy: () => void; } export interface NeuraChatInlineWidgetInstance extends NeuraChatWidgetInstance { } export interface NeuraChatBubbleWidgetInstance extends NeuraChatWidgetInstance { toggle: () => void; }