Skip to content
API reference menu
React and Next.js library

Booking Elements

Typed booking components and server helpers for a shop website.

View as Markdown

Install

Outdoor Grid grants package access. Add the GitHub Packages registry to your site, then install the exact release. Keep site keys in server code.

Install
# GitHub Packages access is granted by Outdoor Grid.
printf '%s\n' '@ogattermayr:registry=https://npm.pkg.github.com' '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' > .npmrc
pnpm add @ogattermayr/outdoor-grid-booking@0.4.5 --save-exact
pnpm add react@^19 @tanstack/react-query@^5.104

Use a controlled element

Import the package CSS once. This small component uses the same PeopleStepper example as the guide. Use GuestBookingFlow for a complete booking journey.

Usage
"use client";

import { useState } from "react";
import { PeopleStepper } from "@ogattermayr/outdoor-grid-booking/react";
import "@ogattermayr/outdoor-grid-booking/styles.css";

export default function BookPage() {
  const [people, setPeople] = useState(2);
  return (
    <PeopleStepper
      label="Riders"
      sub="How many people are coming?"
      value={people}
      min={1}
      max={20}
      onChange={setPeople}
    />
  );
}
Exported type

BookingProviderProps

shopstringrequired

The shop's slug: the basket is `og-trip:<shop>`, every query key starts with it.

themePartial<BookingTheme>

The shop's tokens; leave out when the site's CSS sets `--og-*` on a parent.

wordsShopWordList
localestring

en, it, de or fr.

currencystring

ISO 4217, from the site read.

countrystring

The shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM.

transportBookingTransport

How the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/<op>`).

clientBookingClient

A client made by the site (a test's, a check's); wins over `transport`.

storagePicksStorage

Where the basket keeps the picks; defaults to localStorage (memory when it is refused).

childrenReactNode
Exported type

GuestBookingFlowProps

routerFlowRouterrequired
doorFlowDoor

How the guest came in (a kind of riding, a tour and its day); `start` when left out.

bar{ logo?: ReactNode; nav?: ReactNode; end?: ReactNode; }

The site's bar: its logo, its navigation and the end slot (language, the trip). Null: no bar (inside the site's own header).

footerReactNode

Under the step's foot: the site's own footer.

looksFlowLooks
linksFlowLinks
loadStripeStripeLoader

`loadStripe` from

termsHrefstring

The shop's rental terms, linked on who books it.

accountHrefstring

The guest's own page (their trips), opened from their name in the bar.

onBooked(booked: FlowBooked) => void

Booked: the reference and the view token. The flow shows Booked itself.

nowFlowNow

The shop's clock now; left out, the site read's notice.

startPartial<GroupState>

(Stitch, additive.) Where the flow opens: laid over the fresh trip once, when it mounts (the gallery, tests, a site restoring its own copy). Memory only, like the rest of the trip.

layout"stack" | "side"

(Stitch, additive.) The computer's layout or the phone's; left out, the screen's width decides (768px).

returnBasestring

(Stitch, additive.) The shop site's own origin for Stripe's return (`https://shop.example`, HO1); left out, the page's origin when it reads as one.

bookedFlowBooked

(Stitch, additive.) A trip booked before this page drew (a site that kept the answer in memory, the gallery): Booked reads its confirmation with the view token.

