@riverbankcms/sdk 0.179.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -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 +84 -53
- 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 +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +51 -15
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +306 -196
- package/dist/client/constants-CoOkvw__.mjs +100 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
- package/dist/client/portal/client.mjs +11779 -6745
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +292 -170
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +170 -104
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +10 -9
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
- package/dist/server/theme-bridge.mjs +3 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +3446 -3796
- package/package.json +2 -1
- package/dist/_dts/index-DVSipdrT.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-CTEN7gxW.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
package/dist/client/client.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { A as materializeEntriesMedia, C as siteBlockRenderContext,
|
|
4
|
-
import { Jn as publicMapLocationParamsSchema } from "./registry.server-
|
|
2
|
+
import { hc as parseSiteId } from "./wizardSteps-BliJOzEX.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-C7mygH_f.mjs";
|
|
4
|
+
import { Jn as publicMapLocationParamsSchema } from "./registry.server-CDNNd8wC.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-Ds9cmBUf.mjs";
|
|
7
7
|
import { useEffect, useState } from "react";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
/**
|
|
@@ -1377,6 +1377,17 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1377
1377
|
"server:internal_error"
|
|
1378
1378
|
]
|
|
1379
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
|
+
},
|
|
1380
1391
|
updateTeamMemberProfilePolicy: {
|
|
1381
1392
|
path: "/sites/{siteId}/bookings/resources/profile-policy",
|
|
1382
1393
|
method: "PUT",
|
|
@@ -1561,7 +1572,11 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1561
1572
|
method: "DELETE",
|
|
1562
1573
|
auth: "user",
|
|
1563
1574
|
responseKind: "json",
|
|
1564
|
-
errors: [
|
|
1575
|
+
errors: [
|
|
1576
|
+
"resource:not_found",
|
|
1577
|
+
"resource:conflict",
|
|
1578
|
+
"server:internal_error"
|
|
1579
|
+
]
|
|
1565
1580
|
},
|
|
1566
1581
|
getAppointmentSetup: {
|
|
1567
1582
|
path: "/sites/{siteId}/bookings/appointment-setup",
|
|
@@ -7127,7 +7142,7 @@ const API_ENDPOINTS$1 = {
|
|
|
7127
7142
|
],
|
|
7128
7143
|
auth: "public",
|
|
7129
7144
|
responseKind: "json",
|
|
7130
|
-
errors: ["
|
|
7145
|
+
errors: ["server:internal_error"]
|
|
7131
7146
|
},
|
|
7132
7147
|
resolveRouteDecision: {
|
|
7133
7148
|
path: "/sites/{siteId}/route-decision",
|
|
@@ -7139,7 +7154,7 @@ const API_ENDPOINTS$1 = {
|
|
|
7139
7154
|
],
|
|
7140
7155
|
auth: "public",
|
|
7141
7156
|
responseKind: "json",
|
|
7142
|
-
errors: ["
|
|
7157
|
+
errors: ["server:internal_error"]
|
|
7143
7158
|
},
|
|
7144
7159
|
getPageByPath: {
|
|
7145
7160
|
path: "/sites/{siteId}/pages",
|
|
@@ -7690,7 +7705,7 @@ const API_ENDPOINTS$1 = {
|
|
|
7690
7705
|
tags: ["backup"],
|
|
7691
7706
|
auth: "user",
|
|
7692
7707
|
responseKind: "json",
|
|
7693
|
-
errors: ["
|
|
7708
|
+
errors: ["server:internal_error"]
|
|
7694
7709
|
},
|
|
7695
7710
|
deleteBackupUpload: {
|
|
7696
7711
|
path: "/backup/upload",
|
|
@@ -7818,6 +7833,38 @@ const API_ENDPOINTS$1 = {
|
|
|
7818
7833
|
"server:internal_error"
|
|
7819
7834
|
]
|
|
7820
7835
|
},
|
|
7836
|
+
getEventRoomsRoster: {
|
|
7837
|
+
errors: [],
|
|
7838
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms",
|
|
7839
|
+
method: "GET",
|
|
7840
|
+
tags: ["site-{siteId}", "event-series-{seriesId}"],
|
|
7841
|
+
auth: "user",
|
|
7842
|
+
responseKind: "json"
|
|
7843
|
+
},
|
|
7844
|
+
getChangeEventRoomOptions: {
|
|
7845
|
+
errors: [],
|
|
7846
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms/change/options",
|
|
7847
|
+
method: "GET",
|
|
7848
|
+
tags: [
|
|
7849
|
+
"site-{siteId}",
|
|
7850
|
+
"event-series-{seriesId}",
|
|
7851
|
+
"bookings"
|
|
7852
|
+
],
|
|
7853
|
+
auth: "user",
|
|
7854
|
+
responseKind: "json"
|
|
7855
|
+
},
|
|
7856
|
+
changeEventRoom: {
|
|
7857
|
+
errors: [],
|
|
7858
|
+
path: "/sites/{siteId}/bookings/event-series/{seriesId}/rooms/change",
|
|
7859
|
+
method: "POST",
|
|
7860
|
+
tags: [
|
|
7861
|
+
"site-{siteId}",
|
|
7862
|
+
"event-series-{seriesId}",
|
|
7863
|
+
"bookings"
|
|
7864
|
+
],
|
|
7865
|
+
auth: "user",
|
|
7866
|
+
responseKind: "json"
|
|
7867
|
+
},
|
|
7821
7868
|
listEventSeriesAttendees: {
|
|
7822
7869
|
path: "/sites/{siteId}/bookings/event-series/{seriesId}/attendees",
|
|
7823
7870
|
method: "GET",
|
|
@@ -8294,7 +8341,7 @@ const API_ENDPOINTS$1 = {
|
|
|
8294
8341
|
auth: "user",
|
|
8295
8342
|
responseKind: "json",
|
|
8296
8343
|
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
8297
|
-
errors: ["
|
|
8344
|
+
errors: ["server:internal_error"]
|
|
8298
8345
|
},
|
|
8299
8346
|
getBookingPass: {
|
|
8300
8347
|
path: "/sites/{siteId}/bookings/passes/{passId}",
|
|
@@ -8372,7 +8419,7 @@ const API_ENDPOINTS$1 = {
|
|
|
8372
8419
|
auth: "user",
|
|
8373
8420
|
responseKind: "json",
|
|
8374
8421
|
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
8375
|
-
errors: ["
|
|
8422
|
+
errors: ["server:internal_error"]
|
|
8376
8423
|
},
|
|
8377
8424
|
getBookingMembership: {
|
|
8378
8425
|
path: "/sites/{siteId}/bookings/memberships/{membershipId}",
|
|
@@ -9622,18 +9669,23 @@ const API_ENDPOINTS$1 = {
|
|
|
9622
9669
|
auth: "public",
|
|
9623
9670
|
responseKind: "json"
|
|
9624
9671
|
},
|
|
9625
|
-
|
|
9626
|
-
path: "/portal/
|
|
9672
|
+
portalGetDetails: {
|
|
9673
|
+
path: "/portal/details",
|
|
9627
9674
|
method: "GET",
|
|
9628
9675
|
auth: "public",
|
|
9629
|
-
responseKind: "json"
|
|
9676
|
+
responseKind: "json",
|
|
9677
|
+
errors: ["server:internal_error"]
|
|
9630
9678
|
},
|
|
9631
|
-
|
|
9632
|
-
path: "/portal/
|
|
9633
|
-
method: "
|
|
9634
|
-
errors: [],
|
|
9679
|
+
portalUpdateNewsletter: {
|
|
9680
|
+
path: "/portal/details/newsletter",
|
|
9681
|
+
method: "PATCH",
|
|
9635
9682
|
auth: "public",
|
|
9636
|
-
responseKind: "json"
|
|
9683
|
+
responseKind: "json",
|
|
9684
|
+
errors: [
|
|
9685
|
+
"validation:invalid_input",
|
|
9686
|
+
"resource:conflict",
|
|
9687
|
+
"server:internal_error"
|
|
9688
|
+
]
|
|
9637
9689
|
},
|
|
9638
9690
|
portalCreateOrderCheckout: {
|
|
9639
9691
|
path: "/portal/orders/{orderId}/checkout",
|
|
@@ -9674,42 +9726,74 @@ const API_ENDPOINTS$1 = {
|
|
|
9674
9726
|
auth: "public",
|
|
9675
9727
|
responseKind: "json"
|
|
9676
9728
|
},
|
|
9677
|
-
|
|
9678
|
-
path: "/portal/
|
|
9729
|
+
portalGetEventTicket: {
|
|
9730
|
+
path: "/portal/events/{registrationId}/ticket",
|
|
9679
9731
|
method: "GET",
|
|
9680
9732
|
auth: "public",
|
|
9681
9733
|
responseKind: "json"
|
|
9682
9734
|
},
|
|
9683
|
-
|
|
9684
|
-
path: "/portal/
|
|
9735
|
+
portalGetRegularSessions: {
|
|
9736
|
+
path: "/portal/appointments/regular-sessions",
|
|
9685
9737
|
method: "GET",
|
|
9686
9738
|
auth: "public",
|
|
9687
|
-
responseKind: "json"
|
|
9739
|
+
responseKind: "json",
|
|
9740
|
+
errors: ["server:internal_error"]
|
|
9688
9741
|
},
|
|
9689
|
-
|
|
9690
|
-
path: "/portal/
|
|
9742
|
+
portalGetBookings: {
|
|
9743
|
+
path: "/portal/bookings",
|
|
9691
9744
|
method: "GET",
|
|
9692
9745
|
auth: "public",
|
|
9693
|
-
responseKind: "json"
|
|
9746
|
+
responseKind: "json",
|
|
9747
|
+
errors: ["server:internal_error"]
|
|
9694
9748
|
},
|
|
9695
|
-
|
|
9696
|
-
path: "/portal/
|
|
9749
|
+
portalGetHome: {
|
|
9750
|
+
path: "/portal/home",
|
|
9697
9751
|
method: "GET",
|
|
9698
9752
|
auth: "public",
|
|
9699
|
-
responseKind: "json"
|
|
9753
|
+
responseKind: "json",
|
|
9754
|
+
errors: ["server:internal_error"]
|
|
9700
9755
|
},
|
|
9701
|
-
|
|
9702
|
-
path: "/portal/
|
|
9756
|
+
portalGetOccurrenceBookings: {
|
|
9757
|
+
path: "/portal/occurrences/{occurrenceId}/bookings",
|
|
9703
9758
|
method: "GET",
|
|
9704
9759
|
auth: "public",
|
|
9705
9760
|
responseKind: "json",
|
|
9706
9761
|
errors: ["server:internal_error"]
|
|
9707
9762
|
},
|
|
9708
|
-
|
|
9709
|
-
path: "/portal/
|
|
9763
|
+
portalGetHoldings: {
|
|
9764
|
+
path: "/portal/holdings",
|
|
9710
9765
|
method: "GET",
|
|
9711
9766
|
auth: "public",
|
|
9712
|
-
responseKind: "json"
|
|
9767
|
+
responseKind: "json",
|
|
9768
|
+
errors: ["server:internal_error"]
|
|
9769
|
+
},
|
|
9770
|
+
portalGetPayments: {
|
|
9771
|
+
path: "/portal/payments",
|
|
9772
|
+
method: "GET",
|
|
9773
|
+
auth: "public",
|
|
9774
|
+
responseKind: "json",
|
|
9775
|
+
errors: ["server:internal_error"]
|
|
9776
|
+
},
|
|
9777
|
+
portalGetReceipt: {
|
|
9778
|
+
path: "/portal/payments/receipts/{receiptId}",
|
|
9779
|
+
method: "GET",
|
|
9780
|
+
auth: "public",
|
|
9781
|
+
responseKind: "json",
|
|
9782
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
9783
|
+
},
|
|
9784
|
+
portalGetOrder: {
|
|
9785
|
+
path: "/portal/orders/{orderId}",
|
|
9786
|
+
method: "GET",
|
|
9787
|
+
auth: "public",
|
|
9788
|
+
responseKind: "json",
|
|
9789
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
9790
|
+
},
|
|
9791
|
+
portalGetBooking: {
|
|
9792
|
+
path: "/portal/bookings/{kind}/{bookingId}",
|
|
9793
|
+
method: "GET",
|
|
9794
|
+
auth: "public",
|
|
9795
|
+
responseKind: "json",
|
|
9796
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
9713
9797
|
},
|
|
9714
9798
|
portalGetAppointmentBookingQuestions: {
|
|
9715
9799
|
path: "/portal/appointments/{appointmentId}/booking-questions",
|
|
@@ -9810,13 +9894,6 @@ const API_ENDPOINTS$1 = {
|
|
|
9810
9894
|
"server:internal_error"
|
|
9811
9895
|
]
|
|
9812
9896
|
},
|
|
9813
|
-
portalGetWholeSeriesRegistrations: {
|
|
9814
|
-
path: "/portal/dated-offerings/whole-series",
|
|
9815
|
-
method: "GET",
|
|
9816
|
-
auth: "public",
|
|
9817
|
-
responseKind: "json",
|
|
9818
|
-
errors: ["server:internal_error"]
|
|
9819
|
-
},
|
|
9820
9897
|
portalGetWholeSeriesBookingQuestions: {
|
|
9821
9898
|
path: "/portal/dated-offerings/whole-series/{registrationId}/booking-questions",
|
|
9822
9899
|
method: "GET",
|
|
@@ -10311,14 +10388,6 @@ function resolveApiBaseUrl() {
|
|
|
10311
10388
|
}
|
|
10312
10389
|
//#endregion
|
|
10313
10390
|
//#region ../api/src/pageReadResponseCache.ts
|
|
10314
|
-
var CacheProbeMiss = class extends Error {};
|
|
10315
|
-
/** Next has no response-dependent fetch TTL. Only the matching policy may store a page read. */
|
|
10316
|
-
var UncachedPageRead = class extends Error {
|
|
10317
|
-
constructor(snapshot) {
|
|
10318
|
-
super("Page read belongs to another cache policy");
|
|
10319
|
-
this.snapshot = snapshot;
|
|
10320
|
-
}
|
|
10321
|
-
};
|
|
10322
10391
|
function isRecord(value) {
|
|
10323
10392
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10324
10393
|
}
|
|
@@ -10333,130 +10402,156 @@ function envelopePage(body) {
|
|
|
10333
10402
|
const data = isRecord(body) && body.success === true && isRecord(body.data) ? body.data : null;
|
|
10334
10403
|
return data?.type === "content" && isRecord(data.content) ? data.content : data;
|
|
10335
10404
|
}
|
|
10336
|
-
function
|
|
10405
|
+
function parseBody(body) {
|
|
10337
10406
|
try {
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10407
|
+
return JSON.parse(body);
|
|
10408
|
+
} catch {
|
|
10409
|
+
return null;
|
|
10410
|
+
}
|
|
10411
|
+
}
|
|
10412
|
+
const header = (snapshot, name) => snapshot.headers.find(([key]) => key.toLowerCase() === name)?.[1];
|
|
10413
|
+
/** Only a complete, resolved page is stored. Anything else passes through and keeps the policy its failure names. */
|
|
10414
|
+
function admit(snapshot) {
|
|
10415
|
+
const page = envelopePage(parseBody(snapshot.body));
|
|
10416
|
+
if (snapshot.status === 200 && isResolvedPage(page)) {
|
|
10417
|
+
if (header(snapshot, "x-riverbank-page-storage") === "no-store") return {
|
|
10418
|
+
kind: "pass-through",
|
|
10419
|
+
dependencies: "availability"
|
|
10420
|
+
};
|
|
10421
|
+
return {
|
|
10422
|
+
kind: "store",
|
|
10341
10423
|
dependencies: page.dependencies
|
|
10342
10424
|
};
|
|
10343
|
-
}
|
|
10425
|
+
}
|
|
10344
10426
|
return {
|
|
10345
|
-
|
|
10346
|
-
dependencies: snapshot.status === 200 || snapshot
|
|
10427
|
+
kind: "pass-through",
|
|
10428
|
+
dependencies: snapshot.status === 200 || header(snapshot, "x-riverbank-page-dependencies") === "availability" ? "availability" : "content"
|
|
10347
10429
|
};
|
|
10348
10430
|
}
|
|
10349
|
-
/**
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10431
|
+
/**
|
|
10432
|
+
* One cache entry per request, judged by the policy it is looked up with. Content is looked up first, so a
|
|
10433
|
+
* plain page costs one lookup and never registers the availability policy. A page whose snapshot depends on
|
|
10434
|
+
* availability is looked up again under that policy, which checks its tags and 60-second budget. A snapshot
|
|
10435
|
+
* past its own budget is never served: the live read replaces it.
|
|
10436
|
+
*/
|
|
10437
|
+
function planPageRead(state, now, budgetSeconds) {
|
|
10438
|
+
const subject = state.live ?? state.cached;
|
|
10439
|
+
if (!subject) return {
|
|
10440
|
+
kind: "lookup",
|
|
10441
|
+
dependencies: "content"
|
|
10442
|
+
};
|
|
10443
|
+
const { dependencies } = admit(subject);
|
|
10444
|
+
if (!state.lookedUp.includes(dependencies)) return {
|
|
10445
|
+
kind: "lookup",
|
|
10446
|
+
dependencies
|
|
10363
10447
|
};
|
|
10448
|
+
if (state.live) return {
|
|
10449
|
+
kind: "serve",
|
|
10450
|
+
snapshot: state.live
|
|
10451
|
+
};
|
|
10452
|
+
return now - subject.cachedAt < budgetSeconds(dependencies) * 1e3 ? {
|
|
10453
|
+
kind: "serve",
|
|
10454
|
+
snapshot: subject
|
|
10455
|
+
} : { kind: "read-live" };
|
|
10364
10456
|
}
|
|
10365
|
-
/**
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10457
|
+
/**
|
|
10458
|
+
* `unstable_cache` stores whatever its callback returns, so a response that must not be kept leaves the
|
|
10459
|
+
* callback by this one exception, which `lookup` turns back into a value straight away.
|
|
10460
|
+
*/
|
|
10461
|
+
var PassThroughResponse = class extends Error {
|
|
10462
|
+
constructor(snapshot) {
|
|
10463
|
+
super("Page read must not be stored");
|
|
10464
|
+
this.snapshot = snapshot;
|
|
10465
|
+
}
|
|
10466
|
+
};
|
|
10467
|
+
async function lookup(input, dependencies) {
|
|
10468
|
+
const { tags } = buildPageReadCachePolicy(input.siteId, dependencies);
|
|
10469
|
+
const load = async () => {
|
|
10470
|
+
const snapshot = await input.live();
|
|
10471
|
+
if (admit(snapshot).kind === "pass-through") throw new PassThroughResponse(snapshot);
|
|
10373
10472
|
return snapshot;
|
|
10374
|
-
}
|
|
10375
|
-
"page-read-envelope-v2",
|
|
10376
|
-
input.key,
|
|
10377
|
-
input.dependency
|
|
10378
|
-
], probe ? {
|
|
10379
|
-
revalidate: false,
|
|
10380
|
-
tags: []
|
|
10381
|
-
} : {
|
|
10382
|
-
...policy,
|
|
10383
|
-
revalidate
|
|
10384
|
-
})();
|
|
10385
|
-
if (Date.now() - snapshot.cachedAt < revalidate * 1e3) return snapshot;
|
|
10386
|
-
return probe ? null : input.read();
|
|
10387
|
-
}
|
|
10388
|
-
async function probePolicy(input) {
|
|
10389
|
-
return readPolicy({
|
|
10390
|
-
...input,
|
|
10391
|
-
read: async () => {
|
|
10392
|
-
throw new CacheProbeMiss();
|
|
10393
|
-
}
|
|
10394
|
-
}, true).catch((error) => {
|
|
10395
|
-
if (error instanceof CacheProbeMiss) return null;
|
|
10396
|
-
throw error;
|
|
10397
|
-
});
|
|
10398
|
-
}
|
|
10399
|
-
/** Read in a framework cache scope, but never store an unclassified or failed response. */
|
|
10400
|
-
async function readInCacheScope(cache, key, read) {
|
|
10473
|
+
};
|
|
10401
10474
|
try {
|
|
10402
|
-
return
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10475
|
+
return {
|
|
10476
|
+
cached: await input.cache(load, ["page-read-envelope-v3", input.key], {
|
|
10477
|
+
revalidate: input.budgetSeconds(dependencies),
|
|
10478
|
+
tags
|
|
10479
|
+
})(),
|
|
10480
|
+
live: null
|
|
10481
|
+
};
|
|
10408
10482
|
} catch (error) {
|
|
10409
|
-
if (error instanceof
|
|
10483
|
+
if (error instanceof PassThroughResponse) return {
|
|
10484
|
+
cached: null,
|
|
10485
|
+
live: error.snapshot
|
|
10486
|
+
};
|
|
10410
10487
|
throw error;
|
|
10411
10488
|
}
|
|
10412
10489
|
}
|
|
10413
|
-
async function
|
|
10414
|
-
const
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
});
|
|
10421
|
-
if (candidate) try {
|
|
10422
|
-
const checked = await readPolicy({
|
|
10423
|
-
...input,
|
|
10424
|
-
dependency: admit(candidate).dependencies
|
|
10490
|
+
async function runPlan(input, state) {
|
|
10491
|
+
const step = planPageRead(state, Date.now(), input.budgetSeconds);
|
|
10492
|
+
switch (step.kind) {
|
|
10493
|
+
case "serve": return step.snapshot;
|
|
10494
|
+
case "read-live": return runPlan(input, {
|
|
10495
|
+
...state,
|
|
10496
|
+
live: await input.live()
|
|
10425
10497
|
});
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10498
|
+
case "lookup": {
|
|
10499
|
+
const found = await lookup(input, step.dependencies);
|
|
10500
|
+
return runPlan(input, {
|
|
10501
|
+
lookedUp: [...state.lookedUp, step.dependencies],
|
|
10502
|
+
cached: found.cached ?? state.cached,
|
|
10503
|
+
live: state.live ?? found.live
|
|
10504
|
+
});
|
|
10505
|
+
}
|
|
10430
10506
|
}
|
|
10431
|
-
return storeResponse(input, await readInCacheScope(input.cache, input.key, input.read));
|
|
10432
10507
|
}
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10508
|
+
/**
|
|
10509
|
+
* One transport read per page read, shared by a miss, a stale entry's refresh and the live fallback.
|
|
10510
|
+
* It starts only when one of them asks for it.
|
|
10511
|
+
*/
|
|
10512
|
+
function sharedRead(read) {
|
|
10513
|
+
const transport = { started: null };
|
|
10514
|
+
return () => transport.started ?? (transport.started = read().then(async (value) => ({
|
|
10515
|
+
body: await value.text(),
|
|
10516
|
+
status: value.status,
|
|
10517
|
+
headers: [...value.headers.entries()],
|
|
10518
|
+
cachedAt: Date.now()
|
|
10519
|
+
})));
|
|
10520
|
+
}
|
|
10521
|
+
/**
|
|
10522
|
+
* Next prints an `unstable_cache` key in plain text when a refresh fails ("revalidating cache with key: …"),
|
|
10523
|
+
* and the request identity carries the site's secret API key. Only its SHA-256 digest reaches the framework,
|
|
10524
|
+
* which keeps one entry per URL and credential without the credential itself.
|
|
10525
|
+
*/
|
|
10526
|
+
async function frameworkCacheKey(request) {
|
|
10527
|
+
const digest = await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(request));
|
|
10528
|
+
return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
10446
10529
|
}
|
|
10447
10530
|
async function cachePageReadResponse(input) {
|
|
10448
|
-
if (!input.cache) return input.read();
|
|
10449
|
-
const
|
|
10450
|
-
|
|
10531
|
+
if (!input.cache || input.maxAge !== void 0 && input.maxAge <= 0) return input.read();
|
|
10532
|
+
const maxAge = input.maxAge;
|
|
10533
|
+
const budgetSeconds = (dependencies) => {
|
|
10534
|
+
const policy = buildPageReadCachePolicy(input.siteId, dependencies).revalidate;
|
|
10535
|
+
return maxAge === void 0 ? policy : Math.min(policy, maxAge);
|
|
10536
|
+
};
|
|
10537
|
+
const key = await frameworkCacheKey(input.key);
|
|
10538
|
+
const result = await runPlan({
|
|
10451
10539
|
cache: input.cache,
|
|
10452
|
-
|
|
10540
|
+
key,
|
|
10541
|
+
siteId: input.siteId,
|
|
10542
|
+
live: sharedRead(input.read),
|
|
10543
|
+
budgetSeconds
|
|
10544
|
+
}, {
|
|
10545
|
+
lookedUp: [],
|
|
10546
|
+
cached: null,
|
|
10547
|
+
live: null
|
|
10453
10548
|
});
|
|
10454
10549
|
return new Response(result.body, {
|
|
10455
10550
|
status: result.status,
|
|
10456
10551
|
headers: result.headers
|
|
10457
10552
|
});
|
|
10458
10553
|
}
|
|
10459
|
-
/** Result adapters use this
|
|
10554
|
+
/** Result adapters use this when the SDK served a page without the HTTP transport (memory, durable or prebuild fallback). */
|
|
10460
10555
|
async function observePageReadPolicy(cache, siteId, payload) {
|
|
10461
10556
|
if (!cache) return;
|
|
10462
10557
|
const dependency = pageReadDependencies(payload);
|
|
@@ -10706,7 +10801,14 @@ async function parseJsonSuccess(endpoint, response, config, decoder) {
|
|
|
10706
10801
|
if (!raw.trim()) return buildSuccessEnvelope(coerceResponse(void 0), requestId);
|
|
10707
10802
|
const parsed = decodeSuccessJson(raw, endpoint, response, config, decoder);
|
|
10708
10803
|
requireUsableCommitProjection(response, parsed);
|
|
10709
|
-
|
|
10804
|
+
const envelope = successJsonEnvelope(parsed, requestId);
|
|
10805
|
+
return envelope.success && response.headers.get("x-riverbank-page-storage") === "no-store" ? {
|
|
10806
|
+
...envelope,
|
|
10807
|
+
meta: {
|
|
10808
|
+
...envelope.meta,
|
|
10809
|
+
storage: "no-store"
|
|
10810
|
+
}
|
|
10811
|
+
} : envelope;
|
|
10710
10812
|
}
|
|
10711
10813
|
function decodeSuccessJson(raw, endpoint, response, config, decoder) {
|
|
10712
10814
|
try {
|
|
@@ -11372,7 +11474,7 @@ function isEntryResponse(response) {
|
|
|
11372
11474
|
//#endregion
|
|
11373
11475
|
//#region ../site-renderer/src/runtimeClient.ts
|
|
11374
11476
|
/** Only a client that reconstructs surfaces advertises revision transport. */
|
|
11375
|
-
function createRuntimeApiClient(transport) {
|
|
11477
|
+
function createRuntimeApiClient$1(transport) {
|
|
11376
11478
|
const revisionTransport = (request) => transport({
|
|
11377
11479
|
...request,
|
|
11378
11480
|
...request.endpoint === "getContentByPath" ? { params: {
|
|
@@ -11386,10 +11488,10 @@ function createRuntimeApiClient(transport) {
|
|
|
11386
11488
|
});
|
|
11387
11489
|
}
|
|
11388
11490
|
function createRuntimeInternalAPIClient(baseUrl, options) {
|
|
11389
|
-
return createRuntimeApiClient(createApiResponseTransport(() => ({}), baseUrl, options));
|
|
11491
|
+
return createRuntimeApiClient$1(createApiResponseTransport(() => ({}), baseUrl, options));
|
|
11390
11492
|
}
|
|
11391
11493
|
function createRuntimeBearerAPIClient(token, baseUrl, options) {
|
|
11392
|
-
return createRuntimeApiClient(createApiResponseTransport(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl, options));
|
|
11494
|
+
return createRuntimeApiClient$1(createApiResponseTransport(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl, options));
|
|
11393
11495
|
}
|
|
11394
11496
|
//#endregion
|
|
11395
11497
|
//#region src/client/entryListReadRequest.ts
|
|
@@ -11546,7 +11648,7 @@ var SimpleCache = class {
|
|
|
11546
11648
|
//#endregion
|
|
11547
11649
|
//#region src/request-options.ts
|
|
11548
11650
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
11549
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
11651
|
+
const sdkRequestOptions = { sdkVersion: "0.181.0" };
|
|
11550
11652
|
//#endregion
|
|
11551
11653
|
//#region src/public-api/runtime.ts
|
|
11552
11654
|
const PUBLIC_ENDPOINT_NAMES = [
|
|
@@ -12097,7 +12199,7 @@ async function readPageWithResilience(input, params) {
|
|
|
12097
12199
|
cacheTags: buildSiteReadTags({ siteId }),
|
|
12098
12200
|
prebuildFallback: void 0
|
|
12099
12201
|
});
|
|
12100
|
-
if (!preview) await observePageReadResponse(input.frameworkCache, siteId, result.data);
|
|
12202
|
+
if (!preview && result.resilience.source !== "live") await observePageReadResponse(input.frameworkCache, siteId, result.data);
|
|
12101
12203
|
return result;
|
|
12102
12204
|
}
|
|
12103
12205
|
function createContentReadOperations(input) {
|
|
@@ -12447,6 +12549,7 @@ function isAbortError$1(error) {
|
|
|
12447
12549
|
*/
|
|
12448
12550
|
function shouldRetryError(error, customRetryOn) {
|
|
12449
12551
|
if (isAbortError$1(error)) return false;
|
|
12552
|
+
if (findFrameworkSignal(error) !== void 0) return false;
|
|
12450
12553
|
if (customRetryOn) return customRetryOn(error, error instanceof RiverbankApiError ? error.status : void 0);
|
|
12451
12554
|
return isTransientError(error);
|
|
12452
12555
|
}
|
|
@@ -12700,6 +12803,7 @@ function getNetworkErrorCode(error) {
|
|
|
12700
12803
|
* - AbortError (let propagate raw for consumer detection)
|
|
12701
12804
|
*/
|
|
12702
12805
|
function convertToTypedError(error) {
|
|
12806
|
+
rethrowClientFrameworkSignal(error);
|
|
12703
12807
|
if (isAbortError(error)) throw error;
|
|
12704
12808
|
if (error instanceof ApiEnvelopeError) throw new RiverbankApiError({
|
|
12705
12809
|
code: error.code,
|
|
@@ -12757,6 +12861,15 @@ function resolveAuth(config) {
|
|
|
12757
12861
|
};
|
|
12758
12862
|
throw new Error("Authentication configuration is required. Provide either `auth` (recommended) or `apiKey` (deprecated). For public endpoints without auth, use: { auth: { type: \"none\" } }");
|
|
12759
12863
|
}
|
|
12864
|
+
/** The framework adapter is fixed at construction: `@riverbankcms/sdk/next` supplies Next's. */
|
|
12865
|
+
function createRuntimeApiClient(deps, config, authConfig) {
|
|
12866
|
+
const frameworkCache = config.frameworkCache;
|
|
12867
|
+
const requestOptions = frameworkCache ? {
|
|
12868
|
+
...sdkRequestOptions,
|
|
12869
|
+
frameworkCache
|
|
12870
|
+
} : sdkRequestOptions;
|
|
12871
|
+
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);
|
|
12872
|
+
}
|
|
12760
12873
|
const defaultRiverbankClientDeps = {
|
|
12761
12874
|
createBearerAPIClient: createRuntimeBearerAPIClient,
|
|
12762
12875
|
createInternalAPIClient: createRuntimeInternalAPIClient
|
|
@@ -12788,7 +12901,13 @@ function resolveMemoryCachePolicy(config) {
|
|
|
12788
12901
|
servesFreshMemoryHits: enabled ?? !isRunningInNextServer()
|
|
12789
12902
|
};
|
|
12790
12903
|
}
|
|
12791
|
-
|
|
12904
|
+
/** The server marks a page built with parts missing (`x-riverbank-page-storage: no-store`); no SDK cache may keep it. */
|
|
12905
|
+
function readLive(response) {
|
|
12906
|
+
return {
|
|
12907
|
+
data: unwrapResponse(response),
|
|
12908
|
+
storable: !(response.success && response.meta?.storage === "no-store")
|
|
12909
|
+
};
|
|
12910
|
+
}
|
|
12792
12911
|
function createRiverbankClient(config) {
|
|
12793
12912
|
return createRiverbankClientWithDeps(defaultRiverbankClientDeps, config);
|
|
12794
12913
|
}
|
|
@@ -12827,18 +12946,8 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12827
12946
|
keyType = "preview";
|
|
12828
12947
|
break;
|
|
12829
12948
|
}
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
...sdkRequestOptions,
|
|
12833
|
-
frameworkCache
|
|
12834
|
-
} : sdkRequestOptions;
|
|
12835
|
-
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);
|
|
12836
|
-
}
|
|
12837
|
-
const framework = {
|
|
12838
|
-
adapter: config.frameworkCache,
|
|
12839
|
-
apiClient: createApiClient(config.frameworkCache)
|
|
12840
|
-
};
|
|
12841
|
-
const apiClient = (params) => framework.apiClient(params);
|
|
12949
|
+
const frameworkCache = config.frameworkCache;
|
|
12950
|
+
const apiClient = createRuntimeApiClient(deps, config, authConfig);
|
|
12842
12951
|
const cache = new SimpleCache({
|
|
12843
12952
|
maxSize: cacheMaxSize,
|
|
12844
12953
|
ttl: cacheTTL,
|
|
@@ -13008,31 +13117,37 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
13008
13117
|
}));
|
|
13009
13118
|
throw new CircuitOpenError(circuitState);
|
|
13010
13119
|
}
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
if (
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
return unwrapResponse(await fetcher(combinedSignal));
|
|
13019
|
-
} catch (error) {
|
|
13020
|
-
convertToTypedError(error);
|
|
13021
|
-
}
|
|
13022
|
-
}, {
|
|
13023
|
-
...retryConfig,
|
|
13024
|
-
requestTimeoutMs
|
|
13025
|
-
});
|
|
13026
|
-
circuitBreaker.recordSuccess();
|
|
13027
|
-
} else try {
|
|
13028
|
-
data = unwrapResponse(await fetcher(options.signal ?? new AbortController().signal));
|
|
13120
|
+
const storeLive = async (data) => {
|
|
13121
|
+
if (shouldWrite(cacheEnabled, options.force)) cache.set(cacheKey, data, memoryWritePolicy(options.pageRead, data, options.cacheTags, cacheTTL));
|
|
13122
|
+
if (allowFallbacks && !isPreview) await writePublishedRuntimeCache(options.publishedRuntimeCache, data);
|
|
13123
|
+
};
|
|
13124
|
+
const fetchLive = async () => {
|
|
13125
|
+
if (!resilienceEnabled) try {
|
|
13126
|
+
return readLive(await fetcher(options.signal ?? new AbortController().signal));
|
|
13029
13127
|
} catch (error) {
|
|
13030
13128
|
convertToTypedError(error);
|
|
13031
13129
|
}
|
|
13032
|
-
if (
|
|
13033
|
-
|
|
13130
|
+
if (circuitBreaker.getState().state === "half-open") circuitBreaker.incrementHalfOpenRequests();
|
|
13131
|
+
const live = await fetchWithTimeoutAndRetry(async (timeoutSignal) => {
|
|
13132
|
+
const combinedSignal = options.signal ? combineAbortSignals(timeoutSignal, options.signal) : timeoutSignal;
|
|
13133
|
+
try {
|
|
13134
|
+
return readLive(await fetcher(combinedSignal));
|
|
13135
|
+
} catch (error) {
|
|
13136
|
+
convertToTypedError(error);
|
|
13137
|
+
}
|
|
13138
|
+
}, {
|
|
13139
|
+
...retryConfig,
|
|
13140
|
+
requestTimeoutMs
|
|
13141
|
+
});
|
|
13142
|
+
circuitBreaker.recordSuccess();
|
|
13143
|
+
return live;
|
|
13144
|
+
};
|
|
13145
|
+
try {
|
|
13146
|
+
const { data, storable } = await fetchLive();
|
|
13147
|
+
if (storable) await storeLive(data);
|
|
13034
13148
|
return emitStatus("live", data, statusDetails());
|
|
13035
13149
|
} catch (error) {
|
|
13150
|
+
rethrowClientFrameworkSignal(error);
|
|
13036
13151
|
if (isPageReadRefusal(options.pageRead, error)) throw attachResilienceStatusToError(error, emitStatus("error", null, statusDetails({ error: getRiverbankErrorInfo(error) })).resilience);
|
|
13037
13152
|
if (resilienceEnabled && error instanceof Error) circuitBreaker.recordFailure(error);
|
|
13038
13153
|
if (allowFallbacks && !isPreview && staleIfError && cacheEnabled) {
|
|
@@ -13072,9 +13187,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
13072
13187
|
apiClient,
|
|
13073
13188
|
resilientFetch,
|
|
13074
13189
|
prebuildLoader,
|
|
13075
|
-
|
|
13076
|
-
return framework.adapter;
|
|
13077
|
-
}
|
|
13190
|
+
frameworkCache
|
|
13078
13191
|
});
|
|
13079
13192
|
const eventReads = createPublicEventReadOperations({
|
|
13080
13193
|
apiClient,
|
|
@@ -13098,7 +13211,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
13098
13211
|
prebuildFallback: prebuildLoader && !preview ? () => prebuildLoader.loadEntries(siteId, params) : void 0
|
|
13099
13212
|
}));
|
|
13100
13213
|
}
|
|
13101
|
-
|
|
13214
|
+
return {
|
|
13102
13215
|
async getSite(params) {
|
|
13103
13216
|
return (await contentReads.getSiteWithResilience(params)).data;
|
|
13104
13217
|
},
|
|
@@ -13463,14 +13576,11 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
13463
13576
|
},
|
|
13464
13577
|
getBaseUrl() {
|
|
13465
13578
|
return config.baseUrl;
|
|
13579
|
+
},
|
|
13580
|
+
hasFrameworkCache() {
|
|
13581
|
+
return frameworkCache !== void 0;
|
|
13466
13582
|
}
|
|
13467
13583
|
};
|
|
13468
|
-
frameworkCacheInstallers.set(client, (adapter) => {
|
|
13469
|
-
if (framework.adapter) return;
|
|
13470
|
-
framework.apiClient = createApiClient(adapter);
|
|
13471
|
-
framework.adapter = adapter;
|
|
13472
|
-
});
|
|
13473
|
-
return client;
|
|
13474
13584
|
}
|
|
13475
13585
|
//#endregion
|
|
13476
13586
|
export { Page, createRiverbankClient, isContentError, isContentLoading, isEntryContentResult, isPageContentResult, useContent, usePage };
|