@riverbankcms/sdk 0.179.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +84 -53
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +51 -15
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +306 -196
- package/dist/client/constants-CoOkvw__.mjs +100 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
- package/dist/client/portal/client.mjs +11779 -6745
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +292 -170
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +170 -104
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +10 -9
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
- package/dist/server/theme-bridge.mjs +3 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +3446 -3796
- package/package.json +2 -1
- package/dist/_dts/index-DVSipdrT.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-CTEN7gxW.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
|
@@ -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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as resolveManagedMediaReference, i as mediaSchema, l as renderableMediaAssetSchema, u as indexRenderableMediaAssets } from "./media-
|
|
1
|
+
import { d as resolveManagedMediaReference, i as mediaSchema, l as renderableMediaAssetSchema, u as indexRenderableMediaAssets } from "./media-gvfIw3z8.mjs";
|
|
2
2
|
//#region ../site-contracts/src/identity/loaderEndpoints.ts
|
|
3
3
|
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
4
4
|
"listPublishedEntries",
|
|
@@ -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
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { G as paletteColorsFromEntries, H as isThemeColorToken, J as parseColorTokenParts, V as hexColorSchema, W as paletteColorEntries, X as themeColorTokenSchema, u as buttonSystemSchema } from "./types-BKaBZFjD.mjs";
|
|
2
|
+
import { _ as headingDecorationColorTokenValues, b as tileTreatmentValues, c as declarationsSchema, d as accordionIconMotionValues, f as accordionIconSetValues, g as eyebrowTreatmentValues, h as eventListTreatmentValues, i as containsRemoteUrl, k as asSiteStyleId, l as selectorSchema, m as decorativeTransitionIntentValues, n as blockCustomCssRulesSchema, o as customCssRulesSchema, r as containsJavascriptUrl, s as declarationValueSchema, u as accordionIconColorTokenValues, v as headingDecorationOverrideValues, x as visibleHeadingDecorationFamilyValues } from "./customCss-C9kgPHvr.mjs";
|
|
3
|
+
import { n as accordionSystemSchema } from "./accordions-By_0Ykks.mjs";
|
|
4
|
+
import { i as mediaSchema, n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
//#region ../site-contracts/src/identity/siteStyleLooks.ts
|
|
6
7
|
/** Deterministic fallback order; Fulcrum is the default. */
|
|
@@ -215,114 +216,6 @@ function validateUniqueCardVariantRoles(system, ctx) {
|
|
|
215
216
|
}
|
|
216
217
|
const cardSystemSchema = z.object({ variants: z.array(cardVariantSchema).min(1).max(3) }).superRefine(validateUniqueCardVariantRoles);
|
|
217
218
|
//#endregion
|
|
218
|
-
//#region ../site-contracts/src/theme/accordions.ts
|
|
219
|
-
/**
|
|
220
|
-
* Accordion icon styles for expand/collapse indicators
|
|
221
|
-
*/
|
|
222
|
-
const accordionIconSchema = z.enum([
|
|
223
|
-
"plus-minus",
|
|
224
|
-
"chevron",
|
|
225
|
-
"caret",
|
|
226
|
-
"arrow",
|
|
227
|
-
"circle-plus-minus"
|
|
228
|
-
]);
|
|
229
|
-
/**
|
|
230
|
-
* Accordion configuration for a theme
|
|
231
|
-
* Single style per theme (no variants needed)
|
|
232
|
-
*/
|
|
233
|
-
const accordionSystemSchema = z.object({
|
|
234
|
-
background: z.object({
|
|
235
|
-
type: z.literal("solid"),
|
|
236
|
-
colorToken: themeColorTokenSchema
|
|
237
|
-
}).nullable(),
|
|
238
|
-
spacing: z.enum([
|
|
239
|
-
"none",
|
|
240
|
-
"compact",
|
|
241
|
-
"cozy",
|
|
242
|
-
"medium",
|
|
243
|
-
"comfortable",
|
|
244
|
-
"spacious"
|
|
245
|
-
]),
|
|
246
|
-
corners: z.enum([
|
|
247
|
-
"square",
|
|
248
|
-
"soft",
|
|
249
|
-
"rounded",
|
|
250
|
-
"pill"
|
|
251
|
-
]).nullable(),
|
|
252
|
-
border: z.object({
|
|
253
|
-
widthClass: z.string(),
|
|
254
|
-
colorToken: themeColorTokenSchema
|
|
255
|
-
}).nullable(),
|
|
256
|
-
shadow: z.object({
|
|
257
|
-
elevation: z.enum([
|
|
258
|
-
"none",
|
|
259
|
-
"low",
|
|
260
|
-
"medium",
|
|
261
|
-
"high"
|
|
262
|
-
]),
|
|
263
|
-
softness: z.enum([
|
|
264
|
-
"soft",
|
|
265
|
-
"crisp",
|
|
266
|
-
"hard"
|
|
267
|
-
]).nullable(),
|
|
268
|
-
position: z.enum(["bottom", "bottom-right"])
|
|
269
|
-
}).nullable(),
|
|
270
|
-
icon: z.object({
|
|
271
|
-
style: accordionIconSchema,
|
|
272
|
-
position: z.enum(["left", "right"]),
|
|
273
|
-
size: z.enum([
|
|
274
|
-
"sm",
|
|
275
|
-
"md",
|
|
276
|
-
"lg"
|
|
277
|
-
]),
|
|
278
|
-
colorToken: themeColorTokenSchema.optional()
|
|
279
|
-
}),
|
|
280
|
-
trigger: z.object({
|
|
281
|
-
textColorToken: themeColorTokenSchema,
|
|
282
|
-
fontWeight: z.enum([
|
|
283
|
-
"regular",
|
|
284
|
-
"medium",
|
|
285
|
-
"semibold",
|
|
286
|
-
"bold"
|
|
287
|
-
]).nullable(),
|
|
288
|
-
fontFamily: z.enum(["body", "heading"]).optional(),
|
|
289
|
-
fontScale: z.enum([
|
|
290
|
-
"body",
|
|
291
|
-
"md",
|
|
292
|
-
"lg"
|
|
293
|
-
]).optional(),
|
|
294
|
-
letterSpacing: z.enum([
|
|
295
|
-
"normal",
|
|
296
|
-
"tight",
|
|
297
|
-
"wide"
|
|
298
|
-
]).optional(),
|
|
299
|
-
textTransform: z.enum(["none", "uppercase"]).optional()
|
|
300
|
-
}),
|
|
301
|
-
hover: z.object({
|
|
302
|
-
backgroundColorToken: themeColorTokenSchema.optional(),
|
|
303
|
-
textColorToken: themeColorTokenSchema.optional(),
|
|
304
|
-
borderColorToken: themeColorTokenSchema.optional()
|
|
305
|
-
}),
|
|
306
|
-
openState: z.object({
|
|
307
|
-
backgroundColorToken: themeColorTokenSchema.optional(),
|
|
308
|
-
triggerColorToken: themeColorTokenSchema.optional(),
|
|
309
|
-
accent: z.object({
|
|
310
|
-
edge: z.enum([
|
|
311
|
-
"left",
|
|
312
|
-
"top",
|
|
313
|
-
"bottom"
|
|
314
|
-
]),
|
|
315
|
-
colorToken: themeColorTokenSchema,
|
|
316
|
-
thickness: z.enum([
|
|
317
|
-
"thin",
|
|
318
|
-
"medium",
|
|
319
|
-
"thick"
|
|
320
|
-
])
|
|
321
|
-
}).optional()
|
|
322
|
-
}).optional(),
|
|
323
|
-
content: z.object({ textColorToken: themeColorTokenSchema })
|
|
324
|
-
});
|
|
325
|
-
//#endregion
|
|
326
219
|
//#region ../site-contracts/src/theme/inputs.ts
|
|
327
220
|
/**
|
|
328
221
|
* Input styling configuration for a theme
|
|
@@ -1445,8 +1338,12 @@ const supportsAtRuleSchema = z.object({
|
|
|
1445
1338
|
function containsBlockedAtRule(css) {
|
|
1446
1339
|
return BLOCKED_AT_RULE_PATTERN.test(css);
|
|
1447
1340
|
}
|
|
1448
|
-
/**
|
|
1449
|
-
|
|
1341
|
+
/**
|
|
1342
|
+
* Raw CSS validation - blocks @import, @charset, must start with @.
|
|
1343
|
+
* A raw at-rule holds whole declarations, so it gets the same url() and
|
|
1344
|
+
* javascript: checks as a typed rule's declaration values.
|
|
1345
|
+
*/
|
|
1346
|
+
const rawCssSchema = z.string().min(1, "CSS is required").max(5e3, "Raw CSS too long (max 5000 characters)").refine((css) => css.trim().startsWith("@"), { message: "Raw at-rule must start with @" }).refine((css) => !containsBlockedAtRule(css), { message: `Blocked at-rules: ${BLOCKED_AT_RULES.join(", ")}. Use typed at-rules or local assets instead.` }).refine((css) => !containsRemoteUrl(css), { message: "Remote url() references are not allowed. Use local paths, data URIs, or fragment IDs." }).refine((css) => !containsJavascriptUrl(css), { message: "javascript: URLs are not allowed" });
|
|
1450
1347
|
/** Raw at-rule schema */
|
|
1451
1348
|
const rawAtRuleSchema = z.object({
|
|
1452
1349
|
id: ruleIdSchema,
|
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-CDndhbYO.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BKstMBmX.mjs";
|
|
3
|
+
import { t as loadPage } from "./loadPage-IgNnZaqr.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { at as arrangementContentFacts, b as describePublicRefundPolicy, c as createCustomBlockRegistry, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-
|
|
2
|
-
import { $a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { at as arrangementContentFacts, b as describePublicRefundPolicy, c as createCustomBlockRegistry, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-B7iULvKe.mjs";
|
|
2
|
+
import { $a as designRuntimeRulesForTheme, $o as resolveRepeaterGridRowFieldId, Es as EVENT_PRESET_VALUES, Ga as applySiteStyleBlockPoliciesToPageDesignIntent, In as registrationDataForEventSelection, Ji as parseInlineTextFromUnknown, Ka as buildInitialPolicyPageDesignIntent, Ki as inlineTextToPlainText, Ls as isCanonicalRichTextDoc, Nn as planWholeSeriesParentBooking, Pr as blockDesignCapabilityMapFromDefinitions, Qa as designRuntimeRulesForSiteStyle, Qn as siteHeaderManifest, Qo as resolveRepeaterGridColumnFieldId, Rn as selectionRepresentativeEvent, Sa as parseListLook, Uo as appearancePresets, Wa as applyBlockContentVariantPolicy, Xa as componentRuntimeRulesForSiteStyle, Yi as plainTextToInlineText, Za as componentRuntimeRulesForTheme, Zi as parseFieldDefinition, _o as rebasePageDesignIntentToSiteStyle, bo as pageDesignDecisionsV2Schema, dc as unsafeAsContentEntryId, es as resolveRepeaterGridSpanFieldId, go as parsePageDesignIntent, i as systemBlockDefinitions, io as surfaceResolutionContextFromTheme, pi as parseBackgroundContent, qa as deriveSiteStyleBlockPolicy, ro as stripCompiledRuntimeStyleFields, t as getBlockDefinition, tc as offeringLabelForPageSurfaceSubject, to as requireCuratedSiteStyle } from "./registry-DM9dHfDC.mjs";
|
|
3
|
+
import { D as asLayoutVariantKey, S as asAppearancePresetId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
|
|
4
|
+
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-BytMroxn.mjs";
|
|
6
|
+
import { d as createRichTextDoc, h as isRecord, n as isRecord$1, u as buildRichTextSchema } from "./typeGuards-CTW_9AXq.mjs";
|
|
7
|
+
import { i as mediaSchema } from "./media-gvfIw3z8.mjs";
|
|
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-DxojjtK3.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
10
11
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -197,11 +198,15 @@ function nonEmptyUnique(item) {
|
|
|
197
198
|
});
|
|
198
199
|
}
|
|
199
200
|
const eventCategoryIdSchema = uuidSchema.transform(unsafeAsEventCategoryId);
|
|
200
|
-
const applicabilitySchema = z.discriminatedUnion("subject", [
|
|
201
|
-
subject: z.literal("
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
const applicabilitySchema = z.discriminatedUnion("subject", [
|
|
202
|
+
z.object({ subject: z.literal("service") }).strict(),
|
|
203
|
+
z.object({ subject: z.literal("team-member") }).strict(),
|
|
204
|
+
z.object({
|
|
205
|
+
subject: z.literal("event"),
|
|
206
|
+
presets: z.union([z.literal("all"), nonEmptyUnique(z.enum(EVENT_PRESET_VALUES))]),
|
|
207
|
+
categories: z.union([z.literal("all"), nonEmptyUnique(eventCategoryIdSchema)])
|
|
208
|
+
}).strict()
|
|
209
|
+
]);
|
|
205
210
|
function isActiveSection(definition) {
|
|
206
211
|
return definition.state.kind === "active";
|
|
207
212
|
}
|
|
@@ -484,7 +489,7 @@ function readSectionValue(stored, kind) {
|
|
|
484
489
|
//#region ../content-model/src/page-sections/applicability.ts
|
|
485
490
|
/** Whether one applicability covers a subject with these facts. */
|
|
486
491
|
function appliesTo(applicability, facts) {
|
|
487
|
-
if (applicability.subject
|
|
492
|
+
if (applicability.subject !== "event" || facts.subject !== "event") return applicability.subject === facts.subject;
|
|
488
493
|
const presetMatches = applicability.presets === "all" || applicability.presets.includes(facts.preset);
|
|
489
494
|
const categoryMatches = applicability.categories === "all" || facts.categoryId !== null && applicability.categories.includes(facts.categoryId);
|
|
490
495
|
return presetMatches && categoryMatches;
|
|
@@ -513,9 +518,9 @@ Object.freeze({
|
|
|
513
518
|
*/
|
|
514
519
|
const SECTION_VALUES_CONTENT_KEY = "sections";
|
|
515
520
|
function readStoredSectionValues(content) {
|
|
516
|
-
if (!isRecord
|
|
521
|
+
if (!isRecord(content)) return {};
|
|
517
522
|
const sections = content[SECTION_VALUES_CONTENT_KEY];
|
|
518
|
-
return isRecord
|
|
523
|
+
return isRecord(sections) ? sections : {};
|
|
519
524
|
}
|
|
520
525
|
//#endregion
|
|
521
526
|
//#region ../content-model/src/page-sections/facts.ts
|
|
@@ -1363,7 +1368,7 @@ function ensureFieldValue(field, raw, ctx) {
|
|
|
1363
1368
|
return (Array.isArray(value) ? value : []).map((item) => ensureRepeaterItem(field, item, ctx));
|
|
1364
1369
|
}
|
|
1365
1370
|
function ensureRepeaterItem(field, value, ctx) {
|
|
1366
|
-
const itemData = isRecord
|
|
1371
|
+
const itemData = isRecord(value) ? value : {};
|
|
1367
1372
|
const itemType = typeof itemData._type === "string" ? itemData._type : Object.keys(field.itemTypes ?? {})[0] ?? "";
|
|
1368
1373
|
const fields = field.polymorphic ? field.itemTypes[itemType]?.fields ?? [] : getRepeaterChildFields(field);
|
|
1369
1374
|
return {
|
|
@@ -1441,7 +1446,7 @@ function pageSectionBlockKind(kind) {
|
|
|
1441
1446
|
/** Section Looks stored on the template anchor. Full pages only: booking pages always use the style's default (README decision 8). */
|
|
1442
1447
|
function pageSectionLookOverrides(blocks) {
|
|
1443
1448
|
const looks = blocks.find((block) => block.blockKind === PAGE_SECTIONS_ANCHOR_BLOCK_KIND)?.content?.looks;
|
|
1444
|
-
return isRecord(looks) ? looks : {};
|
|
1449
|
+
return isRecord$1(looks) ? looks : {};
|
|
1445
1450
|
}
|
|
1446
1451
|
/** Pure, shared by public pages and preview. Empty values disappear before layout. */
|
|
1447
1452
|
function compilePageSections(input, lookOverrides) {
|
|
@@ -1526,7 +1531,7 @@ function readStringProperty(value, key) {
|
|
|
1526
1531
|
return trimmed.length > 0 ? trimmed : null;
|
|
1527
1532
|
}
|
|
1528
1533
|
function readLiteralBindingString(value) {
|
|
1529
|
-
if (!isRecord(value)) return null;
|
|
1534
|
+
if (!isRecord$1(value)) return null;
|
|
1530
1535
|
if (value.source !== "literal") return null;
|
|
1531
1536
|
const literal = value.value;
|
|
1532
1537
|
if (typeof literal !== "string") return null;
|
|
@@ -1606,7 +1611,7 @@ function resolveRenderableSurfaceOutlineMetadata(surface, template) {
|
|
|
1606
1611
|
function buildContentEntrySubjectBindingContext(entry, id, route, dateContext, subject) {
|
|
1607
1612
|
return {
|
|
1608
1613
|
dateContext,
|
|
1609
|
-
fields: isRecord(entry.content) ? entry.content : {},
|
|
1614
|
+
fields: isRecord$1(entry.content) ? entry.content : {},
|
|
1610
1615
|
meta: {
|
|
1611
1616
|
...subject === void 0 ? {} : { subject },
|
|
1612
1617
|
id,
|
|
@@ -1634,8 +1639,8 @@ function buildContentEntryRouteRenderMetadata(entry, page) {
|
|
|
1634
1639
|
};
|
|
1635
1640
|
}
|
|
1636
1641
|
function materializeTemplateBlockContent(input) {
|
|
1637
|
-
const rawContent = isRecord(input.block.content) ? { ...input.block.content } : {};
|
|
1638
|
-
return applyTemplateRuntimeFields(input.block.scope === "entry" && isRecord(input.block.bindings) ? applyBindingsToContent(rawContent, input.block.bindings, input.context) : rawContent, input.runtimeFields);
|
|
1642
|
+
const rawContent = isRecord$1(input.block.content) ? { ...input.block.content } : {};
|
|
1643
|
+
return applyTemplateRuntimeFields(input.block.scope === "entry" && isRecord$1(input.block.bindings) ? applyBindingsToContent(rawContent, input.block.bindings, input.context) : rawContent, input.runtimeFields);
|
|
1639
1644
|
}
|
|
1640
1645
|
/**
|
|
1641
1646
|
* Admits materialized template content for rendering only.
|
|
@@ -1729,7 +1734,7 @@ function buildBlockFromTemplate(block, context, runtimeFields, contract) {
|
|
|
1729
1734
|
kind: block.blockKind,
|
|
1730
1735
|
purpose: "content",
|
|
1731
1736
|
publishedPlacement: null,
|
|
1732
|
-
...isRecord(block.bindings) ? { bindings: block.bindings } : {}
|
|
1737
|
+
...isRecord$1(block.bindings) ? { bindings: block.bindings } : {}
|
|
1733
1738
|
};
|
|
1734
1739
|
if (contract === null) return [invalidRenderableBlock(base, { kind: "manifest_unavailable" })];
|
|
1735
1740
|
const materialized = materializeTemplateBlockContent({
|
|
@@ -1737,7 +1742,7 @@ function buildBlockFromTemplate(block, context, runtimeFields, contract) {
|
|
|
1737
1742
|
context,
|
|
1738
1743
|
runtimeFields
|
|
1739
1744
|
});
|
|
1740
|
-
if (block.scope === "entry" && isRecord(block.bindings) && isEntryBoundBlockEmpty(materialized, block.bindings, contract)) return [];
|
|
1745
|
+
if (block.scope === "entry" && isRecord$1(block.bindings) && isEntryBoundBlockEmpty(materialized, block.bindings, contract)) return [];
|
|
1741
1746
|
const admission = admitMaterializedTemplateContent(materialized, contract);
|
|
1742
1747
|
return [admission.ok ? {
|
|
1743
1748
|
...base,
|
|
@@ -1754,7 +1759,7 @@ function applyTemplateRuntimeFields(content, runtimeFields) {
|
|
|
1754
1759
|
return applyMissingImageBackgroundFallback(canonicalizeSectionBackground(runtimeFields !== null && runtimeFields !== void 0 ? applyCompiledRuntimeFieldsToContent(content, runtimeFields) : content));
|
|
1755
1760
|
}
|
|
1756
1761
|
function canonicalizeSectionBackground(content) {
|
|
1757
|
-
const sectionStyles = isRecord(content._sectionStyles) ? content._sectionStyles : null;
|
|
1762
|
+
const sectionStyles = isRecord$1(content._sectionStyles) ? content._sectionStyles : null;
|
|
1758
1763
|
if (sectionStyles === null || sectionStyles.background === void 0) return content;
|
|
1759
1764
|
const background = parseBackgroundContent(sectionStyles.background);
|
|
1760
1765
|
return background !== null ? {
|
|
@@ -1766,7 +1771,7 @@ function canonicalizeSectionBackground(content) {
|
|
|
1766
1771
|
} : content;
|
|
1767
1772
|
}
|
|
1768
1773
|
function applyMissingImageBackgroundFallback(content) {
|
|
1769
|
-
const sectionStyles = isRecord(content._sectionStyles) ? content._sectionStyles : null;
|
|
1774
|
+
const sectionStyles = isRecord$1(content._sectionStyles) ? content._sectionStyles : null;
|
|
1770
1775
|
const background = parseBackgroundContent(sectionStyles?.background);
|
|
1771
1776
|
if (sectionStyles === null || background?.type !== "image" || background.image !== null && background.image !== void 0) return content;
|
|
1772
1777
|
const fallbackColor = resolveMissingImageFallbackColor(background);
|
|
@@ -1833,7 +1838,7 @@ function isPageTitleBlock(block, runtime) {
|
|
|
1833
1838
|
return block.blockKind === "block.hero" && block.scope === "entry" && (isEntryTitleBinding(block.bindings?.headlineInline) || isEntryTitleBinding(block.bindings?.headline));
|
|
1834
1839
|
}
|
|
1835
1840
|
function isEntryTitleBinding(binding) {
|
|
1836
|
-
if (!isRecord(binding)) return false;
|
|
1841
|
+
if (!isRecord$1(binding)) return false;
|
|
1837
1842
|
return binding.source === "meta" && binding.path === "title" || binding.source === "transform" && isEntryTitleBinding(binding.input);
|
|
1838
1843
|
}
|
|
1839
1844
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { F as textColorValue, d as buttonVariantIdSchema, s as unsafeAsOpaqueButtonColourToken, x as surfaceForegroundDeclarations } from "./types-BKaBZFjD.mjs";
|
|
2
|
+
import { _ as isOnColorBackgroundCandidateToken, a as formatButtonColourContractError, j as hexToRgb, n as compileButtonColourStates, v as onColorTokenName, y as getTextColorForBackground } from "./resolveButtonColourStates-B0O1IM16.mjs";
|
|
3
|
+
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, f as generateTypographyCss, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, p as generateProgressCss, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BQWsnGT6.mjs";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { z } from "zod";
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as themeSchema$1 } from "./schema-
|
|
2
|
-
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-
|
|
1
|
+
import { i as themeSchema$1 } from "./schema-CwfxQjc4.mjs";
|
|
2
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Bihl4W5K.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
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as createRichTextDocFromMarkdown, l as RichTextDocSchema } from "./typeGuards-CTW_9AXq.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-NhK6azFS.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
|
|
@@ -162,6 +162,12 @@ function formatThemeSummaryForPrompt(summary) {
|
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region src/manifest/validation/layout-utils.ts
|
|
164
164
|
/**
|
|
165
|
+
* Layout Utilities
|
|
166
|
+
*
|
|
167
|
+
* Shared utility functions for traversing and extracting information from layout trees.
|
|
168
|
+
* Used by both pass3-styling.ts and output-schema.ts.
|
|
169
|
+
*/
|
|
170
|
+
/**
|
|
165
171
|
* Collect node information from a layout tree.
|
|
166
172
|
* Returns an array of NodeInfo objects with path, type, and binding information.
|
|
167
173
|
*/
|
|
@@ -196,6 +202,18 @@ function collectLayoutClassNames(node, out = /* @__PURE__ */ new Set()) {
|
|
|
196
202
|
if (Array.isArray(n.children)) for (const child of n.children) collectLayoutClassNames(child, out);
|
|
197
203
|
return out;
|
|
198
204
|
}
|
|
205
|
+
const UNSAFE_PROP_SUGGESTION = `Change or remove this prop. Inline styles take layout, spacing, type, colour and border properties with plain values, and ${LAYOUT_Z_INDEX_RULE}. Classes are Tailwind utilities or your own, starting "cb-". For images, bind a media field to a media node or use a background.* transform instead of url().`;
|
|
206
|
+
/**
|
|
207
|
+
* Props that are unsafe to render fail config validation when the block is
|
|
208
|
+
* saved, so report them to the model while it can still correct the layout.
|
|
209
|
+
*/
|
|
210
|
+
function layoutPropErrors(layout, blockId) {
|
|
211
|
+
return customBlockLayoutPropIssues(layout).map((issue) => ({
|
|
212
|
+
path: issue.path,
|
|
213
|
+
message: `Block "${blockId}": ${issue.message}`,
|
|
214
|
+
suggestion: UNSAFE_PROP_SUGGESTION
|
|
215
|
+
}));
|
|
216
|
+
}
|
|
199
217
|
//#endregion
|
|
200
218
|
//#region src/manifest/validation/output-schema.ts
|
|
201
219
|
/**
|
|
@@ -1050,13 +1068,13 @@ function validateBinding(bind, path, ctx) {
|
|
|
1050
1068
|
return errors;
|
|
1051
1069
|
}
|
|
1052
1070
|
/**
|
|
1053
|
-
* Deep validation of layout tree for allowed node types, transforms, and
|
|
1071
|
+
* Deep validation of layout tree for allowed node types, transforms, bindings and safe props.
|
|
1054
1072
|
*/
|
|
1055
1073
|
function validateLayoutDeep(node, blockId, fields, path = "layout") {
|
|
1056
|
-
return validateLayoutNode(node, path, {
|
|
1074
|
+
return [...validateLayoutNode(node, path, {
|
|
1057
1075
|
blockId,
|
|
1058
1076
|
fieldIds: collectFieldIds(fields)
|
|
1059
|
-
});
|
|
1077
|
+
}), ...layoutPropErrors(node, blockId)];
|
|
1060
1078
|
}
|
|
1061
1079
|
/**
|
|
1062
1080
|
* Recursively validate a layout node and its children.
|
|
@@ -1904,7 +1922,7 @@ function validatePass3aOutput(output, layout) {
|
|
|
1904
1922
|
if (seenPaths.has(patch.nodePath)) {}
|
|
1905
1923
|
seenPaths.add(patch.nodePath);
|
|
1906
1924
|
if (!getNodeAtPath(layout, patch.nodePath)) errors.push(`Invalid nodePath "${patch.nodePath}": node does not exist in layout`);
|
|
1907
|
-
if (
|
|
1925
|
+
if (!isCustomBlockClassName(patch.className)) errors.push(`Invalid className "${patch.className}": must be a valid CSS class name in kebab-case starting "cb-" (no spaces), e.g. "cb-hero-title"`);
|
|
1908
1926
|
}
|
|
1909
1927
|
return errors;
|
|
1910
1928
|
}
|
|
@@ -1990,11 +2008,11 @@ You will output className patches - a list of which nodes get which class names.
|
|
|
1990
2008
|
## RULES
|
|
1991
2009
|
|
|
1992
2010
|
1. Assign classNames to nodes that need custom styling
|
|
1993
|
-
2. Use descriptive, semantic class names (e.g., "hero-title", "cta-button", "feature-grid")
|
|
2011
|
+
2. Use descriptive, semantic class names starting "cb-" (e.g., "cb-hero-title", "cb-cta-button", "cb-feature-grid")
|
|
1994
2012
|
3. Use nodePath EXACTLY as shown in the available paths list
|
|
1995
2013
|
4. The root node is referenced as "" (empty string)
|
|
1996
2014
|
5. You can assign multiple patches to different nodes
|
|
1997
|
-
6. Use kebab-case for class names (e.g., "hero-title" not "heroTitle")
|
|
2015
|
+
6. Use kebab-case for class names (e.g., "cb-hero-title" not "heroTitle")
|
|
1998
2016
|
|
|
1999
2017
|
## OUTPUT FORMAT
|
|
2000
2018
|
|
|
@@ -2013,11 +2031,11 @@ Output:
|
|
|
2013
2031
|
\`\`\`json
|
|
2014
2032
|
{
|
|
2015
2033
|
"classNamePatches": [
|
|
2016
|
-
{ "nodePath": "", "className": "hero-section" },
|
|
2017
|
-
{ "nodePath": "children[0]", "className": "hero-title" },
|
|
2018
|
-
{ "nodePath": "children[1]", "className": "hero-body" }
|
|
2034
|
+
{ "nodePath": "", "className": "cb-hero-section" },
|
|
2035
|
+
{ "nodePath": "children[0]", "className": "cb-hero-title" },
|
|
2036
|
+
{ "nodePath": "children[1]", "className": "cb-hero-body" }
|
|
2019
2037
|
],
|
|
2020
|
-
"rationale": "Added semantic class names to enable styling. The root section gets 'hero-section' for container styles, the headline gets 'hero-title' for typography, and the body gets 'hero-body' for paragraph styling."
|
|
2038
|
+
"rationale": "Added semantic class names to enable styling. The root section gets 'cb-hero-section' for container styles, the headline gets 'cb-hero-title' for typography, and the body gets 'cb-hero-body' for paragraph styling."
|
|
2021
2039
|
}
|
|
2022
2040
|
\`\`\`
|
|
2023
2041
|
`;
|
|
@@ -2058,7 +2076,7 @@ Write CSS rules for the styled layout nodes.
|
|
|
2058
2076
|
## RULES
|
|
2059
2077
|
|
|
2060
2078
|
1. Write selectors using ONLY the classNames listed in "AVAILABLE CLASSNAMES"
|
|
2061
|
-
2. Use simple selectors: \`.hero-title\`, not \`[data-block="..."] .hero-title\`
|
|
2079
|
+
2. Use simple selectors: \`.cb-hero-title\`, not \`[data-block="..."] .cb-hero-title\`
|
|
2062
2080
|
3. Do NOT include [data-block=...] in selectors - we add that programmatically
|
|
2063
2081
|
4. Use customCssRules for base styles
|
|
2064
2082
|
5. Use customCssAtRules for responsive (@media) styles
|
|
@@ -2086,7 +2104,7 @@ Use array format with camelCase properties:
|
|
|
2086
2104
|
|
|
2087
2105
|
## EXAMPLE
|
|
2088
2106
|
|
|
2089
|
-
Available classNames: hero-section, hero-title, hero-body
|
|
2107
|
+
Available classNames: cb-hero-section, cb-hero-title, cb-hero-body
|
|
2090
2108
|
|
|
2091
2109
|
Output:
|
|
2092
2110
|
\`\`\`json
|
|
@@ -2094,7 +2112,7 @@ Output:
|
|
|
2094
2112
|
"customCssRules": [
|
|
2095
2113
|
{
|
|
2096
2114
|
"id": "hero-title-base",
|
|
2097
|
-
"selector": ".hero-title",
|
|
2115
|
+
"selector": ".cb-hero-title",
|
|
2098
2116
|
"declarations": [
|
|
2099
2117
|
{ "property": "fontSize", "value": "2rem" },
|
|
2100
2118
|
{ "property": "fontWeight", "value": "bold" }
|
|
@@ -2107,7 +2125,7 @@ Output:
|
|
|
2107
2125
|
"type": "media",
|
|
2108
2126
|
"query": "(min-width: 1024px)",
|
|
2109
2127
|
"rules": [{
|
|
2110
|
-
"selector": ".hero-title",
|
|
2128
|
+
"selector": ".cb-hero-title",
|
|
2111
2129
|
"declarations": [{ "property": "fontSize", "value": "3rem" }]
|
|
2112
2130
|
}]
|
|
2113
2131
|
}
|