Studio components props
The generated props of every element on Studio components. The guide is where they are explained; this is every prop.
configStudioConfig
embeddedboolean
default: false
fallbackItineraryIdstring | null
default: null
The itinerary the download and directions controls act on when none is active.
A failed or unresolved detail read would otherwise leave both a dead button while the dialogs behind them can still answer for the configured id.
googleMapsApiKeystring
The Google Maps key the Street View handle bills its coverage check to.
Absent, the control renders nothing at all rather than a handle whose every drag ends in silence. That gate is the control's own: this passes the key and lets it decide.
streetViewHandleReactNode
activityDefaultSpeednumber | null
default: null
agentLockHintstring | null
default: null
emptyStateReactNode
Shown in place of the rows when the chain is empty AND nothing is being drawn.
engineChoiceboolean
default: false
True when the activity can be authored either way, so the inserts offer the choice.
labelstring
limitnumber
A ceiling the host holds the list to, shown as a persistent count/limit beside the section label. The studio sets none: omitted, the label carries the bare count.
limitTooltipstring
The sentence the info glyph beside a limit explains it with, shown only with a limit.
modeSegmentEditMode | null
The engine a single-engine activity authors in, as the first entry of availableEnginesForActivity names it. null for an activity the catalog gives no engine: nothing can be drawn for it, so the list renders no add control and no insert pill.
peerLockHint(holderId: string) => string | null
Resolves a peer's id to the sentence a held row speaks with.
renderIndicators(segmentId: string) => ReactNode
Host badges for one row, such as who is looking at the segment.
Called once for each segment while the slot's reference stands, and for every row again when the reference changes: the default row keeps what the slot drew for it until then. So a slot that reads a value outside its argument changes identity with that value, as a useCallback that lists it does.
renderRow(row: SegmentListRow) => ReactNode
Renders one row, replacing the published one entirely.
The escape hatch for a host whose row is genuinely its own: Mountaya's carries live-awareness badges, a localized sentence per refusable verb, and a peer's display name resolved from an organization directory. Everything the list derived arrives resolved, so a custom row re-derives nothing and cannot disagree with the gutter beside it.
Omit it and the list renders the published row, which is the whole point of the default: units, renderIndicators and peerLockHint cover the ordinary host without one.
unitsUnitFormatOptions
default: defaultUnits
unsavedHintstring | null
default: null
What a row the server has never seen says about itself.
activitySlugstring
The activity an inserted routed segment routes for.
itineraryIdstring
The itinerary whose chain the list renders and whose verbs it dispatches.
segmentsItineraryViewSource["segments"]
The COMMITTED chain, in chain order.
AddSegmentButton is the foot of the segment editor.
activitySlugstring
agentLockHintstring | null
default: null
engineChoiceboolean
default: false
insertLimitHintstring | null
default: null
modeSegmentEditMode | null
The engine a single-engine activity opens in, as the first entry of availableEnginesForActivity names it. null for an activity the catalog gives no engine: nothing can be drawn for it, and the control renders nothing.
SegmentRow renders one segment as a two-line editor row.
ascentstring
chainSegmentRowChainOptions
colorstring | null
deleteDisabledboolean
distancestring
distanceMetersnumber | null
durationSecondsnumber | null
groupSegmentRowGroupActions
groupRailSegmentRowGroupRail
indicatorsReactNode
modeSegmentEditMode
namestring
reasonMessagestring | null
speednumber | null
activityDefaultSpeednumber | null
trailingReactNode
activitySlugstring
The router profile a directions edit routes under.
agentLockHintstring | null
The sentence a row shows while a run drives the studio, or null where none can.
itineraryIdstring
The itinerary the row belongs to. Undefined for a draft's row, whose id is on no tile.
peerLockHintstring | null
The sentence a row shows while a peer holds the segment, or null where none can.
segmentIdstring
The segment the row stands for.
segmentNamestring
The segment's current name, which the rename opens on.
unsavedHintstring | null
The sentence a row shows while its segment is not saved yet, or null where none can be.
SegmentSeam is the hover gutter between two segment rows: a zero-height sibling of the rows carrying the pill that inserts a segment into this gap and the pill that merges the two rows it sits between. It is a sibling rather than something drawn inside a row because every row carries paint containment, which would clip an affordance offset above it; the styling lives in the list section's module, where the seam inherits the divider it replaces so the list's height is unchanged.
afterSegmentIdstring | null
controlsEnabledboolean
groupSegmentSeamGroup | null
groupChipDisabledHintstring | null
insertEngineChoiceboolean
insertModeSegmentEditMode | null
mergeSegmentChainMerge | null
emptyStateReactNode
emphasisSegmentIds(segmentId: string) => readonly string[] | undefined
itineraryIdstring
labelstring
segmentsItineraryViewSource["segments"]
unitsUnitFormatOptions
default: defaultUnits
agentLockHintstring | null
default: null
addControlReactNode
The add control, rendered below the list. Omitted on a surface that cannot add.
emptyStateReactNode
iconLabel(icon: ItineraryViewSource["waypoints"][number]["icon"]) => string
Names one icon in the reader's language, for the fallback a nameless waypoint shows.
labelstring
peerLockHint(holderId: string) => string | null
Resolves a peer's id to the sentence a held row speaks with.
readOnlyboolean
default: false
renderIconCircle(row: WaypointListRow) => ReactNode
Draws the disk of one row.
Called for a row when that row renders, and a row renders when its own facts change or when the reference of a prop the list hands every row does, this slot's among them. It is not called at each render of the list. So a slot that reads a value outside its arguments changes identity with that value, as a useCallback that lists it does: a slot whose reference stands keeps what it drew.
renderIndicators(waypointId: string) => ReactNode
Host badges for one row, such as who is looking at the place.
Called when renderIconCircle is, under the same rule: a slot that reads a value outside its argument changes identity with that value.
renderMenuItems(row: WaypointListRow) => ReactNode
Host menu items for one row, above its own verbs.
Per row rather than one node, for the reason renderIconCircle is: an item acting on a place has to know which place. A draft row is passed too: a host offering an action a waypoint cannot answer until it is saved decides that itself, from row.isDraft.
Called when renderIconCircle is, under the same rule: a slot that reads a value outside its argument changes identity with that value.
itineraryIdstring
The itinerary whose waypoints the list renders.
waypointsItineraryViewSource["waypoints"]
The SAVED waypoints, in position order.
actionReactNode
childrenReactNode
countnumber
labelstring
limitnumber
limitTooltipstring
requiredboolean
afterSegmentIdstring | null
controlsEnabledboolean
groupSegmentSeamGroup | null
groupChipDisabledHintstring | null
insertEngineChoiceboolean
insertModeSegmentEditMode | null
mergeSegmentChainMerge | null
checkedboolean
descriptionstring
disabledboolean
glyphUiGlyph
mediaReactNode
specsReactNode
titlestring
valuestring
checkedboolean
disabledboolean
glyphReactNode
labelstring
captionReactNode
disabledboolean
resource"collection" | "itinerary" | "zone"
valueboolean
aria-labelstring
descriptionstring
disabledboolean
labelstring
optionsreadonly { label: string; value: MapLanguage }[]
readOnlyboolean
Shows the language without letting it change, still legible and focusable.
renderMark(language: MapLanguage) => ReactNode
valueMapLanguage
labelReactNode
descriptionstring
valuestring[]
dataComboboxData
variantAllowlistVariant
modeLabels{ all: string; none?: string | undefined; specific: string }
placeholderstring
nothingFoundMessagestring
selectionCountLabel(count: number) => string
How the picker counts what it holds when not even one name fits whole on its line ("4 selected"), in place of the first name cut short. Left out, the first name is cut short before the count of the rest.
disabledboolean
readOnlyboolean
errorReactNode
Why the list was refused, shown under the picker, which it marks invalid and describes (under the select while the mode is not Specific and the picker is away). A refusal answered at an entry of the list (an entry the catalogue no longer holds) belongs here, beside the entry the reader removes, rather than in a toast. Left out, the field shows none.
namestring
membershipRoleOrganizationRole | null
ariaLabelstring
childrenReactNode
childrenReactNode
closeLabelstring
subjectReactNode
titlestring
itineraryIdstring
organizationIdstring | null
The itinerary's owning organization, which decides whether the reader is offered the act.
The FACT, not the conclusion, as UnpublishedPanel takes it: the notice asks whether the reader may edit the itinerary itself. Omitted (or the empty string a surface yields mid-read) is no answer yet, and the notice offers publishing: an unanswered question is not a refusal.
stateExtract<PublicationState, "dirty" | "unpublished">
itineraryIdstring
organizationIdstring | null
The itinerary's owning organization, which decides whether publishing is offered at all.
The FACT, not the conclusion: the panel asks usePublishableScope itself rather than taking a canPublish boolean, exactly as ItineraryActionsMenu takes organizationId rather than canEmbed. A host passing the conclusion would be a second place the rule lives, and a host that got it wrong would be silently trusted.
Null is an answer: a personal itinerary names no organization, and the panel states the rule in the act's place. Omitted (or the empty string a surface yields mid-read) is no answer yet, and the panel offers publishing: an unanswered question is not a refusal, and it is also the right default for a host that states no owner at all.
childrenReactNode
closeLabelstring
The close button's accessible name: the localized "Close", on every dialog, so a reader navigating by name meets one target wherever they are. Never a different dismissal's word: a confirm whose X announces "Cancel" beside a footer Cancel is two indistinguishable buttons.
Required rather than resolved here, which is the same contract every other surface in this package keeps: copy arrives from the host, through useMountayaStrings or through a prop.
closeOnClickOutsideboolean
Whether a click on the overlay closes the dialog. A shown-once dialog sets false.
closeOnEscapeboolean
Whether Escape closes the dialog. A shown-once dialog sets false.
descriptionReactNode | null
The line under the title: either a one-sentence description of the dialog, or the identity of the single named resource it acts on. Required: a dialog that states only a verb leaves the reader to infer what it will act on, and one that drops the line between phases moves everything under it.
Pass null to render without one, which a confirm does: its body IS that sentence, and repeating it in the header would say the same thing twice. Required-with-an-explicit-null rather than optional, so leaving it out is a compile error instead of a silent omission.
footerReactNode
The action row pinned below the body, usually a ModalFooter.
iconReactNode
The glyph for the leading icon accent, framed in a light ThemeIcon.
iconColorstring
The accent the header glyph is tinted with: a design-system colour name or a CSS colour.
A string rather than a tone, and rather than Mantine's own MantineColor. This shell is generic: it carries a product's own identity colour as readily as a caution, and a closed set of three would make the first unexpressible, and Mantine's colour type would make the second a design system's name.
ConfirmModal is the surface that does take a closed set (see its tone), because a confirmation has three meanings and no more.
keepMountedboolean
Keeps the body mounted while closed (Mantine's keepMounted), for a dialog whose body holds state that must survive a reopen.
openedboolean
sizeStudioSize | (string & {}) | number
default: "md"
The dialog's width: "md" is the form width, and a confirm or simple dialog passes "sm".
titlestring
The dialog heading, and its accessible name. A STRING, not a node: it renders inside the <h2> the dialog's aria-labelledby points at, where a node would both nest flow content in a heading and read out as part of the announced name. Anything richer belongs on description, which is a sibling of the heading for exactly that reason.
titleHiddenboolean
default: false
Whether the title is drawn for assistive technology alone: it names the dialog all the same, and no eye meets it. For a dialog whose body opens on a heading of its own that says the same, so the name is not shown twice. The header then holds the close button alone, with no divider under it.
withCloseButtonboolean
default: true
Whether the header shows its close button. A shown-once reveal phase hides it.
zIndexnumber
cancelLabelstring
The abandon button's label; pairs with onCancel to render a Cancel.
Required in practice ALONGSIDE confirmLabel and meaningless without it: a Cancel is what the confirm is abandoned in favor of, so a row offering only a way out is a dismissal wearing a button. The pairing is the call site's to keep rather than a type's, which a never union could only make harder to read.
confirmColorStudioTone
The confirm's tone: danger for a destructive confirm, primary for an affirmative one.
confirmDisabledboolean
Disables the confirm, for a confirm gated on a precondition the dialog shows itself.
confirmDisabledReasonstring
Disables the confirm and says why: in a tooltip under it, and in a polite live region for assistive technology. The host's own words.
confirmLabelstring
The primary action's label, and the reason the row exists.
OPTIONAL, for the one shape that has no primary: a dialog whose only offer is the side action in secondary (copy a revealed key, disable a share link). A "Done" beside it is the corner X spelled as a button: two dismissals, one of them dressed as the primary action. Without it the real action stands alone in the row and the X is the single way out.
Never a dismissal's word. A footer reading "Close", "Done" or "OK" is a dialog with nothing to do, and that dialog takes NO footer at all: the X already closes it.
mtStudioSpace
Extra top margin on the action row, opening space between it and the body.
pendingboolean
Whether the confirmed action is out: the confirm spins and Cancel is disabled, so the action is neither fired twice nor dismissed from under itself.
secondaryReactNode
A non-cancel secondary action pinned to the row's far left, opposite the confirm.
acknowledgeLabelstring
The label of an "I understand…" checkbox below the body that gates the confirm button, for the highest-stakes deletes, where a stray click would destroy a whole resource. Confirm stays disabled until it is ticked, and the tick resets each time the dialog opens.
bodyReactNode
The consequence the reader confirms: a string renders as a paragraph, a node as it is.
cancelLabelstring
The footer's dismissal, which keeps things as they are ("Cancel", "Keep editing").
closeLabelstring
The header close button's accessible name: the localized "Close". It is distinct from cancelLabel even though both dismiss: two buttons in one dialog that announce themselves identically are indistinguishable to anyone navigating by name.
confirmLabelstring
The footer's confirm, named by its verb ("Delete itinerary").
iconReactNode
Overrides the leading header glyph.
loadingboolean
default: false
Whether the confirmed action is out: Confirm shows its spinner, and every way out (Cancel, the close button, Escape and the overlay) is held until it settles.
openedboolean
Whether the dialog shows. The caller owns it.
titlestring
The dialog's heading and accessible name, in sentence case ("Delete itinerary").
toneConfirmationTone
default: "destructive"
How loud the prompt is. destructive is the default because it is the safe direction to be wrong in: this dialog exists for consequential verbs, so the loudest treatment is the default and a softer one is an explicit opt-in.
The BUS's own vocabulary, and that is the point of taking it rather than two colour props. A tool declares a tone on its confirm policy, useConfirmGate hands it straight through, and nothing between the two has to know what red is.
zIndexnumber
The dialog's stacking order, for a confirm raised over a surface that sets its own, such as the full-screen scrim of an agent-driving overlay, so the confirm stays clickable on top.
backDisabledboolean
backDisabledLabelstring
backLabelstring
iconundefined
actionsReactNode
descriptionstring
subtitleReactNode
titleReactNode
childrenReactNode
bannerReactNode
hintReactNode
primaryDisabledboolean
primaryDisabledReasonstring
primaryLabelstring
primaryLoadingboolean
secondaryReactNode
The flow's lesser verbs, on the button's row before it.
childrenReactNode
titlestring
heightnumber
default: 44
Each stripe's height, in pixels: a list row's resting height, so the skeleton holds the space the rows will.
rowsnumber
default: 3
How many stripes to draw.
actionReactNode
descriptionstring
iconReactNode
sizeEmptyStateSize
default: "md"
titlestring
childrenReactNode
titlestring
messagestring | null
glyphSizestring
labelstring
sizestring
default: "1.75rem"
slugRestActivitySlug
ascentstring
default: ""
distancestring
default: ""
namestring
qualifierstring
slugRestActivitySlug | null
createdByIdstring
The id of the user who created the itinerary, its own created_by.id. With organizationId it decides whether the reader may change the itinerary: a personal itinerary is its author's alone. Omitted, no author is known, and under a roster the host states a personal itinerary offers no item that changes it.
editItemReactNode
The item that opens the editor, which only a host can build: it is a LINK to their own route, and it has to behave like one (a modifier-click opens a tab, a right-click offers the address). A <Menu.Item component={Link}> from their router goes here.
Omitted, the item is not rendered, which is also what a host already INSIDE the editor wants: there is nowhere left to navigate. It is left out for a reader who may not edit the itinerary, as Rename is.
itineraryIdstring
The itinerary every item acts on.
organizationIdstring
The id of the organization that owns the itinerary, its own organization_id, which gates every output of the menu. Every host passes the itinerary's own, so the gate runs against the real owner rather than a workspace fallback, a foreign itinerary opened by a direct link included. Omitted, with no owner known, every output is withheld.
positionFloatingPosition
default: "bottom-end"
Where the dropdown opens. A host anchored to the bottom of the viewport (the elevation panel) passes a "top-*" position, and the menu then opens upward and stays up rather than flipping back down. The item order is the same either way: Delete stays last.
publishedboolean
default: false
Whether the itinerary has a publication, which puts the Unpublish item in the menu for a reader who holds the write grant. The host answers it because the host holds the record (the sidenav row has the listing's status, the detail panel the open itinerary's). Omitted, by a surface that cannot answer, the item is not rendered rather than offered against an unknown state. It sits in its own band above Delete: the two are the ways an itinerary stops being available, and the divider between them says only one of the two is permanent.
segmentCountnumber
How many segments the itinerary holds. With none, every output that reads the geometry is disabled with its reason.
triggerVisibleboolean
default: true
Whether the trigger shows. The host turns it on while its row is hovered or focused, and an open menu always shows its trigger.
draftFlowDraftEditorFlow | null
The flow whose staged draft the form edits while itinerary is null: its metadata is read off the draft's session and written through the flow's setters, and Create commits the draft. Omitted or null, with no itinerary, the form is the manual create, whose submit creates an itinerary shell and arms its first segment.
itineraryItineraryWithDetails | null
The open itinerary, which the form edits: the activity is locked and the name renames in place. Collection membership lives in the Manage collections dialog. Null for a create or a staged draft.
stringsItineraryFormStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
collapsedboolean
default: false
Shrinks the profile to its characteristics row while a floating panel is open. A height-aware host (the in-app studio and the embed) drives it from the resolved profile visibility.
embeddedboolean
default: false
Whether the panel is drawn in an embed. The in-app studio renders the actions menu beside the segment chooser; an embed renders none, since its download lives in a map control. It also moves the analysis gate from the viewer's profile-insights entitlement to the publisher's showAnalysis.
segmentColorstring
One colour every band is painted in, in place of each segment's own, so the chart matches an embed's single-colour map. Omitted, each band keeps its segment's colour.
showAnalysisboolean
default: true
Whether the analysis section (the surface and way-type bars) renders.
showCharacteristicsboolean
default: true
Whether the characteristics row renders.
showElevationboolean
default: true
Whether the elevation chart renders.
showPaceControlboolean
default: false
Offers the reader their own travel pace, re-timing the profile's figures for their session alone. The surfaces that publish an itinerary to somebody else (the embed and the share view) pass it; the authenticated studio has a rate field per segment.
surfaceItinerarySurface
The snapshot the pace re-time is asked for. A preview that authenticates as the owner passes "published", so the reader's pace re-times the route a visitor is served rather than the draft. Omitted, the credential decides, which is the published copy for a visitor.
groupActionsSegmentRowGroupActions
groupRailSegmentRowGroupRail
insertModeSegmentRowChainOptions["insertMode"]
The engine an insert beside the row opens in, for an activity that offers one engine alone. Null for an activity no engine serves, whose row offers no insert. Omitted, an insert opens in the segment's own engine.
isCommittedboolean
itineraryIdstring
mergeNextDisabledReasonSegmentMergeDisabledReason | null
mergePreviousDisabledReasonSegmentMergeDisabledReason | null
previousSegmentIdstring | null
segmentItinerarySegment
splitDisabledReasonSegmentSplitDisabledReason | null
activityDefaultSpeednumber | null
activitySlugstring | null
isFirstboolean
isLastboolean
isOnlyboolean
liveSegmentItinerarySegment | null
previousEnd[number, number] | null
segmentItineraryDraftSegment
stringsDraftSegmentRowStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
activityDefaultSpeednumber | null
activitySlugstring | null
isFirstboolean
isLastboolean
namestring
renameInlineRename
stringsItineraryHeaderTitleStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
clientMapClient | null
The live map client, the segment family's draft source: a segment's handles live on the canvas, not in the store. The waypoint family ignores it.
itineraryIdstring | null
The itinerary every save is sent for, or null over a staged draft, whose saves the studio writes into the draft.
stringsEditorSaveFooterStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
draftFlowDraftEditorFlow
The flow whose staged draft the Create action commits.
stringsStagingCreateFooterStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
colorstring | null
colorlessboolean
default: false
disabledboolean
default: false
iconWaypointIcon | null
itineraryIdstring
labelstring
sessionboolean
default: false
waypointIdstring
draftFlowDraftEditorFlow
The staging flow that seeded the unsaved draft: a suggested route or an imported file. It is the flow the panel is in, as the studio's DraftEditorFlow names it.
stringsDraftProvenanceBannerStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
createdByIdstring
The id of the user who created the zone, its own created_by.id. With organizationId it decides whether the reader may reshape, withdraw or delete the zone: a personal zone is its author's alone. Omitted, no author is known, and under a roster the host states a personal zone offers none of the three.
levelZoneEditLevel
The zone's severity, which a reshape by hand opens its edit in.
modeZoneEditMode
The zone's shape, which a reshape by hand opens its edit in.
organizationIdstring | null
The organization the zone belongs to, or null for one kept in the personal space: the scope the host's writeRefusal is asked about, so a zone whose scope takes no edit offers Reshape by hand disabled, with the reason, and with createdById the owner the reader's write grant is read against. Omitted, no scope refuses Reshape by hand and the verb answers for itself.
publishedboolean
default: false
Whether the zone has a publication, which puts the Unpublish item in the menu for a reader who holds the write grant. The host answers it because the host holds the record (the panel has the bound zone's status). Omitted, by a surface that cannot answer, the item is not rendered rather than offered against an unknown state. It sits in its own band above Delete: the two are the ways a zone stops being available, and the divider between them says only one of the two is permanent.
sourcedboolean
Whether the zone is computed from a stored query, the one kind Reshape by hand is offered for, to a reader who holds the write grant.
zoneIdstring
The saved zone the menu acts on.
stringsZoneActionsMenuStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
childrenReactNode
The surface a render error is contained to.
childrenReactNode
The studio's own content: every surface inside it portals into this scope's node.
useKeysStudioEmbedKeysSeam
The hook that answers the publishable keys an embed of the resolved organization may carry.
The wizard calls it as a hook, on every render, so it keeps one identity for the wizard's life: a hook declared at module scope, as EmbedWizard's example hands one. Handing another hook, or none, to an open wizard changes the hooks it calls.
useOrganizationStudioEmbedOrganizationSeam
The hook that answers what the host can say about the organization the resource belongs to. It keeps one identity for the wizard's life, as useKeys does.
targetShareLinkTarget
The itinerary or the collection the snippet is authored for, as { kind, id }: the target studio.embed.open takes and the embed slot holds.
stringsEmbedWizardStrings
Overrides the words this surface says, for this surface only.
Folded onto whatever the provider resolved, so an override naming one key leaves the rest of the section alone, and carried down to the rows and pickers this surface mounts. Scoped to the sections it renders: a key it never says is a type error rather than a silent no-op.
configEmbedConfig
fieldEmbedConfigField
layerOptionsEmbedLayerOptions
safetyRulesEmbedSafetyRules | undefined
childrenReactNode
picturesImportRoutingGuidePictures
The pictures the guide's two comparisons are drawn from, each as a URL the host serves. The package ships none, so a host that supplies none gets both arguments in words.
An on* handler suppresses the element's own default. Left unset, the element acts; set, it becomes presentational and your handler decides. The two never both fire.
onExplainEngines() => void
onExport(segmentId: string) => void
Downloads a segment, called with its id, which the published rows offer as Download segment once the chain carries them. Omitted, no row offers a download. Downloading is a Map Publishing act, which the viewer's publish entitlement answers: a host passes it to a viewer holding publish.
onFailure(failure: SegmentRowFailure) => void
A refusal from one of the list's chain verbs or group verbs, in the row's own vocabulary.
SegmentRowFailure rather than a union of the list's own, because a host maps every refusal to a sentence in ONE place: a gutter's insert and a row menu's insert are the same refusal reaching the user from two controls, and giving them two vocabularies would make the host answer the same question twice and eventually differently.
For the same reason it hears the refusals a row keeps as its lastFailure and no others: a withheld confirmation (isConfirmationWithheld) never reaches it, since the verb never ran.
onOpen(row: WaypointListRow) => void
What a single click on a row's body opens, replacing the move session it otherwise starts.
Per row for the reason renderMenuItems is: whatever it opens has to know which place. A surface that leaves it out keeps the move, which is what a list with no dialog behind it should do.
onFailure(failure: WaypointRowFailure) => void
A refused verb of a row, handed to the host to report where it belongs on their surface.
onEditGroup(groupId: string) => void
onInsert(afterSegmentId: string | null, mode: SegmentEditMode) => void
onMerge(segmentId: string) => void
onMergePreview(segmentIds: readonly string[] | null) => void
onToggle(enabled: boolean) => void
onChange(isPrivate: boolean) => void
onChange(language: MapLanguage) => void
onChange(next: string[]) => void
onClose() => void
onClose() => void
onClose() => void
onSubmitFormEventHandler<HTMLFormElement>
Renders the body AND the footer as one <form> with this submit handler, so a footer whose confirm omits onConfirm submits it. Without this the footer is a sibling of the body and a form-backed dialog would have to smuggle its action row into children to keep the submit button inside the form.
onCancel() => void
Abandon handler the Cancel button calls; pairs with cancelLabel.
onConfirm() => void
Called by the confirm.
onCancel() => void
Called by every dismissal: Cancel, the close button, Escape and the overlay.
onConfirm() => void
Called by Confirm.
onBack() => void
onPrimary() => void
onToggle(opened: boolean) => void
Told the menu's open state at each change of it: true as the reader opens the menu and false as it closes, whichever way it closes. A parent holds its own surface visible while the menu is open through it (the sidenav row pins its data-menu-open highlight this way).
A co-pilot run that starts while the menu is open closes it, and that close is reported as false like any other, so a host that mirrors the state holds nothing open through the run and the menu does not open by itself as the run ends.
onRename() => void
The host's rename entry point. Present, the menu shows a Rename item that calls it, to a reader who may edit the itinerary; omitted (a host with no inline rename, such as the elevation panel), the item is not rendered.
onExportSegmentRowProps["onExport"]
Downloads a segment, called with this row's id, which puts Download segment in a committed row's menu. It is the published row's own onExport, handed down unchanged: the list that holds the viewer passes it to a viewer holding publish, and a row given none offers no download.
onPatch(patch: EmbedConfigPatch) => void