@riverbankcms/sdk 0.178.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -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 +16 -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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -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-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- 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-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.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-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.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-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
package/package.json
CHANGED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { Bn as BrowserReadAuthority, D as DateRuntimeContext, O as resolveDateRuntimeContext, Xt as SiteRuntimeSiteTerms, bi as BookingTimeZone, di as MailingListRuntimeContext, dr as Theme, g as ResolvedBlockData, h as PrefetchedBlockData, m as BlockLoaderSnapshot, mr as ReadinessStage, p as BlockLoaderFailures, xi as UtcIsoDateTimeString } from "./request-B20VRWHH.js";
|
|
2
|
-
import { z as BlockKind } from "./content-types-CXj6lp3d.js";
|
|
3
|
-
import { r as MediaAssetIndexItem, y as RouteMap } from "./index-0HFgCnGz.js";
|
|
4
|
-
import { F as SiteFooterBlock, I as SiteResponse, L as SiteRouteRecord } from "./contracts-BZLwkTwL.js";
|
|
5
|
-
import { _ as RiverbankClient } from "./types-CMZ5mkpv.js";
|
|
6
|
-
import { E as BlockOverrideComponent, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime, y as RenderablePageOutline } from "./Page-C9i27wZA.js";
|
|
7
|
-
import { buildFooterMenu, buildFooterMenuForRole, buildLogo, buildLogoVariants, buildMenu } from "./sdk/src/navigation/index.js";
|
|
8
|
-
//#region .cache/declarations/sdk/src/rendering/components/Layout.d.ts
|
|
9
|
-
type CustomHeaderData = {
|
|
10
|
-
menu: ReturnType<typeof buildMenu>; /** The site logo (for light backgrounds), or the dark-background one if it is the only logo set. */
|
|
11
|
-
logo: ReturnType<typeof buildLogo>; /** Both logos, so a custom header can pick by its own surface. */
|
|
12
|
-
logoVariants: ReturnType<typeof buildLogoVariants>;
|
|
13
|
-
site: SiteResponse['site'];
|
|
14
|
-
routes: SiteResponse['routes'];
|
|
15
|
-
};
|
|
16
|
-
/** What a `PageRenderer` needs to show the site's footer blocks, with their loaders already run. */
|
|
17
|
-
type PreparedFooterBlocks = Readonly<{
|
|
18
|
-
page: RenderablePageOutline;
|
|
19
|
-
routeMap: SiteResponse['routes'];
|
|
20
|
-
dataContext: ReturnType<typeof buildLayoutRootContext> & ReturnType<typeof footerLoaderContext>;
|
|
21
|
-
}>;
|
|
22
|
-
type CustomFooterData = {
|
|
23
|
-
menu: ReturnType<typeof buildMenu>;
|
|
24
|
-
footerMenu: ReturnType<typeof buildFooterMenu>;
|
|
25
|
-
legalFooterMenu: ReturnType<typeof buildFooterMenuForRole>; /** The site logo (for light backgrounds), or the dark-background one if it is the only logo set. */
|
|
26
|
-
logo: ReturnType<typeof buildLogo>; /** Both logos, so a custom footer can pick by its own surface. */
|
|
27
|
-
logoVariants: ReturnType<typeof buildLogoVariants>;
|
|
28
|
-
site: SiteResponse['site'];
|
|
29
|
-
routes: SiteResponse['routes']; /** The site's footer blocks ready to spread onto a `PageRenderer`; null when it has none. */
|
|
30
|
-
footerBlocks: PreparedFooterBlocks | null;
|
|
31
|
-
};
|
|
32
|
-
type HeaderData = CustomHeaderData & {
|
|
33
|
-
theme: Theme;
|
|
34
|
-
};
|
|
35
|
-
type FooterData = CustomFooterData & {
|
|
36
|
-
theme: Theme;
|
|
37
|
-
};
|
|
38
|
-
type LayoutCommonProps = {
|
|
39
|
-
now?: string;
|
|
40
|
-
siteData?: SiteResponse;
|
|
41
|
-
client?: RiverbankClient;
|
|
42
|
-
siteId?: string;
|
|
43
|
-
slug?: string;
|
|
44
|
-
domain?: string;
|
|
45
|
-
/**
|
|
46
|
-
* What the footer blocks' loaders returned, from `prefetchFooterBlockData`.
|
|
47
|
-
* With `siteData` and no `client`, Layout has no way to load them itself.
|
|
48
|
-
*/
|
|
49
|
-
footerBlockData?: PrefetchedBlockData;
|
|
50
|
-
children: React.ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the current request has an active portal session.
|
|
53
|
-
* Used to resolve portal navigation labels (e.g. "Login" vs "My account").
|
|
54
|
-
*
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
hasPortalSession?: boolean; /** Render stage for internal links and block transforms. */
|
|
58
|
-
previewStage?: 'published' | 'preview';
|
|
59
|
-
};
|
|
60
|
-
type ThemedLayoutProps = LayoutCommonProps & {
|
|
61
|
-
rendering?: never;
|
|
62
|
-
header?: boolean | ((data: HeaderData) => React.ReactNode);
|
|
63
|
-
footer?: boolean | ((data: FooterData) => React.ReactNode);
|
|
64
|
-
headerVariant?: 'classic' | 'centered' | 'floating';
|
|
65
|
-
themeRuntime?: SdkThemeRuntime;
|
|
66
|
-
};
|
|
67
|
-
type OverrideOnlyLayoutProps = LayoutCommonProps & {
|
|
68
|
-
rendering: SdkOverrideOnlyRendering;
|
|
69
|
-
header: false | ((data: CustomHeaderData) => React.ReactNode);
|
|
70
|
-
footer: false | ((data: CustomFooterData) => React.ReactNode);
|
|
71
|
-
headerVariant?: never;
|
|
72
|
-
themeRuntime?: never;
|
|
73
|
-
};
|
|
74
|
-
type LayoutProps = ThemedLayoutProps | OverrideOnlyLayoutProps;
|
|
75
|
-
declare class UnsupportedOverrideOnlyLayoutChromeError extends Error {
|
|
76
|
-
readonly surface: 'header' | 'footer';
|
|
77
|
-
readonly code = "unsupported_override_only_layout_chrome";
|
|
78
|
-
constructor(surface: 'header' | 'footer');
|
|
79
|
-
}
|
|
80
|
-
declare function resolveLayoutSiteData(props: LayoutProps): Promise<SiteResponse & {
|
|
81
|
-
now: UtcIsoDateTimeString;
|
|
82
|
-
dateContext: ReturnType<typeof resolveDateRuntimeContext>;
|
|
83
|
-
}>;
|
|
84
|
-
/**
|
|
85
|
-
* Layout component that wraps content with site header and footer.
|
|
86
|
-
*
|
|
87
|
-
* This is a server/RSC-safe component. The default `@riverbankcms/sdk/rendering`
|
|
88
|
-
* `Page` and `Block` surfaces mount CMS island hydration automatically, while
|
|
89
|
-
* the strict `@riverbankcms/sdk/rendering/server` surface stays bootstrap-free.
|
|
90
|
-
* If a custom host renders hydratable CMS islands through the strict server
|
|
91
|
-
* surface, mount `BlocksIslandsHydrator` from
|
|
92
|
-
* `@riverbankcms/sdk/rendering/islands` explicitly.
|
|
93
|
-
*
|
|
94
|
-
* @example With pre-fetched site data (recommended)
|
|
95
|
-
* ```tsx
|
|
96
|
-
* import { Layout } from '../server';
|
|
97
|
-
* import { Page } from '../index';
|
|
98
|
-
*
|
|
99
|
-
* const site = await client.getSite({ slug: 'my-site' });
|
|
100
|
-
*
|
|
101
|
-
* <Layout siteData={site}>
|
|
102
|
-
* <Page {...pageData} />
|
|
103
|
-
* </Layout>
|
|
104
|
-
* ```
|
|
105
|
-
*
|
|
106
|
-
* @example With strict server rendering
|
|
107
|
-
* ```tsx
|
|
108
|
-
* import { Layout, Page } from '../server';
|
|
109
|
-
* import { BlocksIslandsHydrator } from '../islands/client';
|
|
110
|
-
*
|
|
111
|
-
* const site = await client.getSite({ slug: 'my-site' });
|
|
112
|
-
*
|
|
113
|
-
* <Layout siteData={site}>
|
|
114
|
-
* <BlocksIslandsHydrator siteId={site.site.id} supabaseUrl={site.supabaseUrl} />
|
|
115
|
-
* <Page {...pageData} />
|
|
116
|
-
* </Layout>
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
declare function Layout(props: LayoutProps): Promise<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
120
|
-
declare function footerLoaderContext(data: PrefetchedBlockData | undefined): {
|
|
121
|
-
resolvedData: ResolvedBlockData;
|
|
122
|
-
loaderFailures: BlockLoaderFailures;
|
|
123
|
-
loaderSnapshot: Readonly<{
|
|
124
|
-
stage: ReadinessStage;
|
|
125
|
-
blocks: Readonly<Record<string, Readonly<{
|
|
126
|
-
kind: string;
|
|
127
|
-
content: Readonly<Record<string, unknown>>;
|
|
128
|
-
requests: Readonly<Record<string, Readonly<{
|
|
129
|
-
endpoint: string;
|
|
130
|
-
params: Readonly<Record<string, string>>;
|
|
131
|
-
}>>>;
|
|
132
|
-
}>>>;
|
|
133
|
-
}>;
|
|
134
|
-
prefetchedBlockData: Readonly<{
|
|
135
|
-
resolvedData: ResolvedBlockData;
|
|
136
|
-
loaderFailures: BlockLoaderFailures;
|
|
137
|
-
loaderSnapshot: BlockLoaderSnapshot;
|
|
138
|
-
}>;
|
|
139
|
-
} | {
|
|
140
|
-
resolvedData?: undefined;
|
|
141
|
-
loaderFailures?: undefined;
|
|
142
|
-
loaderSnapshot?: undefined;
|
|
143
|
-
prefetchedBlockData?: undefined;
|
|
144
|
-
};
|
|
145
|
-
/** Shared public facts for SDK chrome; no customer acceptance is present. */
|
|
146
|
-
declare function buildLayoutRootContext(siteData: Awaited<ReturnType<typeof resolveLayoutSiteData>>, input: Readonly<{
|
|
147
|
-
apiBaseUrl: string | undefined;
|
|
148
|
-
previewStage: 'published' | 'preview';
|
|
149
|
-
theme?: Theme;
|
|
150
|
-
}>): {
|
|
151
|
-
now: UtcIsoDateTimeString;
|
|
152
|
-
dateContext: DateRuntimeContext;
|
|
153
|
-
bookingTimeZone: BookingTimeZone;
|
|
154
|
-
siteId: string;
|
|
155
|
-
apiBaseUrl: string | undefined;
|
|
156
|
-
previewStage: "preview" | "published";
|
|
157
|
-
routes: Record<string, SiteRouteRecord>;
|
|
158
|
-
pagesByIdentifier: Record<string, string> | undefined;
|
|
159
|
-
entriesByIdentifier: Record<string, Record<string, string>> | undefined;
|
|
160
|
-
siteTerms: SiteRuntimeSiteTerms | undefined;
|
|
161
|
-
mailingList: MailingListRuntimeContext | undefined;
|
|
162
|
-
interactionContext: {
|
|
163
|
-
kind: "live";
|
|
164
|
-
} | {
|
|
165
|
-
kind: "demo";
|
|
166
|
-
} | undefined;
|
|
167
|
-
siteCountry: string | null;
|
|
168
|
-
theme: Theme | undefined;
|
|
169
|
-
};
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region .cache/declarations/sdk/src/rendering/components/Block.shared.d.ts
|
|
172
|
-
type BlockCommonProps = {
|
|
173
|
-
now: string;
|
|
174
|
-
bookingTimeZone: string;
|
|
175
|
-
blockKind: BlockKind;
|
|
176
|
-
blockId?: string | null;
|
|
177
|
-
content: Record<string, unknown>;
|
|
178
|
-
siteId?: string;
|
|
179
|
-
/**
|
|
180
|
-
* Supabase storage URL for direct image access in SSR output and client
|
|
181
|
-
* islands.
|
|
182
|
-
*/
|
|
183
|
-
supabaseUrl?: string;
|
|
184
|
-
/**
|
|
185
|
-
* Canonical media sidecar for resolving identifier-only media values.
|
|
186
|
-
*/
|
|
187
|
-
mediaAssets?: readonly MediaAssetIndexItem[];
|
|
188
|
-
/**
|
|
189
|
-
* Base URL for the CMS API. Interactive blocks need this for client-side
|
|
190
|
-
* form, booking, event, and commerce calls.
|
|
191
|
-
*/
|
|
192
|
-
apiBaseUrl?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Portal token for customer portal Bearer auth.
|
|
195
|
-
*/
|
|
196
|
-
portalToken?: string | null;
|
|
197
|
-
readAuthority?: BrowserReadAuthority; /** Route lookup for CMS links inside block content. */
|
|
198
|
-
routeMap?: RouteMap; /** Page identifier to routeId lookup for { kind: 'page' } links. */
|
|
199
|
-
pagesByIdentifier?: Record<string, string>; /** ContentType -> identifier -> routeId lookup for { kind: 'entry' } links. */
|
|
200
|
-
entriesByIdentifier?: Record<string, Record<string, string>>;
|
|
201
|
-
pageId?: string;
|
|
202
|
-
previewStage?: 'published' | 'preview';
|
|
203
|
-
client?: RiverbankClient;
|
|
204
|
-
/**
|
|
205
|
-
* Custom component to override default block rendering. When provided, renders
|
|
206
|
-
* this component instead of the manifest-based default. Override components
|
|
207
|
-
* receive the same serializable runtime context as page-level block overrides.
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* ```tsx
|
|
211
|
-
* <Block
|
|
212
|
-
* blockKind="block.hero"
|
|
213
|
-
* content={heroContent}
|
|
214
|
-
* theme={theme}
|
|
215
|
-
* siteId={siteId}
|
|
216
|
-
* override={MyCustomHero}
|
|
217
|
-
* />
|
|
218
|
-
* ```
|
|
219
|
-
*/
|
|
220
|
-
override?: BlockOverrideComponent;
|
|
221
|
-
};
|
|
222
|
-
type ThemedBlockProps = BlockCommonProps & {
|
|
223
|
-
rendering?: never;
|
|
224
|
-
theme: Theme;
|
|
225
|
-
};
|
|
226
|
-
type OverrideOnlyBlockProps = BlockCommonProps & {
|
|
227
|
-
rendering: {
|
|
228
|
-
kind: 'overrides-only';
|
|
229
|
-
};
|
|
230
|
-
theme?: never;
|
|
231
|
-
override: BlockOverrideComponent;
|
|
232
|
-
};
|
|
233
|
-
type BlockProps = ThemedBlockProps | OverrideOnlyBlockProps;
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region .cache/declarations/sdk/src/rendering/helpers/footerPageOutline.d.ts
|
|
236
|
-
/**
|
|
237
|
-
* Admit footer blocks returned by the site API for public rendering.
|
|
238
|
-
*
|
|
239
|
-
* Custom, override-only SDK sites need this boundary before passing footer
|
|
240
|
-
* blocks to `PageRenderer`; the transport response intentionally remains an
|
|
241
|
-
* unaudited content shape.
|
|
242
|
-
*/
|
|
243
|
-
declare function buildFooterRenderablePageOutline(siteData: SiteResponse, blocks: readonly SiteFooterBlock[]): RenderablePageOutline;
|
|
244
|
-
type FooterBlockDataOptions = Readonly<{
|
|
245
|
-
previewStage?: 'published' | 'preview';
|
|
246
|
-
}>;
|
|
247
|
-
/**
|
|
248
|
-
* Run the loaders of a site's footer blocks, for a footer `PageRenderer`.
|
|
249
|
-
*
|
|
250
|
-
* A custom footer callback calls this itself and passes the result in its data
|
|
251
|
-
* context, or hands it to `Layout` as `footerBlockData`. Without it, a map in the
|
|
252
|
-
* footer that needs a venue or the business address is left out for visitors.
|
|
253
|
-
*/
|
|
254
|
-
declare function prefetchFooterBlockData(client: RiverbankClient, siteData: SiteResponse, options?: FooterBlockDataOptions): Promise<PrefetchedBlockData>;
|
|
255
|
-
//#endregion
|
|
256
|
-
export { CustomHeaderData as a, Layout as c, UnsupportedOverrideOnlyLayoutChromeError as d, CustomFooterData as i, LayoutProps as l, prefetchFooterBlockData as n, FooterData as o, BlockProps as r, HeaderData as s, buildFooterRenderablePageOutline as t, PreparedFooterBlocks as u };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { i as ContentTypeConfig } from "./content-types-CXj6lp3d.js";
|
|
2
|
-
import { B as ResolveEventRunResponse, a as ContentTypeRoutingInfo, z as ResolveEventOccurrenceResponse } from "./contracts-BZLwkTwL.js";
|
|
3
|
-
|
|
4
|
-
//#region .cache/declarations/sdk/src/routing/contentTypeResolver.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Convert local SDK ContentTypeConfig to ContentTypeRoutingInfo.
|
|
7
|
-
*
|
|
8
|
-
* Used to transform local SDK config content types into the minimal
|
|
9
|
-
* format needed for routing decisions.
|
|
10
|
-
*
|
|
11
|
-
* @param ct - ContentTypeConfig from SDK config
|
|
12
|
-
* @returns ContentTypeRoutingInfo for routing
|
|
13
|
-
*/
|
|
14
|
-
declare function toRoutingInfo(ct: ContentTypeConfig): ContentTypeRoutingInfo;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region .cache/declarations/sdk/src/routing/resolvePageContent.d.ts
|
|
17
|
-
type OccurrenceData = NonNullable<ResolveEventOccurrenceResponse['occurrence']>;
|
|
18
|
-
type EventRunData = NonNullable<ResolveEventRunResponse['run']>;
|
|
19
|
-
type EntrySubrouteData = Readonly<{
|
|
20
|
-
kind: 'event-occurrence';
|
|
21
|
-
occurrence: OccurrenceData;
|
|
22
|
-
}> | Readonly<{
|
|
23
|
-
kind: 'event-run';
|
|
24
|
-
run: EventRunData;
|
|
25
|
-
}>;
|
|
26
|
-
type PublicLoadStage = 'site_lookup' | 'content_lookup' | 'entry_subroute_lookup' | 'redirect_lookup' | 'content_normalization';
|
|
27
|
-
type PublicContentLoadError = {
|
|
28
|
-
kind: 'timeout';
|
|
29
|
-
stage: PublicLoadStage;
|
|
30
|
-
message: string;
|
|
31
|
-
requestId?: string | null;
|
|
32
|
-
} | {
|
|
33
|
-
kind: 'network';
|
|
34
|
-
stage: PublicLoadStage;
|
|
35
|
-
message: string;
|
|
36
|
-
code?: string | null;
|
|
37
|
-
requestId?: string | null;
|
|
38
|
-
} | {
|
|
39
|
-
kind: 'api_error';
|
|
40
|
-
stage: PublicLoadStage;
|
|
41
|
-
status: number;
|
|
42
|
-
message: string;
|
|
43
|
-
code?: string | null;
|
|
44
|
-
requestId?: string | null;
|
|
45
|
-
} | {
|
|
46
|
-
kind: 'invalid_payload';
|
|
47
|
-
stage: PublicLoadStage;
|
|
48
|
-
message: string;
|
|
49
|
-
requestId?: string | null;
|
|
50
|
-
} | {
|
|
51
|
-
kind: 'unknown';
|
|
52
|
-
stage: PublicLoadStage;
|
|
53
|
-
message: string;
|
|
54
|
-
requestId?: string | null;
|
|
55
|
-
};
|
|
56
|
-
type RiverbankContentLoadErrorOptions = Readonly<{
|
|
57
|
-
surface: string;
|
|
58
|
-
reason?: string | null;
|
|
59
|
-
path?: string | null;
|
|
60
|
-
cause?: unknown;
|
|
61
|
-
}>;
|
|
62
|
-
declare class RiverbankContentLoadError extends Error {
|
|
63
|
-
readonly surface: string;
|
|
64
|
-
readonly reason: string | null;
|
|
65
|
-
readonly path: string | null;
|
|
66
|
-
readonly cause?: unknown;
|
|
67
|
-
constructor(message: string, options: RiverbankContentLoadErrorOptions);
|
|
68
|
-
}
|
|
69
|
-
type LoadContentResult<TContent> = {
|
|
70
|
-
kind: 'found';
|
|
71
|
-
content: TContent;
|
|
72
|
-
} | {
|
|
73
|
-
kind: 'not_found';
|
|
74
|
-
} | {
|
|
75
|
-
kind: 'failed';
|
|
76
|
-
error: PublicContentLoadError;
|
|
77
|
-
};
|
|
78
|
-
declare function contentFound<TContent>(content: TContent): LoadContentResult<TContent>;
|
|
79
|
-
declare function contentNotFound<TContent>(): LoadContentResult<TContent>;
|
|
80
|
-
declare function contentLoadFailed<TContent>(error: PublicContentLoadError): LoadContentResult<TContent>;
|
|
81
|
-
/**
|
|
82
|
-
* Options for resolving page content.
|
|
83
|
-
*
|
|
84
|
-
* @template TContent - The content type (varies by caller)
|
|
85
|
-
*/
|
|
86
|
-
interface ResolvePageContentOptions<TContent> {
|
|
87
|
-
/** The URL path to resolve (e.g., '/events/yoga-class/2025-01-15') */
|
|
88
|
-
path: string;
|
|
89
|
-
/** Content type routing info for occurrence detection */
|
|
90
|
-
contentTypes: ContentTypeRoutingInfo[];
|
|
91
|
-
/**
|
|
92
|
-
* Load content by path.
|
|
93
|
-
*
|
|
94
|
-
* **Contract:** MUST return a closed result that distinguishes not-found
|
|
95
|
-
* from upstream failure. Callers should wrap their client to normalize
|
|
96
|
-
* exceptions before they reach this routing helper.
|
|
97
|
-
*
|
|
98
|
-
* @param path - The path to load
|
|
99
|
-
* @returns Content load result
|
|
100
|
-
*/
|
|
101
|
-
loadContent: (path: string) => Promise<LoadContentResult<TContent>>;
|
|
102
|
-
/** Resolve a subroute from the already-loaded parent page authority. */
|
|
103
|
-
resolveSubroute: (args: {
|
|
104
|
-
content: TContent;
|
|
105
|
-
kind?: string | null;
|
|
106
|
-
contentTypeKey: string | null;
|
|
107
|
-
segment: string;
|
|
108
|
-
}) => Promise<EntrySubrouteData | null>;
|
|
109
|
-
/** Read the content type key for routing policy, regardless of owner kind. */
|
|
110
|
-
getContentTypeKey: (content: TContent) => string | null;
|
|
111
|
-
/**
|
|
112
|
-
* Optional optimization hook: decide whether to attempt subroute resolution
|
|
113
|
-
* based on the content type and segment, before loading the parent content.
|
|
114
|
-
*
|
|
115
|
-
* If omitted, subroute resolution is attempted whenever the URL matches an
|
|
116
|
-
* event-occurrence pattern or the fallback extractor.
|
|
117
|
-
*/
|
|
118
|
-
shouldAttemptSubroute?: (args: {
|
|
119
|
-
entryTypeKey: string | null;
|
|
120
|
-
segment: string;
|
|
121
|
-
}) => boolean;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Result of page content resolution.
|
|
125
|
-
*/
|
|
126
|
-
type PageResolutionResult<TContent> = {
|
|
127
|
-
/** Content was found */found: true; /** The loaded content */
|
|
128
|
-
content: TContent; /** Entry subroute data if this is a subroute URL, null otherwise */
|
|
129
|
-
entrySubrouteData: EntrySubrouteData | null; /** The actual path that was loaded (parent path for occurrences) */
|
|
130
|
-
resolvedPath: string;
|
|
131
|
-
} | {
|
|
132
|
-
/** Content was not found */found: false; /** Reason for not finding content */
|
|
133
|
-
reason: 'not-found' | 'invalid-subroute';
|
|
134
|
-
} | {
|
|
135
|
-
/** Content could not be loaded due to an upstream failure */found: false;
|
|
136
|
-
reason: 'load-failed'; /** The path whose content load failed */
|
|
137
|
-
failedPath: string; /** Normalized load failure */
|
|
138
|
-
error: PublicContentLoadError;
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* Resolve page content for a given path.
|
|
142
|
-
*
|
|
143
|
-
* This function implements the shared routing logic for both SDK and frontend:
|
|
144
|
-
*
|
|
145
|
-
* 1. **Known subroute fast-path** - For paths that clearly match a known entry type route pattern,
|
|
146
|
-
* try parent+subroute resolution first (avoids a guaranteed exact-path miss).
|
|
147
|
-
* 2. **Exact match** - Load content directly for the full path
|
|
148
|
-
* 3. **Fallback** - Try subroute resolution even when the entry type isn't in `contentTypes`
|
|
149
|
-
*
|
|
150
|
-
* ## Error Handling
|
|
151
|
-
*
|
|
152
|
-
* The `loadContent` function MUST return `not_found` for absence and `failed`
|
|
153
|
-
* for upstream errors. SDK callers should wrap their client to catch and
|
|
154
|
-
* normalize exceptions.
|
|
155
|
-
*
|
|
156
|
-
* @template TContent - The content type
|
|
157
|
-
* @param options - Resolution options with injected loaders
|
|
158
|
-
* @returns Resolution result indicating success or failure
|
|
159
|
-
*/
|
|
160
|
-
declare function resolvePageContent<TContent>(options: ResolvePageContentOptions<TContent>): Promise<PageResolutionResult<TContent>>;
|
|
161
|
-
//#endregion
|
|
162
|
-
export { PublicContentLoadError as a, RiverbankContentLoadError as c, contentLoadFailed as d, contentNotFound as f, PageResolutionResult as i, RiverbankContentLoadErrorOptions as l, toRoutingInfo as m, LoadContentResult as n, PublicLoadStage as o, resolvePageContent as p, OccurrenceData as r, ResolvePageContentOptions as s, EntrySubrouteData as t, contentFound as u };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Rt as normalizeLocationAddressText } from "./noop-D11X-B6n.mjs";
|
|
3
|
-
import { i as ThemedButtonLink } from "./ThemedButton-DuaYtnvG.mjs";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region ../core/src/locationLinks.ts
|
|
7
|
-
/** Both outbound actions use the arrival pin, never match evidence. */
|
|
8
|
-
function locationMapLinks(input) {
|
|
9
|
-
const target = input.location != null ? `${input.location.lat},${input.location.lng}` : normalizeLocationAddressText(input.addressText);
|
|
10
|
-
if (target === null) return {
|
|
11
|
-
directions: null,
|
|
12
|
-
googleMaps: null
|
|
13
|
-
};
|
|
14
|
-
const directions = new URL("https://www.google.com/maps/dir/");
|
|
15
|
-
directions.searchParams.set("api", "1");
|
|
16
|
-
directions.searchParams.set("destination", target);
|
|
17
|
-
const search = new URL("https://www.google.com/maps/search/");
|
|
18
|
-
search.searchParams.set("api", "1");
|
|
19
|
-
search.searchParams.set("query", target);
|
|
20
|
-
return {
|
|
21
|
-
directions: directions.toString(),
|
|
22
|
-
googleMaps: search.toString()
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
|
|
27
|
-
/**
|
|
28
|
-
* `compact` (event details) is one plain Google Maps text link under the venue;
|
|
29
|
-
* `block` (the map block) leads with a secondary directions button and keeps
|
|
30
|
-
* the same Google Maps text link beside it.
|
|
31
|
-
*/
|
|
32
|
-
function LocationMapActions(props) {
|
|
33
|
-
const links = locationMapLinks(props);
|
|
34
|
-
const directionsLabel = props.directionsLabel ?? "Get directions";
|
|
35
|
-
const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
|
|
36
|
-
if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
|
|
37
|
-
className: "rb-location-map-actions",
|
|
38
|
-
children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
39
|
-
href: links.directions,
|
|
40
|
-
target: "_blank",
|
|
41
|
-
rel: "noreferrer",
|
|
42
|
-
variant: "secondary",
|
|
43
|
-
size: "sm",
|
|
44
|
-
label: directionsLabel
|
|
45
|
-
}) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
|
|
46
|
-
className: "rb-location-map-link",
|
|
47
|
-
href: links.googleMaps,
|
|
48
|
-
target: "_blank",
|
|
49
|
-
rel: "noreferrer",
|
|
50
|
-
children: googleMapsLabel
|
|
51
|
-
}) : null]
|
|
52
|
-
});
|
|
53
|
-
return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
|
|
54
|
-
className: "rb-location-map-link",
|
|
55
|
-
href: links.googleMaps,
|
|
56
|
-
target: "_blank",
|
|
57
|
-
rel: "noreferrer",
|
|
58
|
-
children: googleMapsLabel
|
|
59
|
-
}) }) : null;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { LocationMapActions as t };
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Gt as mapDrawingSchema } from "./noop-D11X-B6n.mjs";
|
|
3
|
-
import "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Strict SVG-`transform` validator.
|
|
8
|
-
*
|
|
9
|
-
* Accepts only a whitespace/comma-separated list of the geometric transform
|
|
10
|
-
* functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
|
|
11
|
-
* arguments are plain numbers. This deliberately rejects anything else —
|
|
12
|
-
* `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
|
|
13
|
-
* so a persisted custom-block tree can't smuggle an executable or exfiltrating
|
|
14
|
-
* value into the attribute.
|
|
15
|
-
*/
|
|
16
|
-
const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
|
|
17
|
-
const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
|
|
18
|
-
const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
|
|
19
|
-
const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
|
|
20
|
-
function safeTransform(value) {
|
|
21
|
-
if (typeof value !== "string") return void 0;
|
|
22
|
-
const trimmed = value.trim();
|
|
23
|
-
if (trimmed.length === 0) return void 0;
|
|
24
|
-
return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Turn paint props into a CSS style object. Colour values pass through as-is so
|
|
28
|
-
* they may reference theme tokens via `var()`, which only resolves in a CSS
|
|
29
|
-
* property context (not in a bare presentation attribute).
|
|
30
|
-
*/
|
|
31
|
-
function paintStyle(shape) {
|
|
32
|
-
const style = {};
|
|
33
|
-
if (shape.fill !== void 0) style.fill = shape.fill;
|
|
34
|
-
if (shape.stroke !== void 0) style.stroke = shape.stroke;
|
|
35
|
-
if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
|
|
36
|
-
if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
|
|
37
|
-
if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
|
|
38
|
-
if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
|
|
39
|
-
if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
|
|
40
|
-
if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
|
|
41
|
-
return style;
|
|
42
|
-
}
|
|
43
|
-
function renderShape(shape, key) {
|
|
44
|
-
const style = paintStyle(shape);
|
|
45
|
-
const transform = safeTransform(shape.transform);
|
|
46
|
-
switch (shape.kind) {
|
|
47
|
-
case "text": return /* @__PURE__ */ jsx("text", {
|
|
48
|
-
className: shape.className,
|
|
49
|
-
x: shape.x,
|
|
50
|
-
y: shape.y,
|
|
51
|
-
transform,
|
|
52
|
-
children: shape.text
|
|
53
|
-
}, key);
|
|
54
|
-
case "path": return /* @__PURE__ */ jsx("path", {
|
|
55
|
-
d: shape.d,
|
|
56
|
-
className: shape.className,
|
|
57
|
-
fillRule: shape.fillRule,
|
|
58
|
-
style,
|
|
59
|
-
transform
|
|
60
|
-
}, key);
|
|
61
|
-
case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
|
|
62
|
-
cx: shape.cx,
|
|
63
|
-
cy: shape.cy,
|
|
64
|
-
rx: shape.rx,
|
|
65
|
-
ry: shape.ry,
|
|
66
|
-
style,
|
|
67
|
-
transform
|
|
68
|
-
}, key);
|
|
69
|
-
case "circle": return /* @__PURE__ */ jsx("circle", {
|
|
70
|
-
cx: shape.cx,
|
|
71
|
-
cy: shape.cy,
|
|
72
|
-
r: shape.r,
|
|
73
|
-
style,
|
|
74
|
-
transform
|
|
75
|
-
}, key);
|
|
76
|
-
case "rect": return /* @__PURE__ */ jsx("rect", {
|
|
77
|
-
x: shape.x,
|
|
78
|
-
y: shape.y,
|
|
79
|
-
className: shape.className,
|
|
80
|
-
width: shape.width,
|
|
81
|
-
height: shape.height,
|
|
82
|
-
rx: shape.rx,
|
|
83
|
-
ry: shape.ry,
|
|
84
|
-
style,
|
|
85
|
-
transform
|
|
86
|
-
}, key);
|
|
87
|
-
case "line": return /* @__PURE__ */ jsx("line", {
|
|
88
|
-
x1: shape.x1,
|
|
89
|
-
y1: shape.y1,
|
|
90
|
-
x2: shape.x2,
|
|
91
|
-
y2: shape.y2,
|
|
92
|
-
style,
|
|
93
|
-
transform
|
|
94
|
-
}, key);
|
|
95
|
-
default: return null;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
|
|
99
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
100
|
-
viewBox,
|
|
101
|
-
width,
|
|
102
|
-
height,
|
|
103
|
-
className,
|
|
104
|
-
style,
|
|
105
|
-
"aria-hidden": ariaHidden || void 0,
|
|
106
|
-
role: ariaLabel ? "img" : void 0,
|
|
107
|
-
"aria-label": ariaLabel,
|
|
108
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
109
|
-
fill: "none",
|
|
110
|
-
children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
|
|
115
|
-
const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
|
|
116
|
-
const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
|
|
117
|
-
function pathShape(path) {
|
|
118
|
-
return path.kind === "polygon" ? {
|
|
119
|
-
kind: "path",
|
|
120
|
-
className: path.className,
|
|
121
|
-
fillRule: path.fillRule,
|
|
122
|
-
d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
|
|
123
|
-
} : {
|
|
124
|
-
kind: "path",
|
|
125
|
-
className: path.className,
|
|
126
|
-
d: commands(path.points)
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function labelShapes(label) {
|
|
130
|
-
const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
|
|
131
|
-
return [label.haloClassName, label.className].map((className) => ({
|
|
132
|
-
kind: "text",
|
|
133
|
-
className,
|
|
134
|
-
x,
|
|
135
|
-
y,
|
|
136
|
-
transform,
|
|
137
|
-
text: label.text
|
|
138
|
-
}));
|
|
139
|
-
}
|
|
140
|
-
/** The drawing the renderer below would show, or null when there's nothing it can draw. */
|
|
141
|
-
function readableMapDrawing(drawing) {
|
|
142
|
-
const parsed = mapDrawingSchema.safeParse(drawing);
|
|
143
|
-
return parsed.success ? parsed.data : null;
|
|
144
|
-
}
|
|
145
|
-
/** Untrusted standalone callers retain boundary admission. */
|
|
146
|
-
function MapDrawingSvg(props) {
|
|
147
|
-
const drawing = readableMapDrawing(props.drawing);
|
|
148
|
-
return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
|
|
149
|
-
...props,
|
|
150
|
-
drawing
|
|
151
|
-
}) : null;
|
|
152
|
-
}
|
|
153
|
-
/** Render an already admitted value without allocating another validation copy. */
|
|
154
|
-
function AdmittedMapDrawingSvg(props) {
|
|
155
|
-
const drawing = props.drawing;
|
|
156
|
-
const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
|
|
157
|
-
const shapes = [
|
|
158
|
-
{
|
|
159
|
-
kind: "rect",
|
|
160
|
-
className: frame.backgroundClass,
|
|
161
|
-
x: 0,
|
|
162
|
-
y: 0,
|
|
163
|
-
width: 800,
|
|
164
|
-
height: 800
|
|
165
|
-
},
|
|
166
|
-
...frame.paths.map(pathShape),
|
|
167
|
-
...frame.labels.flatMap(labelShapes),
|
|
168
|
-
{
|
|
169
|
-
kind: "path",
|
|
170
|
-
className: frame.pin.className,
|
|
171
|
-
fillRule: "evenodd",
|
|
172
|
-
d: PIN_PATH,
|
|
173
|
-
transform: `translate(${frame.pin.point.join(" ")})`
|
|
174
|
-
}
|
|
175
|
-
];
|
|
176
|
-
return /* @__PURE__ */ jsxs("figure", {
|
|
177
|
-
className: `rb-map-drawing ${props.className ?? ""}`.trim(),
|
|
178
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
179
|
-
className: "rb-map-drawing-crop",
|
|
180
|
-
style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
|
|
181
|
-
children: /* @__PURE__ */ jsx(SvgNode, {
|
|
182
|
-
className: `map-${name}`,
|
|
183
|
-
viewBox: frame.viewBox.join(" "),
|
|
184
|
-
shapes,
|
|
185
|
-
ariaHidden: false,
|
|
186
|
-
ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
|
|
187
|
-
})
|
|
188
|
-
}), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
|
|
189
|
-
href: "https://www.openstreetmap.org/copyright",
|
|
190
|
-
target: "_blank",
|
|
191
|
-
rel: "noreferrer",
|
|
192
|
-
children: "OpenStreetMap contributors"
|
|
193
|
-
})] })]
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
function cropHeightStyle(height, heightAs) {
|
|
197
|
-
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
198
|
-
}
|
|
199
|
-
//#endregion
|
|
200
|
-
export { SvgNode as i, MapDrawingSvg as n, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|