@riverbankcms/sdk 0.183.0 → 0.185.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 +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.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 +7 -7
- 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 +7 -7
- 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 +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
- 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 +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- 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 +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as resolveManagedMediaReference, b as renderableMediaAssetSchema, h as mediaSchema, x as indexRenderableMediaAssets } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
|
|
2
2
|
//#region ../site-contracts/src/identity/loaderEndpoints.ts
|
|
3
3
|
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
4
4
|
"listPublishedEntries",
|
|
@@ -1,8 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as accordionSystemSchema } from "./accordions-
|
|
4
|
-
import { i as mediaSchema, n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
1
|
+
import { $ as parseColorTokenParts, K as hexColorSchema, X as paletteColorsFromEntries, Y as paletteColorEntries, q as isThemeColorToken, tt as themeColorTokenSchema, u as buttonSystemSchema } from "./types-CcKy8_tj.mjs";
|
|
2
|
+
import { f as assetMediaSchema, h as mediaSchema, m as imageMediaSchema, p as externalMediaSchema, v as videoMediaSchema } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
|
|
3
|
+
import { n as accordionSystemSchema } from "./accordions-C_C52VkS.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../site-contracts/src/identity/designIds.ts
|
|
6
|
+
function asDesignBlockId(value) {
|
|
7
|
+
return brandNonEmptyString(value, "DesignBlockId");
|
|
8
|
+
}
|
|
9
|
+
function asDesignBoundaryId(value) {
|
|
10
|
+
const boundaryId = brandNonEmptyString(value, "DesignBoundaryId");
|
|
11
|
+
if (!boundaryId.startsWith("boundary:")) throw new Error(`DesignBoundaryId must start with "boundary:". Received: ${value}`);
|
|
12
|
+
return boundaryId;
|
|
13
|
+
}
|
|
14
|
+
function asLayoutVariantKey(value) {
|
|
15
|
+
return brandNonEmptyString(value, "LayoutVariantKey");
|
|
16
|
+
}
|
|
17
|
+
function asAppearancePresetId(value) {
|
|
18
|
+
return brandNonEmptyString(value, "AppearancePresetId");
|
|
19
|
+
}
|
|
20
|
+
function asBoundaryOptionId(value) {
|
|
21
|
+
return brandNonEmptyString(value, "BoundaryOptionId");
|
|
22
|
+
}
|
|
23
|
+
function asPageFlowPresetId(value) {
|
|
24
|
+
return brandNonEmptyString(value, "PageFlowPresetId");
|
|
25
|
+
}
|
|
26
|
+
function asSiteStyleId(value) {
|
|
27
|
+
const siteStyleId = brandNonEmptyString(value, "SiteStyleId");
|
|
28
|
+
if (!siteStyleId.startsWith("site-style:")) throw new Error(`SiteStyleId must start with "site-style:". Received: ${value}`);
|
|
29
|
+
return siteStyleId;
|
|
30
|
+
}
|
|
31
|
+
function asDesignSystemTemplateId(value) {
|
|
32
|
+
return brandNonEmptyString(value, "DesignSystemTemplateId");
|
|
33
|
+
}
|
|
34
|
+
function makeBoundaryId(previousBlockId, nextBlockId) {
|
|
35
|
+
return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
|
|
36
|
+
}
|
|
37
|
+
function brandNonEmptyString(value, label) {
|
|
38
|
+
if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../site-contracts/src/identity/presentationVocabulary.ts
|
|
43
|
+
const arrangementModes = [
|
|
44
|
+
"list",
|
|
45
|
+
"calendar",
|
|
46
|
+
"week",
|
|
47
|
+
"combined"
|
|
48
|
+
];
|
|
49
|
+
function isArrangementMode(value) {
|
|
50
|
+
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
51
|
+
}
|
|
52
|
+
const tileTreatmentValues = [
|
|
53
|
+
"default",
|
|
54
|
+
"quiet",
|
|
55
|
+
"brand-depth"
|
|
56
|
+
];
|
|
57
|
+
const eventListTreatmentValues = [
|
|
58
|
+
"plain",
|
|
59
|
+
"lined-panel",
|
|
60
|
+
"ruled-register",
|
|
61
|
+
"editorial-register",
|
|
62
|
+
"dense-index"
|
|
63
|
+
];
|
|
64
|
+
const eyebrowTreatmentValues = [
|
|
65
|
+
"plain",
|
|
66
|
+
"accent",
|
|
67
|
+
"pill",
|
|
68
|
+
"accent-pill",
|
|
69
|
+
"pill-bounce",
|
|
70
|
+
"accent-pill-bounce"
|
|
71
|
+
];
|
|
72
|
+
const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
|
|
73
|
+
const headingDecorationOverrideValues = ["site-default", "off"];
|
|
74
|
+
const headingDecorationColorTokenValues = [
|
|
75
|
+
"text",
|
|
76
|
+
"primary",
|
|
77
|
+
"secondary",
|
|
78
|
+
"accent",
|
|
79
|
+
"border",
|
|
80
|
+
"muted"
|
|
81
|
+
];
|
|
82
|
+
const accordionIconSetValues = [
|
|
83
|
+
"plus",
|
|
84
|
+
"chevron",
|
|
85
|
+
"caret",
|
|
86
|
+
"minimal-cross"
|
|
87
|
+
];
|
|
88
|
+
const accordionIconColorTokenValues = [
|
|
89
|
+
"text",
|
|
90
|
+
"muted",
|
|
91
|
+
"primary",
|
|
92
|
+
"secondary",
|
|
93
|
+
"accent",
|
|
94
|
+
"current"
|
|
95
|
+
];
|
|
96
|
+
const accordionIconMotionValues = [
|
|
97
|
+
"none",
|
|
98
|
+
"rotate",
|
|
99
|
+
"swap"
|
|
100
|
+
];
|
|
101
|
+
//#endregion
|
|
6
102
|
//#region ../site-contracts/src/identity/siteStyleLooks.ts
|
|
7
103
|
/** Deterministic fallback order; Fulcrum is the default. */
|
|
8
104
|
const bookingPageLookIdValues = [
|
|
@@ -1160,7 +1256,9 @@ const footerEdgeIntentValues = [
|
|
|
1160
1256
|
"angle-edge",
|
|
1161
1257
|
"angle-edge-subtle",
|
|
1162
1258
|
"angle-edge-steep",
|
|
1163
|
-
"torn-edge-holes"
|
|
1259
|
+
"torn-edge-holes",
|
|
1260
|
+
"ridge-edge",
|
|
1261
|
+
"hand-drawn-wave-edge"
|
|
1164
1262
|
];
|
|
1165
1263
|
const footerEdgePreferenceSchema = z.discriminatedUnion("kind", [
|
|
1166
1264
|
z.strictObject({ kind: z.literal("style-default") }),
|
|
@@ -1275,6 +1373,137 @@ function isRecord(value) {
|
|
|
1275
1373
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1276
1374
|
}
|
|
1277
1375
|
//#endregion
|
|
1376
|
+
//#region ../site-contracts/src/theme/customCss.ts
|
|
1377
|
+
/** Global selectors that could affect elements outside theme scope */
|
|
1378
|
+
const FORBIDDEN_SELECTORS = [
|
|
1379
|
+
":root",
|
|
1380
|
+
"html",
|
|
1381
|
+
"body"
|
|
1382
|
+
];
|
|
1383
|
+
/** Universal selector - forbidden because it affects everything */
|
|
1384
|
+
const UNIVERSAL_SELECTOR = "*";
|
|
1385
|
+
/**
|
|
1386
|
+
* The start of an address on another origin: an http(s) scheme (browsers
|
|
1387
|
+
* accept `http:evil.example` without slashes), or two slashes, where a
|
|
1388
|
+
* backslash counts as a slash and whitespace between them is dropped.
|
|
1389
|
+
*/
|
|
1390
|
+
const REMOTE_ADDRESS = String.raw`(?:https?:|[/\\]\s*[/\\])`;
|
|
1391
|
+
/**
|
|
1392
|
+
* A remote address in url(), or at the start of any quoted string, which is
|
|
1393
|
+
* how image-set(), -webkit-image-set() and src() take one without url(). In a
|
|
1394
|
+
* quoted string, two slashes followed by a space are text (`'// note'`): a
|
|
1395
|
+
* browser cannot read a host that starts with a space.
|
|
1396
|
+
*/
|
|
1397
|
+
const REMOTE_URL_PATTERN = new RegExp(String.raw`url\s*\(\s*['"]?\s*${REMOTE_ADDRESS}|['"]\s*(?:https?:|[/\\]\s*[/\\](?! ))`, "i");
|
|
1398
|
+
/** Comments and quoted strings, matched left to right the way a browser reads them. */
|
|
1399
|
+
const COMMENT_OR_STRING = /\/\*[\s\S]*?\*\/|"(?:[^"\\\n]|\\[\s\S])*"|'(?:[^'\\\n]|\\[\s\S])*'/g;
|
|
1400
|
+
const DATA_URL_STRING = /^["']\s*data:/i;
|
|
1401
|
+
/**
|
|
1402
|
+
* A quoted `data:` URL holds its file inline, so the addresses inside it are
|
|
1403
|
+
* text and nothing is fetched: the standard inline SVG carries
|
|
1404
|
+
* `xmlns='http://www.w3.org/2000/svg'`. Those strings are emptied before the
|
|
1405
|
+
* remote check. Only a string the browser would also read as one is emptied,
|
|
1406
|
+
* so a comment or another string cannot pose as a `data:` URL around a real
|
|
1407
|
+
* `url()`.
|
|
1408
|
+
*/
|
|
1409
|
+
function withoutDataUrlStrings(value) {
|
|
1410
|
+
return value.replace(COMMENT_OR_STRING, (token) => DATA_URL_STRING.test(token) ? "\"\"" : token);
|
|
1411
|
+
}
|
|
1412
|
+
/** CSS comments, and escapes such as `\72` or `\/`, which can spell `url(` or `//`. */
|
|
1413
|
+
const CSS_COMMENT = /\/\*[\s\S]*?\*\//g;
|
|
1414
|
+
const CSS_ESCAPE = /\\(?:([0-9a-fA-F]{1,6})\s?|([^\n0-9a-fA-F]))/g;
|
|
1415
|
+
function decodeCss(value) {
|
|
1416
|
+
return value.replace(CSS_COMMENT, "").replace(CSS_ESCAPE, (_match, hex, char) => {
|
|
1417
|
+
if (hex === void 0) return char ?? "";
|
|
1418
|
+
const codePoint = Number.parseInt(hex, 16);
|
|
1419
|
+
return codePoint > 0 && codePoint <= 1114111 ? String.fromCodePoint(codePoint) : "�";
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
/** Pattern to detect javascript: URLs */
|
|
1423
|
+
const JAVASCRIPT_URL_PATTERN = /javascript\s*:/i;
|
|
1424
|
+
/**
|
|
1425
|
+
* Check if a single selector part (no commas) is forbidden.
|
|
1426
|
+
*/
|
|
1427
|
+
function isForbiddenSelectorPart(part) {
|
|
1428
|
+
const normalized = part.toLowerCase().trim();
|
|
1429
|
+
if (!normalized) return true;
|
|
1430
|
+
if (normalized === UNIVERSAL_SELECTOR || normalized.startsWith("* ") || normalized.endsWith(" *") || normalized.includes(" * ")) return true;
|
|
1431
|
+
return FORBIDDEN_SELECTORS.some((forbidden) => normalized === forbidden || [
|
|
1432
|
+
" ",
|
|
1433
|
+
">",
|
|
1434
|
+
"+",
|
|
1435
|
+
"~",
|
|
1436
|
+
".",
|
|
1437
|
+
"#",
|
|
1438
|
+
"["
|
|
1439
|
+
].some((suffix) => normalized.startsWith(forbidden + suffix)) || normalized.startsWith(forbidden + ":") && !normalized.startsWith(forbidden + "::"));
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Check if a selector uses sibling combinators with & that could escape scope.
|
|
1443
|
+
* Patterns like "& ~ .outside" or "& + .sibling" can select elements outside the scope.
|
|
1444
|
+
*/
|
|
1445
|
+
function hasScopeEscapingSiblingCombinator(selector) {
|
|
1446
|
+
const normalized = selector.trim();
|
|
1447
|
+
return /&\s*[+~]/.test(normalized);
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Check if a selector contains forbidden global selectors.
|
|
1451
|
+
* Handles selectors like ":root", "html body", "body.class", "body, .x", etc.
|
|
1452
|
+
*/
|
|
1453
|
+
function containsForbiddenSelector(selector) {
|
|
1454
|
+
const normalized = selector.toLowerCase().trim();
|
|
1455
|
+
if (!normalized) return true;
|
|
1456
|
+
if (hasScopeEscapingSiblingCombinator(selector)) return true;
|
|
1457
|
+
return normalized.split(",").some(isForbiddenSelectorPart);
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Validates a CSS selector for safety.
|
|
1461
|
+
*/
|
|
1462
|
+
const selectorSchema = z.string().min(1, "Selector cannot be empty").max(200, "Selector too long (max 200 characters)").refine((s) => !containsForbiddenSelector(s), { message: "Global selectors (:root, html, body, *) are not allowed" });
|
|
1463
|
+
/**
|
|
1464
|
+
* Check if a CSS value contains a remote URL.
|
|
1465
|
+
*/
|
|
1466
|
+
function containsRemoteUrl(value) {
|
|
1467
|
+
const checked = withoutDataUrlStrings(value);
|
|
1468
|
+
return REMOTE_URL_PATTERN.test(checked) || REMOTE_URL_PATTERN.test(decodeCss(checked));
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Check if a CSS value contains a javascript: URL.
|
|
1472
|
+
*/
|
|
1473
|
+
function containsJavascriptUrl(value) {
|
|
1474
|
+
return JAVASCRIPT_URL_PATTERN.test(value) || JAVASCRIPT_URL_PATTERN.test(decodeCss(value));
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Validates a CSS declaration value for safety.
|
|
1478
|
+
* Allows: url(#id), url(data:...), url(/path), var(--)
|
|
1479
|
+
* Forbids: url(http...), url(//...), javascript:
|
|
1480
|
+
*/
|
|
1481
|
+
const declarationValueSchema = z.string().max(500, "Declaration value too long (max 500 characters)").refine((v) => !containsRemoteUrl(v), { message: "Remote url() references are not allowed. Use local paths, data URIs, or fragment IDs." }).refine((v) => !containsJavascriptUrl(v), { message: "javascript: URLs are not allowed" });
|
|
1482
|
+
/**
|
|
1483
|
+
* Schema for CSS declarations object (property -> value map).
|
|
1484
|
+
*/
|
|
1485
|
+
const declarationsSchema = z.record(z.string().min(1).max(100), declarationValueSchema);
|
|
1486
|
+
/**
|
|
1487
|
+
* Schema for a single custom CSS rule.
|
|
1488
|
+
*/
|
|
1489
|
+
const customCssRuleSchema = z.object({
|
|
1490
|
+
id: z.string().min(1, "Rule ID is required").max(50, "Rule ID too long"),
|
|
1491
|
+
selector: selectorSchema,
|
|
1492
|
+
declarations: declarationsSchema
|
|
1493
|
+
});
|
|
1494
|
+
/**
|
|
1495
|
+
* Schema for block-specific CSS rule.
|
|
1496
|
+
*/
|
|
1497
|
+
const blockCustomCssRuleSchema = customCssRuleSchema.extend({ blockKind: z.string().min(1, "Block kind is required").max(50, "Block kind too long") });
|
|
1498
|
+
/**
|
|
1499
|
+
* Array of custom CSS rules for theme-level styling.
|
|
1500
|
+
*/
|
|
1501
|
+
const customCssRulesSchema = z.array(customCssRuleSchema).optional();
|
|
1502
|
+
/**
|
|
1503
|
+
* Array of block-specific CSS rules.
|
|
1504
|
+
*/
|
|
1505
|
+
const blockCustomCssRulesSchema = z.array(blockCustomCssRuleSchema).optional();
|
|
1506
|
+
//#endregion
|
|
1278
1507
|
//#region ../site-contracts/src/theme/customCssAtRules.ts
|
|
1279
1508
|
/** Valid keyframe offset values - requires % for numeric values */
|
|
1280
1509
|
const KEYFRAME_OFFSET_PATTERN = /^(from|to|\d{1,3}%)$/i;
|
|
@@ -1649,7 +1878,33 @@ const accordionIconTreatmentSchema = z.object({
|
|
|
1649
1878
|
openColorToken: z.enum(accordionIconColorTokenValues).optional(),
|
|
1650
1879
|
motion: z.enum(accordionIconMotionValues)
|
|
1651
1880
|
});
|
|
1881
|
+
const textureFinishSchema = z.enum([
|
|
1882
|
+
"paper-grain",
|
|
1883
|
+
"handmade-paper",
|
|
1884
|
+
"plaster"
|
|
1885
|
+
]);
|
|
1886
|
+
const toneFinishSchema = z.discriminatedUnion("kind", [
|
|
1887
|
+
z.object({
|
|
1888
|
+
kind: z.literal("shading"),
|
|
1889
|
+
direction: z.enum(["darker-towards-foot", "lighter-from-top"])
|
|
1890
|
+
}).strict(),
|
|
1891
|
+
z.object({
|
|
1892
|
+
kind: z.literal("glow"),
|
|
1893
|
+
colour: themeColorTokenSchema,
|
|
1894
|
+
position: z.enum(["side", "middle"])
|
|
1895
|
+
}).strict(),
|
|
1896
|
+
z.object({
|
|
1897
|
+
kind: z.literal("gradient"),
|
|
1898
|
+
colour: themeColorTokenSchema
|
|
1899
|
+
}).strict()
|
|
1900
|
+
]);
|
|
1901
|
+
const sectionTreatmentSchema = z.object({
|
|
1902
|
+
texture: z.union([z.enum(["auto", "off"]), textureFinishSchema]),
|
|
1903
|
+
tone: z.union([z.enum(["auto", "off"]), toneFinishSchema])
|
|
1904
|
+
}).strict();
|
|
1652
1905
|
const sectionStylesOverrideSchema = z.object({
|
|
1906
|
+
ground: z.object({ name: z.string().min(1) }).strict().nullable().optional(),
|
|
1907
|
+
treatment: sectionTreatmentSchema.nullable().optional(),
|
|
1653
1908
|
background: boxBackgroundSchema.nullable().optional(),
|
|
1654
1909
|
spacing: semanticSpacingSchema.nullable().optional(),
|
|
1655
1910
|
minHeight: z.enum([
|
|
@@ -2132,4 +2387,4 @@ const themeSchema = z.object({
|
|
|
2132
2387
|
styleGroups: z.record(z.string(), z.array(z.string())).optional()
|
|
2133
2388
|
});
|
|
2134
2389
|
//#endregion
|
|
2135
|
-
export {
|
|
2390
|
+
export { tileTreatmentValues as A, makeBoundaryId as B, pageDesignEditorBackgroundOverrideOwner as C, eyebrowTreatmentValues as D, eventListTreatmentValues as E, asDesignBoundaryId as F, asDesignSystemTemplateId as I, asLayoutVariantKey as L, asAppearancePresetId as M, asBoundaryOptionId as N, headingDecorationColorTokenValues as O, asDesignBlockId as P, asPageFlowPresetId as R, bookingPageLookIdValues as S, arrangementModes as T, openCardRoleValue as _, themeSchema as a, asHeaderLayoutId as b, customCssRuleSchema as c, runtimeBoxBackgroundSchema as d, fontWidthFits as f, itemRoleValues as g, cardVariantRoleValues as h, sectionTreatmentSchema as i, visibleHeadingDecorationFamilyValues as j, isArrangementMode as k, boxBackgroundOverlaySchema as l, cardRoleSchema as m, containerStylesOverrideSchema as n, headerVariantValues as o, boxlessCardVariantValue as p, sectionStylesOverrideSchema as r, blockCustomCssRuleSchema as s, cardStylesOverrideSchema as t, boxBackgroundSchema as u, surfaceCardRoleValues as v, siteChromeBackgroundOverrideOwner as w, asHeaderStyleId as x, asFooterLookId as y, asSiteStyleId as z };
|
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-BGGlrkft.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-8H1hHdXo.mjs";
|
|
3
|
+
import { t as loadPage } from "./loadPage-BZyqF_g3.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { h as mediaSchema } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
|
|
2
|
+
import { b as describePublicRefundPolicy, c as createCustomBlockRegistry, it as arrangementContentFacts, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-DmP0HVMu.mjs";
|
|
3
|
+
import { $o as resolveRepeaterGridSpanFieldId, Da as parseFieldDefinition, Fi as parseBackgroundContent, Kn as isOrdinaryPublicEvent, Qa as parseListLook, Qn as registrationDataForEventSelection, Qo as resolveRepeaterGridRowFieldId, Sa as inlineTextToPlainText, Ta as plainTextToInlineText, Vs as unsafeAsContentEntryId, Yn as planWholeSeriesParentBooking, Zo as resolveRepeaterGridColumnFieldId, a as systemBlockDefinitions, br as siteHeaderManifest, er as selectionRepresentativeEvent, js as offeringLabelForPageSurfaceSubject, ni as blockDesignCapabilityMapFromDefinitions, ns as EVENT_PRESET_VALUES, ps as isCanonicalRichTextDoc, t as getBlockDefinition, tr as publicEventCancellation, wa as parseInlineTextFromUnknown } from "./registry-DD_s7l3Y.mjs";
|
|
4
|
+
import { C as componentRuntimeRulesForSiteStyle, E as designRuntimeRulesForTheme, M as surfaceResolutionContextFromTheme, Mt as appearancePresets, O as requireCuratedSiteStyle, T as designRuntimeRulesForSiteStyle, _ as applyBlockContentVariantPolicy, b as deriveSiteStyleBlockPolicy, dt as parsePageDesignIntent, ft as rebasePageDesignIntentToSiteStyle, j as stripCompiledRuntimeStyleFields, jt as pageDesignDecisionsV2Schema, v as applySiteStyleBlockPoliciesToPageDesignIntent, w as componentRuntimeRulesForTheme, y as buildInitialPolicyPageDesignIntent } from "./lookMediaFrame-Dw6R9B0L.mjs";
|
|
5
|
+
import { L as asLayoutVariantKey, M as asAppearancePresetId, P as asDesignBlockId } from "./schema-ClDfFtz2.mjs";
|
|
4
6
|
import { h as unsafeAsEventCategoryId } from "./portalQuestions-oUyohgL9.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-
|
|
7
|
+
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-BQ1dWs1V.mjs";
|
|
6
8
|
import { a as buildRichTextSchema, h as isRecord, n as isRecord$1, o as createRichTextDoc } from "./typeGuards-DZOaGTEv.mjs";
|
|
7
|
-
import { i as
|
|
8
|
-
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-B_9JuU66.mjs";
|
|
9
|
+
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-D-n66Oqc.mjs";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
11
12
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -2396,7 +2397,8 @@ function bookingPageFacts(selection) {
|
|
|
2396
2397
|
event: selectionRepresentativeEvent(selection),
|
|
2397
2398
|
identity: bookingPageIdentity(selection),
|
|
2398
2399
|
details: bookingDetailEvents(selection),
|
|
2399
|
-
registration: registrationDataForEventSelection(selection)
|
|
2400
|
+
registration: registrationDataForEventSelection(selection),
|
|
2401
|
+
eventOverview: selection.kind === "occurrence" && Boolean(selection.cancelledEventDates?.length)
|
|
2400
2402
|
};
|
|
2401
2403
|
}
|
|
2402
2404
|
function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
@@ -2413,7 +2415,7 @@ function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
|
2413
2415
|
showCapacity: true,
|
|
2414
2416
|
showVenue: true
|
|
2415
2417
|
}
|
|
2416
|
-
}, {
|
|
2418
|
+
}, ...publicEventCancellation(event) ? [] : [{
|
|
2417
2419
|
id: BOOKING_PAGE_BLOCK_IDS.refundPolicy,
|
|
2418
2420
|
kind: "block.body-text",
|
|
2419
2421
|
purpose: "refund-policy",
|
|
@@ -2424,7 +2426,7 @@ function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
|
2424
2426
|
attrs: { level: 2 },
|
|
2425
2427
|
content: [{
|
|
2426
2428
|
type: "text",
|
|
2427
|
-
text: "
|
|
2429
|
+
text: "Cancellation policy"
|
|
2428
2430
|
}]
|
|
2429
2431
|
}, {
|
|
2430
2432
|
type: "paragraph",
|
|
@@ -2434,7 +2436,7 @@ function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
|
2434
2436
|
}]
|
|
2435
2437
|
}]
|
|
2436
2438
|
} }
|
|
2437
|
-
}], design);
|
|
2439
|
+
}]], design);
|
|
2438
2440
|
return {
|
|
2439
2441
|
name: identity.title,
|
|
2440
2442
|
path: design.path,
|
|
@@ -2502,7 +2504,7 @@ function bookingMainBlocks(event, identity, hasDetails) {
|
|
|
2502
2504
|
/** A multi-run parent must not imply that one run's facts describe all its dates. */
|
|
2503
2505
|
function bookingDetailEvents(selection) {
|
|
2504
2506
|
switch (selection.kind) {
|
|
2505
|
-
case "occurrence": return [selection.event];
|
|
2507
|
+
case "occurrence": return [selection.event, ...selection.cancelledEventDates ?? []];
|
|
2506
2508
|
case "dateChoice": return selection.dates;
|
|
2507
2509
|
case "wholeSeriesRun": return [selection.run.representative];
|
|
2508
2510
|
case "wholeSeriesParent": {
|
|
@@ -2513,11 +2515,12 @@ function bookingDetailEvents(selection) {
|
|
|
2513
2515
|
}
|
|
2514
2516
|
}
|
|
2515
2517
|
/** Seed the route's admitted facts, never select or fetch its Event a second time. */
|
|
2516
|
-
function bookingPageSeedData({ registration, details }) {
|
|
2518
|
+
function bookingPageSeedData({ registration, details, eventOverview }) {
|
|
2517
2519
|
return {
|
|
2518
2520
|
[BOOKING_PAGE_BLOCK_IDS.registration]: { ..."events" in registration ? { events: registration.events } : { wholeSeriesRunEvents: registration.wholeSeriesRunEvents } },
|
|
2519
2521
|
[BOOKING_PAGE_BLOCK_IDS.details]: { eventDetailsData: {
|
|
2520
2522
|
events: details,
|
|
2523
|
+
...eventOverview ? { eventOverview: true } : {},
|
|
2521
2524
|
sitePasses: { passes: [] },
|
|
2522
2525
|
siteMemberships: { memberships: [] }
|
|
2523
2526
|
} }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as surfaceForegroundDeclarations, d as buttonVariantIdSchema, s as unsafeAsOpaqueButtonColourToken, z as textColorValue } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
1
|
+
import { T as surfaceForegroundDeclarations, W as absoluteInkColors, d as buttonVariantIdSchema, s as unsafeAsOpaqueButtonColourToken, z as textColorValue } from "./types-CcKy8_tj.mjs";
|
|
2
|
+
import { F as isOnColorBackgroundCandidateToken, I as onColorTokenName, J as paletteInkRoles, P as groundMutedInkTokens, a as formatButtonColourContractError, ct as hexToRgb, n as compileButtonColourStates, q as paletteInkOnSolid } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
|
|
3
|
+
import { A as generateCheckableCss, C as INPUT_GROUP_ERROR_SELECTOR, D as INPUT_EDGE_COLOR_VAR, E as generateInputGroupCss, F as generateShadowCssVars, I as renderCssDeclarations, L as cardBorderDeclarations, M as RESOLVED_BUTTON_DISABLED_DECLARATIONS, N as resolvedButtonColourDeclarations, O as INPUT_ERROR_BORDER_COLOR_VAR, P as resolvedButtonFocusDeclarations, R as cardDecorationPseudoRules, T as INPUT_GROUP_SELECTOR, f as generateTypographyCss, i as compileCustomCssRules, j as generateOpaquePanelCss, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, p as generateProgressCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, w as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BjxlpVaV.mjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -787,7 +787,8 @@ function buildBridgeCssVars(config) {
|
|
|
787
787
|
return {
|
|
788
788
|
...buildColorCssVars({
|
|
789
789
|
...tokens,
|
|
790
|
-
...deriveConcreteBridgeOnTokens(tokens)
|
|
790
|
+
...deriveConcreteBridgeOnTokens(tokens),
|
|
791
|
+
...Object.fromEntries(Object.entries(absoluteInkColors).map(([name, hex]) => [name, hexToRgbChannels(hex)]))
|
|
791
792
|
}),
|
|
792
793
|
...buildTypographyCssVars(config.typography),
|
|
793
794
|
...buildFontSizeCssVars(),
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-
|
|
1
|
+
import { a as themeSchema$1 } from "./schema-ClDfFtz2.mjs";
|
|
2
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-D_8I28BB.mjs";
|
|
3
3
|
import * as fs from "fs/promises";
|
|
4
4
|
import * as path from "path";
|
|
5
5
|
//#region src/theme/loader.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as RichTextDocSchema, r as createRichTextDocFromMarkdown } from "./typeGuards-DZOaGTEv.mjs";
|
|
2
|
-
import { a as isCustomBlockClassName, l as ALLOWED_TRANSFORM_IDS, o as LAYOUT_Z_INDEX_RULE, r as customBlockLayoutPropIssues, s as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-
|
|
2
|
+
import { a as isCustomBlockClassName, l as ALLOWED_TRANSFORM_IDS, o as LAYOUT_Z_INDEX_RULE, r as customBlockLayoutPropIssues, s as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-DA_iErtG.mjs";
|
|
3
3
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/manifest/prompt/theme-summary.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as CSS_LOADING_FUNCTIONS, H as staysInsideDeclaration, V as callsCssLoadingFunction, b as VARIANT_ROLES, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-
|
|
2
|
-
import { t as accordionIconSchema } from "./accordions-
|
|
1
|
+
import { B as CSS_LOADING_FUNCTIONS, H as staysInsideDeclaration, V as callsCssLoadingFunction, b as VARIANT_ROLES, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-CcKy8_tj.mjs";
|
|
2
|
+
import { t as accordionIconSchema } from "./accordions-C_C52VkS.mjs";
|
|
3
3
|
import { c as isSafeRichTextHref, m as customLayoutSizeProblem, n as isRecord } from "./typeGuards-DZOaGTEv.mjs";
|
|
4
4
|
import { a as hasOwn, n as getVideoEmbed, o as nodePropEntries, t as VIDEO_ASPECT_RATIO_PATTERN } from "./video-DBaeSawZ.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1856,7 +1856,6 @@ const LAYOUT_NODE_SCHEMAS = {
|
|
|
1856
1856
|
siteTerms: platform("siteTerms"),
|
|
1857
1857
|
offers: data,
|
|
1858
1858
|
checkoutButtonText: text(100),
|
|
1859
|
-
emptyStateText: text(500),
|
|
1860
1859
|
giftCardsHeading: text(200),
|
|
1861
1860
|
heading: text(200),
|
|
1862
1861
|
intro: text(1e3),
|
|
@@ -86,9 +86,16 @@ const PALETTE_TOKEN_NAMES = [
|
|
|
86
86
|
"border"
|
|
87
87
|
];
|
|
88
88
|
const paletteTokenNameSchema = z.enum(PALETTE_TOKEN_NAMES);
|
|
89
|
+
/** Fixed solver endpoints, distinct from the palette-local legacy `white`. Not picker options. */
|
|
90
|
+
const absoluteInkColors = {
|
|
91
|
+
absoluteBlack: "#000000",
|
|
92
|
+
absoluteWhite: "#ffffff"
|
|
93
|
+
};
|
|
89
94
|
const themeColorBaseTokenNames = [
|
|
90
95
|
...PALETTE_TOKEN_NAMES,
|
|
91
96
|
...blockColorTokenNames,
|
|
97
|
+
"absoluteBlack",
|
|
98
|
+
"absoluteWhite",
|
|
92
99
|
"white",
|
|
93
100
|
"neutral",
|
|
94
101
|
"primaryText",
|
|
@@ -116,7 +123,7 @@ function isKnownShadeToken(value) {
|
|
|
116
123
|
const match = value.match(/^([a-zA-Z][a-zA-Z0-9]*)(?:-([0-9]{2,3}))$/);
|
|
117
124
|
if (!match) return false;
|
|
118
125
|
const [, base, shade] = match;
|
|
119
|
-
return Boolean(base && shade && isKnownBaseToken(base) && shadeStepSet.has(shade));
|
|
126
|
+
return Boolean(base && shade && isKnownBaseToken(base) && !(base in absoluteInkColors) && shadeStepSet.has(shade));
|
|
120
127
|
}
|
|
121
128
|
function isThemeColorTokenBase(value) {
|
|
122
129
|
return isKnownBaseToken(value) || isKnownShadeToken(value);
|
|
@@ -444,13 +451,14 @@ function requireSurfaceColorValue(role, value) {
|
|
|
444
451
|
function completeSurfaceForegrounds(input) {
|
|
445
452
|
const text = requireSurfaceColorValue("text", input.text);
|
|
446
453
|
const link = input.link === void 0 ? text : requireSurfaceColorValue("link", input.link);
|
|
454
|
+
const supporting = input.supporting === void 0 ? text : requireSurfaceColorValue("supporting", input.supporting);
|
|
447
455
|
return {
|
|
448
456
|
text,
|
|
449
457
|
heading: input.heading === void 0 ? text : requireSurfaceColorValue("heading", input.heading),
|
|
450
458
|
link,
|
|
451
459
|
linkHover: input.linkHover === void 0 ? link : requireSurfaceColorValue("linkHover", input.linkHover),
|
|
452
|
-
muted: input.muted === void 0 ?
|
|
453
|
-
supporting
|
|
460
|
+
muted: input.muted === void 0 ? supporting : requireSurfaceColorValue("muted", input.muted),
|
|
461
|
+
supporting
|
|
454
462
|
};
|
|
455
463
|
}
|
|
456
464
|
function surfaceForegroundValue(role, outsideProviderFallback = DEFAULT_ROLE_FALLBACKS[role]) {
|
|
@@ -516,7 +524,7 @@ function surfaceForegroundStyle(input) {
|
|
|
516
524
|
[SURFACE_FOREGROUND_CSS_VARS.link]: foregrounds.link,
|
|
517
525
|
[SURFACE_FOREGROUND_CSS_VARS.linkHover]: foregrounds.linkHover,
|
|
518
526
|
[SURFACE_FOREGROUND_CSS_VARS.supporting]: foregrounds.supporting,
|
|
519
|
-
|
|
527
|
+
[SURFACE_FOREGROUND_CSS_VARS.muted]: foregrounds.muted,
|
|
520
528
|
"--rb-surface-link-hover-decoration": hoverDecoration(input)
|
|
521
529
|
};
|
|
522
530
|
}
|
|
@@ -535,6 +543,7 @@ function surfaceForegroundInputFromResolved(foreground, color) {
|
|
|
535
543
|
link: value(roles.link),
|
|
536
544
|
linkHover: value(roles.linkHover),
|
|
537
545
|
supporting: value(roles.supporting),
|
|
546
|
+
muted: value(roles.muted),
|
|
538
547
|
hoverDecoration: foreground.hoverDecoration
|
|
539
548
|
};
|
|
540
549
|
}
|
|
@@ -1553,4 +1562,4 @@ const buttonSizeNameSchema = z.enum([
|
|
|
1553
1562
|
"xl"
|
|
1554
1563
|
]);
|
|
1555
1564
|
//#endregion
|
|
1556
|
-
export {
|
|
1565
|
+
export { parseColorTokenParts as $, surfaceInkDeclarations as A, CSS_LOADING_FUNCTIONS as B, SURFACE_INK_CSS_VARS as C, surfaceForegroundStyle as D, surfaceForegroundInputFromResolved as E, cssVarValue as F, blockColorTokenNames as G, staysInsideDeclaration as H, mergeStyles as I, normalizePaletteHex as J, hexColorSchema as K, rgbColorValue as L, surfaceInkValue as M, backgroundColorStyle as N, surfaceForegroundValue as O, borderColorStyle as P, paletteModeSchema as Q, textColorStyle as R, SURFACE_FOREGROUND_CSS_VARS as S, surfaceForegroundDeclarations as T, PALETTE_TOKEN_NAMES as U, callsCssLoadingFunction as V, absoluteInkColors as W, paletteColorsFromEntries as X, paletteColorEntries as Y, paletteColorsSchema as Z, isFreeButtonRadius as _, createStandardButtonSurfacePolicy as a, VARIANT_ROLES as b, buttonEffectApplicationSchema as c, buttonVariantIdSchema as d, parseThemeColorToken as et, buttonVisualStatesSchema as f, buttonKeyframesSchema as g, BUTTON_PART_NAMES as h, buttonSizeNameSchema as i, surfaceInkStyle as j, surfaceForegroundValueWithOpacity as k, buttonPressOffsetSchema as l, parseOpaqueButtonColourToken as m, STANDARD_BUTTON_SURFACE_POLICY as n, isVariantRole as o, opaqueButtonColourTokenSchema as p, isThemeColorToken as q, asSpecialVariantId as r, unsafeAsOpaqueButtonColourToken as s, DEFAULT_VARIANT_ALIAS_ID as t, themeColorTokenSchema as tt, buttonSystemSchema as u, parseButtonPartValue as v, completeSurfaceForegrounds as w, DEFAULT_SURFACE_TEXT_COLOR as x, SYSTEM_BLOCK_KINDS as y, textColorValue as z };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as builtinTransformDefinitions } from "./pageRenderPlan-
|
|
2
|
-
import {
|
|
3
|
-
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-
|
|
1
|
+
import { f as builtinTransformDefinitions } from "./pageRenderPlan-DmP0HVMu.mjs";
|
|
2
|
+
import { Bo as blockEditingDeclarationShape, Go as blockLookFieldShape, Jo as validateManifestLookField, Ko as builtInBlockKindsSchema, Mo as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Vo as blockEditingExtensionShape, Wo as blockCategoryEnum, qo as fieldSchema, t as getBlockDefinition, us as parseMailingListProviderScope } from "./registry-DD_s7l3Y.mjs";
|
|
3
|
+
import { c as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-D6F1tvIm.mjs";
|
|
4
4
|
import { p as customBlockLayoutSchema } from "./typeGuards-DZOaGTEv.mjs";
|
|
5
5
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
6
|
-
import { c as ALLOWED_NODE_TYPES_SET, i as customBlockLayoutSizeIssues, n as customBlockFieldDefaultIssues, r as customBlockLayoutPropIssues, t as titleSourceValueSchema, u as ALLOWED_TRANSFORM_IDS_SET } from "./titleSourceSchema-
|
|
6
|
+
import { c as ALLOWED_NODE_TYPES_SET, i as customBlockLayoutSizeIssues, n as customBlockFieldDefaultIssues, r as customBlockLayoutPropIssues, t as titleSourceValueSchema, u as ALLOWED_TRANSFORM_IDS_SET } from "./titleSourceSchema-DA_iErtG.mjs";
|
|
7
7
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
8
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
8
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-aR5W1dVF.mjs";
|
|
9
9
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
10
10
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
11
11
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|