Manta Developers
GitHub
Menu

@manta-eu/react/screens/join

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

Type Aliases

BrandColor

BrandColor = object

Properties

hex

hex: string

name?

optional name?: string


BrandFindings

BrandFindings = object

Properties

colors

colors: BrandColor[]

description?

optional description?: string

fonts

fonts: string[]

name?

optional name?: string


BudgetCurrency

BudgetCurrency = typeof budgetCurrencies[number]["id"]


BuildLine

BuildLine = object

Properties

error?

optional error?: string

key

key: string

label

label: string

state

state: ReadingLineState


JoinAwaitingProps

JoinAwaitingProps = object

Properties

email

email: string | undefined

fallback

fallback: ReactNode

onSignOut

onSignOut: () => void

Returns

void

userId

userId: string


JoinDraft

JoinDraft = z.infer<typeof joinDraftSchema>


JoinGoals

JoinGoals = z.infer<typeof goalsSchema>


JoinRouteProps

JoinRouteProps = object

Properties

email

email: string | undefined

name?

optional name?: string

Prefills the name step; pass the signed-in user’s name, since the gate provides no auth context here.

onSignOut

onSignOut: () => void

Returns

void

userId

userId: string


JoinSourceCard

JoinSourceCard = object

Properties

category

category: string

description

description: string

id

id: JoinSourceId

logo: ProviderLogoComponent | undefined

name

name: string


JoinSourceCatalog

JoinSourceCatalog = Partial<Record<ProviderId, JoinSourceCatalogEntry>>


JoinSourceCatalogEntry

JoinSourceCatalogEntry = Pick<ProviderCatalogEntry, "name" | "category" | "description" | "logo">


JoinSourceId

JoinSourceId = typeof joinSources[number]["id"]


OnboardingReadinessProviderProps

OnboardingReadinessProviderProps = object

Properties

children

children: ReactNode


ReadingLineState

ReadingLineState = "done" | "active" | "pending" | "stopped"


RenderSignupBackdrop

RenderSignupBackdrop = (props) => ReactNode

Parameters

props

SignupBackdropProps

Returns

ReactNode


SignupBackdropProps

SignupBackdropProps = object

Properties

draft

draft: JoinDraft

findings

findings: BrandFindings | undefined

lines

lines: readonly BuildLine[]

plans?

optional plans?: readonly string[]

progress

progress: number

Graph shown, 0 to 1, on the staged build’s clock.

reducedMotion

reducedMotion: boolean

rules?

optional rules?: readonly string[]

sources

sources: readonly JoinSourceCard[]

websiteHost

websiteHost: string

websiteRead

websiteRead: boolean


SignupLegalLinks = object

Properties

dataProcessing

dataProcessing: string

terms

terms: string


SignupProviderProps

SignupProviderProps = object

Properties

catalog?

optional catalog?: JoinSourceCatalog

children

children: ReactNode

optional legalLinks?: SignupLegalLinks

Defaults to Manta’s own Terms of Service and DPA.

renderBackdrop?

optional renderBackdrop?: RenderSignupBackdrop

Variables

budgetCurrencies

const budgetCurrencies: readonly [{ code: "EUR"; id: "eur"; label: "EUR"; }, { code: "USD"; id: "usd"; label: "USD"; }, { code: "GBP"; id: "gbp"; label: "GBP"; }]


emptyJoinGoals

const emptyJoinGoals: JoinGoals


gettingStartedPath

const gettingStartedPath: "/getting-started" = "/getting-started"


goalsSchema

const goalsSchema: ZodObject<{ currency: ZodEnum<{ eur: "eur"; gbp: "gbp"; usd: "usd"; }>; metric: ZodEnum<{ cac: "cac"; roas: "roas"; }>; monthlyBudget: ZodString; sells: ZodString; target: ZodString; }, $strip>


joinDraftSchema

