@riverbankcms/sdk 0.165.0 → 0.167.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 +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
- package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
- package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
- package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
- package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
- package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
- package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
- package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.d.ts} +3 -2
- 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 +9 -6
- 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 +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- 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 +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- 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 +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +260 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -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/{types-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
- package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
- package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
- package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
- package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
- package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
- package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
- package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
- package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
- package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
- package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
- package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +9550 -17
- package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
- package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
- package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
- package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
- package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
- package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
- package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
- package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -4
- package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
- package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
- package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
- package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
- package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
- package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
- package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
- package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
- package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
- package/dist/preview-next/before-render.mjs +3 -140
- package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
- package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
- package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
- package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
- package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
- package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
- package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +25 -2
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
- package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
- package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
- package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
- package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
- package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
- package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +11 -11
- package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
- package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
- package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
- package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
- package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
- package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-DEizlyi4.mjs +2524 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
- package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +710 -29
- package/package.json +39 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/purchase-BV5xfaZH.mjs +0 -894
- package/dist/client/schema-BdSglH2X.mjs +0 -16084
- package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
- package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
- package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
- package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
- package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-DfMDbZ41.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
- package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
- package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
- package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
- package/dist/server/site-styles-CntHn2KI.mjs +0 -793
- package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
|
@@ -1,793 +0,0 @@
|
|
|
1
|
-
import { $ as logoSizePolicyValues, Bt as asDesignPageId, Ft as asBlockContentVersionId, Gt as assertNever, Ht as asLayoutVariantKey, It as asBlockOrderIndex, K as cardRoleSchema, Kn as surfaceToneFromForegroundToken, Mr as parseThemeColorToken, Nn as gradientScrimSamples, Nr as themeColorShadeSteps, Pn as scrimTone, Q as brandDisplayModeValues, Rt as asDesignBlockId, Ut as asPageFlowPresetId, Wt as asSiteStyleId, X as headerInteractionPaletteValues, _t as runtimeBoxBackgroundSchema, mn as parseEditorSessionGeneration, n as headerPositioningValues, nr as resolveConcreteColorHex, on as plainFrame, qn as resolveSurfaceForeground } from "./schema-uSA_x1Zh.mjs";
|
|
2
|
-
import { A as generatedDesignOptionCatalog, C as curatedSiteStyleIdValues, F as bookingPageLookIdValues, G as softBoundaryOption, I as parseBookingPageLookId, K as spaciousBoundaryOption, L as pageDesignDecisionsV2Schema, U as boundaryRuntimeMetricsForDecorativeTransition, V as sectionShapeFromContent, W as noneBoundaryOption, c as headerNavFontSizePreferenceValues, f as arrangementAppearancePresets, l as headerNavTypographyPreferenceValues, s as defaultHeaderNavPreferences, w as offeredSiteStyles } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
5
|
-
function defineBlockDesignMetadata(input) {
|
|
6
|
-
const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
|
|
7
|
-
...profile,
|
|
8
|
-
variantKey: asLayoutVariantKey(profile.variantKey)
|
|
9
|
-
}));
|
|
10
|
-
assertUniqueLayoutProfileKeys(layoutProfiles);
|
|
11
|
-
return {
|
|
12
|
-
flow: input.flow,
|
|
13
|
-
layoutProfiles
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function assertUniqueLayoutProfileKeys(profiles) {
|
|
17
|
-
const seen = /* @__PURE__ */ new Set();
|
|
18
|
-
const duplicates = profiles.flatMap((profile) => {
|
|
19
|
-
if (seen.has(profile.variantKey)) return [profile.variantKey];
|
|
20
|
-
seen.add(profile.variantKey);
|
|
21
|
-
return [];
|
|
22
|
-
});
|
|
23
|
-
if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../theme-core/src/site-styles/backgroundAppearance.ts
|
|
27
|
-
const backgroundAppearanceQuickColorTokenNames = [
|
|
28
|
-
"background",
|
|
29
|
-
"surface",
|
|
30
|
-
"muted",
|
|
31
|
-
"primary",
|
|
32
|
-
"secondary",
|
|
33
|
-
"accent"
|
|
34
|
-
];
|
|
35
|
-
const backgroundAppearanceBaseColorTokenNames = [
|
|
36
|
-
"background",
|
|
37
|
-
"surface",
|
|
38
|
-
"surfaceAlt",
|
|
39
|
-
"muted",
|
|
40
|
-
"primary",
|
|
41
|
-
"secondary",
|
|
42
|
-
"accent",
|
|
43
|
-
"neutral"
|
|
44
|
-
];
|
|
45
|
-
const backgroundAppearanceShadeableColorTokenNames = [
|
|
46
|
-
"primary",
|
|
47
|
-
"secondary",
|
|
48
|
-
"accent",
|
|
49
|
-
"neutral"
|
|
50
|
-
];
|
|
51
|
-
const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
|
|
52
|
-
backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
|
|
53
|
-
const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
|
|
54
|
-
function parseBackgroundAppearanceColorToken(value) {
|
|
55
|
-
if (typeof value !== "string") return null;
|
|
56
|
-
const normalized = value.trim();
|
|
57
|
-
if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
|
|
58
|
-
return parseThemeColorToken(normalized);
|
|
59
|
-
}
|
|
60
|
-
function uniqueStrings(values) {
|
|
61
|
-
return Array.from(new Set(values));
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
65
|
-
function parseCanonicalRuntimeBackground(content) {
|
|
66
|
-
const background = readRecord$1(readRecord$1(content._sectionStyles)?.background);
|
|
67
|
-
if (!background) return { kind: "none" };
|
|
68
|
-
const parsed = runtimeBoxBackgroundSchema.safeParse(background);
|
|
69
|
-
if (!parsed.success) return { kind: "none" };
|
|
70
|
-
return parsed.data.contentOwner === "page-design-editor" ? {
|
|
71
|
-
kind: "page-design-override",
|
|
72
|
-
background: parsed.data
|
|
73
|
-
} : {
|
|
74
|
-
kind: "block-authored",
|
|
75
|
-
background: parsed.data
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/** The Look owns shading and ink together; authored image/crop stay intact. */
|
|
79
|
-
function applyLookPhotoTreatment(background, treatment) {
|
|
80
|
-
if (background.type !== "image" || treatment !== "text-overlay") return background;
|
|
81
|
-
return {
|
|
82
|
-
...background,
|
|
83
|
-
overlay: {
|
|
84
|
-
type: "gradient",
|
|
85
|
-
opacity: 1,
|
|
86
|
-
gradient: "var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"
|
|
87
|
-
},
|
|
88
|
-
textColor: "neutral-50",
|
|
89
|
-
headingColor: "neutral-50",
|
|
90
|
-
linkColor: "neutral-50",
|
|
91
|
-
supportingColor: "neutral-50"
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
|
|
95
|
-
if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
|
|
96
|
-
if (rhythm !== void 0) return rhythmBackground(rhythm);
|
|
97
|
-
return {
|
|
98
|
-
kind: "content-media",
|
|
99
|
-
background: source.background,
|
|
100
|
-
ground: {
|
|
101
|
-
type: "color",
|
|
102
|
-
color: arrangementHeroPhoto?.fallbackToken ?? "background",
|
|
103
|
-
textColor: source.background.textColor,
|
|
104
|
-
headingColor: source.background.headingColor,
|
|
105
|
-
linkColor: source.background.linkColor,
|
|
106
|
-
supportingColor: source.background.supportingColor
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
if (source.kind === "page-design-override") return {
|
|
111
|
-
kind: "override",
|
|
112
|
-
background: source.background
|
|
113
|
-
};
|
|
114
|
-
if (isAuthoredMedia(source)) return {
|
|
115
|
-
kind: "authored-media",
|
|
116
|
-
background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
|
|
117
|
-
};
|
|
118
|
-
if (lookDefault) return {
|
|
119
|
-
kind: "look-surface",
|
|
120
|
-
background: lookDefault
|
|
121
|
-
};
|
|
122
|
-
if (source.kind === "block-authored") return {
|
|
123
|
-
kind: "authored-colour",
|
|
124
|
-
background: source.background
|
|
125
|
-
};
|
|
126
|
-
return rhythmBackground(rhythm);
|
|
127
|
-
}
|
|
128
|
-
function resolveSectionForeground(background, palette) {
|
|
129
|
-
return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
|
|
130
|
-
}
|
|
131
|
-
/** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
|
|
132
|
-
function sectionForegroundBackground(resolved, palette) {
|
|
133
|
-
if (resolved.kind === "base") return null;
|
|
134
|
-
if (resolved.kind !== "content-media") return resolved.background;
|
|
135
|
-
const original = resolveSurfaceForeground(resolved.background, palette);
|
|
136
|
-
const measured = resolveSurfaceForeground(resolved.ground, palette);
|
|
137
|
-
if (original.kind !== "known" || measured.kind !== "known") return resolved.background;
|
|
138
|
-
return [
|
|
139
|
-
"text",
|
|
140
|
-
"heading",
|
|
141
|
-
"link",
|
|
142
|
-
"supporting"
|
|
143
|
-
].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
|
|
144
|
-
}
|
|
145
|
-
function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
|
|
146
|
-
const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
|
|
147
|
-
const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
|
|
148
|
-
if (paintsBand && !lookScrim) return authored;
|
|
149
|
-
const merged = runtimeBoxBackgroundSchema.safeParse({
|
|
150
|
-
...lookDefault,
|
|
151
|
-
type: authored.type,
|
|
152
|
-
image: authored.image,
|
|
153
|
-
objectFit: authored.objectFit,
|
|
154
|
-
scale: authored.scale,
|
|
155
|
-
position: authored.position,
|
|
156
|
-
...lookScrim ? { overlay: lookScrim } : {}
|
|
157
|
-
});
|
|
158
|
-
return merged.success ? merged.data : authored;
|
|
159
|
-
}
|
|
160
|
-
function readRecord$1(value) {
|
|
161
|
-
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
162
|
-
}
|
|
163
|
-
function heroPhotoIsContent(source, photo, hasArrangementGround) {
|
|
164
|
-
return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
|
|
165
|
-
}
|
|
166
|
-
function isAuthoredMedia(source) {
|
|
167
|
-
return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
|
|
168
|
-
}
|
|
169
|
-
function rhythmBackground(background) {
|
|
170
|
-
return background ? {
|
|
171
|
-
kind: "rhythm",
|
|
172
|
-
background
|
|
173
|
-
} : { kind: "base" };
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Semantic section grounds: background/base -> light; muted/surface bands ->
|
|
177
|
-
* band; primary/secondary/accent (including pop) -> brand; text/inverse and
|
|
178
|
-
* numbered deep shades -> deep. Media and gradients use the existing resolved
|
|
179
|
-
* scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
|
|
180
|
-
* over a light veil -> light. Unclassified/no veil defaults to light.
|
|
181
|
-
* Background ownership (override, authored, Look or rhythm) never changes tone.
|
|
182
|
-
*/
|
|
183
|
-
const solidGrounds = {
|
|
184
|
-
background: "light",
|
|
185
|
-
muted: "band",
|
|
186
|
-
surface: "band",
|
|
187
|
-
primary: "brand",
|
|
188
|
-
secondary: "brand",
|
|
189
|
-
accent: "brand",
|
|
190
|
-
text: "deep"
|
|
191
|
-
};
|
|
192
|
-
function deriveSectionGround(resolved, palette) {
|
|
193
|
-
if (resolved.kind === "base") return "light";
|
|
194
|
-
const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
|
|
195
|
-
const solid = solidSectionGround(background);
|
|
196
|
-
if (solid) return solid;
|
|
197
|
-
return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
|
|
198
|
-
}
|
|
199
|
-
function solidSectionGround(background) {
|
|
200
|
-
if (background.type !== "color") return null;
|
|
201
|
-
const color = background.color ?? "background";
|
|
202
|
-
return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
|
|
203
|
-
}
|
|
204
|
-
function sectionForegroundTone(resolved, palette) {
|
|
205
|
-
const foreground = resolveSectionForeground(resolved, palette);
|
|
206
|
-
return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
|
|
207
|
-
}
|
|
208
|
-
function sectionVeil(background) {
|
|
209
|
-
switch (background.type) {
|
|
210
|
-
case "color": return null;
|
|
211
|
-
case "image":
|
|
212
|
-
case "video": return background.overlay;
|
|
213
|
-
case "gradient": return {
|
|
214
|
-
type: "gradient",
|
|
215
|
-
gradient: background.gradient,
|
|
216
|
-
opacity: 1
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
function sectionScrimSamples(background, palette) {
|
|
221
|
-
const overlay = sectionVeil(background);
|
|
222
|
-
if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
|
|
223
|
-
if (overlay?.type !== "color") return [];
|
|
224
|
-
const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
|
|
225
|
-
return hex ? [{
|
|
226
|
-
hex,
|
|
227
|
-
alpha: overlay.opacity ?? 1
|
|
228
|
-
}] : [];
|
|
229
|
-
}
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
232
|
-
const backgroundToken = requireThemeColorToken("background");
|
|
233
|
-
/**
|
|
234
|
-
* Classifies a section from its final render content. `_sectionStyles`
|
|
235
|
-
* already holds the effective background (Look default, page-design override
|
|
236
|
-
* and block-authored media merged by `resolveSectionBackground`), so this only
|
|
237
|
-
* reads it and never re-decides precedence. A missing or unparseable
|
|
238
|
-
* background is the page background, as it is for the renderer.
|
|
239
|
-
*/
|
|
240
|
-
function boundaryEndpointForSectionContent(content) {
|
|
241
|
-
const background = parseCanonicalRuntimeBackground(content);
|
|
242
|
-
if (background.kind === "none") return {
|
|
243
|
-
kind: "paint",
|
|
244
|
-
token: backgroundToken
|
|
245
|
-
};
|
|
246
|
-
const effective = background.background;
|
|
247
|
-
switch (effective.type) {
|
|
248
|
-
case "color": {
|
|
249
|
-
if (effective.color === null || effective.color === void 0) return {
|
|
250
|
-
kind: "paint",
|
|
251
|
-
token: backgroundToken
|
|
252
|
-
};
|
|
253
|
-
const token = parseThemeColorToken(effective.color);
|
|
254
|
-
return token ? {
|
|
255
|
-
kind: "paint",
|
|
256
|
-
token
|
|
257
|
-
} : {
|
|
258
|
-
kind: "unpainted",
|
|
259
|
-
reason: "literal-color"
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
case "gradient": return {
|
|
263
|
-
kind: "unpainted",
|
|
264
|
-
reason: "gradient"
|
|
265
|
-
};
|
|
266
|
-
case "image":
|
|
267
|
-
case "video": return {
|
|
268
|
-
kind: "unpainted",
|
|
269
|
-
reason: "media"
|
|
270
|
-
};
|
|
271
|
-
default: return assertNever(effective, "Unhandled section background type");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Reads every fact from final render content in one place. `_frameStyles` is
|
|
276
|
-
* the compiled frame; content without one (no page design, an SDK block)
|
|
277
|
-
* draws a plain frame.
|
|
278
|
-
*/
|
|
279
|
-
function sectionFactsForContent(content) {
|
|
280
|
-
return {
|
|
281
|
-
endpoint: boundaryEndpointForSectionContent(content),
|
|
282
|
-
frame: frameKindForContent(content),
|
|
283
|
-
shape: sectionShapeFromContent(content)
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
function frameKindForContent(content) {
|
|
287
|
-
const frameStyles = content._frameStyles;
|
|
288
|
-
const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
|
|
289
|
-
return kind === "panel" || kind === "flush-panel" ? kind : "plain";
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* The frame rule: a flush panel owns the edge it runs to, so no break is
|
|
293
|
-
* drawn next to one. The single home for this rule; the generated
|
|
294
|
-
* pipeline's budget and the site-style lab ask it with their plan frames.
|
|
295
|
-
*/
|
|
296
|
-
function frameNotShownReason(previous, next) {
|
|
297
|
-
return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* A field sits in from the page edge with page ground around it, so a break
|
|
301
|
-
* drawn across its edge would have nothing to join (issue 1659).
|
|
302
|
-
*/
|
|
303
|
-
function shapeNotShownReason(previous, next) {
|
|
304
|
-
return previous === "field" || next === "field" ? "field" : null;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Decides whether and how a join draws. The frame and shape rules win before
|
|
308
|
-
* paint is considered; two unpainted sides show nothing.
|
|
309
|
-
*/
|
|
310
|
-
function composeBoundary(previous, next) {
|
|
311
|
-
const frameReason = frameNotShownReason(previous.frame, next.frame) ?? shapeNotShownReason(previous.shape, next.shape);
|
|
312
|
-
if (frameReason) return {
|
|
313
|
-
kind: "not-shown",
|
|
314
|
-
reason: frameReason
|
|
315
|
-
};
|
|
316
|
-
const from = previous.endpoint;
|
|
317
|
-
const to = next.endpoint;
|
|
318
|
-
if (from.kind === "paint") return {
|
|
319
|
-
kind: "shown",
|
|
320
|
-
composition: to.kind === "paint" ? {
|
|
321
|
-
kind: "paint-to-paint",
|
|
322
|
-
from: from.token,
|
|
323
|
-
to: to.token
|
|
324
|
-
} : {
|
|
325
|
-
kind: "paint-to-unpainted",
|
|
326
|
-
from: from.token
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
return to.kind === "paint" ? {
|
|
330
|
-
kind: "shown",
|
|
331
|
-
composition: {
|
|
332
|
-
kind: "unpainted-to-paint",
|
|
333
|
-
to: to.token
|
|
334
|
-
}
|
|
335
|
-
} : {
|
|
336
|
-
kind: "not-shown",
|
|
337
|
-
reason: "both-unpainted"
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Placement, reserves and paint for a shown boundary, derived from the
|
|
342
|
-
* composition and the catalogue's metrics for the treatment.
|
|
343
|
-
*/
|
|
344
|
-
function boundaryLayout(intent, composition) {
|
|
345
|
-
const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
|
|
346
|
-
switch (composition.kind) {
|
|
347
|
-
case "paint-to-paint": return {
|
|
348
|
-
placement: "centred",
|
|
349
|
-
reserves: {
|
|
350
|
-
before: metrics.reserveCss,
|
|
351
|
-
after: metrics.reserveCss
|
|
352
|
-
},
|
|
353
|
-
paint: {
|
|
354
|
-
band: composition.from,
|
|
355
|
-
shape: composition.to
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
case "unpainted-to-paint": return {
|
|
359
|
-
placement: "previous",
|
|
360
|
-
reserves: {
|
|
361
|
-
before: metrics.heightCss,
|
|
362
|
-
after: null
|
|
363
|
-
},
|
|
364
|
-
paint: {
|
|
365
|
-
band: null,
|
|
366
|
-
shape: composition.to
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
case "paint-to-unpainted": return {
|
|
370
|
-
placement: "next",
|
|
371
|
-
reserves: {
|
|
372
|
-
before: null,
|
|
373
|
-
after: metrics.heightCss
|
|
374
|
-
},
|
|
375
|
-
paint: {
|
|
376
|
-
band: null,
|
|
377
|
-
shape: composition.from
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
default: return assertNever(composition, "Unhandled boundary composition");
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function requireThemeColorToken(value) {
|
|
384
|
-
const token = parseThemeColorToken(value);
|
|
385
|
-
if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
|
|
386
|
-
return token;
|
|
387
|
-
}
|
|
388
|
-
//#endregion
|
|
389
|
-
//#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
|
|
390
|
-
const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
|
|
391
|
-
const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
|
|
392
|
-
siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
|
|
393
|
-
function parseSiteChromeBackgroundColorToken(value) {
|
|
394
|
-
const token = parseBackgroundAppearanceColorToken(value);
|
|
395
|
-
return token ? token : null;
|
|
396
|
-
}
|
|
397
|
-
function toSiteChromeBackgroundColorTokens(tokenNames) {
|
|
398
|
-
return tokenNames.flatMap((name) => {
|
|
399
|
-
const token = parseSiteChromeBackgroundColorToken(name);
|
|
400
|
-
return token ? [token] : [];
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
|
|
404
|
-
const token = parseSiteChromeBackgroundColorToken(value);
|
|
405
|
-
if (token === null) {
|
|
406
|
-
ctx.addIssue({
|
|
407
|
-
code: "custom",
|
|
408
|
-
message: "Unknown site chrome background colour token"
|
|
409
|
-
});
|
|
410
|
-
return z.NEVER;
|
|
411
|
-
}
|
|
412
|
-
return token;
|
|
413
|
-
});
|
|
414
|
-
const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
|
|
415
|
-
kind: z.literal("color"),
|
|
416
|
-
token: backgroundColorTokenSchema
|
|
417
|
-
}).strict()]);
|
|
418
|
-
z.object({
|
|
419
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
420
|
-
navigationLayout: z.enum(["inline-wrap", "stack"])
|
|
421
|
-
}).strict();
|
|
422
|
-
z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region ../theme-core/src/site-styles/compilationPlan.ts
|
|
425
|
-
const defaultHeaderBrandPreferences = {
|
|
426
|
-
brandDisplay: "auto",
|
|
427
|
-
logoSize: "auto"
|
|
428
|
-
};
|
|
429
|
-
asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region ../theme-core/src/site-styles/sectionPhoto.ts
|
|
432
|
-
/** The photo a section keeps, wherever its background `type` points. */
|
|
433
|
-
function storedSectionPhoto(content) {
|
|
434
|
-
return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
|
|
435
|
-
}
|
|
436
|
-
function readRecord(value) {
|
|
437
|
-
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
438
|
-
}
|
|
439
|
-
//#endregion
|
|
440
|
-
//#region ../theme-core/src/site-styles/resolver.ts
|
|
441
|
-
const blockDesignFallback = {
|
|
442
|
-
sectionSurface: "base",
|
|
443
|
-
contentFrame: plainFrame,
|
|
444
|
-
sectionHeight: "default",
|
|
445
|
-
heroLegibility: "none",
|
|
446
|
-
imageSurfaceTreatment: { kind: "none" },
|
|
447
|
-
imageSurfaceMotion: "static",
|
|
448
|
-
tileTreatment: "default",
|
|
449
|
-
eventListTreatment: "plain",
|
|
450
|
-
eyebrowTreatment: "plain",
|
|
451
|
-
accordionIconTreatment: null,
|
|
452
|
-
composition: null
|
|
453
|
-
};
|
|
454
|
-
blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
|
|
455
|
-
//#endregion
|
|
456
|
-
//#region ../theme-core/src/site-styles/headerBrandPresentation.ts
|
|
457
|
-
/**
|
|
458
|
-
* Whether the header wears a brand presentation at all (#1318 Phase 4c).
|
|
459
|
-
*
|
|
460
|
-
* `applyHeaderBrandPresentation` is unconditional today: given a logo context
|
|
461
|
-
* it always writes a `logo` object carrying a resolved display, size and
|
|
462
|
-
* accommodation. That makes "this header has no brand presentation block" —
|
|
463
|
-
* which is what several live sites persist, including one whose site *does*
|
|
464
|
-
* have a logo asset — a state the preference record could not express, so a
|
|
465
|
-
* recompile would silently give the site a logo treatment it has never
|
|
466
|
-
* rendered.
|
|
467
|
-
*
|
|
468
|
-
* This is the third field in this phase with that shape, after the interaction
|
|
469
|
-
* palette and the nav text size: the persisted bytes carry intent the reader
|
|
470
|
-
* cannot say, so the recompile "corrects" it. The fix is the same one — widen
|
|
471
|
-
* the closed vocabulary with a named member and derive it by baseline
|
|
472
|
-
* comparison — and it is a *widening*, not a restyle: `'recommended'` is the
|
|
473
|
-
* default and reproduces today's behaviour exactly, so no row whose bytes carry
|
|
474
|
-
* a presentation compiles differently for `'plain'` existing.
|
|
475
|
-
*
|
|
476
|
-
* `'plain'` is deliberately not "preserve whatever bytes are there". It is a
|
|
477
|
-
* constructive instruction — *write no presentation block* — so Phase 4e's
|
|
478
|
-
* compiler, which builds the header from nothing, can produce it.
|
|
479
|
-
*/
|
|
480
|
-
const headerBrandPresentationValues = ["recommended", "plain"];
|
|
481
|
-
defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
|
|
482
|
-
//#endregion
|
|
483
|
-
//#region ../theme-core/src/site-styles/generatedSchemas.ts
|
|
484
|
-
function uniqueNonEmpty(values) {
|
|
485
|
-
const uniqueValues = [...new Set(values)];
|
|
486
|
-
const firstValue = uniqueValues[0];
|
|
487
|
-
if (!firstValue) throw new Error("Expected at least one generated schema option.");
|
|
488
|
-
return [firstValue, ...uniqueValues.slice(1)];
|
|
489
|
-
}
|
|
490
|
-
const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
|
|
491
|
-
const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
|
|
492
|
-
const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
|
|
493
|
-
const generatedPanelFrameSchema = z.object({
|
|
494
|
-
kind: z.literal("panel"),
|
|
495
|
-
treatment: z.enum(generatedPanelTreatments)
|
|
496
|
-
}).strict();
|
|
497
|
-
const generatedFlushPanelFrameSchema = z.object({
|
|
498
|
-
kind: z.literal("flush-panel"),
|
|
499
|
-
treatment: z.enum(generatedFlushTreatments),
|
|
500
|
-
bleed: z.enum(generatedFlushBleeds)
|
|
501
|
-
}).strict();
|
|
502
|
-
const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
|
|
503
|
-
z.object({ kind: z.literal("plain") }).strict(),
|
|
504
|
-
generatedPanelFrameSchema,
|
|
505
|
-
generatedFlushPanelFrameSchema
|
|
506
|
-
]);
|
|
507
|
-
const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
|
|
508
|
-
function generatedChoiceSchema(valueSchema) {
|
|
509
|
-
return z.discriminatedUnion("kind", [z.object({
|
|
510
|
-
source: z.literal("generated"),
|
|
511
|
-
kind: z.literal("auto")
|
|
512
|
-
}).strict(), z.object({
|
|
513
|
-
source: z.literal("generated"),
|
|
514
|
-
kind: z.literal("explicit"),
|
|
515
|
-
value: valueSchema
|
|
516
|
-
}).strict()]);
|
|
517
|
-
}
|
|
518
|
-
const generatedBlockDesignIntentSchema = z.object({
|
|
519
|
-
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
520
|
-
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
521
|
-
cardRole: generatedChoiceSchema(cardRoleSchema),
|
|
522
|
-
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
523
|
-
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
524
|
-
}).strict();
|
|
525
|
-
const generatedMediaCompositionIntentSchema = z.enum([
|
|
526
|
-
"none",
|
|
527
|
-
"supporting",
|
|
528
|
-
"dominant"
|
|
529
|
-
]);
|
|
530
|
-
const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
|
|
531
|
-
const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
|
|
532
|
-
const generatedBlockMediaIntentSchema = z.object({
|
|
533
|
-
media: generatedMediaCompositionIntentSchema,
|
|
534
|
-
decorative: generatedDecorativeCompositionIntentSchema,
|
|
535
|
-
heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
|
|
536
|
-
}).strict();
|
|
537
|
-
const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
|
|
538
|
-
const generatedPageDesignBlockIntentSchema = z.object({
|
|
539
|
-
blockId: z.string().min(1),
|
|
540
|
-
blockKind: z.string().min(1),
|
|
541
|
-
purpose: z.string().min(1),
|
|
542
|
-
design: generatedBlockDesignIntentSchema,
|
|
543
|
-
mediaIntent: generatedBlockMediaIntentSchema,
|
|
544
|
-
boundaryIntent: generatedBoundaryIntentSchema
|
|
545
|
-
}).strict();
|
|
546
|
-
z.object({
|
|
547
|
-
siteStyleId: generatedSiteStyleIdSchema,
|
|
548
|
-
blocks: z.array(generatedPageDesignBlockIntentSchema)
|
|
549
|
-
}).strict();
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
|
|
552
|
-
const logoTextIntentSchema = z.object({
|
|
553
|
-
mobileMaxWidth: z.enum([
|
|
554
|
-
"xs",
|
|
555
|
-
"sm",
|
|
556
|
-
"md"
|
|
557
|
-
]).optional(),
|
|
558
|
-
mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
559
|
-
hideOnShrink: z.boolean().optional()
|
|
560
|
-
}).strict();
|
|
561
|
-
const structureSchema = z.object({
|
|
562
|
-
positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
|
|
563
|
-
shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
|
|
564
|
-
logoText: z.union([
|
|
565
|
-
z.literal("inherit"),
|
|
566
|
-
z.literal("none"),
|
|
567
|
-
logoTextIntentSchema
|
|
568
|
-
])
|
|
569
|
-
}).strict();
|
|
570
|
-
const headerPreferencesShape = {
|
|
571
|
-
brandPresentation: z.enum(headerBrandPresentationValues),
|
|
572
|
-
brandDisplay: z.enum(brandDisplayModeValues),
|
|
573
|
-
logoSize: z.enum(logoSizePolicyValues),
|
|
574
|
-
navFontRole: z.enum(headerNavTypographyPreferenceValues),
|
|
575
|
-
navTextSize: z.enum(headerNavFontSizePreferenceValues),
|
|
576
|
-
interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
|
|
577
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
578
|
-
structure: structureSchema
|
|
579
|
-
};
|
|
580
|
-
z.object(headerPreferencesShape).strict();
|
|
581
|
-
z.object(headerPreferencesShape).omit({
|
|
582
|
-
brandPresentation: true,
|
|
583
|
-
structure: true
|
|
584
|
-
}).strict();
|
|
585
|
-
z.object(headerPreferencesShape).pick({
|
|
586
|
-
brandPresentation: true,
|
|
587
|
-
structure: true
|
|
588
|
-
}).strict();
|
|
589
|
-
//#endregion
|
|
590
|
-
//#region ../theme-core/src/site-styles/pageDesignAuthority.ts
|
|
591
|
-
const nonEmptyStringSchema = z.string().min(1);
|
|
592
|
-
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
593
|
-
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
594
|
-
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
595
|
-
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
596
|
-
const publishedPageBlockSnapshotSchema = z.object({
|
|
597
|
-
kind: z.literal("published-block-content"),
|
|
598
|
-
blockId: designBlockIdSchema,
|
|
599
|
-
contentVersionId: blockContentVersionIdSchema,
|
|
600
|
-
identifier: z.string().nullable(),
|
|
601
|
-
blockKind: nonEmptyStringSchema,
|
|
602
|
-
orderIndex: blockOrderIndexSchema
|
|
603
|
-
}).strict();
|
|
604
|
-
const draftPageBlockSnapshotSchema = z.object({
|
|
605
|
-
kind: z.literal("draft-block-content"),
|
|
606
|
-
blockId: designBlockIdSchema,
|
|
607
|
-
contentVersionId: blockContentVersionIdSchema.nullable(),
|
|
608
|
-
identifier: z.string().nullable(),
|
|
609
|
-
blockKind: nonEmptyStringSchema,
|
|
610
|
-
orderIndex: blockOrderIndexSchema
|
|
611
|
-
}).strict();
|
|
612
|
-
const missingPageBlockSnapshotSchema = z.object({
|
|
613
|
-
kind: z.literal("missing-block-content"),
|
|
614
|
-
blockId: designBlockIdSchema,
|
|
615
|
-
identifier: z.string().nullable(),
|
|
616
|
-
blockKind: nonEmptyStringSchema,
|
|
617
|
-
orderIndex: blockOrderIndexSchema,
|
|
618
|
-
reason: z.enum([
|
|
619
|
-
"new-block",
|
|
620
|
-
"deleted-content-version",
|
|
621
|
-
"unpublished-block"
|
|
622
|
-
])
|
|
623
|
-
}).strict();
|
|
624
|
-
const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
|
|
625
|
-
publishedPageBlockSnapshotSchema,
|
|
626
|
-
draftPageBlockSnapshotSchema,
|
|
627
|
-
missingPageBlockSnapshotSchema
|
|
628
|
-
]);
|
|
629
|
-
const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
630
|
-
const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
631
|
-
const publishedPageDesignVersionDataV1Schema = z.object({
|
|
632
|
-
schemaVersion: z.literal(1),
|
|
633
|
-
stage: z.literal("published"),
|
|
634
|
-
pageId: designPageIdSchema,
|
|
635
|
-
blockSequence: publishedPageBlockSequenceSchema
|
|
636
|
-
}).strict();
|
|
637
|
-
const draftPageDesignVersionDataV1Schema = z.object({
|
|
638
|
-
schemaVersion: z.literal(1),
|
|
639
|
-
stage: z.literal("draft"),
|
|
640
|
-
pageId: designPageIdSchema,
|
|
641
|
-
blockSequence: draftPageBlockSequenceSchema
|
|
642
|
-
}).strict();
|
|
643
|
-
z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
|
|
644
|
-
function validateBlockSequence(snapshots, ctx) {
|
|
645
|
-
collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
|
|
646
|
-
}
|
|
647
|
-
function collectBlockSequenceIssues(snapshots) {
|
|
648
|
-
const indexed = snapshots.map((snapshot, index) => ({
|
|
649
|
-
...snapshot,
|
|
650
|
-
index
|
|
651
|
-
}));
|
|
652
|
-
const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
|
|
653
|
-
const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
|
|
654
|
-
return indexed.flatMap((snapshot, index) => {
|
|
655
|
-
const previous = snapshots[index - 1]?.orderIndex;
|
|
656
|
-
return [
|
|
657
|
-
...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
|
|
658
|
-
code: z.ZodIssueCode.custom,
|
|
659
|
-
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
660
|
-
path: [index, "blockId"]
|
|
661
|
-
}] : [],
|
|
662
|
-
...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
|
|
663
|
-
code: z.ZodIssueCode.custom,
|
|
664
|
-
message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
|
|
665
|
-
path: [index, "orderIndex"]
|
|
666
|
-
}] : [],
|
|
667
|
-
...previous !== void 0 && snapshot.orderIndex <= previous ? [{
|
|
668
|
-
code: z.ZodIssueCode.custom,
|
|
669
|
-
message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
|
|
670
|
-
path: [index, "orderIndex"]
|
|
671
|
-
}] : []
|
|
672
|
-
];
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
//#endregion
|
|
676
|
-
//#region ../theme-core/src/site-styles/sectionPhotoGround.ts
|
|
677
|
-
/**
|
|
678
|
-
* How the Looks built on an arrangement use the photo. Looks that share an
|
|
679
|
-
* arrangement render the same tree, so they agree (a catalogue test holds
|
|
680
|
-
* them to it). Null for keys no arrangement Look uses.
|
|
681
|
-
*/
|
|
682
|
-
function arrangementPhotoUse(blockKind, arrangementKey) {
|
|
683
|
-
return arrangementAppearancePresets.find((entry) => entry.blockKinds.some((kind) => kind === blockKind) && Object.values(entry.structure.byMode).includes(arrangementKey))?.structure.photoUse ?? null;
|
|
684
|
-
}
|
|
685
|
-
/** Older hero layouts no arrangement Look is built on, which show the photo beside the text. */
|
|
686
|
-
const recipeOnlyHeroLayoutsWithPhotoBeside = ["splitReverse"];
|
|
687
|
-
/** One photo-placement decision for the hero's renderers: does the photo paint the section ground? */
|
|
688
|
-
function heroPhotoPaintsGround(variant) {
|
|
689
|
-
const key = variant ?? "classic";
|
|
690
|
-
const use = arrangementPhotoUse("block.hero", key);
|
|
691
|
-
return use === null ? !recipeOnlyHeroLayoutsWithPhotoBeside.includes(key) : use === "behind";
|
|
692
|
-
}
|
|
693
|
-
//#endregion
|
|
694
|
-
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
695
|
-
const themeTokenRecipeOptions = {
|
|
696
|
-
palette: [
|
|
697
|
-
"brand-led",
|
|
698
|
-
"warm-neutral",
|
|
699
|
-
"high-contrast",
|
|
700
|
-
"soft-natural"
|
|
701
|
-
],
|
|
702
|
-
contrast: [
|
|
703
|
-
"standard",
|
|
704
|
-
"strong",
|
|
705
|
-
"maximum"
|
|
706
|
-
],
|
|
707
|
-
radius: [
|
|
708
|
-
"square",
|
|
709
|
-
"soft",
|
|
710
|
-
"rounded",
|
|
711
|
-
"pill"
|
|
712
|
-
],
|
|
713
|
-
shadow: [
|
|
714
|
-
"none",
|
|
715
|
-
"subtle",
|
|
716
|
-
"layered"
|
|
717
|
-
],
|
|
718
|
-
typography: [
|
|
719
|
-
"serif-editorial",
|
|
720
|
-
"clean-sans",
|
|
721
|
-
"classic-serif",
|
|
722
|
-
"friendly-sans"
|
|
723
|
-
],
|
|
724
|
-
spacing: [
|
|
725
|
-
"compact",
|
|
726
|
-
"regular",
|
|
727
|
-
"airy"
|
|
728
|
-
],
|
|
729
|
-
motion: [
|
|
730
|
-
"none",
|
|
731
|
-
"subtle",
|
|
732
|
-
"expressive"
|
|
733
|
-
]
|
|
734
|
-
};
|
|
735
|
-
z.object({
|
|
736
|
-
palette: z.enum(themeTokenRecipeOptions.palette),
|
|
737
|
-
contrast: z.enum(themeTokenRecipeOptions.contrast),
|
|
738
|
-
radius: z.enum(themeTokenRecipeOptions.radius),
|
|
739
|
-
shadow: z.enum(themeTokenRecipeOptions.shadow),
|
|
740
|
-
typography: z.enum(themeTokenRecipeOptions.typography),
|
|
741
|
-
spacing: z.enum(themeTokenRecipeOptions.spacing),
|
|
742
|
-
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
743
|
-
});
|
|
744
|
-
z.number().int().nonnegative().brand();
|
|
745
|
-
//#endregion
|
|
746
|
-
//#region ../theme-core/src/site-styles/pageEditAdmission.ts
|
|
747
|
-
const generationSchema = z.string().transform((value, ctx) => {
|
|
748
|
-
const result = parseEditorSessionGeneration(value);
|
|
749
|
-
if (result.ok) return result.value;
|
|
750
|
-
ctx.addIssue({
|
|
751
|
-
code: "custom",
|
|
752
|
-
message: "Invalid editor session generation"
|
|
753
|
-
});
|
|
754
|
-
return z.NEVER;
|
|
755
|
-
});
|
|
756
|
-
z.discriminatedUnion("kind", [z.object({
|
|
757
|
-
kind: z.literal("open"),
|
|
758
|
-
generation: generationSchema
|
|
759
|
-
}).strict(), z.object({
|
|
760
|
-
kind: z.literal("paused"),
|
|
761
|
-
generation: generationSchema
|
|
762
|
-
}).strict()]);
|
|
763
|
-
z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
764
|
-
kind: "decisions",
|
|
765
|
-
decisions
|
|
766
|
-
}))], { error: (issue) => {
|
|
767
|
-
const value = issue.input;
|
|
768
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
|
|
769
|
-
} });
|
|
770
|
-
[...[
|
|
771
|
-
165,
|
|
772
|
-
150,
|
|
773
|
-
135,
|
|
774
|
-
120,
|
|
775
|
-
105,
|
|
776
|
-
90,
|
|
777
|
-
75,
|
|
778
|
-
60,
|
|
779
|
-
45,
|
|
780
|
-
30
|
|
781
|
-
].flatMap((o) => [o, -o])];
|
|
782
|
-
bookingPageLookIdValues.map((value) => {
|
|
783
|
-
const id = parseBookingPageLookId(value);
|
|
784
|
-
if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
|
|
785
|
-
const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
|
|
786
|
-
if (!style) throw new Error(`Booking look is not offered: ${value}`);
|
|
787
|
-
return {
|
|
788
|
-
...style,
|
|
789
|
-
id
|
|
790
|
-
};
|
|
791
|
-
});
|
|
792
|
-
//#endregion
|
|
793
|
-
export { sectionFactsForContent as a, parseCanonicalRuntimeBackground as c, defineBlockDesignMetadata as d, composeBoundary as i, resolveSectionBackground as l, storedSectionPhoto as n, applyLookPhotoTreatment as o, boundaryLayout as r, deriveSectionGround as s, heroPhotoPaintsGround as t, sectionForegroundBackground as u };
|