Skip to main content

Module: frontend-react

Interfaces

Variables

ConvoStackEmbed

Const ConvoStackEmbed: LoadableComponent

Defined in

packages/convostack-frontend-react/dist/src/index.d.ts:3


ConvoStackWidget

Const ConvoStackWidget: LoadableComponent

Defined in

packages/convostack-frontend-react/dist/src/index.d.ts:2


Messages

Const Messages: LoadableComponent

Defined in

packages/convostack-frontend-react/dist/src/index.d.ts:4

Functions

ConvoStackWrapper

ConvoStackWrapper(props, context?): ReactElement<any, any>

Parameters

NameType
propsConvoStackWrapperProps
context?any

Returns

ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:515


useConvoStack

useConvoStack(): Object

Returns

Object

NameType
activeConversationIdstring
context{ [key: string]: string; }
dataany
dropSubscription(embedId?: string) => void
embedActiveConversationId{ [embedId: string]: string | null; }
embedData{ [embedId: string]: any; }
isConversationListVisibleboolean
isEmbedConversationListVisible{ [embedId: string]: boolean; }
isWidgetWindowVisibleboolean
openConversation(conversationId: string, agent?: string, context?: { [embedId: string]: string; }, embedId?: string) => Promise<string>
openConversationList(embedId?: string) => void
toggleWidgetWindow(arg: boolean) => void
updateContext(conversationId: string, context: { [key: string]: string; }) => Promise<void>

Defined in

packages/convostack-frontend-react/dist/src/hooks/useConvoStack.d.ts:1