@riverbankcms/sdk 0.182.0 → 0.184.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/CHANGELOG.md +79 -0
- package/README.md +83 -4
- package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.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 +7 -7
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +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 +126 -2
- package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
- package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +460 -119
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
- package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
- package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
- package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +51 -35
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
- package/dist/client/rendering/client.mjs +32 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
- package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
- package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
- package/dist/preview-next/container-responsive.css +469 -2
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
- package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +18 -5
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
- package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
- 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 -10
- package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
- package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
- package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2987 -168
- package/package.json +1 -1
- package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
- package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
- package/dist/server/customCss-C9kgPHvr.mjs +0 -247
- package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
- 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-BMtAAPzp.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-C_S0pWbR.mjs";
|
|
2
|
+
import { f as assetMediaSchema, h as mediaSchema, m as imageMediaSchema, p as externalMediaSchema, v as videoMediaSchema } from "./resolveButtonColourStates-BMtAAPzp.mjs";
|
|
3
|
+
import { n as accordionSystemSchema } from "./accordions-DjcsqjCK.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 = [
|
|
@@ -901,24 +997,35 @@ const curatedFontWidths = {
|
|
|
901
997
|
"Instrument Sans": {
|
|
902
998
|
min: 75,
|
|
903
999
|
max: 100
|
|
1000
|
+
},
|
|
1001
|
+
"Bricolage Grotesque": {
|
|
1002
|
+
min: 75,
|
|
1003
|
+
max: 100
|
|
904
1004
|
}
|
|
905
1005
|
};
|
|
906
1006
|
function getFontWidthRange(family) {
|
|
907
1007
|
return curatedFontWidths[(family.split(",")[0] ?? "").trim().replace(/^["']|["']$/g, "")];
|
|
908
1008
|
}
|
|
1009
|
+
/** Whether a family's width axis reaches this width. A family without a declared axis reaches none. */
|
|
1010
|
+
function fontWidthFits(width, family) {
|
|
1011
|
+
const range = getFontWidthRange(family);
|
|
1012
|
+
return range !== void 0 && width >= range.min && width <= range.max;
|
|
1013
|
+
}
|
|
909
1014
|
new Set(bodyFontFamilies.map((family) => family.toLocaleLowerCase()));
|
|
910
1015
|
//#endregion
|
|
911
1016
|
//#region ../site-contracts/src/theme/typography.ts
|
|
1017
|
+
/** The typography weight vocabulary; every role that names a weight uses it (light..bold → 300..700). */
|
|
1018
|
+
const typographyWeightSchema = z.enum([
|
|
1019
|
+
"light",
|
|
1020
|
+
"regular",
|
|
1021
|
+
"medium",
|
|
1022
|
+
"semibold",
|
|
1023
|
+
"bold"
|
|
1024
|
+
]);
|
|
912
1025
|
const typographyStyleSchema = z.object({
|
|
913
1026
|
width: fontWidthSchema.optional(),
|
|
914
1027
|
family: z.string().min(1),
|
|
915
|
-
weight:
|
|
916
|
-
"light",
|
|
917
|
-
"regular",
|
|
918
|
-
"medium",
|
|
919
|
-
"semibold",
|
|
920
|
-
"bold"
|
|
921
|
-
]),
|
|
1028
|
+
weight: typographyWeightSchema,
|
|
922
1029
|
letterSpacing: z.enum([
|
|
923
1030
|
"tight",
|
|
924
1031
|
"normal",
|
|
@@ -945,13 +1052,7 @@ const headingSizeSchema = z.enum([
|
|
|
945
1052
|
]);
|
|
946
1053
|
const headingTypographyOverridesSchema = z.object({
|
|
947
1054
|
width: fontWidthSchema.nullable().optional(),
|
|
948
|
-
weight:
|
|
949
|
-
"light",
|
|
950
|
-
"regular",
|
|
951
|
-
"medium",
|
|
952
|
-
"semibold",
|
|
953
|
-
"bold"
|
|
954
|
-
]).nullable().optional(),
|
|
1055
|
+
weight: typographyWeightSchema.nullable().optional(),
|
|
955
1056
|
letterSpacing: z.enum([
|
|
956
1057
|
"tight",
|
|
957
1058
|
"normal",
|
|
@@ -1021,13 +1122,7 @@ const eyebrowTypographyStyleSchema = z.object({
|
|
|
1021
1122
|
"md",
|
|
1022
1123
|
"lg"
|
|
1023
1124
|
]).optional(),
|
|
1024
|
-
weight:
|
|
1025
|
-
"light",
|
|
1026
|
-
"regular",
|
|
1027
|
-
"medium",
|
|
1028
|
-
"semibold",
|
|
1029
|
-
"bold"
|
|
1030
|
-
]).optional(),
|
|
1125
|
+
weight: typographyWeightSchema.optional(),
|
|
1031
1126
|
letterSpacing: z.enum([
|
|
1032
1127
|
"tight",
|
|
1033
1128
|
"normal",
|
|
@@ -1097,9 +1192,9 @@ const typographySchema = z.object({
|
|
|
1097
1192
|
path: ["eyebrow", "width"]
|
|
1098
1193
|
}
|
|
1099
1194
|
].forEach(({ style, family, path }) => {
|
|
1100
|
-
if (style?.width == null) return;
|
|
1195
|
+
if (style?.width == null || fontWidthFits(style.width, family)) return;
|
|
1101
1196
|
const range = getFontWidthRange(family);
|
|
1102
|
-
|
|
1197
|
+
ctx.addIssue({
|
|
1103
1198
|
code: "custom",
|
|
1104
1199
|
path,
|
|
1105
1200
|
message: range ? `Font width must be between ${range.min}% and ${range.max}% for ${family}.` : `Font width is not declared for ${family}.`
|
|
@@ -1148,7 +1243,23 @@ const componentShadowSchema = z.object({ elevation: z.enum([
|
|
|
1148
1243
|
]).default("sm") });
|
|
1149
1244
|
//#endregion
|
|
1150
1245
|
//#region ../site-contracts/src/siteStyle/footerPreferences.ts
|
|
1151
|
-
const footerEdgeIntentValues =
|
|
1246
|
+
const footerEdgeIntentValues = [
|
|
1247
|
+
"soft-fade-short",
|
|
1248
|
+
"soft-fade-long",
|
|
1249
|
+
"soft-fade-expansive",
|
|
1250
|
+
"wave-edge",
|
|
1251
|
+
"wave-edge-balanced",
|
|
1252
|
+
"wave-edge-gentle",
|
|
1253
|
+
"wave-edge-bold",
|
|
1254
|
+
"wave-edge-drift",
|
|
1255
|
+
"arc-edge-echo",
|
|
1256
|
+
"angle-edge",
|
|
1257
|
+
"angle-edge-subtle",
|
|
1258
|
+
"angle-edge-steep",
|
|
1259
|
+
"torn-edge-holes",
|
|
1260
|
+
"ridge-edge",
|
|
1261
|
+
"hand-drawn-wave-edge"
|
|
1262
|
+
];
|
|
1152
1263
|
const footerEdgePreferenceSchema = z.discriminatedUnion("kind", [
|
|
1153
1264
|
z.strictObject({ kind: z.literal("style-default") }),
|
|
1154
1265
|
z.strictObject({ kind: z.literal("none") }),
|
|
@@ -1262,6 +1373,137 @@ function isRecord(value) {
|
|
|
1262
1373
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1263
1374
|
}
|
|
1264
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
|
|
1265
1507
|
//#region ../site-contracts/src/theme/customCssAtRules.ts
|
|
1266
1508
|
/** Valid keyframe offset values - requires % for numeric values */
|
|
1267
1509
|
const KEYFRAME_OFFSET_PATTERN = /^(from|to|\d{1,3}%)$/i;
|
|
@@ -1636,7 +1878,33 @@ const accordionIconTreatmentSchema = z.object({
|
|
|
1636
1878
|
openColorToken: z.enum(accordionIconColorTokenValues).optional(),
|
|
1637
1879
|
motion: z.enum(accordionIconMotionValues)
|
|
1638
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();
|
|
1639
1905
|
const sectionStylesOverrideSchema = z.object({
|
|
1906
|
+
ground: z.object({ name: z.string().min(1) }).strict().nullable().optional(),
|
|
1907
|
+
treatment: sectionTreatmentSchema.nullable().optional(),
|
|
1640
1908
|
background: boxBackgroundSchema.nullable().optional(),
|
|
1641
1909
|
spacing: semanticSpacingSchema.nullable().optional(),
|
|
1642
1910
|
minHeight: z.enum([
|
|
@@ -1787,6 +2055,9 @@ const logoStyleSchema = z.object({
|
|
|
1787
2055
|
gradient: z.boolean().default(false),
|
|
1788
2056
|
brandDisplay: z.enum(brandDisplayModeValues).optional(),
|
|
1789
2057
|
size: z.enum(logoSizePolicyValues).optional(),
|
|
2058
|
+
weight: typographyWeightSchema.optional(),
|
|
2059
|
+
case: z.enum(["uppercase", "normal"]).optional(),
|
|
2060
|
+
width: fontWidthSchema.optional(),
|
|
1790
2061
|
accommodation: z.enum(logoAccommodationPatternValues).optional()
|
|
1791
2062
|
}).optional();
|
|
1792
2063
|
const headerLogoTextSchema = z.object({
|
|
@@ -2116,4 +2387,4 @@ const themeSchema = z.object({
|
|
|
2116
2387
|
styleGroups: z.record(z.string(), z.array(z.string())).optional()
|
|
2117
2388
|
});
|
|
2118
2389
|
//#endregion
|
|
2119
|
-
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-D0XCgITW.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-C-qyB8Tq.mjs";
|
|
3
|
+
import { t as loadPage } from "./loadPage-BpKKmi8E.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-BMtAAPzp.mjs";
|
|
2
|
+
import { b as describePublicRefundPolicy, c as createCustomBlockRegistry, rt as arrangementContentFacts, y as PUBLIC_FREE_CANCELLATION } from "./pageRenderPlan-DRB7cUZ0.mjs";
|
|
3
|
+
import { As as offeringLabelForPageSurfaceSubject, Bs as unsafeAsContentEntryId, Ca as parseInlineTextFromUnknown, Ea as parseFieldDefinition, Kn as isOrdinaryPublicEvent, Pi as parseBackgroundContent, Qn as registrationDataForEventSelection, Qo as resolveRepeaterGridSpanFieldId, Xo as resolveRepeaterGridColumnFieldId, Yn as planWholeSeriesParentBooking, Za as parseListLook, Zo as resolveRepeaterGridRowFieldId, a as systemBlockDefinitions, er as selectionRepresentativeEvent, fs as isCanonicalRichTextDoc, t as getBlockDefinition, ti as blockDesignCapabilityMapFromDefinitions, ts as EVENT_PRESET_VALUES, wa as plainTextToInlineText, xa as inlineTextToPlainText, yr as siteHeaderManifest } from "./registry-Bf4W8Qa7.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-EFws7tAj.mjs";
|
|
5
|
+
import { L as asLayoutVariantKey, M as asAppearancePresetId, P as asDesignBlockId } from "./schema-DGaihVwp.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-
|
|
6
|
-
import {
|
|
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-DMJH4bvo.mjs";
|
|
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-Uv1xDieJ.mjs";
|
|
8
|
+
import { a as buildRichTextSchema, h as isRecord, n as isRecord$1, o as createRichTextDoc } from "./typeGuards-DZOaGTEv.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-CFw4M-gZ.mjs";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
//#region ../theme-core/src/site-styles/contentTemplateDesignIntent.ts
|
|
11
12
|
function asContentTemplateDesignBlockId(value) {
|
|
@@ -1338,7 +1339,10 @@ function shouldUseCanonicalSchema(field) {
|
|
|
1338
1339
|
}
|
|
1339
1340
|
//#endregion
|
|
1340
1341
|
//#region ../block-form/src/manifest/manifestDefaultValues.ts
|
|
1341
|
-
/**
|
|
1342
|
+
/**
|
|
1343
|
+
* Construct initial field values through the same field-type default owner on server and client.
|
|
1344
|
+
* A field `data` names keeps that value; a field it doesn't name takes its default.
|
|
1345
|
+
*/
|
|
1342
1346
|
function createManifestDefaultValues(manifest, data = {}, options = {}) {
|
|
1343
1347
|
const { fields } = createManifestFormAdapter(manifest, {
|
|
1344
1348
|
role: options.role,
|
|
@@ -1378,6 +1382,31 @@ function ensureRepeaterItem(field, value, ctx) {
|
|
|
1378
1382
|
}
|
|
1379
1383
|
//#endregion
|
|
1380
1384
|
//#region ../site-renderer/dist/index.mjs
|
|
1385
|
+
/** The slot a template block shows in its place, or `null` when the block isn't a slot reference. */
|
|
1386
|
+
function templateBlockSlotKey(block) {
|
|
1387
|
+
if (block.blockKind !== "system.entry-slot" || block.scope !== "template") return null;
|
|
1388
|
+
const parsed = parseSlotKey(block.content?.slotKey);
|
|
1389
|
+
return parsed.ok ? parsed.value : null;
|
|
1390
|
+
}
|
|
1391
|
+
/** The template a templated page renders: the first its read carries. */
|
|
1392
|
+
function selectRenderedTemplate(templates) {
|
|
1393
|
+
return templates?.[0] ?? null;
|
|
1394
|
+
}
|
|
1395
|
+
/** What a templated page renders, or `null` when it carries no template (and so renders no template content). */
|
|
1396
|
+
function selectTemplateComposition(templates, slots) {
|
|
1397
|
+
const template = selectRenderedTemplate(templates);
|
|
1398
|
+
if (template === null) return null;
|
|
1399
|
+
return {
|
|
1400
|
+
template,
|
|
1401
|
+
slots: [...new Set(template.blocks.flatMap((block) => {
|
|
1402
|
+
const slotKey = templateBlockSlotKey(block);
|
|
1403
|
+
return slotKey === null ? [] : [slotKey];
|
|
1404
|
+
}))].flatMap((slotKey) => {
|
|
1405
|
+
const slot = (slots ?? []).find((candidate) => candidate.slotKey === slotKey);
|
|
1406
|
+
return slot === void 0 ? [] : [slot];
|
|
1407
|
+
})
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1381
1410
|
/** Each adapter maps meaning to manifest fields; layout stays with the block and site style. */
|
|
1382
1411
|
function sectionBlockContent(label, value) {
|
|
1383
1412
|
switch (value.kind) {
|
|
@@ -1713,7 +1742,7 @@ function prepareTemplatePage({ entry, dateContext, subject, template: sourceTemp
|
|
|
1713
1742
|
};
|
|
1714
1743
|
}
|
|
1715
1744
|
function buildBlocksFromTemplateBlock({ block, context, entry, template, runtimeFields, resolveEntrySlotBlocks, resolveBlockContentContract }) {
|
|
1716
|
-
const slotKey =
|
|
1745
|
+
const slotKey = templateBlockSlotKey(block);
|
|
1717
1746
|
if (slotKey !== null) return resolveEntrySlotBlocks?.({
|
|
1718
1747
|
entry,
|
|
1719
1748
|
template,
|
|
@@ -1723,11 +1752,6 @@ function buildBlocksFromTemplateBlock({ block, context, entry, template, runtime
|
|
|
1723
1752
|
if (isSystemTemplateBlockKind(block.blockKind)) return [];
|
|
1724
1753
|
return buildBlockFromTemplate(block, context, runtimeFields, resolveBlockContentContract(block.blockKind));
|
|
1725
1754
|
}
|
|
1726
|
-
function readEntrySlotKey(block) {
|
|
1727
|
-
if (block.blockKind !== "system.entry-slot" || block.scope !== "template") return null;
|
|
1728
|
-
const parsed = parseSlotKey(block.content?.slotKey);
|
|
1729
|
-
return parsed.ok ? parsed.value : null;
|
|
1730
|
-
}
|
|
1731
1755
|
function buildBlockFromTemplate(block, context, runtimeFields, contract) {
|
|
1732
1756
|
const base = {
|
|
1733
1757
|
id: block.id,
|
|
@@ -2401,7 +2425,7 @@ function outlineFromFacts({ event, identity, details }, design, sections) {
|
|
|
2401
2425
|
attrs: { level: 2 },
|
|
2402
2426
|
content: [{
|
|
2403
2427
|
type: "text",
|
|
2404
|
-
text: "
|
|
2428
|
+
text: "Cancellation policy"
|
|
2405
2429
|
}]
|
|
2406
2430
|
}, {
|
|
2407
2431
|
type: "paragraph",
|
|
@@ -2568,4 +2592,4 @@ function parseServicePageContent(source) {
|
|
|
2568
2592
|
};
|
|
2569
2593
|
}
|
|
2570
2594
|
//#endregion
|
|
2571
|
-
export { buildTemplatePageOutline as _, bookingDetailEvents as a, buildBookingPageOutline as c, buildCodeOwnedPageBlocks as d, createPublicBlockContentContractResolver as f, bookingSectionBlocks as g, bookingPageDesign as h, BOOKING_PAGE_BLOCK_IDS as i, bookingPageIdentity as l, bookingHero as m, SERVICE_BOOKING_BLOCK_IDS as n, bookingPageFacts as o, bookingDescription as p, buildServiceBookingOutline as r, bookingPageSeedData as s, parseServicePageContent as t, plainTextDoc as u,
|
|
2595
|
+
export { buildTemplatePageOutline as _, bookingDetailEvents as a, selectBlocksForDeclaredEntrySlot as b, buildBookingPageOutline as c, buildCodeOwnedPageBlocks as d, createPublicBlockContentContractResolver as f, bookingSectionBlocks as g, bookingPageDesign as h, BOOKING_PAGE_BLOCK_IDS as i, bookingPageIdentity as l, bookingHero as m, SERVICE_BOOKING_BLOCK_IDS as n, bookingPageFacts as o, bookingDescription as p, buildServiceBookingOutline as r, bookingPageSeedData as s, parseServicePageContent as t, plainTextDoc as u, selectTemplateComposition as v, readStoredSectionValues as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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-C_S0pWbR.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-BMtAAPzp.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-DvbqYXdK.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-DGaihVwp.mjs";
|
|
2
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CwcWZL7u.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 { 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-
|
|
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-B2qFOUwZ.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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as accordionIconSchema } from "./accordions-
|
|
3
|
-
import {
|
|
4
|
-
import { a as hasOwn, n as getVideoEmbed, o as nodePropEntries, t as VIDEO_ASPECT_RATIO_PATTERN } from "./video-
|
|
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-C_S0pWbR.mjs";
|
|
2
|
+
import { t as accordionIconSchema } from "./accordions-DjcsqjCK.mjs";
|
|
3
|
+
import { c as isSafeRichTextHref, m as customLayoutSizeProblem, n as isRecord } from "./typeGuards-DZOaGTEv.mjs";
|
|
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";
|
|
6
6
|
//#region ../blocks/src/system/node/validation-constants.ts
|
|
7
7
|
/**
|
|
@@ -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),
|