@riverbankcms/sdk 0.179.0 → 0.180.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-BP7VBRvs.d.ts} +235 -56
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-Dfqz0Tcu.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-DVSipdrT.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-DCcxLa8p.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BG2tLGXj.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-P08l6mkr.d.ts} +2602 -821
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-BDHc8lFs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-Y3IZBbtL.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +8 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BvtNagjw.d.ts} +8 -7
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-BrK6SS5c.d.ts} +9 -8
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-DpEAnP4F.d.ts} +7 -2
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +16 -16
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs} +91 -59
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs} +24 -3
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +12 -7
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-CrpiyDSP.mjs} +9 -9
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-D0me9wnz.mjs} +8 -8
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CJITrGkF.mjs} +5 -4
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-CXfb7RRy.mjs} +7 -210
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1292 -224
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-bX7iy_MK.mjs} +158 -50
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +22 -15
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-DCfdcb7s.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-DCqorVne.mjs} +6 -6
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-CYl9NrqS.mjs} +410 -77
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-BE1dEFsD.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +224 -158
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-DtKdUdkO.mjs} +199 -27
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +3 -3
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-Du9a_xAN.mjs} +1980 -1517
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-TaMUys6I.mjs} +4 -4
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-CpNPbPPM.mjs} +1 -1
- package/dist/client/{formatDate-CTEN7gxW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -5
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-CFUq3GVx.mjs} +4 -4
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → lookSurfaces-gJ3OqPf9.mjs} +92 -2
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-VuL9I96G.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +18 -24
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-OBqsfT24.mjs} +1 -1
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +299 -115
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder-BLKAmX0S.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-Bj9cmHHF.mjs} +89 -50
- package/dist/client/rendering/client.mjs +22 -22
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-Cbtk_kUW.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-Rnqa74Tk.mjs} +12 -12
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/{src-CCtanNlD.mjs → src-o7WEvbK1.mjs} +118 -3
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BOff1Kk5.mjs} +201 -7
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-BcFQRI_7.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-BvdcexDC.mjs} +7 -7
- package/dist/client/{view-LJVHVqsy.mjs → view-CTBwSpKv.mjs} +3 -3
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-CWIQyRIw.mjs} +1605 -442
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +5735 -2073
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-FwFj8zGL.mjs} +43 -0
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-CS6ih1Yc.mjs} +4 -4
- package/dist/server/{client-CGJ2ztYp.mjs → client-m0ylCj_f.mjs} +847 -786
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-vgWMz1uD.mjs} +6 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-CIOL3-9t.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +43 -30
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-DJo_obpi.mjs} +9 -7
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BnSuoHON.mjs} +5 -1
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-BJuOzxzn.mjs} +550 -258
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-Cr8p8T7V.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-BZh57-ua.mjs} +4 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-CvhFwbXJ.mjs} +240 -80
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-Cv_W1LVB.mjs} +39 -31
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-CRKbTm_7.mjs} +14 -10
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-8t0o6_jd.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/client/constants-4o4_hl34.mjs +0 -6
package/README.md
CHANGED
|
@@ -44,9 +44,9 @@ installed binary.
|
|
|
44
44
|
|
|
45
45
|
### Server-Side Rendering (Recommended)
|
|
46
46
|
|
|
47
|
-
Use `createRiverbankClient` from `@riverbankcms/sdk/next` in Next server code. It
|
|
47
|
+
Use `createRiverbankClient` from `@riverbankcms/sdk/next` in Next server code, including the client your catch-all page's `getClient` returns. It gives page reads Next's cache: ordinary content keeps a one-hour budget, while pages that depend on event or booking availability use 60 seconds and the availability tags. Memory and durable page-cache hits also register the returned freshness and tags on the rendered page. Preview reads stay uncached.
|
|
48
48
|
|
|
49
|
-
`
|
|
49
|
+
A client created from `@riverbankcms/sdk` or `@riverbankcms/sdk/server` has no framework cache, and `createCatchAllPage` doesn't add one. If your site builds its client in `src/lib/riverbank-client.ts` from `@riverbankcms/sdk/server`, change that import to `@riverbankcms/sdk/next` when you upgrade.
|
|
50
50
|
|
|
51
51
|
Use in Next.js App Router Server Components or getServerSideProps:
|
|
52
52
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { It as LinkValue, _ as PageOutline, a as ResolveImageUrlContext, g as OccurrenceContextData, h as EntrySubrouteContextData, l as BindingDateContext, o as ResolveImageUrlContextInput, p as ThemeTokens, r as MediaAssetIndexItem, v as PageRuntimeJoin, xt as SystemBlockShortKind, y as RouteMap, yt as SystemBlockContentByKind } from "./index-
|
|
3
|
-
import { t as ThemeRuntime } from "./index-
|
|
4
|
-
import { d as SdkCustomBlock } from "./types-
|
|
5
|
-
import { P as SiteBookingOfferingPresetSummary } from "./contracts-
|
|
6
|
-
import { _ as RiverbankClient } from "./types-
|
|
7
|
-
import { a as ResolveBlockDataDeps, f as ResolvedBlockData } from "./resolveBlockData-
|
|
1
|
+
import { Ai as BusinessPersonNoun, Gi as PageSurfaceSubjectWire, Hr as RenderableMediaAsset, Kn as BrowserReadAuthority, M as DateRuntimeContext, Mi as WeeklyOpeningHours, Vi as UtcIsoDateTimeString, Zi as BlockInteractionContext, _r as Theme, b as PrefetchedBlockData, h as ThemeResponsiveMode, j as LinkResolverContext, ji as MailingListRuntimeContext, nr as RenderablePageOutline$1, qn as BlockSiteTerms, ra as DeepReadonly, v as BlockLoaderFailures, y as BlockLoaderSnapshot, yr as PageTemplate } from "./request-P08l6mkr.js";
|
|
2
|
+
import { It as LinkValue, _ as PageOutline, a as ResolveImageUrlContext, g as OccurrenceContextData, h as EntrySubrouteContextData, l as BindingDateContext, o as ResolveImageUrlContextInput, p as ThemeTokens, r as MediaAssetIndexItem, v as PageRuntimeJoin, xt as SystemBlockShortKind, y as RouteMap, yt as SystemBlockContentByKind } from "./index-BeM5Ylwf.js";
|
|
3
|
+
import { t as ThemeRuntime } from "./index-DQBGwBPx.js";
|
|
4
|
+
import { d as SdkCustomBlock } from "./types-HAy1-Jjo.js";
|
|
5
|
+
import { P as SiteBookingOfferingPresetSummary } from "./contracts-Dfqz0Tcu.js";
|
|
6
|
+
import { _ as RiverbankClient } from "./types-DpEAnP4F.js";
|
|
7
|
+
import { a as ResolveBlockDataDeps, f as ResolvedBlockData } from "./resolveBlockData-BDHc8lFs.js";
|
|
8
8
|
import { DataLoaderOverrides, DataLoaderPreviewStage, DataLoaderSearchParams } from "./sdk/src/data/types.js";
|
|
9
9
|
import { RuntimeSdkConfig } from "./sdk/src/rendering/helpers/pageRuntimeSupport.js";
|
|
10
10
|
import * as React$2 from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bi as
|
|
2
|
-
import { t as ThemeRuntime } from "./index-
|
|
1
|
+
import { Bi as BookingTimeZone, Gi as PageSurfaceSubjectWire, Gt as SdkEditorRevision, Jt as ThemeSelectionPreviewProps, Kt as SdkSiteLayoutConfig, Lt as BlockApiProvider, Ni as EditLeaseScope, P as MediaAssetIndexItem, Pi as EditorBlockVersions, Pt as BookingOfferingPresetSummary, _ as EntrySubrouteContextData, _r as Theme, er as EditorRenderablePageOutline, f as PreviewPageAdaptationFacts, g as SdkConfigForBlockPicker, gi as SiteFooterContent, h as ThemeResponsiveMode, na as ContentTypeSchema, p as PreviewRenderingOverride, pr as HeaderLogoContext, qt as ThemeJournalState, t as ApiClient, wi as SurfaceId } from "./request-P08l6mkr.js";
|
|
2
|
+
import { t as ThemeRuntime } from "./index-DQBGwBPx.js";
|
|
3
3
|
import { t as PreviewRuntimeSession } from "./auth-contract-CgJ5nMaH.js";
|
|
4
4
|
import { z as z$1 } from "zod";
|
|
5
5
|
import React$1, { CSSProperties, ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
|
|
@@ -14,6 +14,7 @@ type BlockItemFields = {
|
|
|
14
14
|
draftContent?: Record<string, unknown> | null;
|
|
15
15
|
bindings?: Record<string, unknown> | null;
|
|
16
16
|
purpose?: string | null;
|
|
17
|
+
identifier?: string | null;
|
|
17
18
|
optimisticHash?: string | null;
|
|
18
19
|
/**
|
|
19
20
|
* Wire identity fields are rejected, so an API block can't be passed where an
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as EventRegistrationPaymentMethod, An as BookingSubmitOptions, Ar as EventRegistrationPaymentSubject, At as StateUpdate, Bn as getBookingServiceSlidingScale, Bt as AutoAppliedDiscountPreview, Cn as BookingFlowStep, Ct as RegistrationSelectionMode, Dn as BookingSlotSelection, Dr as CustomerEventRegistration, Dt as SeveralItemsKind, En as BookingResourceView, Et as SelectionPaymentSummary, F as BookingFormInteractiveIslandProps, Ft as EventSourceRecovery, G as PortalCreditState, Gn as BlockApiConfig, H as BookingQuestionsModel, Hi as AppointmentBookingReview, It as BookingPageKind, J as ExistingRegistrationLookupState, K as PortalProfile, Ki as NonNegativeCents, Kn as BrowserReadAuthority, L as EventRegistrationDirectPaymentOption, Li as BookingConsent, Ln as BookingAdmission, Mt as SelectionRequirementsLayout, Nn as LoadState, Nr as PublicEvent, Nt as TicketSelectionPurpose, On as BookingSlotView, Or as DirectCheckoutCollectionOptionKind, Ot as CombinationWorking, Q as EventRegistrationClientProps, R as EventRegistrationDirectPaymentSelectionState, Ri as DisplayContext, Rn as BookingFieldValue, Rt as BlockApiClient, Sn as BookingFlowStatus, St as RegistrationSelection, Tn as BookingFlowView, Tt as SelectionPayment, U as RegistrationFlowState, V as BookingPaymentSelectionViewModel, Vi as UtcIsoDateTimeString, Vn as ProtectedSubmission, Vt as DiscountApplyLine, W as PortalAuthState, X as EligibilityData, Y as SelectableEventTicketType, Z as EventPaymentState, _t as EventRegistrationPageSurfaceSubject, aa as BlockButtonRole, an as BookingFormService, at as PaymentStepState, bn as BookingFlowActionResult, bt as RegistrationTicketContinuation, ci as RoomChoice, cn as BookingFormField$1, ct as RegistrationResult, di as EventRegistrationErrorAction, dn as BookingPaymentChoice, dt as ThemedButtonProps, et as EventTicketSelectionLine, fi as PriceReductionSummary, fn as BookingPurchasablePackagesModel, ft as FormData, gn as BookingAppointmentPackagesModel, hi as EventSelectionFundingPick, in as BookingFormData$1, it as PaymentStatusRecoveryState, ji as MailingListRuntimeContext, jt as WaitlistInvitation, kn as BookingSubmitActionResult, kr as EventCheckoutReturnRequest, kt as CopyPart, li as RoomOptionChoice, lt as RegistrationStep, mi as EventSelectionFundingOption, nn as EventTicketLineSummary, nt as GuestErrors, oi as BookingQuestionsSubmissionFailure, on as BookingSelectedCollectionOptionKind, ot as RegistrationAttendanceMode, pi as CurrencyCode, pt as OccurrenceContext, q as EligibilityLookupState, qi as PositiveCents, qn as BlockSiteTerms, rn as BookingFormConfig$1, rt as PaymentSelection, si as EventRegistrationPricingOption, sn as BookingFormServiceCategory, st as RegistrationEvent, tn as EventEmbeddedCheckout, tt as Guest, ui as CombinationPricePlan, un as BookingPaymentAvailability, ut as RegistrationSubject, vt as RegistrationPresentation, wn as BookingFlowStepId, wr as SelectionAttendance, wt as RunPricingChoices, xn as BookingFlowFeedback, xt as BookingSelection, yn as BookingFieldView, yt as RegistrationAdmission, z as EventRegistrationSiteCreditPreview, zi as ZoneLabel, zn as BookingQuestionsPaymentSnapshot, zt as BoundBlockApiClient } from "./request-P08l6mkr.js";
|
|
2
2
|
import { z as z$1 } from "zod";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
@@ -91,12 +91,19 @@ declare function useSiteTermsAgreement(options: Readonly<{
|
|
|
91
91
|
};
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts
|
|
94
|
-
type
|
|
94
|
+
type BookingConfirmationService = Readonly<{
|
|
95
95
|
serviceTitle: string;
|
|
96
96
|
durationMinutes: number;
|
|
97
97
|
priceAmount: number;
|
|
98
98
|
priceCurrency: string;
|
|
99
99
|
}>;
|
|
100
|
+
/** What the last step shows when pressing the button leads to card payment. */
|
|
101
|
+
type BookingPaymentConfirmationSummary = (BookingConfirmationService & Readonly<{
|
|
102
|
+
kind: 'per_session';
|
|
103
|
+
}>) | (BookingConfirmationService & Readonly<{
|
|
104
|
+
kind: 'buy_package';
|
|
105
|
+
packageName: string;
|
|
106
|
+
}>);
|
|
100
107
|
//#endregion
|
|
101
108
|
//#region .cache/declarations/blocks/src/system/runtime/hooks/useManualDiscountPreview.d.ts
|
|
102
109
|
/** A preview belongs to the exact code, email and basket; late responses cannot price a newer draft. */
|
|
@@ -255,7 +262,8 @@ type BookingFlowActions = Readonly<{
|
|
|
255
262
|
submit: (options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>; /** Deliberately accept the specific review displayed by this consumer. Stale reviews are rejected. */
|
|
256
263
|
acceptReview: (review: AppointmentBookingReview, options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>;
|
|
257
264
|
reset: () => void;
|
|
258
|
-
clearFeedback: () => void;
|
|
265
|
+
clearFeedback: () => void; /** Reads the client's own packages again, after the read failed. */
|
|
266
|
+
retryPackages: () => void;
|
|
259
267
|
}>;
|
|
260
268
|
type HeadlessBookingFlow = Readonly<{
|
|
261
269
|
dateContext: DisplayContext;
|
|
@@ -275,7 +283,8 @@ type HeadlessBookingFlow = Readonly<{
|
|
|
275
283
|
resources: BookingResourcesModel;
|
|
276
284
|
availability: BookingAvailabilityModel;
|
|
277
285
|
fields: BookingFieldsModel;
|
|
278
|
-
payment: BookingPaymentModel;
|
|
286
|
+
payment: BookingPaymentModel; /** Whether the selected service can be booked online at all, with how to reach the business when it can't. */
|
|
287
|
+
admission: BookingAdmission;
|
|
279
288
|
discount: BookingDiscountModel; /** During-booking questions for the selected service, kept apart from `fields`. */
|
|
280
289
|
questions: BookingQuestionsModel;
|
|
281
290
|
questionFieldErrors: BookingQuestionsSubmissionFailure['questionFieldErrors'];
|
|
@@ -294,6 +303,31 @@ type HeadlessBookingPaymentSelectionStepProps = Readonly<{
|
|
|
294
303
|
presentation?: BookingPresentation;
|
|
295
304
|
}>;
|
|
296
305
|
//#endregion
|
|
306
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationRooms.state.d.ts
|
|
307
|
+
type RoomOptionView = Readonly<{
|
|
308
|
+
key: string;
|
|
309
|
+
choice: RoomOptionChoice;
|
|
310
|
+
title: string;
|
|
311
|
+
detail: string | null;
|
|
312
|
+
priceCents: number;
|
|
313
|
+
each: boolean;
|
|
314
|
+
people: number;
|
|
315
|
+
maxPeople: number;
|
|
316
|
+
placesLeft: string | null; /** They've chosen this, and it's no longer there to have. */
|
|
317
|
+
gone: boolean;
|
|
318
|
+
}>;
|
|
319
|
+
type RoomKindView = Readonly<{
|
|
320
|
+
kindId: string;
|
|
321
|
+
name: string;
|
|
322
|
+
description: string;
|
|
323
|
+
photos: readonly Readonly<{
|
|
324
|
+
src: string;
|
|
325
|
+
alt: string;
|
|
326
|
+
}>[];
|
|
327
|
+
options: readonly RoomOptionView[];
|
|
328
|
+
fullyBooked: boolean;
|
|
329
|
+
}>;
|
|
330
|
+
//#endregion
|
|
297
331
|
//#region .cache/declarations/sdk/src/bookings/types.d.ts
|
|
298
332
|
/**
|
|
299
333
|
* A bookable service (e.g., "30-minute consultation", "Hair cut")
|
|
@@ -350,7 +384,10 @@ type BookingFormData<TCustomFieldId extends string = never> = BookingFormData$1<
|
|
|
350
384
|
* Data submitted to create a booking
|
|
351
385
|
*/
|
|
352
386
|
interface BookingSubmissionData {
|
|
353
|
-
|
|
387
|
+
purchase?: Readonly<{
|
|
388
|
+
kind: 'pass';
|
|
389
|
+
productId: string;
|
|
390
|
+
}>;
|
|
354
391
|
formId: string;
|
|
355
392
|
serviceId: string;
|
|
356
393
|
resourceId?: string;
|
|
@@ -426,7 +463,7 @@ type EventRegistrationSubmitResult = Readonly<{
|
|
|
426
463
|
ok: false;
|
|
427
464
|
reason: 'submission-failed';
|
|
428
465
|
}> & BookingQuestionsSubmissionFailure);
|
|
429
|
-
type EventRegistrationSubmit = (method:
|
|
466
|
+
type EventRegistrationSubmit = (method: EventRegistrationPaymentMethod, membershipId?: string, selection?: PaymentSelection) => Promise<EventRegistrationSubmitResult>;
|
|
430
467
|
//#endregion
|
|
431
468
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.d.ts
|
|
432
469
|
type ClosedEarlyCopy = Readonly<{
|
|
@@ -448,6 +485,45 @@ type FreshBookingClosure = Readonly<{
|
|
|
448
485
|
startsAt: string;
|
|
449
486
|
}>;
|
|
450
487
|
//#endregion
|
|
488
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/selectionFundingView.d.ts
|
|
489
|
+
type FundingOptionRow = Readonly<{
|
|
490
|
+
key: string;
|
|
491
|
+
pick: EventSelectionFundingPick; /** The card option a money row chooses as well, when the visitor picks between several. */
|
|
492
|
+
card: DirectCheckoutCollectionOptionKind | null;
|
|
493
|
+
label: string;
|
|
494
|
+
details: readonly string[];
|
|
495
|
+
price: string | null;
|
|
496
|
+
selected: boolean;
|
|
497
|
+
}>;
|
|
498
|
+
type FundingSummaryLine = Readonly<{
|
|
499
|
+
key: string;
|
|
500
|
+
label: string;
|
|
501
|
+
note: string | null;
|
|
502
|
+
value: string;
|
|
503
|
+
}>;
|
|
504
|
+
type FundingSummaryTotal = Readonly<{
|
|
505
|
+
key: string;
|
|
506
|
+
label: string;
|
|
507
|
+
value: string;
|
|
508
|
+
total: boolean;
|
|
509
|
+
}>;
|
|
510
|
+
/** "Your booking" for a pass or membership option. The money option keeps the several-items summary. */
|
|
511
|
+
type FundedSummary = Readonly<{
|
|
512
|
+
caption: string;
|
|
513
|
+
lines: readonly FundingSummaryLine[];
|
|
514
|
+
totals: readonly FundingSummaryTotal[];
|
|
515
|
+
}>;
|
|
516
|
+
type SelectionFundingView = Readonly<{
|
|
517
|
+
option: EventSelectionFundingOption;
|
|
518
|
+
rows: readonly FundingOptionRow[]; /** Null for the money option, which keeps the several-items summary and its own button. */
|
|
519
|
+
summary: FundedSummary | null;
|
|
520
|
+
buttonText: string | null; /** The whole card charge for a pass or membership option; null for the money option. */
|
|
521
|
+
cardCents: number | null; /** Whether submitting goes on to take a payment, for the processing screen. */
|
|
522
|
+
takesPayment: boolean; /** Buying a pass or membership agrees to the business's terms of sale. */
|
|
523
|
+
termsSurface: 'primary' | 'commerce'; /** Why only money options show. */
|
|
524
|
+
note: string | null;
|
|
525
|
+
}>;
|
|
526
|
+
//#endregion
|
|
451
527
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
|
|
452
528
|
type EventRegistrationDetailsCompleteResult = Readonly<{
|
|
453
529
|
ok: true;
|
|
@@ -479,7 +555,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
479
555
|
}>;
|
|
480
556
|
dismissHandOff?: () => void;
|
|
481
557
|
handOffBusinessName?: string;
|
|
482
|
-
handOffOfferingLabel?: string;
|
|
558
|
+
handOffOfferingLabel?: string; /** The rooms step, on an event with rooms; null otherwise. */
|
|
559
|
+
roomChooser: {
|
|
560
|
+
view: Readonly<{
|
|
561
|
+
intro: string;
|
|
562
|
+
kinds: readonly RoomKindView[];
|
|
563
|
+
stayLines: readonly string[];
|
|
564
|
+
note: string | null;
|
|
565
|
+
splitWarning: string | null;
|
|
566
|
+
notice: string | null;
|
|
567
|
+
noticeStay: readonly string[];
|
|
568
|
+
takeOff: Readonly<{
|
|
569
|
+
label: string;
|
|
570
|
+
choices: readonly RoomChoice[];
|
|
571
|
+
}> | null;
|
|
572
|
+
people: number;
|
|
573
|
+
totalCents: number | null;
|
|
574
|
+
totalNote: string | null;
|
|
575
|
+
priceNote: string | null;
|
|
576
|
+
}>;
|
|
577
|
+
choices: readonly RoomChoice[]; /** The places without a room. */
|
|
578
|
+
dayOptions: readonly EventRegistrationPricingOption[];
|
|
579
|
+
setRoomChoices: (choices: readonly RoomChoice[]) => void;
|
|
580
|
+
setDayLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
581
|
+
} | null; /** What can be listed as a ticket: an event's room prices can only be chosen through its rooms. */
|
|
582
|
+
listableTicketTypes: readonly EventRegistrationPricingOption[];
|
|
483
583
|
api: BoundBlockApiClient;
|
|
484
584
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
485
585
|
bookingClosure: FreshBookingClosure;
|
|
@@ -495,7 +595,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
495
595
|
paysNothing: boolean;
|
|
496
596
|
offersEntitlements: boolean;
|
|
497
597
|
paysInFullBecauseSeveral: boolean;
|
|
498
|
-
};
|
|
598
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
599
|
+
paymentInFullNote: string | null;
|
|
499
600
|
anchorId: string;
|
|
500
601
|
occurrenceContext: {
|
|
501
602
|
id: string;
|
|
@@ -555,7 +656,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
555
656
|
}> | null;
|
|
556
657
|
hint: string;
|
|
557
658
|
} | null;
|
|
558
|
-
combinationAwaitingVisitor: boolean;
|
|
659
|
+
combinationAwaitingVisitor: boolean;
|
|
660
|
+
/**
|
|
661
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
662
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
663
|
+
*/
|
|
664
|
+
selectionFunding: Readonly<{
|
|
665
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
666
|
+
view: SelectionFundingView | null;
|
|
667
|
+
dateCount: number;
|
|
668
|
+
notice: string | null;
|
|
669
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
670
|
+
retry: () => void;
|
|
671
|
+
}> | null;
|
|
672
|
+
handleChangeDates: () => void;
|
|
673
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
559
674
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
560
675
|
runChoices: Readonly<Record<string, Readonly<{
|
|
561
676
|
pricingOptionId: string | null;
|
|
@@ -644,24 +759,17 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
644
759
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
645
760
|
handleLogout: () => void;
|
|
646
761
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
647
|
-
paymentHeldForCode: boolean;
|
|
648
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
649
|
-
membershipFirstPaymentCents: number | null;
|
|
762
|
+
paymentHeldForCode: boolean;
|
|
650
763
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
651
764
|
paymentSelection: PaymentSelection;
|
|
652
|
-
declinedPass: Readonly<{
|
|
653
|
-
method: 'pass';
|
|
654
|
-
passId: string;
|
|
655
|
-
productName?: string;
|
|
656
|
-
}> | null;
|
|
657
|
-
isMembershipFastTrack: boolean;
|
|
658
765
|
waitlistClaim: Readonly<{
|
|
659
766
|
kind: 'none';
|
|
660
767
|
}> | WaitlistInvitation;
|
|
661
768
|
eligibility: EligibilityData | null;
|
|
662
769
|
registrationOptionsState: EligibilityLookupState;
|
|
663
770
|
eligibilityLoading: boolean;
|
|
664
|
-
eligibilityError: string | null;
|
|
771
|
+
eligibilityError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
772
|
+
reloadOptions: () => void;
|
|
665
773
|
existingRegistrations: CustomerEventRegistration[];
|
|
666
774
|
existingRegistrationLoading: boolean;
|
|
667
775
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
@@ -674,8 +782,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
674
782
|
}> | Readonly<{
|
|
675
783
|
kind: 'waitlisted';
|
|
676
784
|
}>;
|
|
677
|
-
hasEligibility: boolean;
|
|
678
|
-
hasMembershipEligibility: boolean;
|
|
679
785
|
requireGuestDetails: boolean;
|
|
680
786
|
discountCode: string;
|
|
681
787
|
setDiscountCode: (value: string) => void;
|
|
@@ -708,6 +814,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
708
814
|
productCategoryId: string | null;
|
|
709
815
|
} | null;
|
|
710
816
|
shouldShowDiscountToggle: boolean;
|
|
817
|
+
discountCardOnly: boolean;
|
|
711
818
|
verification: {
|
|
712
819
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
713
820
|
result: {
|
|
@@ -722,6 +829,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
722
829
|
};
|
|
723
830
|
outcome: {
|
|
724
831
|
kind: "resolved";
|
|
832
|
+
submissionPayment?: {
|
|
833
|
+
amountPaidCents: NonNegativeCents;
|
|
834
|
+
creditCents: NonNegativeCents;
|
|
835
|
+
currency: CurrencyCode;
|
|
836
|
+
purchasedItems: readonly {
|
|
837
|
+
kind: "membership" | "pass";
|
|
838
|
+
name: string;
|
|
839
|
+
priceCents: NonNegativeCents;
|
|
840
|
+
}[];
|
|
841
|
+
} | null | undefined;
|
|
725
842
|
outcome: {
|
|
726
843
|
arrivalVenues?: Record<string, string> | undefined;
|
|
727
844
|
kind: "detailsAvailable";
|
|
@@ -1196,6 +1313,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1196
1313
|
};
|
|
1197
1314
|
outcome: {
|
|
1198
1315
|
kind: "resolved";
|
|
1316
|
+
submissionPayment?: {
|
|
1317
|
+
amountPaidCents: NonNegativeCents;
|
|
1318
|
+
creditCents: NonNegativeCents;
|
|
1319
|
+
currency: CurrencyCode;
|
|
1320
|
+
purchasedItems: readonly {
|
|
1321
|
+
kind: "membership" | "pass";
|
|
1322
|
+
name: string;
|
|
1323
|
+
priceCents: NonNegativeCents;
|
|
1324
|
+
}[];
|
|
1325
|
+
} | null | undefined;
|
|
1199
1326
|
outcome: {
|
|
1200
1327
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1201
1328
|
kind: "detailsAvailable";
|
|
@@ -1677,9 +1804,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1677
1804
|
handleReturnToBooking: () => void;
|
|
1678
1805
|
checkingNextStep: boolean;
|
|
1679
1806
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
1680
|
-
handlePaymentSelect: () => Promise<
|
|
1681
|
-
handleUseCardInsteadOfPass: () => void;
|
|
1682
|
-
handleUsePassInstead: () => void;
|
|
1807
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
1683
1808
|
handleBookForSomeoneElse: () => void;
|
|
1684
1809
|
handleBookAnother: () => void;
|
|
1685
1810
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -1697,7 +1822,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1697
1822
|
}>;
|
|
1698
1823
|
dismissHandOff?: () => void;
|
|
1699
1824
|
handOffBusinessName?: string;
|
|
1700
|
-
handOffOfferingLabel?: string;
|
|
1825
|
+
handOffOfferingLabel?: string; /** The rooms step, on an event with rooms; null otherwise. */
|
|
1826
|
+
roomChooser: {
|
|
1827
|
+
view: Readonly<{
|
|
1828
|
+
intro: string;
|
|
1829
|
+
kinds: readonly RoomKindView[];
|
|
1830
|
+
stayLines: readonly string[];
|
|
1831
|
+
note: string | null;
|
|
1832
|
+
splitWarning: string | null;
|
|
1833
|
+
notice: string | null;
|
|
1834
|
+
noticeStay: readonly string[];
|
|
1835
|
+
takeOff: Readonly<{
|
|
1836
|
+
label: string;
|
|
1837
|
+
choices: readonly RoomChoice[];
|
|
1838
|
+
}> | null;
|
|
1839
|
+
people: number;
|
|
1840
|
+
totalCents: number | null;
|
|
1841
|
+
totalNote: string | null;
|
|
1842
|
+
priceNote: string | null;
|
|
1843
|
+
}>;
|
|
1844
|
+
choices: readonly RoomChoice[]; /** The places without a room. */
|
|
1845
|
+
dayOptions: readonly EventRegistrationPricingOption[];
|
|
1846
|
+
setRoomChoices: (choices: readonly RoomChoice[]) => void;
|
|
1847
|
+
setDayLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
1848
|
+
} | null; /** What can be listed as a ticket: an event's room prices can only be chosen through its rooms. */
|
|
1849
|
+
listableTicketTypes: readonly EventRegistrationPricingOption[];
|
|
1701
1850
|
api: BoundBlockApiClient;
|
|
1702
1851
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
1703
1852
|
bookingClosure: FreshBookingClosure;
|
|
@@ -1713,7 +1862,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1713
1862
|
paysNothing: boolean;
|
|
1714
1863
|
offersEntitlements: boolean;
|
|
1715
1864
|
paysInFullBecauseSeveral: boolean;
|
|
1716
|
-
};
|
|
1865
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
1866
|
+
paymentInFullNote: string | null;
|
|
1717
1867
|
anchorId: string;
|
|
1718
1868
|
occurrenceContext: {
|
|
1719
1869
|
id: string;
|
|
@@ -1773,7 +1923,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1773
1923
|
}> | null;
|
|
1774
1924
|
hint: string;
|
|
1775
1925
|
} | null;
|
|
1776
|
-
combinationAwaitingVisitor: boolean;
|
|
1926
|
+
combinationAwaitingVisitor: boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
1929
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
1930
|
+
*/
|
|
1931
|
+
selectionFunding: Readonly<{
|
|
1932
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
1933
|
+
view: SelectionFundingView | null;
|
|
1934
|
+
dateCount: number;
|
|
1935
|
+
notice: string | null;
|
|
1936
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
1937
|
+
retry: () => void;
|
|
1938
|
+
}> | null;
|
|
1939
|
+
handleChangeDates: () => void;
|
|
1940
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
1777
1941
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
1778
1942
|
runChoices: Readonly<Record<string, Readonly<{
|
|
1779
1943
|
pricingOptionId: string | null;
|
|
@@ -1862,24 +2026,17 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1862
2026
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
1863
2027
|
handleLogout: () => void;
|
|
1864
2028
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
1865
|
-
paymentHeldForCode: boolean;
|
|
1866
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
1867
|
-
membershipFirstPaymentCents: number | null;
|
|
2029
|
+
paymentHeldForCode: boolean;
|
|
1868
2030
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
1869
2031
|
paymentSelection: PaymentSelection;
|
|
1870
|
-
declinedPass: Readonly<{
|
|
1871
|
-
method: 'pass';
|
|
1872
|
-
passId: string;
|
|
1873
|
-
productName?: string;
|
|
1874
|
-
}> | null;
|
|
1875
|
-
isMembershipFastTrack: boolean;
|
|
1876
2032
|
waitlistClaim: Readonly<{
|
|
1877
2033
|
kind: 'none';
|
|
1878
2034
|
}> | WaitlistInvitation;
|
|
1879
2035
|
eligibility: EligibilityData | null;
|
|
1880
2036
|
registrationOptionsState: EligibilityLookupState;
|
|
1881
2037
|
eligibilityLoading: boolean;
|
|
1882
|
-
eligibilityError: string | null;
|
|
2038
|
+
eligibilityError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
2039
|
+
reloadOptions: () => void;
|
|
1883
2040
|
existingRegistrations: CustomerEventRegistration[];
|
|
1884
2041
|
existingRegistrationLoading: boolean;
|
|
1885
2042
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
@@ -1892,8 +2049,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1892
2049
|
}> | Readonly<{
|
|
1893
2050
|
kind: 'waitlisted';
|
|
1894
2051
|
}>;
|
|
1895
|
-
hasEligibility: boolean;
|
|
1896
|
-
hasMembershipEligibility: boolean;
|
|
1897
2052
|
requireGuestDetails: boolean;
|
|
1898
2053
|
discountCode: string;
|
|
1899
2054
|
setDiscountCode: (value: string) => void;
|
|
@@ -1926,6 +2081,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1926
2081
|
productCategoryId: string | null;
|
|
1927
2082
|
} | null;
|
|
1928
2083
|
shouldShowDiscountToggle: boolean;
|
|
2084
|
+
discountCardOnly: boolean;
|
|
1929
2085
|
verification: {
|
|
1930
2086
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
1931
2087
|
result: {
|
|
@@ -1940,6 +2096,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1940
2096
|
};
|
|
1941
2097
|
outcome: {
|
|
1942
2098
|
kind: "resolved";
|
|
2099
|
+
submissionPayment?: {
|
|
2100
|
+
amountPaidCents: NonNegativeCents;
|
|
2101
|
+
creditCents: NonNegativeCents;
|
|
2102
|
+
currency: CurrencyCode;
|
|
2103
|
+
purchasedItems: readonly {
|
|
2104
|
+
kind: "membership" | "pass";
|
|
2105
|
+
name: string;
|
|
2106
|
+
priceCents: NonNegativeCents;
|
|
2107
|
+
}[];
|
|
2108
|
+
} | null | undefined;
|
|
1943
2109
|
outcome: {
|
|
1944
2110
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1945
2111
|
kind: "detailsAvailable";
|
|
@@ -2414,6 +2580,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2414
2580
|
};
|
|
2415
2581
|
outcome: {
|
|
2416
2582
|
kind: "resolved";
|
|
2583
|
+
submissionPayment?: {
|
|
2584
|
+
amountPaidCents: NonNegativeCents;
|
|
2585
|
+
creditCents: NonNegativeCents;
|
|
2586
|
+
currency: CurrencyCode;
|
|
2587
|
+
purchasedItems: readonly {
|
|
2588
|
+
kind: "membership" | "pass";
|
|
2589
|
+
name: string;
|
|
2590
|
+
priceCents: NonNegativeCents;
|
|
2591
|
+
}[];
|
|
2592
|
+
} | null | undefined;
|
|
2417
2593
|
outcome: {
|
|
2418
2594
|
arrivalVenues?: Record<string, string> | undefined;
|
|
2419
2595
|
kind: "detailsAvailable";
|
|
@@ -2895,9 +3071,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2895
3071
|
handleReturnToBooking: () => void;
|
|
2896
3072
|
checkingNextStep: boolean;
|
|
2897
3073
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
2898
|
-
handlePaymentSelect: () => Promise<
|
|
2899
|
-
handleUseCardInsteadOfPass: () => void;
|
|
2900
|
-
handleUsePassInstead: () => void;
|
|
3074
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
2901
3075
|
handleBookForSomeoneElse: () => void;
|
|
2902
3076
|
handleBookAnother: () => void;
|
|
2903
3077
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -3027,22 +3201,23 @@ type EventRegistrationPaymentSelection = Readonly<{
|
|
|
3027
3201
|
}> | Readonly<{
|
|
3028
3202
|
method: 'stripe';
|
|
3029
3203
|
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
3030
|
-
}> | Readonly<{
|
|
3031
|
-
method: 'pass';
|
|
3032
|
-
passId: string;
|
|
3033
|
-
productName?: string;
|
|
3034
|
-
}> | Readonly<{
|
|
3204
|
+
}> /** A run's membership. Dates choose a pass or membership through `funding`. */ | Readonly<{
|
|
3035
3205
|
method: 'membership';
|
|
3036
3206
|
membershipId: string;
|
|
3037
3207
|
productName?: string;
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3208
|
+
}>;
|
|
3209
|
+
/**
|
|
3210
|
+
* How the dates being booked can be paid (issue 1767): the server's options as rows to
|
|
3211
|
+
* pick with `chooseFunding(row.key)`, "Your booking" for a pass or membership, and the
|
|
3212
|
+
* button. Null when the card options alone pay, as for a run or a date without passes.
|
|
3213
|
+
*/
|
|
3214
|
+
type EventRegistrationFundingModel = Readonly<{
|
|
3215
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
3216
|
+
rows: readonly FundingOptionRow[];
|
|
3217
|
+
summary: FundedSummary | null; /** The payment button's words; null leaves them to the card step's `stepState`. */
|
|
3218
|
+
buttonText: string | null; /** Why passes and memberships aren't offered, such as several places. */
|
|
3219
|
+
note: string | null; /** Why the options changed after a refused booking. */
|
|
3220
|
+
notice: string | null;
|
|
3046
3221
|
}>;
|
|
3047
3222
|
type EventRegistrationPaymentModel = Readonly<{
|
|
3048
3223
|
kind: 'hidden';
|
|
@@ -3051,6 +3226,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3051
3226
|
directPaymentSelectionState: EventRegistrationDirectPaymentSelectionState;
|
|
3052
3227
|
checkout: EventPaymentState;
|
|
3053
3228
|
stepState: PaymentStepState;
|
|
3229
|
+
funding: EventRegistrationFundingModel | null;
|
|
3054
3230
|
}> | Readonly<{
|
|
3055
3231
|
kind: 'loading' | 'error' | 'not-eligible' | 'ready';
|
|
3056
3232
|
selection: EventRegistrationPaymentSelection;
|
|
@@ -3060,6 +3236,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3060
3236
|
stepState: PaymentStepState;
|
|
3061
3237
|
eligibility: EligibilityData | null;
|
|
3062
3238
|
eligibilityError: string | null | undefined;
|
|
3239
|
+
funding: EventRegistrationFundingModel | null;
|
|
3063
3240
|
}>;
|
|
3064
3241
|
type EventRegistrationDiscountModel = Readonly<{
|
|
3065
3242
|
code: string;
|
|
@@ -3095,7 +3272,9 @@ type EventRegistrationFlowActions = Readonly<{
|
|
|
3095
3272
|
setTicketsCount: (count: number) => void;
|
|
3096
3273
|
updateAttendee: (values: FormData) => void;
|
|
3097
3274
|
updateGuests: (guests: Guest[]) => void;
|
|
3098
|
-
selectPayment: (selection: EventRegistrationPaymentSelection) => void;
|
|
3275
|
+
selectPayment: (selection: EventRegistrationPaymentSelection) => void; /** Picks one of `payment.funding.rows` by its key. */
|
|
3276
|
+
chooseFunding: (key: string) => void; /** Asks for the ways to pay again after they failed to load. */
|
|
3277
|
+
retryFunding: () => void;
|
|
3099
3278
|
setDiscountCode: (code: string) => void;
|
|
3100
3279
|
setDiscountOpen: (isOpen: boolean) => void; /** Checks a typed code with the server; checkout waits until it's accepted or removed. */
|
|
3101
3280
|
applyDiscountCode: () => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingTransformName } from "./index-
|
|
1
|
+
import { Ut as NavigationAuthoringLinkInput, Wt as NavigationConfigItemInput } from "./request-P08l6mkr.js";
|
|
2
|
+
import { u as BindingTransformName } from "./index-BeM5Ylwf.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $t as
|
|
2
|
-
import { ht as SiteHeaderContent, mt as SiteFooterContent, r as MediaAssetIndexItem } from "./index-
|
|
3
|
-
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-
|
|
1
|
+
import { $t as SiteRuntimeSiteTerms, Ai as BusinessPersonNoun, Bi as BookingTimeZone, Ht as PublicPassesResponse$1, Ii as BusinessAddress, Mi as WeeklyOpeningHours, Nr as PublicEvent, Oi as BookingEmbedSettings, Qt as PublicServiceCategorySummary$1, Xt as PublicBookingServiceCatalogueItem$1, Zi as BlockInteractionContext, Zt as PublicBookingServicesResponse$1, c as SdkRuntimePageSurfaceSubject$1, d as SiteRuntimeSelectionPayload, en as RoutableContentItem$1, fr as ResolvedInternalLinkEntityType, gr as LogoFacts, hr as FooterMode, ji as MailingListRuntimeContext, jr as PublicMapLocationParams, ki as MapDrawing, l as SiteBookingOfferingPresetSummary$1, qr as Media, r as ApiErrorCode$1, s as SdkRuntimeContentByPathResponse, u as SiteRuntimeIdentity } from "./request-P08l6mkr.js";
|
|
2
|
+
import { ht as SiteHeaderContent, mt as SiteFooterContent, r as MediaAssetIndexItem } from "./index-BeM5Ylwf.js";
|
|
3
|
+
import { d as SdkCustomBlock, f as SdkThemeConfig, u as RiverbankSiteConfig } from "./types-HAy1-Jjo.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/public-api/teamMemberContracts.d.ts
|
|
6
6
|
type PublicTeamMemberSummary = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as SiteResponse } from "./contracts-
|
|
2
|
-
import { K as LoadPageResult } from "./Page-
|
|
1
|
+
import { I as SiteResponse } from "./contracts-Dfqz0Tcu.js";
|
|
2
|
+
import { K as LoadPageResult } from "./Page-DQOxVtp3.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/metadata/generatePageMetadata.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as SiteResponse, _ as PublicEndpointName, l as HTTPMethod, m as PublicAPIEndpoints, o as EntriesResponse, p as PageResponse, r as ApiResult } from "./contracts-
|
|
2
|
-
import { a as GetEntriesBaseParams, i as EntriesResponseWithMeta } from "./types-
|
|
3
|
-
import { i as NavigationCacheFile, r as FormsCacheFile, s as PrebuildManifest } from "./index-
|
|
1
|
+
import { I as SiteResponse, _ as PublicEndpointName, l as HTTPMethod, m as PublicAPIEndpoints, o as EntriesResponse, p as PageResponse, r as ApiResult } from "./contracts-Dfqz0Tcu.js";
|
|
2
|
+
import { a as GetEntriesBaseParams, i as EntriesResponseWithMeta } from "./types-DpEAnP4F.js";
|
|
3
|
+
import { i as NavigationCacheFile, r as FormsCacheFile, s as PrebuildManifest } from "./index-CB5Csefo.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/prebuild/loader.d.ts
|
|
6
6
|
interface PrebuildLoaderConfig {
|