@riverbankcms/sdk 0.179.0 → 0.180.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-BP7VBRvs.d.ts} +235 -56
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-Dfqz0Tcu.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-DVSipdrT.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-DCcxLa8p.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BG2tLGXj.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-P08l6mkr.d.ts} +2602 -821
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-BDHc8lFs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-Y3IZBbtL.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +8 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BvtNagjw.d.ts} +8 -7
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-BrK6SS5c.d.ts} +9 -8
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-DpEAnP4F.d.ts} +7 -2
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +16 -16
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs} +91 -59
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs} +24 -3
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +12 -7
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-CrpiyDSP.mjs} +9 -9
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-D0me9wnz.mjs} +8 -8
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CJITrGkF.mjs} +5 -4
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-CXfb7RRy.mjs} +7 -210
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1292 -224
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-bX7iy_MK.mjs} +158 -50
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +22 -15
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-DCfdcb7s.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-DCqorVne.mjs} +6 -6
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-CYl9NrqS.mjs} +410 -77
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-BE1dEFsD.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +224 -158
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-DtKdUdkO.mjs} +199 -27
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +3 -3
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-Du9a_xAN.mjs} +1980 -1517
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-TaMUys6I.mjs} +4 -4
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-CpNPbPPM.mjs} +1 -1
- package/dist/client/{formatDate-CTEN7gxW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -5
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-CFUq3GVx.mjs} +4 -4
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → lookSurfaces-gJ3OqPf9.mjs} +92 -2
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-VuL9I96G.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +18 -24
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-OBqsfT24.mjs} +1 -1
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +299 -115
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder-BLKAmX0S.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-Bj9cmHHF.mjs} +89 -50
- package/dist/client/rendering/client.mjs +22 -22
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-Cbtk_kUW.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-Rnqa74Tk.mjs} +12 -12
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/{src-CCtanNlD.mjs → src-o7WEvbK1.mjs} +118 -3
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BOff1Kk5.mjs} +201 -7
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-BcFQRI_7.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-BvdcexDC.mjs} +7 -7
- package/dist/client/{view-LJVHVqsy.mjs → view-CTBwSpKv.mjs} +3 -3
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-CWIQyRIw.mjs} +1605 -442
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +5735 -2073
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-FwFj8zGL.mjs} +43 -0
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-CS6ih1Yc.mjs} +4 -4
- package/dist/server/{client-CGJ2ztYp.mjs → client-m0ylCj_f.mjs} +847 -786
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-vgWMz1uD.mjs} +6 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-CIOL3-9t.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +43 -30
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-DJo_obpi.mjs} +9 -7
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BnSuoHON.mjs} +5 -1
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-BJuOzxzn.mjs} +550 -258
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-Cr8p8T7V.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-BZh57-ua.mjs} +4 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-CvhFwbXJ.mjs} +240 -80
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-Cv_W1LVB.mjs} +39 -31
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-CRKbTm_7.mjs} +14 -10
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-8t0o6_jd.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/client/constants-4o4_hl34.mjs +0 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-
|
|
1
|
+
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-DCl-FCk_.mjs";
|
|
2
2
|
export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-
|
|
1
|
+
import { Hs as isCanonicalRichTextDoc } from "./registry-CvhFwbXJ.mjs";
|
|
2
|
+
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-DCl-FCk_.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-
|
|
1
|
+
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-Cv_W1LVB.mjs";
|
|
2
2
|
export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-m0ylCj_f.mjs";
|
|
3
3
|
import { r as getResilienceStatusFromError, t as RiverbankApiError } from "./error-f4g44bKx.mjs";
|
|
4
4
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
5
5
|
import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
|
|
6
|
-
import { t as prebuildCache } from "./prebuild-
|
|
6
|
+
import { t as prebuildCache } from "./prebuild-Cr8p8T7V.mjs";
|
|
7
7
|
import * as path from "path";
|
|
8
8
|
import * as fs from "fs";
|
|
9
9
|
//#region src/prebuild/loader.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { In as registrationDataForEventSelection, Rn as selectionRepresentativeEvent,
|
|
2
|
-
import { P as readPublishedBlockPlacement, a as invalidRenderableBlock, d as siteBlockRenderContext, h as compileManifestContentContract, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as admitTransportedRenderableManifestContent, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent } from "./pageRuntimeSupport-
|
|
3
|
-
import { _ as buildTemplatePageOutline, c as buildBookingPageOutline, l as bookingPageIdentity, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, v as readStoredSectionValues, y as selectBlocksForDeclaredEntrySlot } from "./servicePageContent-
|
|
1
|
+
import { In as registrationDataForEventSelection, Rn as selectionRepresentativeEvent, ic as resolveBookingBusinessTimeZone, na as isRecord, sr as resolveDateRuntimeContext } from "./registry-CvhFwbXJ.mjs";
|
|
2
|
+
import { P as readPublishedBlockPlacement, a as invalidRenderableBlock, d as siteBlockRenderContext, h as compileManifestContentContract, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, m as admitTransportedRenderableManifestContent, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, u as sanitizeSdkRuntimeBlockContent } from "./pageRuntimeSupport-BnSuoHON.mjs";
|
|
3
|
+
import { _ as buildTemplatePageOutline, c as buildBookingPageOutline, l as bookingPageIdentity, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, v as readStoredSectionValues, y as selectBlocksForDeclaredEntrySlot } from "./servicePageContent-CRKbTm_7.mjs";
|
|
4
4
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
5
5
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
6
|
-
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-
|
|
6
|
+
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-Cv_W1LVB.mjs";
|
|
7
7
|
//#region ../api/src/publicBookingService.ts
|
|
8
8
|
/** Adapt an admitted service to the catalogue row consumed by booking pickers. */
|
|
9
9
|
function toPublicBookingServiceCatalogueItem(service, categoryId) {
|
|
@@ -12,6 +12,7 @@ function toPublicBookingServiceCatalogueItem(service, categoryId) {
|
|
|
12
12
|
requiresApproval: service.requiresApproval,
|
|
13
13
|
...service.onlinePaymentMode === void 0 ? {} : { onlinePaymentMode: service.onlinePaymentMode },
|
|
14
14
|
...service.onlinePaymentChoices === void 0 ? {} : { onlinePaymentChoices: service.onlinePaymentChoices },
|
|
15
|
+
...service.onlinePayments === void 0 ? {} : { onlinePayments: service.onlinePayments },
|
|
15
16
|
id: service.id,
|
|
16
17
|
asksSiteTerms: service.asksSiteTerms,
|
|
17
18
|
siteId: service.siteId,
|
|
@@ -286,6 +287,7 @@ function toContentTemplate(template) {
|
|
|
286
287
|
function admitEntrySlotBlock(block, customBlocks, previewStage) {
|
|
287
288
|
const base = {
|
|
288
289
|
id: block.id ?? block.blockId ?? null,
|
|
290
|
+
...block.identifier ? { identifier: block.identifier } : {},
|
|
289
291
|
contentVersionId: block.contentVersionId,
|
|
290
292
|
...entrySlotBlockIdentity(block, previewStage),
|
|
291
293
|
kind: block.kind,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-
|
|
1
|
+
import { d as siteBlockRenderContext, i as collectMediaAssetSidecar, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport } from "./pageRuntimeSupport-BnSuoHON.mjs";
|
|
2
2
|
import { r as requireSdkTheme } from "./themeAdmission-DGSAlFUK.mjs";
|
|
3
|
-
import { a as loadContentFromContentResponseWithDeps, n as isPageContent } from "./loadContent-
|
|
3
|
+
import { a as loadContentFromContentResponseWithDeps, n as isPageContent } from "./loadContent-vgWMz1uD.mjs";
|
|
4
4
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
5
|
-
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-
|
|
5
|
+
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-Cv_W1LVB.mjs";
|
|
6
6
|
//#region src/rendering/helpers/loadPage.ts
|
|
7
7
|
/**
|
|
8
8
|
* Server-side helper to fetch all data needed for <Page> component.
|
|
@@ -1715,6 +1715,24 @@ const blockAppearancePresets = [
|
|
|
1715
1715
|
},
|
|
1716
1716
|
styleFallback: [id("media-text-photo-beside-text")]
|
|
1717
1717
|
}),
|
|
1718
|
+
defineArrangementLook("media-text-quote-beside-circle", "media-text", "Quote beside a round photo", "circle-beside", ["imagePosition"], {
|
|
1719
|
+
mediaFrame: { default: {
|
|
1720
|
+
kind: "fixed",
|
|
1721
|
+
aspectRatio: "1/1",
|
|
1722
|
+
borderRadius: "50%"
|
|
1723
|
+
} },
|
|
1724
|
+
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [
|
|
1725
|
+
sketch.title(.6),
|
|
1726
|
+
sketch.quote("small"),
|
|
1727
|
+
sketch.text(2),
|
|
1728
|
+
sketch.text(1, .5)
|
|
1729
|
+
])]),
|
|
1730
|
+
forcedKnobs: {
|
|
1731
|
+
imageShape: "circle",
|
|
1732
|
+
aspectRatio: "1/1"
|
|
1733
|
+
},
|
|
1734
|
+
styleFallback: [id("media-text-circle-beside-text"), id("media-text-photo-beside-text")]
|
|
1735
|
+
}),
|
|
1718
1736
|
defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, {
|
|
1719
1737
|
photoUse: "beside",
|
|
1720
1738
|
thumbnail: sketch.page([sketch.middle([
|
|
@@ -2446,6 +2464,24 @@ const blockAppearancePresets = [
|
|
|
2446
2464
|
}),
|
|
2447
2465
|
blockKinds: ["block.team-members"]
|
|
2448
2466
|
},
|
|
2467
|
+
{
|
|
2468
|
+
...defineCardListLook("team-members-person-rows", "One person per row, with facts", "stack", [
|
|
2469
|
+
"media",
|
|
2470
|
+
"title",
|
|
2471
|
+
"text",
|
|
2472
|
+
"facts"
|
|
2473
|
+
], ["showPhotos"], {
|
|
2474
|
+
thumbnail: sketch.page([sketch.down(2, [sketch.row(sketch.weight(2, [sketch.photo("medium", "circle"), sketch.card([sketch.text(3, .7)])]), sketch.weight(3, [
|
|
2475
|
+
sketch.title(.4, "small"),
|
|
2476
|
+
sketch.title(.6),
|
|
2477
|
+
sketch.text(4)
|
|
2478
|
+
]))])]),
|
|
2479
|
+
teamBiography: "profile",
|
|
2480
|
+
teamFacts: "person",
|
|
2481
|
+
styleFallback: [id("team-members-portrait-bio")]
|
|
2482
|
+
}),
|
|
2483
|
+
blockKinds: ["block.team-members"]
|
|
2484
|
+
},
|
|
2449
2485
|
{
|
|
2450
2486
|
...defineCardListLook("team-members-ruled-names", "Names in a ruled list", "index", [
|
|
2451
2487
|
"title",
|
package/dist/server/next.mjs
CHANGED
|
@@ -1,47 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ic as resolveBookingBusinessTimeZone, qs as inferSiteDateLocale, rc as toUtcIsoDateTimeString } from "./registry-CvhFwbXJ.mjs";
|
|
2
|
+
import { a as rethrowFrameworkSignal } from "./responseMedia-KRKguBC5.mjs";
|
|
3
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-BJuOzxzn.mjs";
|
|
4
|
+
import { h as createBearerAPIClient, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient$1 } from "./client-m0ylCj_f.mjs";
|
|
4
5
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
5
6
|
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-
|
|
7
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-vgWMz1uD.mjs";
|
|
8
|
+
import { a as pageReadMissReason, c as toEntrySubrouteContext, i as contentNotFound, n as contentFound, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-BWKUZUIn.mjs";
|
|
8
9
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
9
10
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
10
11
|
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
13
|
import { c as parsePortalEntryArrival, f as previewPortalEntryToken, l as planPortalEntryPage, s as decodePortalEntryCookieValue, t as getPortalToken, u as portalEntryFingerprint } from "./portal-B4JVkdjc.mjs";
|
|
14
14
|
import { t as toRoutingInfo } from "./contentTypeResolver-B9vy8BrF.mjs";
|
|
15
|
+
import { t as SDK_VERSION } from "./version-DT_R5JAR.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-BiHmsvTZ.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-BJuOzxzn.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,4 +1,4 @@
|
|
|
1
|
-
import { n as listBlockDescriptors, pi as parseBackgroundContent } from "./registry-
|
|
1
|
+
import { n as listBlockDescriptors, pi as parseBackgroundContent } from "./registry-CvhFwbXJ.mjs";
|
|
2
2
|
import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as resolveCardListSchedule, At as groupOfferingRunsByCourse, Ba as styleSectionBackgroundForColour, Bn as isBookableEvent, Bo as resolveSectionBackground, Br as formatEventDepositNote, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeForGround, Di as asPartialObject, Ei as lookSkinSlotTransform, Er as listLookSlot, Fs as resolveWholeSeriesBookingPhase, Ga as resolvePublishedLook, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Gs as
|
|
2
|
+
import { $ as resolveCardListSchedule, At as groupOfferingRunsByCourse, Ba as styleSectionBackgroundForColour, Bn as isBookableEvent, Bo as resolveSectionBackground, Br as formatEventDepositNote, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeForGround, Di as asPartialObject, Ei as lookSkinSlotTransform, Er as listLookSlot, Fs as resolveWholeSeriesBookingPhase, Ga as resolvePublishedLook, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Gs as formatDateRange, Ha as readStoredMode, Hn as formatEventRemainingPlaces, Ir as classPricesCopySchema, Jt as weekColumnDays, Kn as isEventFull, Kr as getAnchorClasses, Ks as formatDateTimeRange, Lo as applyLookPhotoTreatment, Lr as classPricesDataSchema, Ma as arrangementAppearancePresets, Mr as heroMorePhotoCount, Ns as nextLiveRunSessionStartMs, Oa as heroPhotoPaintsGround, Oi as createTransformRegistry, Oo as boundaryRuntimeMetricsForDecorativeTransition, Ps as orderedLiveRunSessions, Ro as deriveSectionGround, Rr as resolveClassPriceItems, Sa as resolveLookSurfacePresentation, Sn as formatTime, Ti as lookQuoteLimitTransform, To as sectionShapeHook, Ua as resolveEffectiveArrangement, Un as formatTotalCapacity, Uo as stripStaleTransitionStyleGroup, Ur as formatEventPriceDisplay, Va as arrangementManifestFromVariants, Vn as canJoinEventWaitlistOnAnyMode, Vo as sectionSurfaceBase, Vr as formatEventPrice, Wa as resolveModeArrangement, Wn as getEventAvailability, Wo as themeV2CompilerOwnedFieldNames, Wr as formatEventStartingPrice, Ws as formatDate, Wt as buildEventListWeek, X as CardListContentPart, Xt as formatBookingSchedulePresentation, Ya as deriveSiteStyleBlockPolicy, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, Zs as compareLocalScheduleDates, _i as resolveSurfaceForegroundStyles, aa as eventReadinessLoaderKey, at as computeMediaTransformStyle, bi as isSemanticSpacing, bn as formatEventTimeRange, co as getGradientPreset, cr as mediaTransforms, cs as formatDateKey, da as eventScopeQuery, dn as eventLocalDateKey, dr as layoutTransforms, dt as systemCustomizeFacetDefinitionsForBlock, ea as augmentManifest, ec as getLocalScheduleDate, et as selectCardListPresentation, fa as eventScopeQueryKeys, fc as resolveExactOrFreePriceDisplay, ga as resolveEventCalendarReadPlan, gi as resolveSectionSurfaceForeground, gn as formatEventDateParts, ha as eventCalendarListGroupingDecision, hi as parseRuntimeBackgroundContent, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as blockChecksForEvents, ic as resolveBookingBusinessTimeZone, la as eventDiscoveryFilterKeys, li as boxStylesTransforms, ln as eventCalendarWeekStart, lr as headerRuntimeTransforms, ma as resolveCalendarReadProfile, mi as parseBackgroundOverlay, mr as formattingTransforms, ms as isToday, nn as formatEventLocation, nr as contentTransforms, oa as eventReadinessQuery, on as closedRunCopy, or as readRuntimeNow, pa as resolveEventScope, pc as resolvePricingOptionsPriceDisplay, pi as parseBackgroundContent, pr as uiTransforms, qt as groupEventsByWeek, rc as toUtcIsoDateTimeString, rt as ImagePresets, sa as eventReadinessQueryKeys, sc as formatBookingPriceDisplay, so as gradientToCss, t as getBlockDefinition, ta as isObjectRecord, tc as parseBookingLocalDate, tt as MediaNodeServer, ua as eventScopeLoaderParam, un as eventDateOptions, ur as chromeLogoTransforms, ut as resolveArrangementKnobs, vc as parseGradientPresetId, vi as resolveBackgroundColorValue, wi as lookLeadSlotTransform, wn as resolveEventTimeZone, wo as sectionShapeFromContent, wr as listItemPresentation, xa as lookPresentationOnPalette, xn as formatEventWeekdayTime, yc as arrangementSlotNames, yn as formatEventRunDates, z as combinedLookSchema, zi as ClockIcon, zn as hasEventBookingClosedEarly, zo as parseCanonicalRuntimeBackground, zr as formatCoursePrice } from "./registry-CvhFwbXJ.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
4
|
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
|
|
5
5
|
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
6
6
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
7
7
|
import { o as isRecord$2 } from "./richTextSchema-QLaQrbII.mjs";
|
|
8
|
-
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-
|
|
8
|
+
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-m-91jGGn.mjs";
|
|
9
9
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
10
10
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
11
11
|
import React from "react";
|
|
@@ -1714,7 +1714,8 @@ function cardItemSlotParents(arrangement) {
|
|
|
1714
1714
|
"item-media": "item",
|
|
1715
1715
|
dates: body,
|
|
1716
1716
|
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
1717
|
-
availability: body
|
|
1717
|
+
availability: body,
|
|
1718
|
+
facts: body
|
|
1718
1719
|
};
|
|
1719
1720
|
}
|
|
1720
1721
|
//#endregion
|
|
@@ -1745,6 +1746,7 @@ function presentPublicBlock(block) {
|
|
|
1745
1746
|
id: block.id,
|
|
1746
1747
|
kind: block.kind,
|
|
1747
1748
|
purpose: block.purpose,
|
|
1749
|
+
...block.identifier ? { identifier: block.identifier } : {},
|
|
1748
1750
|
...block.contentVersionId ? { contentVersionId: block.contentVersionId } : {},
|
|
1749
1751
|
...block.draftContentId !== void 0 ? { draftContentId: block.draftContentId } : {},
|
|
1750
1752
|
publishedPlacement: block.publishedPlacement,
|
|
@@ -2653,7 +2655,7 @@ function eventHeaderContent(selection, show) {
|
|
|
2653
2655
|
label: "Time",
|
|
2654
2656
|
value: timeRange
|
|
2655
2657
|
},
|
|
2656
|
-
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact,
|
|
2658
|
+
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
|
|
2657
2659
|
...groupSize === null ? [] : [{
|
|
2658
2660
|
label: "Group size",
|
|
2659
2661
|
value: groupSize
|
|
@@ -2662,9 +2664,9 @@ function eventHeaderContent(selection, show) {
|
|
|
2662
2664
|
action: headerAction(selection, item.action)
|
|
2663
2665
|
};
|
|
2664
2666
|
}
|
|
2665
|
-
/** The page
|
|
2666
|
-
function withDepositNote(fact,
|
|
2667
|
-
const note = formatEventDepositNote(
|
|
2667
|
+
/** The page says how booking is paid beside the price, so a deposit isn't first seen (or missed) at checkout. */
|
|
2668
|
+
function withDepositNote(fact, selection) {
|
|
2669
|
+
const note = formatEventDepositNote(selection.depositOffer);
|
|
2668
2670
|
return note ? {
|
|
2669
2671
|
...fact,
|
|
2670
2672
|
value: `${fact.value}, ${note}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { As as isRecord$1, Cs as linkSchema, Ji as parseInlineTextFromUnknown, Jo as DEFAULT_MEDIA_FIELD_KINDS, Ki as inlineTextToPlainText, Ni as parseBlockIconValue, Qi as parseFieldDefinitions, Xi as normalizeSelectSource, Yi as plainTextToInlineText,
|
|
1
|
+
import { As as isRecord$1, Cs as linkSchema, Ji as parseInlineTextFromUnknown, Jo as DEFAULT_MEDIA_FIELD_KINDS, Ki as inlineTextToPlainText, Ni as parseBlockIconValue, Qi as parseFieldDefinitions, Xi as normalizeSelectSource, Yi as plainTextToInlineText, es as isAcceptedRepeaterGridSpan, f as sanitizeNewsletterSignupPublicContent, hc as parseContentVersionId, ic as resolveBookingBusinessTimeZone, is as resolveRepeaterGridSpanFieldId, ns as resolveRepeaterGridColumnFieldId, rc as toUtcIsoDateTimeString, rs as resolveRepeaterGridRowFieldId, t as getBlockDefinition, ts as parseRepeaterGridInteger } from "./registry-CvhFwbXJ.mjs";
|
|
2
2
|
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
3
3
|
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
|
|
@@ -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 } : {},
|