@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as RiverbankSiteConfig } from "./types-
|
|
3
|
-
import { _ as RiverbankClient } from "./types-
|
|
1
|
+
import { _r as Theme } from "./request-P08l6mkr.js";
|
|
2
|
+
import { u as RiverbankSiteConfig } from "./types-HAy1-Jjo.js";
|
|
3
|
+
import { _ as RiverbankClient } from "./types-DpEAnP4F.js";
|
|
4
4
|
import { DataLoaderOverrides, DataLoaderSearchParams } from "./sdk/src/data/types.js";
|
|
5
|
-
import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-
|
|
6
|
-
import { i as LoadContentResult } from "./loadContent-
|
|
7
|
-
import { t as Metadata } from "./generatePageMetadata-
|
|
8
|
-
import { c as RiverbankContentLoadError } from "./resolvePageContent-
|
|
5
|
+
import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-DQOxVtp3.js";
|
|
6
|
+
import { i as LoadContentResult } from "./loadContent-BG2tLGXj.js";
|
|
7
|
+
import { t as Metadata } from "./generatePageMetadata-CSfAqmry.js";
|
|
8
|
+
import { c as RiverbankContentLoadError } from "./resolvePageContent-Y3IZBbtL.js";
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
10
|
|
|
11
11
|
//#region .cache/declarations/sdk/src/next/content-load-failure.d.ts
|
|
@@ -186,7 +186,8 @@ type CreateCatchAllPageBaseOptions = {
|
|
|
186
186
|
/**
|
|
187
187
|
* Function that returns the Riverbank client.
|
|
188
188
|
* Called fresh on each request to support different caching strategies.
|
|
189
|
-
*
|
|
189
|
+
* Build it with `createRiverbankClient` from `@riverbankcms/sdk/next`, which gives page reads Next's
|
|
190
|
+
* cache. A client from `@riverbankcms/sdk` or `@riverbankcms/sdk/server` has no framework cache.
|
|
190
191
|
*/
|
|
191
192
|
getClient: () => RiverbankClient;
|
|
192
193
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as RoutableContentResponse, C as PublicPassesResponse, D as PublicTeamMembersResponse, I as SiteResponse, M as RouteOutcomeResponse, O as PublicWeeklySlotAvailabilityResponse, R as SitemapRoutesResponse, S as PublicMembershipsResponse, T as PublicProductsResponse, _ as PublicEndpointName, b as PublicFormResponse, g as PublicBookingServicesResponse, i as CheckRedirectResponse, j as RouteDecisionResponse, o as EntriesResponse, p as PageResponse, s as EntryResponse, v as PublicEventDetailsResponse, w as PublicProductCategorySelector, x as PublicFormsResponse, y as PublicEventsResponse } from "./contracts-
|
|
1
|
+
import { Lr as CalendarWindowPage, Mr as PublicMapLocationResult, Rr as CalendarWindowRequest, jr as PublicMapLocationParams, n as FrameworkCacheAdapter } from "./request-P08l6mkr.js";
|
|
2
|
+
import { A as RoutableContentResponse, C as PublicPassesResponse, D as PublicTeamMembersResponse, I as SiteResponse, M as RouteOutcomeResponse, O as PublicWeeklySlotAvailabilityResponse, R as SitemapRoutesResponse, S as PublicMembershipsResponse, T as PublicProductsResponse, _ as PublicEndpointName, b as PublicFormResponse, g as PublicBookingServicesResponse, i as CheckRedirectResponse, j as RouteDecisionResponse, o as EntriesResponse, p as PageResponse, s as EntryResponse, v as PublicEventDetailsResponse, w as PublicProductCategorySelector, x as PublicFormsResponse, y as PublicEventsResponse } from "./contracts-Dfqz0Tcu.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/client/runtimeCacheKeys.d.ts
|
|
5
5
|
declare const publishedRuntimeCacheKeyBrand: unique symbol;
|
|
@@ -830,6 +830,11 @@ interface RiverbankClient {
|
|
|
830
830
|
* @returns The base URL (e.g., 'https://dashboard.example.com/api')
|
|
831
831
|
*/
|
|
832
832
|
getBaseUrl(): string;
|
|
833
|
+
/**
|
|
834
|
+
* Whether published page reads go through a framework cache. A client built with
|
|
835
|
+
* `createRiverbankClient` from `@riverbankcms/sdk/next` always has one.
|
|
836
|
+
*/
|
|
837
|
+
hasFrameworkCache(): boolean;
|
|
833
838
|
}
|
|
834
839
|
//#endregion
|
|
835
840
|
export { isPublishedRuntimeCacheKeyEndpoint as $, PublishedRuntimeCacheFreshness as A, classifyPublishedRuntimeCacheFreshness as B, SdkDefaultHeaderName as C, DerivePublishedRuntimeCacheKeyResult as D, DerivePublishedRuntimeCacheKeyInput as E, ResolveRuntimeCachePolicyInput as F, GetSiteRuntimeCacheParams as G, resolveRuntimeCachePolicy as H, RuntimeCacheLiveOnlyReason as I, ParsePublishedRuntimeCachePayloadSchemaVersionResult as J, ParsePublishedRuntimeCacheKeyDetailsResult as K, RuntimeCacheParams as L, PublishedRuntimeCacheReadInput as M, PublishedRuntimeCacheReadResult as N, PublishedRuntimeCacheAdapter as O, PublishedRuntimeCacheWriteInput as P, PublishedRuntimeNormalizedParams as Q, RuntimeCachePolicy as R, SdkCorrelationHeaders as S, ClassifyPublishedRuntimeCacheFreshnessInput as T, DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION as U, derivePublishedRuntimeCacheKey as V, GetContentByPathRuntimeCacheParams as W, PublishedRuntimeCacheKeyEndpoint as X, PublishedRuntimeCacheKey as Y, PublishedRuntimeCachePayloadSchemaVersion as Z, RiverbankClient as _, GetEntriesBaseParams as a, SdkAuthConfig as b, GetSiteParams as c, ResilienceConfig as d, normalizeRuntimePublicPath as et, ResilienceDurableCacheDiagnostic as f, RetryConfig as g, ResilientData as h, EntriesResponseWithMeta as i, PublishedRuntimeCacheKeyError as j, PublishedRuntimeCacheAdapterErrorKind as k, PaginationMeta as l, ResilienceStatus as m, CircuitBreakerConfig as n, parsePublishedRuntimeCacheKeyDetails as nt, GetEntriesByIdentifiersParams as o, ResilienceSource as p, ParsePublishedRuntimeCacheKeyResult as q, CircuitState as r, parsePublishedRuntimeCachePayloadSchemaVersion as rt, GetPageParams as s, ApiKeyType as t, parsePublishedRuntimeCacheKey as tt, ResilienceCacheTier as u, RiverbankClientConfig as v, SdkMethodOptions as w, SdkCorrelationHeaderName as x, SDK_CORRELATION_HEADER_NAMES as y, RuntimeCachePolicyKind as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as SystemBlockKind, r as ContentConfig, x as FieldDefinition } from "./content-types-
|
|
3
|
-
import { c as NodeDefinition } from "./index-
|
|
1
|
+
import { Kt as SdkSiteLayoutConfig } from "./request-P08l6mkr.js";
|
|
2
|
+
import { H as SystemBlockKind, r as ContentConfig, x as FieldDefinition } from "./content-types-1-K2qi__.js";
|
|
3
|
+
import { c as NodeDefinition } from "./index-BeM5Ylwf.js";
|
|
4
4
|
|
|
5
5
|
//#region .cache/declarations/sdk/src/config/types.d.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-
|
|
3
|
-
import { u as BindingTransformName } from "./index-
|
|
4
|
-
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-
|
|
1
|
+
import { Ut as NavigationAuthoringLinkInput, Wt as NavigationConfigItemInput } from "./request-P08l6mkr.js";
|
|
2
|
+
import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-1-K2qi__.js";
|
|
3
|
+
import { u as BindingTransformName } from "./index-BeM5Ylwf.js";
|
|
4
|
+
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-HAy1-Jjo.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/content-validation.d.ts
|
package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs}
RENAMED
|
@@ -77,22 +77,22 @@ function isSafeHttpsUrl(value) {
|
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/rendering/islands/hydrateBlocksIslands.ts
|
|
79
79
|
const defaultEnhancerLoaders = {
|
|
80
|
-
accordion: () => import("./accordion-
|
|
81
|
-
headerSection: () => import("./headerSection-
|
|
82
|
-
carousel: () => import("./carousel-
|
|
83
|
-
form: () => import("./form-
|
|
84
|
-
"booking-form": () => import("./bookingForm-
|
|
85
|
-
"event-registration": () => import("./eventRegistration-
|
|
86
|
-
"event-listing": () => import("./eventListing-
|
|
87
|
-
"event-calendar": () => import("./eventCalendar-
|
|
88
|
-
"event-combined": () => import("./eventCombined-
|
|
89
|
-
"product-list": () => import("./productList-
|
|
90
|
-
"product-detail": () => import("./productDetail-
|
|
91
|
-
"cart": () => import("./cart-
|
|
92
|
-
"checkout": () => import("./checkout-
|
|
93
|
-
shop: () => import("./shop-
|
|
94
|
-
"newsletter-form": () => import("./newsletterForm-
|
|
95
|
-
gifting: () => import("./gifting-
|
|
80
|
+
accordion: () => import("./accordion-wofJY8xY.mjs"),
|
|
81
|
+
headerSection: () => import("./headerSection-Cg6083rn.mjs"),
|
|
82
|
+
carousel: () => import("./carousel-BE1dEFsD.mjs"),
|
|
83
|
+
form: () => import("./form-Zl1_8RJ6.mjs"),
|
|
84
|
+
"booking-form": () => import("./bookingForm-kgVWtuMe.mjs"),
|
|
85
|
+
"event-registration": () => import("./eventRegistration-CprS9k1D.mjs"),
|
|
86
|
+
"event-listing": () => import("./eventListing-CQMxQ8By.mjs"),
|
|
87
|
+
"event-calendar": () => import("./eventCalendar-Di9wDfzl.mjs"),
|
|
88
|
+
"event-combined": () => import("./eventCombined-CNW6nBsB.mjs"),
|
|
89
|
+
"product-list": () => import("./productList-BAdJ6z5S.mjs"),
|
|
90
|
+
"product-detail": () => import("./productDetail-CRX_ZRfS.mjs"),
|
|
91
|
+
"cart": () => import("./cart-BsjsdGZE.mjs"),
|
|
92
|
+
"checkout": () => import("./checkout-B5KxEUDr.mjs"),
|
|
93
|
+
shop: () => import("./shop-BKsgxm_-.mjs"),
|
|
94
|
+
"newsletter-form": () => import("./newsletterForm-BkJe_RTv.mjs"),
|
|
95
|
+
gifting: () => import("./gifting-DNVa7-Wj.mjs")
|
|
96
96
|
};
|
|
97
97
|
const DEFAULT_MAX_RETRIES = 2;
|
|
98
98
|
const RETRY_DELAYS_MS = [250, 1e3];
|
package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as assertNever } from "./src-
|
|
4
|
-
import {
|
|
2
|
+
import { $a as RichText, ar as clearSignInReturnDrafts, cr as nextSignInReturnExpiry, dr as sweepExpiredSignInReturnDrafts, ka as requestSignIn, lr as readSignInReturn, sr as decideSignInReturn, ur as signInReturnPath } from "./wizardSteps-CWIQyRIw.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-o7WEvbK1.mjs";
|
|
4
|
+
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-DXegGSnS.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DtKdUdkO.mjs";
|
|
5
6
|
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-C8IbeLHj.mjs";
|
|
7
|
+
import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-0Ua44F1j.mjs";
|
|
8
8
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
9
|
-
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-
|
|
9
|
+
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-B8eDjhuG.mjs";
|
|
10
10
|
import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
@@ -802,6 +802,73 @@ function getMagicLinkErrorMessage(error) {
|
|
|
802
802
|
return error instanceof BlockApiError ? error.message : "We couldn’t send the sign-in link. Try again in a moment.";
|
|
803
803
|
}
|
|
804
804
|
//#endregion
|
|
805
|
+
//#region ../blocks/src/system/runtime/nodes/shared/SignInNotice.tsx
|
|
806
|
+
/**
|
|
807
|
+
* A one-line offer to sign in by email link, read as one sentence around the
|
|
808
|
+
* "Sign in" link ("Booked with us before? Sign in and we’ll…"). The booking
|
|
809
|
+
* flows share it; each says what signing in gets the booker. `returnPath`
|
|
810
|
+
* keeps what they've typed for when they come back.
|
|
811
|
+
*/
|
|
812
|
+
function SignInNotice(props) {
|
|
813
|
+
const [open, setOpen] = React$1.useState(false);
|
|
814
|
+
const [handOff, setHandOff] = React$1.useState(null);
|
|
815
|
+
const api = useBlockApiOptional();
|
|
816
|
+
const signIn = () => {
|
|
817
|
+
const outcome = requestSignIn(window.location.href, () => setOpen(true), api?.config.pageNavigation);
|
|
818
|
+
if (outcome.kind === "handOff") setHandOff(outcome);
|
|
819
|
+
};
|
|
820
|
+
if (handOff) return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
|
|
821
|
+
handOff,
|
|
822
|
+
onBack: () => setHandOff(null)
|
|
823
|
+
});
|
|
824
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
825
|
+
className: "rb-bq-note",
|
|
826
|
+
children: [
|
|
827
|
+
props.lead,
|
|
828
|
+
" ",
|
|
829
|
+
/* @__PURE__ */ jsx("button", {
|
|
830
|
+
type: "button",
|
|
831
|
+
className: "rb-bq-link",
|
|
832
|
+
onClick: signIn,
|
|
833
|
+
children: "Sign in"
|
|
834
|
+
}),
|
|
835
|
+
" ",
|
|
836
|
+
props.after
|
|
837
|
+
]
|
|
838
|
+
}), open ? /* @__PURE__ */ jsx(SignInModal, {
|
|
839
|
+
email: props.email,
|
|
840
|
+
returnPath: props.returnPath,
|
|
841
|
+
onClose: () => setOpen(false)
|
|
842
|
+
}) : null] });
|
|
843
|
+
}
|
|
844
|
+
function SignInModal(props) {
|
|
845
|
+
return /* @__PURE__ */ jsx(ModalShell, {
|
|
846
|
+
title: "Sign in with email",
|
|
847
|
+
titleId: `${React$1.useId()}-sign-in-title`,
|
|
848
|
+
onClose: props.onClose,
|
|
849
|
+
overlayClassName: "rb-reg-modal-overlay",
|
|
850
|
+
modalClassName: "rb-reg-modal",
|
|
851
|
+
titleClassName: "rb-reg-modal-title",
|
|
852
|
+
closeButtonClassName: "rb-reg-modal-close",
|
|
853
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
854
|
+
className: "rb-reg-modal-content",
|
|
855
|
+
children: /* @__PURE__ */ jsx(MagicLinkForm, {
|
|
856
|
+
initialEmail: props.email,
|
|
857
|
+
subtitle: "Enter your email and we’ll send you a link to sign in.",
|
|
858
|
+
buttonText: "Send sign-in link",
|
|
859
|
+
successMessage: (email) => `We’ve sent a sign-in link to ${email}.`,
|
|
860
|
+
successDetail: "Open it on this device and you’ll come back to this booking with everything you’ve typed so far.",
|
|
861
|
+
successAction: {
|
|
862
|
+
label: "Back to my booking",
|
|
863
|
+
onClick: props.onClose
|
|
864
|
+
},
|
|
865
|
+
classPrefix: "rb-reg",
|
|
866
|
+
returnPath: props.returnPath
|
|
867
|
+
})
|
|
868
|
+
})
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
805
872
|
//#region ../blocks/src/system/runtime/nodes/shared/BookingQuestionSections.tsx
|
|
806
873
|
/**
|
|
807
874
|
* The question set asked while booking, shared by the appointment booking
|
|
@@ -817,6 +884,8 @@ function BookingQuestionSections(props) {
|
|
|
817
884
|
children: presentation.message
|
|
818
885
|
});
|
|
819
886
|
case "ask": return /* @__PURE__ */ jsxs(QuestionSetSection, { children: [presentation.signIn === "offered" ? /* @__PURE__ */ jsx(SignInNotice, {
|
|
887
|
+
lead: "Booked with us before?",
|
|
888
|
+
after: "and we’ll fill in the answers you gave last time.",
|
|
820
889
|
email: props.signInEmail,
|
|
821
890
|
returnPath: props.signInReturnPath
|
|
822
891
|
}) : null, /* @__PURE__ */ jsx(QuestionFields, {
|
|
@@ -896,58 +965,21 @@ function AlreadyAnswered(input) {
|
|
|
896
965
|
}) })]
|
|
897
966
|
});
|
|
898
967
|
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
children: [
|
|
915
|
-
"Booked with us before?",
|
|
916
|
-
" ",
|
|
917
|
-
/* @__PURE__ */ jsx("button", {
|
|
918
|
-
type: "button",
|
|
919
|
-
className: "rb-bq-link",
|
|
920
|
-
onClick: signIn,
|
|
921
|
-
children: "Sign in"
|
|
922
|
-
}),
|
|
923
|
-
" ",
|
|
924
|
-
"and we’ll fill in the answers you gave last time."
|
|
925
|
-
]
|
|
926
|
-
}), open ? /* @__PURE__ */ jsx(ModalShell, {
|
|
927
|
-
title: "Sign in with email",
|
|
928
|
-
titleId,
|
|
929
|
-
onClose: () => setOpen(false),
|
|
930
|
-
overlayClassName: "rb-reg-modal-overlay",
|
|
931
|
-
modalClassName: "rb-reg-modal",
|
|
932
|
-
titleClassName: "rb-reg-modal-title",
|
|
933
|
-
closeButtonClassName: "rb-reg-modal-close",
|
|
934
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
935
|
-
className: "rb-reg-modal-content",
|
|
936
|
-
children: /* @__PURE__ */ jsx(MagicLinkForm, {
|
|
937
|
-
initialEmail: props.email,
|
|
938
|
-
subtitle: "Enter your email and we’ll send you a link to sign in.",
|
|
939
|
-
buttonText: "Send sign-in link",
|
|
940
|
-
successMessage: (email) => `We’ve sent a sign-in link to ${email}.`,
|
|
941
|
-
successDetail: "Open it on this device and you’ll come back to this booking with everything you’ve typed so far.",
|
|
942
|
-
successAction: {
|
|
943
|
-
label: "Back to my booking",
|
|
944
|
-
onClick: () => setOpen(false)
|
|
945
|
-
},
|
|
946
|
-
classPrefix: "rb-reg",
|
|
947
|
-
returnPath: props.returnPath
|
|
948
|
-
})
|
|
949
|
-
})
|
|
950
|
-
}) : null] });
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region ../blocks/src/system/runtime/shared/components/OrganiserContactLine.tsx
|
|
970
|
+
/** The business's published email and phone, as links a client can tap. */
|
|
971
|
+
function OrganiserContactLine({ contact }) {
|
|
972
|
+
return /* @__PURE__ */ jsxs("p", { children: [
|
|
973
|
+
contact.email ? /* @__PURE__ */ jsx("a", {
|
|
974
|
+
href: `mailto:${contact.email}`,
|
|
975
|
+
children: contact.email
|
|
976
|
+
}) : null,
|
|
977
|
+
contact.email && contact.phone ? " · " : null,
|
|
978
|
+
contact.phone ? /* @__PURE__ */ jsx("a", {
|
|
979
|
+
href: `tel:${contact.phone.replace(/\s+/g, "")}`,
|
|
980
|
+
children: contact.phone
|
|
981
|
+
}) : null
|
|
982
|
+
] });
|
|
951
983
|
}
|
|
952
984
|
//#endregion
|
|
953
985
|
//#region ../blocks/src/system/runtime/shared/components/BookingMailingListNote.tsx
|
|
@@ -960,4 +992,4 @@ function BookingMailingListNote(props) {
|
|
|
960
992
|
});
|
|
961
993
|
}
|
|
962
994
|
//#endregion
|
|
963
|
-
export {
|
|
995
|
+
export { MagicLinkForm as a, portalSessionIdentity as c, PaymentChoiceRows as d, SignInNotice as i, useSignInReturn as l, OrganiserContactLine as n, BookingConsentAgreement as o, BookingQuestionSections as r, usePolling as s, BookingMailingListNote as t, useBookingQuestionsRefresh as u };
|
package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs}
RENAMED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gt as capitalize, vn as toUtcIsoDateTimeString } from "./src-o7WEvbK1.mjs";
|
|
3
3
|
import { s as getInitialFieldValue } from "./creditProducts-BQ1t1erI.mjs";
|
|
4
|
-
import { i as BlockApiError } from "./context-
|
|
4
|
+
import { i as BlockApiError } from "./context-DtKdUdkO.mjs";
|
|
5
5
|
import { i as ThemedButtonLink } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
6
|
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
7
7
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
8
8
|
import { useCallback, useEffect, useState } from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
const indefiniteArticle = (word) => /^(honest|honour|hour|heir)/i.test(word) ? "an" : /^(uni([^nmd]|$)|use|user|euro|one|once)/i.test(word) ? "a" : /^[aeiou]/i.test(word) ? "an" : "a";
|
|
11
|
+
function clientPersonPhrases(noun) {
|
|
12
|
+
if (noun == null) return {
|
|
13
|
+
label: "Who with",
|
|
14
|
+
chooseAnother: "Choose someone else",
|
|
15
|
+
anyone: "Anyone who's free",
|
|
16
|
+
chooseYours: "Choose who you'd like to see",
|
|
17
|
+
withName: (name) => `With ${name}`,
|
|
18
|
+
listLabel: () => "With"
|
|
19
|
+
};
|
|
20
|
+
const singularLabel = capitalize(noun.singular);
|
|
21
|
+
return {
|
|
22
|
+
label: singularLabel,
|
|
23
|
+
chooseAnother: `Choose another ${noun.singular}`,
|
|
24
|
+
anyone: `Any ${noun.singular}`,
|
|
25
|
+
chooseYours: `Choose your ${noun.singular}`,
|
|
26
|
+
withName: (name) => `${singularLabel}: ${name}`,
|
|
27
|
+
listLabel: (count) => count === 1 ? singularLabel : capitalize(noun.plural)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
10
31
|
//#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
|
|
11
32
|
function DemoPortalSignInLink(props) {
|
|
12
33
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -356,4 +377,4 @@ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, d
|
|
|
356
377
|
}, section.id)) });
|
|
357
378
|
}
|
|
358
379
|
//#endregion
|
|
359
|
-
export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, parseBookingSubmissionFailure as r, BookingQuestionFields as t };
|
|
380
|
+
export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, clientPersonPhrases as o, parseBookingSubmissionFailure as r, indefiniteArticle as s, BookingQuestionFields as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { bn as formatEventPrice } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
2
|
+
import { bn as formatEventPrice } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { Fa as formatEventLocation, Na as eventPlaceName, Va as formatEventRemainingPlaces, _o as resolveEventTimeZone, go as groupEventsByDate, ho as formatTime, qa as isEventFull, ro as eventDateOptions } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { Zt as formatDate, hn as parseBookingLocalDate } from "./src-o7WEvbK1.mjs";
|
|
5
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
6
6
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
7
7
|
import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
|
|
8
|
-
import { _ as resolveEventLinkProps, g as resolveEventCta, l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-
|
|
8
|
+
import { _ as resolveEventLinkProps, g as resolveEventCta, l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../core/src/duration.ts
|
package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
3
|
+
import { Bn as isEmailAddress, Da as leavePage } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-DtKdUdkO.mjs";
|
|
5
5
|
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
-
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
6
|
+
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-B8eDjhuG.mjs";
|
|
7
7
|
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/api/types/discounts.ts
|
|
@@ -220,7 +220,6 @@ function handOffDescription(props, offering) {
|
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region ../blocks/src/system/runtime/nodes/shop-checkout-form.ts
|
|
223
|
-
const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
224
223
|
function normalizeManualDiscountCode(raw) {
|
|
225
224
|
const trimmed = raw.trim();
|
|
226
225
|
return trimmed ? trimmed : null;
|
|
@@ -231,7 +230,7 @@ function normalizeCheckoutEmail(raw) {
|
|
|
231
230
|
type: "missing_contact",
|
|
232
231
|
message: "Please enter your email"
|
|
233
232
|
});
|
|
234
|
-
if (!
|
|
233
|
+
if (!isEmailAddress(email)) return err({
|
|
235
234
|
type: "invalid_email",
|
|
236
235
|
message: "Please enter a valid email address"
|
|
237
236
|
});
|
|
@@ -352,9 +351,15 @@ function checkoutFormForDiscountUiState(form, discountUiState) {
|
|
|
352
351
|
const DISCOUNT_APPLY_MESSAGES = {
|
|
353
352
|
emptyCode: "Enter a discount code first.",
|
|
354
353
|
emailRequired: "Enter your email before applying a code.",
|
|
354
|
+
emailInvalid: "Your email address doesn't look quite right. Check it, then apply the code again.",
|
|
355
355
|
unavailable: "This code doesn't work for this booking.",
|
|
356
356
|
unknown: "We couldn't check that code. Try again."
|
|
357
357
|
};
|
|
358
|
+
/** Why a code can't be checked yet: the server prices a code for a customer, so it needs a valid email first. */
|
|
359
|
+
function discountEmailProblem(email) {
|
|
360
|
+
if (!email.trim()) return DISCOUNT_APPLY_MESSAGES.emailRequired;
|
|
361
|
+
return isEmailAddress(email) ? null : DISCOUNT_APPLY_MESSAGES.emailInvalid;
|
|
362
|
+
}
|
|
358
363
|
/** A code the server refused at checkout, as opposed to the checkout itself failing. */
|
|
359
364
|
function isDiscountCodeRefusal(error) {
|
|
360
365
|
return error instanceof BlockApiError && error.fieldErrors.some((field) => field.field === "discountCode");
|
|
@@ -374,7 +379,7 @@ function planDiscountApplyRequest(options) {
|
|
|
374
379
|
const discountCode = normalizeManualDiscountCode(options.state.draftCode);
|
|
375
380
|
if (!discountCode) return refusedDiscountApply("empty_code", DISCOUNT_APPLY_MESSAGES.emptyCode);
|
|
376
381
|
const email = normalizeCheckoutEmail(options.getCustomerEmail());
|
|
377
|
-
if (!email.ok) return refusedDiscountApply("email_required", DISCOUNT_APPLY_MESSAGES.emailRequired);
|
|
382
|
+
if (!email.ok) return refusedDiscountApply("email_required", discountEmailProblem(options.getCustomerEmail()) ?? DISCOUNT_APPLY_MESSAGES.emailRequired);
|
|
378
383
|
const linesPlan = options.getLines();
|
|
379
384
|
if (!linesPlan.ok || linesPlan.lines.length === 0) return refusedDiscountApply("unavailable", DISCOUNT_APPLY_MESSAGES.unavailable);
|
|
380
385
|
return {
|
|
@@ -542,4 +547,4 @@ function handlePortalAccessError(error) {
|
|
|
542
547
|
};
|
|
543
548
|
}
|
|
544
549
|
//#endregion
|
|
545
|
-
export {
|
|
550
|
+
export { getAutoAppliedDiscountPreview as _, isDiscountCodeRefusal as a, checkoutFormForDiscountUiState as c, planDirectShopCheckoutRequest as d, planUnifiedCheckoutRequest as f, discountAvailabilityHasDiscounts as g, discountAvailabilityAllowsManualEntry as h, discountEmailProblem as i, normalizeManualDiscountCode as l, DiscountCodeDisclosure as m, DemoBookingPortalAccess as n, useDiscountApply as o, NavigationHandOffPanel as p, DISCOUNT_APPLY_MESSAGES as r, aggregateCartDiscountUiState as s, BookingConfirmation as t, planCartDiscountAvailabilityRequests as u };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as eventListWeekDays, Qt as buildEventListWeek, d as buildEventCalendarListingRender, in as buildEventRuntimeFilters } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import { v as resolveCalendarReadProfile } from "./src-
|
|
5
|
-
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-
|
|
2
|
+
import { $t as eventListWeekDays, Qt as buildEventListWeek, d as buildEventCalendarListingRender, in as buildEventRuntimeFilters } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { go as groupEventsByDate, uo as formatEventHourLabel } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { v as resolveCalendarReadProfile } from "./src-o7WEvbK1.mjs";
|
|
5
|
+
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-VfP50sYm.mjs";
|
|
6
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-BOff1Kk5.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
8
|
import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
9
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
-
import { i as useEventCollectionFilters } from "./useEventPagination-
|
|
11
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
12
|
-
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-
|
|
9
|
+
import { u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
|
|
10
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-BvdcexDC.mjs";
|
|
11
|
+
import { n as EventListingController } from "./EventListing.client-BNM_HuS0.mjs";
|
|
12
|
+
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-D0me9wnz.mjs";
|
|
13
13
|
import { useEffect, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { an as getEventRuntimeFiltersKey, in as buildEventRuntimeFilters, s as eventListingBlockRuntime, zt as toError } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { an as getEventRuntimeFiltersKey, in as buildEventRuntimeFilters, s as eventListingBlockRuntime, zt as toError } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { eo as buildCalendarViewport, go as groupEventsByDate, ho as formatTime, ro as eventDateOptions, to as eventCalendarWeekStart, wa as getBlockApiReadStage } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { At as calendarMonthDate, Zt as formatDate, _ as planCalendarMonthRanges, d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, m as calendarWindowBounds, mn as getLocalScheduleDate, p as calendarQueryKey } from "./src-o7WEvbK1.mjs";
|
|
5
|
+
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-VfP50sYm.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-DtKdUdkO.mjs";
|
|
7
|
+
import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
8
8
|
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
9
9
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
|
|
10
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
+
import { u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
13
13
|
import { t as TabBarFragment } from "./TabBarFragment-DlKQRhP4.mjs";
|
|
14
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-
|
|
14
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
|
|
15
15
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Jt as EventQuickFacts, Kt as resolveCardListSchedule, Ut as CardListContentPart, Wt as CardListLeadDate, bn as formatEventPrice, qt as selectCardListPresentation } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
2
|
+
import { Jt as EventQuickFacts, Kt as resolveCardListSchedule, Ut as CardListContentPart, Wt as CardListLeadDate, bn as formatEventPrice, qt as selectCardListPresentation } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { Ba as canJoinEventWaitlistOnAnyMode, Ga as getEventAvailabilityStatus, Ia as resolveRuntimeEventDestination, La as hasEventBookingClosedEarly, Va as formatEventRemainingPlaces, co as formatEventCompactDateRail, ds as orderedLiveRunSessions, fs as resolveWholeSeriesBookingPhase, mo as formatEventWeekdayTime, po as formatEventTimeRange, qa as isEventFull, ro as eventDateOptions } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
4
|
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
-
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
5
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
6
6
|
import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, st as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, p as ClockIcon } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
8
|
import React from "react";
|
|
@@ -838,7 +838,8 @@ function cardItemSlotParents(arrangement) {
|
|
|
838
838
|
"item-media": "item",
|
|
839
839
|
dates: body,
|
|
840
840
|
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
841
|
-
availability: body
|
|
841
|
+
availability: body,
|
|
842
|
+
facts: body
|
|
842
843
|
};
|
|
843
844
|
}
|
|
844
845
|
//#endregion
|
package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { in as buildEventRuntimeFilters } from "./newsletter-form.interactive-
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { in as buildEventRuntimeFilters } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BlEm_xjq.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|