Manta Developers
GitHub
Menu

@manta-eu/react/screens/ask

Reference for @manta-eu/react/screens/ask as it is on main.

Type Aliases

AskPlanCardProps

AskPlanCardProps = object

Properties

plan

plan: ActionPlan

waiting

waiting: boolean


AskScreenProps

AskScreenProps = object

Properties

initialPrompt?

optional initialPrompt?: string


AskSource

AskSource = ReadSource


AskStartProps

AskStartProps = ChatWelcomeSlotArgs & object

Type Declaration

datastoreName?

optional datastoreName?: string

userName?

optional userName?: string | null


ChatWelcomeSlotArgs

ChatWelcomeSlotArgs = object

Properties

disabled

disabled: boolean

onSubmit

onSubmit: (prompt) => void

Parameters
prompt

string

Returns

void

subtitle

subtitle: string

title

title: string


MessageExtraPlace

MessageExtraPlace = "afterSteps" | "end"


PlanCardsProps

PlanCardsProps = object

Properties

iris

iris: readonly string[]


SourcesReadProps

SourcesReadProps = object

Properties

sources

sources: readonly AskSource[]

Variables

askSourceLabels

const askSourceLabels: Record<AskSource, string>

Functions

askDataLine()

askDataLine(datastoreName, plans, systems): string

Parameters

datastoreName

string | undefined

plans

number | undefined

systems

number | undefined

Returns

string


askGreeting()

askGreeting(userName): string

Parameters

userName

string | null | undefined

Returns

string


askReplyExtras()

askReplyExtras(message, place): Element | null

Parameters

message

ChatUIMessage

place

MessageExtraPlace

Returns

Element | null


AskScreen()

AskScreen(props): Element

Parameters

props

AskScreenProps

Returns

Element


AskStart()

AskStart(props): Element

Parameters

props

AskStartProps

Returns

Element


PlanCard()

PlanCard(props): Element

Parameters

props

AskPlanCardProps

Returns

Element


PlanCards()

PlanCards(props): Element

Parameters

props

PlanCardsProps

Returns

Element


plansIn()

plansIn(message): string[]

Parameters

message

ChatUIMessage

Returns

string[]


sourcesRead()

sourcesRead(message): ReadSource[]

Parameters

message

ChatUIMessage

Returns

ReadSource[]


SourcesRead()

SourcesRead(props): Element

Parameters

props

SourcesReadProps

Returns

Element


starterDesk()

starterDesk(integration): string

Parameters

integration

string

Returns

string