Booking Elements
Typed booking components and server helpers for a shop website.
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.
# 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.104Use 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.
"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}
/>
);
}BookingProviderProps
shopstringrequiredThe 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.
wordsShopWordListlocalestringen, it, de or fr.
currencystringISO 4217, from the site read.
countrystringThe shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM.
transportBookingTransportHow the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/<op>`).
clientBookingClientA client made by the site (a test's, a check's); wins over `transport`.
storagePicksStorageWhere the basket keeps the picks; defaults to localStorage (memory when it is refused).
childrenReactNodeGuestBookingFlowProps
routerFlowRouterrequireddoorFlowDoorHow 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).
footerReactNodeUnder the step's foot: the site's own footer.
looksFlowLookslinksFlowLinksloadStripeStripeLoader`loadStripe` from
termsHrefstringThe shop's rental terms, linked on who books it.
accountHrefstringThe guest's own page (their trips), opened from their name in the bar.
onBooked(booked: FlowBooked) => voidBooked: the reference and the view token. The flow shows Booked itself.
nowFlowNowThe 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.
anyThatFitsbooleanBikes 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.
kitIncludedbooleanThe 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`).
classNamestringGuestBookingProviderProps
shopstringrequiredThe 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.
wordsShopWordListThe shop's words over the package's (typed: every line of every step).
localestringen, it, de or fr.
currencystringISO 4217, from the site read.
countrystringThe shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM.
transportBookingTransportHow the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/<op>`).
clientBookingClientA client made by the site (a test's, the gallery's in-memory shop); wins over `transport`.
childrenReactNodeAccountBoxProps
onbooleanrequiredTicked: make an account with the email, with this password.
passwordstringrequiredonChange(patch: { account: boolean; password: string; }) => voidrequirederrorstringThe reason the password is not right yet.
missingbooleanThe password is what Book waits on (`data-og-missing`).
AccountOfferProps
passwordstringrequiredonPassword(password: string | null) => voidrequiredtriedbooleanBook was pressed: a password not right yet says why.
classNamestringAddOnsProps
itemsAddOnView[]requiredonQty(id: string, qty: number) => voidrequiredclassNamestringAddRiderProps
onAdd() => voidrequiredsubstringdisabledbooleanclassNamestringApiTransportOptions
apiUrlstringrequiredThe API origin, `https://api.outdoorgrid.ai` (http only for localhost or 127.0.0.1).
siteKeystringrequiredThe shop's site key, `og_site_...`. Server only.
shopstringrequiredThe shop's slug.
fetch{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }timeoutMsnumberPer call, in milliseconds (8000).
headers(call: BookingCall) => Record<string, string> | undefinedExtra headers for a call: the credential (CREDENTIAL_HEADER) and the signed guest address.
nextNextFetchOptionsNext's data cache for reads (`loadBookingServer`); without it every call is `no-store`.
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; }requiredonAnswer(accept: boolean) => voidrequiredanswered{ 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.
busybooleanonPay() => 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.
classNamestringAskTheShopCardProps
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; })[]requiredonAsk() => voidrequiredonWithdraw(key: string) => voidriderName(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.
classNamestringBasketBarElementProps
totalMinornumberrequiredtextstringWords where the total goes when there is no price to show: "2 e-bikes" (MSoldOut).
classNamestringnotestringactionPrimaryActionrequiredfromboolean"from": the total is a from price.
BasketBarProps
totalMinornumberrequiredfromboolean"from": the total is a from price.
notestringactionPrimaryActionrequiredclassNamestringBasketSummaryElementProps
linesTripLineView[]requiredtotalLabelstring"Total"; "From" while the trip is a from price.
childrenReactNodeUnder the title, before the lines: the promo code once it is open.
classNamestringtitlestringnotestringUnder the total: "Pay at the shop".
totalMinornumberrequiredtitleAsideReactNodeRight of the title: the promo code link.
BasketSummaryProps
linesSummaryLine[]requiredtotalMinornumberrequirednotestringUnder the total: "Pay at the shop".
titlestringtitleAsideReactNodeRight of the title: the promo code link.
classNamestringBikeBuildProps
fitBikeFitrequirednotebooleanThe note under the parts (the catalog's word); left out on a phone.
classNamestringBikeDecisionProps
titlestringrequiredways{ way: BikeWay; kick: string; title: string; line: string; }[]requiredonWay(way: BikeWay) => voidrequiredonBack() => voidrequired"Pick another time": the time comes off.
missingbooleanNext waits on a way out: marked missing, Next brings the guest here.
classNamestringBikeGeometryProps
fit({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFitrequiredmarkedReadonly<Record<string, readonly string[]>>A size label to the riders who get it ("L": ["Marco", "Tom"]): those columns are marked.
classNamestringBikeRailProps
bikesreadonly { key: string; type: string; name: string; price: string | null; riders: readonly string[]; any?: boolean; thumb?: string | null; chip?: string | null; }[]requiredvaluestringrequirednull: any that fits.
onSelect(key: string | null) => voidrequiredlayout"cards" | "chips"Cards with a picture (computer, the default) or chips you swipe (phone).
classNamestringBikeShowcaseProps
namestringrequiredkickerstringrequiredblurbstringrequiredfit({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFitrequiredstageReactNodestillstringThe still while the site's 3D bike loads, or when it has none.
wordstringThe big word behind the bike ("AMPD"); the name when left out.
spinningbooleanonSpin(spinning: boolean) => voidclassNamestringBikesStepProps
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; }[]requiredThe 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.
totalMinornumberThe 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.
nextstringNext's label; "Next: protection" when left out.
problemstringWhy Next waits, in the guest's words; left out, the step says the group's own reason once Next was pressed.
busybooleanloadingbooleanThe availability read is on its way.
anyThatFitsbooleanThe 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.
stateGroupStaterequiredsend(event: GroupEvent) => voidrequiredshopFlowShoprequirednameOf(id: string) => stringA product, kind or tour id to its name in the guest's language (the site read).
classNamestringBikeStageProps
wordstringrequiredThe big word behind the bike ("AMPD", "Any").
stillstringaltstringchildrenReactNodeThe shop's 3D bike.
spinningbooleanWhether the shop's bike turns; with onSpin, a Pause / Turn button.
onSpin(spinning: boolean) => voidheightstring | numberCSS height; the stage fills its width.
classNamestringBikesViewProps
layout"stack" | "side"The computer's stage beside the panel, or the phone's stack.
modelsBikeModelView[]requiredridersBikeRiderView[]requiredassignRecord<string, string>requiredvaluestringrequiredThe model in view.
onPick(modelId: string) => voidrequiredonMove(riderKey: string, modelId: string) => voidrequiredTap a name: move that rider to the model in view (a rider on it: back to `back`).
backstringThe 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) => voidrequiredtabBikesTabThe open tab; left out, the step picks one (sizes for any, else the build).
onTab(tab: BikesTab) => voidbuildOpenbooleanThe phone's build fold and sizes sheet.
onBuildOpen(open: boolean) => voidsheetOpenbooleanonSheetOpen(open: boolean) => voidspinningbooleanonSpin(spinning: boolean) => voidtotalMinornumberrequiredThe 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.
nextstringNext's label; "Next: protection" when left out.
onNext() => voidrequiredproblemstringWhy 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.
busybooleanloadingbooleanThe models are still loading.
unitsBikeUnitsHeights in cm (the default) or ft and in (the group's `units`).
classNamestringBookedProps
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; }requiredW7-11: the booking as booked.
timeZonestringrequiredThe shop's IANA zone: tour starts and the pick up time are read there.
leadNamestringThe booker's first name for the heading; left out: "See you Tuesday".
paidBookedPaidPaid 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).
shareReactNodeThe site's "send the trip to your group" card (ShareTrip), under the ticket.
calendarHrefstringAn .ics address for "Add to calendar"; left out: no button.
tripHrefstringThe 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.
classNamestringBookedTripProps
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; }requiredW7-11: the booking as booked (BC1 fields optional).
timeZonestringrequiredThe 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.
heroBookedTripPhotoThe 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.
placeBookedTripPhotoshareReactNodeThe 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.
paidMinornumberA newer paid amount (GBF-31 right after Stripe said paid).
tripHrefstringThe guest trip page; left out, the booking's own `trip_url`.
onFile(file: BookedTripFile) => voidTakes the calendar file and the receipt instead of the browser's download (a test, a native shell).
classNamestringBookingFlowProps
routerBookingRouterrequiredneedsTripNeedsrequiredWhat the trip asks for: which steps it has.
screensPartial<Record<"kind" | "pay" | "when" | "who" | "sizes" | "extras" | "days", ReactNode>>requiredThe site's screen for each step (its Elements wired to the machine).
problemstringWhy the step is not ready (a rider with no height, no dates): Next stays put and says it.
summaryFlowSummaryThe trip's lines and total; leave out for the server's quote of the trip.
onBooked(answer: BookingAnswered<BookingAnswer<"book">>) => voidBooked: the answer (its reference, its view token for `/booking#t=`).
titlestringThe step's title, when the site says it its own way.
subtitlestringThe line under the title (the boards' italic one); null: none. Kind, Who and Pay have one by default.
phonestringThe shop's phone, offered when something cannot be booked online.
classNamestringsource"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.
BookingLookProps
themePartial<BookingTheme>The shop's tokens. Leave out when the site's own CSS sets `--og-*` on a parent.
wordsShopWordListThe shop's trade words and its own lines, per language.
localestringen, it, de or fr; anything else reads English.
currencystringISO 4217, from the site read (`currency`).
countrystringThe shop's ISO 3166 country, from the site read (`shop.country_code`); null or left out reads as before.
childrenReactNodeBookingRouteOptions
apiUrlstringrequiredThe API origin, `https://api.outdoorgrid.ai`.
siteKeystringrequiredThe shop's site key, from a server only variable that no browser bundle ever reads.
shopstringrequiredThe 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 | nullrequiredThe 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.
basePathstringWhere 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>; }timeoutMsnumbernow() => numberThe clock in milliseconds (Date.now), for the address signature and the session cookie.
BookingServerOptions
apiUrlstringrequiredsiteKeystringrequiredshopstringrequiredrevalidatenumberSeconds the site read is reused (60).
fetch{ (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; }BookingTripButtonProps
classNamestringonClick() => voidopenbooleanThe trip sheet or popover is open: the button shows it (DBasket).
labelledboolean"Your trip" beside the bag (a computer's header).
hrefstringButtonProps
variantButtonVariantsize"sm" | "md" | "lg"widebooleanicon"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).
busybooleanWaiting for the server: the button stays, says so and takes no second press.
hrefstringA link instead of a button (the site's own address; see safeHref: an unsafe one draws a button).
childrenReactNoderequireddisabledbooleanformstringformActionstring | ((formData: FormData) => void | Promise<void>)formEncTypestringformMethodstringformNoValidatebooleanformTargetstringnamestringtype"submit" | "reset" | "button"valuestring | number | readonly string[]defaultCheckedbooleandefaultValuestring | number | readonly string[]suppressContentEditableWarningbooleansuppressHydrationWarningbooleanaccessKeystringautoCapitalize"none" | "off" | "on" | "sentences" | "words" | "characters" | (string & {})autoFocusbooleanclassNamestringcontentEditableBooleanish | "inherit" | "plaintext-only"contextMenustringdirstringdraggableBooleanishenterKeyHint"enter" | "done" | "go" | "next" | "previous" | "search" | "send"hiddenbooleanidstringlangstringnoncestringslotstringspellCheckBooleanishstyleCSSPropertiestabIndexnumbertitlestringtranslate"yes" | "no"radioGroupstringroleAriaRoleaboutstringcontentstringdatatypestringinlistanyprefixstringpropertystringrelstringresourcestringrevstringtypeofstringvocabstringautoCorrectstringautoSavestringcolorstringitemPropstringitemScopebooleanitemTypestringitemIDstringitemRefstringresultsnumbersecuritystringunselectable"off" | "on"popover"" | "auto" | "manual" | "hint"popoverTargetAction"toggle" | "show" | "hide"popoverTargetstringinertbooleaninputMode"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
isstringSpecify that a standard HTML element should behave like a defined custom built-in element
exportpartsstringpartstringaria-activedescendantstringIdentifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
aria-atomicBooleanishIndicates 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-braillelabelstringDefines a string value that labels the current element, which is intended to be converted into Braille.
aria-brailleroledescriptionstringDefines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
aria-busyBooleanisharia-checkedboolean | "true" | "false" | "mixed"Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
aria-colcountnumberDefines the total number of columns in a table, grid, or treegrid.
aria-colindexnumberDefines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
aria-colindextextstringDefines a human readable text alternative of aria-colindex.
aria-colspannumberDefines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
aria-controlsstringIdentifies 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-describedbystringIdentifies the element (or elements) that describes the object.
aria-descriptionstringDefines a string value that describes or annotates the current element.
aria-detailsstringIdentifies the element that provides a detailed, extended description for the object.
aria-disabledBooleanishIndicates 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-errormessagestringIdentifies the element that provides an error message for the object.
aria-expandedBooleanishIndicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
aria-flowtostringIdentifies 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-grabbedBooleanishIndicates 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-hiddenBooleanishIndicates 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-keyshortcutsstringIndicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
aria-labelstringDefines a string value that labels the current element.
aria-labelledbystringIdentifies the element (or elements) that labels the current element.
aria-levelnumberDefines 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-modalBooleanishIndicates whether an element is modal when displayed.
aria-multilineBooleanishIndicates whether a text box accepts multiple lines of input or only a single line.
aria-multiselectableBooleanishIndicates 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-ownsstringIdentifies 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-placeholderstringDefines 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-posinsetnumberDefines 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-readonlyBooleanishIndicates 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-requiredBooleanishIndicates that user input is required on the element before a form may be submitted.
aria-roledescriptionstringDefines a human-readable, author-localized description for the role of an element.
aria-rowcountnumberDefines the total number of rows in a table, grid, or treegrid.
aria-rowindexnumberDefines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
aria-rowindextextstringDefines a human readable text alternative of aria-rowindex.
aria-rowspannumberDefines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
aria-selectedBooleanishIndicates the current "selected" state of various widgets.
aria-setsizenumberDefines 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-valuemaxnumberDefines the maximum allowed value for a range widget.
aria-valueminnumberDefines the minimum allowed value for a range widget.
aria-valuenownumberDefines the current value for a range widget.
aria-valuetextstringDefines 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>CalendarKeyOwnProps
soonbooleanAlso explain the too soon mark (a clock).
closedbooleanAlso explain the closed mark.
unitstringrequired"e-bikes free".
classNamestringCalendarKeyProps
unitstringrequired"e-bikes free".
classNamestringChangeSheetProps
stateGroupStaterequiredridersreadonly string[]requireddatesreadonly string[]requireddifferencenumberrequiredThe difference the API quoted for the change (minor units); null while it loads.
onApply(events: readonly GroupEvent[]) => voidrequiredonClose() => voidrequiredlookPlanLookonDraft(events: readonly GroupEvent[]) => voidThe 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[]) => voidA 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.
classNamestringChipProps
childrenReactNoderequiredtone"notice" | "on"on: the chosen chip; notice: a warning in the brand's notice tile.
dot"" | "few" | "none"classNamestringstyleCSSPropertiesChoiceCardProps
titlestringrequiredlinestringOne line under the title.
metaReactNodeSmall words at the foot, left: "Half or full days", "Next: tomorrow 9:00".
priceReactNodeRight 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`.
mediaReactNodeThe 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"selectedbooleanunavailablestringNot on the guest's days: the reason, shown instead of the line ("Next free: Sat 24"). Not tappable.
problemstringNeeds a fix: the problem in one line ("2 seats, you are 5"), shown instead of the line.
fixLabelstringThe fix's way out, a small pill under the problem ("See the ways out"); calls `onFix`.
onFix() => voidonToggle() => voidToggles the pick. Absent: the card only shows.
multibooleanSeveral may be picked (aria-pressed) or one (role radio inside a radiogroup). Default true.
classNamestringConfirmationElementProps
shopNamestringFills "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.
asideReactNodeUnder the ticket on a computer: the shop on the site's map.
referencestringrequiredtitlestringrequiredsubstringrows{ icon: IconName; label: string; value: string; }[]requiredactionsReactNodeUnder the ticket: add to calendar, the map, My booking.
classNamestringConfirmationProps
referencestringrequiredtitlestringrequiredsubstringrows{ icon: IconName; label: string; value: string; }[]requiredactionsReactNodeUnder the ticket: add to calendar, the map, My booking.
classNamestringConsentTickProps
onbooleanrequiredonChange(on: boolean) => voidrequiredshopNamestringrequiredclassNamestringDamageCoverOfferProps
offersreadonly CoverOfferRead[]requiredThe covers the trip can take (core coverOffersOf with the trip's rentals).
onbooleanrequiredTicked.
onChange(on: boolean) => voidrequiredtrip{ 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.
classNamestringDateRangeCalendarOwnProps
unitstringAfter a day's count for a screen reader: "e-bikes free". The calendar's own "free" when left out.
monthstringrequiredThe first day of the first month shown.
months1 | 2firststringrequiredlaststringrequiredtodaystringrequiredThe shop's today (never the browser's).
freeRecord<string, FreeCount>requiredblockedRecord<string, DayBlock>Days the guest may not pick and why (before `notice.first_day`, closed days).
onPick(day: string) => voidrequiredonMonth(month: string) => voidminMonthstringBefore this month the back arrow is off (the shop's today's month).
maxMonthstringclassNamestringDateRangeCalendarProps
monthstringrequiredThe first day of the first month shown.
months1 | 2firststringrequiredlaststringrequiredtodaystringrequiredThe shop's today (never the browser's).
freeRecord<string, FreeCount>requiredblockedRecord<string, DayBlock>Days the guest may not pick and why (before `notice.first_day`, closed days).
onPick(day: string) => voidrequiredonMonth(month: string) => voidminMonthstringBefore this month the back arrow is off (the shop's today's month).
maxMonthstringclassNamestringDayHalvesProps
valueWhenValuerequiredctxWhenContextrequireddaystringrequiredonToggle(day: string, half: Half | null) => voidrequiredA 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) => voidFull day, or a half day's morning or afternoon, picked on a day the shop splits (setDayLength, setDayHalf).
lookHalvesLookclassNamestringDayStripOwnProps
exactbooleanShow the exact count the API gives (seats). Off: plenty above 4 reads "5+" (gear). On by default.
daysDayView[]requiredvaluestringrequiredonChange(day: string) => voidrequiredunitstringAfter the number: "seats".
classNamestringDayStripProps
daysDayView[]requiredvaluestringrequiredonChange(day: string) => voidrequiredunitstringAfter the number: "seats".
classNamestringDecisionCardProps
titlestringrequiredsubstringoptionsreadonly DecisionOption[]requiredpickedstringThe way out picked, if any.
onPick(key: string) => voidrequiredclassNamestringDeparturePickerOwnProps
exactbooleanShow the exact seats the API gives. On by default (README: "tour seats exact").
departuresDepartureView[]requiredvaluestringrequiredonChange(id: string) => voidrequiredunitstringclassNamestringDeparturePickerProps
departuresDepartureView[]requiredvaluestringrequiredonChange(id: string) => voidrequiredunitstringclassNamestringEmbeddedCheckoutOptions
fetchClientSecret() => Promise<string>requiredResolves with the Checkout Session's client secret. The only place the secret goes.
onComplete() => voidStripe says the payment is done (only with `redirect_on_completion: if_required`; else Stripe goes to the return address).
ExtrasListProps
extrasreadonly { productId: string; name: string; line: string; price: string | null; added: boolean; }[]requiredonToggle(productId: string) => voidrequiredclassNamestringFieldProps
labelstringrequiredvaluestringrequiredonChange(value: string) => voidrequiredplaceholderstringtype"number" | "text" | "tel" | "email"inputMode"text" | "tel" | "email" | "numeric" | "decimal"autoCompletestringautoCapitalize"none" | "off" | "sentences" | "words"Off for an email: a phone's keyboard does not start it with a capital or correct it.
spellCheckbooleanerrorstringThe reason it is not right yet, shown under it once the guest tried.
unitstringA unit after the value: "cm".
namestringmissingbooleanThe first field a waiting Next brings the guest to (`data-og-missing`).
classNamestringFinderProps
openbooleanrequiredonClose() => voidrequiredquestions{ id: string; text: string; answers: { id: string; text: string; }[]; }[]requiredanswersstring[]requiredThe answer picked for each question, by index.
onAnswer(question: number, answer: string) => voidrequiredresult{ kind: RideKindView; why?: string | null; }requiredThe kind both answers pick, with one line why; null until both are answered (or no rule).
onTake(kindId: string) => voidrequiredclassNamestringFlowFrameProps
barReactNodeThe shop's bar (ShopBar with the site's logo and navigation).
stepperReactNoderequiredThe stepper band (StepperBand).
childrenReactNoderequiredfooterReactNodeThe step's foot (StepFoot): its summary, Back and the one primary.
asideReactNodeThe trip beside the content (desktop) or in the bottom sheet (phone).
tripLabelstringThe trip's name on the phone's pill and the sheet; "Your trip" when left out.
tripNotestringA 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.
classNamestringFlowRouteOptions
shopstringrequiredThe shop's slug.
apiFlowApirequiredcapabilitySecretstringrequiredThe server only secret the booking capability is derived from (createBookingRoute: the site key).
capabilityContextstringSets 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) => booleanReplaces the Origin check (the request URL's origin or one of `origins`), e.g. a same site rule.
basePathstringWhere the route lives (`/api/outdoor-grid`); both cookies' Path.
cookies{ booking?: string; session?: string; }The cookies' names (BOOKING_COOKIE, GUEST_SESSION_COOKIE).
now() => numberThe clock in milliseconds (Date.now), for the session cookie's Max-Age.
FlowRouterOptions
pathnamestringrequired`usePathname()`: the path now, without query or fragment.
push(href: string) => voidrequired`useRouter().push`.
basestringrequiredThe 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.
FlowStepProps
stateGroupStaterequiredsend(event: GroupEvent) => voidrequiredshopFlowShoprequirednameOf(id: string) => stringA product, kind or tour id to its name in the guest's language (the site read).
classNamestringFreeProps
freeFreeCountrequiredThe API's free words for a day, a kind or a departure.
unitstringWhat follows the number: "free", "seats", "e-bikes free". Empty for the number alone.
classNamestringGearStageOwnProps
as"div" | "span"The element drawn: a span when the stage sits inside a button (a closed kind's row).
styleCSSPropertiesstillstringrequiredThe still frame's address (the kind's `poster_url`). Null: the ground alone.
altstringheightnumberrequiredPixels; the stage fills its width.
stillWidthnumberThe still's drawn width in pixels (it overflows the stage, as on the boards).
spinningbooleanShows "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.
childrenReactNodeclassNamestringGearStageProps
stillstringrequiredThe still frame's address (the kind's `poster_url`). Null: the ground alone.
altstringheightnumberrequiredPixels; the stage fills its width.
stillWidthnumberThe still's drawn width in pixels (it overflows the stage, as on the boards).
spinningbooleanShows "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.
childrenReactNodeclassNamestringGuidePickProps
onbooleanrequiredonPick() => voidrequiredclassNamestringIconProps
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"requiredsizenumberstrokenumberclassNamestringItemPickerProps
itemsItemView[]requiredvaluestringrequiredonChange(id: string) => voidrequiredlayout"list" | "table"classNamestringKindCardProps
kindRideKindViewrequiredonbooleanrequiredonPick(id: string) => voidrequiredlookKindCardLookstageHeightnumberThe stage's height in pixels: 178 open, 330 side by default.
stillWidthnumberThe still's drawn width in pixels: 262 open, 500 side by default.
classNamestringKitBibProps
riderKitRiderrequiredridersreadonly KitRider[]requiredclassNamestringKitBoardProps
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; })[]requiredW7-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[]requiredThe group, in Who's order, with their fit, kinds, tour and days.
valueKitPlanrequiredonChange(value: KitPlan) => voidrequiredunitsUnitsThe 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".
kitTotalnumberThe kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it.
fullKitTotalnumberFull kit for everyone's total from the quote, when the site asked it.
pricestringThe quote's price for the foot's summary, in words; null: none yet.
nextPrimaryActionThe foot's Next (the site names the next step). Waits while a must is not settled.
onBack() => voidThe foot's Back (computer).
defaultOpenKitOpenThe editor open at first (a gallery frame, a shared link).
childrenReactNodeDrawn above the riders (the site's own line).
missingbooleanNext 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.
classNamestringKitCellSheetProps
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; }requiredriderKitRiderrequiredridersreadonly KitRider[]requiredvalueKitPlanrequiredonChange(value: KitPlan) => voidrequiredunitsUnitsopenbooleanrequiredonClose() => voidrequiredclassNamestringKitCircleProps
viewKitCellViewrequiredlabelstringrequiredtextstringrequiredonTap() => voidsmallbooleanpressedbooleanDraw as picked or not (the rider sheet's three circles).
classNamestringKitCostProps
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; })[]requireddaysnumberrequiredThe trip's days the kit covers.
totalnumberThe kit's total from the quote, minor units; null while it prices; undefined: not shown.
allFullbooleanrequiredfullTotalnumberFull kit for everyone's price from the quote, when the site asked it; else the button has none.
onAll() => voidrequiredclassNamestringKitDecisionProps
titlestringrequiredways{ way: KitWayOut; kick: string; title: string; line: string; }[]requiredonWay(way: KitWayOut) => voidrequiredonBack() => voidrequiredCloses the sheet on a phone; the foot still says what is missing.
classNamestringKitExtrasProps
extrasreadonly KitExtraView[]requiredridersreadonly KitRider[]requiredvalueKitPlanrequiredonToggle(extra: KitExtraView) => voidrequiredhead"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).
classNamestringKitGridProps
itemsreadonly { id: string; name: string; note: string; must: boolean; rentable: boolean; }[]requiredridersreadonly { key: string; label: string; }[]requiredkitReadonly<Record<string, Readonly<Record<string, KitChoice>>>>requiredonCell(rider: string, itemId: string) => voidrequiredsizesReadonly<Record<string, string>>A size option's label ("M"), for a rented cell.
classNamestringKitRiderSheetProps
riderKitRiderrequiredridersreadonly KitRider[]requireditemsreadonly ({ 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; })[]requiredvalueKitPlanrequiredonChange(value: KitPlan) => voidrequiredonCell(item: SiteKitItem) => voidrequiredOpens a rented item's size (or head size).
openbooleanrequiredonClose() => voidrequiredclassNamestringKitSizeSheetProps
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; }requiredriderstringrequiredunitsUnitsrequiredoptionIdstringrequiredfitAtShopbooleanrequiredonPick(optionId: string | null, fitAtShop: boolean) => voidrequiredonHead(cm: number | null) => voidonClose() => voidrequiredheadCmnumberThe rider's head size now, in cm (an item sized by head).
classNamestringKitStepProps
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; })[]requiredThe shop's kit items (W7-06 `kit`).
extrasreadonly KitExtraView[]requiredThe shop's extras on the trip's days, with their price words from the API (`kitExtraView`).
kindOf(productId: string) => string | null | undefinedA rented model's kind of ride (`booking.kinds`), for items only some kinds need.
kitTotalnumberThe kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it.
defaultOpenKitOpenThe editor open at first (a gallery frame, a shared link).
missingbooleanNext was pressed with a must left out: the board marks it missing, Next brings the guest there.
stateGroupStaterequiredsend(event: GroupEvent) => voidrequiredshopFlowShoprequirednameOf(id: string) => stringA product, kind or tour id to its name in the guest's language (the site read).
classNamestringLevelPickProps
valuestringrequiredonChange(level: string) => voidrequiredlook"words" | "bars"classNamestringLevelsProps
valuestringrequiredonChange(level: string) => voidrequiredclassNamestringModelRailProps
modelsBikeModelView[]requiredvaluestringrequiredThe model in view.
ridersBikeRiderView[]requiredassignRecord<string, string>requiredRider key to the model they ride (null or missing: none; own bike riders are never here).
onPick(modelId: string) => voidrequiredlayout"cards" | "chips"Cards with a picture (computer) or chips you swipe (phone).
classNamestringMountCheckoutOptions
loadStripeStripeLoaderrequiredopenSession(signal: AbortSignal) => Promise<CheckoutSession>requiredGBF-30, with the site's one Idempotency-Key for this session. Aborted when the form goes.
onSession(session: CheckoutSessionShown) => voidThe session opened (without its secret): the amount, the hold, the way.
onComplete() => voidStripe says it is done: the site then reads GBF-31.
onState(state: Exclude<CheckoutMountState, "loading">) => voidrequiredready once Stripe's form is in the element, failed when any part of the open fails or is late.
timeoutMsnumberHow long the open may take before it counts as failed; CHECKOUT_OPEN_MS when left out, Infinity for no limit.
MyTripElementProps
titlestring"Before your day" by default; null for no heading.
todosTodoView[]requiredclassNamestringMyTripProps
todosTodoView[]requiredclassNamestringNextFetchOptions
revalidatenumber | falsetagsstring[]NotSureProps
onClick() => voidrequiredlargebooleanThe computer's size (DBikeKind).
classNamestringPartProps
classNamestringPathRouterOptions
pathnamestringrequiredThe page's path now (`usePathname()`), without query or fragment.
push(href: string) => voidrequiredGoes to a path (`useRouter().push`).
pathsPartial<Record<"kind" | "pay" | "when" | "who" | "sizes" | "extras" | "days", string>>requiredEach 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.
basestringA 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.
PayAsideProps
wayPaymentWayrequiredThe way chosen: its amount is Today and on the button; at the shop says the shop's pay line.
linesTripLineView[]requiredamountsPayAmountsrequiredonPay() => voidrequiredbusybooleandisabledbooleantitlestring"Your trip".
classNamestringPayAtShopElementProps
linesTripLineView[]requiredlayout"stack" | "side"stack: the phone (MPay); side: the computer's form, the trip in the TripAside beside it (DPay).
classNamestringtotalMinornumberrequiredleadBookingLeadrequiredonLead(patch: Partial<BookingLead>) => voidrequirederrorsPartial<Record<keyof BookingLead, string>>consentbooleanrequiredonConsent(on: boolean) => voidrequiredshopNamestringrequiredtermsHrefstringpromoPromoCodePropspayNotestring"Nothing to pay now. Pay at the shop when you pick up: cash or card."
PayAtShopProps
leadBookingLeadrequiredonLead(patch: Partial<BookingLead>) => voidrequirederrorsPartial<Record<keyof BookingLead, string>>consentbooleanrequiredonConsent(on: boolean) => voidrequiredshopNamestringrequiredtermsHrefstringlinesSummaryLine[]requiredtotalMinornumberrequiredpromoPromoCodePropspayNotestring"Nothing to pay now. Pay at the shop when you pick up: cash or card."
classNamestringPayCheckoutProps
shopNamestringrequiredway"full" | "deposit"requiredThe way being paid now.
linesPayLineView[]requiredtotalMinornumberrequirednowMinornumberrequiredPaid today (the session's amount).
restMinornumberLeft for pick up, as the site has it from the quote; 0 or null: nothing left.
depositMinornumberThe quote's deposit, for the phone's Deposit tile.
pickupDaystringrequiredThe first pick up day, YYYY-MM-DD.
cancelTextstringThe shop's own cancel words.
onBack() => voidBack 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.
timeZonestringrequiredThe shop's zone, for the hold's time.
todaystringThe shop's today (YYYY-MM-DD): a hold ending on another day says the day.
onPayAtShop() => voidSwitch to paying at the shop (GBF-32); shown after a decline when the state allows it.
payAtShopBusybooleanwaysreadonly 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) => voidcheckoutReactNoderequiredStripe's form: a StripeCheckout.
layout"stack" | "side"side: the computer, the trip beside Stripe (B to D); stack: the phone (8A).
classNamestringPayChoiceProps
waysreadonly PaymentWay[]requiredThe shop's ways, in order (paymentWays).
valuePaymentWayrequiredonChange(way: PaymentWay) => voidrequiredamountsPayAmountsrequireddepositPercentnumberThe shop's deposit %: "30% today". Left out: "Part today".
cancelTextstringThe 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).
classNamestringPaymentReturnProps
viewCheckoutViewrequiredcheckoutView(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.
timeZonestringrequiredThe shop's zone, for the hold's time.
todaystringThe shop's today (YYYY-MM-DD): a hold ending on another day says the day.
onAgain() => voidWaiting: read GBF-31 again (useCheckoutState's `again`).
onPlan() => voidExpired: back to the plan to check it again.
onRetry() => voidDeclined: back to Pay for a new try.
onPayAtShop() => voidDeclined, when the state allows it: pay at the shop instead (GBF-32).
busybooleanclassNamestringPeopleStepperProps
labelstringrequiredsubstringvaluenumberrequiredminnumbermaxnumberonChange(n: number) => voidrequiredclassNamestringPhoneFieldProps
labelstringrequiredvaluestringrequiredWhat the field keeps: "+39 340 326 0080", or a number with no country as it was given.
onChange(value: string) => voidrequiredcountrystringThe shop's ISO country (the site read's `shop.country_code`); left out: the look's.
errorstringmissingbooleanThe first field a waiting action brings the guest to (`data-og-missing`).
namestringclassNamestringPlanBoardProps
planPlanrequiredpanelPlanPanelrequiredonTapPlanTapA tap on a bar, an empty cell or a phone line: the caller opens the change (`changeFor`).
badPlanTargetA 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">requiredWhat 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.
duePlanDueWhat is paid when the action is pressed; left out: the quote's total.
actionPrimaryActionThe 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.
alertstringtoaststringThe bar's words: what just happened; left out while changing: "Editing Lena and Tom on Thursday".
onUndo() => voidUndo the last change, while it shows.
footNotestringThe bar's right side on a computer: "Pay at the shop".
whystringWhy 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).
answerShopAnswerWhen 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.
classNamestringPlanCostsProps
linesSummaryLine[]requiredThe quote's lines ("4 bikes, 12 bike days"), from the API.
totalMinornumberrequiredpricingbooleanThe quote is on its way: the amounts wait.
notestringUnder the total: "Nothing to pay now. Pay at the shop when you pick up."
waitingstringSaid instead of the total when there is none to wait for (a trip refused as it stands).
actionPrimaryActionsecondPrimaryAction(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.
classNamestringPlanDayListProps
stateGroupStaterequiredonDay(date: string, riders?: readonly string[]) => voidrequiredlookPlanLookiconsPartial<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">>answerShopAnswerWhen the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".
classNamestringPlanDaysProps
planPlanrequiredmarkedPlanChangeThe 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.
onTapPlanTapiconsPartial<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">>answerShopAnswerWhen the shop answers an asked line (core shopAnswerOf); left out: "the shop answers".
classNamestringPlanDecisionProps
clashPlanClashrequiredclassNamestringPlanGridProps
planPlanrequiredmarkedPlanChangeThe change on the sheet: its riders' cells on its days are marked.
badPlanTargetA cell that clashes (a size gone): ringed in the theme's bad colour.
onTapPlanTapTapping 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">>answerShopAnswerWhen the shop answers an asked line (core shopAnswerOf); left out: "the shop answers".
classNamestringPlanLegendProps
planPlanrequirediconsPartial<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">>classNamestringPlanReceiptProps
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; }requiredriderName(key: string) => stringrequiredA rider key to their name.
actionPrimaryActionThe one action under the total (Book it).
classNamestringPlanSheetProps
planPlanrequiredtargetPlanTargetrequiredWhat was tapped: its rider comes first among Who.
changePlanChangerequiredonChange(change: PlanChange) => voidrequiredonClose() => voidrequiredonApply() => voidrequiredApply (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.
itemstringThe 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.
pricePlanPriceclashPlanClashbusybooleanApply is being done (a quote, a re-check).
idstringThe sheet's id, for the bar that opened it (aria-controls).
focusRef(node: HTMLDivElement | null) => voidThe 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).
classNamestringPlanStepProps
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; }requiredThe quote of the trip as it stands (W7-07); null while it loads. Prices only from here.
onBook() => voidrequiredbusybooleanbookWaitstring(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.
lookPlanLookThe 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) => voidThe 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.
noPricestringR5-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[]) => voidA 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.
termsHrefstringrentalTermsOmit<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.
accountsbooleanThe shop takes accounts at booking (W7-05 `booking.flow.accounts`).
countrystringThe shop's ISO country (the site read's `shop.country_code`): the phone's country to start.
answerShopAnswerWhen 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.
stateGroupStaterequiredsend(event: GroupEvent) => voidrequiredshopFlowShoprequirednameOf(id: string) => stringA product, kind or tour id to its name in the guest's language (the site read).
classNamestringPlanTimelineProps
stateGroupStaterequiredselected{ rider: string; date: string; }bad{ rider: string; date: string; }A cell with a problem (a clash).
onCell(rider: string, date: string) => voidrequiredlookPlanLookThe 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">>answerShopAnswerWhen the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers".
classNamestringPromoCodeProps
promoPromoStaterequiredonOpen() => voidrequiredonCode(code: string) => voidrequiredonApply() => voidrequiredonRemove() => voidrequiredclassNamestringRideKindPickerProps
kindsRideKindView[]requiredvaluestringrequiredonChange(id: string) => voidrequiredlayout"stack" | "side"onNotSure() => voidOpens the Finder; leave out when the shop has no finder. Draws the "Not sure?" tile.
classNamestringRidePhotosProps
photosreadonly TourPhoto[]requireddefaultAtnumberThe photo shown first on a phone (0 based).
classNamestringRiderBibProps
nnumberrequired1 based.
riderWhoRiderrequiredunitsUnitsrequiredplacestringaskOwnboolean(W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true.
onRider(patch: Partial<WhoRider>) => voidrequiredclassNamestringRiderCardOwnProps
namestringThe rider's name, when the shop asks it here ("Later is fine"). The field shows with `onName`.
onName(name: string) => voidonWeight(kg: number | null) => voidThe rider's weight in kilograms, for the bike's setup. The field shows with `onWeight`.
nnumberrequiredriderRiderViewrequiredyoubooleanopenbooleansizestringThe size picked, shown on the closed row.
onHeight(cm: number | null) => voidrequiredonLevel(level: string) => voidrequiredonOpen() => voidextraReactNodeproblemstringThe reason it is not ready, once the guest pressed Next.
classNamestringRiderCardProps
nnumberrequiredriderRiderViewrequiredyoubooleanopenbooleansizestringThe size picked, shown on the closed row.
onHeight(cm: number | null) => voidrequiredonLevel(level: string) => voidrequiredonOpen() => voidextraReactNodeproblemstringThe reason it is not ready, once the guest pressed Next.
classNamestringRiderChipsProps
ridersreadonly RiderChipView[]requiredonToggle(key: string) => voidrequirednotestringUnder 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.
classNamestringRiderRowProps
nnumberrequiredriderWhoRiderrequiredunitsUnitsrequiredonOpen() => voidrequiredclassNamestringRiderSheetProps
openbooleanrequiredonClose() => voidrequirednnumberrequiredriderWhoRiderrequiredunitsUnitsrequiredonUnits(units: Units) => voidrequiredplacestringaskOwnboolean(W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true.
onRider(patch: Partial<WhoRider>) => voidrequiredonNext() => voidNext rider; absent on the last, where the button says Done and closes.
classNamestringRiderSizePicksProps
modelBikeModelViewrequiredridersBikeRiderView[]requiredThe riders on this model.
picksRecord<string, BikeSizePick>requiredEach rider's size on it (picksOn).
onSize(riderKey: string, optionId: string) => voidrequiredmissingreadonly string[]The riders Next waits on for a size: their row says so and takes the focus.
unitsBikeUnitsHeights in cm (the default) or ft and in.
classNamestringRiderSizeRowProps
riderBikeRiderViewrequiredmodelBikeModelViewrequiredpickBikeSizePickrequiredonSize(optionId: string) => voidrequiredcompactbooleanA phone's sheet row: the name and the size chips only.
unitsBikeUnitsHeights in cm (the default) or ft and in.
classNamestringRiderTripPageProps
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; }requiredtimeZonestring(Stitch, optional.) The shop's IANA zone for the tours' times and the link's last day; UTC when left out.
classNamestringRideSheetProps
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; }requiredonClose() => voidrequiredtake{ 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.
defaultPhotonumberThe photo shown first on a phone (0 based; a gallery frame).
classNamestringRunningShortProps
daysreadonly string[]requiredThe short days, YYYY-MM-DD in the shop's zone, in order: said once, as a detail.
freenumberrequiredHow many of the trip's bikes the shop has (0 or more).
ofnumberrequiredHow 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() => voidBook the free bikes now, the rest on the waitlist. Null when the shop takes no asks.
onRequest() => voidSend the request to the shop: the trip goes as a request, nothing paid now. Null: not offered.
onSave() => voidSave the trip, finish later (opens SaveTripSheet). Null when the shop keeps no saved trips.
pickedShortWayThe way the guest picked; the pick colours follow it.
busybooleanWaiting for the server: the ways take no press.
answerShopAnswerWhen the shop answers (core shopAnswerOf on W7-05 `booking.flow`); null: a neutral line.
classNamestringSavedRidersProps
ridersreadonly SavedRiderView[]requiredpickedreadonly string[]requiredonToggle(id: string) => voidrequiredunitsUnitsrequiredsincestring"July": when they last booked. Absent: "from last time".
onAddNew() => voidShows "Add a new rider".
classNamestringSaveTripSheetProps
openbooleanrequiredonClose() => voidrequiredemailstringrequiredThe address, held by the host (a lead's email it already has fills it).
onEmail(email: string) => voidrequiredonSave(email: string) => Promise<SavedTripSavedAnswer>requiredGBF-10 with the host's Idempotency-Key: the trip, the people, the step and this address.
timeZonestringrequiredThe shop's zone (IANA), for the link's last day.
startSaveTripStateWhere the sheet starts (the gallery draws each state); the form by default.
classNamestringSeatDecisionProps
titlestringrequiredways{ way: WayOut; kick: string; title: string; line: string; }[]requiredonWay(way: WayOut) => voidrequiredonBack() => voidrequiredmissingbooleanNext waits on a way out: marked missing, Next brings the guest here.
classNamestringSheetProps
openbooleanrequiredonClose() => voidrequiredtitlestringrequiredThe 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".
childrenReactNoderequiredclassNamestringShopBarProps
logoReactNodeThe shop's mark, usually a link home.
childrenReactNodeThe site's own navigation; hidden below 768px (the site's menu takes over).
endReactNodeAfter the sign in pill: the language, the trip button.
accountShopBarAccountThe guest: signed out shows "Sign in" (with `onSignIn`), signed in shows their name. Null: no pill.
classNamestringShortDayCardProps
shortShortDayrequiredcanAskbooleanrequiredThe shop takes asked lines (W7-05 `booking.flow.can_ask`).
onSave() => voidSave the trip and finish later, when the shop keeps saved trips (`can_save`) and the page can.
changeShortChangerequiredEnd the day before, start the day after, or skip the day; null when the trip is that one day.
onAsk(day: string) => voidrequiredonChange(change: ShortChange) => voidrequiredlook"sheet" | "card"card: the computer's panel; sheet: the phone's options, each with its small label.
titlebooleanThe sheet's title is the sheet's own; the card says it.
classNamestringSignInPromptProps
onSignIn() => voidrequiredonDismiss() => voidShows "No thanks" (computer).
classNamestringSignInSheetProps
openbooleanrequiredonClose() => voidrequiredsendCode(email: string) => Promise<unknown>requiredGBF-20: email a code. Resolves when sent (always, for any email).
checkCode(email: string, code: string) => Promise<unknown>requiredGBF-21: check the 6 digits. Resolves when signed in.
signIn(email: string, password: string) => Promise<unknown>requiredGBF-22: email and password. Resolves when signed in.
onSignedIn() => voidrequiredSigned 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() => voidStops 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).
classNamestringSizeAwayProps
riderBikeRiderViewrequiredmodelBikeModelViewrequiredpickBikeSizePickrequiredunitsBikeUnitsHeights in cm (the default) or ft and in.
classNamestringSizeChartProps
sizesreadonly { label: string; best: [number, number]; fits: [number, number]; }[]requiredridersreadonly { 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.
classNamestringSizeFromHeightProps
nnumberrequiredmodelstringrequired"E-bike".
heightnumberrequiredsizes{ id: string; label: string; free?: FreeCount | null; }[]requiredfitsstringrequiredThe size the chart gives for the height (dashed when not picked).
valuestringrequiredonChange(id: string) => voidrequiredclassNamestringStandInProps
modelstringrequiredThe model running short.
leftnumberrequiredHow many are left on the short day, and how many of you want it.
wantednumberrequiredshortDaysstring[]requiredThe short days (YYYY-MM-DD) and the days that are fine.
fineDaysstring[]requiredoffersStandInOffer[]requiredvaluestringrequiredonPick(offerId: string) => voidrequiredanswerShopAnswerWhen 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.
classNamestringStatusElementProps
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).
linesnumberLoading: how many still bars stand where the content goes (0 for the line alone).
kindStatusKindrequiredtitlestringtextstringphonestringThe shop's phone, as a tel: link (error, closed, too soon).
actionsReactNodeclassNamestringStatusProps
kindStatusKindrequiredtitlestringtextstringphonestringThe shop's phone, as a tel: link (error, closed, too soon).
actionsReactNodeclassNamestringStepFootProps
summaryReactNode"Rent a bike and a guided tour", "5 riders, 4 bikes, Sara brings their own". Computer only.
noteReactNodeA short line over the button on a phone: "Missing sizes? We fit them at the shop."
whyReactNodeWhy 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.
nextPrimaryActionrequiredonBack() => voidShows Back (computer).
classNamestringStepperBandProps
stepsreadonly BandStep[]requiredonStep(id: string) => voidGo back to a done step. Without it the band only shows.
onAdd(id: string) => voidAdd 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.
classNamestringStepperProps
valuenumberrequiredminnumbermaxnumberonChange(value: number) => voidrequiredlabelstringrequiredWhat the buttons say to a screen reader: "Riders".
smallbooleanStepperWordsOptions
locale"en" | "it" | "de" | "fr" | "pt-BR"requirednameOf(id: string) => stringrequiredAn activity, product or tour id to its short name (`Bike`, `Tour`, `Shuttle AMPD`, `Classic`).
riderName(key: string) => string | nullA rider key to their name, or null when unnamed.
wordsSummaryWordsThe band's words with a shop's own (bandWordsOf over the resolved words); the locale's when left out.
intlstringThe tag the shop reads with (`words.intl`): en-US and en-CA put the month first.
StepRouterProps
pageFlowPagerequiredstepsreadonly ("pay" | "bikes" | "when" | "who" | "what" | "tour" | "kit" | "plan")[]requiredrenderPartial<Record<FlowPage, () => ReactNode>>requiredfallbackReactNodeDrawn when the address is none of the flow's or a page has no render.
StepsProps
currentnumberrequired1-based.
totalnumberrequiredlabelstringrequirednextstringclassNamestringStripeCheckoutProps
loadStripeStripeLoaderrequired`loadStripe` from
openSession(signal: AbortSignal) => Promise<CheckoutSession>requiredGBF-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) => voidonComplete() => voidtimeoutMsnumberHow 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.
classNamestringTermsSheetProps
openbooleanrequiredonClose() => voidrequiredcancellationstringrequiredThe shop's cancelling terms in the guest's language; null: the shop put none online.
payTermsPayrequiredphonestringThe shop's phone, to ask about terms it did not put online.
ToggleProps
labelstringrequiredonbooleanrequiredonChange(on: boolean) => voidrequiredlook"switch" | "chip"classNamestringTourAskProps
value{ kind: "tour_request"; group: "new_group" | "private"; tourId: string; day: string; period: TourPeriod; riders: string[]; note?: string | null; }requiredtoursreadonly { 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; }[]requiredridersreadonly TourRider[]requiredonChange(value: Request) => voidrequiredonSend() => voidrequiredonBack() => voidLeaves the request for the tours of the day.
missingbooleanNext waits on the request being sent: marked missing, Next brings the guest here.
classNamestringTourCardProps
rowTourRowrequiredgoingnumberrequiredonSlot(slot: TourSlot) => voidrequiredonSee() => voidphotosreadonly TourPhoto[]The site's own photos of this tour; they win over the catalog's. None at all: no photo block.
askedbooleanThe tour the guest's link asked for: it shows as theirs, and only a time picks it.
classNamestringTourDayEmptyProps
daystringrequiredstate"none" | "full"requiredfull: departures, all full; none: no tour that day.
otherstringrequiredAnother trip day with seats ("See Thu 22").
onOther(day: string) => voidrequiredaskednumberrequiredRiders already asking a new group that day; null: the shop opens no new groups.
onNewGroup() => voidonPrivate() => voidclassNamestringTourDayRailProps
daysreadonly TourDay[]requiredvaluestringrequiredonChange(day: string) => voidrequiredpickedreadonly string[]The days with a tour picked: they say so in place of the count.
classNamestringTourFootProps
summarystringrequirednextPrimaryActiononSkip() => voidrequiredwhystringWhy Next waits, beside it on every width and said out loud.
classNamestringTourJoinProps
joiningbooleanrequiredYes is picked: the tours show. No (false) is the trip as it is, picked by default.
onChange(joining: boolean) => voidrequiredstandalonebooleanThe step's own title (h1) when the question is the whole page; else a heading inside a card.
classNamestringTourStepProps
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; }[]requiredW7-06 `tours` for the trip's days; null while the read is on its way.
daysreadonly string[]requiredThe trip's days, YYYY-MM-DD in the shop's zone.
ridersreadonly TourRider[]requiredThe group, in Who's order.
valueTourChoicerequiredThe 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) => voidrequiredThe 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.
flowTourFlowrequiredWhat the shop's settings allow (tourFlowOf on W7-05 `booking.flow`).
zonestringrequiredThe shop's time zone (W7-05 `booking.notice.timezone`).
daystringThe day shown; leave out and the step keeps its own.
onDay(day: string) => voidperiodsReadonly<Record<string, TourPeriod>>The group's part of each day (from When), for a guide pick or a request. Full by default.
nextPrimaryActionThe 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.
triedbooleanNext 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.
defaultRidestringThe tour whose See the ride is open at first (a gallery frame, a shared link).
defaultAskbooleanThe request form is open at first while the choice is a request.
childrenReactNodeDrawn 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.
defaultPhotonumberThe 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.
includedstringQA 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.
bikesTourBikesXP-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() => voidThe guest picked a way out of the refusal (or another time): the site forgets it.
classNamestringTripAgendaProps
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; }requiredW7-11: the booking as booked.
timeZonestringrequiredThe shop's IANA zone: a tour's start and its day are read there.
classNamestringTripAsideElementProps
linesTripLineView[]requiredchildrenReactNodeclassNamestringtitlestringnotestringtotalMinornumberrequiredtotalLabelstringactionPrimaryActionTripAsideProps
titlestringlinesSummaryLine[]requiredtotalMinornumberrequiredtotalLabelstringnotestringactionPrimaryActionchildrenReactNodeclassNamestringTripButtonElementProps
openbooleanThe trip sheet or popover is open: the button shows it (DBasket).
countnumberrequiredlabelledboolean"Your trip" beside the bag (a computer's header).
onClick() => voidhrefstringclassNamestringTripButtonProps
countnumberrequiredlabelledboolean"Your trip" beside the bag (a computer's header).
onClick() => voidhrefstringclassNamestringTripDamageProps
damageTripDamageReportrequiredThe trip read's damage block (core tripDamageOf); null draws nothing.
zonestringThe shop's time zone, for when it was checked, happened and signed.
emailstringThe shop's email, for "Question about this? Email us".
classNamestringTripGoneProps
onStart() => voidrequired"Start again": the booking's first step.
classNamestringTripSheetElementProps
linesTripLineView[]requiredtotalLabelstring"So far" by default: the trip is not booked yet.
onEmpty() => void"Empty the trip": the computer's second link (DBasket).
noticeReactNodePicks were kept from before and checked again: a line that went full is flagged here.
classNamestringnotestringopenbooleanrequiredtotalMinornumberrequiredactionPrimaryActionrequiredonClose() => voidrequiredas"auto" | "sheet" | "pop"substring"Sun 18 to Tue 20 Oct, 2 riders".
onKeepLooking() => void"Keep looking": closes.
TripSheetProps
openbooleanrequiredonClose() => voidrequiredas"auto" | "sheet" | "pop"linesSummaryLine[]requiredtotalMinornumberrequirednotestringsubstring"Sun 18 to Tue 20 Oct, 2 riders".
actionPrimaryActionrequiredonKeepLooking() => void"Keep looking": closes.
noticeReactNodePicks were kept from before and checked again: a line that went full is flagged here.
classNamestringTripWaitingProps
timeZonestringrequiredThe shop's zone (IANA), for the hold's time and the saved day.
todaystringToday 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() => voidHeld: "Pay {amount}".
onGoOn() => voidSaved: "Go on where you left off".
busybooleanWaiting 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"requirednamestringThe 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".
holdUntilstringHeld: the hold's end (an instant).
savedUntilstringSaved: the link's end (an instant).
stillFreebooleanSaved: false when some of it is no longer free; null when not checked.
firstDaystringrequiredThe trip's first and last day, YYYY-MM-DD; null when the trip has no days yet.
lastDaystringrequiredridersnumberrequiredHow many ride.
nowMinornumberHeld: what is paid now (the API's deposit, or the whole trip), minor units.
classNamestringUnitsSwitchProps
valueUnitsrequiredonChange(units: Units) => voidrequiredlook"pair" | "chip"classNamestringWhatStepProps
activitiesreadonly ActivityView[]requiredpickedreadonly string[]requiredonToggle(id: string) => voidrequiredmissingbooleanNext waits for a pick: the cards are marked missing (`data-og-missing`), Next brings the guest there.
classNamestringWhenCalendarProps
valueWhenValuerequiredctxWhenContextrequiredmonthstringrequiredThe first month shown.
onMonth(month: string) => voidrequiredonPick(day: string) => voidrequiredonMove(day: string) => voidMove the trip to start on this day (the "Start on" button under a day that cannot be picked).
maxMonthstringAfter this month the forward arrow is off (the shop's last bookable day).
classNamestringWhenDaysProps
valueWhenValuerequiredctxWhenContextrequiredonToggle(day: string, half: Half | null) => voidrequiredA half switched, or the whole day (null) on a day the shop does not split.
onPart(day: string, part: DayPick) => voidFull day, or a half day's morning or afternoon (DayHalves `onPart`).
notesRecord<string, string>A few words beside a day: "tour day".
childrenReactNodeThe panel's right column below the days (the short day's card).
missingbooleanNext waits for a day someone rides: the days are marked missing, Next brings the guest here.
classNamestringWhenKeyProps
ridersnumberrequiredHow many in the group rent.
classNamestringWhenStepProps
valueWhenValuerequiredonChange(value: WhenValue) => voidrequiredctxWhenContextrequirednotesRecord<string, string>A few words beside a day: "tour day".
canAskbooleanThe shop takes asked lines (W7-05 `booking.flow.can_ask`).
onSave() => voidSave the trip and finish later (`booking.flow.can_save`); left out, the way is not offered.
onAsk(day: string) => voidAfter a short day's "ask the shop": the flow writes the asked line from `value.ask`.
titlestringThe title; the shop's "When are you riding?" when left out.
maxMonthstringThe last month the arrows reach (the shop's booking lead).
openDaysbooleanOpen 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.
tourOnlybooleanQA 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.
classNamestringWhoBooksFormProps
valueWhoBooksValuerequiredonChange(patch: Partial<WhoBooksValue>) => voidrequiredtriedbooleanBook was pressed while something was not right: the reasons show under the fields.
accountsbooleanThe shop takes accounts at booking (W7-05 `booking.flow.accounts`); false: no account box.
countrystringThe shop's ISO country: the phone's country until the guest's browser or the guest says another.
termsHrefstringThe 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`).
takenPlanClashA line was taken while booking: the decision card above the total.
duePlanDueWhat is paid when the action is pressed; left out: no amount (the step's bar says it).
actionPrimaryActionwhystringWhy 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).
classNamestringWhoBooksProps
leadFlowLeadrequiredridersreadonly GroupRider[]requiredbookerstringrequiredonLead(patch: Partial<FlowLead>) => voidrequiredonBooker(rider: string | null) => voidrequiredonRiderName(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.
passwordstringThe account's password (null: none); left out: no account box.
onPassword(password: string | null) => voidtermsbooleanThe rental terms, ticked by the guest.
onTerms(on: boolean) => voidtriedbooleantermsHrefstringcountrystringThe shop's ISO country: the phone's country to start.
takenPlanClashduePlanDueactionPrimaryActionclassNamestringWhoGoesProps
ridersreadonly TourRider[]requiredvaluereadonly string[]requiredonToggle(key: string) => voidrequiredleftnumberrequiredSeats left on the picked time; null for a request or a guide pick.
missingbooleanNext waits on who goes: marked missing, Next brings the guest here.
classNamestringWhoRidesProps
modelBikeModelViewrequiredmodelsBikeModelView[]requiredridersBikeRiderView[]requiredassignRecord<string, string>requiredsizesRecord<string, string>The size each rider of this model gets, by rider key ("L"); shown on the phone's chips.
backstringThe 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) => voidrequiredMove a rider: onto the model in view, or back onto `back`.
layout"stack" | "bar"classNamestringWhoStepProps
ridersreadonly WhoRider[]requiredonCount(n: number) => voidrequiredThe counter: the flow adds or drops riders from the end.
onRider(index: number, patch: Partial<WhoRider>) => voidrequiredOne rider changed.
unitsUnitsrequiredonUnits(units: Units) => voidrequiredplacestringThe 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.
minnumberDefault 1 and 20.
maxnumbertopReactNodeOver the riders: the SignInPrompt, or the SavedRiders once signed in.
classNamestringYourDaysProps
daysDayTimesView[]requiredonPick(day: string, time: string) => voidrequiredclassNamestring