mx-ui-components
Version:
mobius ui library
54 lines (53 loc) • 1.98 kB
TypeScript
import CustomSearchBox from "../CustomSearchBox/CustomSearchBox";
declare class DynamicSpeechPrompt extends CustomSearchBox {
private intervalId;
private actions;
private audioRecorder;
private interacted;
protected input: HTMLElement | null;
private static sessionId;
private keyMapOptions;
private badgeContainerStyles;
private badgeStyles;
private closeIconSrc;
private closeIconStyles;
private popupDetails;
private agentId;
private commandsId;
private playbooksId;
private closeIconProps;
private chatDialogId;
static floatingPrompt: boolean;
private _contextHandler?;
constructor();
static get observedAttributes(): string[];
connectedCallback(): void;
disconnectedCallback(): void;
setupBindings(): void;
private initializeInput;
private handleMicButton;
private startListening;
private stopListening;
private updateInputFromAudio;
private handleSearchButton;
onInput(input: HTMLElement, event?: Event): void;
onFocus(input: HTMLElement): void;
onBlur(input: HTMLElement): void;
private startRecording;
updateValue(): void;
callAPI(): void;
private dispatchChatMessage;
createBadge(eventKey: any): void;
appendToInputInnerHTML(eventKey: any): void;
attachEventListenerOnPopupChildren(eventKey: any): void;
generateDynamicPopup(res: any, popupChildrenStructure: any, loopOver: string, eventKey: any, popupName: any, popupContainer: any): void;
fetchPopupData: (popupChildrenStructure: any, apiDetails: any, eventKey: any, popupName: any, popupContainer: any) => void;
generatePopupChildren: (popupDetails: any, eventKey: any, popupName: any) => void;
checkAgentPresent(): boolean;
checkPopupActions: (eventKey: string) => void;
removePopup(key: any): void;
EnterFunction: () => void;
bindKeyEvent(element: HTMLElement): void;
render(): void;
}
export default DynamicSpeechPrompt;