@riverbankcms/sdk 0.178.0 → 0.180.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as arrangementContentFacts, b as describePublicRefundPolicy, c as createCustomBlockRegistry, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-DJo_obpi.mjs";
|
|
2
|
+
import { $a as componentRuntimeRulesForTheme, Go as appearancePresets, Hs as isCanonicalRichTextDoc, In as registrationDataForEventSelection, Ja as buildInitialPolicyPageDesignIntent, Ji as parseInlineTextFromUnknown, Ka as applyBlockContentVariantPolicy, Ki as inlineTextToPlainText, Nn as planWholeSeriesParentBooking, Pr as blockDesignCapabilityMapFromDefinitions, Qa as componentRuntimeRulesForSiteStyle, Qn as siteHeaderManifest, Rn as selectionRepresentativeEvent, So as pageDesignDecisionsV2Schema, Ya as deriveSiteStyleBlockPolicy, Yi as plainTextToInlineText, Zi as parseFieldDefinition, _c as unsafeAsEventCategoryId, ao as stripCompiledRuntimeStyleFields, eo as designRuntimeRulesForSiteStyle, gc as unsafeAsContentEntryId, i as systemBlockDefinitions, is as resolveRepeaterGridSpanFieldId, js as EVENT_PRESET_VALUES, na as isRecord, ns as resolveRepeaterGridColumnFieldId, oc as offeringLabelForPageSurfaceSubject, oo as surfaceResolutionContextFromTheme, pi as parseBackgroundContent, qa as applySiteStyleBlockPoliciesToPageDesignIntent, ro as requireCuratedSiteStyle, rs as resolveRepeaterGridRowFieldId, t as getBlockDefinition, to as designRuntimeRulesForTheme, vo as parsePageDesignIntent, wa as parseListLook, yo as rebasePageDesignIntentToSiteStyle } from "./registry-CvhFwbXJ.mjs";
|
|
2
3
|
import { S as asDesignBlockId, T as asLayoutVariantKey, b as asAppearancePresetId } from "./customCss-BZ8YSrQg.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { i as mediaSchema } from "./media-luf7RF22.mjs";
|
|
5
|
+
import { D as resolveRepeaterGridAcceptedSpans, E as normalizeRepeaterGridSpan, P as readPublishedBlockPlacement, S as fieldPlanToZod, T as flowRepeaterGridItems, _ as findNonPortableManifestMediaPaths, g as deriveRenderableManifestContent, h as compileManifestContentContract, m as admitTransportedRenderableManifestContent, p as admitStoredManifestContentForRendering, v as registeredManifestContentContract, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-BnSuoHON.mjs";
|
|
4
6
|
import { i as createRichTextDoc, o as isRecord$1, r as buildRichTextSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
|
-
import { a as
|
|
6
|
-
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
7
|
-
import { n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy } from "./resolveBlockData-D9yZIN3V.mjs";
|
|
7
|
+
import { a as buildPageDesignBlockBinding, c as compileEditorModelRuntime, i as blockDesignInputsForDefinition, n as isEntryBoundBlockEmpty, o as buildPageDesignEditorReadModel, r as resolveRuntimeJoinFacts, s as applyCompiledRuntimeFieldsToContent, t as applyBindingsToContent } from "./bindings-CS6ih1Yc.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
10
10
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -76,6 +76,38 @@ function compileContentTemplateRuntimeFields(input) {
|
|
|
76
76
|
issues: editorModel.issues
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region ../theme-core/src/site-styles/effectivePageDesign.ts
|
|
81
|
+
/**
|
|
82
|
+
* Every page with an applicable site style has an effective design, whether or
|
|
83
|
+
* not a design version was ever persisted. Missing persistence is ordinary
|
|
84
|
+
* default resolution, not a failure.
|
|
85
|
+
*
|
|
86
|
+
* Corrupt persisted state never reaches this function: callers keep their own
|
|
87
|
+
* invalid state untouched and only resolve `stored` values they could parse.
|
|
88
|
+
*/
|
|
89
|
+
function resolveEffectivePageDesignIntent(stored, currentSiteStyleId) {
|
|
90
|
+
if (stored) return {
|
|
91
|
+
kind: "resolved",
|
|
92
|
+
intent: currentSiteStyleId ? rebasePageDesignIntentToSiteStyle(stored, currentSiteStyleId) : stored,
|
|
93
|
+
source: "stored"
|
|
94
|
+
};
|
|
95
|
+
return currentSiteStyleId ? {
|
|
96
|
+
kind: "resolved",
|
|
97
|
+
intent: buildInitialPolicyPageDesignIntent(currentSiteStyleId),
|
|
98
|
+
source: "default"
|
|
99
|
+
} : { kind: "no-site-style" };
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region ../theme-core/src/site-styles/pageDesignVersionIntent.ts
|
|
103
|
+
/** Ordinary page versions contain decisions; the site owns their current style. */
|
|
104
|
+
const decodedPageDesignIntentSchema = z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
105
|
+
kind: "decisions",
|
|
106
|
+
decisions
|
|
107
|
+
}))], { error: (issue) => {
|
|
108
|
+
const value = issue.input;
|
|
109
|
+
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
|
|
110
|
+
} });
|
|
79
111
|
const PAGE_SECTIONS_ANCHOR_BLOCK_KIND = "system.page-sections";
|
|
80
112
|
function isSystemTemplateBlockKind(value) {
|
|
81
113
|
return value === "system.entry-slot" || value === "system.page-sections";
|
|
@@ -165,11 +197,15 @@ function nonEmptyUnique(item) {
|
|
|
165
197
|
});
|
|
166
198
|
}
|
|
167
199
|
const eventCategoryIdSchema = uuidSchema.transform(unsafeAsEventCategoryId);
|
|
168
|
-
const applicabilitySchema = z.discriminatedUnion("subject", [
|
|
169
|
-
subject: z.literal("
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
200
|
+
const applicabilitySchema = z.discriminatedUnion("subject", [
|
|
201
|
+
z.object({ subject: z.literal("service") }).strict(),
|
|
202
|
+
z.object({ subject: z.literal("team-member") }).strict(),
|
|
203
|
+
z.object({
|
|
204
|
+
subject: z.literal("event"),
|
|
205
|
+
presets: z.union([z.literal("all"), nonEmptyUnique(z.enum(EVENT_PRESET_VALUES))]),
|
|
206
|
+
categories: z.union([z.literal("all"), nonEmptyUnique(eventCategoryIdSchema)])
|
|
207
|
+
}).strict()
|
|
208
|
+
]);
|
|
173
209
|
function isActiveSection(definition) {
|
|
174
210
|
return definition.state.kind === "active";
|
|
175
211
|
}
|
|
@@ -452,7 +488,7 @@ function readSectionValue(stored, kind) {
|
|
|
452
488
|
//#region ../content-model/src/page-sections/applicability.ts
|
|
453
489
|
/** Whether one applicability covers a subject with these facts. */
|
|
454
490
|
function appliesTo(applicability, facts) {
|
|
455
|
-
if (applicability.subject
|
|
491
|
+
if (applicability.subject !== "event" || facts.subject !== "event") return applicability.subject === facts.subject;
|
|
456
492
|
const presetMatches = applicability.presets === "all" || applicability.presets.includes(facts.preset);
|
|
457
493
|
const categoryMatches = applicability.categories === "all" || facts.categoryId !== null && applicability.categories.includes(facts.categoryId);
|
|
458
494
|
return presetMatches && categoryMatches;
|
|
@@ -1804,507 +1840,731 @@ function isEntryTitleBinding(binding) {
|
|
|
1804
1840
|
if (!isRecord(binding)) return false;
|
|
1805
1841
|
return binding.source === "meta" && binding.path === "title" || binding.source === "transform" && isEntryTitleBinding(binding.input);
|
|
1806
1842
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1843
|
+
/**
|
|
1844
|
+
* The design intent a page renders with: a stored intent rebased onto the
|
|
1845
|
+
* current site style, or the style's defaults when nothing is stored, with the
|
|
1846
|
+
* look pins the style's block policies require. Null when the site has no
|
|
1847
|
+
* site style, so the page renders its content as authored.
|
|
1848
|
+
*
|
|
1849
|
+
* Blocks whose id is not a valid design block id get no policy pin; the
|
|
1850
|
+
* pipeline reports them as `invalid-block-id` diagnostics.
|
|
1851
|
+
*/
|
|
1852
|
+
function resolveOrdinaryPageDesignIntent(input) {
|
|
1853
|
+
const resolution = resolveEffectivePageDesignIntent(input.stored !== null && input.siteStyleId !== null ? {
|
|
1854
|
+
...input.stored,
|
|
1855
|
+
siteStyleId: input.siteStyleId
|
|
1856
|
+
} : null, input.siteStyleId);
|
|
1857
|
+
if (resolution.kind !== "resolved") return null;
|
|
1858
|
+
const { siteStyleId: _style, ...decisions } = applySiteStyleBlockPoliciesToPageDesignIntent(resolution.intent, input.blocks.flatMap((block) => {
|
|
1859
|
+
const blockId = toDesignBlockId(block.id);
|
|
1860
|
+
return blockId !== null ? [{
|
|
1861
|
+
blockId,
|
|
1862
|
+
blockKind: block.kind
|
|
1863
|
+
}] : [];
|
|
1864
|
+
}));
|
|
1865
|
+
return decisions;
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Materialize → policy → stored admission → design runtime → renderable proof.
|
|
1869
|
+
*
|
|
1870
|
+
* Admission sits ahead of the design runtime on purpose. `applyPageDesignRuntimeFields`
|
|
1871
|
+
* is adjacent-pair dependent throughout — per-block fields are compiled against the
|
|
1872
|
+
* *next* block's surface, boundaries are keyed to neighbouring block ids, and the
|
|
1873
|
+
* final block is treated as the page end — so it has to see the list that will
|
|
1874
|
+
* actually render. On a public page an `invalid` block is omitted entirely by
|
|
1875
|
+
* `PageRenderer`, and compiling joins to a section nobody sees produces boundaries
|
|
1876
|
+
* that then have to be approximated back into shape downstream.
|
|
1877
|
+
*/
|
|
1878
|
+
function buildOrdinaryPageRenderBlocks(input) {
|
|
1879
|
+
return buildOrdinaryPageWithContext(input);
|
|
1880
|
+
}
|
|
1881
|
+
function buildOrdinaryPageWithContext(input, preparedContext) {
|
|
1882
|
+
const design = resolvePageDesignCompilation(input);
|
|
1883
|
+
const materialized = materializeOrdinaryPageBlocks(input);
|
|
1884
|
+
const admitted = admitOrdinaryPageBlocks({
|
|
1885
|
+
blocks: design.kind === "compile" ? applyBlockContentPolicies({
|
|
1886
|
+
blocks: materialized,
|
|
1887
|
+
designState: design.designState,
|
|
1888
|
+
siteStyleId: design.siteStyleId
|
|
1889
|
+
}) : materialized,
|
|
1890
|
+
resolveContract: input.resolveBlockContentContract ?? resolveRegisteredBlockContentContract,
|
|
1891
|
+
designRuntimeOwnsStyleFields: design.kind === "compile"
|
|
1892
|
+
});
|
|
1893
|
+
const compiled = design.kind === "compile" ? compileOrdinaryPageDesignRuntime({
|
|
1894
|
+
blocks: admitted,
|
|
1895
|
+
designState: design.designState,
|
|
1896
|
+
siteStyleId: design.siteStyleId,
|
|
1897
|
+
stage: input.stage,
|
|
1898
|
+
theme: design.theme,
|
|
1899
|
+
surfaceResolutionContext: preparedContext ?? surfaceResolutionContextFromTheme(design.theme)
|
|
1900
|
+
}) : {
|
|
1901
|
+
blocks: admitted,
|
|
1902
|
+
runtimeJoins: [],
|
|
1903
|
+
diagnostics: design.diagnostics
|
|
1904
|
+
};
|
|
1905
|
+
return {
|
|
1906
|
+
blocks: compiled.blocks.map((block) => finalizeOrdinaryPageRenderBlock(block, input.stage)),
|
|
1907
|
+
runtimeJoins: compiled.runtimeJoins,
|
|
1908
|
+
diagnostics: compiled.diagnostics
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
function resolvePageDesignCompilation(input) {
|
|
1912
|
+
const parsed = decodedPageDesignIntentSchema.safeParse(input.designState);
|
|
1913
|
+
if (!parsed.success) return {
|
|
1914
|
+
kind: "skip",
|
|
1915
|
+
diagnostics: [{ kind: "invalid-design-state" }]
|
|
1916
|
+
};
|
|
1917
|
+
if (parsed.data.kind === "automatic") return {
|
|
1918
|
+
kind: "skip",
|
|
1919
|
+
diagnostics: []
|
|
1920
|
+
};
|
|
1921
|
+
const currentSiteStyleId = input.theme?.siteStyleId;
|
|
1922
|
+
if (input.theme === null || currentSiteStyleId == null) return {
|
|
1923
|
+
kind: "skip",
|
|
1924
|
+
diagnostics: [{ kind: "missing-theme-for-design-state" }]
|
|
1925
|
+
};
|
|
1926
|
+
return {
|
|
1927
|
+
kind: "compile",
|
|
1928
|
+
designState: parsed.data.decisions,
|
|
1929
|
+
siteStyleId: currentSiteStyleId,
|
|
1930
|
+
theme: input.theme
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
function materializeOrdinaryPageBlocks(input) {
|
|
1934
|
+
switch (input.source) {
|
|
1935
|
+
case "stored": return input.blocks.map((block) => mapOrdinaryPageBlock(block, input.contentByBlockId[block.id], input.stage)).filter((block) => block !== null);
|
|
1936
|
+
case "inline": return input.blocks.map((block) => ({
|
|
1937
|
+
id: block.id,
|
|
1938
|
+
kind: block.kind,
|
|
1939
|
+
purpose: block.purpose,
|
|
1940
|
+
content: cloneRecord(block.content),
|
|
1941
|
+
versions: { kind: "inline" }
|
|
1942
|
+
}));
|
|
1826
1943
|
}
|
|
1827
1944
|
}
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1945
|
+
function admitOrdinaryPageBlocks(input) {
|
|
1946
|
+
return input.blocks.map((block) => {
|
|
1947
|
+
const contract = input.resolveContract(block.kind);
|
|
1948
|
+
const nonPortable = block.versions.kind === "stored" && contract !== null ? findNonPortableManifestMediaPaths(contract, block.content) : [];
|
|
1949
|
+
const admission = nonPortable.length ? invalidContentAdmission({
|
|
1950
|
+
kind: "non_portable_media",
|
|
1951
|
+
paths: nonPortable
|
|
1952
|
+
}) : admitOrdinaryPageContent(contract, block.versions.kind, storedContentForAdmission(block.content, input.designRuntimeOwnsStyleFields));
|
|
1953
|
+
return {
|
|
1954
|
+
...block,
|
|
1955
|
+
admission
|
|
1956
|
+
};
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Where the design runtime runs it replaces every compiled style field wholesale,
|
|
1961
|
+
* so a stale persisted one never reaches the rendered page and must not be what
|
|
1962
|
+
* costs a block its admission. Dropping those fields here lets the runtime
|
|
1963
|
+
* projection put the compiled values back before the render shape is judged.
|
|
1964
|
+
* Where the runtime does not run, content is rendered as stored and is judged as
|
|
1965
|
+
* stored.
|
|
1966
|
+
*
|
|
1967
|
+
* The strip is not verdict-preserving on its own. `admitStoredManifestContent`
|
|
1968
|
+
* runs two checks: media portability over the whole content, then the strict
|
|
1969
|
+
* stored schema. Both stop seeing the stripped fields, and a compiled style field
|
|
1970
|
+
* can itself declare media (`_sectionStyles.background.image`), so portability
|
|
1971
|
+
* over those fields is checked before stripping, then re-checked against the decorated content in
|
|
1972
|
+
* `finalizeOrdinaryPageRenderBlock`. Only the schema half is deliberately
|
|
1973
|
+
* deferred there, to the render schema over the projection.
|
|
1974
|
+
*/
|
|
1975
|
+
function storedContentForAdmission(content, designRuntimeOwnsStyleFields) {
|
|
1976
|
+
return designRuntimeOwnsStyleFields ? stripCompiledRuntimeStyleFields(content) : content;
|
|
1977
|
+
}
|
|
1978
|
+
function compileOrdinaryPageDesignRuntime(input) {
|
|
1979
|
+
const compiling = input.blocks.map((block) => participatesInDesignCompilation(block, input.stage));
|
|
1980
|
+
const compiled = applyPageDesignRuntimeFields({
|
|
1830
1981
|
...input,
|
|
1831
|
-
|
|
1832
|
-
pageName: "Entry Template",
|
|
1833
|
-
pagePath: input.entry.path || "/",
|
|
1834
|
-
pagePurpose: "entry-template",
|
|
1835
|
-
renderTargetSource: {
|
|
1836
|
-
kind: "entry-template",
|
|
1837
|
-
entryId: input.entry.id,
|
|
1838
|
-
entryType: input.entry.type
|
|
1839
|
-
}
|
|
1982
|
+
blocks: input.blocks.filter((_, index) => compiling[index] === true)
|
|
1840
1983
|
});
|
|
1984
|
+
return {
|
|
1985
|
+
...compiled,
|
|
1986
|
+
blocks: restoreBlocksExcludedFromCompilation(input.blocks, compiling, compiled.blocks)
|
|
1987
|
+
};
|
|
1841
1988
|
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
now: input.now,
|
|
1856
|
-
page: projectRenderablePageOutline(templatePage),
|
|
1857
|
-
siteId: input.siteId,
|
|
1858
|
-
renderTarget: createTemplateRenderTarget(input.renderTargetSource, template.id),
|
|
1859
|
-
previewStage: input.previewStage,
|
|
1860
|
-
policy: input.blockDataPolicy,
|
|
1861
|
-
client: input.client,
|
|
1862
|
-
customBlocks: input.customBlocks
|
|
1989
|
+
/**
|
|
1990
|
+
* The compiled subset keeps the source order and its length — `applyPageDesignRuntimeFields`
|
|
1991
|
+
* returns `input.blocks.map(...)` — so walking it in step puts the excluded
|
|
1992
|
+
* blocks back where they were. Deliberately not keyed on block id: ids reach
|
|
1993
|
+
* this pipeline unvalidated (see `toDesignBlockId`) and need not be unique.
|
|
1994
|
+
*/
|
|
1995
|
+
function restoreBlocksExcludedFromCompilation(blocks, compiling, compiled) {
|
|
1996
|
+
const remaining = compiled[Symbol.iterator]();
|
|
1997
|
+
return blocks.map((block, index) => {
|
|
1998
|
+
if (compiling[index] !== true) return block;
|
|
1999
|
+
const next = remaining.next();
|
|
2000
|
+
if (next.done === true) throw new Error("Page design compilation returned fewer blocks than it was given");
|
|
2001
|
+
return next.value;
|
|
1863
2002
|
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Published pages never show an invalid block: `PageRenderer` omits it outright,
|
|
2006
|
+
* so a boundary or terminal surface compiled against it describes a join that is
|
|
2007
|
+
* not on the page. Draft pages keep them, because the authoring renderers render
|
|
2008
|
+
* an invalid block as a diagnostic panel that occupies its slot in the flow — the
|
|
2009
|
+
* authoring surface's real adjacency *is* the full block list, and skipping the
|
|
2010
|
+
* block here would hand the editor joins that leap over something visible.
|
|
2011
|
+
*
|
|
2012
|
+
* One draft-stage consumer is not an authoring renderer: the portal preview in
|
|
2013
|
+
* `apps/frontend/src/app/(site)/[[...slug]]/page.tsx` (`renderPortalPreview`)
|
|
2014
|
+
* feeds draft data to the public `Page`, which omits invalid blocks, so its
|
|
2015
|
+
* boundaries are compiled over a block it will not draw.
|
|
2016
|
+
*/
|
|
2017
|
+
function participatesInDesignCompilation(block, stage) {
|
|
2018
|
+
return stage === "draft" || block.admission.kind === "admitted";
|
|
2019
|
+
}
|
|
2020
|
+
function mapOrdinaryPageBlock(block, contentPair, stage) {
|
|
2021
|
+
if (contentPair === void 0) throw new Error(`Missing selected page content: ${block.id}`);
|
|
2022
|
+
const selected = cloneBlockContent(contentPair.selected);
|
|
2023
|
+
const published = cloneBlockContent(contentPair.published);
|
|
2024
|
+
if (stage === "published" && selected === null) return null;
|
|
1864
2025
|
return {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
entry: input.entry,
|
|
1874
|
-
subject: templateCompilerSubject(input.renderTargetSource),
|
|
1875
|
-
dateContext: resolveDateRuntimeContext(input.bookingTimeZone),
|
|
1876
|
-
template: toContentTemplate(template),
|
|
1877
|
-
page: {
|
|
1878
|
-
name: template.name || input.pageName,
|
|
1879
|
-
path: input.pagePath,
|
|
1880
|
-
purpose: input.pagePurpose
|
|
1881
|
-
},
|
|
1882
|
-
theme: input.theme,
|
|
1883
|
-
pageSections: input.pageSections,
|
|
1884
|
-
resolveEntrySlotBlocks: ({ slotKey }) => selectBlocksForDeclaredEntrySlot({
|
|
1885
|
-
declaredSlotKey: slotKey,
|
|
1886
|
-
entrySlots: input.slotContent ?? []
|
|
1887
|
-
}).map((block) => admitEntrySlotBlock(block, input.customBlocks, input.previewStage)),
|
|
1888
|
-
resolveBlockContentContract: (kind) => {
|
|
1889
|
-
const manifest = resolveSdkBlockManifest(kind, input.customBlocks);
|
|
1890
|
-
return manifest === null ? null : compileManifestContentContract(manifest);
|
|
2026
|
+
id: block.id,
|
|
2027
|
+
kind: block.kind,
|
|
2028
|
+
purpose: block.purpose ?? "content",
|
|
2029
|
+
content: cloneRecord(selected?.data ?? {}),
|
|
2030
|
+
versions: {
|
|
2031
|
+
kind: "stored",
|
|
2032
|
+
selected,
|
|
2033
|
+
published
|
|
1891
2034
|
}
|
|
2035
|
+
};
|
|
2036
|
+
}
|
|
2037
|
+
function applyPageDesignRuntimeFields(input) {
|
|
2038
|
+
const bindings = input.blocks.map((block) => buildPageDesignBlockBinding({
|
|
2039
|
+
id: block.id,
|
|
2040
|
+
kind: block.kind,
|
|
2041
|
+
currentContentId: resolveActiveContentId(block),
|
|
2042
|
+
content: block.content
|
|
2043
|
+
}));
|
|
2044
|
+
const diagnostics = bindings.flatMap((binding) => binding.kind === "invalid-block-id" ? [binding] : []);
|
|
2045
|
+
const editorBlocks = bindings.flatMap((binding) => binding.kind === "valid" ? [binding.block] : []);
|
|
2046
|
+
const contentById = new Map(input.blocks.map((block) => [block.id, block.content]));
|
|
2047
|
+
const compiledRuntime = compileEditorModelRuntime({
|
|
2048
|
+
editorModel: buildPageDesignEditorReadModel({
|
|
2049
|
+
joinResolution: {
|
|
2050
|
+
surfaceResolutionContext: input.surfaceResolutionContext,
|
|
2051
|
+
resolveFacts: resolveRuntimeJoinFacts,
|
|
2052
|
+
designRules: designRuntimeRulesForTheme(input.theme),
|
|
2053
|
+
componentRules: componentRuntimeRulesForTheme(input.theme),
|
|
2054
|
+
contentForBlock: (id) => {
|
|
2055
|
+
const content = contentById.get(id);
|
|
2056
|
+
if (content === void 0) throw new Error(`Missing page content for ${id}`);
|
|
2057
|
+
return content;
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
siteStyleId: input.siteStyleId,
|
|
2061
|
+
intent: input.designState,
|
|
2062
|
+
blocks: editorBlocks
|
|
2063
|
+
}),
|
|
2064
|
+
surfaceResolutionContext: input.surfaceResolutionContext,
|
|
2065
|
+
designRules: designRuntimeRulesForTheme(input.theme),
|
|
2066
|
+
componentRules: componentRuntimeRulesForTheme(input.theme),
|
|
2067
|
+
publicationForBlock: input.stage === "published" ? (blockId) => {
|
|
2068
|
+
const content = contentById.get(blockId);
|
|
2069
|
+
if (content === void 0) throw new Error(`Published design block has no content: ${blockId}`);
|
|
2070
|
+
return {
|
|
2071
|
+
kind: "published",
|
|
2072
|
+
facts: arrangementContentFacts(content).facts
|
|
2073
|
+
};
|
|
2074
|
+
} : void 0
|
|
2075
|
+
});
|
|
2076
|
+
const runtimeFieldsByBlockId = new Map(compiledRuntime.blocks.map((block) => [block.blockId, block.fields]));
|
|
2077
|
+
return {
|
|
2078
|
+
diagnostics,
|
|
2079
|
+
blocks: input.blocks.map((block) => {
|
|
2080
|
+
const blockId = toDesignBlockId(block.id);
|
|
2081
|
+
return applyRuntimeFieldsToOrdinaryPageBlock(block, blockId !== null ? runtimeFieldsByBlockId.get(blockId) : void 0);
|
|
2082
|
+
}),
|
|
2083
|
+
runtimeJoins: compiledRuntime.joins
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2086
|
+
function applyBlockContentPolicies(input) {
|
|
2087
|
+
return input.blocks.map((block) => {
|
|
2088
|
+
const content = applyBlockContentVariantPolicy({
|
|
2089
|
+
policy: deriveSiteStyleBlockPolicy({
|
|
2090
|
+
siteStyleId: input.siteStyleId,
|
|
2091
|
+
blockKind: block.kind
|
|
2092
|
+
}),
|
|
2093
|
+
content: block.content
|
|
2094
|
+
});
|
|
2095
|
+
return content === block.content ? block : {
|
|
2096
|
+
...block,
|
|
2097
|
+
content: cloneRecord(content)
|
|
2098
|
+
};
|
|
1892
2099
|
});
|
|
1893
2100
|
}
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
2101
|
+
function applyRuntimeFieldsToOrdinaryPageBlock(block, fields) {
|
|
2102
|
+
if (fields === void 0) return block;
|
|
2103
|
+
return {
|
|
2104
|
+
...block,
|
|
2105
|
+
content: applyCompiledRuntimeFieldsToContent(cloneRecord(block.content), fields)
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
function resolveActiveContentId(block) {
|
|
2109
|
+
return block.versions.kind === "inline" ? null : block.versions.selected?.id ?? null;
|
|
2110
|
+
}
|
|
2111
|
+
function resolvePublishedPlacement(block, stage) {
|
|
2112
|
+
const { versions } = block;
|
|
2113
|
+
return stage === "draft" && versions.kind === "stored" ? readPublishedBlockPlacement(versions.published?.id, versions.published?.data) : null;
|
|
2114
|
+
}
|
|
2115
|
+
function cloneBlockContent(content) {
|
|
2116
|
+
return content !== null ? {
|
|
2117
|
+
...content,
|
|
2118
|
+
data: cloneRecord(content.data)
|
|
2119
|
+
} : null;
|
|
2120
|
+
}
|
|
2121
|
+
function cloneRecord(value) {
|
|
2122
|
+
return structuredClone(value);
|
|
2123
|
+
}
|
|
2124
|
+
function admitOrdinaryPageContent(contract, source, content) {
|
|
2125
|
+
if (contract === null) return {
|
|
2126
|
+
kind: "invalid",
|
|
2127
|
+
error: { kind: "manifest_unavailable" }
|
|
2128
|
+
};
|
|
2129
|
+
switch (source) {
|
|
2130
|
+
case "stored": {
|
|
2131
|
+
const stored = admitStoredManifestContentForRendering(contract, content);
|
|
2132
|
+
return stored.ok ? {
|
|
2133
|
+
kind: "admitted",
|
|
2134
|
+
contract,
|
|
2135
|
+
proof: {
|
|
2136
|
+
kind: "stored",
|
|
2137
|
+
stored: stored.value
|
|
2138
|
+
}
|
|
2139
|
+
} : invalidContentAdmission(stored.error);
|
|
2140
|
+
}
|
|
2141
|
+
case "inline": {
|
|
2142
|
+
const inline = admitInlineContent(contract, content);
|
|
2143
|
+
return inline.ok ? {
|
|
2144
|
+
kind: "admitted",
|
|
2145
|
+
contract,
|
|
2146
|
+
proof: { kind: "inline" }
|
|
2147
|
+
} : invalidContentAdmission(inline.error);
|
|
2148
|
+
}
|
|
1898
2149
|
}
|
|
1899
2150
|
}
|
|
1900
|
-
/**
|
|
1901
|
-
|
|
2151
|
+
/**
|
|
2152
|
+
* Inline content is composed from already-hydrated runtime facts (a cover
|
|
2153
|
+
* image carries its public `src`) and never reaches a writer, so it is judged
|
|
2154
|
+
* by the render schema alone. Stored admission's portability check is right
|
|
2155
|
+
* for persisted rows and wrong here — the same reasoning as
|
|
2156
|
+
* `admitMaterializedTemplateContent` in `templatePageOutline.ts`.
|
|
2157
|
+
*/
|
|
2158
|
+
function admitInlineContent(contract, content) {
|
|
2159
|
+
return admitTransportedRenderableManifestContent(contract, content);
|
|
2160
|
+
}
|
|
2161
|
+
function invalidContentAdmission(error) {
|
|
1902
2162
|
return {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
...block,
|
|
1909
|
-
orderIndex,
|
|
1910
|
-
content: sanitizeSdkRuntimeBlockContent(block.blockKind, block.content ?? {}),
|
|
1911
|
-
bindings: block.bindings ?? null
|
|
1912
|
-
}))
|
|
2163
|
+
kind: "invalid",
|
|
2164
|
+
error: {
|
|
2165
|
+
kind: "invalid_manifest_content",
|
|
2166
|
+
error
|
|
2167
|
+
}
|
|
1913
2168
|
};
|
|
1914
2169
|
}
|
|
1915
|
-
|
|
2170
|
+
/**
|
|
2171
|
+
* Completes admission once the design runtime has produced the render shape.
|
|
2172
|
+
*
|
|
2173
|
+
* The runtime decoration *is* the pure projection this transition expects; it
|
|
2174
|
+
* simply cannot run per block, because it depends on the block's neighbours. So
|
|
2175
|
+
* it is applied across the list above and handed back here as the projection.
|
|
2176
|
+
*
|
|
2177
|
+
* For stored content, media portability is re-checked first, because
|
|
2178
|
+
* `storedContentForAdmission` hid the compiled style fields from the stored gate
|
|
2179
|
+
* and those fields can declare media of their own. Inline content is judged by
|
|
2180
|
+
* the render schema, as it was before compilation (`admitInlineContent`).
|
|
2181
|
+
*/
|
|
2182
|
+
function finalizeOrdinaryPageRenderBlock(block, stage) {
|
|
1916
2183
|
const base = {
|
|
1917
|
-
id: block.id
|
|
1918
|
-
contentVersionId: block.contentVersionId,
|
|
1919
|
-
...entrySlotBlockIdentity(block, previewStage),
|
|
2184
|
+
id: block.id,
|
|
1920
2185
|
kind: block.kind,
|
|
1921
2186
|
purpose: block.purpose,
|
|
1922
|
-
|
|
2187
|
+
contentVersionId: resolveActiveContentId(block),
|
|
2188
|
+
publishedPlacement: resolvePublishedPlacement(block, stage)
|
|
1923
2189
|
};
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
const
|
|
1927
|
-
if (manifest === null) return invalidRenderableBlock$1(base, { kind: "manifest_unavailable" });
|
|
1928
|
-
const renderable = admitTransportedRenderableManifestContent(compileManifestContentContract(manifest), block.content ?? {});
|
|
2190
|
+
if (block.admission.kind === "invalid") return invalidRenderableBlock(base, block.admission.error);
|
|
2191
|
+
const { contract, proof } = block.admission;
|
|
2192
|
+
const renderable = proof.kind === "stored" ? deriveStoredRenderableContent(contract, proof.stored, block.content) : admitInlineContent(contract, block.content);
|
|
1929
2193
|
return renderable.ok ? {
|
|
1930
2194
|
...base,
|
|
1931
2195
|
admission: {
|
|
1932
2196
|
kind: "renderable",
|
|
1933
2197
|
content: renderable.value
|
|
1934
2198
|
}
|
|
1935
|
-
} : invalidRenderableBlock
|
|
2199
|
+
} : invalidRenderableBlock(base, {
|
|
1936
2200
|
kind: "invalid_manifest_content",
|
|
1937
2201
|
error: renderable.error
|
|
1938
2202
|
});
|
|
1939
2203
|
}
|
|
1940
|
-
function
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
2204
|
+
function deriveStoredRenderableContent(contract, stored, decorated) {
|
|
2205
|
+
const nonPortablePaths = findNonPortableManifestMediaPaths(contract, decorated);
|
|
2206
|
+
if (nonPortablePaths.length > 0) return {
|
|
2207
|
+
ok: false,
|
|
2208
|
+
error: {
|
|
2209
|
+
kind: "non_portable_media",
|
|
2210
|
+
paths: nonPortablePaths
|
|
2211
|
+
}
|
|
1944
2212
|
};
|
|
2213
|
+
return deriveRenderableManifestContent(contract, stored, () => decorated);
|
|
1945
2214
|
}
|
|
2215
|
+
function toDesignBlockId(value) {
|
|
2216
|
+
if (value.trim().length === 0) return null;
|
|
2217
|
+
try {
|
|
2218
|
+
return asDesignBlockId(value);
|
|
2219
|
+
} catch {
|
|
2220
|
+
return null;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
blockDesignCapabilityMapFromDefinitions(systemBlockDefinitions);
|
|
2224
|
+
createManifestDefaultValues(siteHeaderManifest);
|
|
1946
2225
|
//#endregion
|
|
1947
|
-
//#region src/rendering/
|
|
1948
|
-
/**
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
2226
|
+
//#region src/rendering/systemPages/bookingPageContent.ts
|
|
2227
|
+
/** Event and service booking pages use the same title/photo treatment. */
|
|
2228
|
+
function bookingHero({ id, title, eyebrow, summary = "", image }) {
|
|
2229
|
+
return {
|
|
2230
|
+
id,
|
|
2231
|
+
kind: "block.hero",
|
|
2232
|
+
purpose: "booking-introduction",
|
|
2233
|
+
content: {
|
|
2234
|
+
eyebrow,
|
|
2235
|
+
headlineInline: plainTextToInlineText(title),
|
|
2236
|
+
subheadline: summary,
|
|
2237
|
+
variant: image ? "split" : "micro",
|
|
2238
|
+
...image ? { _sectionStyles: { background: {
|
|
2239
|
+
type: "image",
|
|
2240
|
+
image
|
|
2241
|
+
} } } : {}
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
1953
2244
|
}
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2245
|
+
function bookingPageDesign(heroId, hasImage, { theme }, detailsId) {
|
|
2246
|
+
if (!theme.siteStyleId) return null;
|
|
2247
|
+
return {
|
|
2248
|
+
...buildInitialPolicyPageDesignIntent(theme.siteStyleId),
|
|
2249
|
+
blockLookPins: [{
|
|
2250
|
+
blockId: asDesignBlockId(heroId),
|
|
2251
|
+
blockKind: "block.hero",
|
|
2252
|
+
choice: {
|
|
2253
|
+
kind: "user-pinned",
|
|
2254
|
+
value: asAppearancePresetId(hasImage ? "hero-photo-then-text" : "hero-page-head")
|
|
2255
|
+
}
|
|
2256
|
+
}, ...detailsId ? [{
|
|
2257
|
+
blockId: asDesignBlockId(detailsId),
|
|
2258
|
+
blockKind: "block.event-details",
|
|
2259
|
+
choice: {
|
|
2260
|
+
kind: "user-pinned",
|
|
2261
|
+
value: asAppearancePresetId("event-details-panel")
|
|
2262
|
+
}
|
|
2263
|
+
}] : []]
|
|
2264
|
+
};
|
|
1959
2265
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
2266
|
+
/** Booking pages always use the site's default section Looks. */
|
|
2267
|
+
function bookingSectionBlocks(sections, purpose) {
|
|
2268
|
+
return (sections ? compilePageSections(sections, {}).blocks : []).map((block) => ({
|
|
2269
|
+
id: block.id,
|
|
2270
|
+
kind: block.blockKind,
|
|
2271
|
+
purpose,
|
|
2272
|
+
content: block.content ?? {}
|
|
2273
|
+
}));
|
|
1962
2274
|
}
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
return
|
|
2275
|
+
/** The hero owns h1, including when a description was authored with its own title. */
|
|
2276
|
+
function bookingDescription(body) {
|
|
2277
|
+
return {
|
|
2278
|
+
...body,
|
|
2279
|
+
content: body.content.map(bookingDescriptionNode)
|
|
2280
|
+
};
|
|
1966
2281
|
}
|
|
1967
|
-
function
|
|
1968
|
-
return
|
|
2282
|
+
function bookingDescriptionNode(node) {
|
|
2283
|
+
return {
|
|
2284
|
+
...node,
|
|
2285
|
+
...node.type === "heading" && node.attrs?.level === 1 ? { attrs: {
|
|
2286
|
+
...node.attrs,
|
|
2287
|
+
level: 2
|
|
2288
|
+
} } : {},
|
|
2289
|
+
...node.content ? { content: node.content.map(bookingDescriptionNode) } : {}
|
|
2290
|
+
};
|
|
1969
2291
|
}
|
|
1970
|
-
|
|
2292
|
+
//#endregion
|
|
2293
|
+
//#region src/rendering/systemPages/codeOwnedPageBlocks.ts
|
|
2294
|
+
/** Code-owned pages share the ordinary design compiler and inline admission boundary. */
|
|
2295
|
+
function buildCodeOwnedPageBlocks(blocks, design, stored = null, ownerWrittenBlocks = []) {
|
|
2296
|
+
const allBlocks = [...blocks, ...ownerWrittenBlocks];
|
|
2297
|
+
const codeWrittenIds = new Set(blocks.map((block) => block.id));
|
|
2298
|
+
const result = buildOrdinaryPageRenderBlocks({
|
|
2299
|
+
source: "inline",
|
|
2300
|
+
blocks: allBlocks,
|
|
2301
|
+
stage: "published",
|
|
2302
|
+
theme: design.theme,
|
|
2303
|
+
designState: resolveOrdinaryPageDesignIntent({
|
|
2304
|
+
stored,
|
|
2305
|
+
siteStyleId: design.theme.siteStyleId ?? null,
|
|
2306
|
+
blocks: allBlocks
|
|
2307
|
+
}),
|
|
2308
|
+
resolveBlockContentContract: design.resolveBlockContentContract ?? createPublicBlockContentContractResolver(design.customBlocks)
|
|
2309
|
+
});
|
|
2310
|
+
const invalid = result.blocks.find((block) => block.admission.kind === "invalid" && block.id !== null && codeWrittenIds.has(block.id));
|
|
2311
|
+
if (invalid?.admission.kind === "invalid") throw new Error(`Code-owned page admission failed for ${invalid.kind} (${invalid.admission.error.kind})`);
|
|
1971
2312
|
return {
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
siteTerms: support.siteTerms,
|
|
1975
|
-
mailingList: support.mailingList,
|
|
1976
|
-
interactionContext: support.interactionContext,
|
|
1977
|
-
bookingTimeZone: support.bookingTimeZone,
|
|
1978
|
-
now: support.now,
|
|
1979
|
-
...support.customBlocks ? { customBlocks: support.customBlocks } : {},
|
|
1980
|
-
entriesByIdentifier: support.entriesByIdentifier,
|
|
1981
|
-
...support.mediaAssets ? { mediaAssets: support.mediaAssets } : {},
|
|
1982
|
-
pagesByIdentifier: support.pagesByIdentifier,
|
|
1983
|
-
routeMap: support.routeMap,
|
|
1984
|
-
sdkConfig: support.sdkConfig,
|
|
1985
|
-
site: support.site,
|
|
1986
|
-
siteId,
|
|
1987
|
-
supabaseUrl: support.supabaseUrl,
|
|
1988
|
-
theme: support.theme
|
|
2313
|
+
...result,
|
|
2314
|
+
blocks: result.blocks.filter((block) => block.admission.kind !== "invalid")
|
|
1989
2315
|
};
|
|
1990
2316
|
}
|
|
2317
|
+
function createPublicBlockContentContractResolver(customBlocks) {
|
|
2318
|
+
const customRegistry = createCustomBlockRegistry({ customBlocks: customBlocks?.map((manifest) => ({
|
|
2319
|
+
manifest,
|
|
2320
|
+
source: { kind: "managed-database" }
|
|
2321
|
+
})) });
|
|
2322
|
+
return (blockKind) => {
|
|
2323
|
+
const manifest = customRegistry.findManifest(blockKind)?.manifest ?? getBlockDefinition(blockKind)?.manifest;
|
|
2324
|
+
return manifest ? compileManifestContentContract(manifest) : null;
|
|
2325
|
+
};
|
|
2326
|
+
}
|
|
2327
|
+
//#endregion
|
|
2328
|
+
//#region src/rendering/systemPages/bookingPageIdentity.ts
|
|
1991
2329
|
/**
|
|
1992
|
-
*
|
|
1993
|
-
*
|
|
1994
|
-
*
|
|
1995
|
-
* or raw entry data (for custom rendering).
|
|
1996
|
-
*
|
|
1997
|
-
* @example Dynamic routing with both pages and entries
|
|
1998
|
-
* ```tsx
|
|
1999
|
-
* import { loadContent, Page, isPageContent } from '@riverbankcms/sdk';
|
|
2000
|
-
*
|
|
2001
|
-
* export default async function DynamicRoute({ params }) {
|
|
2002
|
-
* const content = await loadContent({
|
|
2003
|
-
* client,
|
|
2004
|
-
* siteId: 'site-123',
|
|
2005
|
-
* path: `/${params.slug?.join('/') || ''}`,
|
|
2006
|
-
* });
|
|
2007
|
-
*
|
|
2008
|
-
* if (isPageContent(content)) {
|
|
2009
|
-
* if (!content.theme) throw new MissingSdkThemeError(content.siteId, 'cms_theme_absent');
|
|
2010
|
-
* return <Page {...content} />;
|
|
2011
|
-
* }
|
|
2012
|
-
*
|
|
2013
|
-
* // Render entry with custom UI
|
|
2014
|
-
* return (
|
|
2015
|
-
* <article>
|
|
2016
|
-
* <h1>{content.entry.title}</h1>
|
|
2017
|
-
* <div>{content.entry.content.body}</div>
|
|
2018
|
-
* </article>
|
|
2019
|
-
* );
|
|
2020
|
-
* }
|
|
2021
|
-
* ```
|
|
2022
|
-
*
|
|
2023
|
-
* @example Entry-specific rendering based on content type
|
|
2024
|
-
* ```tsx
|
|
2025
|
-
* const content = await loadContent({ client, siteId, path });
|
|
2026
|
-
*
|
|
2027
|
-
* if (content.type === 'entry') {
|
|
2028
|
-
* switch (content.entry.type) {
|
|
2029
|
-
* case 'blog-post':
|
|
2030
|
-
* return <BlogPost entry={content.entry} theme={content.theme} />;
|
|
2031
|
-
* case 'product':
|
|
2032
|
-
* return <ProductPage entry={content.entry} theme={content.theme} />;
|
|
2033
|
-
* default:
|
|
2034
|
-
* return <GenericEntry entry={content.entry} />;
|
|
2035
|
-
* }
|
|
2036
|
-
* }
|
|
2037
|
-
*
|
|
2038
|
-
* if (!content.theme) throw new MissingSdkThemeError(content.siteId, 'cms_theme_absent');
|
|
2039
|
-
* return <Page {...content} />;
|
|
2040
|
-
* ```
|
|
2041
|
-
*
|
|
2042
|
-
* @example Preview mode for draft content
|
|
2043
|
-
* ```tsx
|
|
2044
|
-
* const content = await loadContent({
|
|
2045
|
-
* client,
|
|
2046
|
-
* siteId,
|
|
2047
|
-
* path,
|
|
2048
|
-
* preview: true, // Fetches draft content for both pages and entries
|
|
2049
|
-
* });
|
|
2050
|
-
* ```
|
|
2330
|
+
* How a booking page names itself. Only a page for one date speaks in that
|
|
2331
|
+
* date's own words: a date chooser or a course run stands for all its dates,
|
|
2332
|
+
* so it keeps the event's, whatever its first date is called.
|
|
2051
2333
|
*/
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
}), client.getPage({
|
|
2062
|
-
siteId,
|
|
2063
|
-
path,
|
|
2064
|
-
preview
|
|
2065
|
-
})]);
|
|
2066
|
-
if (siteResult.status === "rejected" || contentResult.status === "rejected") {
|
|
2067
|
-
const failures = [siteResult, contentResult].filter((result) => result.status === "rejected").map(getRejectedReason);
|
|
2068
|
-
throw failures.find((error) => !isContentLoadNotFoundError(error)) ?? failures[0];
|
|
2069
|
-
}
|
|
2070
|
-
const site = siteResult.value;
|
|
2071
|
-
const contentResponse = contentResult.value;
|
|
2072
|
-
return loadContentFromContentResponseWithDeps(deps, {
|
|
2073
|
-
client,
|
|
2074
|
-
siteId,
|
|
2075
|
-
site,
|
|
2076
|
-
contentResponse,
|
|
2077
|
-
preview,
|
|
2078
|
-
dataLoaderOverrides,
|
|
2079
|
-
searchParams
|
|
2080
|
-
});
|
|
2334
|
+
function bookingPageIdentity(selection) {
|
|
2335
|
+
const event = selectionRepresentativeEvent(selection);
|
|
2336
|
+
const ownTitle = selection.kind === "occurrence" ? event.occurrenceTitle ?? null : null;
|
|
2337
|
+
const ownDescription = selection.kind === "occurrence" ? event.occurrenceDescription ?? null : null;
|
|
2338
|
+
return {
|
|
2339
|
+
title: ownTitle ?? event.title,
|
|
2340
|
+
ownTitle,
|
|
2341
|
+
ownDescription
|
|
2342
|
+
};
|
|
2081
2343
|
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
const previewStage = preview ? "preview" : "published";
|
|
2085
|
-
const blockDataPolicy = createBlockDataLoadPolicy(dataLoaderOverrides, normalizeDataLoaderSearchParams(searchParams));
|
|
2086
|
-
const support = buildSiteRenderSupport(site, collectMediaAssetSidecar(contentResponse.mediaAssets));
|
|
2087
|
-
const templateContentSupport = toTemplateContentRenderSupport(support, siteId);
|
|
2088
|
-
if (isEntryResponse(contentResponse)) {
|
|
2089
|
-
const entryData = contentResponse.entry;
|
|
2090
|
-
const draftContent = entryData.draftContent;
|
|
2091
|
-
const hasDraftContent = draftContent && Object.keys(draftContent).length > 0;
|
|
2092
|
-
const entry = {
|
|
2093
|
-
id: entryData.id,
|
|
2094
|
-
type: entryData.type,
|
|
2095
|
-
title: entryData.title,
|
|
2096
|
-
slug: entryData.slug,
|
|
2097
|
-
path: entryData.path,
|
|
2098
|
-
status: entryData.status,
|
|
2099
|
-
publishAt: entryData.publishAt,
|
|
2100
|
-
lastPublishedAt: entryData.lastPublishedAt,
|
|
2101
|
-
content: preview && hasDraftContent ? draftContent : entryData.content,
|
|
2102
|
-
metaTitle: preview ? entryData.draftMetaTitle ?? entryData.metaTitle : entryData.metaTitle,
|
|
2103
|
-
metaDescription: preview ? entryData.draftMetaDescription ?? entryData.metaDescription : entryData.metaDescription,
|
|
2104
|
-
createdAt: entryData.createdAt,
|
|
2105
|
-
updatedAt: entryData.updatedAt
|
|
2106
|
-
};
|
|
2107
|
-
const { templatePage, resolvedData, prefetchedBlockData, loaderSnapshot, loaderFailures } = await processEntryTemplate({
|
|
2108
|
-
theme: support.theme,
|
|
2109
|
-
bookingTimeZone: support.bookingTimeZone,
|
|
2110
|
-
now: support.now,
|
|
2111
|
-
templates: contentResponse.templates,
|
|
2112
|
-
entrySlots: contentResponse.entrySlots,
|
|
2113
|
-
entry,
|
|
2114
|
-
siteId,
|
|
2115
|
-
previewStage,
|
|
2116
|
-
blockDataPolicy,
|
|
2117
|
-
client,
|
|
2118
|
-
deps,
|
|
2119
|
-
customBlocks: support.customBlocks
|
|
2120
|
-
});
|
|
2121
|
-
return {
|
|
2122
|
-
type: "entry",
|
|
2123
|
-
entry,
|
|
2124
|
-
templatePage,
|
|
2125
|
-
resolvedData,
|
|
2126
|
-
dataContext: {
|
|
2127
|
-
...siteBlockRenderContext(support),
|
|
2128
|
-
previewStage,
|
|
2129
|
-
prefetchedBlockData,
|
|
2130
|
-
loaderSnapshot,
|
|
2131
|
-
loaderFailures,
|
|
2132
|
-
contentEntry: {
|
|
2133
|
-
...entry.content ?? {},
|
|
2134
|
-
id: entry.id,
|
|
2135
|
-
slug: entry.slug,
|
|
2136
|
-
contentTypeSlug: entry.type,
|
|
2137
|
-
_entryId: entry.id,
|
|
2138
|
-
_entrySlug: entry.slug,
|
|
2139
|
-
_contentTypeSlug: entry.type
|
|
2140
|
-
}
|
|
2141
|
-
},
|
|
2142
|
-
...templateContentSupport
|
|
2143
|
-
};
|
|
2144
|
-
}
|
|
2145
|
-
if (isPageSurfaceResponse(contentResponse)) {
|
|
2146
|
-
const pageSurfaceData = contentResponse.pageSurface;
|
|
2147
|
-
const pageSurface = {
|
|
2148
|
-
id: pageSurfaceData.id,
|
|
2149
|
-
routeId: pageSurfaceData.routeId,
|
|
2150
|
-
readinessState: pageSurfaceData.readinessState,
|
|
2151
|
-
subject: pageSurfaceData.subject,
|
|
2152
|
-
title: pageSurfaceData.title,
|
|
2153
|
-
slug: pageSurfaceData.slug,
|
|
2154
|
-
path: pageSurfaceData.path,
|
|
2155
|
-
status: pageSurfaceData.status,
|
|
2156
|
-
publishAt: pageSurfaceData.publishAt,
|
|
2157
|
-
lastPublishedAt: pageSurfaceData.lastPublishedAt,
|
|
2158
|
-
content: pageSurfaceData.content,
|
|
2159
|
-
metaTitle: preview ? pageSurfaceData.draftMetaTitle ?? pageSurfaceData.metaTitle : pageSurfaceData.metaTitle,
|
|
2160
|
-
metaDescription: preview ? pageSurfaceData.draftMetaDescription ?? pageSurfaceData.metaDescription : pageSurfaceData.metaDescription,
|
|
2161
|
-
createdAt: pageSurfaceData.createdAt,
|
|
2162
|
-
updatedAt: pageSurfaceData.updatedAt,
|
|
2163
|
-
contentSource: pageSurfaceData.contentSource
|
|
2164
|
-
};
|
|
2165
|
-
const { templatePage, resolvedData, prefetchedBlockData, loaderSnapshot, loaderFailures } = await processTemplatePage({
|
|
2166
|
-
entry: pageSurface,
|
|
2167
|
-
theme: support.theme,
|
|
2168
|
-
pageSections: contentResponse.pageSections,
|
|
2169
|
-
bookingTimeZone: support.bookingTimeZone,
|
|
2170
|
-
now: support.now,
|
|
2171
|
-
templates: contentResponse.templates,
|
|
2172
|
-
slotContent: contentResponse.surfaceSlots,
|
|
2173
|
-
pageName: pageSurface.title || "Page Surface Template",
|
|
2174
|
-
pagePath: pageSurface.path || "/",
|
|
2175
|
-
pagePurpose: "page-surface-template",
|
|
2176
|
-
siteId,
|
|
2177
|
-
previewStage,
|
|
2178
|
-
blockDataPolicy,
|
|
2179
|
-
renderTargetSource: {
|
|
2180
|
-
kind: "page-surface-template",
|
|
2181
|
-
pageSurfaceId: pageSurface.id,
|
|
2182
|
-
routeId: pageSurface.routeId,
|
|
2183
|
-
subject: pageSurface.subject
|
|
2184
|
-
},
|
|
2185
|
-
client,
|
|
2186
|
-
deps,
|
|
2187
|
-
customBlocks: support.customBlocks
|
|
2188
|
-
});
|
|
2189
|
-
return {
|
|
2190
|
-
type: "pageSurface",
|
|
2191
|
-
pageSurface,
|
|
2192
|
-
templatePage,
|
|
2193
|
-
resolvedData,
|
|
2194
|
-
dataContext: {
|
|
2195
|
-
...siteBlockRenderContext(support),
|
|
2196
|
-
previewStage,
|
|
2197
|
-
prefetchedBlockData,
|
|
2198
|
-
loaderSnapshot,
|
|
2199
|
-
loaderFailures,
|
|
2200
|
-
pageSurface: {
|
|
2201
|
-
...pageSurface.content ?? {},
|
|
2202
|
-
id: pageSurface.id,
|
|
2203
|
-
slug: pageSurface.slug,
|
|
2204
|
-
subject: pageSurface.subject,
|
|
2205
|
-
_pageSurfaceId: pageSurface.id,
|
|
2206
|
-
_pageSurfaceSlug: pageSurface.slug
|
|
2207
|
-
},
|
|
2208
|
-
subject: pageSurface.subject
|
|
2209
|
-
},
|
|
2210
|
-
...templateContentSupport
|
|
2211
|
-
};
|
|
2212
|
-
}
|
|
2213
|
-
const { page: pageData } = contentResponse;
|
|
2214
|
-
const pageRecord = pageData;
|
|
2215
|
-
const canonicalPagePath = pageData.path ?? pageRecord.path ?? "/";
|
|
2216
|
-
const pageOutline = buildRenderablePageOutline({
|
|
2217
|
-
name: pageData.name,
|
|
2218
|
-
path: canonicalPagePath,
|
|
2219
|
-
fallbackPath: "/",
|
|
2220
|
-
purpose: pageData.purpose,
|
|
2221
|
-
blocks: pageData.blocks,
|
|
2222
|
-
previewStage,
|
|
2223
|
-
customBlocks: support.customBlocks
|
|
2224
|
-
});
|
|
2225
|
-
const prefetched = await resolveBlockDataWithDeps(deps, {
|
|
2226
|
-
bookingTimeZone: support.bookingTimeZone,
|
|
2227
|
-
now: support.now,
|
|
2228
|
-
page: projectRenderablePageOutline(pageOutline),
|
|
2229
|
-
siteId,
|
|
2230
|
-
renderTarget: {
|
|
2231
|
-
kind: "page",
|
|
2232
|
-
pageId: pageData.id
|
|
2233
|
-
},
|
|
2234
|
-
previewStage,
|
|
2235
|
-
policy: blockDataPolicy,
|
|
2236
|
-
client,
|
|
2237
|
-
customBlocks: support.customBlocks
|
|
2238
|
-
});
|
|
2344
|
+
/** A date's description is plain text: blank lines part paragraphs, single ones break lines. */
|
|
2345
|
+
function plainTextDoc(text) {
|
|
2239
2346
|
return {
|
|
2240
|
-
type: "
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
site: support.site,
|
|
2265
|
-
sdkConfig: support.sdkConfig,
|
|
2266
|
-
supabaseUrl: support.supabaseUrl,
|
|
2267
|
-
routeMap: support.routeMap,
|
|
2268
|
-
pagesByIdentifier: support.pagesByIdentifier,
|
|
2269
|
-
entriesByIdentifier: support.entriesByIdentifier,
|
|
2270
|
-
...support.mediaAssets ? { mediaAssets: support.mediaAssets } : {}
|
|
2271
|
-
};
|
|
2272
|
-
}
|
|
2273
|
-
function projectPagePreviewMetadata(page, pageName, canonicalPath) {
|
|
2347
|
+
type: "doc",
|
|
2348
|
+
content: text.split(/\n\s*\n/).map((paragraph) => ({
|
|
2349
|
+
type: "paragraph",
|
|
2350
|
+
content: paragraph.split("\n").flatMap((line, index) => [...index > 0 ? [{ type: "hardBreak" }] : [], ...line ? [{
|
|
2351
|
+
type: "text",
|
|
2352
|
+
text: line
|
|
2353
|
+
}] : []])
|
|
2354
|
+
}))
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
//#endregion
|
|
2358
|
+
//#region src/rendering/systemPages/bookingPageOutline.ts
|
|
2359
|
+
const BOOKING_PAGE_BLOCK_IDS = {
|
|
2360
|
+
hero: "booking-hero",
|
|
2361
|
+
details: "booking-details",
|
|
2362
|
+
description: "booking-description",
|
|
2363
|
+
registration: "booking-registration",
|
|
2364
|
+
refundPolicy: "booking-refund-policy"
|
|
2365
|
+
};
|
|
2366
|
+
/** The fixed booking outline; only its block content and style's Looks vary. */
|
|
2367
|
+
function buildBookingPageOutline(selection, design, sections) {
|
|
2368
|
+
return outlineFromFacts(bookingPageFacts(selection), design, sections);
|
|
2369
|
+
}
|
|
2370
|
+
function bookingPageFacts(selection) {
|
|
2274
2371
|
return {
|
|
2275
|
-
|
|
2276
|
-
|
|
2372
|
+
event: selectionRepresentativeEvent(selection),
|
|
2373
|
+
identity: bookingPageIdentity(selection),
|
|
2374
|
+
details: bookingDetailEvents(selection),
|
|
2375
|
+
registration: registrationDataForEventSelection(selection)
|
|
2277
2376
|
};
|
|
2278
2377
|
}
|
|
2279
|
-
function
|
|
2378
|
+
function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
2379
|
+
const sectionBlocks = bookingSectionBlocks(sections, "event-section");
|
|
2380
|
+
const main = buildCodeOwnedPageBlocks(bookingMainBlocks(event, identity, details.length > 0), design, bookingPageDesign(BOOKING_PAGE_BLOCK_IDS.hero, Boolean(event.presentation?.image), design, BOOKING_PAGE_BLOCK_IDS.details), sectionBlocks);
|
|
2381
|
+
const aside = buildCodeOwnedPageBlocks([{
|
|
2382
|
+
id: BOOKING_PAGE_BLOCK_IDS.registration,
|
|
2383
|
+
kind: "block.event-registration",
|
|
2384
|
+
purpose: "booking",
|
|
2385
|
+
content: {
|
|
2386
|
+
pageKind: "bookingPage",
|
|
2387
|
+
heading: "",
|
|
2388
|
+
buttonText: "Register",
|
|
2389
|
+
showCapacity: true,
|
|
2390
|
+
showVenue: true
|
|
2391
|
+
}
|
|
2392
|
+
}, {
|
|
2393
|
+
id: BOOKING_PAGE_BLOCK_IDS.refundPolicy,
|
|
2394
|
+
kind: "block.body-text",
|
|
2395
|
+
purpose: "refund-policy",
|
|
2396
|
+
content: { body: {
|
|
2397
|
+
type: "doc",
|
|
2398
|
+
content: [{
|
|
2399
|
+
type: "heading",
|
|
2400
|
+
attrs: { level: 2 },
|
|
2401
|
+
content: [{
|
|
2402
|
+
type: "text",
|
|
2403
|
+
text: "Cancelling"
|
|
2404
|
+
}]
|
|
2405
|
+
}, {
|
|
2406
|
+
type: "paragraph",
|
|
2407
|
+
content: [{
|
|
2408
|
+
type: "text",
|
|
2409
|
+
text: cancellingSentence(event)
|
|
2410
|
+
}]
|
|
2411
|
+
}]
|
|
2412
|
+
} }
|
|
2413
|
+
}], design);
|
|
2280
2414
|
return {
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2415
|
+
name: identity.title,
|
|
2416
|
+
path: design.path,
|
|
2417
|
+
purpose: "event-booking",
|
|
2418
|
+
blocks: main.blocks,
|
|
2419
|
+
aside: aside.blocks,
|
|
2420
|
+
runtimeJoins: []
|
|
2286
2421
|
};
|
|
2287
2422
|
}
|
|
2288
|
-
function
|
|
2423
|
+
function cancellingSentence(event) {
|
|
2424
|
+
const { refunds } = event.cancellationPolicy;
|
|
2425
|
+
return event.pricing.kind === "free" ? PUBLIC_FREE_CANCELLATION : describePublicRefundPolicy(refunds);
|
|
2426
|
+
}
|
|
2427
|
+
/** A date's own description takes the place of both the event's summary and its body. */
|
|
2428
|
+
function heroSummary(event, identity) {
|
|
2429
|
+
return identity.ownDescription ? "" : event.presentation?.summary ?? event.description ?? "";
|
|
2430
|
+
}
|
|
2431
|
+
function descriptionBody(event, identity) {
|
|
2432
|
+
if (identity.ownDescription) return plainTextDoc(identity.ownDescription);
|
|
2433
|
+
return event.content?.body ? bookingDescription(event.content.body) : null;
|
|
2434
|
+
}
|
|
2435
|
+
function bookingMainBlocks(event, identity, hasDetails) {
|
|
2436
|
+
const image = event.presentation?.image;
|
|
2437
|
+
const hero = bookingHero({
|
|
2438
|
+
id: BOOKING_PAGE_BLOCK_IDS.hero,
|
|
2439
|
+
title: identity.title,
|
|
2440
|
+
eyebrow: "Event booking",
|
|
2441
|
+
summary: heroSummary(event, identity),
|
|
2442
|
+
image
|
|
2443
|
+
});
|
|
2444
|
+
const description = descriptionBody(event, identity);
|
|
2445
|
+
return [
|
|
2446
|
+
{
|
|
2447
|
+
...hero,
|
|
2448
|
+
content: {
|
|
2449
|
+
...hero.content,
|
|
2450
|
+
...event.facts?.length ? { _pageFacts: event.facts } : {}
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
...hasDetails ? [{
|
|
2454
|
+
id: BOOKING_PAGE_BLOCK_IDS.details,
|
|
2455
|
+
kind: "block.event-details",
|
|
2456
|
+
purpose: "event-facts",
|
|
2457
|
+
content: {
|
|
2458
|
+
heading: "",
|
|
2459
|
+
showTitle: false,
|
|
2460
|
+
showDescription: false,
|
|
2461
|
+
showCapacity: false,
|
|
2462
|
+
showAcceptedPasses: true,
|
|
2463
|
+
showAcceptedMemberships: true,
|
|
2464
|
+
showCost: true,
|
|
2465
|
+
showMap: true,
|
|
2466
|
+
showOtherDates: true,
|
|
2467
|
+
showVenue: true
|
|
2468
|
+
}
|
|
2469
|
+
}] : [],
|
|
2470
|
+
...description ? [{
|
|
2471
|
+
id: BOOKING_PAGE_BLOCK_IDS.description,
|
|
2472
|
+
kind: "block.body-text",
|
|
2473
|
+
purpose: "event-description",
|
|
2474
|
+
content: { body: description }
|
|
2475
|
+
}] : []
|
|
2476
|
+
];
|
|
2477
|
+
}
|
|
2478
|
+
/** A multi-run parent must not imply that one run's facts describe all its dates. */
|
|
2479
|
+
function bookingDetailEvents(selection) {
|
|
2480
|
+
switch (selection.kind) {
|
|
2481
|
+
case "occurrence": return [selection.event];
|
|
2482
|
+
case "dateChoice": return selection.dates;
|
|
2483
|
+
case "wholeSeriesRun": return [selection.run.representative];
|
|
2484
|
+
case "wholeSeriesParent": {
|
|
2485
|
+
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
2486
|
+
return panel.kind === "single" ? [panel.run.representative] : [];
|
|
2487
|
+
}
|
|
2488
|
+
case "wholeSeriesParentUnavailable": return [];
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
/** Seed the route's admitted facts, never select or fetch its Event a second time. */
|
|
2492
|
+
function bookingPageSeedData({ registration, details }) {
|
|
2289
2493
|
return {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
publishedMetaDescription: page.publishedMetaDescription ?? null,
|
|
2297
|
-
ogImageId: page.ogImageId ?? null
|
|
2494
|
+
[BOOKING_PAGE_BLOCK_IDS.registration]: { ..."events" in registration ? { events: registration.events } : { wholeSeriesRunEvents: registration.wholeSeriesRunEvents } },
|
|
2495
|
+
[BOOKING_PAGE_BLOCK_IDS.details]: { eventDetailsData: {
|
|
2496
|
+
events: details,
|
|
2497
|
+
sitePasses: { passes: [] },
|
|
2498
|
+
siteMemberships: { memberships: [] }
|
|
2499
|
+
} }
|
|
2298
2500
|
};
|
|
2299
2501
|
}
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2502
|
+
//#endregion
|
|
2503
|
+
//#region src/rendering/systemPages/serviceBookingOutline.ts
|
|
2504
|
+
const SERVICE_BOOKING_BLOCK_IDS = {
|
|
2505
|
+
hero: "service-hero",
|
|
2506
|
+
details: "service-details",
|
|
2507
|
+
description: "service-description",
|
|
2508
|
+
booking: "service-booking"
|
|
2509
|
+
};
|
|
2510
|
+
function buildServiceBookingOutline(service, design, { content, sections }) {
|
|
2511
|
+
const ids = SERVICE_BOOKING_BLOCK_IDS;
|
|
2512
|
+
const image = content.image;
|
|
2513
|
+
const sectionBlocks = bookingSectionBlocks(sections, "service-section");
|
|
2514
|
+
const main = buildCodeOwnedPageBlocks([
|
|
2515
|
+
bookingHero({
|
|
2516
|
+
id: ids.hero,
|
|
2517
|
+
title: service.title,
|
|
2518
|
+
eyebrow: "One-to-one",
|
|
2519
|
+
summary: content.summary,
|
|
2520
|
+
image
|
|
2521
|
+
}),
|
|
2522
|
+
{
|
|
2523
|
+
id: ids.details,
|
|
2524
|
+
kind: "block.service-details",
|
|
2525
|
+
purpose: "service-facts",
|
|
2526
|
+
content: { heading: "Good to know" }
|
|
2527
|
+
},
|
|
2528
|
+
...content.body ? [{
|
|
2529
|
+
id: ids.description,
|
|
2530
|
+
kind: "block.body-text",
|
|
2531
|
+
purpose: "service-description",
|
|
2532
|
+
content: { body: bookingDescription(content.body) }
|
|
2533
|
+
}] : []
|
|
2534
|
+
], design, bookingPageDesign(ids.hero, Boolean(image), design), sectionBlocks);
|
|
2535
|
+
const aside = buildCodeOwnedPageBlocks([{
|
|
2536
|
+
id: ids.booking,
|
|
2537
|
+
kind: "block.appointment-booking",
|
|
2538
|
+
purpose: "service-booking",
|
|
2539
|
+
content: {
|
|
2540
|
+
pageKind: "bookingPage",
|
|
2541
|
+
formId: "booking-form",
|
|
2542
|
+
serviceId: service.id,
|
|
2543
|
+
heading: ""
|
|
2544
|
+
}
|
|
2545
|
+
}], design);
|
|
2546
|
+
return {
|
|
2547
|
+
name: service.title,
|
|
2548
|
+
path: design.path,
|
|
2549
|
+
purpose: "service-booking",
|
|
2550
|
+
blocks: main.blocks,
|
|
2551
|
+
aside: aside.blocks
|
|
2552
|
+
};
|
|
2305
2553
|
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2554
|
+
//#endregion
|
|
2555
|
+
//#region src/rendering/systemPages/servicePageContent.ts
|
|
2556
|
+
function parseServicePageContent(source) {
|
|
2557
|
+
const content = source.content;
|
|
2558
|
+
const image = mediaSchema.safeParse(content?.image);
|
|
2559
|
+
return {
|
|
2560
|
+
content: {
|
|
2561
|
+
summary: typeof content?.summary === "string" ? content.summary : "",
|
|
2562
|
+
image: image.success && image.data.type === "image" ? image.data : null,
|
|
2563
|
+
body: isCanonicalRichTextDoc(content?.body) ? content.body : null
|
|
2564
|
+
},
|
|
2565
|
+
sections: source.sections,
|
|
2566
|
+
mediaAssets: source.mediaAssets
|
|
2567
|
+
};
|
|
2308
2568
|
}
|
|
2309
2569
|
//#endregion
|
|
2310
|
-
export {
|
|
2570
|
+
export { buildTemplatePageOutline as _, bookingDetailEvents as a, buildBookingPageOutline as c, buildCodeOwnedPageBlocks as d, createPublicBlockContentContractResolver as f, bookingSectionBlocks as g, bookingPageDesign as h, BOOKING_PAGE_BLOCK_IDS as i, bookingPageIdentity as l, bookingHero as m, SERVICE_BOOKING_BLOCK_IDS as n, bookingPageFacts as o, bookingDescription as p, buildServiceBookingOutline as r, bookingPageSeedData as s, parseServicePageContent as t, plainTextDoc as u, readStoredSectionValues as v, selectBlocksForDeclaredEntrySlot as y };
|