const joinDraftSchema: ZodObject<{ deskGoals: ZodCatch<ZodOptional<ZodRecord<ZodString, ZodObject<{ currency: ZodString; direction: ZodEnum<{ decrease: "decrease"; increase: "increase"; }>; extras: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString>>>; measure: ZodString; target: ZodString; targetDate: ZodString; unit: ZodEnum<{ count: "count"; currency: "currency"; percent: "percent"; ratio: "ratio"; }>; }, $strip>>>>; desks: ZodOptional<ZodArray<ZodString>>; goals: ZodObject<{ currency: ZodEnum<{ eur: "eur"; gbp: "gbp"; usd: "usd"; }>; metric: ZodEnum<{ cac: "cac"; roas: "roas"; }>; monthlyBudget: ZodString; sells: ZodString; target: ZodString; }, $strip>; name: ZodString; person: ZodOptional<ZodString>; provisioned: ZodOptional<ZodObject<{ datastores: ZodArray<ZodObject<{ datastoreId: ZodString; failed: ZodOptional<ZodLiteral<true>>; name: ZodString; pending: ZodBoolean; }, $strip>>; organizationAlias: ZodString; organizationId: ZodString; }, $strip>>; provisioningStartedAt: ZodOptional<ZodNumber>; role: ZodOptional<ZodEnum<{ analyst: "analyst"; campaign-manager: "campaign-manager"; founder: "founder"; marketing-lead: "marketing-lead"; other: "other"; }>>; sources: ZodArray<ZodEnum<{ google: "google"; google-analytics: "google-analytics"; linkedin: "linkedin"; meta: "meta"; shopify: "shopify"; }>>; termsAcceptedAt: ZodOptional<ZodString>; website: ZodString; }, $strip>


joinPath

const joinPath: "/join" = "/join"


joinSources

const joinSources: readonly [{ id: "google"; label: "Google Ads"; }, { id: "meta"; label: "Meta"; }, { id: "google-analytics"; label: "Google Analytics"; }, { id: "linkedin"; label: "LinkedIn"; }, { id: "shopify"; label: "Shopify"; }]

Functions

currencyCode()

currencyCode(currency): string

Parameters

currency

"eur" | "usd" | "gbp"

Returns

string


gettingStartedDatastoreRoutes()

gettingStartedDatastoreRoutes(): ReactNode

Returns

ReactNode


goalTargetLabel()

goalTargetLabel(goals): string | undefined

The signup’s ad target in words, or nothing while it has none.

Parameters

goals
currency

"eur" | "usd" | "gbp" = currencySchema

metric

"roas" | "cac" = metricSchema

monthlyBudget

string = ...

sells

string = ...

target

string = ...

Returns

string | undefined


isJoinPath()

isJoinPath(pathname): boolean

Parameters

pathname

string

Returns

boolean


JoinAwaiting()

JoinAwaiting(props): string | number | bigint | boolean | Element | Iterable<ReactNode, any, any> | Promise<AwaitedReactNode> | null | undefined

Parameters

props

JoinAwaitingProps

Returns

string | number | bigint | boolean | Element | Iterable<ReactNode, any, any> | Promise<AwaitedReactNode> | null | undefined


JoinRoute()

JoinRoute(props): Element

Parameters

props

JoinRouteProps

Returns

Element


OnboardingReadinessProvider()

OnboardingReadinessProvider(props): Element

Parameters

props

OnboardingReadinessProviderProps

Returns

Element


ReadinessPanel()

ReadinessPanel(): Element | null

Returns

Element | null


selfServeSignup()

selfServeSignup(_realm?): boolean

Parameters

_realm?

string

Returns

boolean

Deprecated

Use useAuthContext instead: its selfServeSignup follows the server’s realm strategy; removed in 1.0. See https://developers.manta.eu/guides/migrating-to-screens/


SetupChecklist()

SetupChecklist(): Element | null

Returns

Element | null


SignupProvider()

SignupProvider(props): Element

Parameters

props

SignupProviderProps

Returns

Element