@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/dist/client/client.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Fs as parseSiteId } from "./wizardSteps-CWIQyRIw.mjs";
|
|
3
|
+
import { A as materializeEntriesMedia, C as siteBlockRenderContext, F as attachResilienceStatusToError, M as rethrowClientFrameworkSignal, P as RiverbankApiError, R as requireSdkTheme, S as projectRenderablePageOutline, _ as loadContentFromContentResponse, _t as isSupportedLoaderEndpoint, b as buildSiteRenderSupport, gt as encodePublicProductCategorySelector, j as findFrameworkSignal, k as prefetchBlockDataWithFailures, m as isPageContent, t as Page, w as resolveSiteCustomBlocks, x as collectMediaAssetSidecar, y as buildRenderablePageOutline } from "./Page-bX7iy_MK.mjs";
|
|
4
|
+
import { Jn as publicMapLocationParamsSchema } from "./registry.server-Bj9cmHHF.mjs";
|
|
5
5
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
6
|
-
import { t as restoreRuntimeResponse } from "./runtimeResponse-
|
|
6
|
+
import { t as restoreRuntimeResponse } from "./runtimeResponse-DtWSfWSZ.mjs";
|
|
7
7
|
import { useEffect, useState } from "react";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
/**
|
|
@@ -46,7 +46,6 @@ const PUBLIC_READ_CACHE_POLICIES = {
|
|
|
46
46
|
"public_memberships"
|
|
47
47
|
], "batch_only"),
|
|
48
48
|
getPublicMapLocation: availability(["public_events", "public_event_filters"], "batch_only"),
|
|
49
|
-
resolveEventSubroute: availability(["public_events", "public_event_filters"], "direct"),
|
|
50
49
|
listPublicRouteCandidates: content(["published_content"], "batch_only"),
|
|
51
50
|
listPublicTeamMembers: content(["public_team_members"]),
|
|
52
51
|
listPublicProducts: availability(["public_products"], "direct"),
|
|
@@ -674,6 +673,23 @@ function buildFetchPolicy(siteId, reads, freshnessSeconds) {
|
|
|
674
673
|
function buildPublicReadBatchFetchPolicy(siteId, reads) {
|
|
675
674
|
return buildFetchPolicy(siteId, reads, publicReadBatchFreshnessSeconds);
|
|
676
675
|
}
|
|
676
|
+
/** A page may depend on admission even when an ordinary CMS page won precedence. */
|
|
677
|
+
function buildPageReadCachePolicy(siteId, dependencies) {
|
|
678
|
+
return dependencies === "availability" ? {
|
|
679
|
+
tags: normalizeRevalidateTags([
|
|
680
|
+
...buildCacheReadTags([TAG_TEMPLATES.siteRoutableContent], { siteId }),
|
|
681
|
+
...buildPublicReadFetchTags("listPublicEvents", { siteId }),
|
|
682
|
+
...buildPublicReadFetchTags("getPublicBookingService", { siteId })
|
|
683
|
+
]),
|
|
684
|
+
revalidate: 60
|
|
685
|
+
} : {
|
|
686
|
+
tags: buildCacheReadTags([TAG_TEMPLATES.siteRoutableContent], { siteId }),
|
|
687
|
+
revalidate: PUBLIC_CONTENT_FRESHNESS_SECONDS
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
function pageReadDependencies(payload) {
|
|
691
|
+
return typeof payload === "object" && payload !== null && "dependencies" in payload && payload.dependencies === "content" ? "content" : "availability";
|
|
692
|
+
}
|
|
677
693
|
//#endregion
|
|
678
694
|
//#region ../api/src/sdkEntryReadEndpoints.ts
|
|
679
695
|
const SDK_ENTRY_READ_ENDPOINTS = {
|
|
@@ -1361,6 +1377,17 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1361
1377
|
"server:internal_error"
|
|
1362
1378
|
]
|
|
1363
1379
|
},
|
|
1380
|
+
getTeamMemberTemplatePreview: {
|
|
1381
|
+
path: "/sites/{siteId}/bookings/profile-editor/{entryId}/template-preview",
|
|
1382
|
+
method: "GET",
|
|
1383
|
+
auth: "user",
|
|
1384
|
+
responseKind: "json",
|
|
1385
|
+
errors: [
|
|
1386
|
+
"auth:forbidden",
|
|
1387
|
+
"resource:not_found",
|
|
1388
|
+
"server:internal_error"
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1364
1391
|
updateTeamMemberProfilePolicy: {
|
|
1365
1392
|
path: "/sites/{siteId}/bookings/resources/profile-policy",
|
|
1366
1393
|
method: "PUT",
|
|
@@ -2887,15 +2914,6 @@ const PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2887
2914
|
"resource:conflict",
|
|
2888
2915
|
"server:internal_error"
|
|
2889
2916
|
]
|
|
2890
|
-
},
|
|
2891
|
-
resolveEventSubroute: {
|
|
2892
|
-
path: "/public/sites/{siteId}/events/subroutes/resolve",
|
|
2893
|
-
method: "GET",
|
|
2894
|
-
revalidate: publicReadFreshnessSeconds("resolveEventSubroute"),
|
|
2895
|
-
tags: [TAG_TEMPLATES.publicEvents, "event-subroute"],
|
|
2896
|
-
auth: "public",
|
|
2897
|
-
responseKind: "json",
|
|
2898
|
-
errors: []
|
|
2899
2917
|
}
|
|
2900
2918
|
});
|
|
2901
2919
|
//#endregion
|
|
@@ -6101,6 +6119,14 @@ const API_ENDPOINTS$1 = {
|
|
|
6101
6119
|
responseKind: "json",
|
|
6102
6120
|
errors: []
|
|
6103
6121
|
},
|
|
6122
|
+
adminDeleteSupportTicketScreenshot: {
|
|
6123
|
+
path: "/admin/support/tickets/screenshot/delete",
|
|
6124
|
+
method: "POST",
|
|
6125
|
+
tags: ["admin", "support"],
|
|
6126
|
+
auth: "admin",
|
|
6127
|
+
responseKind: "json",
|
|
6128
|
+
errors: []
|
|
6129
|
+
},
|
|
6104
6130
|
mfaTotpEnroll: {
|
|
6105
6131
|
path: "/auth/mfa/totp/enroll",
|
|
6106
6132
|
method: "POST",
|
|
@@ -7102,6 +7128,7 @@ const API_ENDPOINTS$1 = {
|
|
|
7102
7128
|
responseKind: "json"
|
|
7103
7129
|
},
|
|
7104
7130
|
resolveRouteOutcome: {
|
|
7131
|
+
revalidate: PUBLIC_CONTENT_FRESHNESS_SECONDS,
|
|
7105
7132
|
path: "/sites/{siteId}/route-outcome",
|
|
7106
7133
|
method: "GET",
|
|
7107
7134
|
tags: [
|
|
@@ -7802,6 +7829,38 @@ const API_ENDPOINTS$1 = {
|
|
|
7802
7829
|
"server:internal_error"
|
|
7803
7830
|
]
|
|
7804
7831
|
},
|
|
7832
|
+
getEventRoomsRoster: {
|
|
7833
|
+
errors: [],
|
|
7834
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms",
|
|
7835
|
+
method: "GET",
|
|
7836
|
+
tags: ["site-{siteId}", "event-series-{seriesId}"],
|
|
7837
|
+
auth: "user",
|
|
7838
|
+
responseKind: "json"
|
|
7839
|
+
},
|
|
7840
|
+
getChangeEventRoomOptions: {
|
|
7841
|
+
errors: [],
|
|
7842
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms/change/options",
|
|
7843
|
+
method: "GET",
|
|
7844
|
+
tags: [
|
|
7845
|
+
"site-{siteId}",
|
|
7846
|
+
"event-series-{seriesId}",
|
|
7847
|
+
"bookings"
|
|
7848
|
+
],
|
|
7849
|
+
auth: "user",
|
|
7850
|
+
responseKind: "json"
|
|
7851
|
+
},
|
|
7852
|
+
changeEventRoom: {
|
|
7853
|
+
errors: [],
|
|
7854
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms/change",
|
|
7855
|
+
method: "POST",
|
|
7856
|
+
tags: [
|
|
7857
|
+
"site-{siteId}",
|
|
7858
|
+
"event-series-{seriesId}",
|
|
7859
|
+
"bookings"
|
|
7860
|
+
],
|
|
7861
|
+
auth: "user",
|
|
7862
|
+
responseKind: "json"
|
|
7863
|
+
},
|
|
7805
7864
|
listEventSeriesAttendees: {
|
|
7806
7865
|
path: "/sites/{siteId}/bookings/event-series/{seriesId}/attendees",
|
|
7807
7866
|
method: "GET",
|
|
@@ -8029,6 +8088,25 @@ const API_ENDPOINTS$1 = {
|
|
|
8029
8088
|
"bookings"
|
|
8030
8089
|
]
|
|
8031
8090
|
},
|
|
8091
|
+
listEventBookingTicketChoices: {
|
|
8092
|
+
errors: [],
|
|
8093
|
+
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/ticket-choices",
|
|
8094
|
+
method: "GET",
|
|
8095
|
+
auth: "user",
|
|
8096
|
+
responseKind: "json"
|
|
8097
|
+
},
|
|
8098
|
+
changeEventBookingTickets: {
|
|
8099
|
+
errors: [],
|
|
8100
|
+
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/change-tickets",
|
|
8101
|
+
method: "POST",
|
|
8102
|
+
auth: "user",
|
|
8103
|
+
responseKind: "json",
|
|
8104
|
+
tags: [
|
|
8105
|
+
"site-{siteId}",
|
|
8106
|
+
"event-attendee-{attendeeId}",
|
|
8107
|
+
"bookings"
|
|
8108
|
+
]
|
|
8109
|
+
},
|
|
8032
8110
|
restoreEventBooking: {
|
|
8033
8111
|
errors: [],
|
|
8034
8112
|
path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/restore",
|
|
@@ -10138,20 +10216,20 @@ function isApiError(result) {
|
|
|
10138
10216
|
function isApiSuccess(result) {
|
|
10139
10217
|
return result.success === true;
|
|
10140
10218
|
}
|
|
10141
|
-
function isRecord(value) {
|
|
10219
|
+
function isRecord$1(value) {
|
|
10142
10220
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10143
10221
|
}
|
|
10144
10222
|
function isFieldError(value) {
|
|
10145
|
-
return isRecord(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
|
|
10223
|
+
return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
|
|
10146
10224
|
}
|
|
10147
10225
|
function fieldErrorsFromUnknown(value) {
|
|
10148
10226
|
if (!Array.isArray(value)) return null;
|
|
10149
10227
|
return value.every(isFieldError) ? value : null;
|
|
10150
10228
|
}
|
|
10151
10229
|
function extractEnvelopeErrorObject(body) {
|
|
10152
|
-
if (!isRecord(body)) return null;
|
|
10230
|
+
if (!isRecord$1(body)) return null;
|
|
10153
10231
|
const error = body.error;
|
|
10154
|
-
if (!isRecord(error)) return null;
|
|
10232
|
+
if (!isRecord$1(error)) return null;
|
|
10155
10233
|
if ("success" in body && body.success !== false) return null;
|
|
10156
10234
|
return error;
|
|
10157
10235
|
}
|
|
@@ -10275,6 +10353,171 @@ function resolveApiBaseUrl() {
|
|
|
10275
10353
|
return getCmsApiUrl();
|
|
10276
10354
|
}
|
|
10277
10355
|
//#endregion
|
|
10356
|
+
//#region ../api/src/pageReadResponseCache.ts
|
|
10357
|
+
function isRecord(value) {
|
|
10358
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10359
|
+
}
|
|
10360
|
+
function isResolvedPage(page) {
|
|
10361
|
+
return page?.kind === "resolved" && typeof page.requestedPath === "string" && (page.dependencies === "content" || page.dependencies === "availability") && isRecord(page.result) && [
|
|
10362
|
+
"cms",
|
|
10363
|
+
"system_event",
|
|
10364
|
+
"system_service"
|
|
10365
|
+
].includes(String(page.result.kind));
|
|
10366
|
+
}
|
|
10367
|
+
function envelopePage(body) {
|
|
10368
|
+
const data = isRecord(body) && body.success === true && isRecord(body.data) ? body.data : null;
|
|
10369
|
+
return data?.type === "content" && isRecord(data.content) ? data.content : data;
|
|
10370
|
+
}
|
|
10371
|
+
function parseBody(body) {
|
|
10372
|
+
try {
|
|
10373
|
+
return JSON.parse(body);
|
|
10374
|
+
} catch {
|
|
10375
|
+
return null;
|
|
10376
|
+
}
|
|
10377
|
+
}
|
|
10378
|
+
const header = (snapshot, name) => snapshot.headers.find(([key]) => key.toLowerCase() === name)?.[1];
|
|
10379
|
+
/** Only a complete, resolved page is stored. Anything else passes through and keeps the policy its failure names. */
|
|
10380
|
+
function admit(snapshot) {
|
|
10381
|
+
const page = envelopePage(parseBody(snapshot.body));
|
|
10382
|
+
if (snapshot.status === 200 && isResolvedPage(page)) {
|
|
10383
|
+
if (header(snapshot, "x-riverbank-page-storage") === "no-store") return {
|
|
10384
|
+
kind: "pass-through",
|
|
10385
|
+
dependencies: "availability"
|
|
10386
|
+
};
|
|
10387
|
+
return {
|
|
10388
|
+
kind: "store",
|
|
10389
|
+
dependencies: page.dependencies
|
|
10390
|
+
};
|
|
10391
|
+
}
|
|
10392
|
+
return {
|
|
10393
|
+
kind: "pass-through",
|
|
10394
|
+
dependencies: snapshot.status === 200 || header(snapshot, "x-riverbank-page-dependencies") === "availability" ? "availability" : "content"
|
|
10395
|
+
};
|
|
10396
|
+
}
|
|
10397
|
+
/**
|
|
10398
|
+
* One cache entry per request, judged by the policy it is looked up with. Content is looked up first, so a
|
|
10399
|
+
* plain page costs one lookup and never registers the availability policy. A page whose snapshot depends on
|
|
10400
|
+
* availability is looked up again under that policy, which checks its tags and 60-second budget. A snapshot
|
|
10401
|
+
* past its own budget is never served: the live read replaces it.
|
|
10402
|
+
*/
|
|
10403
|
+
function planPageRead(state, now, budgetSeconds) {
|
|
10404
|
+
const subject = state.live ?? state.cached;
|
|
10405
|
+
if (!subject) return {
|
|
10406
|
+
kind: "lookup",
|
|
10407
|
+
dependencies: "content"
|
|
10408
|
+
};
|
|
10409
|
+
const { dependencies } = admit(subject);
|
|
10410
|
+
if (!state.lookedUp.includes(dependencies)) return {
|
|
10411
|
+
kind: "lookup",
|
|
10412
|
+
dependencies
|
|
10413
|
+
};
|
|
10414
|
+
if (state.live) return {
|
|
10415
|
+
kind: "serve",
|
|
10416
|
+
snapshot: state.live
|
|
10417
|
+
};
|
|
10418
|
+
return now - subject.cachedAt < budgetSeconds(dependencies) * 1e3 ? {
|
|
10419
|
+
kind: "serve",
|
|
10420
|
+
snapshot: subject
|
|
10421
|
+
} : { kind: "read-live" };
|
|
10422
|
+
}
|
|
10423
|
+
/**
|
|
10424
|
+
* `unstable_cache` stores whatever its callback returns, so a response that must not be kept leaves the
|
|
10425
|
+
* callback by this one exception, which `lookup` turns back into a value straight away.
|
|
10426
|
+
*/
|
|
10427
|
+
var PassThroughResponse = class extends Error {
|
|
10428
|
+
constructor(snapshot) {
|
|
10429
|
+
super("Page read must not be stored");
|
|
10430
|
+
this.snapshot = snapshot;
|
|
10431
|
+
}
|
|
10432
|
+
};
|
|
10433
|
+
async function lookup(input, dependencies) {
|
|
10434
|
+
const { tags } = buildPageReadCachePolicy(input.siteId, dependencies);
|
|
10435
|
+
const load = async () => {
|
|
10436
|
+
const snapshot = await input.live();
|
|
10437
|
+
if (admit(snapshot).kind === "pass-through") throw new PassThroughResponse(snapshot);
|
|
10438
|
+
return snapshot;
|
|
10439
|
+
};
|
|
10440
|
+
try {
|
|
10441
|
+
return {
|
|
10442
|
+
cached: await input.cache(load, ["page-read-envelope-v3", input.key], {
|
|
10443
|
+
revalidate: input.budgetSeconds(dependencies),
|
|
10444
|
+
tags
|
|
10445
|
+
})(),
|
|
10446
|
+
live: null
|
|
10447
|
+
};
|
|
10448
|
+
} catch (error) {
|
|
10449
|
+
if (error instanceof PassThroughResponse) return {
|
|
10450
|
+
cached: null,
|
|
10451
|
+
live: error.snapshot
|
|
10452
|
+
};
|
|
10453
|
+
throw error;
|
|
10454
|
+
}
|
|
10455
|
+
}
|
|
10456
|
+
async function runPlan(input, state) {
|
|
10457
|
+
const step = planPageRead(state, Date.now(), input.budgetSeconds);
|
|
10458
|
+
switch (step.kind) {
|
|
10459
|
+
case "serve": return step.snapshot;
|
|
10460
|
+
case "read-live": return runPlan(input, {
|
|
10461
|
+
...state,
|
|
10462
|
+
live: await input.live()
|
|
10463
|
+
});
|
|
10464
|
+
case "lookup": {
|
|
10465
|
+
const found = await lookup(input, step.dependencies);
|
|
10466
|
+
return runPlan(input, {
|
|
10467
|
+
lookedUp: [...state.lookedUp, step.dependencies],
|
|
10468
|
+
cached: found.cached ?? state.cached,
|
|
10469
|
+
live: state.live ?? found.live
|
|
10470
|
+
});
|
|
10471
|
+
}
|
|
10472
|
+
}
|
|
10473
|
+
}
|
|
10474
|
+
/**
|
|
10475
|
+
* One transport read per page read, shared by a miss, a stale entry's refresh and the live fallback.
|
|
10476
|
+
* It starts only when one of them asks for it.
|
|
10477
|
+
*/
|
|
10478
|
+
function sharedRead(read) {
|
|
10479
|
+
const transport = { started: null };
|
|
10480
|
+
return () => transport.started ?? (transport.started = read().then(async (value) => ({
|
|
10481
|
+
body: await value.text(),
|
|
10482
|
+
status: value.status,
|
|
10483
|
+
headers: [...value.headers.entries()],
|
|
10484
|
+
cachedAt: Date.now()
|
|
10485
|
+
})));
|
|
10486
|
+
}
|
|
10487
|
+
async function cachePageReadResponse(input) {
|
|
10488
|
+
if (!input.cache || input.maxAge !== void 0 && input.maxAge <= 0) return input.read();
|
|
10489
|
+
const maxAge = input.maxAge;
|
|
10490
|
+
const budgetSeconds = (dependencies) => {
|
|
10491
|
+
const policy = buildPageReadCachePolicy(input.siteId, dependencies).revalidate;
|
|
10492
|
+
return maxAge === void 0 ? policy : Math.min(policy, maxAge);
|
|
10493
|
+
};
|
|
10494
|
+
const result = await runPlan({
|
|
10495
|
+
cache: input.cache,
|
|
10496
|
+
key: input.key,
|
|
10497
|
+
siteId: input.siteId,
|
|
10498
|
+
live: sharedRead(input.read),
|
|
10499
|
+
budgetSeconds
|
|
10500
|
+
}, {
|
|
10501
|
+
lookedUp: [],
|
|
10502
|
+
cached: null,
|
|
10503
|
+
live: null
|
|
10504
|
+
});
|
|
10505
|
+
return new Response(result.body, {
|
|
10506
|
+
status: result.status,
|
|
10507
|
+
headers: result.headers
|
|
10508
|
+
});
|
|
10509
|
+
}
|
|
10510
|
+
/** Result adapters use this when the SDK served a page without the HTTP transport (memory, durable or prebuild fallback). */
|
|
10511
|
+
async function observePageReadPolicy(cache, siteId, payload) {
|
|
10512
|
+
if (!cache) return;
|
|
10513
|
+
const dependency = pageReadDependencies(payload);
|
|
10514
|
+
await cache(async () => true, [
|
|
10515
|
+
"page-read-policy-v2",
|
|
10516
|
+
siteId,
|
|
10517
|
+
dependency
|
|
10518
|
+
], buildPageReadCachePolicy(siteId, dependency))();
|
|
10519
|
+
}
|
|
10520
|
+
//#endregion
|
|
10278
10521
|
//#region ../api/src/common/operationId.ts
|
|
10279
10522
|
const OPERATION_ID_HEADER = "X-Riverbank-Operation-Id";
|
|
10280
10523
|
z.uuid();
|
|
@@ -10345,18 +10588,9 @@ z.enum([
|
|
|
10345
10588
|
]);
|
|
10346
10589
|
//#endregion
|
|
10347
10590
|
//#region ../api/src/request.ts
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
if (revalidateTagResolved) return revalidateTag;
|
|
10352
|
-
revalidateTagResolved = true;
|
|
10353
|
-
if (typeof window !== "undefined") return null;
|
|
10354
|
-
try {
|
|
10355
|
-
revalidateTag = new Function("modulePath", "return require(modulePath)")("next/cache").revalidateTag ?? null;
|
|
10356
|
-
} catch {
|
|
10357
|
-
revalidateTag = null;
|
|
10358
|
-
}
|
|
10359
|
-
return revalidateTag;
|
|
10591
|
+
/** Preserve the returned dependency even when the SDK served a durable fallback. */
|
|
10592
|
+
function observePageReadResponse(adapter, siteId, payload) {
|
|
10593
|
+
return observePageReadPolicy(adapter?.cache ?? null, siteId, payload);
|
|
10360
10594
|
}
|
|
10361
10595
|
/**
|
|
10362
10596
|
* Generate a UUID, with fallback for environments where crypto.randomUUID isn't available.
|
|
@@ -10442,8 +10676,8 @@ function serializePathParam(endpoint, key, value) {
|
|
|
10442
10676
|
if (typeof value === "string") return value;
|
|
10443
10677
|
throw new Error(`Invalid path param for endpoint ${String(endpoint)}: ${key} must be a string`);
|
|
10444
10678
|
}
|
|
10445
|
-
function invalidateCacheTags(tags, params) {
|
|
10446
|
-
const resolved =
|
|
10679
|
+
function invalidateCacheTags(adapter, tags, params) {
|
|
10680
|
+
const resolved = adapter?.invalidateTag;
|
|
10447
10681
|
if (typeof window !== "undefined" || !resolved || !tags) return;
|
|
10448
10682
|
tags.forEach((tag) => {
|
|
10449
10683
|
let processedTag = tag;
|
|
@@ -10451,7 +10685,7 @@ function invalidateCacheTags(tags, params) {
|
|
|
10451
10685
|
processedTag = processedTag.replace(`{${key}}`, String(value));
|
|
10452
10686
|
});
|
|
10453
10687
|
try {
|
|
10454
|
-
resolved(processedTag
|
|
10688
|
+
resolved(processedTag);
|
|
10455
10689
|
} catch {}
|
|
10456
10690
|
});
|
|
10457
10691
|
}
|
|
@@ -10523,7 +10757,14 @@ async function parseJsonSuccess(endpoint, response, config, decoder) {
|
|
|
10523
10757
|
if (!raw.trim()) return buildSuccessEnvelope(coerceResponse(void 0), requestId);
|
|
10524
10758
|
const parsed = decodeSuccessJson(raw, endpoint, response, config, decoder);
|
|
10525
10759
|
requireUsableCommitProjection(response, parsed);
|
|
10526
|
-
|
|
10760
|
+
const envelope = successJsonEnvelope(parsed, requestId);
|
|
10761
|
+
return envelope.success && response.headers.get("x-riverbank-page-storage") === "no-store" ? {
|
|
10762
|
+
...envelope,
|
|
10763
|
+
meta: {
|
|
10764
|
+
...envelope.meta,
|
|
10765
|
+
storage: "no-store"
|
|
10766
|
+
}
|
|
10767
|
+
} : envelope;
|
|
10527
10768
|
}
|
|
10528
10769
|
function decodeSuccessJson(raw, endpoint, response, config, decoder) {
|
|
10529
10770
|
try {
|
|
@@ -10544,7 +10785,7 @@ function successJsonEnvelope(parsed, requestId) {
|
|
|
10544
10785
|
if (parsed && typeof parsed === "object" && "success" in parsed && typeof parsed.success === "boolean") return parsed;
|
|
10545
10786
|
return buildSuccessEnvelope(coerceResponse(parsed), requestId);
|
|
10546
10787
|
}
|
|
10547
|
-
function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersion } = {}) {
|
|
10788
|
+
function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersion, frameworkCache } = {}) {
|
|
10548
10789
|
return ({ endpoint, body, params, options = {} }) => {
|
|
10549
10790
|
const plan = buildApiRequestPlan({
|
|
10550
10791
|
endpoint,
|
|
@@ -10558,14 +10799,31 @@ function createApiResponseTransport(getHeaders = () => ({}), baseUrl, { sdkVersi
|
|
|
10558
10799
|
baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl()),
|
|
10559
10800
|
sdkVersion
|
|
10560
10801
|
});
|
|
10561
|
-
const fetchPromise =
|
|
10802
|
+
const fetchPromise = executeApiRequest(plan, endpoint, params, options, frameworkCache);
|
|
10562
10803
|
if (plan.cacheInvalidationTags) return fetchPromise.then((response) => {
|
|
10563
|
-
if (response.ok) invalidateCacheTags(plan.cacheInvalidationTags, params);
|
|
10804
|
+
if (response.ok) invalidateCacheTags(frameworkCache, plan.cacheInvalidationTags, params);
|
|
10564
10805
|
return response;
|
|
10565
10806
|
});
|
|
10566
10807
|
return fetchPromise;
|
|
10567
10808
|
};
|
|
10568
10809
|
}
|
|
10810
|
+
function isPublishedPageRead(endpoint, params, options) {
|
|
10811
|
+
return (endpoint === "getContentByPath" || endpoint === "resolveRouteOutcome") && params?.preview !== true && params?.preview !== "true" && options.cache !== "no-store";
|
|
10812
|
+
}
|
|
10813
|
+
function executeApiRequest(plan, endpoint, params, options, frameworkCache) {
|
|
10814
|
+
const inputParams = params;
|
|
10815
|
+
const { next: fetchPolicy, ...uncachedInit } = plan.init;
|
|
10816
|
+
return isPublishedPageRead(endpoint, inputParams, options) ? cachePageReadResponse({
|
|
10817
|
+
cache: frameworkCache?.cache ?? null,
|
|
10818
|
+
key: JSON.stringify([plan.url, [...new Headers(plan.init.headers).entries()]]),
|
|
10819
|
+
siteId: typeof inputParams?.siteId === "string" ? inputParams.siteId : "",
|
|
10820
|
+
maxAge: typeof fetchPolicy?.revalidate === "number" ? fetchPolicy.revalidate : void 0,
|
|
10821
|
+
read: () => fetch(plan.url, {
|
|
10822
|
+
...uncachedInit,
|
|
10823
|
+
cache: "no-store"
|
|
10824
|
+
})
|
|
10825
|
+
}) : fetch(plan.url, plan.init);
|
|
10826
|
+
}
|
|
10569
10827
|
const batchReadPolicyBodySchema = z.object({ requests: z.array(z.object({
|
|
10570
10828
|
endpoint: z.string(),
|
|
10571
10829
|
params: z.record(z.string(), z.unknown()).optional()
|
|
@@ -10599,10 +10857,12 @@ function batchReadRequestOptions(params, body, options) {
|
|
|
10599
10857
|
function publicReadRequestOptions(endpoint, params, body, options) {
|
|
10600
10858
|
if (endpoint === "batchBlockLoaders") return batchReadRequestOptions(params, body, options);
|
|
10601
10859
|
const preview = params?.preview === true || params?.preview === "true";
|
|
10602
|
-
|
|
10860
|
+
if (endpoint !== "getContentByPath" && endpoint !== "resolveRouteOutcome") return options;
|
|
10861
|
+
if (preview) return {
|
|
10603
10862
|
...options,
|
|
10604
10863
|
cache: "no-store"
|
|
10605
|
-
}
|
|
10864
|
+
};
|
|
10865
|
+
return options;
|
|
10606
10866
|
}
|
|
10607
10867
|
function assertResolvedEndpointPath(endpoint, url) {
|
|
10608
10868
|
const tokens = [...url.match(/\{[^}]+\}/g) ?? [], ...url.match(/(^|\/):([A-Za-z][A-Za-z0-9_]*)\b/g) ?? []];
|
|
@@ -10702,6 +10962,28 @@ function requireUsableCommitProjection(response, parsed) {
|
|
|
10702
10962
|
throw new ApiCommittedWriteNotice(pageCommitConfirmationEnvelopeSchema.parse(parsed).data);
|
|
10703
10963
|
}
|
|
10704
10964
|
//#endregion
|
|
10965
|
+
//#region src/rendering/hooks/loadHookSystemPage.ts
|
|
10966
|
+
/** Both client hooks use the admitted destination and require a renderable page. */
|
|
10967
|
+
async function loadHookSystemPage(params) {
|
|
10968
|
+
const content = await loadContentFromContentResponse(params);
|
|
10969
|
+
if (!isPageContent(content)) throw new Error("Expected a selected system page");
|
|
10970
|
+
return {
|
|
10971
|
+
...content,
|
|
10972
|
+
theme: requireSdkTheme(content.theme, params.siteId)
|
|
10973
|
+
};
|
|
10974
|
+
}
|
|
10975
|
+
function readHookPage(input) {
|
|
10976
|
+
const { client, siteId, path, preview } = input;
|
|
10977
|
+
return Promise.all([client.getSite({
|
|
10978
|
+
id: siteId,
|
|
10979
|
+
currentPath: path
|
|
10980
|
+
}), client.getPage({
|
|
10981
|
+
siteId,
|
|
10982
|
+
path,
|
|
10983
|
+
preview
|
|
10984
|
+
})]);
|
|
10985
|
+
}
|
|
10986
|
+
//#endregion
|
|
10705
10987
|
//#region src/rendering/hooks/usePage.ts
|
|
10706
10988
|
/**
|
|
10707
10989
|
* Client-side React hook to fetch page data.
|
|
@@ -10832,15 +11114,30 @@ function usePage(params) {
|
|
|
10832
11114
|
let cancelled = false;
|
|
10833
11115
|
async function fetchPage() {
|
|
10834
11116
|
try {
|
|
10835
|
-
const [site,
|
|
10836
|
-
|
|
10837
|
-
currentPath: path
|
|
10838
|
-
}), client.getPage({
|
|
11117
|
+
const [site, pageRead] = await readHookPage({
|
|
11118
|
+
client,
|
|
10839
11119
|
siteId,
|
|
10840
11120
|
path,
|
|
10841
11121
|
preview
|
|
10842
|
-
})
|
|
11122
|
+
});
|
|
10843
11123
|
if (cancelled) return;
|
|
11124
|
+
if (pageRead.result.kind !== "cms") {
|
|
11125
|
+
const content = await loadHookSystemPage({
|
|
11126
|
+
client,
|
|
11127
|
+
siteId,
|
|
11128
|
+
site,
|
|
11129
|
+
contentResponse: pageRead,
|
|
11130
|
+
preview
|
|
11131
|
+
});
|
|
11132
|
+
if (!cancelled) setResult({
|
|
11133
|
+
...content,
|
|
11134
|
+
loading: false,
|
|
11135
|
+
error: null,
|
|
11136
|
+
theme: content.theme
|
|
11137
|
+
});
|
|
11138
|
+
return;
|
|
11139
|
+
}
|
|
11140
|
+
const pageResponse = pageRead.result.content;
|
|
10844
11141
|
if ("entry" in pageResponse) throw new Error("This path resolves to a content entry, not a page. Use useContent() instead, which handles both pages and entries. For entries, useContent() returns the raw entry data for custom rendering.");
|
|
10845
11142
|
if ("pageSurface" in pageResponse) throw new Error("This path resolves to a page surface, not a page. Use useContent() instead, which handles pages, entries, and page surfaces.");
|
|
10846
11143
|
const success = await loadUsePageSuccess({
|
|
@@ -11062,15 +11359,31 @@ function useContent(params) {
|
|
|
11062
11359
|
let cancelled = false;
|
|
11063
11360
|
async function fetchContent() {
|
|
11064
11361
|
try {
|
|
11065
|
-
const [site,
|
|
11066
|
-
|
|
11067
|
-
currentPath: path
|
|
11068
|
-
}), client.getPage({
|
|
11362
|
+
const [site, pageRead] = await readHookPage({
|
|
11363
|
+
client,
|
|
11069
11364
|
siteId,
|
|
11070
11365
|
path,
|
|
11071
11366
|
preview
|
|
11072
|
-
})
|
|
11367
|
+
});
|
|
11073
11368
|
if (cancelled) return;
|
|
11369
|
+
if (pageRead.result.kind !== "cms") {
|
|
11370
|
+
const content = await loadHookSystemPage({
|
|
11371
|
+
client,
|
|
11372
|
+
siteId,
|
|
11373
|
+
site,
|
|
11374
|
+
contentResponse: pageRead,
|
|
11375
|
+
preview
|
|
11376
|
+
});
|
|
11377
|
+
if (!cancelled) setResult({
|
|
11378
|
+
...content,
|
|
11379
|
+
loading: false,
|
|
11380
|
+
error: null,
|
|
11381
|
+
entry: null,
|
|
11382
|
+
theme: content.theme
|
|
11383
|
+
});
|
|
11384
|
+
return;
|
|
11385
|
+
}
|
|
11386
|
+
const contentResponse = pageRead.result.content;
|
|
11074
11387
|
if (isEntryResponse(contentResponse)) {
|
|
11075
11388
|
setResult(projectEntrySuccess({
|
|
11076
11389
|
response: contentResponse,
|
|
@@ -11117,7 +11430,7 @@ function isEntryResponse(response) {
|
|
|
11117
11430
|
//#endregion
|
|
11118
11431
|
//#region ../site-renderer/src/runtimeClient.ts
|
|
11119
11432
|
/** Only a client that reconstructs surfaces advertises revision transport. */
|
|
11120
|
-
function createRuntimeApiClient(transport) {
|
|
11433
|
+
function createRuntimeApiClient$1(transport) {
|
|
11121
11434
|
const revisionTransport = (request) => transport({
|
|
11122
11435
|
...request,
|
|
11123
11436
|
...request.endpoint === "getContentByPath" ? { params: {
|
|
@@ -11131,10 +11444,10 @@ function createRuntimeApiClient(transport) {
|
|
|
11131
11444
|
});
|
|
11132
11445
|
}
|
|
11133
11446
|
function createRuntimeInternalAPIClient(baseUrl, options) {
|
|
11134
|
-
return createRuntimeApiClient(createApiResponseTransport(() => ({}), baseUrl, options));
|
|
11447
|
+
return createRuntimeApiClient$1(createApiResponseTransport(() => ({}), baseUrl, options));
|
|
11135
11448
|
}
|
|
11136
11449
|
function createRuntimeBearerAPIClient(token, baseUrl, options) {
|
|
11137
|
-
return createRuntimeApiClient(createApiResponseTransport(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl, options));
|
|
11450
|
+
return createRuntimeApiClient$1(createApiResponseTransport(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl, options));
|
|
11138
11451
|
}
|
|
11139
11452
|
//#endregion
|
|
11140
11453
|
//#region src/client/entryListReadRequest.ts
|
|
@@ -11291,191 +11604,7 @@ var SimpleCache = class {
|
|
|
11291
11604
|
//#endregion
|
|
11292
11605
|
//#region src/request-options.ts
|
|
11293
11606
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
11294
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
11295
|
-
//#endregion
|
|
11296
|
-
//#region src/client/error.ts
|
|
11297
|
-
let _Symbol$for;
|
|
11298
|
-
_Symbol$for = Symbol.for("nodejs.util.inspect.custom");
|
|
11299
|
-
/**
|
|
11300
|
-
* Error thrown by SDK when API returns an error response
|
|
11301
|
-
*
|
|
11302
|
-
* @example
|
|
11303
|
-
* ```ts
|
|
11304
|
-
* try {
|
|
11305
|
-
* await client.getSite({ slug: 'my-site' });
|
|
11306
|
-
* } catch (error) {
|
|
11307
|
-
* if (error instanceof RiverbankApiError) {
|
|
11308
|
-
* console.log('Error code:', error.code);
|
|
11309
|
-
* console.log('Request ID:', error.requestId);
|
|
11310
|
-
*
|
|
11311
|
-
* if (error.isAuthError()) {
|
|
11312
|
-
* // Handle authentication error
|
|
11313
|
-
* }
|
|
11314
|
-
*
|
|
11315
|
-
* if (error.isValidationError() && error.fieldErrors) {
|
|
11316
|
-
* // Handle field-level validation errors
|
|
11317
|
-
* error.fieldErrors.forEach(fe => {
|
|
11318
|
-
* console.log(`${fe.field}: ${fe.message}`);
|
|
11319
|
-
* });
|
|
11320
|
-
* }
|
|
11321
|
-
*
|
|
11322
|
-
* // Check if error can be retried
|
|
11323
|
-
* if (error.isRetryable) {
|
|
11324
|
-
* const delay = error.retryAfterMs ?? 1000;
|
|
11325
|
-
* console.log(`Retrying after ${delay}ms...`);
|
|
11326
|
-
* }
|
|
11327
|
-
* }
|
|
11328
|
-
* }
|
|
11329
|
-
* ```
|
|
11330
|
-
*/
|
|
11331
|
-
var RiverbankApiError = class RiverbankApiError extends Error {
|
|
11332
|
-
constructor(apiError) {
|
|
11333
|
-
super(apiError.message);
|
|
11334
|
-
this.name = "RiverbankApiError";
|
|
11335
|
-
if ("cause" in apiError && apiError.cause) this.cause = apiError.cause;
|
|
11336
|
-
this.code = apiError.code;
|
|
11337
|
-
this.requestId = apiError.requestId;
|
|
11338
|
-
this.status = apiError.status;
|
|
11339
|
-
this.fieldErrors = apiError.fieldErrors;
|
|
11340
|
-
this.timestamp = apiError.timestamp;
|
|
11341
|
-
this.retryAfterMs = "retryAfterMs" in apiError ? apiError.retryAfterMs : void 0;
|
|
11342
|
-
this.isRetryable = this.computeRetryable();
|
|
11343
|
-
Object.setPrototypeOf(this, RiverbankApiError.prototype);
|
|
11344
|
-
}
|
|
11345
|
-
/**
|
|
11346
|
-
* Compute whether this error is retryable based on HTTP status code.
|
|
11347
|
-
* - 0 (network errors - no HTTP response): retryable
|
|
11348
|
-
* - 429 (rate limit): retryable
|
|
11349
|
-
* - 5xx (server errors): retryable
|
|
11350
|
-
* - 4xx (client errors, except 429): NOT retryable
|
|
11351
|
-
*/
|
|
11352
|
-
computeRetryable() {
|
|
11353
|
-
if (this.status === 0) return true;
|
|
11354
|
-
if (this.status === 429) return true;
|
|
11355
|
-
if (this.status >= 500) return true;
|
|
11356
|
-
return false;
|
|
11357
|
-
}
|
|
11358
|
-
/**
|
|
11359
|
-
* Check if this is a network error (no HTTP response received)
|
|
11360
|
-
*
|
|
11361
|
-
* Matches: network:connection_error, network:timeout, network:dns_error
|
|
11362
|
-
*/
|
|
11363
|
-
isNetworkError() {
|
|
11364
|
-
return this.code.startsWith("network:");
|
|
11365
|
-
}
|
|
11366
|
-
/**
|
|
11367
|
-
* Check if this error matches a specific error code
|
|
11368
|
-
*
|
|
11369
|
-
* @example
|
|
11370
|
-
* ```ts
|
|
11371
|
-
* if (error.is('auth:unauthenticated')) {
|
|
11372
|
-
* // Redirect to login
|
|
11373
|
-
* }
|
|
11374
|
-
* ```
|
|
11375
|
-
*/
|
|
11376
|
-
is(code) {
|
|
11377
|
-
return this.code === code;
|
|
11378
|
-
}
|
|
11379
|
-
/**
|
|
11380
|
-
* Check if this is an authentication or authorization error
|
|
11381
|
-
*
|
|
11382
|
-
* Matches: auth:unauthenticated, auth:token_expired, auth:token_invalid,
|
|
11383
|
-
* auth:forbidden, auth:mfa_required, auth:insufficient_permissions
|
|
11384
|
-
*/
|
|
11385
|
-
isAuthError() {
|
|
11386
|
-
return this.code.startsWith("auth:");
|
|
11387
|
-
}
|
|
11388
|
-
/**
|
|
11389
|
-
* Check if this is a validation error
|
|
11390
|
-
*
|
|
11391
|
-
* Matches: validation:invalid_input, validation:missing_field, validation:invalid_format
|
|
11392
|
-
*/
|
|
11393
|
-
isValidationError() {
|
|
11394
|
-
return this.code.startsWith("validation:");
|
|
11395
|
-
}
|
|
11396
|
-
/**
|
|
11397
|
-
* Check if this is a resource error (not found, conflict, etc.)
|
|
11398
|
-
*
|
|
11399
|
-
* Matches: resource:not_found, resource:already_exists, resource:conflict, resource:gone
|
|
11400
|
-
*/
|
|
11401
|
-
isResourceError() {
|
|
11402
|
-
return this.code.startsWith("resource:");
|
|
11403
|
-
}
|
|
11404
|
-
/**
|
|
11405
|
-
* Check if this is a rate limiting error
|
|
11406
|
-
*/
|
|
11407
|
-
isRateLimitError() {
|
|
11408
|
-
return this.code.startsWith("rate_limit:");
|
|
11409
|
-
}
|
|
11410
|
-
/**
|
|
11411
|
-
* Check if this is a billing/payment error
|
|
11412
|
-
*/
|
|
11413
|
-
isBillingError() {
|
|
11414
|
-
return this.code.startsWith("billing:");
|
|
11415
|
-
}
|
|
11416
|
-
/**
|
|
11417
|
-
* Check if this is a server error
|
|
11418
|
-
*/
|
|
11419
|
-
isServerError() {
|
|
11420
|
-
return this.code.startsWith("server:");
|
|
11421
|
-
}
|
|
11422
|
-
/**
|
|
11423
|
-
* Returns a human-readable string representation of the error.
|
|
11424
|
-
* Includes all key details for debugging.
|
|
11425
|
-
*
|
|
11426
|
-
* @example
|
|
11427
|
-
* "RiverbankApiError: Content keys cannot access preview content | Code: auth:forbidden | Status: 401 | RequestId: req-abc123"
|
|
11428
|
-
*/
|
|
11429
|
-
toString() {
|
|
11430
|
-
const parts = [`RiverbankApiError: ${this.message}`];
|
|
11431
|
-
if (this.code) parts.push(`Code: ${this.code}`);
|
|
11432
|
-
if (this.status) parts.push(`Status: ${this.status}`);
|
|
11433
|
-
if (this.requestId) parts.push(`RequestId: ${this.requestId}`);
|
|
11434
|
-
return parts.join(" | ");
|
|
11435
|
-
}
|
|
11436
|
-
/**
|
|
11437
|
-
* Custom Node.js inspect output for better console.log display.
|
|
11438
|
-
* This ensures that console.log(error) shows all relevant details
|
|
11439
|
-
* instead of just "[Object]" for nested properties.
|
|
11440
|
-
*/
|
|
11441
|
-
[_Symbol$for]() {
|
|
11442
|
-
return this.toDetailedString();
|
|
11443
|
-
}
|
|
11444
|
-
/**
|
|
11445
|
-
* Returns a detailed multi-line string for debugging.
|
|
11446
|
-
* Used by the Node.js inspect symbol for console output.
|
|
11447
|
-
*/
|
|
11448
|
-
toDetailedString() {
|
|
11449
|
-
const lines = [
|
|
11450
|
-
`RiverbankApiError: ${this.message}`,
|
|
11451
|
-
` Code: ${this.code}`,
|
|
11452
|
-
` Status: ${this.status}`,
|
|
11453
|
-
` RequestId: ${this.requestId}`,
|
|
11454
|
-
` Timestamp: ${this.timestamp}`
|
|
11455
|
-
];
|
|
11456
|
-
if (this.isRetryable) {
|
|
11457
|
-
lines.push(` Retryable: true`);
|
|
11458
|
-
if (this.retryAfterMs) lines.push(` RetryAfter: ${this.retryAfterMs}ms`);
|
|
11459
|
-
}
|
|
11460
|
-
if (this.fieldErrors && this.fieldErrors.length > 0) {
|
|
11461
|
-
lines.push(" FieldErrors:");
|
|
11462
|
-
this.fieldErrors.forEach((fe) => {
|
|
11463
|
-
lines.push(` - ${fe.field}: ${fe.message}`);
|
|
11464
|
-
});
|
|
11465
|
-
}
|
|
11466
|
-
return lines.join("\n");
|
|
11467
|
-
}
|
|
11468
|
-
};
|
|
11469
|
-
const resilienceStatusSymbol = Symbol.for("riverbankcms.sdk.resilienceStatus");
|
|
11470
|
-
function attachResilienceStatusToError(error, resilienceStatus) {
|
|
11471
|
-
const target = error !== null && (typeof error === "object" || typeof error === "function") ? error : new Error(typeof error === "string" || typeof error === "number" || typeof error === "boolean" || typeof error === "bigint" ? String(error) : "Unknown error");
|
|
11472
|
-
Object.defineProperty(target, resilienceStatusSymbol, {
|
|
11473
|
-
configurable: true,
|
|
11474
|
-
enumerable: false,
|
|
11475
|
-
value: resilienceStatus
|
|
11476
|
-
});
|
|
11477
|
-
return target;
|
|
11478
|
-
}
|
|
11607
|
+
const sdkRequestOptions = { sdkVersion: "0.180.0" };
|
|
11479
11608
|
//#endregion
|
|
11480
11609
|
//#region src/public-api/runtime.ts
|
|
11481
11610
|
const PUBLIC_ENDPOINT_NAMES = [
|
|
@@ -11496,7 +11625,6 @@ const PUBLIC_ENDPOINT_NAMES = [
|
|
|
11496
11625
|
"listPublicProducts",
|
|
11497
11626
|
"listPublicPasses",
|
|
11498
11627
|
"listPublicMemberships",
|
|
11499
|
-
"resolveEventSubroute",
|
|
11500
11628
|
"checkRedirect",
|
|
11501
11629
|
"getRoutableContent",
|
|
11502
11630
|
"getPublicRoutableContent",
|
|
@@ -11516,6 +11644,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
11516
11644
|
responseKind: "json"
|
|
11517
11645
|
},
|
|
11518
11646
|
resolveRouteOutcome: {
|
|
11647
|
+
revalidate: PUBLIC_CONTENT_FRESHNESS_SECONDS,
|
|
11519
11648
|
path: "/sites/{siteId}/route-outcome",
|
|
11520
11649
|
method: "GET",
|
|
11521
11650
|
tags: [
|
|
@@ -11637,14 +11766,6 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
11637
11766
|
auth: "public",
|
|
11638
11767
|
responseKind: "json"
|
|
11639
11768
|
},
|
|
11640
|
-
resolveEventSubroute: {
|
|
11641
|
-
path: "/public/sites/{siteId}/events/subroutes/resolve",
|
|
11642
|
-
method: "GET",
|
|
11643
|
-
revalidate: 60,
|
|
11644
|
-
tags: [TAG_TEMPLATES.publicEvents, "event-subroute"],
|
|
11645
|
-
auth: "public",
|
|
11646
|
-
responseKind: "json"
|
|
11647
|
-
},
|
|
11648
11769
|
checkRedirect: publicSiteReadDefinition(PUBLIC_READ_ENDPOINT_DEFINITIONS.checkRedirect)
|
|
11649
11770
|
});
|
|
11650
11771
|
function publicSiteReadDefinition(definition) {
|
|
@@ -11817,10 +11938,6 @@ const RUNTIME_CACHE_DURABILITY_OVERRIDES = {
|
|
|
11817
11938
|
kind: "live-only",
|
|
11818
11939
|
reason: "safety_sensitive_booking"
|
|
11819
11940
|
},
|
|
11820
|
-
resolveEventSubroute: {
|
|
11821
|
-
kind: "memory-only",
|
|
11822
|
-
reason: "durable_rollout_pending"
|
|
11823
|
-
},
|
|
11824
11941
|
checkRedirect: {
|
|
11825
11942
|
kind: "memory-only",
|
|
11826
11943
|
reason: "durable_rollout_pending"
|
|
@@ -11847,7 +11964,7 @@ function isTruthyParam(value) {
|
|
|
11847
11964
|
}
|
|
11848
11965
|
function isPreviewRequest(endpoint, params) {
|
|
11849
11966
|
if (endpoint === "getContentByPath") return isTruthyParam(params.preview);
|
|
11850
|
-
if (endpoint === "listPublishedEntries"
|
|
11967
|
+
if (endpoint === "listPublishedEntries") return params.stage === "preview";
|
|
11851
11968
|
return false;
|
|
11852
11969
|
}
|
|
11853
11970
|
function getEndpointFreshTtlSec(endpoint) {
|
|
@@ -12022,7 +12139,7 @@ async function readPageWithResilience(input, params) {
|
|
|
12022
12139
|
siteId
|
|
12023
12140
|
});
|
|
12024
12141
|
const cacheKey = publishedRuntimeCache?.cacheKey ?? `page:${siteId}:${path}:${preview}`;
|
|
12025
|
-
|
|
12142
|
+
const result = await input.resilientFetch(cacheKey, (requestSignal) => input.apiClient({
|
|
12026
12143
|
endpoint: "getContentByPath",
|
|
12027
12144
|
params: {
|
|
12028
12145
|
siteId,
|
|
@@ -12031,12 +12148,15 @@ async function readPageWithResilience(input, params) {
|
|
|
12031
12148
|
},
|
|
12032
12149
|
options: { signal: requestSignal }
|
|
12033
12150
|
}), {
|
|
12151
|
+
pageRead: { siteId },
|
|
12034
12152
|
preview,
|
|
12035
12153
|
signal,
|
|
12036
12154
|
publishedRuntimeCache,
|
|
12037
12155
|
cacheTags: buildSiteReadTags({ siteId }),
|
|
12038
12156
|
prebuildFallback: void 0
|
|
12039
12157
|
});
|
|
12158
|
+
if (!preview && result.resilience.source !== "live") await observePageReadResponse(input.frameworkCache, siteId, result.data);
|
|
12159
|
+
return result;
|
|
12040
12160
|
}
|
|
12041
12161
|
function createContentReadOperations(input) {
|
|
12042
12162
|
return {
|
|
@@ -12101,50 +12221,19 @@ function createPublicAppointmentReadOperations(deps) {
|
|
|
12101
12221
|
//#endregion
|
|
12102
12222
|
//#region src/client/publicEventReadOperations.ts
|
|
12103
12223
|
function createPublicEventReadOperations(deps) {
|
|
12104
|
-
async
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
const subjectId = subject.kind === "eventOffering" ? subject.eventOfferingId : subject.eventSeriesId;
|
|
12108
|
-
return deps.resilientFetchData("resolveEventSubroute", `${kind}:${siteId}:${subject.kind}:${subjectId}:${segment}:${preview ? "preview" : "published"}`, (requestSignal) => deps.apiClient({
|
|
12109
|
-
endpoint: "resolveEventSubroute",
|
|
12224
|
+
return { async listPublicEventCalendarWindow({ signal, ...params }) {
|
|
12225
|
+
return deps.resilientFetchData("listPublicEventCalendarWindow", `public-calendar-window:${JSON.stringify(params)}`, (requestSignal) => deps.apiClient({
|
|
12226
|
+
endpoint: "listPublicEventCalendarWindow",
|
|
12110
12227
|
params: {
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
subjectKind: subject.kind,
|
|
12114
|
-
subjectId,
|
|
12115
|
-
segment,
|
|
12116
|
-
stage: preview ? "preview" : "published"
|
|
12228
|
+
...params,
|
|
12229
|
+
limit: params.limit === void 0 ? void 0 : String(params.limit)
|
|
12117
12230
|
},
|
|
12118
12231
|
options: { signal: requestSignal }
|
|
12119
12232
|
}), {
|
|
12120
12233
|
signal,
|
|
12121
|
-
|
|
12122
|
-
cacheTags: buildPublicReadMemoryCacheTags("resolveEventSubroute", { siteId })
|
|
12234
|
+
cacheTags: buildPublicReadMemoryCacheTags("listPublicEventCalendarWindow", { siteId: params.siteId })
|
|
12123
12235
|
});
|
|
12124
|
-
}
|
|
12125
|
-
return {
|
|
12126
|
-
async listPublicEventCalendarWindow({ signal, ...params }) {
|
|
12127
|
-
return deps.resilientFetchData("listPublicEventCalendarWindow", `public-calendar-window:${JSON.stringify(params)}`, (requestSignal) => deps.apiClient({
|
|
12128
|
-
endpoint: "listPublicEventCalendarWindow",
|
|
12129
|
-
params: {
|
|
12130
|
-
...params,
|
|
12131
|
-
limit: params.limit === void 0 ? void 0 : String(params.limit)
|
|
12132
|
-
},
|
|
12133
|
-
options: { signal: requestSignal }
|
|
12134
|
-
}), {
|
|
12135
|
-
signal,
|
|
12136
|
-
cacheTags: buildPublicReadMemoryCacheTags("listPublicEventCalendarWindow", { siteId: params.siteId })
|
|
12137
|
-
});
|
|
12138
|
-
},
|
|
12139
|
-
async resolveEventOccurrence(params) {
|
|
12140
|
-
const response = await resolveEventSubroute(params, "event-occurrence");
|
|
12141
|
-
return { occurrence: response.subroute?.kind === "event-occurrence" ? response.subroute.occurrence : null };
|
|
12142
|
-
},
|
|
12143
|
-
async resolveEventRun(params) {
|
|
12144
|
-
const response = await resolveEventSubroute(params, "event-run");
|
|
12145
|
-
return { run: response.subroute?.kind === "event-run" ? response.subroute.run : null };
|
|
12146
|
-
}
|
|
12147
|
-
};
|
|
12236
|
+
} };
|
|
12148
12237
|
}
|
|
12149
12238
|
//#endregion
|
|
12150
12239
|
//#region src/client/combineAbortSignals.ts
|
|
@@ -12416,6 +12505,7 @@ function isAbortError$1(error) {
|
|
|
12416
12505
|
*/
|
|
12417
12506
|
function shouldRetryError(error, customRetryOn) {
|
|
12418
12507
|
if (isAbortError$1(error)) return false;
|
|
12508
|
+
if (findFrameworkSignal(error) !== void 0) return false;
|
|
12419
12509
|
if (customRetryOn) return customRetryOn(error, error instanceof RiverbankApiError ? error.status : void 0);
|
|
12420
12510
|
return isTransientError(error);
|
|
12421
12511
|
}
|
|
@@ -12520,6 +12610,38 @@ function generateRequestId() {
|
|
|
12520
12610
|
function toRecord(value) {
|
|
12521
12611
|
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
12522
12612
|
}
|
|
12613
|
+
function adapterExceptionMessage(error) {
|
|
12614
|
+
return error instanceof Error ? error.message : String(error);
|
|
12615
|
+
}
|
|
12616
|
+
function publishedCacheLifetime(plan, payload) {
|
|
12617
|
+
if (plan.endpoint !== "getContentByPath" || pageReadDependencies(payload) !== "availability") return {
|
|
12618
|
+
freshTtlSec: plan.freshTtlSec,
|
|
12619
|
+
staleTtlSec: plan.staleTtlSec
|
|
12620
|
+
};
|
|
12621
|
+
const ttl = buildPageReadCachePolicy(plan.siteId ?? "", "availability").revalidate;
|
|
12622
|
+
return {
|
|
12623
|
+
freshTtlSec: ttl,
|
|
12624
|
+
staleTtlSec: ttl
|
|
12625
|
+
};
|
|
12626
|
+
}
|
|
12627
|
+
function reusableDurablePayload(plan, payload, freshness) {
|
|
12628
|
+
return plan.endpoint !== "getContentByPath" || pageReadDependencies(payload) !== "availability" || freshness === "fresh";
|
|
12629
|
+
}
|
|
12630
|
+
function memoryWritePolicy(pageRead, data, tags, cacheTTL) {
|
|
12631
|
+
if (!pageRead) return { tags };
|
|
12632
|
+
const dependency = pageReadDependencies(data);
|
|
12633
|
+
const policy = buildPageReadCachePolicy(pageRead.siteId, dependency);
|
|
12634
|
+
return {
|
|
12635
|
+
tags: policy.tags,
|
|
12636
|
+
...dependency === "availability" ? {
|
|
12637
|
+
ttl: Math.min(cacheTTL, policy.revalidate * 1e3),
|
|
12638
|
+
staleTtl: 0
|
|
12639
|
+
} : {}
|
|
12640
|
+
};
|
|
12641
|
+
}
|
|
12642
|
+
function isPageReadRefusal(pageRead, error) {
|
|
12643
|
+
return Boolean(pageRead) && error instanceof RiverbankApiError && error.status === 404;
|
|
12644
|
+
}
|
|
12523
12645
|
function getRuntimePayloadSiteId(value) {
|
|
12524
12646
|
const site = toRecord(value).site;
|
|
12525
12647
|
if (!site || typeof site !== "object" || Array.isArray(site)) return null;
|
|
@@ -12637,6 +12759,7 @@ function getNetworkErrorCode(error) {
|
|
|
12637
12759
|
* - AbortError (let propagate raw for consumer detection)
|
|
12638
12760
|
*/
|
|
12639
12761
|
function convertToTypedError(error) {
|
|
12762
|
+
rethrowClientFrameworkSignal(error);
|
|
12640
12763
|
if (isAbortError(error)) throw error;
|
|
12641
12764
|
if (error instanceof ApiEnvelopeError) throw new RiverbankApiError({
|
|
12642
12765
|
code: error.code,
|
|
@@ -12644,7 +12767,8 @@ function convertToTypedError(error) {
|
|
|
12644
12767
|
requestId: error.requestId,
|
|
12645
12768
|
timestamp: error.timestamp,
|
|
12646
12769
|
status: error.status,
|
|
12647
|
-
fieldErrors: error.fieldErrors
|
|
12770
|
+
fieldErrors: error.fieldErrors,
|
|
12771
|
+
tag: error.tag
|
|
12648
12772
|
});
|
|
12649
12773
|
if (error instanceof ApiRequestError && error.body && typeof error.body === "object") {
|
|
12650
12774
|
const body = error.body;
|
|
@@ -12693,6 +12817,15 @@ function resolveAuth(config) {
|
|
|
12693
12817
|
};
|
|
12694
12818
|
throw new Error("Authentication configuration is required. Provide either `auth` (recommended) or `apiKey` (deprecated). For public endpoints without auth, use: { auth: { type: \"none\" } }");
|
|
12695
12819
|
}
|
|
12820
|
+
/** The framework adapter is fixed at construction: `@riverbankcms/sdk/next` supplies Next's. */
|
|
12821
|
+
function createRuntimeApiClient(deps, config, authConfig) {
|
|
12822
|
+
const frameworkCache = config.frameworkCache;
|
|
12823
|
+
const requestOptions = frameworkCache ? {
|
|
12824
|
+
...sdkRequestOptions,
|
|
12825
|
+
frameworkCache
|
|
12826
|
+
} : sdkRequestOptions;
|
|
12827
|
+
return withDefaultHeaders(authConfig.type === "none" ? deps.createInternalAPIClient(config.baseUrl, requestOptions) : deps.createBearerAPIClient(authConfig.type === "api-key" ? authConfig.key : authConfig.token, config.baseUrl, requestOptions), config.defaultHeaders);
|
|
12828
|
+
}
|
|
12696
12829
|
const defaultRiverbankClientDeps = {
|
|
12697
12830
|
createBearerAPIClient: createRuntimeBearerAPIClient,
|
|
12698
12831
|
createInternalAPIClient: createRuntimeInternalAPIClient
|
|
@@ -12711,8 +12844,8 @@ const defaultRiverbankClientDeps = {
|
|
|
12711
12844
|
* ```
|
|
12712
12845
|
*/
|
|
12713
12846
|
/**
|
|
12714
|
-
*
|
|
12715
|
-
*
|
|
12847
|
+
* Next's tagged cache owns normal reads; SDK memory remains an outage fallback by default.
|
|
12848
|
+
* Explicitly enabled admitted-page memory hits also register their returned framework policy.
|
|
12716
12849
|
*/
|
|
12717
12850
|
function isRunningInNextServer() {
|
|
12718
12851
|
return typeof window === "undefined" && typeof process !== "undefined" && Boolean(process.env.NEXT_RUNTIME);
|
|
@@ -12724,6 +12857,13 @@ function resolveMemoryCachePolicy(config) {
|
|
|
12724
12857
|
servesFreshMemoryHits: enabled ?? !isRunningInNextServer()
|
|
12725
12858
|
};
|
|
12726
12859
|
}
|
|
12860
|
+
/** The server marks a page built with parts missing (`x-riverbank-page-storage: no-store`); no SDK cache may keep it. */
|
|
12861
|
+
function readLive(response) {
|
|
12862
|
+
return {
|
|
12863
|
+
data: unwrapResponse(response),
|
|
12864
|
+
storable: !(response.success && response.meta?.storage === "no-store")
|
|
12865
|
+
};
|
|
12866
|
+
}
|
|
12727
12867
|
function createRiverbankClient(config) {
|
|
12728
12868
|
return createRiverbankClientWithDeps(defaultRiverbankClientDeps, config);
|
|
12729
12869
|
}
|
|
@@ -12762,7 +12902,8 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12762
12902
|
keyType = "preview";
|
|
12763
12903
|
break;
|
|
12764
12904
|
}
|
|
12765
|
-
const
|
|
12905
|
+
const frameworkCache = config.frameworkCache;
|
|
12906
|
+
const apiClient = createRuntimeApiClient(deps, config, authConfig);
|
|
12766
12907
|
const cache = new SimpleCache({
|
|
12767
12908
|
maxSize: cacheMaxSize,
|
|
12768
12909
|
ttl: cacheTTL,
|
|
@@ -12813,7 +12954,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12813
12954
|
const result = await reader({
|
|
12814
12955
|
cacheKey: plan.cacheKey,
|
|
12815
12956
|
endpoint: plan.endpoint,
|
|
12816
|
-
payloadSchemaVersion:
|
|
12957
|
+
payloadSchemaVersion: 5
|
|
12817
12958
|
});
|
|
12818
12959
|
if (result.kind === "miss") return {
|
|
12819
12960
|
kind: "miss",
|
|
@@ -12829,6 +12970,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12829
12970
|
error: result.error
|
|
12830
12971
|
}
|
|
12831
12972
|
};
|
|
12973
|
+
if (!reusableDurablePayload(plan, result.payload, result.freshness)) return null;
|
|
12832
12974
|
return {
|
|
12833
12975
|
kind: "hit",
|
|
12834
12976
|
result: emitStatus(result.freshness === "fresh" ? "cache" : "stale", result.payload, statusDetails({
|
|
@@ -12844,7 +12986,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12844
12986
|
outcome: "error",
|
|
12845
12987
|
error: {
|
|
12846
12988
|
kind: "adapter_exception",
|
|
12847
|
-
message:
|
|
12989
|
+
message: adapterExceptionMessage(error)
|
|
12848
12990
|
}
|
|
12849
12991
|
}
|
|
12850
12992
|
};
|
|
@@ -12860,13 +13002,21 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12860
13002
|
normalizedParams: plan.normalizedParams,
|
|
12861
13003
|
payload,
|
|
12862
13004
|
siteId: plan.siteId ?? getRuntimePayloadSiteId(payload),
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
payloadSchemaVersion: 4,
|
|
13005
|
+
...publishedCacheLifetime(plan, payload),
|
|
13006
|
+
payloadSchemaVersion: 5,
|
|
12866
13007
|
writeReason: "live_success"
|
|
12867
13008
|
});
|
|
12868
13009
|
} catch {}
|
|
12869
13010
|
}
|
|
13011
|
+
function tryPrebuildFallback(input) {
|
|
13012
|
+
const prebuild = input.allowed && !input.preview && input.fallback ? input.fallback() : null;
|
|
13013
|
+
return prebuild ? emitStatus("prebuild", prebuild.data, input.statusDetails({
|
|
13014
|
+
prebuildAgeSec: prebuild.prebuildAgeSec,
|
|
13015
|
+
cacheTier: "prebuild",
|
|
13016
|
+
durableCache: input.durableCache,
|
|
13017
|
+
error: input.error
|
|
13018
|
+
})) : null;
|
|
13019
|
+
}
|
|
12870
13020
|
async function resilientFetch(cacheKey, fetcher, options) {
|
|
12871
13021
|
const requestId = generateRequestId();
|
|
12872
13022
|
const startTime = Date.now();
|
|
@@ -12901,18 +13051,18 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12901
13051
|
}) : null;
|
|
12902
13052
|
const durableCache = durableFallback?.kind === "miss" || durableFallback?.kind === "error" ? durableFallback.diagnostic : void 0;
|
|
12903
13053
|
if (durableFallback?.kind === "hit") return durableFallback.result;
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
13054
|
+
const prebuild = tryPrebuildFallback({
|
|
13055
|
+
allowed: allowFallbacks,
|
|
13056
|
+
preview: isPreview,
|
|
13057
|
+
fallback: options.prebuildFallback,
|
|
13058
|
+
statusDetails,
|
|
13059
|
+
durableCache,
|
|
13060
|
+
error: {
|
|
13061
|
+
code: "circuit_open",
|
|
13062
|
+
message: "Circuit breaker is open"
|
|
13063
|
+
}
|
|
13064
|
+
});
|
|
13065
|
+
if (prebuild) return prebuild;
|
|
12916
13066
|
const circuitState = circuitBreaker.getState();
|
|
12917
13067
|
emitStatus("error", null, statusDetails({
|
|
12918
13068
|
durableCache,
|
|
@@ -12923,31 +13073,38 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12923
13073
|
}));
|
|
12924
13074
|
throw new CircuitOpenError(circuitState);
|
|
12925
13075
|
}
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
if (
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
return unwrapResponse(await fetcher(combinedSignal));
|
|
12934
|
-
} catch (error) {
|
|
12935
|
-
convertToTypedError(error);
|
|
12936
|
-
}
|
|
12937
|
-
}, {
|
|
12938
|
-
...retryConfig,
|
|
12939
|
-
requestTimeoutMs
|
|
12940
|
-
});
|
|
12941
|
-
circuitBreaker.recordSuccess();
|
|
12942
|
-
} else try {
|
|
12943
|
-
data = unwrapResponse(await fetcher(options.signal ?? new AbortController().signal));
|
|
13076
|
+
const storeLive = async (data) => {
|
|
13077
|
+
if (shouldWrite(cacheEnabled, options.force)) cache.set(cacheKey, data, memoryWritePolicy(options.pageRead, data, options.cacheTags, cacheTTL));
|
|
13078
|
+
if (allowFallbacks && !isPreview) await writePublishedRuntimeCache(options.publishedRuntimeCache, data);
|
|
13079
|
+
};
|
|
13080
|
+
const fetchLive = async () => {
|
|
13081
|
+
if (!resilienceEnabled) try {
|
|
13082
|
+
return readLive(await fetcher(options.signal ?? new AbortController().signal));
|
|
12944
13083
|
} catch (error) {
|
|
12945
13084
|
convertToTypedError(error);
|
|
12946
13085
|
}
|
|
12947
|
-
if (
|
|
12948
|
-
|
|
13086
|
+
if (circuitBreaker.getState().state === "half-open") circuitBreaker.incrementHalfOpenRequests();
|
|
13087
|
+
const live = await fetchWithTimeoutAndRetry(async (timeoutSignal) => {
|
|
13088
|
+
const combinedSignal = options.signal ? combineAbortSignals(timeoutSignal, options.signal) : timeoutSignal;
|
|
13089
|
+
try {
|
|
13090
|
+
return readLive(await fetcher(combinedSignal));
|
|
13091
|
+
} catch (error) {
|
|
13092
|
+
convertToTypedError(error);
|
|
13093
|
+
}
|
|
13094
|
+
}, {
|
|
13095
|
+
...retryConfig,
|
|
13096
|
+
requestTimeoutMs
|
|
13097
|
+
});
|
|
13098
|
+
circuitBreaker.recordSuccess();
|
|
13099
|
+
return live;
|
|
13100
|
+
};
|
|
13101
|
+
try {
|
|
13102
|
+
const { data, storable } = await fetchLive();
|
|
13103
|
+
if (storable) await storeLive(data);
|
|
12949
13104
|
return emitStatus("live", data, statusDetails());
|
|
12950
13105
|
} catch (error) {
|
|
13106
|
+
rethrowClientFrameworkSignal(error);
|
|
13107
|
+
if (isPageReadRefusal(options.pageRead, error)) throw attachResilienceStatusToError(error, emitStatus("error", null, statusDetails({ error: getRiverbankErrorInfo(error) })).resilience);
|
|
12951
13108
|
if (resilienceEnabled && error instanceof Error) circuitBreaker.recordFailure(error);
|
|
12952
13109
|
if (allowFallbacks && !isPreview && staleIfError && cacheEnabled) {
|
|
12953
13110
|
const stale = cache.getStale(cacheKey);
|
|
@@ -12964,15 +13121,15 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12964
13121
|
const durableFallback = allowFallbacks && !isPreview ? await tryPublishedRuntimeCacheFallback(options.publishedRuntimeCache, statusDetails, errorInfo) : null;
|
|
12965
13122
|
const durableCache = durableFallback?.kind === "miss" || durableFallback?.kind === "error" ? durableFallback.diagnostic : void 0;
|
|
12966
13123
|
if (durableFallback?.kind === "hit") return durableFallback.result;
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
13124
|
+
const prebuild = tryPrebuildFallback({
|
|
13125
|
+
allowed: allowFallbacks,
|
|
13126
|
+
preview: isPreview,
|
|
13127
|
+
fallback: options.prebuildFallback,
|
|
13128
|
+
statusDetails,
|
|
13129
|
+
durableCache,
|
|
13130
|
+
error: errorInfo
|
|
13131
|
+
});
|
|
13132
|
+
if (prebuild) return prebuild;
|
|
12976
13133
|
throw attachResilienceStatusToError(error, emitStatus("error", null, statusDetails({
|
|
12977
13134
|
error: errorInfo,
|
|
12978
13135
|
durableCache
|
|
@@ -12985,7 +13142,8 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12985
13142
|
const contentReads = createContentReadOperations({
|
|
12986
13143
|
apiClient,
|
|
12987
13144
|
resilientFetch,
|
|
12988
|
-
prebuildLoader
|
|
13145
|
+
prebuildLoader,
|
|
13146
|
+
frameworkCache
|
|
12989
13147
|
});
|
|
12990
13148
|
const eventReads = createPublicEventReadOperations({
|
|
12991
13149
|
apiClient,
|
|
@@ -13374,6 +13532,9 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
13374
13532
|
},
|
|
13375
13533
|
getBaseUrl() {
|
|
13376
13534
|
return config.baseUrl;
|
|
13535
|
+
},
|
|
13536
|
+
hasFrameworkCache() {
|
|
13537
|
+
return frameworkCache !== void 0;
|
|
13377
13538
|
}
|
|
13378
13539
|
};
|
|
13379
13540
|
}
|