holding{ asked?: components["schemas"]["PublicAskedLine"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; first_day: string; hold_expires_at: string | null; next: "done" | "pay_deposit" | "pay_full" | "requested"; paid_minor: number; payment_choice?: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; reference: string; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; total_minor: number; view_token?: string | null; }

(Stitch, additive.) A booking already held for payment (W7-08's answer the site kept in memory, the gallery): Pay opens on it. Never read from storage.

rememberboolean

(Stitch, additive.) Keep the trip's picks (groupPicksOf: no names, measures or contacts) in this browser for a reload; true when left out. The gallery and tests turn it off.

anyThatFitsboolean

Bikes offers "Any that fits" (true when left out). False: no Any card; the group starts on the first model with a fitting size free on every rider's days, and Next writes that bike.

cartFlowCart

(Additive, one cart.) The shop's one cart: Plan's Add to cart beside Book it now, for a trip the cart holds. Left out (a booking-only shop, a custom front that has not opted in): Book it alone, as before.

kitIncludedboolean

The shop includes protection with every bike: a Kit step the trip skips says "included" in the band instead of "nothing to rent". Left out: false.

source"store" | "chatgpt" | "google_ttd" | "atlas"

(Additive.) Who sent the guest: `chatgpt` when the ChatGPT app's booking link opened the flow (`?src=chatgpt`). Sent with the booking as `source` (the shop sees where it came from); left out or null, the booking sends none. Never sent on a quote or a saved trip.

handoffstring

(Additive, job H1c.) The riding atlas's handoff token (`?handoff=`, `/core` handoffFromQuery): sent with the booking as `atlas_handoff` when `source` is `atlas`, kept in memory and the tab's draft once the address drops it. Never a sign in.

partnerstring

(Additive, DIST-NETWORK.) The Network partner who sent the guest (`?partner=`, `/core` partnerFromQuery): sent with the booking as `partner_code`, never on a quote or a saved trip. The page reads it from the address, which keeps it on every step. Left out: none.

placestring

(Additive, unify spec B.) The pickup place the link asks for (`?place=`, `/core` placeFromQuery): sent with the booking as `pickup_location_id` when the site lists it with pickup hours, else dropped quietly. The page reads it from the address, which keeps it.

originBookingOrigin

(Additive, unify spec B.) The store product a test ride was booked from (`?from=` with `src=store`, `/core` originFromQuery): sent with the booking as `origin`. Left out: none.

passkeysboolean

(Additive.) Guest passkeys: "Sign in with a passkey" in the sign in sheet and, after a code or password sign in, the offer to add one. Off when left out. Turn it on only on the shop's own domain (its custom domain or `{slug}.outdoorgrid.ai`, never outdoorgrid.ai itself) with the site route serving PASSKEY_ROUTE_OPERATIONS; it shows only where the browser can use a passkey.

onEventGuestEventSink

(Additive.) The guest's way through the flow for the site's analytics (PostHog plan 2c): each step viewed and completed, a Next that waits, Pay opening or failing, a refused booking and leaving before booking. Codes, counts, buckets and money bands only, scrubbed against the contract (`GUEST_EVENTS`): never a name, email, phone or anything the guest typed. Left out, nothing is sent anywhere.

hostKind"hosted" | "subdomain" | "custom_domain"

(Additive.) How the page is served, for `onEvent`; left out, read from the page's address (`hostKindOf`).

classNamestring
Exported type

GuestBookingProviderProps

shopstringrequired

The shop's slug: every query key starts with it.

themePartial<FlowTheme>

The shop's tokens and the flow's; leave out when the site's CSS sets `--og-*` on a parent.

wordsShopWordList

The shop's words over the package's (typed: every line of every step).

localestring

en, it, de or fr.

currencystring

ISO 4217, from the site read.

countrystring

The shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM.

transportBookingTransport

How the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/<op>`).

clientBookingClient

A client made by the site (a test's, the gallery's in-memory shop); wins over `transport`.

childrenReactNode
Exported type

AccountBoxProps

onbooleanrequired

Ticked: make an account with the email, with this password.

passwordstringrequired
onChange(patch: { account: boolean; password: string; }) => voidrequired
errorstring

The reason the password is not right yet.

missingboolean

The password is what Book waits on (`data-og-missing`).

Exported type

AccountOfferProps

passwordstringrequired
onPassword(password: string | null) => voidrequired
triedboolean

Book was pressed: a password not right yet says why.

classNamestring
Exported type

AddOnsProps

itemsAddOnView[]required
onQty(id: string, qty: number) => voidrequired
classNamestring
Exported type

AddRiderProps

onAdd() => voidrequired
substring
disabledboolean
classNamestring
Exported type

ApiTransportOptions

apiUrlstringrequired

The API origin, `https://api.outdoorgrid.ai` (http only for localhost or 127.0.0.1).

siteKeystringrequired

The shop's site key, `og_site_...`. Server only.

shopstringrequired

The shop's slug.

fetch{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }
timeoutMsnumber

Per call, in milliseconds (8000).

headers(call: BookingCall) => Record<string, string> | undefined

Extra headers for a call: the credential (CREDENTIAL_HEADER) and the signed guest address.

nextNextFetchOptions

Next's data cache for reads (`loadBookingServer`); without it every call is `no-store`.

Exported type

AskedOfferProps

offer{ answer_by: string | null; currency: string; days: components["schemas"]["DaySlot"][]; difference_minor: number; offered: components["schemas"]["Words-Output"]; pay: "online" | "at_shop" | "with_booking" | "none"; reference: string; rider: string | null; size: string | null; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; was: components["schemas"]["Words-Output"]; } & { [key: string]: unknown; }required
onAnswer(accept: boolean) => voidrequired
answered{ next: "done" | "pay_online" | "pay_at_shop"; payment: components["schemas"]["SitePaymentSession"] | null; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; } & { [key: string]: unknown; }

After GBF-15.

busyboolean
onPay() => void

(Stitch, optional.) After a yes that is paid online: open the payment for the difference.

timeZonestring

(Stitch, optional.) The shop's IANA zone for the time to answer by; UTC when left out.

classNamestring
Exported type

AskTheShopCardProps

askedreadonly ({ answer_by: string | null; days: components["schemas"]["DaySlot"][]; key: string | null; label: components["schemas"]["Words-Output"]; line: number; riders: string[]; sizes: string[]; } & { [key: string]: unknown; })[]required
onAsk() => voidrequired
onWithdraw(key: string) => void
riderName(key: string) => string

(Stitch, optional.) A rider key to their name; "Rider 2" by the order of the line's riders when left out.

timeZonestring

(Stitch, optional.) The shop's IANA zone for the time it answers by; UTC when left out.

busyboolean

(Stitch, optional.) The ask is on its way: the button takes no second press.

classNamestring
Exported type

BasketBarElementProps

totalMinornumberrequired
textstring

Words where the total goes when there is no price to show: "2 e-bikes" (MSoldOut).

classNamestring
notestring
actionPrimaryActionrequired
fromboolean

"from": the total is a from price.

Exported type

BasketBarProps

totalMinornumberrequired
fromboolean

"from": the total is a from price.

notestring
actionPrimaryActionrequired
classNamestring
Exported type

BasketSummaryElementProps

linesTripLineView[]required
totalLabelstring

"Total"; "From" while the trip is a from price.

childrenReactNode

Under the title, before the lines: the promo code once it is open.

classNamestring
titlestring
notestring

Under the total: "Pay at the shop".

totalMinornumberrequired
titleAsideReactNode

Right of the title: the promo code link.

Exported type

BasketSummaryProps

linesSummaryLine[]required
totalMinornumberrequired
notestring

Under the total: "Pay at the shop".

titlestring
titleAsideReactNode

Right of the title: the promo code link.

classNamestring
Exported type

BikeBuildProps

fitBikeFitrequired
noteboolean

The note under the parts (the catalog's word); left out on a phone.

classNamestring
Exported type

BikeDecisionProps

titlestringrequired
ways{ way: BikeWay; kick: string; title: string; line: string; }[]required
onWay(way: BikeWay) => voidrequired
onBack() => voidrequired

"Pick another time": the time comes off.

missingboolean

Next waits on a way out: marked missing, Next brings the guest here.

classNamestring
Exported type

BikeGeometryProps

fit({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFitrequired
markedReadonly<Record<string, readonly string[]>>

A size label to the riders who get it ("L": ["Marco", "Tom"]): those columns are marked.

classNamestring
Exported type

BikeRailProps

bikesreadonly { key: string; type: string; name: string; price: string | null; riders: readonly string[]; any?: boolean; thumb?: string | null; chip?: string | null; }[]required
valuestringrequired

null: any that fits.

onSelect(key: string | null) => voidrequired
layout"cards" | "chips"

Cards with a picture (computer, the default) or chips you swipe (phone).

classNamestring
Exported type

BikeShowcaseProps

namestringrequired
kickerstringrequired
blurbstringrequired
fit({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFitrequired
stageReactNode
stillstring

The still while the site's 3D bike loads, or when it has none.

wordstring

The big word behind the bike ("AMPD"); the name when left out.

spinningboolean
onSpin(spinning: boolean) => void
classNamestring
Exported type

BikesStepProps

productsreadonly { asks?: components["schemas"]["GuestAsk"][]; blurb?: components["schemas"]["Words-Output"] | null; charts?: components["schemas"]["PublicSizeChart"][]; closed_days: string[]; facts?: components["schemas"]["GearFact"][]; fit?: components["schemas"]["ProductFit"] | null; gear?: ("ski" | "bike" | "other") | null; id: string; image?: components["schemas"]["PublicImage"] | null; line?: components["schemas"]["Words-Output"] | null; model?: components["schemas"]["Words-Output"] | null; name: components["schemas"]["Words-Output"]; notice?: components["schemas"]["PublicSiteNotice"] | null; options: components["schemas"]["PublicAvailabilityOption"][]; parts?: components["schemas"]["PublicProductPart"][]; pick_size: boolean; }[]required

The models to rent on the trip's days (W7-06 `products`, with `fit` when the shop wrote it).

layout"stack" | "side"

The computer's stage beside the panel, or the phone's stack.

looksReadonly<Record<string, Partial<Omit<BikeModelView, "id" | "options" | "fit" | "any">>>>

Per product id (or `any`): what the site adds. The day price is the site read's, never made here.

dayPricesReadonly<Record<string, number>>

QA 27 Oct (G4): each product's day price from the trip's first day (W7-21 `prices`, product id to minor units), so a price shows per model before Plan; Any that fits says "from" the lowest. A site's own `looks` price still wins.

totalMinornumber

The quote's total so far; null while it is coming.

standInOmit<StandInProps, "className">

A kind running short (6b B, bikeStandInOf on the quote's refusal): the decision card.

nextstring

Next's label; "Next: protection" when left out.

problemstring

Why Next waits, in the guest's words; left out, the step says the group's own reason once Next was pressed.

busyboolean
loadingboolean

The availability read is on its way.

anyThatFitsboolean

The rail's "Any that fits" (default on). Off: no Any card; a rider on no model yet is shown on the first model that fits the whole group (firstFittingBike) and Next writes that model for them before their sizes.

stateGroupStaterequired
send(event: GroupEvent) => voidrequired
shopFlowShoprequired
nameOf(id: string) => string

A product, kind or tour id to its name in the guest's language (the site read).

classNamestring
Exported type

BikeStageProps

wordstringrequired

The big word behind the bike ("AMPD", "Any").

stillstring
altstring
childrenReactNode

The shop's 3D bike.

spinningboolean

Whether the shop's bike turns; with onSpin, a Pause / Turn button.

onSpin(spinning: boolean) => void
heightstring | number

CSS height; the stage fills its width.

classNamestring
Exported type

BikesViewProps

layout"stack" | "side"

The computer's stage beside the panel, or the phone's stack.

modelsBikeModelView[]required
ridersBikeRiderView[]required
assignRecord<string, string>required
valuestringrequired

The model in view.

onPick(modelId: string) => voidrequired
onMove(riderKey: string, modelId: string) => voidrequired

Tap a name: move that rider to the model in view (a rider on it: back to `back`).

backstring

The model the group just came from: a tap on a name on the model in view puts that rider back on it.

chosenRecord<string, string>

Sizes tapped by hand, by rider key.

onSize(riderKey: string, optionId: string) => voidrequired
tabBikesTab

The open tab; left out, the step picks one (sizes for any, else the build).

onTab(tab: BikesTab) => void
buildOpenboolean

The phone's build fold and sizes sheet.

onBuildOpen(open: boolean) => void
sheetOpenboolean
onSheetOpen(open: boolean) => void
spinningboolean
onSpin(spinning: boolean) => void
totalMinornumberrequired

The quote's total for the trip so far; null while it is coming.

standInOmit<StandInProps, "className">

A kind running short (6b B): the decision card, and Next waits for a pick.

nextstring

Next's label; "Next: protection" when left out.

onNext() => voidrequired
problemstring

Why Next waits, in the guest's words, shown beside it ("Pick a size for Marco.").

missingreadonly string[]

The riders Next waits on for a size: their size chips say so.

busyboolean
loadingboolean

The models are still loading.

unitsBikeUnits

Heights in cm (the default) or ft and in (the group's `units`).

classNamestring
Exported type

BookedProps

view{ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }required

W7-11: the booking as booked.

timeZonestringrequired

The shop's IANA zone: tour starts and the pick up time are read there.

leadNamestring

The booker's first name for the heading; left out: "See you Tuesday".

paidBookedPaid

Paid online now (Pay E); null or left out: paid at the shop.

askedreadonly { answer_by: string | null; days: components["schemas"]["DaySlot"][]; difference_minor?: number | null; key: string | null; label: components["schemas"]["Words-Output"]; line: number; riders: string[]; sizes: string[]; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; }[]

W7-08 `asked`: lines asked of the shop (Running short D).

shareReactNode

The site's "send the trip to your group" card (ShareTrip), under the ticket.

calendarHrefstring

An .ics address for "Add to calendar"; left out: no button.

tripHrefstring

The guest trip page; left out: the booking's own `trip_url`.

layout"stack" | "side"

stack: the phone; side: the computer, the ticket and the share card on the right.

classNamestring
Exported type

BookedTripProps

view{ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }required

W7-11: the booking as booked (BC1 fields optional).

timeZonestringrequired

The shop's IANA zone: days, times and the calendar file are read there.

layout"stack" | "side"

side: the computer, a main column and a side column; stack: the phone's order.

site{ booking: components["schemas"]["PublicSiteBooking"]; booking_locales?: ("en" | "it" | "de" | "fr")[]; brand: components["schemas"]["SiteBrand"]; default_locale?: string | null; languages: string[]; mode: "live" | "sample" | "try"; photos: { [key: string]: string; }; places: components["schemas"]["PublicSitePlace"][]; reviews_score: components["schemas"]["PublicSiteReviewScore"] | null; season: components["schemas"]["PublicSiteSeason"]; sections: { [key: string]: unknown; }[]; shop: components["schemas"]["PublicSiteShop"]; version: number; }

The site read: its hero photo, the place's address, town and hours.

heroBookedTripPhoto

The shop's hero photo (FlowLooks.booked.hero); left out, the site's, else the brand's band.

bikePhotosReadonly<Record<string, BookedTripPhoto>>

The shop's photo of each bike by its product id (FlowLooks.booked.bikes), shown instead of the read's `product.image`; left out, the read's, else the gear glyph.

placeBookedTripPhoto
shareReactNode

The site's "send the trip to your group" card (ShareTrip).

shareKeysreadonly string[]

The riders the share card lists: "Send the form" brings the guest to their email field.

paidMinornumber

A newer paid amount (GBF-31 right after Stripe said paid).

tripHrefstring

The guest trip page; left out, the booking's own `trip_url`.

onFile(file: BookedTripFile) => void

Takes the calendar file and the receipt instead of the browser's download (a test, a native shell).

classNamestring
Exported type

BookingFlowProps

routerBookingRouterrequired
needsTripNeedsrequired

What the trip asks for: which steps it has.

screensPartial<Record<"kind" | "pay" | "when" | "who" | "sizes" | "extras" | "days", ReactNode>>required

The site's screen for each step (its Elements wired to the machine).

problemstring

Why the step is not ready (a rider with no height, no dates): Next stays put and says it.

summaryFlowSummary

The trip's lines and total; leave out for the server's quote of the trip.

onBooked(answer: BookingAnswered<BookingAnswer<"book">>) => void

Booked: the answer (its reference, its view token for `/booking#t=`).

titlestring

The step's title, when the site says it its own way.

subtitlestring

The line under the title (the boards' italic one); null: none. Kind, Who and Pay have one by default.

phonestring

The shop's phone, offered when something cannot be booked online.

classNamestring
source"store" | "chatgpt" | "google_ttd" | "atlas"

(Additive.) Who sent the guest (`chatgpt`); sent with the booking as `source` only when set.

partnerstring

(Additive, DIST-NETWORK.) The Network partner's code (`?partner=`, partnerFromQuery); sent as `partner_code` only when set.

onEventGuestEventSink

(Additive.) The guest's way through the flow for the site's analytics (PostHog plan 2c): each step viewed and completed, a Next that waits, a refused booking and leaving before booking. Codes, counts and buckets only, scrubbed against `GUEST_EVENTS`: never a name, email, phone or the problem's words. Left out, nothing is sent anywhere.

hostKind"hosted" | "subdomain" | "custom_domain"

(Additive.) How the page is served, for `onEvent`; left out, read from the page's address.

Exported type

BookingLookProps

themePartial<BookingTheme>

The shop's tokens. Leave out when the site's own CSS sets `--og-*` on a parent.

wordsShopWordList

The shop's trade words and its own lines, per language.

localestring

en, it, de or fr; anything else reads English.

currencystring

ISO 4217, from the site read (`currency`).

countrystring

The shop's ISO 3166 country, from the site read (`shop.country_code`); null or left out reads as before.

childrenReactNode
Exported type

BookingRouteOptions

apiUrlstringrequired

The API origin, `https://api.outdoorgrid.ai`.

siteKeystringrequired

The shop's site key, from a server only variable that no browser bundle ever reads.

shopstringrequired

The shop's slug.

operationsreadonly ("link" | "site" | "availability" | "quote" | "book" | "current" | "checkout" | "view" | "session" | "me" | "people" | "again" | "sign-out" | "prices" | "kind-availability" | "saved-trip-save" | "saved-trip" | "saved-trip-delete" | "held" | "asked-offer" | "asked-offer-answer" | "withdraw" | "share" | "rider-trip" | "code" | "code-check" | "password" | "payment-session" | "payment" | "pay-at-shop" | "damage-cover" | "departure-bikes" | "passkey-sign-in-options" | "passkey-sign-in" | "passkeys" | "passkey-options" | "passkey-add" | "passkey-rename" | "passkey-remove" | "trip" | "trip-options" | "trip-cancel" | "trip-pay" | "trip-rider" | "trip-waivers" | "trip-waiver-sign" | "trip-share" | "trip-asked-answer" | "trip-asked-withdraw" | "trip-payment-session")[]

The operations served (DEFAULT_ROUTE_OPERATIONS). List `checkout`, `trip-pay`, `payment-session`, `payment`, `pay-at-shop` or `asked-offer-answer` to take payments.

clientIp(request: Request) => string | nullrequired

The guest's address from the host's trusted source (`clientIpFrom.vercel` on Vercel only, where Vercel overwrites the header). Required, so no site shares one rate limit bucket for all its guests by forgetting it; `null` says on purpose that the host has no trusted source.

originsreadonly string[]

Other origins the site's pages are served from, when the request URL is not the public one.

basePathstring

Where the route lives (`/api/outdoor-grid`); both cookies' Path.

fetch{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }
timeoutMsnumber
now() => number

The clock in milliseconds (Date.now), for the address signature and the session cookie.

Exported type

BookingServerOptions

apiUrlstringrequired
siteKeystringrequired
shopstringrequired
revalidatenumber

Seconds the site read is reused (60).

fetch{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }
Exported type

BookingTripButtonProps

classNamestring
onClick() => void
openboolean

The trip sheet or popover is open: the button shows it (DBasket).

labelledboolean

"Your trip" beside the bag (a computer's header).

hrefstring
Exported type

ButtonProps

variantButtonVariant
size"sm" | "md" | "lg"
wideboolean
icon"bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"

The icon after the label (arrow-right by default on a primary; null for none).

busyboolean

Waiting for the server: the button stays, says so and takes no second press.

hrefstring

A link instead of a button (the site's own address; see safeHref: an unsafe one draws a button).

childrenReactNoderequired
disabledboolean
formstring
formActionstring | ((formData: FormData) => void | Promise<void>)
formEncTypestring
formMethodstring
formNoValidateboolean
formTargetstring
namestring
type"submit" | "reset" | "button"
valuestring | number | readonly string[]
defaultCheckedboolean
defaultValuestring | number | readonly string[]
suppressContentEditableWarningboolean
suppressHydrationWarningboolean
accessKeystring
autoCapitalize"none" | "off" | "on" | "sentences" | "words" | "characters" | (string & {})
autoFocusboolean
classNamestring
contentEditableBooleanish | "inherit" | "plaintext-only"
contextMenustring
dirstring
draggableBooleanish
enterKeyHint"enter" | "done" | "go" | "next" | "previous" | "search" | "send"
hiddenboolean
idstring
langstring
noncestring
slotstring
spellCheckBooleanish
styleCSSProperties
tabIndexnumber
titlestring
translate"yes" | "no"
radioGroupstring
roleAriaRole
aboutstring
contentstring
datatypestring
inlistany
prefixstring
propertystring
relstring
resourcestring
revstring
typeofstring
vocabstring
autoCorrectstring
autoSavestring
colorstring
itemPropstring
itemScopeboolean
itemTypestring
itemIDstring
itemRefstring
resultsnumber
securitystring
unselectable"off" | "on"
popover"" | "auto" | "manual" | "hint"
popoverTargetAction"toggle" | "show" | "hide"
popoverTargetstring
inertboolean
inputMode"text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal"

Hints at the type of data that might be entered by the user while editing the element or its contents

isstring

Specify that a standard HTML element should behave like a defined custom built-in element

exportpartsstring
partstring
aria-activedescendantstring

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

aria-atomicBooleanish

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

aria-autocomplete"none" | "list" | "inline" | "both"

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

aria-braillelabelstring

Defines a string value that labels the current element, which is intended to be converted into Braille.

aria-brailleroledescriptionstring

Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.

aria-busyBooleanish
aria-checkedboolean | "true" | "false" | "mixed"

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

aria-colcountnumber

Defines the total number of columns in a table, grid, or treegrid.

aria-colindexnumber

Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

aria-colindextextstring

Defines a human readable text alternative of aria-colindex.

aria-colspannumber

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

aria-controlsstring

Identifies the element (or elements) whose contents or presence are controlled by the current element.

aria-currentboolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"

Indicates the element that represents the current item within a container or set of related elements.

aria-describedbystring

Identifies the element (or elements) that describes the object.

aria-descriptionstring

Defines a string value that describes or annotates the current element.

aria-detailsstring

Identifies the element that provides a detailed, extended description for the object.

aria-disabledBooleanish

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

aria-dropeffect"none" | "link" | "copy" | "execute" | "move" | "popup"

Indicates what functions can be performed when a dragged object is released on the drop target.

aria-errormessagestring

Identifies the element that provides an error message for the object.

aria-expandedBooleanish

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

aria-flowtostring

Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.

aria-grabbedBooleanish

Indicates an element's "grabbed" state in a drag-and-drop operation.

aria-haspopupboolean | "menu" | "true" | "false" | "dialog" | "grid" | "listbox" | "tree"

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

aria-hiddenBooleanish

Indicates whether the element is exposed to an accessibility API.

aria-invalidboolean | "true" | "false" | "grammar" | "spelling"

Indicates the entered value does not conform to the format expected by the application.

aria-keyshortcutsstring

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

aria-labelstring

Defines a string value that labels the current element.

aria-labelledbystring

Identifies the element (or elements) that labels the current element.

aria-levelnumber

Defines the hierarchical level of an element within a structure.

aria-live"off" | "assertive" | "polite"

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

aria-modalBooleanish

Indicates whether an element is modal when displayed.

aria-multilineBooleanish

Indicates whether a text box accepts multiple lines of input or only a single line.

aria-multiselectableBooleanish

Indicates that the user may select more than one item from the current selectable descendants.

aria-orientation"horizontal" | "vertical"

Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

aria-ownsstring

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

aria-placeholderstring

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

aria-posinsetnumber

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

aria-pressedboolean | "true" | "false" | "mixed"

Indicates the current "pressed" state of toggle buttons.

aria-readonlyBooleanish

Indicates that the element is not editable, but is otherwise operable.

aria-relevant"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

aria-requiredBooleanish

Indicates that user input is required on the element before a form may be submitted.

aria-roledescriptionstring

Defines a human-readable, author-localized description for the role of an element.

aria-rowcountnumber

Defines the total number of rows in a table, grid, or treegrid.

aria-rowindexnumber

Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

aria-rowindextextstring

Defines a human readable text alternative of aria-rowindex.

aria-rowspannumber

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

aria-selectedBooleanish

Indicates the current "selected" state of various widgets.

aria-setsizenumber

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

aria-sort"none" | "ascending" | "descending" | "other"

Indicates if items in a table or grid are sorted in ascending or descending order.

aria-valuemaxnumber

Defines the maximum allowed value for a range widget.

aria-valueminnumber

Defines the minimum allowed value for a range widget.

aria-valuenownumber

Defines the current value for a range widget.

aria-valuetextstring

Defines the human readable text alternative of aria-valuenow for a range widget.

dangerouslySetInnerHTML{ __html: string | TrustedHTML; }
onCopyClipboardEventHandler<HTMLButtonElement>
onCopyCaptureClipboardEventHandler<HTMLButtonElement>
onCutClipboardEventHandler<HTMLButtonElement>
onCutCaptureClipboardEventHandler<HTMLButtonElement>
onPasteClipboardEventHandler<HTMLButtonElement>
onPasteCaptureClipboardEventHandler<HTMLButtonElement>
onCompositionEndCompositionEventHandler<HTMLButtonElement>
onCompositionEndCaptureCompositionEventHandler<HTMLButtonElement>
onCompositionStartCompositionEventHandler<HTMLButtonElement>
onCompositionStartCaptureCompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCompositionEventHandler<HTMLButtonElement>
onCompositionUpdateCaptureCompositionEventHandler<HTMLButtonElement>
onFocusFocusEventHandler<HTMLButtonElement>
onFocusCaptureFocusEventHandler<HTMLButtonElement>
onBlurFocusEventHandler<HTMLButtonElement>
onBlurCaptureFocusEventHandler<HTMLButtonElement>
onChangeChangeEventHandler<HTMLButtonElement, Element>
onChangeCaptureChangeEventHandler<HTMLButtonElement, Element>
onBeforeInputInputEventHandler<HTMLButtonElement>
onBeforeInputCaptureInputEventHandler<HTMLButtonElement>
onInputInputEventHandler<HTMLButtonElement>
onInputCaptureInputEventHandler<HTMLButtonElement>
onResetReactEventHandler<HTMLButtonElement>
onResetCaptureReactEventHandler<HTMLButtonElement>
onSubmitSubmitEventHandler<HTMLButtonElement>
onSubmitCaptureSubmitEventHandler<HTMLButtonElement>
onInvalidReactEventHandler<HTMLButtonElement>
onInvalidCaptureReactEventHandler<HTMLButtonElement>
onLoadReactEventHandler<HTMLButtonElement>
onLoadCaptureReactEventHandler<HTMLButtonElement>
onErrorReactEventHandler<HTMLButtonElement>
onErrorCaptureReactEventHandler<HTMLButtonElement>
onKeyDownKeyboardEventHandler<HTMLButtonElement>
onKeyDownCaptureKeyboardEventHandler<HTMLButtonElement>
onKeyPressKeyboardEventHandler<HTMLButtonElement>
onKeyPressCaptureKeyboardEventHandler<HTMLButtonElement>
onKeyUpKeyboardEventHandler<HTMLButtonElement>
onKeyUpCaptureKeyboardEventHandler<HTMLButtonElement>
onAbortReactEventHandler<HTMLButtonElement>
onAbortCaptureReactEventHandler<HTMLButtonElement>
onCanPlayReactEventHandler<HTMLButtonElement>
onCanPlayCaptureReactEventHandler<HTMLButtonElement>
onCanPlayThroughReactEventHandler<HTMLButtonElement>
onCanPlayThroughCaptureReactEventHandler<HTMLButtonElement>
onDurationChangeReactEventHandler<HTMLButtonElement>
onDurationChangeCaptureReactEventHandler<HTMLButtonElement>
onEmptiedReactEventHandler<HTMLButtonElement>
onEmptiedCaptureReactEventHandler<HTMLButtonElement>
onEncryptedReactEventHandler<HTMLButtonElement>
onEncryptedCaptureReactEventHandler<HTMLButtonElement>
onEndedReactEventHandler<HTMLButtonElement>
onEndedCaptureReactEventHandler<HTMLButtonElement>
onLoadedDataReactEventHandler<HTMLButtonElement>
onLoadedDataCaptureReactEventHandler<HTMLButtonElement>
onLoadedMetadataReactEventHandler<HTMLButtonElement>
onLoadedMetadataCaptureReactEventHandler<HTMLButtonElement>
onLoadStartReactEventHandler<HTMLButtonElement>
onLoadStartCaptureReactEventHandler<HTMLButtonElement>
onPauseReactEventHandler<HTMLButtonElement>
onPauseCaptureReactEventHandler<HTMLButtonElement>
onPlayReactEventHandler<HTMLButtonElement>
onPlayCaptureReactEventHandler<HTMLButtonElement>
onPlayingReactEventHandler<HTMLButtonElement>
onPlayingCaptureReactEventHandler<HTMLButtonElement>
onProgressReactEventHandler<HTMLButtonElement>
onProgressCaptureReactEventHandler<HTMLButtonElement>
onRateChangeReactEventHandler<HTMLButtonElement>
onRateChangeCaptureReactEventHandler<HTMLButtonElement>
onSeekedReactEventHandler<HTMLButtonElement>
onSeekedCaptureReactEventHandler<HTMLButtonElement>
onSeekingReactEventHandler<HTMLButtonElement>
onSeekingCaptureReactEventHandler<HTMLButtonElement>
onStalledReactEventHandler<HTMLButtonElement>
onStalledCaptureReactEventHandler<HTMLButtonElement>
onSuspendReactEventHandler<HTMLButtonElement>
onSuspendCaptureReactEventHandler<HTMLButtonElement>
onTimeUpdateReactEventHandler<HTMLButtonElement>
onTimeUpdateCaptureReactEventHandler<HTMLButtonElement>
onVolumeChangeReactEventHandler<HTMLButtonElement>
onVolumeChangeCaptureReactEventHandler<HTMLButtonElement>
onWaitingReactEventHandler<HTMLButtonElement>
onWaitingCaptureReactEventHandler<HTMLButtonElement>
onAuxClickMouseEventHandler<HTMLButtonElement>
onAuxClickCaptureMouseEventHandler<HTMLButtonElement>
onClickMouseEventHandler<HTMLButtonElement>
onClickCaptureMouseEventHandler<HTMLButtonElement>
onContextMenuMouseEventHandler<HTMLButtonElement>
onContextMenuCaptureMouseEventHandler<HTMLButtonElement>
onDoubleClickMouseEventHandler<HTMLButtonElement>
onDoubleClickCaptureMouseEventHandler<HTMLButtonElement>
onDragDragEventHandler<HTMLButtonElement>
onDragCaptureDragEventHandler<HTMLButtonElement>
onDragEndDragEventHandler<HTMLButtonElement>
onDragEndCaptureDragEventHandler<HTMLButtonElement>
onDragEnterDragEventHandler<HTMLButtonElement>
onDragEnterCaptureDragEventHandler<HTMLButtonElement>
onDragExitDragEventHandler<HTMLButtonElement>
onDragExitCaptureDragEventHandler<HTMLButtonElement>
onDragLeaveDragEventHandler<HTMLButtonElement>
onDragLeaveCaptureDragEventHandler<HTMLButtonElement>
onDragOverDragEventHandler<HTMLButtonElement>
onDragOverCaptureDragEventHandler<HTMLButtonElement>
onDragStartDragEventHandler<HTMLButtonElement>
onDragStartCaptureDragEventHandler<HTMLButtonElement>
onDropDragEventHandler<HTMLButtonElement>
onDropCaptureDragEventHandler<HTMLButtonElement>
onMouseDownMouseEventHandler<HTMLButtonElement>
onMouseDownCaptureMouseEventHandler<HTMLButtonElement>
onMouseEnterMouseEventHandler<HTMLButtonElement>
onMouseLeaveMouseEventHandler<HTMLButtonElement>
onMouseMoveMouseEventHandler<HTMLButtonElement>
onMouseMoveCaptureMouseEventHandler<HTMLButtonElement>
onMouseOutMouseEventHandler<HTMLButtonElement>
onMouseOutCaptureMouseEventHandler<HTMLButtonElement>
onMouseOverMouseEventHandler<HTMLButtonElement>
onMouseOverCaptureMouseEventHandler<HTMLButtonElement>
onMouseUpMouseEventHandler<HTMLButtonElement>
onMouseUpCaptureMouseEventHandler<HTMLButtonElement>
onSelectReactEventHandler<HTMLButtonElement>
onSelectCaptureReactEventHandler<HTMLButtonElement>
onTouchCancelTouchEventHandler<HTMLButtonElement>
onTouchCancelCaptureTouchEventHandler<HTMLButtonElement>
onTouchEndTouchEventHandler<HTMLButtonElement>
onTouchEndCaptureTouchEventHandler<HTMLButtonElement>
onTouchMoveTouchEventHandler<HTMLButtonElement>
onTouchMoveCaptureTouchEventHandler<HTMLButtonElement>
onTouchStartTouchEventHandler<HTMLButtonElement>
onTouchStartCaptureTouchEventHandler<HTMLButtonElement>
onPointerDownPointerEventHandler<HTMLButtonElement>
onPointerDownCapturePointerEventHandler<HTMLButtonElement>
onPointerMovePointerEventHandler<HTMLButtonElement>
onPointerMoveCapturePointerEventHandler<HTMLButtonElement>
onPointerUpPointerEventHandler<HTMLButtonElement>
onPointerUpCapturePointerEventHandler<HTMLButtonElement>
onPointerCancelPointerEventHandler<HTMLButtonElement>
onPointerCancelCapturePointerEventHandler<HTMLButtonElement>
onPointerEnterPointerEventHandler<HTMLButtonElement>
onPointerLeavePointerEventHandler<HTMLButtonElement>
onPointerOverPointerEventHandler<HTMLButtonElement>
onPointerOverCapturePointerEventHandler<HTMLButtonElement>
onPointerOutPointerEventHandler<HTMLButtonElement>
onPointerOutCapturePointerEventHandler<HTMLButtonElement>
onGotPointerCapturePointerEventHandler<HTMLButtonElement>
onGotPointerCaptureCapturePointerEventHandler<HTMLButtonElement>
onLostPointerCapturePointerEventHandler<HTMLButtonElement>
onLostPointerCaptureCapturePointerEventHandler<HTMLButtonElement>
onScrollUIEventHandler<HTMLButtonElement>
onScrollCaptureUIEventHandler<HTMLButtonElement>
onScrollEndUIEventHandler<HTMLButtonElement>
onScrollEndCaptureUIEventHandler<HTMLButtonElement>
onWheelWheelEventHandler<HTMLButtonElement>
onWheelCaptureWheelEventHandler<HTMLButtonElement>
onAnimationStartAnimationEventHandler<HTMLButtonElement>
onAnimationStartCaptureAnimationEventHandler<HTMLButtonElement>
onAnimationEndAnimationEventHandler<HTMLButtonElement>
onAnimationEndCaptureAnimationEventHandler<HTMLButtonElement>
onAnimationIterationAnimationEventHandler<HTMLButtonElement>
onAnimationIterationCaptureAnimationEventHandler<HTMLButtonElement>
onToggleToggleEventHandler<HTMLButtonElement>
onBeforeToggleToggleEventHandler<HTMLButtonElement>
onTransitionCancelTransitionEventHandler<HTMLButtonElement>
onTransitionCancelCaptureTransitionEventHandler<HTMLButtonElement>
onTransitionEndTransitionEventHandler<HTMLButtonElement>
onTransitionEndCaptureTransitionEventHandler<HTMLButtonElement>
onTransitionRunTransitionEventHandler<HTMLButtonElement>
onTransitionRunCaptureTransitionEventHandler<HTMLButtonElement>
onTransitionStartTransitionEventHandler<HTMLButtonElement>
onTransitionStartCaptureTransitionEventHandler<HTMLButtonElement>
Exported type

CalendarKeyOwnProps

soonboolean

Also explain the too soon mark (a clock).

closedboolean

Also explain the closed mark.

unitstringrequired

"e-bikes free".

classNamestring
Exported type

CalendarKeyProps

unitstringrequired

"e-bikes free".

classNamestring
Exported type

ChangeSheetProps

stateGroupStaterequired
ridersreadonly string[]required
datesreadonly string[]required
differencenumberrequired

The difference the API quoted for the change (minor units); null while it loads.

onApply(events: readonly GroupEvent[]) => voidrequired
onClose() => voidrequired
lookPlanLook
onDraft(events: readonly GroupEvent[]) => void

The change as it is being made, as the group's events (for the caller to quote).

refusal{ can_ask?: boolean | null; can_save?: boolean | null; error: "lines_unavailable"; lines: components["schemas"]["PublicUnavailableLine"][]; ok: false; }

The API refused the change: a clash, its ways out.

onWay(way: PlanWay, change?: readonly GroupEvent[]) => void

A way out picked and applied (a neighbour size, a stand in); keep only closes. `change` is the change it was asked for, as the group's events: send both (`planWayEventsOf`).

halfDaysreadonly string[]

The days the shop rents half days on.

onOtherItem(riders: readonly string[]) => void

"Other bike": back to the bikes for these riders.

classNamestring
Exported type

ChipProps

childrenReactNoderequired
tone"notice" | "on"

on: the chosen chip; notice: a warning in the brand's notice tile.

dot"" | "few" | "none"
classNamestring
styleCSSProperties
Exported type

ChoiceCardProps

titlestringrequired
linestring

One line under the title.

metaReactNode

Small words at the foot, left: "Half or full days", "Next: tomorrow 9:00".

priceReactNode

Right of the meta: a price the API gave, already in words ("from €70 a day").

image{ src: string; alt: string; }

The shop's own photo (cover, its `alt` read out). Given, it wins over `media`; only with neither does the card draw its ground with `icon`.

mediaReactNode

The site's own media instead of the photo (the GearStage with its 3D viewer).

icon"bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"
selectedboolean
unavailablestring

Not on the guest's days: the reason, shown instead of the line ("Next free: Sat 24"). Not tappable.

problemstring

Needs a fix: the problem in one line ("2 seats, you are 5"), shown instead of the line.

fixLabelstring

The fix's way out, a small pill under the problem ("See the ways out"); calls `onFix`.

onFix() => void
onToggle() => void

Toggles the pick. Absent: the card only shows.

multiboolean

Several may be picked (aria-pressed) or one (role radio inside a radiogroup). Default true.

classNamestring
Exported type

ConfirmationElementProps

shopNamestring

Fills "Now relax and enjoy the ride with {shop}!"; leave out for no line.

headingstring

"You're booked" by default.

nextNextView[]

What happens next. Left out: the email and "before your day"; null: none.

layout"stack" | "side"

stack: the phone; side: the computer, the ticket on the right.

asideReactNode

Under the ticket on a computer: the shop on the site's map.

referencestringrequired
titlestringrequired
substring
rows{ icon: IconName; label: string; value: string; }[]required
actionsReactNode

Under the ticket: add to calendar, the map, My booking.

classNamestring
Exported type

ConfirmationProps

referencestringrequired
titlestringrequired
substring
rows{ icon: IconName; label: string; value: string; }[]required
actionsReactNode

Under the ticket: add to calendar, the map, My booking.

classNamestring
Exported type

ConsentTickProps

onbooleanrequired
onChange(on: boolean) => voidrequired
shopNamestringrequired
classNamestring
Exported type

DamageCoverOfferProps

offersreadonly CoverOfferRead[]required

The covers the trip can take (core coverOffersOf with the trip's rentals).

onbooleanrequired

Ticked.

onChange(on: boolean) => voidrequired
trip{ minor: number; quoted: boolean; }

The cover for this trip: `quoted` is the quote's own price (its `damage_cover` extras, in Plan's total while ticked), else the offer's own sum, price a day x days x items (never in a total). Null: not said.

classNamestring
Exported type

DateRangeCalendarOwnProps

unitstring

After a day's count for a screen reader: "e-bikes free". The calendar's own "free" when left out.

monthstringrequired

The first day of the first month shown.

months1 | 2
firststringrequired
laststringrequired
todaystringrequired

The shop's today (never the browser's).

freeRecord<string, FreeCount>required
blockedRecord<string, DayBlock>

Days the guest may not pick and why (before `notice.first_day`, closed days).

onPick(day: string) => voidrequired
onMonth(month: string) => void
minMonthstring

Before this month the back arrow is off (the shop's today's month).

maxMonthstring
classNamestring
Exported type

DateRangeCalendarProps

monthstringrequired

The first day of the first month shown.

months1 | 2
firststringrequired
laststringrequired
todaystringrequired

The shop's today (never the browser's).

freeRecord<string, FreeCount>required
blockedRecord<string, DayBlock>

Days the guest may not pick and why (before `notice.first_day`, closed days).

onPick(day: string) => voidrequired
onMonth(month: string) => void
minMonthstring

Before this month the back arrow is off (the shop's today's month).

maxMonthstring
classNamestring
Exported type

DayHalvesProps

valueWhenValuerequired
ctxWhenContextrequired
daystringrequired
onToggle(day: string, half: Half | null) => voidrequired

A half switched, or the whole day (null) on a day the shop does not split. Without `onPart`, a split day's pick calls it once per half that switches (on first, then off): Morning to Afternoon is two calls, so a page that passes only this must apply each on top of the last (a functional update). Pass `onPart` instead.

onPart(day: string, part: DayPick) => void

Full day, or a half day's morning or afternoon, picked on a day the shop splits (setDayLength, setDayHalf).

lookHalvesLook
classNamestring
Exported type

DayStripOwnProps

exactboolean

Show the exact count the API gives (seats). Off: plenty above 4 reads "5+" (gear). On by default.

daysDayView[]required
valuestringrequired
onChange(day: string) => voidrequired
unitstring

After the number: "seats".

classNamestring
Exported type

DayStripProps

daysDayView[]required
valuestringrequired
onChange(day: string) => voidrequired
unitstring

After the number: "seats".

classNamestring
Exported type

DecisionCardProps

titlestringrequired
substring
optionsreadonly DecisionOption[]required
pickedstring

The way out picked, if any.

onPick(key: string) => voidrequired
classNamestring
Exported type

DeparturePickerOwnProps

exactboolean

Show the exact seats the API gives. On by default (README: "tour seats exact").

departuresDepartureView[]required
valuestringrequired
onChange(id: string) => voidrequired
unitstring
classNamestring
Exported type

DeparturePickerProps

departuresDepartureView[]required
valuestringrequired
onChange(id: string) => voidrequired
unitstring
classNamestring
Exported type

EmbeddedCheckoutOptions

fetchClientSecret() => Promise<string>required

Resolves with the Checkout Session's client secret. The only place the secret goes.

onComplete() => void

Stripe says the payment is done (only with `redirect_on_completion: if_required`; else Stripe goes to the return address).

Exported type

ExtrasListProps

extrasreadonly { productId: string; name: string; line: string; price: string | null; added: boolean; }[]required
onToggle(productId: string) => voidrequired
classNamestring
Exported type

FieldProps

labelstringrequired
valuestringrequired
onChange(value: string) => voidrequired
placeholderstring
type"number" | "text" | "tel" | "email"
inputMode"text" | "tel" | "email" | "numeric" | "decimal"
autoCompletestring
autoCapitalize"none" | "off" | "sentences" | "words"

Off for an email: a phone's keyboard does not start it with a capital or correct it.

spellCheckboolean
errorstring

The reason it is not right yet, shown under it once the guest tried.

unitstring

A unit after the value: "cm".

namestring
missingboolean

The first field a waiting Next brings the guest to (`data-og-missing`).

classNamestring
Exported type

FinderProps

openbooleanrequired
onClose() => voidrequired
questions{ id: string; text: string; answers: { id: string; text: string; }[]; }[]required
answersstring[]required

The answer picked for each question, by index.

onAnswer(question: number, answer: string) => voidrequired
result{ kind: RideKindView; why?: string | null; }required

The kind both answers pick, with one line why; null until both are answered (or no rule).

onTake(kindId: string) => voidrequired
classNamestring
Exported type

FlowFrameProps

barReactNode

The shop's bar (ShopBar with the site's logo and navigation).

stepperReactNoderequired

The stepper band (StepperBand).

childrenReactNoderequired
footerReactNode

The step's foot (StepFoot): its summary, Back and the one primary.

asideReactNode

The trip beside the content (desktop) or in the bottom sheet (phone).

tripLabelstring

The trip's name on the phone's pill and the sheet; "Your trip" when left out.

tripNotestring

A short line on the phone's pill after its name (the quote's total in words).

bleedboolean

(0.2.1, additive.) From 1024px the step runs edge to edge under the band, with no trip beside it (Bikes: the stage beside its panel, which carries the total, as on the canvas). What sits above the step keeps the page's margins; the phone is unchanged.

classNamestring
Exported type

FlowRouteOptions

shopstringrequired

The shop's slug.

apiFlowApirequired
capabilitySecretstringrequired

The server only secret the booking capability is derived from (createBookingRoute: the site key).

capabilityContextstring

Sets one host's capabilities apart from another's under the same secret (CAPABILITY_CONTEXT).

operationsreadonly ("link" | "site" | "availability" | "quote" | "book" | "current" | "checkout" | "view" | "session" | "me" | "people" | "again" | "sign-out" | "prices" | "kind-availability" | "saved-trip-save" | "saved-trip" | "saved-trip-delete" | "held" | "asked-offer" | "asked-offer-answer" | "withdraw" | "share" | "rider-trip" | "code" | "code-check" | "password" | "payment-session" | "payment" | "pay-at-shop" | "damage-cover" | "departure-bikes" | "passkey-sign-in-options" | "passkey-sign-in" | "passkeys" | "passkey-options" | "passkey-add" | "passkey-rename" | "passkey-remove" | "trip" | "trip-options" | "trip-cancel" | "trip-pay" | "trip-rider" | "trip-waivers" | "trip-waiver-sign" | "trip-share" | "trip-asked-answer" | "trip-asked-withdraw" | "trip-payment-session")[]

The operations served (DEFAULT_ROUTE_OPERATIONS); list the payment ones to take payments.

originsreadonly string[]

Other origins the site's pages are served from, when the request URL is not the public one.

allowOrigin(origin: string, request: Request) => boolean

Replaces the Origin check (the request URL's origin or one of `origins`), e.g. a same site rule.

basePathstring

Where the route lives (`/api/outdoor-grid`); both cookies' Path.

cookies{ booking?: string; session?: string; }

The cookies' names (BOOKING_COOKIE, GUEST_SESSION_COOKIE).

now() => number

The clock in milliseconds (Date.now), for the session cookie's Max-Age.

Exported type

FlowRouterOptions

pathnamestringrequired

`usePathname()`: the path now, without query or fragment.

push(href: string) => voidrequired

`useRouter().push`.

basestringrequired

The flow's base (`/book`).

pathsPartial<Record<FlowPage, string>>

Other addresses for some pages; the rest keep FLOW_PATHS.

localesreadonly string[]

Language prefixes kept in front (`/it/book/who`). Default en, it, de, fr.

Exported type

FlowStepProps

stateGroupStaterequired
send(event: GroupEvent) => voidrequired
shopFlowShoprequired
nameOf(id: string) => string

A product, kind or tour id to its name in the guest's language (the site read).

classNamestring
Exported type

FreeProps

freeFreeCountrequired

The API's free words for a day, a kind or a departure.

unitstring

What follows the number: "free", "seats", "e-bikes free". Empty for the number alone.

classNamestring
Exported type

GearStageOwnProps

as"div" | "span"

The element drawn: a span when the stage sits inside a button (a closed kind's row).

styleCSSProperties
stillstringrequired

The still frame's address (the kind's `poster_url`). Null: the ground alone.

altstring
heightnumberrequired

Pixels; the stage fills its width.

stillWidthnumber

The still's drawn width in pixels (it overflows the stage, as on the boards).

spinningboolean

Shows "Spinning, drag to turn" while the site's model turns.

round"none" | "all" | "top"

Which corners are round: the top ones inside a card, all alone, none in a row.

childrenReactNode
classNamestring
Exported type

GearStageProps

stillstringrequired

The still frame's address (the kind's `poster_url`). Null: the ground alone.

altstring
heightnumberrequired

Pixels; the stage fills its width.

stillWidthnumber

The still's drawn width in pixels (it overflows the stage, as on the boards).

spinningboolean

Shows "Spinning, drag to turn" while the site's model turns.

round"none" | "all" | "top"

Which corners are round: the top ones inside a card, all alone, none in a row.

childrenReactNode
classNamestring
Exported type

GuidePickProps

onbooleanrequired
onPick() => voidrequired
classNamestring
Exported type

IconProps

name"bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"required
sizenumber
strokenumber
classNamestring
Exported type

ItemPickerProps

itemsItemView[]required
valuestringrequired
onChange(id: string) => voidrequired
layout"list" | "table"
classNamestring
Exported type

KindCardProps

kindRideKindViewrequired
onbooleanrequired
onPick(id: string) => voidrequired
lookKindCardLook
stageHeightnumber

The stage's height in pixels: 178 open, 330 side by default.

stillWidthnumber

The still's drawn width in pixels: 262 open, 500 side by default.

classNamestring
Exported type

KitBibProps

riderKitRiderrequired
ridersreadonly KitRider[]required
classNamestring
Exported type

KitBoardProps

itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]required

W7-06 `kit`; null while the read is on its way.

extrasreadonly KitExtraView[]

The shop's extras with their words and price words (`kitExtraView` from W7-06 `extras`); none: no extras card.

ridersreadonly KitRider[]required

The group, in Who's order, with their fit, kinds, tour and days.

valueKitPlanrequired
onChange(value: KitPlan) => voidrequired
unitsUnits

The guest's units (Who's switch): sizes and the head size are shown and typed in them.

kindNamesReadonly<Record<string, string>>

The names of the kinds of ride (`booking.kinds`), for "For Backcountry".

kitTotalnumber

The kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it.

fullKitTotalnumber

Full kit for everyone's total from the quote, when the site asked it.

pricestring

The quote's price for the foot's summary, in words; null: none yet.

nextPrimaryAction

The foot's Next (the site names the next step). Waits while a must is not settled.

onBack() => void

The foot's Back (computer).

defaultOpenKitOpen

The editor open at first (a gallery frame, a shared link).

childrenReactNode

Drawn above the riders (the site's own line).

missingboolean

Next was pressed with a must left out: the must's circle (computer) and the rider's row (phone) are marked missing (`data-og-missing`), so Next brings the guest there.

classNamestring
Exported type

KitCellSheetProps

item{ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; }required
riderKitRiderrequired
ridersreadonly KitRider[]required
valueKitPlanrequired
onChange(value: KitPlan) => voidrequired
unitsUnits
openbooleanrequired
onClose() => voidrequired
classNamestring
Exported type

KitCircleProps

viewKitCellViewrequired
labelstringrequired
textstringrequired
onTap() => void
smallboolean
pressedboolean

Draw as picked or not (the rider sheet's three circles).

classNamestring
Exported type

KitCostProps

itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]required
daysnumberrequired

The trip's days the kit covers.

totalnumber

The kit's total from the quote, minor units; null while it prices; undefined: not shown.

allFullbooleanrequired
fullTotalnumber

Full kit for everyone's price from the quote, when the site asked it; else the button has none.

onAll() => voidrequired
classNamestring
Exported type

KitDecisionProps

titlestringrequired
ways{ way: KitWayOut; kick: string; title: string; line: string; }[]required
onWay(way: KitWayOut) => voidrequired
onBack() => voidrequired

Closes the sheet on a phone; the foot still says what is missing.

classNamestring
Exported type

KitExtrasProps

extrasreadonly KitExtraView[]required
ridersreadonly KitRider[]required
valueKitPlanrequired
onToggle(extra: KitExtraView) => voidrequired
head"none" | "title" | "label"

The heading as a big title (the phone's Extras) or a small label (the computer's side card); `none` under a page title that already says Extras (W3 P4: no kit items).

classNamestring
Exported type

KitGridProps

itemsreadonly { id: string; name: string; note: string; must: boolean; rentable: boolean; }[]required
ridersreadonly { key: string; label: string; }[]required
kitReadonly<Record<string, Readonly<Record<string, KitChoice>>>>required
onCell(rider: string, itemId: string) => voidrequired
sizesReadonly<Record<string, string>>

A size option's label ("M"), for a rented cell.

classNamestring
Exported type

KitMenuPickerProps

riderstringrequired
valueKitMenurequired
onPick(menu: KitMenu) => voidrequired
itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]

The shop's kit items: "Helmet only" says the must's name, and is left out with no must.

classNamestring
Exported type

KitMenuPickProps

valueKitMenurequired
itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]required
onPick(menu: KitMenu) => voidrequired
as"list" | "chips"

chips: the phone sheet's two by two; list: the computer's drop down.

classNamestring
Exported type

KitRiderSheetProps

riderKitRiderrequired
ridersreadonly KitRider[]required
itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]required
valueKitPlanrequired
onChange(value: KitPlan) => voidrequired
onCell(item: SiteKitItem) => voidrequired

Opens a rented item's size (or head size).

openbooleanrequired
onClose() => voidrequired
classNamestring
Exported type

KitSizeSheetProps

item{ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; }required
riderstringrequired
unitsUnitsrequired
optionIdstringrequired
fitAtShopbooleanrequired
onPick(optionId: string | null, fitAtShop: boolean) => voidrequired
onHead(cm: number | null) => void
onClose() => voidrequired
headCmnumber

The rider's head size now, in cm (an item sized by head).

classNamestring
Exported type

KitStepProps

itemsreadonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]required

The shop's kit items (W7-06 `kit`).

extrasreadonly KitExtraView[]required

The shop's extras on the trip's days, with their price words from the API (`kitExtraView`).

kindOf(productId: string) => string | null | undefined

A rented model's kind of ride (`booking.kinds`), for items only some kinds need.

kitTotalnumber

The kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it.

defaultOpenKitOpen

The editor open at first (a gallery frame, a shared link).

missingboolean

Next was pressed with a must left out: the board marks it missing, Next brings the guest there.

stateGroupStaterequired
send(event: GroupEvent) => voidrequired
shopFlowShoprequired
nameOf(id: string) => string

A product, kind or tour id to its name in the guest's language (the site read).

classNamestring
Exported type

LevelPickProps

valuestringrequired
onChange(level: string) => voidrequired
look"words" | "bars"
classNamestring
Exported type

LevelsProps

valuestringrequired
onChange(level: string) => voidrequired
classNamestring
Exported type

ModelRailProps

modelsBikeModelView[]required
valuestringrequired

The model in view.

ridersBikeRiderView[]required
assignRecord<string, string>required

Rider key to the model they ride (null or missing: none; own bike riders are never here).

onPick(modelId: string) => voidrequired
layout"cards" | "chips"

Cards with a picture (computer) or chips you swipe (phone).

classNamestring
Exported type

MountCheckoutOptions

loadStripeStripeLoaderrequired
openSession(signal: AbortSignal) => Promise<CheckoutSession>required

GBF-30, with the site's one Idempotency-Key for this session. Aborted when the form goes.

onSession(session: CheckoutSessionShown) => void

The session opened (without its secret): the amount, the hold, the way.

onComplete() => void

Stripe says it is done: the site then reads GBF-31.

onState(state: Exclude<CheckoutMountState, "loading">) => voidrequired

ready once Stripe's form is in the element, failed when any part of the open fails or is late.

timeoutMsnumber

How long the open may take before it counts as failed; CHECKOUT_OPEN_MS when left out, Infinity for no limit.

Exported type

MyTripElementProps

titlestring

"Before your day" by default; null for no heading.

todosTodoView[]required
classNamestring
Exported type

MyTripProps

todosTodoView[]required
classNamestring
Exported type

NextFetchOptions

revalidatenumber | false
tagsstring[]
Exported type

NotSureProps

onClick() => voidrequired
largeboolean

The computer's size (DBikeKind).

classNamestring
Exported type

PartProps

classNamestring
Exported type

PathRouterOptions

pathnamestringrequired

The page's path now (`usePathname()`), without query or fragment.

push(href: string) => voidrequired

Goes to a path (`useRouter().push`).

pathsPartial<Record<"kind" | "pay" | "when" | "who" | "sizes" | "extras" | "days", string>>required

Each step's path, under `base`: `{ kind: "/book/bike", when: "/book/bike/dates", who: "/book/who" }`. Two steps on one path read as the earlier one. A step with no path goes nowhere.

basestring

A path in front of every path: `/book` with `{ who: "/who" }` is `/book/who`.

localesreadonly string[]

The language prefixes the site uses (`/it/book/who`); a prefix in front is kept. Default en, it, de, fr.

Exported type

PayAsideProps

wayPaymentWayrequired

The way chosen: its amount is Today and on the button; at the shop says the shop's pay line.

linesTripLineView[]required
amountsPayAmountsrequired
onPay() => voidrequired
busyboolean
disabledboolean
titlestring

"Your trip".

classNamestring
Exported type

PayAtShopElementProps

linesTripLineView[]required
layout"stack" | "side"

stack: the phone (MPay); side: the computer's form, the trip in the TripAside beside it (DPay).

classNamestring
totalMinornumberrequired
leadBookingLeadrequired
onLead(patch: Partial<BookingLead>) => voidrequired
errorsPartial<Record<keyof BookingLead, string>>
consentbooleanrequired
onConsent(on: boolean) => voidrequired
shopNamestringrequired
termsHrefstring
promoPromoCodeProps
payNotestring

"Nothing to pay now. Pay at the shop when you pick up: cash or card."

Exported type

PayAtShopProps

leadBookingLeadrequired
onLead(patch: Partial<BookingLead>) => voidrequired
errorsPartial<Record<keyof BookingLead, string>>
consentbooleanrequired
onConsent(on: boolean) => voidrequired
shopNamestringrequired
termsHrefstring
linesSummaryLine[]required
totalMinornumberrequired
promoPromoCodeProps
payNotestring

"Nothing to pay now. Pay at the shop when you pick up: cash or card."

classNamestring
Exported type

PayCheckoutProps

shopNamestringrequired
way"full" | "deposit"required

The way being paid now.

linesPayLineView[]required
totalMinornumberrequired
nowMinornumberrequired

Paid today (the session's amount).

restMinornumber

Left for pick up, as the site has it from the quote; 0 or null: nothing left.

depositMinornumber

The quote's deposit, for the phone's Deposit tile.

pickupDaystringrequired

The first pick up day, YYYY-MM-DD.

cancelTextstring

The shop's own cancel words.

onBack() => void

Back to the plan.

state{ can_pay_at_shop: boolean; currency: string; declined_reason: ("card_declined" | "authentication_failed" | "expired_card" | "other") | null; due_now_minor: number; hold_expires_at: string | null; paid_minor: number; reference: string; status: "held" | "paid" | "expired" | "declined"; view_token: string | null; } & { [key: string]: unknown; }

GBF-31 after a try: declined draws the "Your trip is kept" card.

timeZonestringrequired

The shop's zone, for the hold's time.

todaystring

The shop's today (YYYY-MM-DD): a hold ending on another day says the day.

onPayAtShop() => void

Switch to paying at the shop (GBF-32); shown after a decline when the state allows it.

payAtShopBusyboolean
waysreadonly PaymentWay[]

The phone's toggle: the shop's ways. A new way is a new session (remount the slot with a key).

onWay(way: PaymentWay) => void
checkoutReactNoderequired

Stripe's form: a StripeCheckout.

layout"stack" | "side"

side: the computer, the trip beside Stripe (B to D); stack: the phone (8A).

classNamestring
Exported type

PayChoiceProps

waysreadonly PaymentWay[]required

The shop's ways, in order (paymentWays).

valuePaymentWayrequired
onChange(way: PaymentWay) => voidrequired
amountsPayAmountsrequired
depositPercentnumber

The shop's deposit %: "30% today". Left out: "Part today".

cancelTextstring

The shop's own cancel words, under the options (side only).

layout"stack" | "side"

side: the computer's radio cards with the heading (Pay A); stack: the phone's tiles (8A).

classNamestring
Exported type

PaymentReturnProps

viewCheckoutViewrequired

checkoutView(state, tries): useCheckoutState's `view`.

state{ can_pay_at_shop: boolean; currency: string; declined_reason: ("card_declined" | "authentication_failed" | "expired_card" | "other") | null; due_now_minor: number; hold_expires_at: string | null; paid_minor: number; reference: string; status: "held" | "paid" | "expired" | "declined"; view_token: string | null; } & { [key: string]: unknown; }

GBF-31's answer; null while the first read is on its way.

timeZonestringrequired

The shop's zone, for the hold's time.

todaystring

The shop's today (YYYY-MM-DD): a hold ending on another day says the day.

onAgain() => void

Waiting: read GBF-31 again (useCheckoutState's `again`).

onPlan() => void

Expired: back to the plan to check it again.

onRetry() => void

Declined: back to Pay for a new try.

onPayAtShop() => void

Declined, when the state allows it: pay at the shop instead (GBF-32).

busyboolean
classNamestring
Exported type

PeopleStepperProps

labelstringrequired
substring
valuenumberrequired
minnumber
maxnumber
onChange(n: number) => voidrequired
classNamestring
Exported type

PhoneFieldProps

labelstringrequired
valuestringrequired

What the field keeps: "+39 340 326 0080", or a number with no country as it was given.

onChange(value: string) => voidrequired
countrystring

The shop's ISO country (the site read's `shop.country_code`); left out: the look's.

errorstring
missingboolean

The first field a waiting action brings the guest to (`data-og-missing`).

namestring
classNamestring
Exported type

PlanBoardProps

planPlanrequired
panelPlanPanelrequired
onTapPlanTap

A tap on a bar, an empty cell or a phone line: the caller opens the change (`changeFor`).

badPlanTarget

A cell ringed in the bad colour: the clash on the sheet, a line taken while booking.

checked"checking" | "ok"

The check of bikes, sizes and seats for the plan: on its way, done; null: not shown.

receiptOmit<PlanCostsProps, "className" | "action">required

What it costs, from the API's quote.

sheetOmit<PlanSheetProps, "className" | "plan" | "target" | "change" | "focusRef">

The change sheet's own props, when the panel is a change.

whoOmit<WhoBooksFormProps, "className" | "action" | "due" | "why">

Who books it, when the panel is who.

duePlanDue

What is paid when the action is pressed; left out: the quote's total.

actionPrimaryAction

The one action: Book it (opens who books it), then Book it or Next: pay.

secondPrimaryAction

(Additive, one cart.) What it costs only: a second way under the action, outlined (Book it now under Add to cart), and why the action did not go through. Left out: the one action, as before.

alertstring
toaststring

The bar's words: what just happened; left out while changing: "Editing Lena and Tom on Thursday".

onUndo() => void

Undo the last change, while it shows.

footNotestring

The bar's right side on a computer: "Pay at the shop".

whystring

Why the action waits (who books it), beside it on both widths and said out loud.

iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>

The shop's own icons for its things (a ski shop's skis).

answerShopAnswer

When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".

coverOmit<DamageCoverOfferProps, "className">

Damage cover for the trip (board GuestKitCover), one line under the plan on every width; left out or with no offers: nothing shows.

sharedWithstring

(Additive, job H1c.) The shop's name when the riding atlas sent the guest: under the plan on every width, what goes to the shop with this booking and what never does. Left out: nothing.

classNamestring
Exported type

PlanCostsProps

linesSummaryLine[]required

The quote's lines ("4 bikes, 12 bike days"), from the API.

totalMinornumberrequired
pricingboolean

The quote is on its way: the amounts wait.

notestring

Under the total: "Nothing to pay now. Pay at the shop when you pick up."

waitingstring

Said instead of the total when there is none to wait for (a trip refused as it stands).

actionPrimaryAction
secondPrimaryAction

(Additive, one cart.) A second way under the action, outlined (a shop with the store: Book it now under Add to cart). Left out: the one action.

alertstring

(Additive, one cart.) Why the action did not go through, over it and said out loud. Left out: nothing.

classNamestring
Exported type

PlanDayListProps

stateGroupStaterequired
onDay(date: string, riders?: readonly string[]) => voidrequired
lookPlanLook
iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
answerShopAnswer

When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".

classNamestring
Exported type

PlanDaysProps

planPlanrequired
markedPlanChange

The change on the sheet: the lines of its riders on its days are marked.

onlyreadonly string[]

Only these days (the sheet's day on a phone, 7B); left out: every day.

onTapPlanTap
iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
answerShopAnswer

When the shop answers an asked line (core shopAnswerOf); left out: "the shop answers".

classNamestring
Exported type

PlanDecisionProps

clashPlanClashrequired
classNamestring
Exported type

PlanGridProps

planPlanrequired
markedPlanChange

The change on the sheet: its riders' cells on its days are marked.

badPlanTarget

A cell that clashes (a size gone): ringed in the theme's bad colour.

onTapPlanTap

Tapping a bar or an empty cell. Left out: the plan is read only.

iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
answerShopAnswer

When the shop answers an asked line (core shopAnswerOf); left out: "the shop answers".

classNamestring
Exported type

PlanLegendProps

planPlanrequired
iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
classNamestring
Exported type

PlanReceiptProps

quote{ add_ons?: components["schemas"]["SiteQuoteAddOn"][]; asked?: components["schemas"]["SiteQuoteAsked"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; extras?: components["schemas"]["SiteQuoteExtra"][]; first_day: string; lines: components["schemas"]["SiteQuoteLine"][]; next: "done" | "pay_deposit" | "pay_full" | "requested"; ok: true; payment_choice: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; riders?: components["schemas"]["SiteQuoteRider"][] | null; services?: components["schemas"]["SiteQuoteService"][]; shared?: components["schemas"]["SiteQuoteShared"] | null; total_minor: number; }required
riderName(key: string) => stringrequired

A rider key to their name.

actionPrimaryAction

The one action under the total (Book it).

classNamestring
Exported type

PlanSheetProps

planPlanrequired
targetPlanTargetrequired

What was tapped: its rider comes first among Who.

changePlanChangerequired
onChange(change: PlanChange) => voidrequired
onClose() => voidrequired
onApply() => voidrequired

Apply (or the picked way of a clash). Done by the caller, then the sheet closes.

halfDaysreadonly string[]

The days the shop offers half days on (W7-06 `periods`); left out: every day.

itemstring

The bike line, when the change holds a bike: "Shuttle LT, M and L".

onOtherItem() => void

"Other bike": back to the bikes for these riders. Left out: no link.

pricePlanPrice
clashPlanClash
busyboolean

Apply is being done (a quote, a re-check).

idstring

The sheet's id, for the bar that opened it (aria-controls).

focusRef(node: HTMLDivElement | null) => void

The sheet's node as it comes and goes (PlanBoard moves the focus in and back with it). Left out, the sheet does it itself (ChangeSheet).

classNamestring
Exported type

PlanStepProps

quote{ add_ons?: components["schemas"]["SiteQuoteAddOn"][]; asked?: components["schemas"]["SiteQuoteAsked"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; extras?: components["schemas"]["SiteQuoteExtra"][]; first_day: string; lines: components["schemas"]["SiteQuoteLine"][]; next: "done" | "pay_deposit" | "pay_full" | "requested"; ok: true; payment_choice: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; riders?: components["schemas"]["SiteQuoteRider"][] | null; services?: components["schemas"]["SiteQuoteService"][]; shared?: components["schemas"]["SiteQuoteShared"] | null; total_minor: number; }required

The quote of the trip as it stands (W7-07); null while it loads. Prices only from here.

onBook() => voidrequired
busyboolean
bookWaitstring

(Additive, W3 review.) Why Book it waits: the price on screen is not yet the price of what it would send (a newer basket is pricing). Book it is disabled and says this beside it. Left out: it does not wait.

lookPlanLook

The catalog's words for the bars (names, sizes, times); `nameOf` is the step's own.

iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
halfDaysreadonly string[]

The days the shop rents half days on (W7-06 `periods`); left out: every day.

draft{ difference: number | null; refusal?: PlanRefusal | null; }

The change on the sheet as quoted by the caller: the difference from the quote now, or a refusal.

onDraft(events: readonly GroupEvent[] | null) => void

The change on the sheet as the group's events, to quote; null when the sheet closes.

taken{ can_ask?: boolean | null; can_save?: boolean | null; error: "lines_unavailable"; lines: components["schemas"]["PublicUnavailableLine"][]; ok: false; }

The booking was refused a line (taken while booking): the decision card on who books it.

noPricestring

R5-flow: why there is no price (the quote failed, the shop refused the trip, nothing to book): said where the price goes and beside Book it, which waits. Null while it prices.

onWay(way: PlanWay, change?: readonly GroupEvent[]) => void

A way out picked: a neighbour size or a stand in, or ask the shop. Keep only closes. On the change sheet `change` is the change the way was asked for, as the group's events: send them with the way's, worked out on the trip they make (`planWayEventsOf`).

onOtherItem(riders: readonly string[]) => void

"Other bike": back to the bikes for these riders.

termsHrefstring
rentalTermsOmit<TermsSheetProps, "open" | "onClose">

(Additive, QA night 24 Oct S-17.) The shop's rental terms: "rental terms" opens them in a sheet (TermsSheet) instead of following `termsHref`. Left out: the link as before.

accountsboolean

The shop takes accounts at booking (W7-05 `booking.flow.accounts`).

countrystring

The shop's ISO country (the site read's `shop.country_code`): the phone's country to start.

answerShopAnswer

When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".

coverOmit<DamageCoverOfferProps, "className">

Damage cover (API return check section 5, board GuestKitCover): the trip's covers, ticked or not, and the cover's price for the trip; the tick goes out as the caller's (GuestBookingFlow sends the group's `cover` event). While ticked, the quote's own price for it (`trip.quoted`) is one "Damage cover" line on the receipt and in the total: the cover is added to the booking once it is made, so the quote's total leaves it out. Left out or no offers: nothing shows.

openWhoboolean

(Additive, G10.) The trip was brought back after a reload with who books it typed: Plan opens on who books it, as the guest left it. Read when the step mounts.

sharedWithstring

(Additive, job H1c.) The shop's name when the riding atlas sent the guest (`source` atlas): Plan, the step before Pay, lists what goes to the shop with this booking. Left out: nothing shows.

accountWhoBooksAccount

(Additive, W2 walk.) The signed-in guest's card: its name (when the booking rider has none), email and phone fill who books it's empty fields as it opens. Left out: only the rider's name.

cart{ onAdd: () => void; busy?: boolean; failed?: string | null; }

(Additive, one cart.) A shop with the store and a trip its cart can hold: what it costs offers Add to cart (the one primary action, `onAdd`) with Book it now under it (who books it, as before). `busy` while it goes in; `failed` says why it did not. Left out: Book it alone, as before.

stateGroupStaterequired
send(event: GroupEvent) => voidrequired
shopFlowShoprequired
nameOf(id: string) => string

A product, kind or tour id to its name in the guest's language (the site read).

classNamestring
Exported type

PlanTimelineProps

stateGroupStaterequired
selected{ rider: string; date: string; }
bad{ rider: string; date: string; }

A cell with a problem (a clash).

onCell(rider: string, date: string) => voidrequired
lookPlanLook

The catalog's words for the bars (names, sizes, times); left out: the ids.

iconsPartial<Record<PlanKind, "bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card">>
answerShopAnswer

When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".

classNamestring
Exported type

PromoCodeProps

promoPromoStaterequired
onOpen() => voidrequired
onCode(code: string) => voidrequired
onApply() => voidrequired
onRemove() => voidrequired
classNamestring
Exported type

RideKindPickerProps

kindsRideKindView[]required
valuestringrequired
onChange(id: string) => voidrequired
layout"stack" | "side"
onNotSure() => void

Opens the Finder; leave out when the shop has no finder. Draws the "Not sure?" tile.

classNamestring
Exported type

RidePhotosProps

photosreadonly TourPhoto[]required
defaultAtnumber

The photo shown first on a phone (0 based).

classNamestring
Exported type

RiderBibProps

nnumberrequired

1 based.

riderWhoRiderrequired
unitsUnitsrequired
placestring
askOwnboolean

(W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true.

onRider(patch: Partial<WhoRider>) => voidrequired
classNamestring
Exported type

RiderCardOwnProps

namestring

The rider's name, when the shop asks it here ("Later is fine"). The field shows with `onName`.

onName(name: string) => void
onWeight(kg: number | null) => void

The rider's weight in kilograms, for the bike's setup. The field shows with `onWeight`.

nnumberrequired
riderRiderViewrequired
youboolean
openboolean
sizestring

The size picked, shown on the closed row.

onHeight(cm: number | null) => voidrequired
onLevel(level: string) => voidrequired
onOpen() => void
extraReactNode
problemstring

The reason it is not ready, once the guest pressed Next.

classNamestring
Exported type

RiderCardProps

nnumberrequired
riderRiderViewrequired
youboolean
openboolean
sizestring

The size picked, shown on the closed row.

onHeight(cm: number | null) => voidrequired
onLevel(level: string) => voidrequired
onOpen() => void
extraReactNode
problemstring

The reason it is not ready, once the guest pressed Next.

classNamestring
Exported type

RiderChipsProps

ridersreadonly RiderChipView[]required
onToggle(key: string) => voidrequired
notestring

Under the chips (`5 of 6 seats`, `Lena and Tom ride on their own`).

labelstring

(Stitch, optional.) The group's name for a screen reader; "Who it is for" when left out.

classNamestring
Exported type

RiderRowProps

nnumberrequired
riderWhoRiderrequired
unitsUnitsrequired
onOpen() => voidrequired
classNamestring
Exported type

RiderSheetProps

openbooleanrequired
onClose() => voidrequired
nnumberrequired
riderWhoRiderrequired
unitsUnitsrequired
onUnits(units: Units) => voidrequired
placestring
askOwnboolean

(W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true.

onRider(patch: Partial<WhoRider>) => voidrequired
onNext() => void

Next rider; absent on the last, where the button says Done and closes.

classNamestring
Exported type

RiderSizePicksProps

modelBikeModelViewrequired
ridersBikeRiderView[]required

The riders on this model.

picksRecord<string, BikeSizePick>required

Each rider's size on it (picksOn).

onSize(riderKey: string, optionId: string) => voidrequired
missingreadonly string[]

The riders Next waits on for a size: their row says so and takes the focus.

unitsBikeUnits

Heights in cm (the default) or ft and in.

classNamestring
Exported type

RiderSizeRowProps

riderBikeRiderViewrequired
modelBikeModelViewrequired
pickBikeSizePickrequired
onSize(optionId: string) => voidrequired
compactboolean

A phone's sheet row: the name and the size chips only.

unitsBikeUnits

Heights in cm (the default) or ft and in.

classNamestring
Exported type

RiderTripPageProps

trip{ bring: components["schemas"]["Words-Output"][]; days: components["schemas"]["RiderTripDay"][]; expires_at: string; level: string | null; own_bike: { [key: string]: string | null; } | null; pickup: components["schemas"]["RiderTripPlace"] | null; reference: string; rider: string | null; shop: components["schemas"]["RiderTripShop"]; } & { [key: string]: unknown; }required
timeZonestring

(Stitch, optional.) The shop's IANA zone for the tours' times and the link's last day; UTC when left out.

classNamestring
Exported type

RideSheetProps

tour{ content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }required
onClose() => voidrequired
take{ label: string; onTake: () => void; }

Takes the time the button names for the group, then closes.

photosreadonly TourPhoto[]

The site's own photos of the tour; they win over the catalog's.

defaultPhotonumber

The photo shown first on a phone (0 based; a gallery frame).

classNamestring
Exported type

RunningShortProps

daysreadonly string[]required

The short days, YYYY-MM-DD in the shop's zone, in order: said once, as a detail.

freenumberrequired

How many of the trip's bikes the shop has (0 or more).

ofnumberrequired

How many bikes the trip needs: every rider who rents.

noneElseboolean

"No other size or bike is free then either.": neighbour sizes and stand-ins are gone too.

onAsk() => void

Book the free bikes now, the rest on the waitlist. Null when the shop takes no asks.

onRequest() => void

Send the request to the shop: the trip goes as a request, nothing paid now. Null: not offered.

onSave() => void

Save the trip, finish later (opens SaveTripSheet). Null when the shop keeps no saved trips.

pickedShortWay

The way the guest picked; the pick colours follow it.

busyboolean

Waiting for the server: the ways take no press.

answerShopAnswer

When the shop answers (core shopAnswerOf on W7-05 `booking.flow`); null: a neutral line.

classNamestring
Exported type

SavedRidersProps

ridersreadonly SavedRiderView[]required
pickedreadonly string[]required
onToggle(id: string) => voidrequired
unitsUnitsrequired
sincestring

"July": when they last booked. Absent: "from last time".

onAddNew() => void

Shows "Add a new rider".

classNamestring
Exported type

SaveTripSheetProps

openbooleanrequired
onClose() => voidrequired
emailstringrequired

The address, held by the host (a lead's email it already has fills it).

onEmail(email: string) => voidrequired
onSave(email: string) => Promise<SavedTripSavedAnswer>required

GBF-10 with the host's Idempotency-Key: the trip, the people, the step and this address.

timeZonestringrequired

The shop's zone (IANA), for the link's last day.

startSaveTripState

Where the sheet starts (the gallery draws each state); the form by default.

classNamestring
Exported type

SeatDecisionProps

titlestringrequired
ways{ way: WayOut; kick: string; title: string; line: string; }[]required
onWay(way: WayOut) => voidrequired
onBack() => voidrequired
missingboolean

Next waits on a way out: marked missing, Next brings the guest here.

classNamestring
Exported type

ShareTripProps

ridersreadonly ShareRiderView[]required

The riders to send to, in Who's order; the site leaves the booker out.

locale"en" | "it" | "de" | "fr"required

The language of the riders' emails.

onShare(body: TripShareBody) => Promise<TripSharedAnswer>required

The site calls GBF-60 with this body and its own Idempotency-Key, once per call.

copy(text: string) => Promise<void>

Copies text; left out: the browser's clipboard.

timeZonestringrequired

The shop's IANA zone for the links' end day.

initialPartial<ShareState>

Where the card starts (the gallery draws each state; a site leaves it out).

send"primary" | "outline"

(Additive.) The send button's style: the primary by default; `outline` on a page whose one primary is elsewhere (the confirmed page's Open my trip).

rentsboolean

(W3 P4, additive.) The trip rents something: the line names the gear and its size. False (a guided walk): "their own days and where to be". Default true.

classNamestring
Exported type

SheetProps

openbooleanrequired
onClose() => voidrequired
titlestringrequired

The sheet's name for screen readers and its title row.

as"auto" | "sheet" | "pop"

pop: the desktop header popover; sheet: the phone's bottom sheet. Both are drawn by CSS per width when "auto".

childrenReactNoderequired
classNamestring
Exported type

ShopBarProps

logoReactNode

The shop's mark, usually a link home.

childrenReactNode

The site's own navigation; hidden below 768px (the site's menu takes over).

endReactNode

After the sign in pill: the language, the trip button.

accountShopBarAccount

The guest: signed out shows "Sign in" (with `onSignIn`), signed in shows their name. Null: no pill.

classNamestring
Exported type

ShortDayCardProps

shortShortDayrequired
canAskbooleanrequired

The shop takes asked lines (W7-05 `booking.flow.can_ask`).

onSave() => void

Save the trip and finish later, when the shop keeps saved trips (`can_save`) and the page can.

changeShortChangerequired

End the day before, start the day after, or skip the day; null when the trip is that one day.

onAsk(day: string) => voidrequired
onChange(change: ShortChange) => voidrequired
look"sheet" | "card"

card: the computer's panel; sheet: the phone's options, each with its small label.

titleboolean

The sheet's title is the sheet's own; the card says it.

classNamestring
Exported type

SignInPromptProps

onSignIn() => voidrequired
onDismiss() => void

Shows "No thanks" (computer).

classNamestring
Exported type

SignInSheetProps

openbooleanrequired
onClose() => voidrequired
sendCode(email: string) => Promise<unknown>required

GBF-20: email a code. Resolves when sent (always, for any email).

checkCode(email: string, code: string) => Promise<unknown>required

GBF-21: check the 6 digits. Resolves when signed in.

signIn(email: string, password: string) => Promise<unknown>required

GBF-22: email and password. Resolves when signed in.

onSignedIn() => voidrequired

Signed in: after checkCode or signIn resolved (and the passkey offer, when there is one, was answered or closed), or after passkeySignIn resolved.

passkeySignIn() => Promise<unknown>

GP-01 and GP-02 with the browser's window: shows "Sign in with a passkey" (a neutral button beside the code and the password; the code stays the primary). Pass it only when the site turns passkeys on and the browser can. Resolves when signed in.

addPasskey() => Promise<unknown>

GP-04 and GP-05 with the browser's window: after a code or password sign in the sheet offers "Add a passkey" or "Not now". Pass it only when passkeys are on, the browser can and the guest has not said Not now on this device lately.

onPasskeyLater() => void

"Not now" on the offer (or closing it): the site remembers it for this device.

onPasskeyAbort() => void

Stops the browser's passkey window when the sheet closes.

initialPartial<SignInState>

Where the sheet starts (the gallery draws each state; a site may prefill the email).

classNamestring
Exported type

SizeAwayProps

riderBikeRiderViewrequired
modelBikeModelViewrequired
pickBikeSizePickrequired
unitsBikeUnits

Heights in cm (the default) or ft and in.

classNamestring
Exported type

SizeChartProps

sizesreadonly { label: string; best: [number, number]; fits: [number, number]; }[]required
ridersreadonly { key: string; label: string; height: number; size?: string | null; }[]required

`label`: what the mark says ("Marco 178"). `size`: the size label the rider gets, when known.

units"metric" | "imperial"

The scale's words in cm (the default) or ft and in; the bands stay in cm.

classNamestring
Exported type

SizeFromHeightProps

nnumberrequired
modelstringrequired

"E-bike".

heightnumberrequired
sizes{ id: string; label: string; free?: FreeCount | null; }[]required
fitsstringrequired

The size the chart gives for the height (dashed when not picked).

valuestringrequired
onChange(id: string) => voidrequired
classNamestring
Exported type

StandInProps

modelstringrequired

The model running short.

leftnumberrequired

How many are left on the short day, and how many of you want it.

wantednumberrequired
shortDaysstring[]required

The short days (YYYY-MM-DD) and the days that are fine.

fineDaysstring[]required
offersStandInOffer[]required
valuestringrequired
onPick(offerId: string) => voidrequired
answerShopAnswer

When the shop answers an ask (W7-05 `booking.flow`, read with shopAnswerOf): "The shop answers within 12 hours". Null or left out: a neutral line.

classNamestring
Exported type

StatusElementProps

icon"bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"

The tile's icon; each kind has its own by default ("bike" reads well for a sold out bike).

linesnumber

Loading: how many still bars stand where the content goes (0 for the line alone).

kindStatusKindrequired
titlestring
textstring
phonestring

The shop's phone, as a tel: link (error, closed, too soon).

actionsReactNode
classNamestring
Exported type

StatusProps

kindStatusKindrequired
titlestring
textstring
phonestring

The shop's phone, as a tel: link (error, closed, too soon).

actionsReactNode
classNamestring
Exported type

StepFootProps

summaryReactNode

"Rent a bike and a guided tour", "5 riders, 4 bikes, Sara brings their own". Computer only.

noteReactNode

A short line over the button on a phone: "Missing sizes? We fit them at the shop."

whyReactNode

Why Next waits, in the guest's words, beside Next on every width and said out loud: "Pick at least one to go on." Shown in place of the note.

nextPrimaryActionrequired
onBack() => void

Shows Back (computer).

classNamestring
Exported type

StepperBandProps

stepsreadonly BandStep[]required
onStep(id: string) => void

Go back to a done step. Without it the band only shows.

onAdd(id: string) => void

Add a skipped step that carries `add` to the trip (and open it). Without it `add` shows as words only.

countboolean

(W3 P7, additive.) Number the steps ("2 of 6 · Who"). False: the step's name only, for while the steps are not known yet (What, before the trip is picked), so no number later changes. Default true.

classNamestring
Exported type

StepperProps

valuenumberrequired
minnumber
maxnumber
onChange(value: number) => voidrequired
labelstringrequired

What the buttons say to a screen reader: "Riders".

smallboolean
Exported type

StepperWordsOptions

locale"en" | "it" | "de" | "fr" | "pt-BR"required
nameOf(id: string) => stringrequired

An activity, product or tour id to its short name (`Bike`, `Tour`, `Shuttle AMPD`, `Classic`).

riderName(key: string) => string | null

A rider key to their name, or null when unnamed.

wordsSummaryWords

The band's words with a shop's own (bandWordsOf over the resolved words); the locale's when left out.

intlstring

The tag the shop reads with (`words.intl`): en-US and en-CA put the month first.

Exported type

StepRouterProps

pageFlowPagerequired
stepsreadonly ("pay" | "bikes" | "when" | "who" | "what" | "tour" | "kit" | "plan")[]required
renderPartial<Record<FlowPage, () => ReactNode>>required
fallbackReactNode

Drawn when the address is none of the flow's or a page has no render.

Exported type

StepsProps

currentnumberrequired

1-based.

totalnumberrequired
labelstringrequired
nextstring
classNamestring
Exported type

StripeCheckoutProps

loadStripeStripeLoaderrequired

`loadStripe` from

openSession(signal: AbortSignal) => Promise<CheckoutSession>required

GBF-30 with the site's Idempotency-Key. A new way is a new session: remount with a new `key`. Called once per mounted form: wrap it in `keepSessions` so a form drawn again reuses the session.

onSession(session: CheckoutSessionShown) => void
onComplete() => void
timeoutMsnumber

How long the form may take to open before Try again shows; CHECKOUT_OPEN_MS when left out, Infinity for no limit.

onFailed() => void

(Additive.) The form did not open (late or refused): Try again shows. Once per run.

classNamestring
Exported type

TermsSheetProps

openbooleanrequired
onClose() => voidrequired
cancellationstringrequired

The shop's cancelling terms in the guest's language; null: the shop put none online.

payTermsPayrequired
phonestring

The shop's phone, to ask about terms it did not put online.

Exported type

ToggleProps

labelstringrequired
onbooleanrequired
onChange(on: boolean) => voidrequired
look"switch" | "chip"
classNamestring
Exported type

TourAskProps

value{ kind: "tour_request"; group: "new_group" | "private"; tourId: string; day: string; period: TourPeriod; riders: string[]; note?: string | null; }required
toursreadonly { content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }[]required
ridersreadonly TourRider[]required
onChange(value: Request) => voidrequired
onSend() => voidrequired
onBack() => void

Leaves the request for the tours of the day.

missingboolean

Next waits on the request being sent: marked missing, Next brings the guest here.

classNamestring
Exported type

TourCardProps

rowTourRowrequired
goingnumberrequired
onSlot(slot: TourSlot) => voidrequired
onSee() => void
photosreadonly TourPhoto[]

The site's own photos of this tour; they win over the catalog's. None at all: no photo block.

askedboolean

The tour the guest's link asked for: it shows as theirs, and only a time picks it.

classNamestring
Exported type

TourDayEmptyProps

daystringrequired
state"none" | "full"required

full: departures, all full; none: no tour that day.

otherstringrequired

Another trip day with seats ("See Thu 22").

onOther(day: string) => voidrequired
askednumberrequired

Riders already asking a new group that day; null: the shop opens no new groups.

onNewGroup() => void
onPrivate() => void
classNamestring
Exported type

TourDayRailProps

daysreadonly TourDay[]required
valuestringrequired
onChange(day: string) => voidrequired
pickedreadonly string[]

The days with a tour picked: they say so in place of the count.

classNamestring
Exported type

TourFootProps

summarystringrequired
nextPrimaryAction
onSkip() => voidrequired
whystring

Why Next waits, beside it on every width and said out loud.

classNamestring
Exported type

TourJoinProps

joiningbooleanrequired

Yes is picked: the tours show. No (false) is the trip as it is, picked by default.

onChange(joining: boolean) => voidrequired
standaloneboolean

The step's own title (h1) when the question is the whole page; else a heading inside a card.

classNamestring
Exported type

TourStepProps

toursreadonly { content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }[]required

W7-06 `tours` for the trip's days; null while the read is on its way.

daysreadonly string[]required

The trip's days, YYYY-MM-DD in the shop's zone.

ridersreadonly TourRider[]required

The group, in Who's order.

valueTourChoicerequired

The tour on the day shown (a tour a day when `elsewhere` is given), else the trip's one tour.

onChange(value: TourChoice | null, day: string) => voidrequired

The new choice, and the day whose tour it replaces (the old choice's day, else the day shown).

elsewherereadonly TourChoice[]

The group's tours on the trip's other days, a tour a day: the rail marks their days, the foot names them all, and Next goes on with them while the day shown has none. Left out: one tour.

flowTourFlowrequired

What the shop's settings allow (tourFlowOf on W7-05 `booking.flow`).

zonestringrequired

The shop's time zone (W7-05 `booking.notice.timezone`).

daystring

The day shown; leave out and the step keeps its own.

onDay(day: string) => void
periodsReadonly<Record<string, TourPeriod>>

The group's part of each day (from When), for a guide pick or a request. Full by default.

nextPrimaryAction

The foot's Next (the site names the next step). Always pressable: while the choice does not fit it says why and brings the guest to what is missing; with nothing picked it is still pressed (the flow's `next` keeps the reason), so the flow knows the guest tried.

triedboolean

Next was pressed while the step waited (the flow's `tried`): the reason shows from the start.

onSkip() => voidrequired

"No tour this time": the guest goes on without a tour. Always offered, so nobody is stuck on the step.

defaultRidestring

The tour whose See the ride is open at first (a gallery frame, a shared link).

defaultAskboolean

The request form is open at first while the choice is a request.

childrenReactNode

Drawn above the tours (the site's own line).

photosReadonly<Record<string, readonly TourPhoto[]>>

The site's own photos per tour product id; they win over the catalog's (`tours[].content.photos`) on the card and in See the ride. A tour with neither has no photo block at all.

defaultPhotonumber

The photo See the ride shows first on a phone (0 based; a gallery frame).

asked{ tourId: string; day: string; }

The tour the guest's link asked for and its day (a day-only tour link, the ChatGPT app's): on that day it shows alone, as theirs, and the step asks only for its time. Null: every tour.

onOthers() => void

"See the other tours": the guest leaves the asked tour for the whole list.

includedstring

QA 27 Oct (G7): what the tour's price covers, under the title ("each rider's place on the guided tour", whether a bike is in it). Null or left out: nothing is said.

bikesTourBikes

XP-HOLD: the picked departure's free bikes per size; null or left out: the tour holds none, or not read yet.

bikesRefused{ size: string | null; }

XP-HOLD: the booking was refused because a size ran out meanwhile (409 `bikes_short`); the card shows with what happened. `size` the size it names, null when it named none.

onBikesSeen() => void

The guest picked a way out of the refusal (or another time): the site forgets it.

classNamestring
Exported type

TripAgendaProps

view{ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }required

W7-11: the booking as booked.

timeZonestringrequired

The shop's IANA zone: a tour's start and its day are read there.

classNamestring
Exported type

TripAsideElementProps

linesTripLineView[]required
childrenReactNode
classNamestring
titlestring
notestring
totalMinornumberrequired
totalLabelstring
actionPrimaryAction
Exported type

TripAsideProps

titlestring
linesSummaryLine[]required
totalMinornumberrequired
totalLabelstring
notestring
actionPrimaryAction
childrenReactNode
classNamestring
Exported type

TripButtonElementProps

openboolean

The trip sheet or popover is open: the button shows it (DBasket).

countnumberrequired
labelledboolean

"Your trip" beside the bag (a computer's header).

onClick() => void
hrefstring
classNamestring
Exported type

TripButtonProps

countnumberrequired
labelledboolean

"Your trip" beside the bag (a computer's header).

onClick() => void
hrefstring
classNamestring
Exported type

TripDamageProps

damageTripDamageReportrequired

The trip read's damage block (core tripDamageOf); null draws nothing.

zonestring

The shop's time zone, for when it was checked, happened and signed.

emailstring

The shop's email, for "Question about this? Email us".

classNamestring
Exported type

TripGoneProps

onStart() => voidrequired

"Start again": the booking's first step.

classNamestring
Exported type

TripSheetElementProps

linesTripLineView[]required
totalLabelstring

"So far" by default: the trip is not booked yet.

onEmpty() => void

"Empty the trip": the computer's second link (DBasket).

noticeReactNode

Picks were kept from before and checked again: a line that went full is flagged here.

classNamestring
notestring
openbooleanrequired
totalMinornumberrequired
actionPrimaryActionrequired
onClose() => voidrequired
as"auto" | "sheet" | "pop"
substring

"Sun 18 to Tue 20 Oct, 2 riders".

onKeepLooking() => void

"Keep looking": closes.

Exported type

TripSheetProps

openbooleanrequired
onClose() => voidrequired
as"auto" | "sheet" | "pop"
linesSummaryLine[]required
totalMinornumberrequired
notestring
substring

"Sun 18 to Tue 20 Oct, 2 riders".

actionPrimaryActionrequired
onKeepLooking() => void

"Keep looking": closes.

noticeReactNode

Picks were kept from before and checked again: a line that went full is flagged here.

classNamestring
Exported type

TripWaitingProps

timeZonestringrequired

The shop's zone (IANA), for the hold's time and the saved day.

todaystring

Today in the shop's zone (YYYY-MM-DD). When the hold ends on another day, the day is said too.

onPlan() => voidrequired

"See the plan".

onPay() => void

Held: "Pay {amount}".

onGoOn() => void

Saved: "Go on where you left off".

busyboolean

Waiting for the server: the primary says so.

layout"stack" | "side"

side: the computer, the trip card beside the words (Pay F); stack: the phone, under them.

kind"held" | "saved"required
namestring

The first rider's first name, for "Welcome back, Marco" (GBF-11 and GBF-13 carry no lead name: the booker rides first). Cleaned before it is shown; null, empty or only spaces: "Welcome back".

holdUntilstring

Held: the hold's end (an instant).

savedUntilstring

Saved: the link's end (an instant).

stillFreeboolean

Saved: false when some of it is no longer free; null when not checked.

firstDaystringrequired

The trip's first and last day, YYYY-MM-DD; null when the trip has no days yet.

lastDaystringrequired
ridersnumberrequired

How many ride.

nowMinornumber

Held: what is paid now (the API's deposit, or the whole trip), minor units.

classNamestring
Exported type

UnitsSwitchProps

valueUnitsrequired
onChange(units: Units) => voidrequired
look"pair" | "chip"
classNamestring
Exported type

WhatStepProps

activitiesreadonly ActivityView[]required
pickedreadonly string[]required
onToggle(id: string) => voidrequired
missingboolean

Next waits for a pick: the cards are marked missing (`data-og-missing`), Next brings the guest there.

classNamestring
Exported type

WhenCalendarProps

valueWhenValuerequired
ctxWhenContextrequired
monthstringrequired

The first month shown.

onMonth(month: string) => voidrequired
onPick(day: string) => voidrequired
onMove(day: string) => void

Move the trip to start on this day (the "Start on" button under a day that cannot be picked).

maxMonthstring

After this month the forward arrow is off (the shop's last bookable day).

classNamestring
Exported type

WhenDaysProps

valueWhenValuerequired
ctxWhenContextrequired
onToggle(day: string, half: Half | null) => voidrequired

A half switched, or the whole day (null) on a day the shop does not split.

onPart(day: string, part: DayPick) => void

Full day, or a half day's morning or afternoon (DayHalves `onPart`).

notesRecord<string, string>

A few words beside a day: "tour day".

childrenReactNode

The panel's right column below the days (the short day's card).

missingboolean

Next waits for a day someone rides: the days are marked missing, Next brings the guest here.

classNamestring
Exported type

WhenKeyProps

ridersnumberrequired

How many in the group rent.

classNamestring
Exported type

WhenStepProps

valueWhenValuerequired
onChange(value: WhenValue) => voidrequired
ctxWhenContextrequired
notesRecord<string, string>

A few words beside a day: "tour day".

canAskboolean

The shop takes asked lines (W7-05 `booking.flow.can_ask`).

onSave() => void

Save the trip and finish later (`booking.flow.can_save`); left out, the way is not offered.

onAsk(day: string) => void

After a short day's "ask the shop": the flow writes the asked line from `value.ask`.

titlestring

The title; the shop's "When are you riding?" when left out.

maxMonthstring

The last month the arrows reach (the shop's booking lead).

openDaysboolean

Open the phone's days sheet on the first draw (the gallery's 3C).

missing"days" | "tour" | "riding"

What Next waits on, once pressed: `days`, no trip yet (the calendar is marked missing); `riding`, nobody rides a day (the days are); `tour`, a picked tour has no departure on the trip's days (the note under the calendar is). Next brings the guest to the part marked.

onDropTour() => void

(QA v0.23.3.) The trip picked a tour with no departure on its days: "Go on without the tour" (a trip that also rents) or "Pick something else" (`tourOnly`) takes it out of the trip. Left out, the note offers only the days the tour runs.

tourOnlyboolean

QA 27 Oct (G7): the trip has a tour and rents nothing. The words ask for the tour's day (not a first and a last day) and no rental hours show: the tour's own times come on the Tour step.

pickedstring

(Additive, unify spec B.) What the guest already picked on the shop's store page, said under the title ("Your bike: Ampd, size L."); left out, nothing.

classNamestring
Exported type

WhoBooksFormProps

valueWhoBooksValuerequired
onChange(patch: Partial<WhoBooksValue>) => voidrequired
triedboolean

Book was pressed while something was not right: the reasons show under the fields.

accountsboolean

The shop takes accounts at booking (W7-05 `booking.flow.accounts`); false: no account box.

countrystring

The shop's ISO country: the phone's country until the guest's browser or the guest says another.

termsHrefstring

The shop's rental terms page.

onTermsOpen() => void

(Additive, QA night 24 Oct S-17.) Opens the shop's rental terms in a sheet: the "rental terms" words become a link button that calls it (it wins over `termsHref`).

takenPlanClash

A line was taken while booking: the decision card above the total.

duePlanDue

What is paid when the action is pressed; left out: no amount (the step's bar says it).

actionPrimaryAction
whystring

Why the action waits, beside it and said out loud (`whoBooksWhy`); null: nothing waits.

booker{ riders: readonly { key: string; label: string; }[]; value: string | null; onPick: (rider: string | null) => void; }

Who books it, as a choice under the title: one of the riders or someone else (left out: none).

classNamestring
Exported type

WhoBooksProps

leadFlowLeadrequired
ridersreadonly GroupRider[]required
bookerstringrequired
onLead(patch: Partial<FlowLead>) => voidrequired
onBooker(rider: string | null) => voidrequired
onRiderName(rider: string, name: string) => void

(Additive, W2 review.) The name of the rider who books it, as typed here: one name for the booker and their rider, so a correction reaches the booking and Who never asks for it again.

passwordstring

The account's password (null: none); left out: no account box.

onPassword(password: string | null) => void
termsboolean

The rental terms, ticked by the guest.

onTerms(on: boolean) => void
triedboolean
termsHrefstring
countrystring

The shop's ISO country: the phone's country to start.

takenPlanClash
duePlanDue
actionPrimaryAction
classNamestring
Exported type

WhoGoesProps

ridersreadonly TourRider[]required
valuereadonly string[]required
onToggle(key: string) => voidrequired
leftnumberrequired

Seats left on the picked time; null for a request or a guide pick.

missingboolean

Next waits on who goes: marked missing, Next brings the guest here.

classNamestring
Exported type

WhoRidesProps

modelBikeModelViewrequired
modelsBikeModelView[]required
ridersBikeRiderView[]required
assignRecord<string, string>required
sizesRecord<string, string>

The size each rider of this model gets, by rider key ("L"); shown on the phone's chips.

backstring

The model the group just came from (a card tapped while everyone rode one bike): a tap on a rider already on this model puts them back on it, so the group splits. Left out: a rider on this model stays put.

onMove(riderKey: string, modelId: string) => voidrequired

Move a rider: onto the model in view, or back onto `back`.

layout"stack" | "bar"
classNamestring
Exported type

WhoStepProps

ridersreadonly WhoRider[]required
onCount(n: number) => voidrequired

The counter: the flow adds or drops riders from the end.

onRider(index: number, patch: Partial<WhoRider>) => voidrequired

One rider changed.

unitsUnitsrequired
onUnits(units: Units) => voidrequired
placestring

The shop's place for "First time in Finale"; null: the question is not asked.

askOwnboolean

(W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true.

minnumber

Default 1 and 20.

maxnumber
topReactNode

Over the riders: the SignInPrompt, or the SavedRiders once signed in.

classNamestring
Exported type

YourDaysProps

daysDayTimesView[]required
onPick(day: string, time: string) => voidrequired
classNamestring