@memori.ai/memori-react
Version:
[](https://www.npmjs.com/package/@memori.ai/memori-react)   • 2.04 kB
TypeScript
import React from 'react';
import { DialogState, Integration } from '@memori.ai/memori-api-client/dist/types';
import { Props as WidgetProps } from './components/MemoriWidget/MemoriWidget';
export interface Props {
memoriName?: string | null;
memoriID?: string | null;
ownerUserName?: string | null;
ownerUserID?: string | null;
integration?: Integration;
integrationID?: string;
tenantID: string;
secretToken?: string;
sessionID?: string;
layout?: WidgetProps['layout'];
customLayout?: WidgetProps['customLayout'];
showShare?: boolean;
showChatHistory?: boolean;
showCopyButton?: boolean;
showTranslationOriginal?: boolean;
showInputs?: boolean;
showDates?: boolean;
showContextPerLine?: boolean;
showMessageConsumption?: boolean;
showSettings?: boolean;
__WEBCOMPONENT__?: boolean;
showClear?: boolean;
showOnlyLastMessages?: boolean;
showTypingText?: boolean;
showLogin?: boolean;
showUpload?: boolean;
showReasoning?: boolean;
avatar3dHidden?: boolean;
height?: number | string;
baseURL?: string;
apiURL?: string;
engineURL?: string;
tag?: string;
pin?: string;
context?: {
[key: string]: string;
};
initialQuestion?: string;
uiLang?: 'en' | 'it' | 'fr' | 'es' | 'de' | 'IT' | 'EN' | 'FR' | 'ES' | 'DE';
spokenLang?: string;
multilingual?: boolean;
authToken?: string;
enableAudio?: boolean;
defaultSpeakerActive?: boolean;
disableTextEnteredEvents?: boolean;
onStateChange?: (state?: DialogState) => void;
additionalInfo?: WidgetProps['additionalInfo'];
customMediaRenderer?: WidgetProps['customMediaRenderer'];
additionalSettings?: WidgetProps['additionalSettings'];
userAvatar?: WidgetProps['userAvatar'];
useMathFormatting?: boolean;
autoStart?: boolean;
applyVarsToRoot?: boolean;
maxTotalMessagePayload?: number;
maxTextareaCharacters?: number;
}
declare const Memori: React.FC<Props>;
export default Memori;