@riverbankcms/sdk 0.163.0 → 0.164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-C3mJvn27.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-DYQFmf--.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-D_pQO-AS.d.ts} +21803 -21487
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-JS8WYgD3.d.ts} +31245 -31027
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -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/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 +2 -2
- 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/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/index.d.ts +7 -7
- 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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-BmtrA45p.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-hrSyTApW.mjs} +20 -16
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-Dub71o3c.mjs} +444 -199
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-BX-vWwQc.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BMsWpx8y.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-DMUkBtIO.mjs} +2385 -2364
- package/dist/client/{shop-CTUaT57E.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BQdm441g.mjs} +24 -14
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-BLHYJ8S7.mjs} +20 -15
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-yUIfWX3S.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +68 -68
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-C-1zDCR_.mjs} +3 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +240 -177
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-g7NPrsGp.mjs} +60 -45
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewAuthStore-By_zfrS5.mjs} +102570 -102217
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → siteStyleAccess-BiSyYyyr.mjs} +3541 -3525
- package/dist/preview-next/client/{spinner-CjxE3uws.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-D5tHZEz5.mjs} +31 -42
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-Iy7g11iP.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-CiKaE8ms.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +14 -8
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DVemf-GV.mjs} +66 -46
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-Bnbwoe5n.mjs} +48 -27
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-D3Fc5TKk.mjs} +76 -70
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-zjd1P2Dl.mjs} +34 -21
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-BlTWmTSl.mjs} +58 -37
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-yHytcXIB.mjs} +9 -10
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-cbbK3Bho.mjs} +286 -71
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +262 -65
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { At as parseCanonicalMediaIdentifier, Ct as persistableMediaSchema, Et as renderableMediaAssetSchema, Ot as resolveManagedMediaReference, St as mediaSchema, Tt as buildRenderableMediaAssetIndex, jt as parseMediaIdentifier, kt as mediaIdentifierSchema, wt as runtimeMediaSchema } from "./schema-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE, v as admitLayoutGridForPlan, y as deriveFieldValidationPlan } from "./themeAdmission-
|
|
5
|
-
import { x as resolveAuthoredLinkHref } from "./prefetchBlockData-
|
|
6
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-
|
|
7
|
-
import { t as loadPage } from "./loadPage-
|
|
8
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { At as parseCanonicalMediaIdentifier, Ct as persistableMediaSchema, Et as renderableMediaAssetSchema, Ot as resolveManagedMediaReference, St as mediaSchema, Tt as buildRenderableMediaAssetIndex, jt as parseMediaIdentifier, kt as mediaIdentifierSchema, wt as runtimeMediaSchema } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import { $ as RichText$2, Oi as parseFieldDefinition, Ri as projectRepeaterGridLayout$1, at as resolveImageUrlWithContext$1, it as resolveImageUrl$1, nt as computeMediaTransformStyle, rt as resolveImageSourceSetWithContext$1, st as buildResolveImageUrlContext, ut as sanitizeHref, zi as projectRepeaterGridLayoutForRendering$1 } from "./registry-zjd1P2Dl.mjs";
|
|
3
|
+
import { C as toBlocksImageResolveContextInput, S as toBlocksPageRendererDataContext, T as buildThemeRuntime, b as MissingBlockOverrideError, d as toPageHydrationBootstrapConfig, n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations, u as PageContent, v as ThemeScope, w as toBlocksMediaAssets, x as PageRenderer, y as EditorPageRenderer } from "./overrides-DVemf-GV.mjs";
|
|
4
|
+
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE, v as admitLayoutGridForPlan, y as deriveFieldValidationPlan } from "./themeAdmission-BdY8lP-K.mjs";
|
|
5
|
+
import { x as resolveAuthoredLinkHref } from "./prefetchBlockData-Bnbwoe5n.mjs";
|
|
6
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-Iy7g11iP.mjs";
|
|
7
|
+
import { t as loadPage } from "./loadPage-Dk4wea8M.mjs";
|
|
8
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BuintpdO.mjs";
|
|
9
9
|
import "./bindings-Dgt_0goJ.mjs";
|
|
10
10
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
11
11
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-
|
|
1
|
+
import { n as prefetchBlockDataWithFailures } from "./prefetchBlockData-Bnbwoe5n.mjs";
|
|
2
2
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|
|
3
3
|
//#region src/data/defineOwnDataProperty.ts
|
|
4
4
|
/** Define a string key as ordinary data without invoking legacy prototype setters. */
|
package/dist/server/routing.mjs
CHANGED
|
@@ -69,7 +69,7 @@ async function checkRedirectForPath(params) {
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/routing/resolveRoute.ts
|
|
71
71
|
const defaultResolveRouteDeps = { loadPage: async (params) => {
|
|
72
|
-
const { loadPage } = await import("./loadPage-
|
|
72
|
+
const { loadPage } = await import("./loadPage-BwjncpJf.mjs");
|
|
73
73
|
return loadPage(params);
|
|
74
74
|
} };
|
|
75
75
|
/**
|
|
@@ -4517,7 +4517,7 @@ function ownSurfaceRevision(context) {
|
|
|
4517
4517
|
buttonSystem: context.buttonSystem
|
|
4518
4518
|
});
|
|
4519
4519
|
registerOwnedRevisionInputs(revision);
|
|
4520
|
-
surfaceRevisionOwners.set(revision, revision);
|
|
4520
|
+
surfaceRevisionOwners.set(revision, { revision });
|
|
4521
4521
|
revisionOwners.set(revision.palette, /* @__PURE__ */ new Map([[revision.buttonSystem, revision]]));
|
|
4522
4522
|
return revision;
|
|
4523
4523
|
}
|
|
@@ -4528,7 +4528,7 @@ function ownSurfaceRevision(context) {
|
|
|
4528
4528
|
palette: context.palette,
|
|
4529
4529
|
buttonSystem: context.buttonSystem
|
|
4530
4530
|
});
|
|
4531
|
-
surfaceRevisionOwners.set(revision, revision);
|
|
4531
|
+
surfaceRevisionOwners.set(revision, { revision });
|
|
4532
4532
|
revisions.set(context.buttonSystem, revision);
|
|
4533
4533
|
revisionOwners.set(context.palette, revisions);
|
|
4534
4534
|
return revision;
|
|
@@ -4541,7 +4541,11 @@ function surfaceTransportContext(context) {
|
|
|
4541
4541
|
colourIndex: context.colourIndex,
|
|
4542
4542
|
solvedInks: context.solvedInks
|
|
4543
4543
|
});
|
|
4544
|
-
|
|
4544
|
+
const preparedSurfaces = matchingPreparedSurfaceIndex(preparedSurfaceIndexFor(context), result);
|
|
4545
|
+
surfaceRevisionOwners.set(result, {
|
|
4546
|
+
revision,
|
|
4547
|
+
preparedSurfaces
|
|
4548
|
+
});
|
|
4545
4549
|
return result;
|
|
4546
4550
|
}
|
|
4547
4551
|
/** Called only after copying and recursively freezing owner inputs. */
|
|
@@ -4560,10 +4564,14 @@ function requireResolvedSurface(value) {
|
|
|
4560
4564
|
function resolveSurface(spec, context) {
|
|
4561
4565
|
return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? certifySurface(spec, context);
|
|
4562
4566
|
}
|
|
4567
|
+
function matchingPreparedSurfaceIndex(index, context) {
|
|
4568
|
+
return index && preparedIndexOwners.has(index) && index.palette === context.palette && index.buttonSystem === context.buttonSystem && index.colourIndex === context.colourIndex ? index : void 0;
|
|
4569
|
+
}
|
|
4570
|
+
function preparedSurfaceIndexFor(context) {
|
|
4571
|
+
return matchingPreparedSurfaceIndex(context.preparedSurfaces ?? surfaceRevisionOwners.get(context)?.preparedSurfaces, context);
|
|
4572
|
+
}
|
|
4563
4573
|
function preparedSurfaceValue(spec, context) {
|
|
4564
|
-
|
|
4565
|
-
if (!index || !preparedIndexOwners.has(index) || index.palette !== context.palette || index.buttonSystem !== context.buttonSystem || index.colourIndex !== context.colourIndex) return void 0;
|
|
4566
|
-
return index.values[surfaceResolutionKey(spec, context)];
|
|
4574
|
+
return preparedSurfaceIndexFor(context)?.values[surfaceResolutionKey(spec, context)];
|
|
4567
4575
|
}
|
|
4568
4576
|
function surfaceResolutionKey(spec, context) {
|
|
4569
4577
|
const declaration = spec.kind === "tint" ? {
|
|
@@ -4658,12 +4666,7 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
4658
4666
|
paint,
|
|
4659
4667
|
contrast: { kind: "unmeasured" }
|
|
4660
4668
|
};
|
|
4661
|
-
|
|
4662
|
-
return contrast.kind === "measured" ? {
|
|
4663
|
-
...decision,
|
|
4664
|
-
paint,
|
|
4665
|
-
contrast
|
|
4666
|
-
} : {
|
|
4669
|
+
if (resolved.kind !== "known" || resolved.provenance.kind !== "measured") return {
|
|
4667
4670
|
...decision,
|
|
4668
4671
|
paint,
|
|
4669
4672
|
contrast: {
|
|
@@ -4672,6 +4675,12 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
4672
4675
|
source: "paint"
|
|
4673
4676
|
}
|
|
4674
4677
|
};
|
|
4678
|
+
return {
|
|
4679
|
+
...decision,
|
|
4680
|
+
paint,
|
|
4681
|
+
foreground: resolved.roles,
|
|
4682
|
+
contrast: surfaceContrast(resolved.roles, resolved.provenance.backdropHex, context.palette, context.colourIndex)
|
|
4683
|
+
};
|
|
4675
4684
|
}
|
|
4676
4685
|
/** A paint the element owns but that resolves as inherited (an empty token) still blocks outer inks. */
|
|
4677
4686
|
function ownedInkPublication(resolved, context) {
|
|
@@ -4707,19 +4716,17 @@ function resolveSurfaceButtons(paint, foreground, context) {
|
|
|
4707
4716
|
withoutButtonSystem: "reset"
|
|
4708
4717
|
});
|
|
4709
4718
|
}
|
|
4710
|
-
function surfaceContrast(
|
|
4711
|
-
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return { kind: "unmeasured" };
|
|
4712
|
-
const backdrop = foreground.provenance.backdropHex;
|
|
4719
|
+
function surfaceContrast(roles, backdrop, palette, colourIndex) {
|
|
4713
4720
|
const ratio = (token) => contrastRatio(resolveOpaqueSurfaceHex(token, palette, backdrop) ?? backdrop, backdrop, colourIndex);
|
|
4714
4721
|
return {
|
|
4715
4722
|
kind: "measured",
|
|
4716
4723
|
ratios: {
|
|
4717
|
-
text: ratio(
|
|
4718
|
-
heading: ratio(
|
|
4719
|
-
link: ratio(
|
|
4720
|
-
linkHover: ratio(
|
|
4721
|
-
supporting: ratio(
|
|
4722
|
-
muted: ratio(
|
|
4724
|
+
text: ratio(roles.text),
|
|
4725
|
+
heading: ratio(roles.heading),
|
|
4726
|
+
link: ratio(roles.link),
|
|
4727
|
+
linkHover: ratio(roles.linkHover),
|
|
4728
|
+
supporting: ratio(roles.supporting),
|
|
4729
|
+
muted: ratio(roles.muted)
|
|
4723
4730
|
}
|
|
4724
4731
|
};
|
|
4725
4732
|
}
|
|
@@ -4736,24 +4743,27 @@ function resolveSectionSurface(background, context) {
|
|
|
4736
4743
|
foreground: foreground.kind === "known" ? foreground.roles.link : void 0
|
|
4737
4744
|
} : background.type === "gradient" ? { kind: "gradient" } : { kind: "image" };
|
|
4738
4745
|
const revision = ownSurfaceRevision(context);
|
|
4746
|
+
const buttonContext = resolveSurfaceButtonContext({
|
|
4747
|
+
surface,
|
|
4748
|
+
palette: revision.palette,
|
|
4749
|
+
buttonSystem: revision.buttonSystem,
|
|
4750
|
+
primaryToken: sectionPrimaryButtonToken(background, context),
|
|
4751
|
+
fallbackToken: context.compositeBase,
|
|
4752
|
+
withoutButtonSystem: "inherit"
|
|
4753
|
+
});
|
|
4739
4754
|
const result = {
|
|
4740
4755
|
kind: "section",
|
|
4741
4756
|
foreground,
|
|
4742
4757
|
inks: surfaceInkPublication(foreground, context.solvedInks ?? "withhold"),
|
|
4743
|
-
buttonStyles:
|
|
4744
|
-
|
|
4745
|
-
palette: revision.palette,
|
|
4746
|
-
buttonSystem: revision.buttonSystem,
|
|
4747
|
-
primaryToken: sectionPrimaryButtonToken(background, context),
|
|
4748
|
-
fallbackToken: context.compositeBase,
|
|
4749
|
-
withoutButtonSystem: "inherit"
|
|
4750
|
-
}).styles,
|
|
4758
|
+
buttonStyles: buttonContext.styles,
|
|
4759
|
+
buttonContext,
|
|
4751
4760
|
proof: sectionProof(background, foreground),
|
|
4752
4761
|
revision,
|
|
4753
4762
|
textPolicy: surfaceTextPolicy,
|
|
4754
4763
|
[resolvedSurfaceBrand]: true
|
|
4755
4764
|
};
|
|
4756
4765
|
Object.defineProperties(result, {
|
|
4766
|
+
buttonContext: { enumerable: false },
|
|
4757
4767
|
proof: { enumerable: false },
|
|
4758
4768
|
revision: { enumerable: false },
|
|
4759
4769
|
textPolicy: { enumerable: false }
|
|
@@ -4916,9 +4926,8 @@ function certifySurface(spec, context) {
|
|
|
4916
4926
|
})
|
|
4917
4927
|
};
|
|
4918
4928
|
const decision = resolveSurfaceSpec(inputs.spec, inputs.context);
|
|
4919
|
-
const result = Object.assign(decision, {
|
|
4929
|
+
const result = Object.assign(surfaceProof(decision, spec), {
|
|
4920
4930
|
[resolvedSurfaceBrand]: true,
|
|
4921
|
-
proof: surfaceProof(decision, spec),
|
|
4922
4931
|
revision,
|
|
4923
4932
|
textPolicy: surfaceTextPolicy,
|
|
4924
4933
|
$surface: inputs
|
|
@@ -4932,11 +4941,23 @@ function certifySurface(spec, context) {
|
|
|
4932
4941
|
surfaceTransports.set(result, inputs);
|
|
4933
4942
|
return freezeOwnedThemeValue(result);
|
|
4934
4943
|
}
|
|
4944
|
+
function isSolidSurfaceDecision(decision) {
|
|
4945
|
+
return decision.kind === "owned" && decision.contrast.kind === "measured";
|
|
4946
|
+
}
|
|
4935
4947
|
function surfaceProof(decision, spec) {
|
|
4936
|
-
if (decision.kind === "inherit") return
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4948
|
+
if (decision.kind === "inherit") return {
|
|
4949
|
+
...decision,
|
|
4950
|
+
proof: "inherit"
|
|
4951
|
+
};
|
|
4952
|
+
if (!isSolidSurfaceDecision(decision)) return {
|
|
4953
|
+
...decision,
|
|
4954
|
+
proof: "unproven-media"
|
|
4955
|
+
};
|
|
4956
|
+
const proof = spec.kind === "tint" ? spec.gradient === "radial" ? "checked-gradient-or-scrim" : "checked-composited" : /\/|rgba\(/.test(decision.paint.token) ? "checked-composited" : "checked-solid";
|
|
4957
|
+
return {
|
|
4958
|
+
...decision,
|
|
4959
|
+
proof
|
|
4960
|
+
};
|
|
4940
4961
|
}
|
|
4941
4962
|
function sectionProof(background, foreground) {
|
|
4942
4963
|
if (background === null) return "inherit";
|
|
@@ -4956,7 +4977,7 @@ function serializeSurfaceTree(value) {
|
|
|
4956
4977
|
return index;
|
|
4957
4978
|
};
|
|
4958
4979
|
const encode = (item) => {
|
|
4959
|
-
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item) : void 0;
|
|
4980
|
+
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item)?.revision : void 0;
|
|
4960
4981
|
if (revision) return {
|
|
4961
4982
|
$surfaceRevision: revisionIndex(revision),
|
|
4962
4983
|
solvedInks: isSurfaceTreeRecord(item) ? item.solvedInks : void 0
|
|
@@ -5004,7 +5025,7 @@ const surfaceRevisionReferenceSchema = z.object({
|
|
|
5004
5025
|
/** Recreate owner results before any island's ordinary schema consumes them. */
|
|
5005
5026
|
function parseSurfaceTree(value, solvedInks) {
|
|
5006
5027
|
if (isResolvedSurface(value)) return resolveTransportedSurface(value, solvedInks);
|
|
5007
|
-
const revision = isSurfaceTreeRecord(value) ? surfaceRevisionOwners.get(value) : void 0;
|
|
5028
|
+
const revision = isSurfaceTreeRecord(value) ? surfaceRevisionOwners.get(value)?.revision : void 0;
|
|
5008
5029
|
if (revision) return solvedInks === void 0 ? value : surfaceTransportContext({
|
|
5009
5030
|
...revision,
|
|
5010
5031
|
solvedInks
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as loadPage } from "./loadPage-
|
|
2
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
3
|
-
import { t as createRiverbankClient } from "./client-
|
|
1
|
+
import { t as loadPage } from "./loadPage-Dk4wea8M.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-BuintpdO.mjs";
|
|
3
|
+
import { t as createRiverbankClient } from "./client-CiKaE8ms.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as logoSizePolicyValues, Ft as asBlockOrderIndex, Gn as surfaceToneFromForegroundToken, K as cardRoleSchema, Kn as resolveSurfaceForeground, Lt as asDesignBlockId, Mn as gradientScrimSamples, Mr as themeColorShadeSteps, Nn as scrimTone, Pt as asBlockContentVersionId, Q as brandDisplayModeValues, Ut as asSiteStyleId, Vt as asLayoutVariantKey, Wt as assertNever, X as headerInteractionPaletteValues, _t as runtimeBoxBackgroundSchema, an as plainFrame, jr as parseThemeColorToken, n as headerPositioningValues, pn as parseEditorSessionGeneration, tr as resolveConcreteColorHex, zt as asDesignPageId } from "./schema-
|
|
2
|
-
import { F as
|
|
1
|
+
import { $ as logoSizePolicyValues, Ft as asBlockOrderIndex, Gn as surfaceToneFromForegroundToken, Ht as asPageFlowPresetId, K as cardRoleSchema, Kn as resolveSurfaceForeground, Lt as asDesignBlockId, Mn as gradientScrimSamples, Mr as themeColorShadeSteps, Nn as scrimTone, Pt as asBlockContentVersionId, Q as brandDisplayModeValues, Ut as asSiteStyleId, Vt as asLayoutVariantKey, Wt as assertNever, X as headerInteractionPaletteValues, _t as runtimeBoxBackgroundSchema, an as plainFrame, jr as parseThemeColorToken, n as headerPositioningValues, pn as parseEditorSessionGeneration, tr as resolveConcreteColorHex, zt as asDesignPageId } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import { B as noneBoundaryOption, C as offeredSiteStyles, F as parseBookingPageLookId, H as spaciousBoundaryOption, I as pageDesignDecisionsV2Schema, P as bookingPageLookIdValues, S as curatedSiteStyleIdValues, V as softBoundaryOption, c as headerNavFontSizePreferenceValues, k as generatedDesignOptionCatalog, l as headerNavTypographyPreferenceValues, s as defaultHeaderNavPreferences, z as boundaryRuntimeMetricsForDecorativeTransition } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
5
5
|
function defineBlockDesignMetadata(input) {
|
|
@@ -67,19 +67,17 @@ function parseCanonicalRuntimeBackground(content) {
|
|
|
67
67
|
if (!background) return { kind: "none" };
|
|
68
68
|
const parsed = runtimeBoxBackgroundSchema.safeParse(background);
|
|
69
69
|
if (!parsed.success) return { kind: "none" };
|
|
70
|
-
|
|
71
|
-
return painted.contentOwner === "page-design-editor" ? {
|
|
70
|
+
return parsed.data.contentOwner === "page-design-editor" ? {
|
|
72
71
|
kind: "page-design-override",
|
|
73
|
-
background:
|
|
72
|
+
background: parsed.data
|
|
74
73
|
} : {
|
|
75
74
|
kind: "block-authored",
|
|
76
|
-
background:
|
|
75
|
+
background: parsed.data
|
|
77
76
|
};
|
|
78
77
|
}
|
|
79
78
|
/** The Look owns shading and ink together; authored image/crop stay intact. */
|
|
80
|
-
function applyLookPhotoTreatment(
|
|
81
|
-
|
|
82
|
-
if (background.type !== "image" || structure?.photoTreatment !== "text-overlay") return background;
|
|
79
|
+
function applyLookPhotoTreatment(background, treatment) {
|
|
80
|
+
if (background.type !== "image" || treatment !== "text-overlay") return background;
|
|
83
81
|
return {
|
|
84
82
|
...background,
|
|
85
83
|
overlay: {
|
|
@@ -430,6 +428,7 @@ const defaultHeaderBrandPreferences = {
|
|
|
430
428
|
brandDisplay: "auto",
|
|
431
429
|
logoSize: "auto"
|
|
432
430
|
};
|
|
431
|
+
asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
|
|
433
432
|
//#endregion
|
|
434
433
|
//#region ../theme-core/src/site-styles/resolver.ts
|
|
435
434
|
const blockDesignFallback = {
|
|
@@ -766,4 +765,4 @@ bookingPageLookIdValues.map((value) => {
|
|
|
766
765
|
30
|
|
767
766
|
].flatMap((o) => [o, -o])];
|
|
768
767
|
//#endregion
|
|
769
|
-
export {
|
|
768
|
+
export { deriveSectionGround as a, resolveSectionBackground as c, applyLookPhotoTreatment as i, sectionForegroundBackground as l, composeBoundary as n, heroPhotoPaintsGround as o, sectionFactsForContent as r, parseCanonicalRuntimeBackground as s, boundaryLayout as t, defineBlockDesignMetadata as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Jn as surfaceInkPublication, Kn as resolveSurfaceForeground, Or as rgbColorValue, Sr as surfaceInkDeclarations, W as renderCssDeclarations, Wt as assertNever, Xn as expandPalette, _r as surfaceForegroundDeclarations, a as generateMobileOverlayBackdropFilterFix, br as surfaceForegroundValue, h as getComponentShadowVar, i as generateHeaderScrollTreatmentStyles, l as MQ_MD_DOWN, lr as TokenResolver, m as getComponentBorderWidthPx, o as getHeaderPaintTargets, s as renderHeaderPaintTargetRules, vr as surfaceForegroundInputFromResolved, yt as siteChromeBackgroundOverrideOwner } from "./schema-
|
|
2
|
-
import {
|
|
1
|
+
import { Jn as surfaceInkPublication, Kn as resolveSurfaceForeground, Or as rgbColorValue, Sr as surfaceInkDeclarations, W as renderCssDeclarations, Wt as assertNever, Xn as expandPalette, _r as surfaceForegroundDeclarations, a as generateMobileOverlayBackdropFilterFix, br as surfaceForegroundValue, h as getComponentShadowVar, i as generateHeaderScrollTreatmentStyles, l as MQ_MD_DOWN, lr as TokenResolver, m as getComponentBorderWidthPx, o as getHeaderPaintTargets, s as renderHeaderPaintTargetRules, vr as surfaceForegroundInputFromResolved, yt as siteChromeBackgroundOverrideOwner } from "./schema-BlTWmTSl.mjs";
|
|
2
|
+
import { L as headerNeedsPhotoShade, M as buildTextContrastShadow, N as generateNavLinkCSS, R as headerRootPaint, d as readHeaderNavFontSizePreference, o as readOpeningToneProjection, t as effectiveHeaderNavLinkStyle, u as mergeHeaderNavTypographyPreference } from "./effectiveNavLinkStyle-EDSdd_oK.mjs";
|
|
3
3
|
//#region ../theme-core/src/responsive/mediaQuery.ts
|
|
4
4
|
/**
|
|
5
5
|
* Convert familiar viewport media queries to container queries when safe.
|
|
@@ -256,10 +256,9 @@ function generateHeaderCss(options) {
|
|
|
256
256
|
}));
|
|
257
257
|
cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
|
|
258
258
|
cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
cssChunks.push(
|
|
262
|
-
cssChunks.push(generateDropdownLinkStyles(menuHeader, themeId, tokens, theme, dropdown));
|
|
259
|
+
const dropdown = resolveDropdownSurface(header, theme, tokens, solvedInks);
|
|
260
|
+
cssChunks.push(generateDropdownContainerStyles(themeId, tokens, dropdown));
|
|
261
|
+
cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme, dropdown));
|
|
263
262
|
cssChunks.push(generateDropdownCaretStyles(themeId));
|
|
264
263
|
cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
|
|
265
264
|
cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
|
|
@@ -353,10 +352,10 @@ function generateLogoTextBehaviorStyles(logoText, themeId) {
|
|
|
353
352
|
/**
|
|
354
353
|
* Generate dropdown menu container styles
|
|
355
354
|
*/
|
|
356
|
-
function generateDropdownContainerStyles(
|
|
355
|
+
function generateDropdownContainerStyles(themeId, tokens, surface) {
|
|
357
356
|
const selector = `:where([data-theme-scope="${themeId}"]) .nav-dropdown-menu`;
|
|
358
357
|
const rules = [];
|
|
359
|
-
const dropdownStyle =
|
|
358
|
+
const dropdownStyle = surface.style;
|
|
360
359
|
rules.push(...NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES);
|
|
361
360
|
rules.push(`background-color: ${surface.backgroundColor};`);
|
|
362
361
|
rules.push(...surface.foregroundDeclarations);
|
|
@@ -388,8 +387,9 @@ function dropdownLinkEffects(style, textToken, opacity) {
|
|
|
388
387
|
options: { hoverColorToken: style.hoverTextColor }
|
|
389
388
|
}] : []];
|
|
390
389
|
}
|
|
391
|
-
function dropdownNavLinkStyle(header,
|
|
392
|
-
const style =
|
|
390
|
+
function dropdownNavLinkStyle(header, surface) {
|
|
391
|
+
const style = surface.style;
|
|
392
|
+
const textToken = surface.textToken;
|
|
393
393
|
return {
|
|
394
394
|
name: "Dropdown",
|
|
395
395
|
typography: "body",
|
|
@@ -425,9 +425,9 @@ function generateDropdownLinkStyles(header, themeId, tokens, theme, surface) {
|
|
|
425
425
|
themeId,
|
|
426
426
|
tokens,
|
|
427
427
|
theme,
|
|
428
|
-
style: dropdownNavLinkStyle(header, surface
|
|
428
|
+
style: dropdownNavLinkStyle(header, surface),
|
|
429
429
|
className: "nav-dropdown-link"
|
|
430
|
-
}) + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${dropdownTypographyRules(
|
|
430
|
+
}) + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${dropdownTypographyRules(surface.style).join("\n ")}\n}\n`;
|
|
431
431
|
}
|
|
432
432
|
function generateDropdownCaretStyles(themeId) {
|
|
433
433
|
return `
|
|
@@ -456,37 +456,32 @@ ${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger.header-nav-link
|
|
|
456
456
|
`.trim();
|
|
457
457
|
}
|
|
458
458
|
/** Reuse the header's decided opening tone; unknown openings retain opaque paint. */
|
|
459
|
-
function
|
|
459
|
+
function contextualDropdownStyle(header) {
|
|
460
460
|
const style = header.dropdownStyle;
|
|
461
461
|
const treatment = style?.surfaceTreatment;
|
|
462
|
-
if (!style || treatment?.kind !== "frosted" || treatment.tone !== "opening") return
|
|
463
|
-
const
|
|
464
|
-
if (!
|
|
465
|
-
...
|
|
466
|
-
|
|
467
|
-
...style,
|
|
468
|
-
surfaceTreatment: { kind: "solid" }
|
|
469
|
-
}
|
|
462
|
+
if (!style || treatment?.kind !== "frosted" || treatment.tone !== "opening") return style;
|
|
463
|
+
const tone = readOpeningToneProjection(header);
|
|
464
|
+
if (!tone) return {
|
|
465
|
+
...style,
|
|
466
|
+
surfaceTreatment: { kind: "solid" }
|
|
470
467
|
};
|
|
471
|
-
const
|
|
472
|
-
const textColor = dark ? "neutral-50" : "neutral-950";
|
|
468
|
+
const textColor = tone === "dark" ? "neutral-50" : "neutral-950";
|
|
473
469
|
return {
|
|
474
|
-
...
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
hoverBackground: textColor,
|
|
480
|
-
borderColor: null
|
|
481
|
-
}
|
|
470
|
+
...style,
|
|
471
|
+
background: tone === "dark" ? "neutral-950" : "neutral-50",
|
|
472
|
+
textColor,
|
|
473
|
+
hoverBackground: textColor,
|
|
474
|
+
borderColor: null
|
|
482
475
|
};
|
|
483
476
|
}
|
|
484
|
-
|
|
485
|
-
|
|
477
|
+
/** Menu text wins; only an absent preference falls back to the header's ink. */
|
|
478
|
+
function dropdownTextCandidate(style, header) {
|
|
479
|
+
return style?.textColor ?? ((header.navColor ?? header.textColor)?.trim() || "text");
|
|
486
480
|
}
|
|
487
481
|
function resolveDropdownSurface(header, theme, tokens, solvedInks) {
|
|
488
|
-
const
|
|
489
|
-
const
|
|
482
|
+
const style = contextualDropdownStyle(header);
|
|
483
|
+
const backgroundToken = style?.background ?? "surface";
|
|
484
|
+
const candidate = dropdownTextCandidate(style, header);
|
|
490
485
|
const foreground = resolveSurfaceForeground({
|
|
491
486
|
type: "color",
|
|
492
487
|
color: backgroundToken,
|
|
@@ -496,7 +491,8 @@ function resolveDropdownSurface(header, theme, tokens, solvedInks) {
|
|
|
496
491
|
backgroundColor: tokens.getColor(backgroundToken),
|
|
497
492
|
textToken: foreground.kind === "known" ? foreground.roles.text : candidate,
|
|
498
493
|
foregroundDeclarations: [...foreground.kind === "known" ? surfaceForegroundDeclarations(surfaceForegroundInputFromResolved(foreground, (token) => tokens.getColor(token))) : [`color: ${tokens.getColor(candidate)};`], ...surfaceInkDeclarations(surfaceInkPublication(foreground, solvedInks))],
|
|
499
|
-
treatment:
|
|
494
|
+
treatment: style?.surfaceTreatment,
|
|
495
|
+
style
|
|
500
496
|
};
|
|
501
497
|
}
|
|
502
498
|
/** Solid paint is the fallback. Blur is enhancement, never the readability mechanism. */
|