@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 { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-
|
|
1
|
+
import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-BJuOzxzn.mjs";
|
|
2
2
|
export { PageContent, toPageHydrationBootstrapConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-
|
|
1
|
+
import { n as loadPageWithDeps, t as loadPage } from "../../loadPage-CIOL3-9t.mjs";
|
|
2
2
|
export { loadPage, loadPageWithDeps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteBlockRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-
|
|
1
|
+
import { a as invalidRenderableBlock, c as readSdkPreviewPublishedPlacement, d as siteBlockRenderContext, i as collectMediaAssetSidecar, l as resolveSdkBlockManifest, n as buildRenderablePageOutline, o as projectRenderablePageOutline, r as buildSiteRenderSupport, s as readInvalidBlockAdmission, t as buildPageOutline, u as sanitizeSdkRuntimeBlockContent } from "../../pageRuntimeSupport-BnSuoHON.mjs";
|
|
2
2
|
export { buildPageOutline, buildRenderablePageOutline, buildSiteRenderSupport, collectMediaAssetSidecar, invalidRenderableBlock, projectRenderablePageOutline, readInvalidBlockAdmission, readSdkPreviewPublishedPlacement, resolveSdkBlockManifest, sanitizeSdkRuntimeBlockContent, siteBlockRenderContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as MissingBlockOverrideError } from "../pageShared-
|
|
2
|
-
import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "../servicePageContent-
|
|
1
|
+
import { d as MissingBlockOverrideError } from "../pageShared-BJuOzxzn.mjs";
|
|
2
|
+
import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "../servicePageContent-CRKbTm_7.mjs";
|
|
3
3
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-DGSAlFUK.mjs";
|
|
4
4
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-CD4d-1w7.mjs";
|
|
5
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-
|
|
6
|
-
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-
|
|
5
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-D6WrRCxX.mjs";
|
|
6
|
+
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-BiHmsvTZ.mjs";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/components/Block.server.tsx
|
|
9
9
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { x as resolveAuthoredLinkHref } from "./pageRenderPlan-
|
|
2
|
-
import { Zi as parseFieldDefinition, at as computeMediaTransformStyle, ct as resolveImageUrlWithContext$1, ft as buildResolveImageUrlContext, nt as RichText$2, ot as resolveImageSourceSetWithContext$1, st as resolveImageUrl$1, xs as sanitizeHref } from "./registry-
|
|
1
|
+
import { x as resolveAuthoredLinkHref } from "./pageRenderPlan-DJo_obpi.mjs";
|
|
2
|
+
import { Zi as parseFieldDefinition, at as computeMediaTransformStyle, ct as resolveImageUrlWithContext$1, ft as buildResolveImageUrlContext, nt as RichText$2, ot as resolveImageSourceSetWithContext$1, st as resolveImageUrl$1, xs as sanitizeHref } from "./registry-CvhFwbXJ.mjs";
|
|
3
3
|
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";
|
|
4
|
-
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-
|
|
5
|
-
import { C as projectRepeaterGridLayout$1, b as admitLayoutGridForPlan, w as projectRepeaterGridLayoutForRendering$1, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-
|
|
6
|
-
import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "./servicePageContent-
|
|
4
|
+
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-BJuOzxzn.mjs";
|
|
5
|
+
import { C as projectRepeaterGridLayout$1, b as admitLayoutGridForPlan, w as projectRepeaterGridLayoutForRendering$1, x as deriveFieldValidationPlan } from "./pageRuntimeSupport-BnSuoHON.mjs";
|
|
6
|
+
import { a as bookingDetailEvents, c as buildBookingPageOutline, d as buildCodeOwnedPageBlocks, f as createPublicBlockContentContractResolver, g as bookingSectionBlocks, h as bookingPageDesign, i as BOOKING_PAGE_BLOCK_IDS, l as bookingPageIdentity, m as bookingHero, n as SERVICE_BOOKING_BLOCK_IDS, o as bookingPageFacts, p as bookingDescription, r as buildServiceBookingOutline, s as bookingPageSeedData, t as parseServicePageContent, u as plainTextDoc } from "./servicePageContent-CRKbTm_7.mjs";
|
|
7
7
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
8
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
9
|
-
import { t as loadPage } from "./loadPage-
|
|
8
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-vgWMz1uD.mjs";
|
|
9
|
+
import { t as loadPage } from "./loadPage-CIOL3-9t.mjs";
|
|
10
10
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "./overrides-CD4d-1w7.mjs";
|
|
11
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-
|
|
11
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-D6WrRCxX.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { a as rethrowFrameworkSignal } from "./responseMedia-KRKguBC5.mjs";
|
|
1
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
2
|
-
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-
|
|
3
|
-
import { c as toEntrySubrouteContext } from "./resolvePageContent-
|
|
3
|
+
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-BZh57-ua.mjs";
|
|
4
|
+
import { c as toEntrySubrouteContext } from "./resolvePageContent-BWKUZUIn.mjs";
|
|
4
5
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
5
6
|
import { a as defineOwnDataProperty, i as resolveDataLoaderBlockContent, n as getDataLoaderOwnerPageId, t as createDataLoaderContext } from "./dataLoaderContext-lMRTfG5Z.mjs";
|
|
6
7
|
//#region src/data/dataLoaderValue.ts
|
|
@@ -263,6 +264,41 @@ function toFailureBase(context, loaderKey) {
|
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
/**
|
|
267
|
+
* One host loader's closed outcome. Its own failure becomes a value, but redirect(), notFound() or a
|
|
268
|
+
* dynamic read inside it is a Next render signal, which must reach Next rather than become a failure.
|
|
269
|
+
*/
|
|
270
|
+
async function runLoader(loader, loaderContext, loaderKey) {
|
|
271
|
+
const settled = await Promise.resolve().then(() => loader(loaderContext)).then((output) => ({
|
|
272
|
+
ran: true,
|
|
273
|
+
output
|
|
274
|
+
}), (error) => {
|
|
275
|
+
rethrowFrameworkSignal(error);
|
|
276
|
+
return { ran: false };
|
|
277
|
+
});
|
|
278
|
+
if (!settled.ran) return {
|
|
279
|
+
ok: false,
|
|
280
|
+
failure: {
|
|
281
|
+
kind: "execution-failed",
|
|
282
|
+
...toFailureBase(loaderContext, loaderKey)
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
const validation = validateDataLoaderValue(settled.output);
|
|
286
|
+
if (!validation.ok) return {
|
|
287
|
+
ok: false,
|
|
288
|
+
failure: {
|
|
289
|
+
kind: "invalid-result",
|
|
290
|
+
...toFailureBase(loaderContext, loaderKey),
|
|
291
|
+
validationIssueKind: validation.issue.kind
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
return {
|
|
295
|
+
ok: true,
|
|
296
|
+
blockId: loaderContext.blockId,
|
|
297
|
+
loaderKey,
|
|
298
|
+
value: validation.value
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
266
302
|
* Runs all matching host loaders concurrently. The function returns closed
|
|
267
303
|
* outcomes and never logs; warning ownership belongs to the shared resolver.
|
|
268
304
|
*/
|
|
@@ -283,35 +319,7 @@ async function executeCodeLoaders(page, context, overrides) {
|
|
|
283
319
|
previewStage: context.previewStage,
|
|
284
320
|
searchParams: context.searchParams
|
|
285
321
|
});
|
|
286
|
-
tasks.push((
|
|
287
|
-
let output;
|
|
288
|
-
try {
|
|
289
|
-
output = await loader(loaderContext);
|
|
290
|
-
} catch {
|
|
291
|
-
return {
|
|
292
|
-
ok: false,
|
|
293
|
-
failure: {
|
|
294
|
-
kind: "execution-failed",
|
|
295
|
-
...toFailureBase(loaderContext, loaderKey)
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
const validation = validateDataLoaderValue(output);
|
|
300
|
-
if (!validation.ok) return {
|
|
301
|
-
ok: false,
|
|
302
|
-
failure: {
|
|
303
|
-
kind: "invalid-result",
|
|
304
|
-
...toFailureBase(loaderContext, loaderKey),
|
|
305
|
-
validationIssueKind: validation.issue.kind
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
return {
|
|
309
|
-
ok: true,
|
|
310
|
-
blockId,
|
|
311
|
-
loaderKey,
|
|
312
|
-
value: validation.value
|
|
313
|
-
};
|
|
314
|
-
})());
|
|
322
|
+
tasks.push(runLoader(loader, loaderContext, loaderKey));
|
|
315
323
|
}
|
|
316
324
|
}
|
|
317
325
|
const outcomes = await Promise.all(tasks);
|
|
@@ -76,7 +76,7 @@ function toEntrySubrouteContext(entrySubrouteData) {
|
|
|
76
76
|
kind: "event-run",
|
|
77
77
|
run: {
|
|
78
78
|
...entrySubrouteData.run,
|
|
79
|
-
name: null
|
|
79
|
+
name: entrySubrouteData.run.name ?? null
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const occurrence = toOccurrenceContextFromEntrySubroute(entrySubrouteData);
|
|
@@ -63,6 +63,61 @@ function parsePublicProductCategorySelector(value) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
+
//#region src/client/frameworkSignal.ts
|
|
67
|
+
/**
|
|
68
|
+
* Next.js stops or redirects a render by throwing an error with a known `digest`: a `no-store` fetch
|
|
69
|
+
* during a static or ISR render ("Dynamic server usage"), `redirect()`, `notFound()` and a few
|
|
70
|
+
* prerender bailouts. These aren't failures. Next has to receive them unchanged, or it can't switch the
|
|
71
|
+
* route to dynamic rendering, redirect or show the not-found page, and the render fails instead.
|
|
72
|
+
*
|
|
73
|
+
* The SDK client doesn't import Next, so this matches the same digests as Next's own `unstable_rethrow`
|
|
74
|
+
* (next/dist/client/components/unstable-rethrow.js), including a signal wrapped as an error's `cause`.
|
|
75
|
+
*/
|
|
76
|
+
const SIGNAL_DIGESTS = /* @__PURE__ */ new Set([
|
|
77
|
+
"DYNAMIC_SERVER_USAGE",
|
|
78
|
+
"BAILOUT_TO_CLIENT_SIDE_RENDERING",
|
|
79
|
+
"HANGING_PROMISE_REJECTION",
|
|
80
|
+
"NEXT_PRERENDER_INTERRUPTED"
|
|
81
|
+
]);
|
|
82
|
+
const SIGNAL_DIGEST_PREFIXES = ["NEXT_REDIRECT;", "NEXT_HTTP_ERROR_FALLBACK;"];
|
|
83
|
+
function hasSignalDigest(error) {
|
|
84
|
+
if (typeof error !== "object" || error === null || !("digest" in error)) return false;
|
|
85
|
+
const { digest } = error;
|
|
86
|
+
return typeof digest === "string" && (SIGNAL_DIGESTS.has(digest) || SIGNAL_DIGEST_PREFIXES.some((prefix) => digest.startsWith(prefix)));
|
|
87
|
+
}
|
|
88
|
+
/** The framework signal this error is or wraps, if any. */
|
|
89
|
+
function findFrameworkSignal(error, depth = 0) {
|
|
90
|
+
if (hasSignalDigest(error)) return error;
|
|
91
|
+
if (depth < 5 && error instanceof Error && "cause" in error) return findFrameworkSignal(error.cause, depth + 1);
|
|
92
|
+
}
|
|
93
|
+
/** Re-throws a framework signal unchanged, so no SDK error handling retries, wraps or swallows it. */
|
|
94
|
+
function rethrowFrameworkSignal(error) {
|
|
95
|
+
const signal = findFrameworkSignal(error);
|
|
96
|
+
if (signal !== void 0) throw signal;
|
|
97
|
+
}
|
|
98
|
+
const NEXT_DYNAMIC_USAGE_MESSAGE = "[Riverbank] Next.js stopped a prerender because a page read used a no-store fetch. Create the client with createRiverbankClient from @riverbankcms/sdk/next, which reads pages with Next's cache, or mark the route as dynamic.";
|
|
99
|
+
function isDynamicServerUsage(signal) {
|
|
100
|
+
return typeof signal === "object" && signal !== null && "digest" in signal && signal.digest === "DYNAMIC_SERVER_USAGE";
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The client's rethrow. The same as rethrowFrameworkSignal, but the first time a request is stopped
|
|
104
|
+
* for dynamic server usage it also says how to fix it: a /server client used in a static or ISR route.
|
|
105
|
+
*/
|
|
106
|
+
function createClientSignalRethrow(warn) {
|
|
107
|
+
const warned = /* @__PURE__ */ new Set();
|
|
108
|
+
return (error) => {
|
|
109
|
+
const signal = findFrameworkSignal(error);
|
|
110
|
+
if (signal === void 0) return;
|
|
111
|
+
if (isDynamicServerUsage(signal) && !warned.has("[Riverbank] Next.js stopped a prerender because a page read used a no-store fetch. Create the client with createRiverbankClient from @riverbankcms/sdk/next, which reads pages with Next's cache, or mark the route as dynamic.")) {
|
|
112
|
+
warned.add(NEXT_DYNAMIC_USAGE_MESSAGE);
|
|
113
|
+
warn(NEXT_DYNAMIC_USAGE_MESSAGE);
|
|
114
|
+
}
|
|
115
|
+
throw signal;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/** The client's rethrow, warning once per process through console.warn. */
|
|
119
|
+
const rethrowClientFrameworkSignal = createClientSignalRethrow((message) => console.warn(message));
|
|
120
|
+
//#endregion
|
|
66
121
|
//#region src/client/responseMedia.ts
|
|
67
122
|
function materializeMediaNode(value, index) {
|
|
68
123
|
if (Array.isArray(value)) return value.map((item) => materializeMediaNode(item, index));
|
|
@@ -113,4 +168,4 @@ function materializeEntriesMedia(response) {
|
|
|
113
168
|
};
|
|
114
169
|
}
|
|
115
170
|
//#endregion
|
|
116
|
-
export {
|
|
171
|
+
export { rethrowFrameworkSignal as a, SUPPORTED_LOADER_ENDPOINTS as c, rethrowClientFrameworkSignal as i, isSupportedLoaderEndpoint as l, materializeLoaderMedia as n, encodePublicProductCategorySelector as o, findFrameworkSignal as r, parsePublicProductCategorySelector as s, materializeEntriesMedia as t };
|
package/dist/server/routing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as pageReadMissReason, i as contentNotFound, n as contentFound, o as pageReadMissReasonFromError, r as contentLoadFailed, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-
|
|
1
|
+
import { a as pageReadMissReason, i as contentNotFound, n as contentFound, o as pageReadMissReasonFromError, r as contentLoadFailed, s as resolvePageContent, t as RiverbankContentLoadError } from "./resolvePageContent-BWKUZUIn.mjs";
|
|
2
2
|
import { n as getRouteTemplatePrefix, r as parseRouteTemplate } from "./routeTemplate-AsKQwa47.mjs";
|
|
3
3
|
import { t as toRoutingInfo } from "./contentTypeResolver-B9vy8BrF.mjs";
|
|
4
4
|
//#region src/routing/checkRedirect.ts
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createRiverbankClient } from "./client-
|
|
2
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
3
|
-
import { t as loadPage } from "./loadPage-
|
|
1
|
+
import { t as createRiverbankClient } from "./client-m0ylCj_f.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-vgWMz1uD.mjs";
|
|
3
|
+
import { t as loadPage } from "./loadPage-CIOL3-9t.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { at as arrangementContentFacts, b as describePublicRefundPolicy, c as createCustomBlockRegistry, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-
|
|
2
|
-
import { $a as componentRuntimeRulesForTheme, Go as appearancePresets, 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,
|
|
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";
|
|
3
3
|
import { S as asDesignBlockId, T as asLayoutVariantKey, b as asAppearancePresetId } from "./customCss-BZ8YSrQg.mjs";
|
|
4
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-
|
|
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";
|
|
6
6
|
import { i as createRichTextDoc, o as isRecord$1, r as buildRichTextSchema } from "./richTextSchema-QLaQrbII.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-
|
|
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) {
|
|
@@ -197,11 +197,15 @@ function nonEmptyUnique(item) {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
const eventCategoryIdSchema = uuidSchema.transform(unsafeAsEventCategoryId);
|
|
200
|
-
const applicabilitySchema = z.discriminatedUnion("subject", [
|
|
201
|
-
subject: z.literal("
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
+
]);
|
|
205
209
|
function isActiveSection(definition) {
|
|
206
210
|
return definition.state.kind === "active";
|
|
207
211
|
}
|
|
@@ -484,7 +488,7 @@ function readSectionValue(stored, kind) {
|
|
|
484
488
|
//#region ../content-model/src/page-sections/applicability.ts
|
|
485
489
|
/** Whether one applicability covers a subject with these facts. */
|
|
486
490
|
function appliesTo(applicability, facts) {
|
|
487
|
-
if (applicability.subject
|
|
491
|
+
if (applicability.subject !== "event" || facts.subject !== "event") return applicability.subject === facts.subject;
|
|
488
492
|
const presetMatches = applicability.presets === "all" || applicability.presets.includes(facts.preset);
|
|
489
493
|
const categoryMatches = applicability.categories === "all" || facts.categoryId !== null && applicability.categories.includes(facts.categoryId);
|
|
490
494
|
return presetMatches && categoryMatches;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as hexToRgb, M as isOnColorBackgroundCandidateToken, N as onColorTokenName, P as getTextColorForBackground, S as buttonVariantIdSchema, a as formatButtonColourContractError, gt as textColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-
|
|
2
|
+
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BQzjDQ2q.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import { $o as validateManifestLookField, Ko as NodeSchema, Qo as fieldSchema,
|
|
3
|
-
import {
|
|
1
|
+
import { f as builtinTransformDefinitions } from "./pageRenderPlan-DJo_obpi.mjs";
|
|
2
|
+
import { $o as validateManifestLookField, Ko as NodeSchema, Qo as fieldSchema, Ss as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Xo as blockSectionDeclarationShape, Yo as blockCategoryEnum, Zo as builtInBlockKindsSchema, t as getBlockDefinition, zs as parseMailingListProviderScope } from "./registry-CvhFwbXJ.mjs";
|
|
3
|
+
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-KRKguBC5.mjs";
|
|
4
4
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
5
5
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-Cu-3PRvv.mjs";
|
|
6
6
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
7
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
7
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-BZh57-ua.mjs";
|
|
8
8
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
9
9
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
10
10
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|