@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/server/next.mjs
CHANGED
|
@@ -1,47 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { $s as resolveBookingBusinessTimeZone, Hs as inferSiteDateLocale, Qs as toUtcIsoDateTimeString } from "./registry-DM9dHfDC.mjs";
|
|
2
|
+
import { a as rethrowFrameworkSignal } from "./responseMedia-IfH65QAH.mjs";
|
|
3
|
+
import { a as PORTAL_ENTRY_COOKIE, d as isServerPortalTarget, f as parsePortalLocation, u as CUSTOMER_PORTAL_PATH } from "./constants-VyF5nEhL.mjs";
|
|
4
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-Dcs_XTIO.mjs";
|
|
5
|
+
import { h as createBearerAPIClient, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient$1 } from "./client-CDndhbYO.mjs";
|
|
4
6
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
5
7
|
import { c as unwrapResponse, i as ApiRequestError, t as RiverbankApiError } from "./error-f4g44bKx.mjs";
|
|
6
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
7
|
-
import { a as pageReadMissReason, c as toEntrySubrouteContext, i as contentNotFound, n as contentFound, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-
|
|
8
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BKstMBmX.mjs";
|
|
9
|
+
import { a as pageReadMissReason, c as toEntrySubrouteContext, i as contentNotFound, n as contentFound, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-BWKUZUIn.mjs";
|
|
8
10
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
9
11
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
10
|
-
import { c as PORTAL_ENTRY_COOKIE } from "./constants-Cj7hfbrA.mjs";
|
|
11
|
-
import { t as SDK_VERSION } from "./version-8t0o6_jd.mjs";
|
|
12
12
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as planPortalEntryPage, l as portalEntryFingerprint, s as decodePortalEntryCookieValue, t as getPortalToken, u as previewPortalEntryToken } from "./portal-CMW_b9mG.mjs";
|
|
14
14
|
import { t as toRoutingInfo } from "./contentTypeResolver-B9vy8BrF.mjs";
|
|
15
|
+
import { t as SDK_VERSION } from "./version-CipbxPHL.mjs";
|
|
15
16
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
16
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
17
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CCaAPpIa.mjs";
|
|
17
18
|
import { cache } from "react";
|
|
18
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
20
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
20
|
-
import { revalidateTag, unstable_cache } from "next/cache";
|
|
21
21
|
import { notFound, permanentRedirect, redirect } from "next/navigation";
|
|
22
22
|
import { cookies } from "next/headers";
|
|
23
|
+
import { revalidateTag, unstable_cache } from "next/cache";
|
|
23
24
|
import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView } from "#sdk-portal-client";
|
|
24
25
|
import { RedeemGiftCardRouteClient } from "#sdk-gifting-client";
|
|
25
|
-
//#region src/next/cacheAdapter.ts
|
|
26
|
-
/** Explicit server-only Next effects; no runtime module discovery or silent fallback. */
|
|
27
|
-
const nextCacheAdapter = {
|
|
28
|
-
cache: (read, keys, policy) => unstable_cache(read, keys, policy),
|
|
29
|
-
invalidateTag: (tag) => revalidateTag(tag, "max")
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/next/client.ts
|
|
33
|
-
/** Canonical Next server constructor: framework caching is installed by default. */
|
|
34
|
-
function createRiverbankClient(config) {
|
|
35
|
-
return createRiverbankClient$1({
|
|
36
|
-
...config,
|
|
37
|
-
frameworkCache: config.frameworkCache ?? nextCacheAdapter
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/** Existing root/server clients retain their state when a Next rendering entry claims them. */
|
|
41
|
-
function prepareNextClient(client) {
|
|
42
|
-
return installFrameworkCache(client, nextCacheAdapter);
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
26
|
//#region src/next/requestReadMemo.ts
|
|
46
27
|
/**
|
|
47
28
|
* Metadata and the page both load the same content in one render. Next's fetch dedupe skips
|
|
@@ -510,6 +491,7 @@ async function resolveRequestContext(runtime) {
|
|
|
510
491
|
try {
|
|
511
492
|
return await getRequestContext();
|
|
512
493
|
} catch (error) {
|
|
494
|
+
rethrowFrameworkSignal(error);
|
|
513
495
|
console.warn("[createCatchAllPage] getRequestContext failed:", error);
|
|
514
496
|
return;
|
|
515
497
|
}
|
|
@@ -551,6 +533,7 @@ async function resolveContentForPath(runtime, args) {
|
|
|
551
533
|
} : {}
|
|
552
534
|
}));
|
|
553
535
|
} catch (error) {
|
|
536
|
+
rethrowFrameworkSignal(error);
|
|
554
537
|
const sdkError = await toSdkContentLoadError(runtime, error, contentPath);
|
|
555
538
|
if (sdkError) throw sdkError;
|
|
556
539
|
return contentNotFound(pageReadMissReason(error instanceof RiverbankApiError ? error.tag : void 0));
|
|
@@ -568,6 +551,7 @@ async function redirectIfConfigured(runtime, args) {
|
|
|
568
551
|
preview: false
|
|
569
552
|
});
|
|
570
553
|
} catch (error) {
|
|
554
|
+
rethrowFrameworkSignal(error);
|
|
571
555
|
console.warn("[createCatchAllPage] Redirect outcome check failed:", {
|
|
572
556
|
path: args.path,
|
|
573
557
|
error: error instanceof Error ? error.message : String(error)
|
|
@@ -650,10 +634,20 @@ async function renderResolvedCatchAllPage(runtime, input) {
|
|
|
650
634
|
mediaAssets: input.content.mediaAssets
|
|
651
635
|
}) }), rendered.node] }));
|
|
652
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* A client built from `@riverbankcms/sdk/server` has no framework cache, so a published page read is a
|
|
639
|
+
* no-store fetch. Next can't render that inside the catch-all's ISR route and fails every page, so stop
|
|
640
|
+
* with an error that names the fix. Preview reads are dynamic anyway and don't need the cache.
|
|
641
|
+
*/
|
|
642
|
+
function requireFrameworkCache(runtime) {
|
|
643
|
+
const client = runtime.options.getClient();
|
|
644
|
+
if (!runtime.preview && !client.hasFrameworkCache()) throw new Error("[createCatchAllPage] This Riverbank client has no Next cache, so published pages cannot render. Build the client with createRiverbankClient from '@riverbankcms/sdk/next' instead of '@riverbankcms/sdk/server'.");
|
|
645
|
+
return client;
|
|
646
|
+
}
|
|
653
647
|
async function renderCatchAllPage(runtime, props) {
|
|
654
648
|
const { path, searchParams } = await readCatchAllRequest(runtime, props);
|
|
655
649
|
if (isReservedStaticPath(path)) return notFound();
|
|
656
|
-
const client = runtime.withRequestReadMemo(
|
|
650
|
+
const client = runtime.withRequestReadMemo(requireFrameworkCache(runtime));
|
|
657
651
|
const apiBaseUrl = client.getBaseUrl();
|
|
658
652
|
const portalToken = runtime.enablePortal ? getPortalToken(await cookies()) : null;
|
|
659
653
|
let resolution;
|
|
@@ -668,6 +662,7 @@ async function renderCatchAllPage(runtime, props) {
|
|
|
668
662
|
}
|
|
669
663
|
});
|
|
670
664
|
} catch (error) {
|
|
665
|
+
rethrowFrameworkSignal(error);
|
|
671
666
|
return renderContentLoadFailure(runtime, error);
|
|
672
667
|
}
|
|
673
668
|
if (!resolution.found) {
|
|
@@ -731,10 +726,11 @@ async function resolveCatchAllMetadata(runtime, input) {
|
|
|
731
726
|
async function generateCatchAllMetadata(runtime, props) {
|
|
732
727
|
const { path, searchParams } = await readCatchAllRequest(runtime, props);
|
|
733
728
|
if (isReservedStaticPath(path)) return pageNotFoundMetadata();
|
|
729
|
+
const client = runtime.withRequestReadMemo(requireFrameworkCache(runtime));
|
|
734
730
|
try {
|
|
735
731
|
const resolution = await resolveContentForPath(runtime, {
|
|
736
732
|
path,
|
|
737
|
-
client
|
|
733
|
+
client,
|
|
738
734
|
purpose: {
|
|
739
735
|
kind: "metadata",
|
|
740
736
|
searchParams
|
|
@@ -750,6 +746,7 @@ async function generateCatchAllMetadata(runtime, props) {
|
|
|
750
746
|
searchParams
|
|
751
747
|
}), isPageSurfaceContent(resolution.content) ? resolution.content.pageSurface.subject : null, runtime.preview);
|
|
752
748
|
} catch (error) {
|
|
749
|
+
rethrowFrameworkSignal(error);
|
|
753
750
|
if (error instanceof RiverbankContentLoadError) throw error;
|
|
754
751
|
console.debug("[createCatchAllPage] Failed to generate metadata for path:", path, error);
|
|
755
752
|
return pageNotFoundMetadata();
|
|
@@ -764,6 +761,22 @@ function createCatchAllPage(options) {
|
|
|
764
761
|
};
|
|
765
762
|
}
|
|
766
763
|
//#endregion
|
|
764
|
+
//#region src/next/cacheAdapter.ts
|
|
765
|
+
/** Explicit server-only Next effects; no runtime module discovery or silent fallback. */
|
|
766
|
+
const nextCacheAdapter = {
|
|
767
|
+
cache: (read, keys, policy) => unstable_cache(read, keys, policy),
|
|
768
|
+
invalidateTag: (tag) => revalidateTag(tag, "max")
|
|
769
|
+
};
|
|
770
|
+
//#endregion
|
|
771
|
+
//#region src/next/client.ts
|
|
772
|
+
/** Canonical Next server constructor: Next's framework cache is the default adapter. */
|
|
773
|
+
function createRiverbankClient(config) {
|
|
774
|
+
return createRiverbankClient$1({
|
|
775
|
+
...config,
|
|
776
|
+
frameworkCache: config.frameworkCache ?? nextCacheAdapter
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
//#endregion
|
|
767
780
|
//#region src/next/static-params.ts
|
|
768
781
|
/**
|
|
769
782
|
* Static params generation for Next.js SSG
|
|
@@ -1072,6 +1085,39 @@ function createRobots(options) {
|
|
|
1072
1085
|
}
|
|
1073
1086
|
//#endregion
|
|
1074
1087
|
//#region src/next/portal.tsx
|
|
1088
|
+
function portalHostContext(site, visit) {
|
|
1089
|
+
const timeZone = resolveBookingBusinessTimeZone(site.bookingTimeZone);
|
|
1090
|
+
return {
|
|
1091
|
+
dateContext: {
|
|
1092
|
+
locale: inferSiteDateLocale(timeZone),
|
|
1093
|
+
timeZone
|
|
1094
|
+
},
|
|
1095
|
+
now: toUtcIsoDateTimeString(visit.now.toISOString()),
|
|
1096
|
+
siteId: site.site.id,
|
|
1097
|
+
apiBaseUrl: visit.apiBaseUrl,
|
|
1098
|
+
portalToken: visit.portalToken,
|
|
1099
|
+
demoEmailSuppressed: site.demoEmailSuppressed === true,
|
|
1100
|
+
siteTitle: site.site.title,
|
|
1101
|
+
contactEmail: site.businessDetails?.contact?.email ?? null,
|
|
1102
|
+
businessPerson: site.bookingPerson ?? null,
|
|
1103
|
+
privacyPolicyHref: site.privacyPolicy?.enabled ? site.privacyPolicy.path : null
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
/** The client portal's props, from the host's context and the location the server parsed. */
|
|
1107
|
+
function portalClientProps(context, location) {
|
|
1108
|
+
return {
|
|
1109
|
+
dateContext: context.dateContext,
|
|
1110
|
+
now: context.now,
|
|
1111
|
+
siteId: context.siteId,
|
|
1112
|
+
apiBaseUrl: context.apiBaseUrl,
|
|
1113
|
+
portalToken: context.portalToken,
|
|
1114
|
+
demoEmailSuppressed: context.demoEmailSuppressed,
|
|
1115
|
+
siteTitle: context.siteTitle,
|
|
1116
|
+
businessPerson: context.businessPerson,
|
|
1117
|
+
privacyPolicyHref: context.privacyPolicyHref,
|
|
1118
|
+
initialLocation: location
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1075
1121
|
function accessFailure(error) {
|
|
1076
1122
|
if (error instanceof ApiRequestError) {
|
|
1077
1123
|
if (error.status === 401 || error.status === 403) return "login";
|
|
@@ -1091,26 +1137,31 @@ async function loadPortalDetail(context, load) {
|
|
|
1091
1137
|
return { kind: accessFailure(error) };
|
|
1092
1138
|
}
|
|
1093
1139
|
}
|
|
1094
|
-
function accessPage(context, kind, state,
|
|
1140
|
+
function accessPage(context, kind, state, returnTo) {
|
|
1095
1141
|
return /* @__PURE__ */ jsx(PortalAccessState, {
|
|
1096
1142
|
siteId: context.siteId,
|
|
1097
1143
|
apiBaseUrl: context.apiBaseUrl,
|
|
1098
1144
|
demoEmailSuppressed: context.demoEmailSuppressed,
|
|
1099
1145
|
kind,
|
|
1100
1146
|
state,
|
|
1101
|
-
|
|
1147
|
+
returnTo,
|
|
1148
|
+
siteTitle: context.siteTitle
|
|
1102
1149
|
});
|
|
1103
1150
|
}
|
|
1104
|
-
async function renderPortalTicketPage(context,
|
|
1151
|
+
async function renderPortalTicketPage(context, ref) {
|
|
1105
1152
|
const result = await loadPortalDetail(context, async (client) => unwrapResponse(await client({
|
|
1106
1153
|
endpoint: "portalGetEventTicket",
|
|
1107
|
-
params: { registrationId },
|
|
1154
|
+
params: { registrationId: ref.attendeeId },
|
|
1108
1155
|
options: { cache: "no-store" }
|
|
1109
1156
|
})).ticket);
|
|
1110
1157
|
return result.kind === "loaded" ? /* @__PURE__ */ jsx(PortalTicketView, {
|
|
1111
1158
|
ticket: result.value,
|
|
1159
|
+
bookingRef: ref,
|
|
1112
1160
|
dateContext: context.dateContext
|
|
1113
|
-
}) : accessPage(context, "ticket", result.kind,
|
|
1161
|
+
}) : accessPage(context, "ticket", result.kind, {
|
|
1162
|
+
page: "ticket",
|
|
1163
|
+
ref
|
|
1164
|
+
});
|
|
1114
1165
|
}
|
|
1115
1166
|
async function renderPortalDigitalProductPage(context, entitlementId) {
|
|
1116
1167
|
const result = await loadPortalDetail(context, async (client) => unwrapResponse(await client({
|
|
@@ -1118,7 +1169,10 @@ async function renderPortalDigitalProductPage(context, entitlementId) {
|
|
|
1118
1169
|
params: { entitlementId },
|
|
1119
1170
|
options: { cache: "no-store" }
|
|
1120
1171
|
})));
|
|
1121
|
-
if (result.kind !== "loaded") return accessPage(context, "digital-product", result.kind,
|
|
1172
|
+
if (result.kind !== "loaded") return accessPage(context, "digital-product", result.kind, {
|
|
1173
|
+
page: "download",
|
|
1174
|
+
entitlementId
|
|
1175
|
+
});
|
|
1122
1176
|
const detail = result.value;
|
|
1123
1177
|
if (detail.product.fulfillmentMode === "guarded_url" && detail.guardedHref && detail.product.accessState === "active") redirect(detail.guardedHref);
|
|
1124
1178
|
return /* @__PURE__ */ jsx(PortalDigitalProductView, {
|
|
@@ -1136,16 +1190,20 @@ async function renderPortalDigitalProductFilePage(context, entitlementId, assetI
|
|
|
1136
1190
|
options: { cache: "no-store" }
|
|
1137
1191
|
})));
|
|
1138
1192
|
if (result.kind === "loaded") redirect(result.value.signedUrl);
|
|
1139
|
-
return accessPage(context, "file", result.kind,
|
|
1193
|
+
return accessPage(context, "file", result.kind, {
|
|
1194
|
+
page: "download_file",
|
|
1195
|
+
entitlementId,
|
|
1196
|
+
assetId
|
|
1197
|
+
});
|
|
1140
1198
|
}
|
|
1141
1199
|
/**
|
|
1142
1200
|
* The Continue page's content, on the site's own layout. Reading this page authenticates nobody and
|
|
1143
1201
|
* consumes nothing: its form POSTs to the callback.
|
|
1144
1202
|
*/
|
|
1145
|
-
async function renderPortalEntryContent(context,
|
|
1203
|
+
async function renderPortalEntryContent(context, reason) {
|
|
1146
1204
|
const entry = decodePortalEntryCookieValue((await cookies()).get(PORTAL_ENTRY_COOKIE)?.value);
|
|
1147
1205
|
const plan = planPortalEntryPage({
|
|
1148
|
-
|
|
1206
|
+
reason,
|
|
1149
1207
|
pending: entry ? {
|
|
1150
1208
|
entry,
|
|
1151
1209
|
fingerprint: await portalEntryFingerprint(entry),
|
|
@@ -1194,81 +1252,89 @@ async function loadPortalPageHost(options, path, searchParams) {
|
|
|
1194
1252
|
});
|
|
1195
1253
|
if (result.kind === "not-found") notFound();
|
|
1196
1254
|
if (result.warning) console.warn(result.warning);
|
|
1197
|
-
const timeZone = resolveBookingBusinessTimeZone(site.bookingTimeZone);
|
|
1198
1255
|
return {
|
|
1199
1256
|
theme: result.theme,
|
|
1200
|
-
site,
|
|
1201
|
-
context: {
|
|
1202
|
-
dateContext: {
|
|
1203
|
-
locale: inferSiteDateLocale(timeZone),
|
|
1204
|
-
timeZone
|
|
1205
|
-
},
|
|
1206
|
-
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
1207
|
-
siteId: options.config.siteId,
|
|
1257
|
+
context: portalHostContext(site, {
|
|
1208
1258
|
apiBaseUrl: client.getBaseUrl(),
|
|
1209
1259
|
portalToken: getPortalToken(await cookies()),
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
businessPerson: site.bookingPerson ?? null
|
|
1213
|
-
}
|
|
1260
|
+
now: /* @__PURE__ */ new Date()
|
|
1261
|
+
})
|
|
1214
1262
|
};
|
|
1215
1263
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
...options.portal
|
|
1224
|
-
})
|
|
1264
|
+
/** The portal location a catch-all route was reached at, through the portal's one router. */
|
|
1265
|
+
function portalLocationFromRouteParams(path, searchParams) {
|
|
1266
|
+
const pathname = [CUSTOMER_PORTAL_PATH, ...(path ?? []).map(encodeURIComponent)].join("/");
|
|
1267
|
+
const query = new URLSearchParams();
|
|
1268
|
+
Object.entries(searchParams).forEach(([name, value]) => {
|
|
1269
|
+
(typeof value === "string" || value === void 0 ? [value] : value).forEach((item) => {
|
|
1270
|
+
if (item !== void 0) query.append(name, item);
|
|
1225
1271
|
});
|
|
1272
|
+
});
|
|
1273
|
+
return {
|
|
1274
|
+
pathname,
|
|
1275
|
+
location: parsePortalLocation({
|
|
1276
|
+
pathname,
|
|
1277
|
+
searchParams: query
|
|
1278
|
+
})
|
|
1226
1279
|
};
|
|
1227
1280
|
}
|
|
1228
|
-
/**
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1231
|
-
const params = await searchParams ?? {};
|
|
1232
|
-
const host = await loadPortalPageHost(options, "/portal/continue", params);
|
|
1233
|
-
return /* @__PURE__ */ jsx(ThemeScope, {
|
|
1234
|
-
theme: host.theme,
|
|
1235
|
-
children: await renderPortalEntryContent({
|
|
1236
|
-
siteId: host.context.siteId,
|
|
1237
|
-
apiBaseUrl: host.context.apiBaseUrl,
|
|
1238
|
-
portalToken: host.context.portalToken,
|
|
1239
|
-
siteTitle: host.site.site.title,
|
|
1240
|
-
contactEmail: host.site.businessDetails?.contact?.email ?? null
|
|
1241
|
-
}, params)
|
|
1242
|
-
});
|
|
1243
|
-
};
|
|
1281
|
+
/** The page's title: the portal's name, or Continue on the page an emailed link opens. */
|
|
1282
|
+
function portalPageTitle(route) {
|
|
1283
|
+
return route.page === "continue" ? "Continue" : "Customer portal";
|
|
1244
1284
|
}
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1285
|
+
/**
|
|
1286
|
+
* Metadata for a catch-all portal route: `export const generateMetadata = generatePortalPageMetadata`.
|
|
1287
|
+
* No portal page is for search engines.
|
|
1288
|
+
*/
|
|
1289
|
+
async function generatePortalPageMetadata({ params }) {
|
|
1290
|
+
const { location } = portalLocationFromRouteParams((await params).path, {});
|
|
1291
|
+
return {
|
|
1292
|
+
title: portalPageTitle(location.route),
|
|
1293
|
+
robots: {
|
|
1294
|
+
index: false,
|
|
1295
|
+
follow: false
|
|
1296
|
+
}
|
|
1253
1297
|
};
|
|
1254
1298
|
}
|
|
1255
|
-
function
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
});
|
|
1263
|
-
};
|
|
1299
|
+
function renderServerPortalPage(context, route) {
|
|
1300
|
+
switch (route.page) {
|
|
1301
|
+
case "continue": return renderPortalEntryContent(context, route.reason);
|
|
1302
|
+
case "ticket": return renderPortalTicketPage(context, route.ref);
|
|
1303
|
+
case "download": return renderPortalDigitalProductPage(context, route.entitlementId);
|
|
1304
|
+
case "download_file": return renderPortalDigitalProductFilePage(context, route.entitlementId, route.assetId);
|
|
1305
|
+
}
|
|
1264
1306
|
}
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1307
|
+
/**
|
|
1308
|
+
* The content of one portal page, inside the host's own layout and theme. The server draws Continue,
|
|
1309
|
+
* tickets and downloads; every other page is the client portal, which the host renders from the props
|
|
1310
|
+
* given here (the location included) because it owns which client build it ships.
|
|
1311
|
+
*/
|
|
1312
|
+
async function renderPortalRoute(context, location, renderClient) {
|
|
1313
|
+
const { route } = location;
|
|
1314
|
+
if (route.page === "not_found") return notFound();
|
|
1315
|
+
if (isServerPortalTarget(route)) return renderServerPortalPage(context, route);
|
|
1316
|
+
return renderClient(portalClientProps(context, {
|
|
1317
|
+
...location,
|
|
1318
|
+
route
|
|
1319
|
+
}));
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* The whole customer portal as one catch-all route: add it at `app/portal/[[...path]]/page.tsx`, in a
|
|
1323
|
+
* layout of your own that has the site's header. It serves Continue, tickets, downloads and every
|
|
1324
|
+
* account page, and keeps old email links working.
|
|
1325
|
+
*/
|
|
1326
|
+
function createPortalPage(options) {
|
|
1327
|
+
return async function PortalPage({ params, searchParams }) {
|
|
1328
|
+
const query = await searchParams ?? {};
|
|
1329
|
+
const { pathname, location } = portalLocationFromRouteParams((await params).path, query);
|
|
1330
|
+
const host = await loadPortalPageHost(options, pathname, query);
|
|
1331
|
+
const content = await renderPortalRoute(host.context, location, (props) => /* @__PURE__ */ jsx(CustomerPortal, {
|
|
1332
|
+
...props,
|
|
1333
|
+
...options.portal
|
|
1334
|
+
}));
|
|
1269
1335
|
return /* @__PURE__ */ jsx(ThemeScope, {
|
|
1270
1336
|
theme: host.theme,
|
|
1271
|
-
children:
|
|
1337
|
+
children: content
|
|
1272
1338
|
});
|
|
1273
1339
|
};
|
|
1274
1340
|
}
|
|
@@ -1287,8 +1353,8 @@ function createRedeemPage(options) {
|
|
|
1287
1353
|
children: /* @__PURE__ */ jsx(RedeemGiftCardRouteClient, {
|
|
1288
1354
|
siteId: host.context.siteId,
|
|
1289
1355
|
apiBaseUrl: host.context.apiBaseUrl,
|
|
1290
|
-
siteTitle: host.
|
|
1291
|
-
publicContactEmail: host.
|
|
1356
|
+
siteTitle: host.context.siteTitle,
|
|
1357
|
+
publicContactEmail: host.context.contactEmail,
|
|
1292
1358
|
token: firstParam(query.token),
|
|
1293
1359
|
code: firstParam(query.code),
|
|
1294
1360
|
...options.redeem
|
|
@@ -1371,4 +1437,4 @@ function getISRConfig() {
|
|
|
1371
1437
|
};
|
|
1372
1438
|
}
|
|
1373
1439
|
//#endregion
|
|
1374
|
-
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams,
|
|
1440
|
+
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalPage, createRedeemPage, createRiverbankClient, createRobots, createSitemap, generateAllStaticParams, generatePortalPageMetadata, getISRConfig, isSdkContentLoadError, nextCacheAdapter, normalizeStaticRoutePath, pathToSlugArray, portalHostContext, portalLocationFromRouteParams, portalPageTitle, renderPortalRoute, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-Dcs_XTIO.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as listBlockDescriptors, pi as parseBackgroundContent } from "./registry-
|
|
2
|
-
import {
|
|
1
|
+
import { n as listBlockDescriptors, pi as parseBackgroundContent } from "./registry-DM9dHfDC.mjs";
|
|
2
|
+
import { d as createRichTextDoc } from "./typeGuards-CTW_9AXq.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
5
|
-
import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-
|
|
5
|
+
import { i as getJsonFromAiText, r as getJsonFromAi, t as convertHtmlToManifest } from "./three-pass-converter-DPaUPTfl.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region ../blocks/src/assistantSectionCatalog.ts
|
|
8
8
|
const words = (text) => createRichTextDoc([text]);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Y as parseThemeColorToken } from "./types-BKaBZFjD.mjs";
|
|
2
|
+
import { C as contrastRatio, I as rgbToHex, L as srgbToOklab, M as oklabToOklch, N as oklabToSrgb, P as oklchToHexGamut, j as hexToRgb, y as getTextColorForBackground } from "./resolveButtonColourStates-B0O1IM16.mjs";
|
|
3
|
+
import { $ as resolveCardListSchedule, $s as resolveBookingBusinessTimeZone, Aa as arrangementAppearancePresets, As as resolveWholeSeriesBookingPhase, Ba as readStoredMode, Bn as isBookableEvent, Br as formatEventDepositNote, Bs as formatDateRange, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeHook, Di as asPartialObject, Ea as heroPhotoPaintsGround, Ei as lookSkinSlotTransform, Eo as boundaryRuntimeMetricsForDecorativeTransition, Er as listLookSlot, Fo as applyLookPhotoTreatment, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Ha as resolveModeArrangement, Hn as formatEventRemainingPlaces, Ho as themeV2CompilerOwnedFieldNames, Io as deriveSectionGround, Ir as classPricesCopySchema, Jt as weekColumnDays, Kn as isEventFull, Kr as getAnchorClasses, Ks as compareLocalScheduleDates, Lo as parseCanonicalRuntimeBackground, Lr as classPricesDataSchema, Mr as heroMorePhotoCount, Oi as createTransformRegistry, Os as nextLiveRunSessionStartMs, Ot as groupOfferingRunsByCourse, Qs as toUtcIsoDateTimeString, Ra as styleSectionBackgroundForColour, Ro as resolveSectionBackground, Rr as resolveClassPriceItems, Sn as formatTime, So as sectionShapeFromContent, Ti as lookQuoteLimitTransform, Ua as resolvePublishedLook, Un as formatTotalCapacity, Ur as formatEventPriceDisplay, Va as resolveEffectiveArrangement, Vn as canJoinEventWaitlistOnAnyMode, Vo as stripStaleTransitionStyleGroup, Vr as formatEventPrice, Vs as formatDateTimeRange, Wn as getEventAvailability, Wr as formatEventStartingPrice, Wt as buildEventListWeek, X as CardListContentPart, Xs as parseBookingLocalDate, Xt as formatBookingSchedulePresentation, Ys as getLocalScheduleDate, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, _i as resolveSurfaceForegroundStyles, aa as eventReadinessQueryKeys, ao as gradientToCss, at as computeMediaTransformStyle, ba as resolveLookSurfacePresentation, bi as isSemanticSpacing, bn as formatEventTimeRange, ca as eventScopeLoaderParam, cc as resolvePricingOptionsPriceDisplay, cr as mediaTransforms, da as resolveEventScope, dn as eventLocalDateKey, dr as layoutTransforms, dt as systemCustomizeFacetDefinitionsForBlock, ea as augmentManifest, et as selectCardListPresentation, fa as resolveCalendarReadProfile, fc as parseGradientPresetId, gi as resolveSectionSurfaceForeground, gn as formatEventDateParts, hi as parseRuntimeBackgroundContent, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as eventReadinessQuery, is as formatDateKey, ks as orderedLiveRunSessions, la as eventScopeQuery, li as boxStylesTransforms, ln as eventCalendarWeekStart, lr as headerRuntimeTransforms, ma as resolveEventCalendarReadPlan, mi as parseBackgroundOverlay, mr as formattingTransforms, na as blockChecksForEvents, nc as formatBookingPriceDisplay, nn as formatEventLocation, nr as contentTransforms, on as closedRunCopy, oo as getGradientPreset, or as readRuntimeNow, pa as eventCalendarListGroupingDecision, pc as arrangementSlotNames, pi as parseBackgroundContent, pr as uiTransforms, qa as deriveSiteStyleBlockPolicy, qt as groupEventsByWeek, ra as eventReadinessLoaderKey, rt as ImagePresets, sa as eventDiscoveryFilterKeys, sc as resolveExactOrFreePriceDisplay, t as getBlockDefinition, tt as MediaNodeServer, ua as eventScopeQueryKeys, un as eventDateOptions, ur as chromeLogoTransforms, us as isToday, ut as resolveArrangementKnobs, vi as resolveBackgroundColorValue, wi as lookLeadSlotTransform, wn as resolveEventTimeZone, wr as listItemPresentation, xn as formatEventWeekdayTime, xo as sectionShapeForGround, ya as lookPresentationOnPalette, yn as formatEventRunDates, z as combinedLookSchema, za as arrangementManifestFromVariants, zi as ClockIcon, zn as hasEventBookingClosedEarly, zo as sectionSurfaceBase, zr as formatCoursePrice, zs as formatDate } from "./registry-DM9dHfDC.mjs";
|
|
4
|
+
import { A as resolveOnColorForThemeToken, K as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-WPzUAHp4.mjs";
|
|
5
|
+
import { A as makeBoundaryId, D as asLayoutVariantKey, k as asSiteStyleId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
|
|
6
6
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
|
|
8
|
+
import { o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
9
|
+
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-TFjgNG61.mjs";
|
|
9
10
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
10
11
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
11
12
|
import React from "react";
|
|
@@ -1714,7 +1715,8 @@ function cardItemSlotParents(arrangement) {
|
|
|
1714
1715
|
"item-media": "item",
|
|
1715
1716
|
dates: body,
|
|
1716
1717
|
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
1717
|
-
availability: body
|
|
1718
|
+
availability: body,
|
|
1719
|
+
facts: body
|
|
1718
1720
|
};
|
|
1719
1721
|
}
|
|
1720
1722
|
//#endregion
|
|
@@ -1745,6 +1747,7 @@ function presentPublicBlock(block) {
|
|
|
1745
1747
|
id: block.id,
|
|
1746
1748
|
kind: block.kind,
|
|
1747
1749
|
purpose: block.purpose,
|
|
1750
|
+
...block.identifier ? { identifier: block.identifier } : {},
|
|
1748
1751
|
...block.contentVersionId ? { contentVersionId: block.contentVersionId } : {},
|
|
1749
1752
|
...block.draftContentId !== void 0 ? { draftContentId: block.draftContentId } : {},
|
|
1750
1753
|
publishedPlacement: block.publishedPlacement,
|
|
@@ -2653,7 +2656,7 @@ function eventHeaderContent(selection, show) {
|
|
|
2653
2656
|
label: "Time",
|
|
2654
2657
|
value: timeRange
|
|
2655
2658
|
},
|
|
2656
|
-
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact,
|
|
2659
|
+
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
|
|
2657
2660
|
...groupSize === null ? [] : [{
|
|
2658
2661
|
label: "Group size",
|
|
2659
2662
|
value: groupSize
|
|
@@ -2662,9 +2665,9 @@ function eventHeaderContent(selection, show) {
|
|
|
2662
2665
|
action: headerAction(selection, item.action)
|
|
2663
2666
|
};
|
|
2664
2667
|
}
|
|
2665
|
-
/** The page
|
|
2666
|
-
function withDepositNote(fact,
|
|
2667
|
-
const note = formatEventDepositNote(
|
|
2668
|
+
/** The page says how booking is paid beside the price, so a deposit isn't first seen (or missed) at checkout. */
|
|
2669
|
+
function withDepositNote(fact, selection) {
|
|
2670
|
+
const note = formatEventDepositNote(selection.depositOffer);
|
|
2668
2671
|
return note ? {
|
|
2669
2672
|
...fact,
|
|
2670
2673
|
value: `${fact.value}, ${note}`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { $o as resolveRepeaterGridRowFieldId, $s as resolveBookingBusinessTimeZone, Ji as parseInlineTextFromUnknown, Ki as inlineTextToPlainText, Ni as parseBlockIconValue, Qi as parseFieldDefinitions, Qo as resolveRepeaterGridColumnFieldId, Qs as toUtcIsoDateTimeString, Ts as isRecord$1, Wo as DEFAULT_MEDIA_FIELD_KINDS, Xi as normalizeSelectSource, Xo as isAcceptedRepeaterGridSpan, Yi as plainTextToInlineText, Zo as parseRepeaterGridInteger, es as resolveRepeaterGridSpanFieldId, f as sanitizeNewsletterSignupPublicContent, t as getBlockDefinition, uc as parseContentVersionId, vs as linkSchema } from "./registry-DM9dHfDC.mjs";
|
|
2
|
+
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-CwfxQjc4.mjs";
|
|
3
|
+
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-MDDSubTp.mjs";
|
|
4
|
+
import { f as isRichTextDoc } from "./typeGuards-CTW_9AXq.mjs";
|
|
5
|
+
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
6
6
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
7
7
|
import { n as mapOutlineBlocks, r as mapOutlineRegions } from "./pageRegions-BaeEF2MU.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1871,9 +1871,11 @@ function readTransportedBlockHeader(block) {
|
|
|
1871
1871
|
if (typeof block.id !== "string" && block.id !== null) throw new Error(`Invalid block id in page: expected string or null, got ${typeof block.id}`);
|
|
1872
1872
|
if (typeof block.kind !== "string") throw new Error(`Invalid block kind in page: expected string, got ${typeof block.kind}`);
|
|
1873
1873
|
if (typeof block.purpose !== "string") throw new Error(`Invalid block purpose in page: expected string, got ${typeof block.purpose}`);
|
|
1874
|
+
const identifier = readBlockContentId(block.identifier, "block identifier");
|
|
1874
1875
|
if (block.contentVersionId !== void 0 && block.contentVersionId !== null && typeof block.contentVersionId !== "string") throw new Error(`Invalid content version id in page: expected string or null, got ${typeof block.contentVersionId}`);
|
|
1875
1876
|
return {
|
|
1876
1877
|
id: block.id,
|
|
1878
|
+
...identifier ? { identifier } : {},
|
|
1877
1879
|
...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
|
|
1878
1880
|
kind: block.kind,
|
|
1879
1881
|
purpose: block.purpose
|
|
@@ -1898,6 +1900,7 @@ function buildRenderablePageOutline(input) {
|
|
|
1898
1900
|
function projectRenderablePageOutline(page) {
|
|
1899
1901
|
return mapOutlineRegions(page, (blocks) => blocks.flatMap((block) => block.admission.kind === "renderable" ? [{
|
|
1900
1902
|
id: block.id,
|
|
1903
|
+
...block.identifier ? { identifier: block.identifier } : {},
|
|
1901
1904
|
draftContentId: block.draftContentId ?? null,
|
|
1902
1905
|
publishedPlacement: block.publishedPlacement,
|
|
1903
1906
|
...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
|
|
@@ -1910,6 +1913,7 @@ function projectRenderablePageOutline(page) {
|
|
|
1910
1913
|
function admitSdkRuntimePageBlock(block, customBlocks) {
|
|
1911
1914
|
const base = {
|
|
1912
1915
|
id: block.id,
|
|
1916
|
+
...block.identifier ? { identifier: block.identifier } : {},
|
|
1913
1917
|
draftContentId: block.draftContentId,
|
|
1914
1918
|
publishedPlacement: block.publishedPlacement,
|
|
1915
1919
|
...block.contentVersionId !== void 0 ? { contentVersionId: block.contentVersionId } : {},
|