@riverbankcms/sdk 0.161.0 → 0.163.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 +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.d.ts} +2 -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 +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 +13 -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/theme/index.d.ts +1 -1
- package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { $ as navLinkOwnsUnderline, An as rgbColorValue, B as logoSizePolicyValues, Bt as panelFrame, Cn as paletteValueKeySchema, Ct as asDesignSystemTemplateId, Dt as assertNever, Et as asSiteStyleId, G as generateInteractiveChildInheritanceCSS, H as buttonStyleSelectionSchema, Ht as requireNonEmptyReadonlyArray, J as NAV_LINK_PADDING_MAP, K as NAV_LINK_BORDER_RADIUS_MAP, Kn as surfaceForegroundValue, L as headerInteractionPaletteValues, Lt as makeBoundaryId, Nn as parseThemeColorToken, Pn as themeColorShadeSteps, Pt as flushPanelFrame, Q as navLinkOwnsHoverForeground, Qt as resolveSurface, R as headerInteractionQuietPalette, Rt as noHeadingDecoration, Sn as paletteValueKey, St as asDesignPageId, Tn as TokenResolver, Tt as asPageFlowPresetId, U as generateEffectsCSS, V as defaultButtonStyleSelectionFor, Vt as plainFrame, W as generateBaseInteractiveCSS, Wn as surfaceForegroundInputFromResolved, X as NAV_LINK_TEXT_SIZE_MAP, Y as NAV_LINK_PADDING_X_MAP, Z as navLinkHoverColorCandidate, Zn as buildRenderableMediaAssetIndex, _n as resolveConcreteColorHex, _t as asBlockOrderIndex, at as siteChromeBackgroundOverrideOwner, bn as paletteColorsSchema, bt as asDesignBoundaryId, dn as surfaceToneFromForegroundToken, dt as cardRoleSchema, et as navEffectPolicy, fn as resolveSurfaceForeground, ft as cardRoleValues, gn as planForegroundHover, gt as asBlockContentVersionId, ht as asAppearancePresetId, kt as defineExactCatalog, ln as unsafeAsOpaqueButtonColourToken, mn as expandPalette, mt as normalizeCardRole, n as headerPositioningValues, nn as scrimTone, q as NAV_LINK_LETTER_SPACING_MAP, rt as runtimeBoxBackgroundSchema, st as themeV2RuntimeStyleFieldNames, tn as gradientScrimSamples, vt as asBoundaryOptionId, wn as requirePaletteColorsFromEntries, wt as asLayoutVariantKey, xn as paletteModeSchema, xt as asDesignEntryId, yn as hexColorSchema, yt as asDesignBlockId, z as brandDisplayModeValues, zn as featuresFromHex } from "./schema-C-m8XHuW.mjs";
|
|
1
|
+
import { Bt as asDesignSystemTemplateId, Ht as asPageFlowPresetId, It as asBoundaryOptionId, Kt as defineExactCatalog, Lt as asDesignBlockId, Mt as arrangementModes, Nt as asAppearancePresetId, Or as rgbColorValue, Rt as asDesignBoundaryId, Un as unsafeAsOpaqueButtonColourToken, Ut as asSiteStyleId, Vt as asLayoutVariantKey, Wt as assertNever, Xn as expandPalette, Z as headerInteractionQuietPalette, Zt as flushPanelFrame, an as plainFrame, ar as paletteModeSchema, at as NAV_LINK_BORDER_RADIUS_MAP, br as surfaceForegroundValue, cr as requirePaletteColorsFromEntries, ct as NAV_LINK_PADDING_X_MAP, dt as navLinkOwnsHoverForeground, en as isArrangementMode, er as planForegroundHover, et as defaultButtonStyleSelectionFor, fr as featuresFromHex, ft as navLinkOwnsUnderline, in as panelFrame, ir as paletteColorsSchema, it as generateInteractiveChildInheritanceCSS, jr as parseThemeColorToken, kn as resolveSurface, lr as TokenResolver, lt as NAV_LINK_TEXT_SIZE_MAP, nn as noHeadingDecoration, nt as generateEffectsCSS, on as requireNonEmptyReadonlyArray, or as paletteValueKey, ot as NAV_LINK_LETTER_SPACING_MAP, pt as navEffectPolicy, q as cardRoleValues, rr as hexColorSchema, rt as generateBaseInteractiveCSS, sr as paletteValueKeySchema, st as NAV_LINK_PADDING_MAP, tn as makeBoundaryId, tt as buttonStyleSelectionSchema, ut as navLinkHoverColorCandidate, vr as surfaceForegroundInputFromResolved, xt as themeV2RuntimeStyleFieldNames, yt as siteChromeBackgroundOverrideOwner } from "./schema-DgrigZq9.mjs";
|
|
3
2
|
import { z } from "zod";
|
|
4
3
|
//#region ../theme-core/src/site-styles/appearancePresetTypes.ts
|
|
5
4
|
/** Block supply is capability, never a second Look catalogue. */
|
|
@@ -77,7 +76,7 @@ function isArrangementAppearancePreset(preset) {
|
|
|
77
76
|
return preset.structure.kind === "arrangement";
|
|
78
77
|
}
|
|
79
78
|
function lookModes(look) {
|
|
80
|
-
return Object.keys(look.structure.byMode).map((mode) => mode
|
|
79
|
+
return Object.keys(look.structure.byMode).map((mode) => isArrangementMode(mode) ? mode : null);
|
|
81
80
|
}
|
|
82
81
|
function cardListKnobDefaults(block, arrangement, knobs, defaults) {
|
|
83
82
|
if (!cardListKnobBlocks.some((kind) => kind === `block.${block}`)) return {};
|
|
@@ -292,10 +291,11 @@ const id$1 = asAppearancePresetId;
|
|
|
292
291
|
const appearancePresets = [
|
|
293
292
|
defineBlockAppearancePreset({
|
|
294
293
|
structure: {
|
|
295
|
-
kind: "
|
|
294
|
+
kind: "recipe",
|
|
296
295
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
297
296
|
},
|
|
298
297
|
id: "hero-immersive-image",
|
|
298
|
+
carry: { kind: "by-layout" },
|
|
299
299
|
target: "hero",
|
|
300
300
|
label: "Photo behind centred text",
|
|
301
301
|
blockKinds: ["block.hero"],
|
|
@@ -317,10 +317,11 @@ const appearancePresets = [
|
|
|
317
317
|
}),
|
|
318
318
|
defineBlockAppearancePreset({
|
|
319
319
|
structure: {
|
|
320
|
-
kind: "
|
|
320
|
+
kind: "recipe",
|
|
321
321
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
322
322
|
},
|
|
323
323
|
id: "hero-bottom-left-panel",
|
|
324
|
+
carry: { kind: "by-layout" },
|
|
324
325
|
target: "hero",
|
|
325
326
|
label: "Text panel, bottom left of photo",
|
|
326
327
|
blockKinds: ["block.hero"],
|
|
@@ -366,10 +367,11 @@ const appearancePresets = [
|
|
|
366
367
|
}),
|
|
367
368
|
defineBlockAppearancePreset({
|
|
368
369
|
structure: {
|
|
369
|
-
kind: "
|
|
370
|
+
kind: "recipe",
|
|
370
371
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
371
372
|
},
|
|
372
373
|
id: "hero-poster-image",
|
|
374
|
+
carry: { kind: "by-layout" },
|
|
373
375
|
target: "hero",
|
|
374
376
|
label: "Strong brand tint, big title",
|
|
375
377
|
blockKinds: ["block.hero"],
|
|
@@ -395,10 +397,11 @@ const appearancePresets = [
|
|
|
395
397
|
}),
|
|
396
398
|
defineBlockAppearancePreset({
|
|
397
399
|
structure: {
|
|
398
|
-
kind: "
|
|
400
|
+
kind: "recipe",
|
|
399
401
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
400
402
|
},
|
|
401
403
|
id: "hero-brand-scrim",
|
|
404
|
+
carry: { kind: "by-layout" },
|
|
402
405
|
target: "hero",
|
|
403
406
|
label: "Photo with a brand tint",
|
|
404
407
|
blockKinds: ["block.hero"],
|
|
@@ -418,10 +421,11 @@ const appearancePresets = [
|
|
|
418
421
|
}),
|
|
419
422
|
defineBlockAppearancePreset({
|
|
420
423
|
structure: {
|
|
421
|
-
kind: "
|
|
424
|
+
kind: "recipe",
|
|
422
425
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
423
426
|
},
|
|
424
427
|
id: "hero-brand-scrim-fixed-frame",
|
|
428
|
+
carry: { kind: "by-layout" },
|
|
425
429
|
target: "hero",
|
|
426
430
|
label: "Fixed photo with a brand tint",
|
|
427
431
|
blockKinds: ["block.hero"],
|
|
@@ -443,10 +447,14 @@ const appearancePresets = [
|
|
|
443
447
|
}),
|
|
444
448
|
defineBlockAppearancePreset({
|
|
445
449
|
structure: {
|
|
446
|
-
kind: "
|
|
450
|
+
kind: "recipe",
|
|
447
451
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
448
452
|
},
|
|
449
453
|
id: "hero-brand-depth-expressive",
|
|
454
|
+
carry: {
|
|
455
|
+
kind: "look",
|
|
456
|
+
look: "hero-page-head"
|
|
457
|
+
},
|
|
450
458
|
target: "hero",
|
|
451
459
|
label: "Brand colour, no photo",
|
|
452
460
|
blockKinds: ["block.hero"],
|
|
@@ -459,8 +467,22 @@ const appearancePresets = [
|
|
|
459
467
|
}
|
|
460
468
|
}),
|
|
461
469
|
defineBlockAppearancePreset({
|
|
462
|
-
structure: { kind: "
|
|
470
|
+
structure: { kind: "recipe" },
|
|
463
471
|
id: "hero-contained-intro",
|
|
472
|
+
carry: {
|
|
473
|
+
kind: "look",
|
|
474
|
+
look: "hero-page-head",
|
|
475
|
+
layouts: {
|
|
476
|
+
split: {
|
|
477
|
+
kind: "look",
|
|
478
|
+
look: "hero-photo-beside-text"
|
|
479
|
+
},
|
|
480
|
+
splitReverse: {
|
|
481
|
+
kind: "look",
|
|
482
|
+
look: "hero-photo-beside-text"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
464
486
|
target: "hero",
|
|
465
487
|
label: "Text in a panel on a soft band",
|
|
466
488
|
blockKinds: ["block.hero"],
|
|
@@ -473,10 +495,14 @@ const appearancePresets = [
|
|
|
473
495
|
}),
|
|
474
496
|
defineBlockAppearancePreset({
|
|
475
497
|
structure: {
|
|
476
|
-
kind: "
|
|
498
|
+
kind: "recipe",
|
|
477
499
|
constraints: { layoutFamilies: ["split"] }
|
|
478
500
|
},
|
|
479
501
|
id: "hero-split-editorial",
|
|
502
|
+
carry: {
|
|
503
|
+
kind: "look",
|
|
504
|
+
look: "hero-photo-beside-text"
|
|
505
|
+
},
|
|
480
506
|
target: "hero",
|
|
481
507
|
label: "Split on the page background",
|
|
482
508
|
blockKinds: ["block.hero"],
|
|
@@ -488,10 +514,14 @@ const appearancePresets = [
|
|
|
488
514
|
}),
|
|
489
515
|
defineBlockAppearancePreset({
|
|
490
516
|
structure: {
|
|
491
|
-
kind: "
|
|
517
|
+
kind: "recipe",
|
|
492
518
|
constraints: { layoutFamilies: ["split"] }
|
|
493
519
|
},
|
|
494
520
|
id: "hero-split-brand",
|
|
521
|
+
carry: {
|
|
522
|
+
kind: "look",
|
|
523
|
+
look: "hero-photo-beside-text"
|
|
524
|
+
},
|
|
495
525
|
target: "hero",
|
|
496
526
|
label: "Split on brand colour",
|
|
497
527
|
blockKinds: ["block.hero"],
|
|
@@ -504,10 +534,14 @@ const appearancePresets = [
|
|
|
504
534
|
}),
|
|
505
535
|
defineBlockAppearancePreset({
|
|
506
536
|
structure: {
|
|
507
|
-
kind: "
|
|
537
|
+
kind: "recipe",
|
|
508
538
|
constraints: { layoutFamilies: ["split"] }
|
|
509
539
|
},
|
|
510
540
|
id: "hero-split-soft-panel",
|
|
541
|
+
carry: {
|
|
542
|
+
kind: "look",
|
|
543
|
+
look: "hero-photo-beside-text"
|
|
544
|
+
},
|
|
511
545
|
target: "hero",
|
|
512
546
|
label: "Split, panel on a soft band",
|
|
513
547
|
blockKinds: ["block.hero"],
|
|
@@ -519,10 +553,14 @@ const appearancePresets = [
|
|
|
519
553
|
}),
|
|
520
554
|
defineBlockAppearancePreset({
|
|
521
555
|
structure: {
|
|
522
|
-
kind: "
|
|
556
|
+
kind: "recipe",
|
|
523
557
|
constraints: { layoutFamilies: ["split"] }
|
|
524
558
|
},
|
|
525
559
|
id: "hero-split-accent",
|
|
560
|
+
carry: {
|
|
561
|
+
kind: "look",
|
|
562
|
+
look: "hero-photo-beside-text"
|
|
563
|
+
},
|
|
526
564
|
target: "hero",
|
|
527
565
|
label: "Split, panel on accent colour",
|
|
528
566
|
blockKinds: ["block.hero"],
|
|
@@ -534,7 +572,7 @@ const appearancePresets = [
|
|
|
534
572
|
}),
|
|
535
573
|
defineBlockAppearancePreset({
|
|
536
574
|
structure: {
|
|
537
|
-
kind: "
|
|
575
|
+
kind: "recipe",
|
|
538
576
|
composition: {
|
|
539
577
|
kind: "intro",
|
|
540
578
|
treatment: "editorial-statement"
|
|
@@ -542,6 +580,7 @@ const appearancePresets = [
|
|
|
542
580
|
constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
|
|
543
581
|
},
|
|
544
582
|
id: "intro-editorial-statement",
|
|
583
|
+
carry: { kind: "by-layout" },
|
|
545
584
|
target: "intro",
|
|
546
585
|
label: "Large statement",
|
|
547
586
|
blockKinds: ["block.intro"],
|
|
@@ -552,7 +591,7 @@ const appearancePresets = [
|
|
|
552
591
|
}),
|
|
553
592
|
defineBlockAppearancePreset({
|
|
554
593
|
structure: {
|
|
555
|
-
kind: "
|
|
594
|
+
kind: "recipe",
|
|
556
595
|
composition: {
|
|
557
596
|
kind: "intro",
|
|
558
597
|
treatment: "portrait-bio"
|
|
@@ -560,6 +599,10 @@ const appearancePresets = [
|
|
|
560
599
|
constraints: { layoutVariantKeys: ["media-copy"] }
|
|
561
600
|
},
|
|
562
601
|
id: "intro-portrait-bio",
|
|
602
|
+
carry: {
|
|
603
|
+
kind: "look",
|
|
604
|
+
look: "intro-photo-beside-text"
|
|
605
|
+
},
|
|
563
606
|
target: "intro",
|
|
564
607
|
label: "Portrait and bio",
|
|
565
608
|
blockKinds: ["block.intro"],
|
|
@@ -569,8 +612,12 @@ const appearancePresets = [
|
|
|
569
612
|
}
|
|
570
613
|
}),
|
|
571
614
|
defineBlockAppearancePreset({
|
|
572
|
-
structure: { kind: "
|
|
615
|
+
structure: { kind: "recipe" },
|
|
573
616
|
id: "offerings-preview-default-cards",
|
|
617
|
+
carry: {
|
|
618
|
+
kind: "look",
|
|
619
|
+
look: "feature-cards-cards"
|
|
620
|
+
},
|
|
574
621
|
target: "offerings",
|
|
575
622
|
label: "Cards",
|
|
576
623
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -581,8 +628,12 @@ const appearancePresets = [
|
|
|
581
628
|
}
|
|
582
629
|
}),
|
|
583
630
|
defineBlockAppearancePreset({
|
|
584
|
-
structure: { kind: "
|
|
631
|
+
structure: { kind: "recipe" },
|
|
585
632
|
id: "offerings-preview-secondary-cards",
|
|
633
|
+
carry: {
|
|
634
|
+
kind: "look",
|
|
635
|
+
look: "feature-cards-cards"
|
|
636
|
+
},
|
|
586
637
|
target: "offerings",
|
|
587
638
|
label: "Cards on a soft band",
|
|
588
639
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -593,8 +644,12 @@ const appearancePresets = [
|
|
|
593
644
|
}
|
|
594
645
|
}),
|
|
595
646
|
defineBlockAppearancePreset({
|
|
596
|
-
structure: { kind: "
|
|
647
|
+
structure: { kind: "recipe" },
|
|
597
648
|
id: "offerings-preview-non-carded",
|
|
649
|
+
carry: {
|
|
650
|
+
kind: "look",
|
|
651
|
+
look: "feature-cards-open-columns"
|
|
652
|
+
},
|
|
598
653
|
target: "offerings",
|
|
599
654
|
label: "No cards",
|
|
600
655
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -606,7 +661,7 @@ const appearancePresets = [
|
|
|
606
661
|
}),
|
|
607
662
|
defineBlockAppearancePreset({
|
|
608
663
|
structure: {
|
|
609
|
-
kind: "
|
|
664
|
+
kind: "recipe",
|
|
610
665
|
composition: {
|
|
611
666
|
kind: "offerings-preview",
|
|
612
667
|
treatment: "paired-feature-cards"
|
|
@@ -614,6 +669,10 @@ const appearancePresets = [
|
|
|
614
669
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
615
670
|
},
|
|
616
671
|
id: "offerings-preview-paired-feature-cards",
|
|
672
|
+
carry: {
|
|
673
|
+
kind: "look",
|
|
674
|
+
look: "feature-cards-lead-support"
|
|
675
|
+
},
|
|
617
676
|
target: "offerings",
|
|
618
677
|
label: "One large card, one smaller",
|
|
619
678
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -625,7 +684,7 @@ const appearancePresets = [
|
|
|
625
684
|
}),
|
|
626
685
|
defineBlockAppearancePreset({
|
|
627
686
|
structure: {
|
|
628
|
-
kind: "
|
|
687
|
+
kind: "recipe",
|
|
629
688
|
composition: {
|
|
630
689
|
kind: "offerings-preview",
|
|
631
690
|
treatment: "open-editorial-columns"
|
|
@@ -633,6 +692,10 @@ const appearancePresets = [
|
|
|
633
692
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
634
693
|
},
|
|
635
694
|
id: "offerings-preview-open-editorial-columns",
|
|
695
|
+
carry: {
|
|
696
|
+
kind: "look",
|
|
697
|
+
look: "feature-cards-open-columns"
|
|
698
|
+
},
|
|
636
699
|
target: "offerings",
|
|
637
700
|
label: "Open columns",
|
|
638
701
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -644,7 +707,7 @@ const appearancePresets = [
|
|
|
644
707
|
}),
|
|
645
708
|
defineBlockAppearancePreset({
|
|
646
709
|
structure: {
|
|
647
|
-
kind: "
|
|
710
|
+
kind: "recipe",
|
|
648
711
|
composition: {
|
|
649
712
|
kind: "offerings-preview",
|
|
650
713
|
treatment: "joined-programme-panel"
|
|
@@ -652,6 +715,10 @@ const appearancePresets = [
|
|
|
652
715
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
653
716
|
},
|
|
654
717
|
id: "offerings-preview-joined-programme-panel",
|
|
718
|
+
carry: {
|
|
719
|
+
kind: "look",
|
|
720
|
+
look: "feature-cards-index"
|
|
721
|
+
},
|
|
655
722
|
target: "offerings",
|
|
656
723
|
label: "Rows joined in one panel",
|
|
657
724
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -662,8 +729,12 @@ const appearancePresets = [
|
|
|
662
729
|
}
|
|
663
730
|
}),
|
|
664
731
|
defineBlockAppearancePreset({
|
|
665
|
-
structure: { kind: "
|
|
732
|
+
structure: { kind: "recipe" },
|
|
666
733
|
id: "feature-cards-raised-rule",
|
|
734
|
+
carry: {
|
|
735
|
+
kind: "look",
|
|
736
|
+
look: "feature-cards-cards"
|
|
737
|
+
},
|
|
667
738
|
target: "feature-cards",
|
|
668
739
|
label: "Raised cards with a line",
|
|
669
740
|
blockKinds: ["block.feature-cards"],
|
|
@@ -674,8 +745,12 @@ const appearancePresets = [
|
|
|
674
745
|
}
|
|
675
746
|
}),
|
|
676
747
|
defineBlockAppearancePreset({
|
|
677
|
-
structure: { kind: "
|
|
748
|
+
structure: { kind: "recipe" },
|
|
678
749
|
id: "feature-cards-bold-colors",
|
|
750
|
+
carry: {
|
|
751
|
+
kind: "look",
|
|
752
|
+
look: "feature-cards-cards"
|
|
753
|
+
},
|
|
679
754
|
target: "feature-cards",
|
|
680
755
|
label: "Colour-filled cards",
|
|
681
756
|
blockKinds: ["block.feature-cards"],
|
|
@@ -686,8 +761,12 @@ const appearancePresets = [
|
|
|
686
761
|
}
|
|
687
762
|
}),
|
|
688
763
|
defineBlockAppearancePreset({
|
|
689
|
-
structure: { kind: "
|
|
764
|
+
structure: { kind: "recipe" },
|
|
690
765
|
id: "feature-cards-editorial-columns",
|
|
766
|
+
carry: {
|
|
767
|
+
kind: "look",
|
|
768
|
+
look: "card-list-accent-edged-cards"
|
|
769
|
+
},
|
|
691
770
|
target: "feature-cards",
|
|
692
771
|
label: "Open columns on a soft band",
|
|
693
772
|
blockKinds: ["block.feature-cards"],
|
|
@@ -699,7 +778,7 @@ const appearancePresets = [
|
|
|
699
778
|
}),
|
|
700
779
|
defineBlockAppearancePreset({
|
|
701
780
|
structure: {
|
|
702
|
-
kind: "
|
|
781
|
+
kind: "recipe",
|
|
703
782
|
composition: {
|
|
704
783
|
kind: "feature-cards",
|
|
705
784
|
treatment: "asymmetric-emphasis"
|
|
@@ -707,6 +786,10 @@ const appearancePresets = [
|
|
|
707
786
|
constraints: { layoutFamilies: ["grid"] }
|
|
708
787
|
},
|
|
709
788
|
id: "feature-cards-asymmetric-emphasis",
|
|
789
|
+
carry: {
|
|
790
|
+
kind: "no-equivalent",
|
|
791
|
+
because: "No shared Look lays cards out in uneven pairs."
|
|
792
|
+
},
|
|
710
793
|
target: "feature-cards",
|
|
711
794
|
label: "Cards in uneven pairs",
|
|
712
795
|
blockKinds: ["block.feature-cards"],
|
|
@@ -717,7 +800,7 @@ const appearancePresets = [
|
|
|
717
800
|
}),
|
|
718
801
|
defineBlockAppearancePreset({
|
|
719
802
|
structure: {
|
|
720
|
-
kind: "
|
|
803
|
+
kind: "recipe",
|
|
721
804
|
composition: {
|
|
722
805
|
kind: "feature-cards",
|
|
723
806
|
treatment: "framed-programme"
|
|
@@ -725,6 +808,10 @@ const appearancePresets = [
|
|
|
725
808
|
constraints: { layoutFamilies: ["grid"] }
|
|
726
809
|
},
|
|
727
810
|
id: "feature-cards-framed-programme",
|
|
811
|
+
carry: {
|
|
812
|
+
kind: "look",
|
|
813
|
+
look: "feature-cards-cards"
|
|
814
|
+
},
|
|
728
815
|
target: "feature-cards",
|
|
729
816
|
label: "Close-set cards on brand colour",
|
|
730
817
|
blockKinds: ["block.feature-cards"],
|
|
@@ -736,10 +823,14 @@ const appearancePresets = [
|
|
|
736
823
|
}),
|
|
737
824
|
defineBlockAppearancePreset({
|
|
738
825
|
structure: {
|
|
739
|
-
kind: "
|
|
826
|
+
kind: "recipe",
|
|
740
827
|
constraints: { layoutVariantKeys: ["editorial-diptych"] }
|
|
741
828
|
},
|
|
742
829
|
id: "feature-cards-editorial-diptych",
|
|
830
|
+
carry: {
|
|
831
|
+
kind: "look",
|
|
832
|
+
look: "feature-cards-cards"
|
|
833
|
+
},
|
|
743
834
|
target: "feature-cards",
|
|
744
835
|
label: "Two large cards side by side",
|
|
745
836
|
blockKinds: ["block.feature-cards"],
|
|
@@ -750,8 +841,9 @@ const appearancePresets = [
|
|
|
750
841
|
}
|
|
751
842
|
}),
|
|
752
843
|
defineBlockAppearancePreset({
|
|
753
|
-
structure: { kind: "
|
|
844
|
+
structure: { kind: "recipe" },
|
|
754
845
|
id: "events-lined-panel",
|
|
846
|
+
carry: { kind: "by-layout" },
|
|
755
847
|
target: "events",
|
|
756
848
|
label: "Cards on a panel",
|
|
757
849
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -761,8 +853,12 @@ const appearancePresets = [
|
|
|
761
853
|
}
|
|
762
854
|
}),
|
|
763
855
|
defineBlockAppearancePreset({
|
|
764
|
-
structure: { kind: "
|
|
856
|
+
structure: { kind: "recipe" },
|
|
765
857
|
id: "events-ruled-register",
|
|
858
|
+
carry: {
|
|
859
|
+
kind: "look",
|
|
860
|
+
look: "event-calendar-ruled-rows"
|
|
861
|
+
},
|
|
766
862
|
target: "events",
|
|
767
863
|
label: "Ruled list",
|
|
768
864
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -773,8 +869,12 @@ const appearancePresets = [
|
|
|
773
869
|
}
|
|
774
870
|
}),
|
|
775
871
|
defineBlockAppearancePreset({
|
|
776
|
-
structure: { kind: "
|
|
872
|
+
structure: { kind: "recipe" },
|
|
777
873
|
id: "events-editorial-register",
|
|
874
|
+
carry: {
|
|
875
|
+
kind: "look",
|
|
876
|
+
look: "event-calendar-ruled-rows"
|
|
877
|
+
},
|
|
778
878
|
target: "events",
|
|
779
879
|
label: "Editorial list",
|
|
780
880
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -785,8 +885,12 @@ const appearancePresets = [
|
|
|
785
885
|
}
|
|
786
886
|
}),
|
|
787
887
|
defineBlockAppearancePreset({
|
|
788
|
-
structure: { kind: "
|
|
888
|
+
structure: { kind: "recipe" },
|
|
789
889
|
id: "events-dense-index",
|
|
890
|
+
carry: {
|
|
891
|
+
kind: "look",
|
|
892
|
+
look: "event-calendar-ruled-rows"
|
|
893
|
+
},
|
|
790
894
|
target: "events",
|
|
791
895
|
label: "Compact list",
|
|
792
896
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -797,8 +901,12 @@ const appearancePresets = [
|
|
|
797
901
|
}
|
|
798
902
|
}),
|
|
799
903
|
defineBlockAppearancePreset({
|
|
800
|
-
structure: { kind: "
|
|
904
|
+
structure: { kind: "recipe" },
|
|
801
905
|
id: "schedule-details-brand-depth",
|
|
906
|
+
carry: {
|
|
907
|
+
kind: "look",
|
|
908
|
+
look: "event-details-panel"
|
|
909
|
+
},
|
|
802
910
|
target: "events",
|
|
803
911
|
label: "Details on brand colour",
|
|
804
912
|
blockKinds: ["block.event-details"],
|
|
@@ -809,8 +917,12 @@ const appearancePresets = [
|
|
|
809
917
|
}
|
|
810
918
|
}),
|
|
811
919
|
defineBlockAppearancePreset({
|
|
812
|
-
structure: { kind: "
|
|
920
|
+
structure: { kind: "recipe" },
|
|
813
921
|
id: "media-text-flush-feature",
|
|
922
|
+
carry: {
|
|
923
|
+
kind: "look",
|
|
924
|
+
look: "media-text-photo-beside-text"
|
|
925
|
+
},
|
|
814
926
|
target: "media-text",
|
|
815
927
|
label: "Photo to the edge, on a soft band",
|
|
816
928
|
blockKinds: ["block.media-text"],
|
|
@@ -820,8 +932,9 @@ const appearancePresets = [
|
|
|
820
932
|
}
|
|
821
933
|
}),
|
|
822
934
|
defineBlockAppearancePreset({
|
|
823
|
-
structure: { kind: "
|
|
935
|
+
structure: { kind: "recipe" },
|
|
824
936
|
id: "testimonials-simple-cards",
|
|
937
|
+
carry: { kind: "by-layout" },
|
|
825
938
|
target: "testimonials",
|
|
826
939
|
label: "Quote cards",
|
|
827
940
|
blockKinds: ["block.testimonials"],
|
|
@@ -832,8 +945,9 @@ const appearancePresets = [
|
|
|
832
945
|
}
|
|
833
946
|
}),
|
|
834
947
|
defineBlockAppearancePreset({
|
|
835
|
-
structure: { kind: "
|
|
948
|
+
structure: { kind: "recipe" },
|
|
836
949
|
id: "testimonials-raised-panel",
|
|
950
|
+
carry: { kind: "by-layout" },
|
|
837
951
|
target: "testimonials",
|
|
838
952
|
label: "Quotes on a panel",
|
|
839
953
|
blockKinds: ["block.testimonials"],
|
|
@@ -844,8 +958,9 @@ const appearancePresets = [
|
|
|
844
958
|
}
|
|
845
959
|
}),
|
|
846
960
|
defineBlockAppearancePreset({
|
|
847
|
-
structure: { kind: "
|
|
961
|
+
structure: { kind: "recipe" },
|
|
848
962
|
id: "testimonials-accent-panel",
|
|
963
|
+
carry: { kind: "by-layout" },
|
|
849
964
|
target: "testimonials",
|
|
850
965
|
label: "Quotes on an accent panel",
|
|
851
966
|
blockKinds: ["block.testimonials"],
|
|
@@ -856,8 +971,9 @@ const appearancePresets = [
|
|
|
856
971
|
}
|
|
857
972
|
}),
|
|
858
973
|
defineBlockAppearancePreset({
|
|
859
|
-
structure: { kind: "
|
|
974
|
+
structure: { kind: "recipe" },
|
|
860
975
|
id: "testimonials-statement-cards",
|
|
976
|
+
carry: { kind: "by-layout" },
|
|
861
977
|
target: "testimonials",
|
|
862
978
|
label: "Cards on accent colour",
|
|
863
979
|
blockKinds: ["block.testimonials"],
|
|
@@ -868,8 +984,9 @@ const appearancePresets = [
|
|
|
868
984
|
}
|
|
869
985
|
}),
|
|
870
986
|
defineBlockAppearancePreset({
|
|
871
|
-
structure: { kind: "
|
|
987
|
+
structure: { kind: "recipe" },
|
|
872
988
|
id: "testimonials-brand-statement-cards",
|
|
989
|
+
carry: { kind: "by-layout" },
|
|
873
990
|
target: "testimonials",
|
|
874
991
|
label: "Cards on brand colour",
|
|
875
992
|
blockKinds: ["block.testimonials"],
|
|
@@ -881,13 +998,21 @@ const appearancePresets = [
|
|
|
881
998
|
}),
|
|
882
999
|
defineBlockAppearancePreset({
|
|
883
1000
|
structure: {
|
|
884
|
-
kind: "
|
|
1001
|
+
kind: "recipe",
|
|
885
1002
|
composition: {
|
|
886
1003
|
kind: "testimonials",
|
|
887
1004
|
treatment: "open-editorial"
|
|
888
1005
|
}
|
|
889
1006
|
},
|
|
890
1007
|
id: "testimonials-non-carded",
|
|
1008
|
+
carry: {
|
|
1009
|
+
kind: "by-layout",
|
|
1010
|
+
layouts: { grid: {
|
|
1011
|
+
kind: "look",
|
|
1012
|
+
look: "testimonials-quote-columns",
|
|
1013
|
+
knobs: { quoteCount: "all" }
|
|
1014
|
+
} }
|
|
1015
|
+
},
|
|
891
1016
|
target: "testimonials",
|
|
892
1017
|
label: "No cards",
|
|
893
1018
|
blockKinds: ["block.testimonials"],
|
|
@@ -898,7 +1023,7 @@ const appearancePresets = [
|
|
|
898
1023
|
}),
|
|
899
1024
|
defineBlockAppearancePreset({
|
|
900
1025
|
structure: {
|
|
901
|
-
kind: "
|
|
1026
|
+
kind: "recipe",
|
|
902
1027
|
composition: {
|
|
903
1028
|
kind: "testimonials",
|
|
904
1029
|
treatment: "evergreen-lead"
|
|
@@ -906,6 +1031,10 @@ const appearancePresets = [
|
|
|
906
1031
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
907
1032
|
},
|
|
908
1033
|
id: "testimonials-evergreen-lead",
|
|
1034
|
+
carry: {
|
|
1035
|
+
kind: "look",
|
|
1036
|
+
look: "testimonials-lead-quote"
|
|
1037
|
+
},
|
|
909
1038
|
target: "testimonials",
|
|
910
1039
|
label: "Lead quote, others in two columns",
|
|
911
1040
|
blockKinds: ["block.testimonials"],
|
|
@@ -916,7 +1045,7 @@ const appearancePresets = [
|
|
|
916
1045
|
}),
|
|
917
1046
|
defineBlockAppearancePreset({
|
|
918
1047
|
structure: {
|
|
919
|
-
kind: "
|
|
1048
|
+
kind: "recipe",
|
|
920
1049
|
composition: {
|
|
921
1050
|
kind: "testimonials",
|
|
922
1051
|
treatment: "room-and-response"
|
|
@@ -924,6 +1053,10 @@ const appearancePresets = [
|
|
|
924
1053
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
925
1054
|
},
|
|
926
1055
|
id: "testimonials-room-and-response",
|
|
1056
|
+
carry: {
|
|
1057
|
+
kind: "look",
|
|
1058
|
+
look: "testimonials-lead-quote"
|
|
1059
|
+
},
|
|
927
1060
|
target: "testimonials",
|
|
928
1061
|
label: "Tall lead quote, others beside",
|
|
929
1062
|
blockKinds: ["block.testimonials"],
|
|
@@ -934,7 +1067,7 @@ const appearancePresets = [
|
|
|
934
1067
|
}),
|
|
935
1068
|
defineBlockAppearancePreset({
|
|
936
1069
|
structure: {
|
|
937
|
-
kind: "
|
|
1070
|
+
kind: "recipe",
|
|
938
1071
|
composition: {
|
|
939
1072
|
kind: "testimonials",
|
|
940
1073
|
treatment: "open-floor"
|
|
@@ -942,6 +1075,10 @@ const appearancePresets = [
|
|
|
942
1075
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
943
1076
|
},
|
|
944
1077
|
id: "testimonials-open-floor",
|
|
1078
|
+
carry: {
|
|
1079
|
+
kind: "look",
|
|
1080
|
+
look: "testimonials-lead-quote"
|
|
1081
|
+
},
|
|
945
1082
|
target: "testimonials",
|
|
946
1083
|
label: "Title beside, lead quote on top",
|
|
947
1084
|
blockKinds: ["block.testimonials"],
|
|
@@ -951,8 +1088,9 @@ const appearancePresets = [
|
|
|
951
1088
|
}
|
|
952
1089
|
}),
|
|
953
1090
|
defineBlockAppearancePreset({
|
|
954
|
-
structure: { kind: "
|
|
1091
|
+
structure: { kind: "recipe" },
|
|
955
1092
|
id: "faq-base-accordion",
|
|
1093
|
+
carry: { kind: "by-layout" },
|
|
956
1094
|
target: "faq",
|
|
957
1095
|
label: "Plain list of questions",
|
|
958
1096
|
blockKinds: ["block.faq"],
|
|
@@ -963,8 +1101,9 @@ const appearancePresets = [
|
|
|
963
1101
|
}
|
|
964
1102
|
}),
|
|
965
1103
|
defineBlockAppearancePreset({
|
|
966
|
-
structure: { kind: "
|
|
1104
|
+
structure: { kind: "recipe" },
|
|
967
1105
|
id: "faq-contained-help",
|
|
1106
|
+
carry: { kind: "by-layout" },
|
|
968
1107
|
target: "faq",
|
|
969
1108
|
label: "Questions in a panel",
|
|
970
1109
|
blockKinds: ["block.faq"],
|
|
@@ -975,8 +1114,9 @@ const appearancePresets = [
|
|
|
975
1114
|
}
|
|
976
1115
|
}),
|
|
977
1116
|
defineBlockAppearancePreset({
|
|
978
|
-
structure: { kind: "
|
|
1117
|
+
structure: { kind: "recipe" },
|
|
979
1118
|
id: "contact-form-panel",
|
|
1119
|
+
carry: { kind: "by-layout" },
|
|
980
1120
|
target: "contact-form",
|
|
981
1121
|
label: "Form on a panel",
|
|
982
1122
|
blockKinds: ["block.form"],
|
|
@@ -986,8 +1126,12 @@ const appearancePresets = [
|
|
|
986
1126
|
}
|
|
987
1127
|
}),
|
|
988
1128
|
defineBlockAppearancePreset({
|
|
989
|
-
structure: { kind: "
|
|
1129
|
+
structure: { kind: "recipe" },
|
|
990
1130
|
id: "booking-brand-band",
|
|
1131
|
+
carry: {
|
|
1132
|
+
kind: "no-equivalent",
|
|
1133
|
+
because: "Appointment booking has no shared Looks."
|
|
1134
|
+
},
|
|
991
1135
|
target: "contact-form",
|
|
992
1136
|
label: "Booking form on brand colour",
|
|
993
1137
|
blockKinds: ["block.appointment-booking"],
|
|
@@ -997,8 +1141,12 @@ const appearancePresets = [
|
|
|
997
1141
|
}
|
|
998
1142
|
}),
|
|
999
1143
|
defineBlockAppearancePreset({
|
|
1000
|
-
structure: { kind: "
|
|
1144
|
+
structure: { kind: "recipe" },
|
|
1001
1145
|
id: "cta-accent-band",
|
|
1146
|
+
carry: {
|
|
1147
|
+
kind: "look",
|
|
1148
|
+
look: "cta-centred"
|
|
1149
|
+
},
|
|
1002
1150
|
target: "cta",
|
|
1003
1151
|
label: "Accent colour band",
|
|
1004
1152
|
blockKinds: ["block.cta-full"],
|
|
@@ -1009,11 +1157,11 @@ const appearancePresets = [
|
|
|
1009
1157
|
}
|
|
1010
1158
|
}),
|
|
1011
1159
|
defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
|
|
1012
|
-
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside
|
|
1160
|
+
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
|
|
1013
1161
|
slotRoles: { panel: "card" },
|
|
1014
1162
|
styleFallback: [id$1("form-below-introduction")]
|
|
1015
1163
|
}),
|
|
1016
|
-
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in
|
|
1164
|
+
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
|
|
1017
1165
|
defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
|
|
1018
1166
|
defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
|
|
1019
1167
|
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
@@ -1036,6 +1184,18 @@ const appearancePresets = [
|
|
|
1036
1184
|
slotRoles: { copy: "card" },
|
|
1037
1185
|
styleFallback: [id$1("hero-photo-beside-text")]
|
|
1038
1186
|
}),
|
|
1187
|
+
defineArrangementLook("hero-text-over-photo", "hero", "Text over photo", "classic", [], {
|
|
1188
|
+
photoTreatment: "text-overlay",
|
|
1189
|
+
whenMissing: [{
|
|
1190
|
+
fact: "photo",
|
|
1191
|
+
look: id$1("hero-page-head")
|
|
1192
|
+
}],
|
|
1193
|
+
styleFallback: [id$1("hero-photo-behind-text")]
|
|
1194
|
+
}),
|
|
1195
|
+
defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
|
|
1196
|
+
slotRoles: { copy: "card" },
|
|
1197
|
+
styleFallback: [id$1("hero-page-head")]
|
|
1198
|
+
}),
|
|
1039
1199
|
defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], { styleFallback: [id$1("hero-photo-beside-text")] }),
|
|
1040
1200
|
defineCardListLook("feature-cards-cards", "Cards", "cards", [
|
|
1041
1201
|
"media",
|
|
@@ -1108,7 +1268,7 @@ const appearancePresets = [
|
|
|
1108
1268
|
slotRoles: { date: "highlight" },
|
|
1109
1269
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1110
1270
|
}),
|
|
1111
|
-
defineArrangementLook("event-calendar-next-three", "event-calendar", "
|
|
1271
|
+
defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
|
|
1112
1272
|
itemRoles: { container: "card" },
|
|
1113
1273
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1114
1274
|
}),
|
|
@@ -1357,260 +1517,6 @@ const appearancePresets = [
|
|
|
1357
1517
|
}
|
|
1358
1518
|
];
|
|
1359
1519
|
//#endregion
|
|
1360
|
-
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
1361
|
-
function defineBlockDesignMetadata(input) {
|
|
1362
|
-
const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
|
|
1363
|
-
...profile,
|
|
1364
|
-
variantKey: asLayoutVariantKey(profile.variantKey)
|
|
1365
|
-
}));
|
|
1366
|
-
assertUniqueLayoutProfileKeys(layoutProfiles);
|
|
1367
|
-
return {
|
|
1368
|
-
flow: input.flow,
|
|
1369
|
-
layoutProfiles
|
|
1370
|
-
};
|
|
1371
|
-
}
|
|
1372
|
-
function assertUniqueLayoutProfileKeys(profiles) {
|
|
1373
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1374
|
-
const duplicates = profiles.flatMap((profile) => {
|
|
1375
|
-
if (seen.has(profile.variantKey)) return [profile.variantKey];
|
|
1376
|
-
seen.add(profile.variantKey);
|
|
1377
|
-
return [];
|
|
1378
|
-
});
|
|
1379
|
-
if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
|
|
1380
|
-
}
|
|
1381
|
-
//#endregion
|
|
1382
|
-
//#region ../theme-core/src/site-styles/backgroundAppearance.ts
|
|
1383
|
-
const backgroundAppearanceQuickColorTokenNames = [
|
|
1384
|
-
"background",
|
|
1385
|
-
"surface",
|
|
1386
|
-
"muted",
|
|
1387
|
-
"primary",
|
|
1388
|
-
"secondary",
|
|
1389
|
-
"accent"
|
|
1390
|
-
];
|
|
1391
|
-
const backgroundAppearanceBaseColorTokenNames = [
|
|
1392
|
-
"background",
|
|
1393
|
-
"surface",
|
|
1394
|
-
"surfaceAlt",
|
|
1395
|
-
"muted",
|
|
1396
|
-
"primary",
|
|
1397
|
-
"secondary",
|
|
1398
|
-
"accent",
|
|
1399
|
-
"neutral"
|
|
1400
|
-
];
|
|
1401
|
-
const backgroundAppearanceShadeableColorTokenNames = [
|
|
1402
|
-
"primary",
|
|
1403
|
-
"secondary",
|
|
1404
|
-
"accent",
|
|
1405
|
-
"neutral"
|
|
1406
|
-
];
|
|
1407
|
-
const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
|
|
1408
|
-
backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
|
|
1409
|
-
const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
|
|
1410
|
-
function parseBackgroundAppearanceColorToken(value) {
|
|
1411
|
-
if (typeof value !== "string") return null;
|
|
1412
|
-
const normalized = value.trim();
|
|
1413
|
-
if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
|
|
1414
|
-
return parseThemeColorToken(normalized);
|
|
1415
|
-
}
|
|
1416
|
-
function uniqueStrings(values) {
|
|
1417
|
-
return Array.from(new Set(values));
|
|
1418
|
-
}
|
|
1419
|
-
//#endregion
|
|
1420
|
-
//#region ../theme-core/src/site-styles/cardRoleVocabulary.ts
|
|
1421
|
-
/**
|
|
1422
|
-
* The legacy `itemSurface` treatment vocabulary, and how it reads as a card
|
|
1423
|
-
* role.
|
|
1424
|
-
*
|
|
1425
|
-
* `itemSurface` named a *treatment* ("raised", "inset"); a role names *which
|
|
1426
|
-
* card* a Look wants and defers the appearance to the site style. Phase 3
|
|
1427
|
-
* deleted the treatment vocabulary and the recipe table it fed, so this map is
|
|
1428
|
-
* no longer a migration coexistence device — it is the one parse boundary where
|
|
1429
|
-
* persisted design plans written before the cutover still load, normalizing to
|
|
1430
|
-
* the role they meant.
|
|
1431
|
-
*
|
|
1432
|
-
* Per-value rationale is recorded in
|
|
1433
|
-
* `.project/plans/1297-card-role-contract-site-styles-own-card-surfaces/mapping-table.md`.
|
|
1434
|
-
*/
|
|
1435
|
-
const legacyItemSurfaceCardRoles = {
|
|
1436
|
-
none: "none",
|
|
1437
|
-
flat: "default",
|
|
1438
|
-
default: "default",
|
|
1439
|
-
outlined: "default",
|
|
1440
|
-
raised: "default",
|
|
1441
|
-
inset: "alternative",
|
|
1442
|
-
editorial: "open",
|
|
1443
|
-
"color-blocked": "alternative"
|
|
1444
|
-
};
|
|
1445
|
-
Object.keys(legacyItemSurfaceCardRoles);
|
|
1446
|
-
/**
|
|
1447
|
-
* The parse boundary for card roles reaching design intents and persisted
|
|
1448
|
-
* design plans: roles pass through, legacy `itemSurface` values normalize to
|
|
1449
|
-
* the role they meant, everything else fails the parse.
|
|
1450
|
-
*/
|
|
1451
|
-
const cardRoleWithLegacyAliasSchema = z.preprocess((value) => normalizeCardRole(value) ?? (typeof value === "string" && Object.prototype.hasOwnProperty.call(legacyItemSurfaceCardRoles, value) ? legacyItemSurfaceCardRoles[value] : value), cardRoleSchema);
|
|
1452
|
-
//#endregion
|
|
1453
|
-
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
1454
|
-
function parseCanonicalRuntimeBackground(content) {
|
|
1455
|
-
const background = readRecord(readRecord(content._sectionStyles)?.background);
|
|
1456
|
-
if (!background) return { kind: "none" };
|
|
1457
|
-
const parsed = runtimeBoxBackgroundSchema.safeParse(background);
|
|
1458
|
-
if (!parsed.success) return { kind: "none" };
|
|
1459
|
-
return parsed.data.contentOwner === "page-design-editor" ? {
|
|
1460
|
-
kind: "page-design-override",
|
|
1461
|
-
background: parsed.data
|
|
1462
|
-
} : {
|
|
1463
|
-
kind: "block-authored",
|
|
1464
|
-
background: parsed.data
|
|
1465
|
-
};
|
|
1466
|
-
}
|
|
1467
|
-
function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
|
|
1468
|
-
if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
|
|
1469
|
-
if (rhythm !== void 0) return rhythmBackground(rhythm);
|
|
1470
|
-
return {
|
|
1471
|
-
kind: "content-media",
|
|
1472
|
-
background: source.background,
|
|
1473
|
-
ground: {
|
|
1474
|
-
type: "color",
|
|
1475
|
-
color: arrangementHeroPhoto?.fallbackToken ?? "background",
|
|
1476
|
-
textColor: source.background.textColor,
|
|
1477
|
-
headingColor: source.background.headingColor,
|
|
1478
|
-
linkColor: source.background.linkColor,
|
|
1479
|
-
supportingColor: source.background.supportingColor
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
if (source.kind === "page-design-override") return {
|
|
1484
|
-
kind: "override",
|
|
1485
|
-
background: source.background
|
|
1486
|
-
};
|
|
1487
|
-
if (isAuthoredMedia(source)) return {
|
|
1488
|
-
kind: "authored-media",
|
|
1489
|
-
background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
|
|
1490
|
-
};
|
|
1491
|
-
if (lookDefault) return {
|
|
1492
|
-
kind: "look-surface",
|
|
1493
|
-
background: lookDefault
|
|
1494
|
-
};
|
|
1495
|
-
if (source.kind === "block-authored") return {
|
|
1496
|
-
kind: "authored-colour",
|
|
1497
|
-
background: source.background
|
|
1498
|
-
};
|
|
1499
|
-
return rhythmBackground(rhythm);
|
|
1500
|
-
}
|
|
1501
|
-
function resolveSectionForeground(background, palette) {
|
|
1502
|
-
return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
|
|
1503
|
-
}
|
|
1504
|
-
/** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
|
|
1505
|
-
function sectionForegroundBackground(resolved, palette) {
|
|
1506
|
-
if (resolved.kind === "base") return null;
|
|
1507
|
-
if (resolved.kind !== "content-media") return resolved.background;
|
|
1508
|
-
const original = resolveSurfaceForeground(resolved.background, palette);
|
|
1509
|
-
const measured = resolveSurfaceForeground(resolved.ground, palette);
|
|
1510
|
-
if (original.kind === "unknown" || measured.kind === "unknown") return resolved.background;
|
|
1511
|
-
return [
|
|
1512
|
-
"text",
|
|
1513
|
-
"heading",
|
|
1514
|
-
"link",
|
|
1515
|
-
"supporting"
|
|
1516
|
-
].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
|
|
1517
|
-
}
|
|
1518
|
-
/** One photo-placement decision for legacy and arrangement hero renderers. */
|
|
1519
|
-
function heroPhotoPaintsGround(variant) {
|
|
1520
|
-
return ![
|
|
1521
|
-
"split",
|
|
1522
|
-
"splitReverse",
|
|
1523
|
-
"headline-row",
|
|
1524
|
-
"copy-over-gallery",
|
|
1525
|
-
"page-head"
|
|
1526
|
-
].includes(variant ?? "classic");
|
|
1527
|
-
}
|
|
1528
|
-
function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
|
|
1529
|
-
const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
|
|
1530
|
-
const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
|
|
1531
|
-
if (paintsBand && !lookScrim) return authored;
|
|
1532
|
-
const merged = runtimeBoxBackgroundSchema.safeParse({
|
|
1533
|
-
...lookDefault,
|
|
1534
|
-
type: authored.type,
|
|
1535
|
-
image: authored.image,
|
|
1536
|
-
objectFit: authored.objectFit,
|
|
1537
|
-
scale: authored.scale,
|
|
1538
|
-
position: authored.position,
|
|
1539
|
-
...lookScrim ? { overlay: lookScrim } : {}
|
|
1540
|
-
});
|
|
1541
|
-
return merged.success ? merged.data : authored;
|
|
1542
|
-
}
|
|
1543
|
-
function readRecord(value) {
|
|
1544
|
-
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
1545
|
-
}
|
|
1546
|
-
function heroPhotoIsContent(source, photo, hasArrangementGround) {
|
|
1547
|
-
return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
|
|
1548
|
-
}
|
|
1549
|
-
function isAuthoredMedia(source) {
|
|
1550
|
-
return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
|
|
1551
|
-
}
|
|
1552
|
-
function rhythmBackground(background) {
|
|
1553
|
-
return background ? {
|
|
1554
|
-
kind: "rhythm",
|
|
1555
|
-
background
|
|
1556
|
-
} : { kind: "base" };
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* Semantic section grounds: background/base -> light; muted/surface bands ->
|
|
1560
|
-
* band; primary/secondary/accent (including pop) -> brand; text/inverse and
|
|
1561
|
-
* numbered deep shades -> deep. Media and gradients use the existing resolved
|
|
1562
|
-
* scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
|
|
1563
|
-
* over a light veil -> light. Unclassified/no veil defaults to light.
|
|
1564
|
-
* Background ownership (override, authored, Look or rhythm) never changes tone.
|
|
1565
|
-
*/
|
|
1566
|
-
const solidGrounds = {
|
|
1567
|
-
background: "light",
|
|
1568
|
-
muted: "band",
|
|
1569
|
-
surface: "band",
|
|
1570
|
-
primary: "brand",
|
|
1571
|
-
secondary: "brand",
|
|
1572
|
-
accent: "brand",
|
|
1573
|
-
text: "deep"
|
|
1574
|
-
};
|
|
1575
|
-
function deriveSectionGround(resolved, palette) {
|
|
1576
|
-
if (resolved.kind === "base") return "light";
|
|
1577
|
-
const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
|
|
1578
|
-
const solid = solidSectionGround(background);
|
|
1579
|
-
if (solid) return solid;
|
|
1580
|
-
return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
|
|
1581
|
-
}
|
|
1582
|
-
function solidSectionGround(background) {
|
|
1583
|
-
if (background.type !== "color") return null;
|
|
1584
|
-
const color = background.color ?? "background";
|
|
1585
|
-
return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
|
|
1586
|
-
}
|
|
1587
|
-
function sectionForegroundTone(resolved, palette) {
|
|
1588
|
-
const foreground = resolveSectionForeground(resolved, palette);
|
|
1589
|
-
return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
|
|
1590
|
-
}
|
|
1591
|
-
function sectionVeil(background) {
|
|
1592
|
-
switch (background.type) {
|
|
1593
|
-
case "color": return null;
|
|
1594
|
-
case "image":
|
|
1595
|
-
case "video": return background.overlay;
|
|
1596
|
-
case "gradient": return {
|
|
1597
|
-
type: "gradient",
|
|
1598
|
-
gradient: background.gradient,
|
|
1599
|
-
opacity: 1
|
|
1600
|
-
};
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
function sectionScrimSamples(background, palette) {
|
|
1604
|
-
const overlay = sectionVeil(background);
|
|
1605
|
-
if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
|
|
1606
|
-
if (overlay?.type !== "color") return [];
|
|
1607
|
-
const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
|
|
1608
|
-
return hex ? [{
|
|
1609
|
-
hex,
|
|
1610
|
-
alpha: overlay.opacity ?? 1
|
|
1611
|
-
}] : [];
|
|
1612
|
-
}
|
|
1613
|
-
//#endregion
|
|
1614
1520
|
//#region ../theme-core/src/site-styles/transitionCatalogue.ts
|
|
1615
1521
|
/**
|
|
1616
1522
|
* Family order for pickers. Entries below are listed family by family in this
|
|
@@ -1946,16 +1852,10 @@ const sectionTransitionFamilies = [{
|
|
|
1946
1852
|
label: family.label,
|
|
1947
1853
|
variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
|
|
1948
1854
|
}))];
|
|
1949
|
-
|
|
1855
|
+
new Map(boundaryOptions.map((option) => [option.id, option]));
|
|
1950
1856
|
new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
|
|
1951
1857
|
new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
|
|
1952
1858
|
new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
|
|
1953
|
-
function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
|
|
1954
|
-
return boundaryOptionById.get(boundaryOptionId)?.treatment ?? {
|
|
1955
|
-
kind: "legacy-unsupported",
|
|
1956
|
-
boundaryOptionId
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
1859
|
function stableTreatmentKey(treatment) {
|
|
1960
1860
|
switch (treatment.kind) {
|
|
1961
1861
|
case "none": return "none";
|
|
@@ -1973,214 +1873,26 @@ function stableTreatmentKey(treatment) {
|
|
|
1973
1873
|
treatment.slope,
|
|
1974
1874
|
treatment.direction
|
|
1975
1875
|
].join(":");
|
|
1976
|
-
case "legacy-unsupported": return `${treatment.kind}:${treatment.boundaryOptionId}`;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
//#endregion
|
|
1980
|
-
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
1981
|
-
const backgroundToken = requireThemeColorToken$1("background");
|
|
1982
|
-
/**
|
|
1983
|
-
* Classifies a section from its final render content. `_sectionStyles`
|
|
1984
|
-
* already holds the effective background (Look default, page-design override
|
|
1985
|
-
* and block-authored media merged by `resolveSectionBackground`), so this only
|
|
1986
|
-
* reads it and never re-decides precedence. A missing or unparseable
|
|
1987
|
-
* background is the page background, as it is for the renderer.
|
|
1988
|
-
*/
|
|
1989
|
-
function boundaryEndpointForSectionContent(content) {
|
|
1990
|
-
const background = parseCanonicalRuntimeBackground(content);
|
|
1991
|
-
if (background.kind === "none") return {
|
|
1992
|
-
kind: "paint",
|
|
1993
|
-
token: backgroundToken
|
|
1994
|
-
};
|
|
1995
|
-
const effective = background.background;
|
|
1996
|
-
switch (effective.type) {
|
|
1997
|
-
case "color": {
|
|
1998
|
-
if (effective.color === null || effective.color === void 0) return {
|
|
1999
|
-
kind: "paint",
|
|
2000
|
-
token: backgroundToken
|
|
2001
|
-
};
|
|
2002
|
-
const token = parseThemeColorToken(effective.color);
|
|
2003
|
-
return token ? {
|
|
2004
|
-
kind: "paint",
|
|
2005
|
-
token
|
|
2006
|
-
} : {
|
|
2007
|
-
kind: "unpainted",
|
|
2008
|
-
reason: "literal-color"
|
|
2009
|
-
};
|
|
2010
|
-
}
|
|
2011
|
-
case "gradient": return {
|
|
2012
|
-
kind: "unpainted",
|
|
2013
|
-
reason: "gradient"
|
|
2014
|
-
};
|
|
2015
|
-
case "image":
|
|
2016
|
-
case "video": return {
|
|
2017
|
-
kind: "unpainted",
|
|
2018
|
-
reason: "media"
|
|
2019
|
-
};
|
|
2020
|
-
default: return assertNever(effective, "Unhandled section background type");
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
/**
|
|
2024
|
-
* Reads both facts from final render content in one place. `_frameStyles` is
|
|
2025
|
-
* the compiled frame; content without one (no page design, an SDK block)
|
|
2026
|
-
* draws a plain frame.
|
|
2027
|
-
*/
|
|
2028
|
-
function sectionFactsForContent(content) {
|
|
2029
|
-
return {
|
|
2030
|
-
endpoint: boundaryEndpointForSectionContent(content),
|
|
2031
|
-
frame: frameKindForContent(content)
|
|
2032
|
-
};
|
|
2033
|
-
}
|
|
2034
|
-
function frameKindForContent(content) {
|
|
2035
|
-
const frameStyles = content._frameStyles;
|
|
2036
|
-
const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
|
|
2037
|
-
return kind === "panel" || kind === "flush-panel" ? kind : "plain";
|
|
2038
|
-
}
|
|
2039
|
-
/**
|
|
2040
|
-
* The frame rule: a flush panel owns the edge it runs to, so no break is
|
|
2041
|
-
* drawn next to one. The single home for this rule; the generated
|
|
2042
|
-
* pipeline's budget and the site-style lab ask it with their plan frames.
|
|
2043
|
-
*/
|
|
2044
|
-
function frameNotShownReason(previous, next) {
|
|
2045
|
-
return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
|
|
2046
|
-
}
|
|
2047
|
-
/**
|
|
2048
|
-
* Decides whether and how a join draws. The frame rule wins before paint is
|
|
2049
|
-
* considered; two unpainted sides show nothing.
|
|
2050
|
-
*/
|
|
2051
|
-
function composeBoundary(previous, next) {
|
|
2052
|
-
const frameReason = frameNotShownReason(previous.frame, next.frame);
|
|
2053
|
-
if (frameReason) return {
|
|
2054
|
-
kind: "not-shown",
|
|
2055
|
-
reason: frameReason
|
|
2056
|
-
};
|
|
2057
|
-
const from = previous.endpoint;
|
|
2058
|
-
const to = next.endpoint;
|
|
2059
|
-
if (from.kind === "paint") return {
|
|
2060
|
-
kind: "shown",
|
|
2061
|
-
composition: to.kind === "paint" ? {
|
|
2062
|
-
kind: "paint-to-paint",
|
|
2063
|
-
from: from.token,
|
|
2064
|
-
to: to.token
|
|
2065
|
-
} : {
|
|
2066
|
-
kind: "paint-to-unpainted",
|
|
2067
|
-
from: from.token
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
return to.kind === "paint" ? {
|
|
2071
|
-
kind: "shown",
|
|
2072
|
-
composition: {
|
|
2073
|
-
kind: "unpainted-to-paint",
|
|
2074
|
-
to: to.token
|
|
2075
|
-
}
|
|
2076
|
-
} : {
|
|
2077
|
-
kind: "not-shown",
|
|
2078
|
-
reason: "both-unpainted"
|
|
2079
|
-
};
|
|
2080
|
-
}
|
|
2081
|
-
/**
|
|
2082
|
-
* Placement, reserves and paint for a shown boundary, derived from the
|
|
2083
|
-
* composition and the catalogue's metrics for the treatment.
|
|
2084
|
-
*/
|
|
2085
|
-
function boundaryLayout(intent, composition) {
|
|
2086
|
-
const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
|
|
2087
|
-
switch (composition.kind) {
|
|
2088
|
-
case "paint-to-paint": return {
|
|
2089
|
-
placement: "centred",
|
|
2090
|
-
reserves: {
|
|
2091
|
-
before: metrics.reserveCss,
|
|
2092
|
-
after: metrics.reserveCss
|
|
2093
|
-
},
|
|
2094
|
-
paint: {
|
|
2095
|
-
band: composition.from,
|
|
2096
|
-
shape: composition.to
|
|
2097
|
-
}
|
|
2098
|
-
};
|
|
2099
|
-
case "unpainted-to-paint": return {
|
|
2100
|
-
placement: "previous",
|
|
2101
|
-
reserves: {
|
|
2102
|
-
before: metrics.heightCss,
|
|
2103
|
-
after: null
|
|
2104
|
-
},
|
|
2105
|
-
paint: {
|
|
2106
|
-
band: null,
|
|
2107
|
-
shape: composition.to
|
|
2108
|
-
}
|
|
2109
|
-
};
|
|
2110
|
-
case "paint-to-unpainted": return {
|
|
2111
|
-
placement: "next",
|
|
2112
|
-
reserves: {
|
|
2113
|
-
before: null,
|
|
2114
|
-
after: metrics.heightCss
|
|
2115
|
-
},
|
|
2116
|
-
paint: {
|
|
2117
|
-
band: null,
|
|
2118
|
-
shape: composition.from
|
|
2119
|
-
}
|
|
2120
|
-
};
|
|
2121
|
-
default: return assertNever(composition, "Unhandled boundary composition");
|
|
2122
1876
|
}
|
|
2123
1877
|
}
|
|
2124
|
-
function requireThemeColorToken$1(value) {
|
|
2125
|
-
const token = parseThemeColorToken(value);
|
|
2126
|
-
if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
|
|
2127
|
-
return token;
|
|
2128
|
-
}
|
|
2129
1878
|
//#endregion
|
|
2130
1879
|
//#region ../theme-core/src/header/rootPaint.ts
|
|
1880
|
+
/** Detached branding needs protection even when the navigation has its own rail. */
|
|
1881
|
+
function headerNeedsPhotoShade(header) {
|
|
1882
|
+
return header.variant === "floating" && header.background?.type === "color" && header.background.color === "transparent" && (!header.container || (header.container.opacity ?? 1) < 1);
|
|
1883
|
+
}
|
|
2131
1884
|
/** The nav container takes precedence when a floating header also has one. */
|
|
2132
1885
|
function headerRootPaint(header) {
|
|
2133
1886
|
const navContainerType = header?.navContainer?.type ?? "none";
|
|
2134
1887
|
if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
|
|
2135
1888
|
return header?.variant === "floating" ? "overlay" : "own-surface";
|
|
2136
1889
|
}
|
|
2137
|
-
//#endregion
|
|
2138
|
-
//#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
|
|
2139
|
-
const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
|
|
2140
|
-
const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
|
|
2141
|
-
siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
|
|
2142
|
-
function parseSiteChromeBackgroundColorToken(value) {
|
|
2143
|
-
const token = parseBackgroundAppearanceColorToken(value);
|
|
2144
|
-
return token ? token : null;
|
|
2145
|
-
}
|
|
2146
|
-
function toSiteChromeBackgroundColorTokens(tokenNames) {
|
|
2147
|
-
return tokenNames.flatMap((name) => {
|
|
2148
|
-
const token = parseSiteChromeBackgroundColorToken(name);
|
|
2149
|
-
return token ? [token] : [];
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
|
|
2153
|
-
const token = parseSiteChromeBackgroundColorToken(value);
|
|
2154
|
-
if (token === null) {
|
|
2155
|
-
ctx.addIssue({
|
|
2156
|
-
code: "custom",
|
|
2157
|
-
message: "Unknown site chrome background colour token"
|
|
2158
|
-
});
|
|
2159
|
-
return z.NEVER;
|
|
2160
|
-
}
|
|
2161
|
-
return token;
|
|
2162
|
-
});
|
|
2163
|
-
const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
|
|
2164
|
-
kind: z.literal("color"),
|
|
2165
|
-
token: backgroundColorTokenSchema
|
|
2166
|
-
}).strict()]);
|
|
2167
|
-
z.object({
|
|
2168
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
2169
|
-
navigationLayout: z.enum(["inline-wrap", "stack"])
|
|
2170
|
-
}).strict();
|
|
2171
|
-
z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
|
|
2172
|
-
//#endregion
|
|
2173
|
-
//#region ../theme-core/src/site-styles/compilationPlan.ts
|
|
2174
|
-
const defaultHeaderBrandPreferences = {
|
|
2175
|
-
brandDisplay: "auto",
|
|
2176
|
-
logoSize: "auto"
|
|
2177
|
-
};
|
|
2178
1890
|
asBoundaryOptionId("break:unknown");
|
|
2179
1891
|
const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
2180
1892
|
kind: z.literal("user-pinned"),
|
|
2181
1893
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
2182
1894
|
}).strict();
|
|
2183
|
-
|
|
1895
|
+
z.object({
|
|
2184
1896
|
kind: z.literal("user-pinned"),
|
|
2185
1897
|
value: z.string().min(1).transform(asBoundaryOptionId)
|
|
2186
1898
|
}).strict();
|
|
@@ -2232,10 +1944,6 @@ const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
|
|
|
2232
1944
|
"steep"
|
|
2233
1945
|
]),
|
|
2234
1946
|
direction: z.enum(["forward", "reverse"])
|
|
2235
|
-
}).strict(),
|
|
2236
|
-
z.object({
|
|
2237
|
-
kind: z.literal("legacy-unsupported"),
|
|
2238
|
-
boundaryOptionId: z.string().min(1).transform(asBoundaryOptionId)
|
|
2239
1947
|
}).strict()
|
|
2240
1948
|
]);
|
|
2241
1949
|
const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
|
|
@@ -2253,51 +1961,13 @@ const pageDesignBoundaryPinSchema = z.object({
|
|
|
2253
1961
|
nextBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
2254
1962
|
choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
|
|
2255
1963
|
}).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
|
|
2256
|
-
const legacyPageDesignBoundaryPinSchema = z.object({
|
|
2257
|
-
boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
|
|
2258
|
-
previousBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
2259
|
-
nextBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
2260
|
-
choice: pageDesignUserPinnedBoundaryChoiceSchema
|
|
2261
|
-
}).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
|
|
2262
|
-
/**
|
|
2263
|
-
* Persisted editor intent stores only user-pinned block Looks and boundary choices.
|
|
2264
|
-
* Missing pins mean `auto`; block-kind/preset compatibility is enforced by resolution,
|
|
2265
|
-
* not by this JSON parse boundary.
|
|
2266
|
-
*/
|
|
2267
|
-
const pageDesignIntentV1Schema = z.object({
|
|
2268
|
-
schemaVersion: z.literal(1),
|
|
2269
|
-
siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId),
|
|
2270
|
-
pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
|
|
2271
|
-
blockLookPins: z.array(pageDesignBlockLookPinSchema),
|
|
2272
|
-
boundaryPins: z.array(legacyPageDesignBoundaryPinSchema)
|
|
2273
|
-
}).strict().superRefine(validateUniquePageDesignPins);
|
|
2274
1964
|
const pageDesignDecisionsV2Schema = z.object({
|
|
2275
1965
|
schemaVersion: z.literal(2),
|
|
2276
1966
|
pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
|
|
2277
1967
|
blockLookPins: z.array(pageDesignBlockLookPinSchema),
|
|
2278
1968
|
boundaryPins: z.array(pageDesignBoundaryPinSchema)
|
|
2279
1969
|
}).strict().superRefine(validateUniquePageDesignPins);
|
|
2280
|
-
|
|
2281
|
-
function normalizeLegacyPageDesignIntent(intent) {
|
|
2282
|
-
return {
|
|
2283
|
-
schemaVersion: 2,
|
|
2284
|
-
siteStyleId: intent.siteStyleId,
|
|
2285
|
-
pageFlowPresetId: intent.pageFlowPresetId,
|
|
2286
|
-
blockLookPins: intent.blockLookPins,
|
|
2287
|
-
boundaryPins: intent.boundaryPins.map((pin) => ({
|
|
2288
|
-
boundaryId: pin.boundaryId,
|
|
2289
|
-
previousBlockId: pin.previousBlockId,
|
|
2290
|
-
nextBlockId: pin.nextBlockId,
|
|
2291
|
-
choice: userPinnedDesignChoice(boundaryTreatmentForBoundaryOptionId(pin.choice.value))
|
|
2292
|
-
}))
|
|
2293
|
-
};
|
|
2294
|
-
}
|
|
2295
|
-
function userPinnedDesignChoice(value) {
|
|
2296
|
-
return {
|
|
2297
|
-
kind: "user-pinned",
|
|
2298
|
-
value
|
|
2299
|
-
};
|
|
2300
|
-
}
|
|
1970
|
+
pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
|
|
2301
1971
|
function addDuplicateStringIssues(ctx, input) {
|
|
2302
1972
|
const seen = /* @__PURE__ */ new Set();
|
|
2303
1973
|
const duplicates = /* @__PURE__ */ new Set();
|
|
@@ -2332,47 +2002,722 @@ function validateUniquePageDesignPins(intent, ctx) {
|
|
|
2332
2002
|
});
|
|
2333
2003
|
}
|
|
2334
2004
|
//#endregion
|
|
2335
|
-
//#region ../theme-core/src/site-styles/
|
|
2336
|
-
const
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2005
|
+
//#region ../theme-core/src/site-styles/headerDropdownRecipe.ts
|
|
2006
|
+
const neutralHeaderDropdown = {
|
|
2007
|
+
surface: {
|
|
2008
|
+
kind: "solid",
|
|
2009
|
+
background: "surface"
|
|
2010
|
+
},
|
|
2011
|
+
textColor: "text",
|
|
2012
|
+
borderColor: "border",
|
|
2013
|
+
shadow: "md",
|
|
2014
|
+
borderRadius: "md",
|
|
2015
|
+
textTransform: "none",
|
|
2016
|
+
letterSpacing: "normal"
|
|
2017
|
+
};
|
|
2018
|
+
({ ...neutralHeaderDropdown });
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region ../theme-core/src/site-styles/bookingPageLookIds.ts
|
|
2021
|
+
/** Deterministic fallback order; Fulcrum is the default. */
|
|
2022
|
+
const bookingPageLookIdValues = [
|
|
2023
|
+
"site-style:fulcrum",
|
|
2024
|
+
"site-style:folio",
|
|
2025
|
+
"site-style:measure",
|
|
2026
|
+
"site-style:grounded-practice",
|
|
2027
|
+
"site-style:lantern",
|
|
2028
|
+
"site-style:poster"
|
|
2029
|
+
];
|
|
2030
|
+
/** Boundary admission for draft and suggestion inputs. */
|
|
2031
|
+
function parseBookingPageLookId(value) {
|
|
2032
|
+
const id = bookingPageLookIdValues.find((candidate) => candidate === value);
|
|
2033
|
+
return id ? asSiteStyleId(id) : null;
|
|
2034
|
+
}
|
|
2035
|
+
//#endregion
|
|
2036
|
+
//#region ../theme-core/src/site-styles/ownColours/bookingLookColourSpecs.ts
|
|
2037
|
+
const bookingLookGroundLimits = {
|
|
2038
|
+
"site-style:poster": {
|
|
2039
|
+
lightness: [.9, 1],
|
|
2040
|
+
maxChroma: .04
|
|
2041
|
+
},
|
|
2042
|
+
"site-style:fulcrum": {
|
|
2043
|
+
lightness: [.9, 1],
|
|
2044
|
+
maxChroma: .03
|
|
2045
|
+
},
|
|
2046
|
+
"site-style:folio": {
|
|
2047
|
+
lightness: [.88, 1],
|
|
2048
|
+
maxChroma: .05
|
|
2049
|
+
},
|
|
2050
|
+
"site-style:measure": {
|
|
2051
|
+
lightness: [.9, 1],
|
|
2052
|
+
maxChroma: .02
|
|
2053
|
+
},
|
|
2054
|
+
"site-style:grounded-practice": {
|
|
2055
|
+
lightness: [.85, 1],
|
|
2056
|
+
maxChroma: .06
|
|
2057
|
+
},
|
|
2058
|
+
"site-style:lantern": {
|
|
2059
|
+
lightness: [.12, .34],
|
|
2060
|
+
maxChroma: .07
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2063
|
+
const contrast = (against, ratio = 3) => ({
|
|
2064
|
+
kind: "contrast",
|
|
2065
|
+
against,
|
|
2066
|
+
ratio
|
|
2067
|
+
});
|
|
2068
|
+
const distinct = (from, deltaE) => ({
|
|
2069
|
+
kind: "distinct",
|
|
2070
|
+
from,
|
|
2071
|
+
deltaE
|
|
2072
|
+
});
|
|
2073
|
+
const label = { kind: "label" };
|
|
2074
|
+
/** The quiet light grounds the five light looks share: faint tints of the leading colour, inside the look's limit. */
|
|
2075
|
+
function lightGrounds(limits, tint) {
|
|
2076
|
+
const page = Math.min(tint.page, limits.maxChroma);
|
|
2077
|
+
const band = Math.min(tint.band, limits.maxChroma);
|
|
2078
|
+
return {
|
|
2079
|
+
background: {
|
|
2080
|
+
l: [.955, .985],
|
|
2081
|
+
c: [0, page],
|
|
2082
|
+
chromaShare: .12,
|
|
2083
|
+
target: .972,
|
|
2084
|
+
name: "the page"
|
|
2085
|
+
},
|
|
2086
|
+
surface: {
|
|
2087
|
+
l: [.99, 1],
|
|
2088
|
+
c: [0, Math.min(page, .004)],
|
|
2089
|
+
chromaShare: .04,
|
|
2090
|
+
target: .997,
|
|
2091
|
+
name: "the cards"
|
|
2092
|
+
},
|
|
2093
|
+
surfaceAlt: {
|
|
2094
|
+
l: [.93, .965],
|
|
2095
|
+
c: [0, band],
|
|
2096
|
+
chromaShare: .25,
|
|
2097
|
+
target: .948,
|
|
2098
|
+
name: "the quieter panels",
|
|
2099
|
+
needs: [distinct("background", .015)]
|
|
2100
|
+
},
|
|
2101
|
+
muted: {
|
|
2102
|
+
l: tint.bandL,
|
|
2103
|
+
c: [0, band],
|
|
2104
|
+
chromaShare: .3,
|
|
2105
|
+
target: (tint.bandL[0] + tint.bandL[1]) / 2,
|
|
2106
|
+
name: "the band",
|
|
2107
|
+
needs: [distinct("background", .03)]
|
|
2342
2108
|
},
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2109
|
+
border: {
|
|
2110
|
+
l: [.8, .88],
|
|
2111
|
+
c: [0, band],
|
|
2112
|
+
chromaShare: .25,
|
|
2113
|
+
target: .85,
|
|
2114
|
+
name: "the rules"
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
const groundOrder = [
|
|
2119
|
+
"background",
|
|
2120
|
+
"surface",
|
|
2121
|
+
"muted",
|
|
2122
|
+
"surfaceAlt",
|
|
2123
|
+
"border"
|
|
2124
|
+
];
|
|
2125
|
+
const lightReading = [
|
|
2126
|
+
"background",
|
|
2127
|
+
"surface",
|
|
2128
|
+
"surfaceAlt",
|
|
2129
|
+
"muted"
|
|
2130
|
+
];
|
|
2131
|
+
/** Fulcrum: a quiet stone page, white sheets, a strong mid-tone on the buttons, a deep plate behind the opening panel. */
|
|
2132
|
+
const fulcrum = {
|
|
2133
|
+
roles: {
|
|
2134
|
+
...lightGrounds(bookingLookGroundLimits["site-style:fulcrum"], {
|
|
2135
|
+
page: .008,
|
|
2136
|
+
band: .022,
|
|
2137
|
+
bandL: [.9, .94]
|
|
2138
|
+
}),
|
|
2139
|
+
primary: {
|
|
2140
|
+
l: [.3, .6],
|
|
2141
|
+
c: [.04, .16],
|
|
2142
|
+
target: .45,
|
|
2143
|
+
name: "the buttons",
|
|
2144
|
+
mention: true,
|
|
2145
|
+
needs: [
|
|
2146
|
+
contrast("background"),
|
|
2147
|
+
contrast("surface"),
|
|
2148
|
+
contrast("muted"),
|
|
2149
|
+
label
|
|
2150
|
+
]
|
|
2348
2151
|
},
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2152
|
+
secondary: {
|
|
2153
|
+
l: [.18, .36],
|
|
2154
|
+
c: [.02, .11],
|
|
2155
|
+
target: .28,
|
|
2156
|
+
name: "the plate",
|
|
2157
|
+
mention: true,
|
|
2158
|
+
needs: [contrast("surface"), distinct("primary", .08)]
|
|
2352
2159
|
},
|
|
2353
|
-
|
|
2160
|
+
accent: {
|
|
2161
|
+
l: [.38, .72],
|
|
2162
|
+
c: [.06, .17],
|
|
2163
|
+
target: .62,
|
|
2164
|
+
name: "the small marks",
|
|
2165
|
+
analogous: true,
|
|
2166
|
+
needs: [
|
|
2167
|
+
contrast("background"),
|
|
2168
|
+
contrast("surface"),
|
|
2169
|
+
contrast("muted"),
|
|
2170
|
+
distinct("primary", .1)
|
|
2171
|
+
]
|
|
2172
|
+
}
|
|
2354
2173
|
},
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
token: "surface"
|
|
2174
|
+
slots: [
|
|
2175
|
+
{
|
|
2176
|
+
roles: ["muted"],
|
|
2177
|
+
name: "the band"
|
|
2360
2178
|
},
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
hoverColorToken: "primary",
|
|
2365
|
-
typography: "body"
|
|
2179
|
+
{
|
|
2180
|
+
roles: ["secondary"],
|
|
2181
|
+
name: "the plate"
|
|
2366
2182
|
},
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2183
|
+
{
|
|
2184
|
+
roles: ["primary"],
|
|
2185
|
+
name: "the buttons"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
roles: ["accent"],
|
|
2189
|
+
name: "the small marks"
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
order: [
|
|
2193
|
+
...groundOrder,
|
|
2194
|
+
"primary",
|
|
2195
|
+
"secondary",
|
|
2196
|
+
"accent"
|
|
2197
|
+
],
|
|
2198
|
+
neutrals: {
|
|
2199
|
+
dark: [.24, .02],
|
|
2200
|
+
light: [.995, .005]
|
|
2201
|
+
},
|
|
2202
|
+
reading: lightReading,
|
|
2203
|
+
groundLimit: bookingLookGroundLimits["site-style:fulcrum"].maxChroma,
|
|
2204
|
+
contrast: [{
|
|
2205
|
+
label: "a muted complement on the plate",
|
|
2206
|
+
hue: "complement",
|
|
2207
|
+
second: "secondary",
|
|
2208
|
+
lead: "primary",
|
|
2209
|
+
l: .3,
|
|
2210
|
+
c: [.04, .07]
|
|
2211
|
+
}, {
|
|
2212
|
+
label: "a warm colour on the buttons",
|
|
2213
|
+
hue: "split-warm",
|
|
2214
|
+
second: "primary",
|
|
2215
|
+
lead: "secondary",
|
|
2216
|
+
l: .45,
|
|
2217
|
+
c: [.08, .13]
|
|
2218
|
+
}]
|
|
2219
|
+
};
|
|
2220
|
+
/** Folio: warm paper, sheets and a band; buttons and links share the primary (hovering to its 800 shade); small rules and marks. */
|
|
2221
|
+
const folio = {
|
|
2222
|
+
roles: {
|
|
2223
|
+
...lightGrounds(bookingLookGroundLimits["site-style:folio"], {
|
|
2224
|
+
page: .012,
|
|
2225
|
+
band: .03,
|
|
2226
|
+
bandL: [.9, .94]
|
|
2227
|
+
}),
|
|
2228
|
+
primary: {
|
|
2229
|
+
l: [.3, .55],
|
|
2230
|
+
c: [.03, .14],
|
|
2231
|
+
target: .42,
|
|
2232
|
+
name: "the buttons and links",
|
|
2233
|
+
mention: true,
|
|
2234
|
+
link: true,
|
|
2235
|
+
needs: [
|
|
2236
|
+
contrast("background"),
|
|
2237
|
+
contrast("surface"),
|
|
2238
|
+
contrast("muted"),
|
|
2239
|
+
label
|
|
2240
|
+
]
|
|
2241
|
+
},
|
|
2242
|
+
secondary: {
|
|
2243
|
+
l: [.45, .62],
|
|
2244
|
+
c: [.01, .04],
|
|
2245
|
+
target: .54,
|
|
2246
|
+
name: "the quiet details"
|
|
2247
|
+
},
|
|
2248
|
+
accent: {
|
|
2249
|
+
l: [.38, .68],
|
|
2250
|
+
c: [.05, .15],
|
|
2251
|
+
target: .6,
|
|
2252
|
+
name: "the marks",
|
|
2253
|
+
mention: true,
|
|
2254
|
+
analogous: true,
|
|
2255
|
+
needs: [
|
|
2256
|
+
contrast("background"),
|
|
2257
|
+
contrast("surface"),
|
|
2258
|
+
contrast("muted"),
|
|
2259
|
+
distinct("primary", .1)
|
|
2260
|
+
]
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
slots: [
|
|
2264
|
+
{
|
|
2265
|
+
roles: ["muted"],
|
|
2266
|
+
name: "the band"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
roles: ["primary"],
|
|
2270
|
+
name: "the buttons and links"
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
roles: ["accent"],
|
|
2274
|
+
name: "the marks"
|
|
2275
|
+
}
|
|
2276
|
+
],
|
|
2277
|
+
order: [
|
|
2278
|
+
...groundOrder,
|
|
2279
|
+
"primary",
|
|
2280
|
+
"accent",
|
|
2281
|
+
"secondary"
|
|
2282
|
+
],
|
|
2283
|
+
neutrals: {
|
|
2284
|
+
dark: [.27, .015],
|
|
2285
|
+
light: [.985, .01]
|
|
2286
|
+
},
|
|
2287
|
+
reading: lightReading,
|
|
2288
|
+
groundLimit: bookingLookGroundLimits["site-style:folio"].maxChroma,
|
|
2289
|
+
contrast: [{
|
|
2290
|
+
label: "the complement on the buttons and links",
|
|
2291
|
+
hue: "complement",
|
|
2292
|
+
second: "primary",
|
|
2293
|
+
lead: "accent",
|
|
2294
|
+
l: .42,
|
|
2295
|
+
c: [.08, .13]
|
|
2296
|
+
}, {
|
|
2297
|
+
label: "a warm colour on the buttons and links",
|
|
2298
|
+
hue: "split-warm",
|
|
2299
|
+
second: "primary",
|
|
2300
|
+
lead: "accent",
|
|
2301
|
+
l: .42,
|
|
2302
|
+
c: [.08, .13]
|
|
2303
|
+
}]
|
|
2304
|
+
};
|
|
2305
|
+
/** Measure: one plain page. Flat buttons that fill with the secondary on hover, and a small square. */
|
|
2306
|
+
const measure = {
|
|
2307
|
+
roles: {
|
|
2308
|
+
...lightGrounds(bookingLookGroundLimits["site-style:measure"], {
|
|
2309
|
+
page: .008,
|
|
2310
|
+
band: .012,
|
|
2311
|
+
bandL: [.91, .94]
|
|
2312
|
+
}),
|
|
2313
|
+
primary: {
|
|
2314
|
+
l: [.18, .55],
|
|
2315
|
+
c: [0, .16],
|
|
2316
|
+
target: .26,
|
|
2317
|
+
derivedChroma: .035,
|
|
2318
|
+
name: "the buttons",
|
|
2319
|
+
needs: [
|
|
2320
|
+
contrast("background"),
|
|
2321
|
+
contrast("surface"),
|
|
2322
|
+
label
|
|
2323
|
+
]
|
|
2324
|
+
},
|
|
2325
|
+
secondary: {
|
|
2326
|
+
l: [.12, .5],
|
|
2327
|
+
c: [0, .16],
|
|
2328
|
+
target: {
|
|
2329
|
+
from: "primary",
|
|
2330
|
+
dl: -.06
|
|
2331
|
+
},
|
|
2332
|
+
hueFrom: "primary",
|
|
2333
|
+
name: "the button hover",
|
|
2334
|
+
needs: [contrast("background"), label]
|
|
2335
|
+
},
|
|
2336
|
+
accent: {
|
|
2337
|
+
l: [.4, .7],
|
|
2338
|
+
c: [.08, .2],
|
|
2339
|
+
target: .55,
|
|
2340
|
+
name: "the small square",
|
|
2341
|
+
mention: true,
|
|
2342
|
+
analogous: true,
|
|
2343
|
+
needs: [
|
|
2344
|
+
contrast("background"),
|
|
2345
|
+
contrast("surface"),
|
|
2346
|
+
distinct("primary", .1)
|
|
2347
|
+
]
|
|
2348
|
+
}
|
|
2349
|
+
},
|
|
2350
|
+
slots: [{
|
|
2351
|
+
roles: ["primary"],
|
|
2352
|
+
name: "the buttons"
|
|
2353
|
+
}, {
|
|
2354
|
+
roles: ["accent"],
|
|
2355
|
+
name: "the small square"
|
|
2356
|
+
}],
|
|
2357
|
+
order: [
|
|
2358
|
+
...groundOrder,
|
|
2359
|
+
"primary",
|
|
2360
|
+
"secondary",
|
|
2361
|
+
"accent"
|
|
2362
|
+
],
|
|
2363
|
+
neutrals: {
|
|
2364
|
+
dark: [.22, .012],
|
|
2365
|
+
light: [.995, .004]
|
|
2366
|
+
},
|
|
2367
|
+
reading: lightReading,
|
|
2368
|
+
groundLimit: bookingLookGroundLimits["site-style:measure"].maxChroma,
|
|
2369
|
+
contrast: [{
|
|
2370
|
+
label: "the complement on the square and the button hover",
|
|
2371
|
+
hue: "complement",
|
|
2372
|
+
second: "accent",
|
|
2373
|
+
lead: "primary",
|
|
2374
|
+
alsoTints: {
|
|
2375
|
+
roles: ["secondary"],
|
|
2376
|
+
name: "the button hover"
|
|
2377
|
+
},
|
|
2378
|
+
l: .55,
|
|
2379
|
+
c: [.1, .17]
|
|
2380
|
+
}, {
|
|
2381
|
+
label: "a warm colour on the buttons",
|
|
2382
|
+
hue: "split-warm",
|
|
2383
|
+
second: "primary",
|
|
2384
|
+
lead: "accent",
|
|
2385
|
+
l: .38,
|
|
2386
|
+
c: [.08, .13]
|
|
2387
|
+
}]
|
|
2388
|
+
};
|
|
2389
|
+
/** Grounded Practice: an inset panel on the muted colour opens the page; links and buttons share the primary. */
|
|
2390
|
+
const grounded = {
|
|
2391
|
+
roles: {
|
|
2392
|
+
...lightGrounds(bookingLookGroundLimits["site-style:grounded-practice"], {
|
|
2393
|
+
page: .012,
|
|
2394
|
+
band: .04,
|
|
2395
|
+
bandL: [.9, .945]
|
|
2396
|
+
}),
|
|
2397
|
+
primary: {
|
|
2398
|
+
l: [.3, .55],
|
|
2399
|
+
c: [.03, .14],
|
|
2400
|
+
target: .42,
|
|
2401
|
+
name: "the buttons and links",
|
|
2402
|
+
mention: true,
|
|
2403
|
+
link: true,
|
|
2404
|
+
needs: [
|
|
2405
|
+
contrast("background"),
|
|
2406
|
+
contrast("muted"),
|
|
2407
|
+
label,
|
|
2408
|
+
{
|
|
2409
|
+
kind: "ladder",
|
|
2410
|
+
step: 600,
|
|
2411
|
+
against: "muted",
|
|
2412
|
+
ratio: 3
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2416
|
+
secondary: {
|
|
2417
|
+
l: [.45, .62],
|
|
2418
|
+
c: [.01, .04],
|
|
2419
|
+
target: .54,
|
|
2420
|
+
name: "the quiet details"
|
|
2421
|
+
},
|
|
2422
|
+
accent: {
|
|
2423
|
+
l: [.38, .68],
|
|
2424
|
+
c: [.05, .15],
|
|
2425
|
+
target: .6,
|
|
2426
|
+
name: "the small marks",
|
|
2427
|
+
analogous: true,
|
|
2428
|
+
needs: [contrast("background"), distinct("primary", .1)]
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
slots: [{
|
|
2432
|
+
roles: ["muted"],
|
|
2433
|
+
name: "the opening panel"
|
|
2434
|
+
}, {
|
|
2435
|
+
roles: ["primary"],
|
|
2436
|
+
name: "the buttons and links"
|
|
2437
|
+
}],
|
|
2438
|
+
order: [
|
|
2439
|
+
...groundOrder,
|
|
2440
|
+
"primary",
|
|
2441
|
+
"accent",
|
|
2442
|
+
"secondary"
|
|
2443
|
+
],
|
|
2444
|
+
neutrals: {
|
|
2445
|
+
dark: [.27, .015],
|
|
2446
|
+
light: [.985, .01]
|
|
2447
|
+
},
|
|
2448
|
+
reading: lightReading,
|
|
2449
|
+
groundLimit: bookingLookGroundLimits["site-style:grounded-practice"].maxChroma,
|
|
2450
|
+
contrast: [{
|
|
2451
|
+
label: "the complement on the buttons and links",
|
|
2452
|
+
hue: "complement",
|
|
2453
|
+
second: "primary",
|
|
2454
|
+
lead: "muted",
|
|
2455
|
+
l: .42,
|
|
2456
|
+
c: [.08, .13]
|
|
2457
|
+
}, {
|
|
2458
|
+
label: "a warm colour on the buttons and links",
|
|
2459
|
+
hue: "split-warm",
|
|
2460
|
+
second: "primary",
|
|
2461
|
+
lead: "muted",
|
|
2462
|
+
l: .42,
|
|
2463
|
+
c: [.08, .13]
|
|
2464
|
+
}]
|
|
2465
|
+
};
|
|
2466
|
+
/**
|
|
2467
|
+
* Lantern: always dark. A very dark page, a deep band, gilt buttons running
|
|
2468
|
+
* from the accent into the primary (one colour family, light into deeper),
|
|
2469
|
+
* and the accent on every ornament and the candle glow.
|
|
2470
|
+
*/
|
|
2471
|
+
const lanternLimits = bookingLookGroundLimits["site-style:lantern"];
|
|
2472
|
+
const lantern = {
|
|
2473
|
+
roles: {
|
|
2474
|
+
background: {
|
|
2475
|
+
l: [.14, .22],
|
|
2476
|
+
c: [0, Math.min(.03, lanternLimits.maxChroma)],
|
|
2477
|
+
chromaShare: .3,
|
|
2478
|
+
target: .18,
|
|
2479
|
+
name: "the page"
|
|
2480
|
+
},
|
|
2481
|
+
surface: {
|
|
2482
|
+
l: [.24, .3],
|
|
2483
|
+
c: [0, Math.min(.035, lanternLimits.maxChroma)],
|
|
2484
|
+
chromaShare: .3,
|
|
2485
|
+
target: .27,
|
|
2486
|
+
name: "the cards",
|
|
2487
|
+
needs: [distinct("background", .05)]
|
|
2488
|
+
},
|
|
2489
|
+
surfaceAlt: {
|
|
2490
|
+
l: [.28, .34],
|
|
2491
|
+
c: [0, Math.min(.035, lanternLimits.maxChroma)],
|
|
2492
|
+
chromaShare: .3,
|
|
2493
|
+
target: .31,
|
|
2494
|
+
name: "the quieter panels"
|
|
2495
|
+
},
|
|
2496
|
+
muted: {
|
|
2497
|
+
l: [.2, .32],
|
|
2498
|
+
c: [0, lanternLimits.maxChroma],
|
|
2499
|
+
chromaShare: .45,
|
|
2500
|
+
target: .235,
|
|
2501
|
+
name: "the band",
|
|
2502
|
+
needs: [distinct("background", .04)]
|
|
2503
|
+
},
|
|
2504
|
+
border: {
|
|
2505
|
+
l: [.35, .42],
|
|
2506
|
+
c: [0, .035],
|
|
2507
|
+
chromaShare: .3,
|
|
2508
|
+
target: .38,
|
|
2509
|
+
name: "the rules"
|
|
2510
|
+
},
|
|
2511
|
+
accent: {
|
|
2512
|
+
l: [.76, .9],
|
|
2513
|
+
c: [.03, .13],
|
|
2514
|
+
target: .86,
|
|
2515
|
+
name: "the ornaments and the light end of the gilt",
|
|
2516
|
+
mention: true,
|
|
2517
|
+
giltEnd: true,
|
|
2518
|
+
hueFrom: "primary",
|
|
2519
|
+
needs: [
|
|
2520
|
+
contrast("background"),
|
|
2521
|
+
contrast("muted"),
|
|
2522
|
+
label
|
|
2523
|
+
]
|
|
2524
|
+
},
|
|
2525
|
+
primary: {
|
|
2526
|
+
l: [.62, .82],
|
|
2527
|
+
c: [.03, .15],
|
|
2528
|
+
target: {
|
|
2529
|
+
from: "accent",
|
|
2530
|
+
dl: -.11
|
|
2531
|
+
},
|
|
2532
|
+
hueFrom: "accent",
|
|
2533
|
+
name: "the deep end of the gilt",
|
|
2534
|
+
giltEnd: true,
|
|
2535
|
+
needs: [
|
|
2536
|
+
contrast("background"),
|
|
2537
|
+
contrast("muted"),
|
|
2538
|
+
label,
|
|
2539
|
+
distinct("accent", .06)
|
|
2540
|
+
]
|
|
2541
|
+
},
|
|
2542
|
+
secondary: {
|
|
2543
|
+
l: [.24, .38],
|
|
2544
|
+
c: [.04, .11],
|
|
2545
|
+
target: .3,
|
|
2546
|
+
name: "the deep details"
|
|
2547
|
+
}
|
|
2548
|
+
},
|
|
2549
|
+
slots: [{
|
|
2550
|
+
roles: ["muted"],
|
|
2551
|
+
name: "the band"
|
|
2552
|
+
}, {
|
|
2553
|
+
roles: ["accent", "primary"],
|
|
2554
|
+
name: "the gilt buttons"
|
|
2555
|
+
}],
|
|
2556
|
+
order: [
|
|
2557
|
+
...groundOrder,
|
|
2558
|
+
"accent",
|
|
2559
|
+
"primary",
|
|
2560
|
+
"secondary"
|
|
2561
|
+
],
|
|
2562
|
+
neutrals: {
|
|
2563
|
+
dark: [.2, .03],
|
|
2564
|
+
light: [.95, .02]
|
|
2565
|
+
},
|
|
2566
|
+
reading: [
|
|
2567
|
+
"background",
|
|
2568
|
+
"surface",
|
|
2569
|
+
"surfaceAlt",
|
|
2570
|
+
"muted"
|
|
2571
|
+
],
|
|
2572
|
+
groundLimit: lanternLimits.maxChroma,
|
|
2573
|
+
contrast: [{
|
|
2574
|
+
label: "a warm complement on the gilt",
|
|
2575
|
+
hue: "warm-complement",
|
|
2576
|
+
second: "accent",
|
|
2577
|
+
lead: "muted",
|
|
2578
|
+
l: .84,
|
|
2579
|
+
c: [.08, .12]
|
|
2580
|
+
}, {
|
|
2581
|
+
label: "a second warm colour on the gilt",
|
|
2582
|
+
hue: "warm-other",
|
|
2583
|
+
second: "accent",
|
|
2584
|
+
lead: "muted",
|
|
2585
|
+
l: .84,
|
|
2586
|
+
c: [.08, .12]
|
|
2587
|
+
}]
|
|
2588
|
+
};
|
|
2589
|
+
/** Poster: the brand block is the one large area meant to be loud. Its buttons are the pop colour; elsewhere buttons are the block colour. */
|
|
2590
|
+
const posterBand = {
|
|
2591
|
+
roles: ["muted", "surfaceAlt"],
|
|
2592
|
+
name: "a faint tint of it on the band"
|
|
2593
|
+
};
|
|
2594
|
+
/** Keyed by the offered looks, so a booking look without a colour spec doesn't compile. */
|
|
2595
|
+
const bookingLookColourSpecs = {
|
|
2596
|
+
"site-style:fulcrum": fulcrum,
|
|
2597
|
+
"site-style:folio": folio,
|
|
2598
|
+
"site-style:measure": measure,
|
|
2599
|
+
"site-style:grounded-practice": grounded,
|
|
2600
|
+
"site-style:lantern": lantern,
|
|
2601
|
+
"site-style:poster": {
|
|
2602
|
+
roles: {
|
|
2603
|
+
...lightGrounds(bookingLookGroundLimits["site-style:poster"], {
|
|
2604
|
+
page: .008,
|
|
2605
|
+
band: .04,
|
|
2606
|
+
bandL: [.92, .96]
|
|
2607
|
+
}),
|
|
2608
|
+
primary: {
|
|
2609
|
+
l: [.3, .62],
|
|
2610
|
+
c: [.08, .25],
|
|
2611
|
+
target: .48,
|
|
2612
|
+
name: "the big block",
|
|
2613
|
+
mention: true,
|
|
2614
|
+
needs: [
|
|
2615
|
+
contrast("surface", 3.6),
|
|
2616
|
+
contrast("background"),
|
|
2617
|
+
label
|
|
2618
|
+
]
|
|
2619
|
+
},
|
|
2620
|
+
accent: {
|
|
2621
|
+
l: [.62, .95],
|
|
2622
|
+
c: [.08, .25],
|
|
2623
|
+
target: .86,
|
|
2624
|
+
name: "the pop buttons and stickers",
|
|
2625
|
+
mention: true,
|
|
2626
|
+
analogous: true,
|
|
2627
|
+
needs: [
|
|
2628
|
+
contrast("primary"),
|
|
2629
|
+
label,
|
|
2630
|
+
distinct("primary", .15)
|
|
2631
|
+
]
|
|
2632
|
+
},
|
|
2633
|
+
secondary: {
|
|
2634
|
+
l: [.15, .32],
|
|
2635
|
+
c: [.03, .15],
|
|
2636
|
+
target: .24,
|
|
2637
|
+
name: "the hard shadows",
|
|
2638
|
+
needs: [distinct("primary", .1)]
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2641
|
+
slots: [{
|
|
2642
|
+
roles: ["primary"],
|
|
2643
|
+
name: "the big block"
|
|
2644
|
+
}, {
|
|
2645
|
+
roles: ["accent"],
|
|
2646
|
+
name: "the pop buttons and stickers"
|
|
2647
|
+
}],
|
|
2648
|
+
order: [
|
|
2649
|
+
...groundOrder,
|
|
2650
|
+
"primary",
|
|
2651
|
+
"accent",
|
|
2652
|
+
"secondary"
|
|
2653
|
+
],
|
|
2654
|
+
neutrals: {
|
|
2655
|
+
dark: [.2, .04],
|
|
2656
|
+
light: [1, 0]
|
|
2657
|
+
},
|
|
2658
|
+
reading: lightReading,
|
|
2659
|
+
groundLimit: bookingLookGroundLimits["site-style:poster"].maxChroma,
|
|
2660
|
+
contrast: [{
|
|
2661
|
+
label: "the complement on the pop buttons",
|
|
2662
|
+
hue: "complement",
|
|
2663
|
+
second: "accent",
|
|
2664
|
+
lead: "primary",
|
|
2665
|
+
alsoTints: posterBand,
|
|
2666
|
+
l: .82,
|
|
2667
|
+
c: [.12, .15]
|
|
2668
|
+
}, {
|
|
2669
|
+
label: "a warm triadic partner on the pop buttons",
|
|
2670
|
+
hue: "triadic-warm",
|
|
2671
|
+
second: "accent",
|
|
2672
|
+
lead: "primary",
|
|
2673
|
+
alsoTints: posterBand,
|
|
2674
|
+
l: .82,
|
|
2675
|
+
c: [.12, .15]
|
|
2676
|
+
}]
|
|
2677
|
+
}
|
|
2678
|
+
};
|
|
2679
|
+
//#endregion
|
|
2680
|
+
//#region ../theme-core/src/site-styles/footerLookDefaults.ts
|
|
2681
|
+
const defaultFooterLookRecipes = {
|
|
2682
|
+
"footer-centred-name": {
|
|
2683
|
+
arrangement: "centred",
|
|
2684
|
+
ground: {
|
|
2685
|
+
kind: "token",
|
|
2686
|
+
token: "surface"
|
|
2687
|
+
},
|
|
2688
|
+
nav: {
|
|
2689
|
+
weight: "regular",
|
|
2690
|
+
colorToken: "text",
|
|
2691
|
+
hoverColorToken: "primary",
|
|
2692
|
+
typography: "body"
|
|
2693
|
+
},
|
|
2694
|
+
legal: {
|
|
2695
|
+
kind: "separate",
|
|
2696
|
+
bar: null
|
|
2697
|
+
},
|
|
2698
|
+
brandAlign: "center"
|
|
2699
|
+
},
|
|
2700
|
+
"footer-links-row": {
|
|
2701
|
+
arrangement: "simple",
|
|
2702
|
+
ground: {
|
|
2703
|
+
kind: "token",
|
|
2704
|
+
token: "surface"
|
|
2705
|
+
},
|
|
2706
|
+
nav: {
|
|
2707
|
+
weight: "regular",
|
|
2708
|
+
colorToken: "text",
|
|
2709
|
+
hoverColorToken: "primary",
|
|
2710
|
+
typography: "body"
|
|
2711
|
+
},
|
|
2712
|
+
legal: { kind: "integrated" },
|
|
2713
|
+
brandAlign: "start"
|
|
2714
|
+
}
|
|
2715
|
+
};
|
|
2716
|
+
/** A whole authored recipe replaces the default; facets are never deep-merged. */
|
|
2717
|
+
function resolveFooterLookRecipe(style, id) {
|
|
2718
|
+
return style?.footerLookRecipes?.[id] ?? defaultFooterLookRecipes[id];
|
|
2719
|
+
}
|
|
2720
|
+
//#endregion
|
|
2376
2721
|
//#region ../theme-core/src/navigation/generateNavLinkCSS.ts
|
|
2377
2722
|
/**
|
|
2378
2723
|
* Generate complete CSS for nav links from a NavLinkStyle configuration
|
|
@@ -4883,77 +5228,284 @@ const measureNight = defineCuratedPalette({
|
|
|
4883
5228
|
}
|
|
4884
5229
|
]
|
|
4885
5230
|
});
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
const curatedPalettes = [
|
|
4895
|
-
admitCuratedPaletteDefinition(brandLedCool),
|
|
4896
|
-
admitCuratedPaletteDefinition(brandLedWarm),
|
|
4897
|
-
admitCuratedPaletteDefinition(brandLedJewel),
|
|
4898
|
-
admitCuratedPaletteDefinition(brandLedBurgundyGold),
|
|
4899
|
-
admitCuratedPaletteDefinition(brandLedSpruce),
|
|
4900
|
-
admitCuratedPaletteDefinition(warmNeutralClay),
|
|
4901
|
-
admitCuratedPaletteDefinition(warmNeutralCream),
|
|
4902
|
-
admitCuratedPaletteDefinition(warmNeutralSoftEarth),
|
|
4903
|
-
admitCuratedPaletteDefinition(warmNeutralForest),
|
|
4904
|
-
admitCuratedPaletteDefinition(highContrastInk),
|
|
4905
|
-
admitCuratedPaletteDefinition(highContrastCharcoal),
|
|
4906
|
-
admitCuratedPaletteDefinition(highContrastMonochrome),
|
|
4907
|
-
admitCuratedPaletteDefinition(softNaturalSage),
|
|
4908
|
-
admitCuratedPaletteDefinition(softNaturalStone),
|
|
4909
|
-
admitCuratedPaletteDefinition(softNaturalWatercolor),
|
|
4910
|
-
admitCuratedPaletteDefinition(softNaturalLilac),
|
|
4911
|
-
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
4912
|
-
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
4913
|
-
];
|
|
4914
|
-
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
4915
|
-
const styleSuggestedPalettes = [
|
|
4916
|
-
{
|
|
4917
|
-
...admitCuratedPaletteDefinition(fulcrumDeepGreen),
|
|
4918
|
-
ownerStyleId: "site-style:fulcrum"
|
|
4919
|
-
},
|
|
4920
|
-
{
|
|
4921
|
-
...admitCuratedPaletteDefinition(fulcrumNight),
|
|
4922
|
-
ownerStyleId: "site-style:fulcrum"
|
|
4923
|
-
},
|
|
4924
|
-
{
|
|
4925
|
-
...admitCuratedPaletteDefinition(fulcrumClay),
|
|
4926
|
-
ownerStyleId: "site-style:fulcrum"
|
|
4927
|
-
},
|
|
4928
|
-
{
|
|
4929
|
-
...admitCuratedPaletteDefinition(posterCobalt),
|
|
4930
|
-
ownerStyleId: "site-style:poster"
|
|
4931
|
-
},
|
|
4932
|
-
{
|
|
4933
|
-
...admitCuratedPaletteDefinition(posterConcrete),
|
|
4934
|
-
ownerStyleId: "site-style:poster"
|
|
4935
|
-
},
|
|
4936
|
-
{
|
|
4937
|
-
...admitCuratedPaletteDefinition(posterRose),
|
|
4938
|
-
ownerStyleId: "site-style:poster"
|
|
4939
|
-
},
|
|
4940
|
-
{
|
|
4941
|
-
...admitCuratedPaletteDefinition(lanternPlum),
|
|
4942
|
-
ownerStyleId: "site-style:lantern"
|
|
4943
|
-
},
|
|
4944
|
-
{
|
|
4945
|
-
...admitCuratedPaletteDefinition(lanternPeacock),
|
|
4946
|
-
ownerStyleId: "site-style:lantern"
|
|
4947
|
-
},
|
|
4948
|
-
{
|
|
4949
|
-
...admitCuratedPaletteDefinition(lanternDawn),
|
|
4950
|
-
ownerStyleId: "site-style:lantern"
|
|
5231
|
+
const loomHearth = defineCuratedPalette({
|
|
5232
|
+
authoringKey: "loom-hearth",
|
|
5233
|
+
name: "Loom — Hearth",
|
|
5234
|
+
description: "Warm paper, espresso ink and a rust patch.",
|
|
5235
|
+
tags: {
|
|
5236
|
+
tone: "classic",
|
|
5237
|
+
energy: "calm",
|
|
5238
|
+
era: "organic"
|
|
4951
5239
|
},
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
5240
|
+
mode: "light",
|
|
5241
|
+
colors: [
|
|
5242
|
+
{
|
|
5243
|
+
name: "primary",
|
|
5244
|
+
hex: "#a2471f"
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
name: "secondary",
|
|
5248
|
+
hex: "#33261d"
|
|
5249
|
+
},
|
|
5250
|
+
{
|
|
5251
|
+
name: "accent",
|
|
5252
|
+
hex: "#7f5f0e"
|
|
5253
|
+
},
|
|
5254
|
+
{
|
|
5255
|
+
name: "success",
|
|
5256
|
+
hex: "#2c7a45"
|
|
5257
|
+
},
|
|
5258
|
+
{
|
|
5259
|
+
name: "warning",
|
|
5260
|
+
hex: "#8a5a00"
|
|
5261
|
+
},
|
|
5262
|
+
{
|
|
5263
|
+
name: "destructive",
|
|
5264
|
+
hex: "#b3261e"
|
|
5265
|
+
},
|
|
5266
|
+
{
|
|
5267
|
+
name: "background",
|
|
5268
|
+
hex: "#faf5ec"
|
|
5269
|
+
},
|
|
5270
|
+
{
|
|
5271
|
+
name: "surface",
|
|
5272
|
+
hex: "#fffdf7"
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
name: "surfaceAlt",
|
|
5276
|
+
hex: "#f0e7d5"
|
|
5277
|
+
},
|
|
5278
|
+
{
|
|
5279
|
+
name: "muted",
|
|
5280
|
+
hex: "#61544a"
|
|
5281
|
+
},
|
|
5282
|
+
{
|
|
5283
|
+
name: "text",
|
|
5284
|
+
hex: "#2c211a"
|
|
5285
|
+
},
|
|
5286
|
+
{
|
|
5287
|
+
name: "primaryForeground",
|
|
5288
|
+
hex: "#fff6e8"
|
|
5289
|
+
},
|
|
5290
|
+
{
|
|
5291
|
+
name: "border",
|
|
5292
|
+
hex: "#8a7660"
|
|
5293
|
+
}
|
|
5294
|
+
]
|
|
5295
|
+
});
|
|
5296
|
+
const loomFlax = defineCuratedPalette({
|
|
5297
|
+
authoringKey: "loom-flax",
|
|
5298
|
+
name: "Loom — Flax",
|
|
5299
|
+
description: "Pale sage, pine ink and a deep green patch.",
|
|
5300
|
+
tags: {
|
|
5301
|
+
tone: "classic",
|
|
5302
|
+
energy: "calm",
|
|
5303
|
+
era: "organic"
|
|
4955
5304
|
},
|
|
4956
|
-
|
|
5305
|
+
mode: "light",
|
|
5306
|
+
colors: [
|
|
5307
|
+
{
|
|
5308
|
+
name: "primary",
|
|
5309
|
+
hex: "#33695a"
|
|
5310
|
+
},
|
|
5311
|
+
{
|
|
5312
|
+
name: "secondary",
|
|
5313
|
+
hex: "#222b26"
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
name: "accent",
|
|
5317
|
+
hex: "#a34d22"
|
|
5318
|
+
},
|
|
5319
|
+
{
|
|
5320
|
+
name: "success",
|
|
5321
|
+
hex: "#2c7a45"
|
|
5322
|
+
},
|
|
5323
|
+
{
|
|
5324
|
+
name: "warning",
|
|
5325
|
+
hex: "#7a5200"
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
name: "destructive",
|
|
5329
|
+
hex: "#a93226"
|
|
5330
|
+
},
|
|
5331
|
+
{
|
|
5332
|
+
name: "background",
|
|
5333
|
+
hex: "#eef1ea"
|
|
5334
|
+
},
|
|
5335
|
+
{
|
|
5336
|
+
name: "surface",
|
|
5337
|
+
hex: "#f9faf6"
|
|
5338
|
+
},
|
|
5339
|
+
{
|
|
5340
|
+
name: "surfaceAlt",
|
|
5341
|
+
hex: "#dfe4d6"
|
|
5342
|
+
},
|
|
5343
|
+
{
|
|
5344
|
+
name: "muted",
|
|
5345
|
+
hex: "#4c5a51"
|
|
5346
|
+
},
|
|
5347
|
+
{
|
|
5348
|
+
name: "text",
|
|
5349
|
+
hex: "#222c27"
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
name: "primaryForeground",
|
|
5353
|
+
hex: "#f2f6ec"
|
|
5354
|
+
},
|
|
5355
|
+
{
|
|
5356
|
+
name: "border",
|
|
5357
|
+
hex: "#68776d"
|
|
5358
|
+
}
|
|
5359
|
+
]
|
|
5360
|
+
});
|
|
5361
|
+
const loomEmber = defineCuratedPalette({
|
|
5362
|
+
authoringKey: "loom-ember",
|
|
5363
|
+
name: "Loom — Ember",
|
|
5364
|
+
description: "Deep espresso, cream ink and a terracotta patch.",
|
|
5365
|
+
tags: {
|
|
5366
|
+
tone: "classic",
|
|
5367
|
+
energy: "calm",
|
|
5368
|
+
era: "organic"
|
|
5369
|
+
},
|
|
5370
|
+
mode: "dark",
|
|
5371
|
+
colors: [
|
|
5372
|
+
{
|
|
5373
|
+
name: "primary",
|
|
5374
|
+
hex: "#a95224"
|
|
5375
|
+
},
|
|
5376
|
+
{
|
|
5377
|
+
name: "secondary",
|
|
5378
|
+
hex: "#140d0a"
|
|
5379
|
+
},
|
|
5380
|
+
{
|
|
5381
|
+
name: "accent",
|
|
5382
|
+
hex: "#e0a83c"
|
|
5383
|
+
},
|
|
5384
|
+
{
|
|
5385
|
+
name: "success",
|
|
5386
|
+
hex: "#7cc79b"
|
|
5387
|
+
},
|
|
5388
|
+
{
|
|
5389
|
+
name: "warning",
|
|
5390
|
+
hex: "#e3b25c"
|
|
5391
|
+
},
|
|
5392
|
+
{
|
|
5393
|
+
name: "destructive",
|
|
5394
|
+
hex: "#ec8d80"
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
name: "background",
|
|
5398
|
+
hex: "#201512"
|
|
5399
|
+
},
|
|
5400
|
+
{
|
|
5401
|
+
name: "surface",
|
|
5402
|
+
hex: "#2b1e19"
|
|
5403
|
+
},
|
|
5404
|
+
{
|
|
5405
|
+
name: "surfaceAlt",
|
|
5406
|
+
hex: "#170f0c"
|
|
5407
|
+
},
|
|
5408
|
+
{
|
|
5409
|
+
name: "muted",
|
|
5410
|
+
hex: "#c9b29a"
|
|
5411
|
+
},
|
|
5412
|
+
{
|
|
5413
|
+
name: "text",
|
|
5414
|
+
hex: "#f4e8d4"
|
|
5415
|
+
},
|
|
5416
|
+
{
|
|
5417
|
+
name: "primaryForeground",
|
|
5418
|
+
hex: "#fff6e8"
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
name: "border",
|
|
5422
|
+
hex: "#9a8264"
|
|
5423
|
+
}
|
|
5424
|
+
]
|
|
5425
|
+
});
|
|
5426
|
+
//#endregion
|
|
5427
|
+
//#region ../theme-core/src/palette/curated/index.ts
|
|
5428
|
+
function admitCuratedPaletteDefinition(definition) {
|
|
5429
|
+
return {
|
|
5430
|
+
...definition,
|
|
5431
|
+
valueKey: definition.valueKey
|
|
5432
|
+
};
|
|
5433
|
+
}
|
|
5434
|
+
const curatedPalettes = [
|
|
5435
|
+
admitCuratedPaletteDefinition(brandLedCool),
|
|
5436
|
+
admitCuratedPaletteDefinition(brandLedWarm),
|
|
5437
|
+
admitCuratedPaletteDefinition(brandLedJewel),
|
|
5438
|
+
admitCuratedPaletteDefinition(brandLedBurgundyGold),
|
|
5439
|
+
admitCuratedPaletteDefinition(brandLedSpruce),
|
|
5440
|
+
admitCuratedPaletteDefinition(warmNeutralClay),
|
|
5441
|
+
admitCuratedPaletteDefinition(warmNeutralCream),
|
|
5442
|
+
admitCuratedPaletteDefinition(warmNeutralSoftEarth),
|
|
5443
|
+
admitCuratedPaletteDefinition(warmNeutralForest),
|
|
5444
|
+
admitCuratedPaletteDefinition(highContrastInk),
|
|
5445
|
+
admitCuratedPaletteDefinition(highContrastCharcoal),
|
|
5446
|
+
admitCuratedPaletteDefinition(highContrastMonochrome),
|
|
5447
|
+
admitCuratedPaletteDefinition(softNaturalSage),
|
|
5448
|
+
admitCuratedPaletteDefinition(softNaturalStone),
|
|
5449
|
+
admitCuratedPaletteDefinition(softNaturalWatercolor),
|
|
5450
|
+
admitCuratedPaletteDefinition(softNaturalLilac),
|
|
5451
|
+
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
5452
|
+
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
5453
|
+
];
|
|
5454
|
+
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
5455
|
+
const styleSuggestedPalettes = [
|
|
5456
|
+
{
|
|
5457
|
+
...admitCuratedPaletteDefinition(loomHearth),
|
|
5458
|
+
ownerStyleId: "site-style:loom"
|
|
5459
|
+
},
|
|
5460
|
+
{
|
|
5461
|
+
...admitCuratedPaletteDefinition(loomFlax),
|
|
5462
|
+
ownerStyleId: "site-style:loom"
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
...admitCuratedPaletteDefinition(loomEmber),
|
|
5466
|
+
ownerStyleId: "site-style:loom"
|
|
5467
|
+
},
|
|
5468
|
+
{
|
|
5469
|
+
...admitCuratedPaletteDefinition(fulcrumDeepGreen),
|
|
5470
|
+
ownerStyleId: "site-style:fulcrum"
|
|
5471
|
+
},
|
|
5472
|
+
{
|
|
5473
|
+
...admitCuratedPaletteDefinition(fulcrumNight),
|
|
5474
|
+
ownerStyleId: "site-style:fulcrum"
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
...admitCuratedPaletteDefinition(fulcrumClay),
|
|
5478
|
+
ownerStyleId: "site-style:fulcrum"
|
|
5479
|
+
},
|
|
5480
|
+
{
|
|
5481
|
+
...admitCuratedPaletteDefinition(posterCobalt),
|
|
5482
|
+
ownerStyleId: "site-style:poster"
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
...admitCuratedPaletteDefinition(posterConcrete),
|
|
5486
|
+
ownerStyleId: "site-style:poster"
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
...admitCuratedPaletteDefinition(posterRose),
|
|
5490
|
+
ownerStyleId: "site-style:poster"
|
|
5491
|
+
},
|
|
5492
|
+
{
|
|
5493
|
+
...admitCuratedPaletteDefinition(lanternPlum),
|
|
5494
|
+
ownerStyleId: "site-style:lantern"
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
...admitCuratedPaletteDefinition(lanternPeacock),
|
|
5498
|
+
ownerStyleId: "site-style:lantern"
|
|
5499
|
+
},
|
|
5500
|
+
{
|
|
5501
|
+
...admitCuratedPaletteDefinition(lanternDawn),
|
|
5502
|
+
ownerStyleId: "site-style:lantern"
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
...admitCuratedPaletteDefinition(measurePaper),
|
|
5506
|
+
ownerStyleId: "site-style:measure"
|
|
5507
|
+
},
|
|
5508
|
+
{
|
|
4957
5509
|
...admitCuratedPaletteDefinition(measurePlaster),
|
|
4958
5510
|
ownerStyleId: "site-style:measure"
|
|
4959
5511
|
},
|
|
@@ -6381,6 +6933,52 @@ function defaultTypographyForRecipe(recipe) {
|
|
|
6381
6933
|
case "classic-serif": return classicSerifTypography;
|
|
6382
6934
|
}
|
|
6383
6935
|
}
|
|
6936
|
+
/** Loom: the working face is Figtree; Fraunces owns display and quote copy. */
|
|
6937
|
+
const loomTypography = {
|
|
6938
|
+
body: {
|
|
6939
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6940
|
+
size: "lg",
|
|
6941
|
+
weight: "regular",
|
|
6942
|
+
lineHeight: "relaxed",
|
|
6943
|
+
letterSpacing: "normal"
|
|
6944
|
+
},
|
|
6945
|
+
smallHeading: {
|
|
6946
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6947
|
+
weight: "semibold"
|
|
6948
|
+
},
|
|
6949
|
+
headings: {
|
|
6950
|
+
default: {
|
|
6951
|
+
family: "Fraunces, Georgia, serif",
|
|
6952
|
+
weight: "semibold",
|
|
6953
|
+
lineHeight: "normal",
|
|
6954
|
+
letterSpacing: "tight",
|
|
6955
|
+
italic: null,
|
|
6956
|
+
case: null
|
|
6957
|
+
},
|
|
6958
|
+
h1: {
|
|
6959
|
+
size: "2xl",
|
|
6960
|
+
weight: "semibold",
|
|
6961
|
+
lineHeight: "tight",
|
|
6962
|
+
letterSpacing: "tight",
|
|
6963
|
+
italic: null
|
|
6964
|
+
},
|
|
6965
|
+
h2: {
|
|
6966
|
+
size: "xl",
|
|
6967
|
+
weight: "semibold",
|
|
6968
|
+
lineHeight: "snug",
|
|
6969
|
+
letterSpacing: "tight",
|
|
6970
|
+
italic: null
|
|
6971
|
+
},
|
|
6972
|
+
h3: {
|
|
6973
|
+
size: "md",
|
|
6974
|
+
weight: "semibold",
|
|
6975
|
+
lineHeight: "snug",
|
|
6976
|
+
letterSpacing: "normal",
|
|
6977
|
+
italic: null
|
|
6978
|
+
}
|
|
6979
|
+
},
|
|
6980
|
+
scale: "spacious"
|
|
6981
|
+
};
|
|
6384
6982
|
//#endregion
|
|
6385
6983
|
//#region ../theme-core/src/site-styles/designState.ts
|
|
6386
6984
|
const designResolutionPolicySchema = z.enum([
|
|
@@ -6391,24 +6989,17 @@ const designResolutionPolicySchema = z.enum([
|
|
|
6391
6989
|
]);
|
|
6392
6990
|
const runtimeStyleFieldNameSchema = z.enum(themeV2RuntimeStyleFieldNames);
|
|
6393
6991
|
const nonEmptyRuntimeStyleFieldNamesSchema = z.array(runtimeStyleFieldNameSchema).min(1).transform((fields) => [fields[0], ...fields.slice(1)]);
|
|
6394
|
-
const styleAuthoritySchema = z.discriminatedUnion("kind", [
|
|
6395
|
-
z.
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
z.
|
|
6404
|
-
|
|
6405
|
-
reason: z.enum(["pre-theme-v2", "manual-runtime-fields"])
|
|
6406
|
-
}).strict(),
|
|
6407
|
-
z.object({
|
|
6408
|
-
kind: z.literal("advanced-detached"),
|
|
6409
|
-
reason: z.literal("detached-custom-runtime-fields")
|
|
6410
|
-
}).strict()
|
|
6411
|
-
]);
|
|
6992
|
+
const styleAuthoritySchema = z.discriminatedUnion("kind", [z.object({
|
|
6993
|
+
kind: z.literal("theme-v2"),
|
|
6994
|
+
source: designResolutionPolicySchema,
|
|
6995
|
+
siteStyleId: z.string().min(1).transform(asSiteStyleId),
|
|
6996
|
+
templateId: z.string().min(1).transform(asDesignSystemTemplateId),
|
|
6997
|
+
templateVersion: z.number().int().nonnegative(),
|
|
6998
|
+
resolverVersion: z.number().int().nonnegative()
|
|
6999
|
+
}).strict(), z.object({
|
|
7000
|
+
kind: z.literal("advanced-detached"),
|
|
7001
|
+
reason: z.literal("detached-custom-runtime-fields")
|
|
7002
|
+
}).strict()]);
|
|
6412
7003
|
z.object({
|
|
6413
7004
|
unit: z.literal("block-runtime-fields"),
|
|
6414
7005
|
blockId: z.string().min(1).transform(asDesignBlockId),
|
|
@@ -6789,8 +7380,42 @@ const curatedSiteStyleIdValues = [
|
|
|
6789
7380
|
"site-style:poster",
|
|
6790
7381
|
"site-style:lantern",
|
|
6791
7382
|
"site-style:measure",
|
|
6792
|
-
"site-style:folio"
|
|
7383
|
+
"site-style:folio",
|
|
7384
|
+
"site-style:loom"
|
|
6793
7385
|
];
|
|
7386
|
+
/** Keyed by the offered looks, so adding a look without its hero Look doesn't compile. */
|
|
7387
|
+
const bookingPageNoPhotoHeroLookIds = {
|
|
7388
|
+
"site-style:fulcrum": "hero-photo-beside-text",
|
|
7389
|
+
"site-style:folio": "hero-page-head",
|
|
7390
|
+
"site-style:measure": "hero-page-head",
|
|
7391
|
+
"site-style:grounded-practice": "hero-contained-intro",
|
|
7392
|
+
"site-style:lantern": "hero-framed-title",
|
|
7393
|
+
"site-style:poster": "hero-page-head"
|
|
7394
|
+
};
|
|
7395
|
+
function bookingPageOfferingFor(siteStyleId) {
|
|
7396
|
+
const lookId = bookingPageLookIdValues.find((id) => id === siteStyleId);
|
|
7397
|
+
return lookId ? {
|
|
7398
|
+
noPhotoHeroLookId: asAppearancePresetId(bookingPageNoPhotoHeroLookIds[lookId]),
|
|
7399
|
+
colourSpec: bookingLookColourSpecs[lookId]
|
|
7400
|
+
} : void 0;
|
|
7401
|
+
}
|
|
7402
|
+
function clientStyleMatchesSite(siteSlugs, target) {
|
|
7403
|
+
if (target.audience !== "site-picker" && target.audience !== "local-demo") return false;
|
|
7404
|
+
return target.siteSlug != null && siteSlugs.includes(target.siteSlug);
|
|
7405
|
+
}
|
|
7406
|
+
/** The same eligibility decision governs offering and the apply write boundary. */
|
|
7407
|
+
function siteStyleOfferingDecision(offering, target) {
|
|
7408
|
+
if (target.audience === "lab") return { kind: "offered" };
|
|
7409
|
+
const localDemo = target.audience === "local-demo" && target.environment === "local-development";
|
|
7410
|
+
switch (offering.kind) {
|
|
7411
|
+
case "public": return target.audience === "booking-page" && !offering.bookingPage ? { kind: "audience-mismatch" } : { kind: "offered" };
|
|
7412
|
+
case "lab": return localDemo ? { kind: "offered" } : { kind: "lab" };
|
|
7413
|
+
case "client": return localDemo || clientStyleMatchesSite(offering.siteSlugs, target) ? { kind: "offered" } : { kind: "client-site-mismatch" };
|
|
7414
|
+
}
|
|
7415
|
+
}
|
|
7416
|
+
function offeredSiteStyles(target, catalogue = curatedSiteStyles) {
|
|
7417
|
+
return catalogue.filter((style) => siteStyleOfferingDecision(style.offering, target).kind === "offered");
|
|
7418
|
+
}
|
|
6794
7419
|
const quietBudget = {
|
|
6795
7420
|
accentDensity: "low",
|
|
6796
7421
|
panelDensity: "medium",
|
|
@@ -6986,6 +7611,10 @@ function defineHeaderCuration(input) {
|
|
|
6986
7611
|
return [toEntry(first), ...remaining.map(toEntry)];
|
|
6987
7612
|
}
|
|
6988
7613
|
const headerCurationBySiteStyle = {
|
|
7614
|
+
"site-style:loom": defineHeaderCuration([{
|
|
7615
|
+
layoutId: "classic",
|
|
7616
|
+
styleIds: ["serif-line"]
|
|
7617
|
+
}]),
|
|
6989
7618
|
"site-style:clarity-zen-blue": defineHeaderCuration([{
|
|
6990
7619
|
layoutId: "centered",
|
|
6991
7620
|
styleIds: [
|
|
@@ -7121,7 +7750,11 @@ const headerCurationBySiteStyle = {
|
|
|
7121
7750
|
"site-style:folio": defineHeaderCuration([
|
|
7122
7751
|
{
|
|
7123
7752
|
layoutId: "floating",
|
|
7124
|
-
styleIds: [
|
|
7753
|
+
styleIds: [
|
|
7754
|
+
"minimal-surface",
|
|
7755
|
+
"soft-shell",
|
|
7756
|
+
"glass"
|
|
7757
|
+
]
|
|
7125
7758
|
},
|
|
7126
7759
|
{
|
|
7127
7760
|
layoutId: "classic",
|
|
@@ -7147,7 +7780,37 @@ const headerCurationBySiteStyle = {
|
|
|
7147
7780
|
styleIds: ["fine-line", "minimal"]
|
|
7148
7781
|
}])
|
|
7149
7782
|
};
|
|
7783
|
+
/** Optional authored overrides remain absent when the catalogue did not supply them. */
|
|
7784
|
+
function authoredSiteStyleOverrides(input) {
|
|
7785
|
+
return {
|
|
7786
|
+
...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
|
|
7787
|
+
...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
|
|
7788
|
+
...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
|
|
7789
|
+
...input.heroTypography ? { heroTypography: input.heroTypography } : {}
|
|
7790
|
+
};
|
|
7791
|
+
}
|
|
7792
|
+
function siteStyleFontDefaults(input) {
|
|
7793
|
+
const typography = input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography);
|
|
7794
|
+
return {
|
|
7795
|
+
typography,
|
|
7796
|
+
fontPairings: input.fontPairings ?? [{
|
|
7797
|
+
id: "look-default",
|
|
7798
|
+
heading: typography.headings.default.family,
|
|
7799
|
+
body: typography.body.family
|
|
7800
|
+
}]
|
|
7801
|
+
};
|
|
7802
|
+
}
|
|
7803
|
+
function withBookingPageOffering(offering, bookingPage) {
|
|
7804
|
+
return bookingPage ? {
|
|
7805
|
+
...offering,
|
|
7806
|
+
bookingPage
|
|
7807
|
+
} : offering;
|
|
7808
|
+
}
|
|
7150
7809
|
function defineCuratedSiteStyle(input) {
|
|
7810
|
+
const offering = input.offering ?? {
|
|
7811
|
+
kind: "public",
|
|
7812
|
+
generation: { kind: "explicit_only" }
|
|
7813
|
+
};
|
|
7151
7814
|
const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
|
|
7152
7815
|
return {
|
|
7153
7816
|
id: asSiteStyleId(input.id),
|
|
@@ -7155,56 +7818,492 @@ function defineCuratedSiteStyle(input) {
|
|
|
7155
7818
|
description: input.description,
|
|
7156
7819
|
generationBrief: input.generationBrief,
|
|
7157
7820
|
selectionKeywordRules: input.selectionKeywordRules ?? [],
|
|
7158
|
-
offering:
|
|
7159
|
-
|
|
7160
|
-
|
|
7821
|
+
offering: offering.kind === "public" ? withBookingPageOffering(offering, bookingPageOfferingFor(input.id)) : offering,
|
|
7822
|
+
template: curatedStyleTemplate(input),
|
|
7823
|
+
contentTemplateDefaults: input.contentTemplateDefaults,
|
|
7824
|
+
headingDecoration: input.headingDecoration ?? noHeadingDecoration,
|
|
7825
|
+
...authoredSiteStyleOverrides(input),
|
|
7826
|
+
componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
|
|
7827
|
+
looks: input.looks ?? {
|
|
7828
|
+
kind: "recipe",
|
|
7829
|
+
recommendedAppearancePresetIds
|
|
7830
|
+
},
|
|
7831
|
+
headerCuration: headerCurationBySiteStyle[input.id],
|
|
7832
|
+
headerStyleRecipes: input.headerStyleRecipes,
|
|
7833
|
+
footerLookRecipes: input.footerLookRecipes,
|
|
7834
|
+
recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
|
|
7835
|
+
buttonStyleChoices: input.buttonStyleChoices,
|
|
7836
|
+
paletteRecommendations: input.paletteRecommendations,
|
|
7837
|
+
...siteStyleFontDefaults(input)
|
|
7838
|
+
};
|
|
7839
|
+
}
|
|
7840
|
+
function buttonChoice(styleId, note, parameters) {
|
|
7841
|
+
const selection = parameters === void 0 ? defaultButtonStyleSelectionFor(styleId) : buttonStyleSelectionSchema.parse({
|
|
7842
|
+
styleId,
|
|
7843
|
+
parameters
|
|
7844
|
+
});
|
|
7845
|
+
return note ? {
|
|
7846
|
+
...selection,
|
|
7847
|
+
note
|
|
7848
|
+
} : selection;
|
|
7849
|
+
}
|
|
7850
|
+
function paletteRecommendation(authoringKey, note) {
|
|
7851
|
+
const valueKey = requireCuratedPaletteValueKey(asCuratedPaletteAuthoringKey(authoringKey));
|
|
7852
|
+
return note ? {
|
|
7853
|
+
id: valueKey,
|
|
7854
|
+
note
|
|
7855
|
+
} : { id: valueKey };
|
|
7856
|
+
}
|
|
7857
|
+
/**
|
|
7858
|
+
* V1 generated site styles are curated product presets, not AI-authored design
|
|
7859
|
+
* systems. Generators choose one of these bounded entries, then downstream
|
|
7860
|
+
* resolve/compile steps translate it to Theme and block runtime fields.
|
|
7861
|
+
*/
|
|
7862
|
+
const id = asAppearancePresetId;
|
|
7863
|
+
const quieterOrStandard = { titleSize: ["quiet", "auto"] };
|
|
7864
|
+
/** Loom: sheets for cards, a ground-aware statement, and highlights on the section. */
|
|
7865
|
+
const loomRoles = {
|
|
7866
|
+
card: "sheet",
|
|
7867
|
+
statement: {
|
|
7868
|
+
default: "brand",
|
|
7869
|
+
brand: "deep",
|
|
7870
|
+
deep: "inverse"
|
|
7871
|
+
},
|
|
7872
|
+
highlight: "section"
|
|
7873
|
+
};
|
|
7874
|
+
const loomLooks = {
|
|
7875
|
+
kind: "offers",
|
|
7876
|
+
skin: "loom",
|
|
7877
|
+
skinTokens: {
|
|
7878
|
+
radius: "14px",
|
|
7879
|
+
rule: "2px",
|
|
7880
|
+
"mark-length": "30px",
|
|
7881
|
+
"mark-weight": "4px",
|
|
7882
|
+
plate: "10px",
|
|
7883
|
+
gutter: "24px",
|
|
7884
|
+
"copy-gap": "1.25rem",
|
|
7885
|
+
"stack-gap": "2.5rem",
|
|
7886
|
+
"shadow-offset": "3px",
|
|
7887
|
+
wrap: "1140px",
|
|
7888
|
+
margin: "2.5rem"
|
|
7889
|
+
},
|
|
7890
|
+
fontLoading: {
|
|
7891
|
+
extraHeadingFontWeights: [
|
|
7892
|
+
560,
|
|
7893
|
+
600,
|
|
7894
|
+
640
|
|
7895
|
+
],
|
|
7896
|
+
italicHeadingFontWeights: [400, 480],
|
|
7897
|
+
extraBodyFontWeights: [
|
|
7898
|
+
400,
|
|
7899
|
+
600,
|
|
7900
|
+
700
|
|
7901
|
+
]
|
|
7902
|
+
},
|
|
7903
|
+
surfaces: {
|
|
7904
|
+
base: {
|
|
7905
|
+
kind: "token",
|
|
7906
|
+
token: "background"
|
|
7907
|
+
},
|
|
7908
|
+
band: {
|
|
7909
|
+
kind: "token",
|
|
7910
|
+
token: "surfaceAlt"
|
|
7911
|
+
},
|
|
7912
|
+
brand: {
|
|
7913
|
+
kind: "token",
|
|
7914
|
+
token: "primary",
|
|
7915
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7916
|
+
},
|
|
7917
|
+
deep: {
|
|
7918
|
+
kind: "token",
|
|
7919
|
+
token: "secondary",
|
|
7920
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7921
|
+
},
|
|
7922
|
+
sheet: {
|
|
7923
|
+
kind: "token",
|
|
7924
|
+
token: "surface",
|
|
7925
|
+
roleOnly: true
|
|
7926
|
+
},
|
|
7927
|
+
inverse: {
|
|
7928
|
+
kind: "token",
|
|
7929
|
+
token: "text",
|
|
7930
|
+
roleOnly: true,
|
|
7931
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
|
|
7932
|
+
}
|
|
7933
|
+
},
|
|
7934
|
+
rhythm: {
|
|
7935
|
+
"flow:quiet": [
|
|
7936
|
+
"base",
|
|
7937
|
+
"band",
|
|
7938
|
+
"base",
|
|
7939
|
+
"base",
|
|
7940
|
+
"band",
|
|
7941
|
+
"base"
|
|
7942
|
+
],
|
|
7943
|
+
"flow:balanced": [
|
|
7944
|
+
"base",
|
|
7945
|
+
"band",
|
|
7946
|
+
"base",
|
|
7947
|
+
"band",
|
|
7948
|
+
"brand",
|
|
7949
|
+
"base"
|
|
7950
|
+
],
|
|
7951
|
+
"flow:expressive": [
|
|
7952
|
+
"base",
|
|
7953
|
+
"brand",
|
|
7954
|
+
"base",
|
|
7955
|
+
"band",
|
|
7956
|
+
"base",
|
|
7957
|
+
"band"
|
|
7958
|
+
]
|
|
7959
|
+
},
|
|
7960
|
+
offers: [
|
|
7961
|
+
{
|
|
7962
|
+
id: id("event-details-panel"),
|
|
7963
|
+
treatment: "details-panel",
|
|
7964
|
+
roleMap: loomRoles
|
|
7965
|
+
},
|
|
7966
|
+
{
|
|
7967
|
+
id: id("event-details-header"),
|
|
7968
|
+
treatment: "details-header",
|
|
7969
|
+
roleMap: loomRoles
|
|
7970
|
+
},
|
|
7971
|
+
{
|
|
7972
|
+
id: id("hero-photo-beside-text"),
|
|
7973
|
+
treatment: "hero-framed",
|
|
7974
|
+
roleMap: {
|
|
7975
|
+
...loomRoles,
|
|
7976
|
+
highlight: "deep"
|
|
7977
|
+
}
|
|
7978
|
+
},
|
|
7979
|
+
{
|
|
7980
|
+
id: id("intro-statement-beside-text"),
|
|
7981
|
+
treatment: "intro-statement",
|
|
7982
|
+
roleMap: loomRoles
|
|
7983
|
+
},
|
|
7984
|
+
{
|
|
7985
|
+
id: id("team-members-tall-portraits"),
|
|
7986
|
+
treatment: "team-tall-portraits",
|
|
7987
|
+
roleMap: loomRoles
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
id: id("shop-price-cards-featured"),
|
|
7991
|
+
treatment: "shop-price-cards-featured",
|
|
7992
|
+
roleMap: loomRoles
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
id: id("card-list-plates"),
|
|
7996
|
+
treatment: "items-plates",
|
|
7997
|
+
roleMap: loomRoles,
|
|
7998
|
+
removeKnobs: ["showPhotos"],
|
|
7999
|
+
knobValues: { dates: ["next-dates"] },
|
|
8000
|
+
itemRoles: { items: "card" }
|
|
8001
|
+
},
|
|
8002
|
+
{
|
|
8003
|
+
id: id("feature-cards-cards"),
|
|
8004
|
+
treatment: "cards-sewn",
|
|
8005
|
+
roleMap: loomRoles,
|
|
8006
|
+
removeKnobs: ["showPhotos"],
|
|
8007
|
+
knobValues: {
|
|
8008
|
+
cardMarker: ["none"],
|
|
8009
|
+
actionStyle: ["link"]
|
|
8010
|
+
}
|
|
8011
|
+
},
|
|
8012
|
+
{
|
|
8013
|
+
id: id("media-text-photo-beside-text"),
|
|
8014
|
+
treatment: "media-framed",
|
|
8015
|
+
roleMap: loomRoles
|
|
8016
|
+
},
|
|
8017
|
+
{
|
|
8018
|
+
id: id("event-calendar-session-cards"),
|
|
8019
|
+
treatment: "calendar-session-cards",
|
|
8020
|
+
roleMap: loomRoles,
|
|
8021
|
+
removeKnobs: ["showPhotos"]
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
id: id("testimonials-lead-quote"),
|
|
8025
|
+
treatment: "quote-lead",
|
|
8026
|
+
roleMap: loomRoles,
|
|
8027
|
+
itemRoles: {
|
|
8028
|
+
items: "card",
|
|
8029
|
+
at: { first: "highlight" }
|
|
8030
|
+
}
|
|
8031
|
+
},
|
|
8032
|
+
{
|
|
8033
|
+
id: id("faq-questions-under-title"),
|
|
8034
|
+
treatment: "faq-under",
|
|
8035
|
+
roleMap: loomRoles
|
|
8036
|
+
},
|
|
8037
|
+
{
|
|
8038
|
+
id: id("cta-centred"),
|
|
8039
|
+
treatment: "cta-centred",
|
|
8040
|
+
roleMap: loomRoles
|
|
8041
|
+
},
|
|
8042
|
+
{
|
|
8043
|
+
id: id("newsletter-signup-text-beside"),
|
|
8044
|
+
treatment: "signup-text-beside",
|
|
8045
|
+
roleMap: loomRoles
|
|
8046
|
+
},
|
|
8047
|
+
{
|
|
8048
|
+
id: id("body-text-reading-column"),
|
|
8049
|
+
treatment: "body-reading",
|
|
8050
|
+
roleMap: loomRoles
|
|
8051
|
+
},
|
|
8052
|
+
{
|
|
8053
|
+
id: id("image-gallery-captions-under"),
|
|
8054
|
+
treatment: "gallery-captions-under",
|
|
8055
|
+
roleMap: loomRoles
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
id: id("form-below-introduction"),
|
|
8059
|
+
treatment: "form-below",
|
|
8060
|
+
roleMap: loomRoles
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
id: id("location-map-beside-address"),
|
|
8064
|
+
treatment: "map-beside-address",
|
|
8065
|
+
roleMap: loomRoles
|
|
8066
|
+
},
|
|
8067
|
+
{
|
|
8068
|
+
id: id("event-calendar-month-grid"),
|
|
8069
|
+
treatment: "calendar-month-grid",
|
|
8070
|
+
roleMap: loomRoles
|
|
8071
|
+
},
|
|
8072
|
+
{
|
|
8073
|
+
id: id("form-beside-introduction-arched-panel"),
|
|
8074
|
+
treatment: "form-beside",
|
|
8075
|
+
roleMap: loomRoles
|
|
8076
|
+
},
|
|
8077
|
+
{
|
|
8078
|
+
id: id("newsletter-signup-in-arch"),
|
|
8079
|
+
treatment: "signup-frame",
|
|
8080
|
+
roleMap: loomRoles
|
|
8081
|
+
},
|
|
8082
|
+
{
|
|
8083
|
+
id: id("image-gallery-square-tiles"),
|
|
8084
|
+
treatment: "gallery-square-tiles",
|
|
8085
|
+
roleMap: loomRoles
|
|
8086
|
+
},
|
|
8087
|
+
{
|
|
8088
|
+
id: id("media-text-circle-beside-text"),
|
|
8089
|
+
treatment: "media-circle",
|
|
8090
|
+
roleMap: loomRoles
|
|
8091
|
+
},
|
|
8092
|
+
{
|
|
8093
|
+
id: id("hero-headline-row"),
|
|
8094
|
+
treatment: "hero-headline-row",
|
|
8095
|
+
roleMap: {
|
|
8096
|
+
...loomRoles,
|
|
8097
|
+
highlight: "deep"
|
|
8098
|
+
}
|
|
8099
|
+
},
|
|
8100
|
+
{
|
|
8101
|
+
id: id("hero-copy-over-gallery"),
|
|
8102
|
+
treatment: "hero-copy-over-gallery",
|
|
8103
|
+
roleMap: {
|
|
8104
|
+
...loomRoles,
|
|
8105
|
+
highlight: "deep"
|
|
8106
|
+
}
|
|
8107
|
+
},
|
|
8108
|
+
{
|
|
8109
|
+
id: id("hero-page-head"),
|
|
8110
|
+
treatment: "hero-page-head",
|
|
8111
|
+
roleMap: {
|
|
8112
|
+
...loomRoles,
|
|
8113
|
+
highlight: "deep"
|
|
8114
|
+
}
|
|
8115
|
+
},
|
|
8116
|
+
{
|
|
8117
|
+
id: id("card-list-accent-edged-cards"),
|
|
8118
|
+
treatment: "items-accent-edged-cards",
|
|
8119
|
+
roleMap: loomRoles
|
|
8120
|
+
},
|
|
8121
|
+
{
|
|
8122
|
+
id: id("feature-cards-open-columns"),
|
|
8123
|
+
treatment: "cards-open-columns",
|
|
8124
|
+
roleMap: loomRoles
|
|
8125
|
+
},
|
|
8126
|
+
{
|
|
8127
|
+
id: id("feature-cards-lead-support"),
|
|
8128
|
+
treatment: "cards-lead-support",
|
|
8129
|
+
roleMap: loomRoles
|
|
8130
|
+
},
|
|
8131
|
+
{
|
|
8132
|
+
id: id("feature-cards-index"),
|
|
8133
|
+
treatment: "cards-index",
|
|
8134
|
+
roleMap: loomRoles
|
|
8135
|
+
},
|
|
8136
|
+
{
|
|
8137
|
+
id: id("feature-cards-sequence"),
|
|
8138
|
+
treatment: "cards-sequence",
|
|
8139
|
+
roleMap: loomRoles
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
id: id("event-calendar-ruled-rows"),
|
|
8143
|
+
treatment: "calendar-ruled-rows",
|
|
8144
|
+
roleMap: loomRoles
|
|
8145
|
+
},
|
|
8146
|
+
{
|
|
8147
|
+
id: id("event-calendar-grouped-by-day"),
|
|
8148
|
+
treatment: "calendar-grouped-by-day",
|
|
8149
|
+
roleMap: loomRoles
|
|
8150
|
+
},
|
|
8151
|
+
{
|
|
8152
|
+
id: id("event-calendar-next-three"),
|
|
8153
|
+
treatment: "calendar-next-three",
|
|
8154
|
+
roleMap: loomRoles
|
|
8155
|
+
},
|
|
8156
|
+
{
|
|
8157
|
+
id: id("events-spotlight"),
|
|
8158
|
+
treatment: "events-spotlight",
|
|
8159
|
+
roleMap: loomRoles
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
id: id("events-recurring-week"),
|
|
8163
|
+
treatment: "events-recurring-week",
|
|
8164
|
+
roleMap: loomRoles
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
id: id("hero-framed-title"),
|
|
8168
|
+
treatment: "hero-framed-title",
|
|
8169
|
+
roleMap: {
|
|
8170
|
+
...loomRoles,
|
|
8171
|
+
highlight: "deep"
|
|
8172
|
+
}
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
id: id("testimonials-quote-cards"),
|
|
8176
|
+
treatment: "quote-cards",
|
|
8177
|
+
roleMap: loomRoles
|
|
8178
|
+
},
|
|
8179
|
+
{
|
|
8180
|
+
id: id("testimonials-quote-columns"),
|
|
8181
|
+
treatment: "quote-columns",
|
|
8182
|
+
roleMap: loomRoles
|
|
8183
|
+
},
|
|
8184
|
+
{
|
|
8185
|
+
id: id("testimonials-one-quote"),
|
|
8186
|
+
treatment: "quote-single",
|
|
8187
|
+
roleMap: loomRoles
|
|
8188
|
+
},
|
|
8189
|
+
{
|
|
8190
|
+
id: id("testimonials-one-at-a-time"),
|
|
8191
|
+
treatment: "quote-one-at-a-time",
|
|
8192
|
+
roleMap: loomRoles
|
|
8193
|
+
},
|
|
8194
|
+
{
|
|
8195
|
+
id: id("testimonials-scroll-row"),
|
|
8196
|
+
treatment: "quote-scroll-row",
|
|
8197
|
+
roleMap: loomRoles
|
|
8198
|
+
},
|
|
8199
|
+
{
|
|
8200
|
+
id: id("event-calendar-month-day"),
|
|
8201
|
+
treatment: "calendar-month-day",
|
|
8202
|
+
roleMap: loomRoles
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
id: id("intro-photo-beside-text"),
|
|
8206
|
+
treatment: "intro-photo-beside-text",
|
|
8207
|
+
roleMap: loomRoles
|
|
8208
|
+
},
|
|
8209
|
+
{
|
|
8210
|
+
id: id("newsletter-signup-one-row"),
|
|
8211
|
+
treatment: "signup-one-row",
|
|
8212
|
+
roleMap: loomRoles
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
id: id("card-list-wide-slides"),
|
|
8216
|
+
treatment: "items-wide-slides",
|
|
8217
|
+
roleMap: loomRoles
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
id: id("card-list-scroll-row"),
|
|
8221
|
+
treatment: "items-scroll-row",
|
|
8222
|
+
roleMap: loomRoles
|
|
8223
|
+
},
|
|
8224
|
+
{
|
|
8225
|
+
id: id("body-text-title-beside"),
|
|
8226
|
+
treatment: "body-beside",
|
|
8227
|
+
roleMap: loomRoles
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
id: id("body-text-large-opening"),
|
|
8231
|
+
treatment: "body-opening",
|
|
8232
|
+
roleMap: loomRoles
|
|
8233
|
+
},
|
|
8234
|
+
{
|
|
8235
|
+
id: id("faq-title-beside-questions"),
|
|
8236
|
+
treatment: "faq-beside",
|
|
8237
|
+
roleMap: loomRoles
|
|
8238
|
+
},
|
|
8239
|
+
{
|
|
8240
|
+
id: id("faq-questions-two-columns"),
|
|
8241
|
+
treatment: "faq-columns",
|
|
8242
|
+
roleMap: loomRoles
|
|
8243
|
+
},
|
|
8244
|
+
{
|
|
8245
|
+
id: id("faq-all-answers-showing"),
|
|
8246
|
+
treatment: "faq-open",
|
|
8247
|
+
roleMap: loomRoles
|
|
8248
|
+
},
|
|
8249
|
+
{
|
|
8250
|
+
id: id("image-gallery-lead-photo"),
|
|
8251
|
+
treatment: "gallery-lead-photo",
|
|
8252
|
+
roleMap: loomRoles
|
|
8253
|
+
},
|
|
8254
|
+
{
|
|
8255
|
+
id: id("cta-title-beside-buttons"),
|
|
8256
|
+
treatment: "cta-title-beside-buttons",
|
|
8257
|
+
roleMap: loomRoles
|
|
8258
|
+
},
|
|
8259
|
+
{
|
|
8260
|
+
id: id("cta-figure-beside-offer"),
|
|
8261
|
+
treatment: "cta-figure-beside-offer",
|
|
8262
|
+
roleMap: loomRoles
|
|
8263
|
+
},
|
|
8264
|
+
{
|
|
8265
|
+
id: id("location-map-above-details"),
|
|
8266
|
+
treatment: "map-above-details",
|
|
8267
|
+
roleMap: loomRoles
|
|
8268
|
+
},
|
|
8269
|
+
{
|
|
8270
|
+
id: id("location-map-address-over-wide-map"),
|
|
8271
|
+
treatment: "map-address-over-wide-map",
|
|
8272
|
+
roleMap: loomRoles
|
|
8273
|
+
},
|
|
8274
|
+
{
|
|
8275
|
+
id: id("location-map-entrance-photo"),
|
|
8276
|
+
treatment: "map-entrance-photo",
|
|
8277
|
+
roleMap: loomRoles
|
|
8278
|
+
},
|
|
8279
|
+
{
|
|
8280
|
+
id: id("team-members-portrait-bio"),
|
|
8281
|
+
treatment: "team-portrait-bio",
|
|
8282
|
+
roleMap: loomRoles
|
|
7161
8283
|
},
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
|
|
7167
|
-
componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
|
|
7168
|
-
...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
|
|
7169
|
-
looks: input.looks ?? {
|
|
7170
|
-
kind: "legacy",
|
|
7171
|
-
recommendedAppearancePresetIds
|
|
8284
|
+
{
|
|
8285
|
+
id: id("team-members-ruled-names"),
|
|
8286
|
+
treatment: "team-ruled-names",
|
|
8287
|
+
roleMap: loomRoles
|
|
7172
8288
|
},
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
}
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
} : selection;
|
|
7192
|
-
}
|
|
7193
|
-
function paletteRecommendation(authoringKey, note) {
|
|
7194
|
-
const valueKey = requireCuratedPaletteValueKey(asCuratedPaletteAuthoringKey(authoringKey));
|
|
7195
|
-
return note ? {
|
|
7196
|
-
id: valueKey,
|
|
7197
|
-
note
|
|
7198
|
-
} : { id: valueKey };
|
|
7199
|
-
}
|
|
7200
|
-
/**
|
|
7201
|
-
* V1 generated site styles are curated product presets, not AI-authored design
|
|
7202
|
-
* systems. Generators choose one of these bounded entries, then downstream
|
|
7203
|
-
* resolve/compile steps translate it to Theme and block runtime fields.
|
|
7204
|
-
*/
|
|
7205
|
-
const id = asAppearancePresetId;
|
|
7206
|
-
const quieterOrStandard = { titleSize: ["quiet", "auto"] };
|
|
7207
|
-
/** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
|
|
8289
|
+
{
|
|
8290
|
+
id: id("shop-price-cards"),
|
|
8291
|
+
treatment: "shop-price-cards",
|
|
8292
|
+
roleMap: loomRoles
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
id: id("shop-ruled-prices"),
|
|
8296
|
+
treatment: "shop-ruled-prices",
|
|
8297
|
+
roleMap: loomRoles
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
id: id("card-list-photos-on-top"),
|
|
8301
|
+
treatment: "items-photos-on-top",
|
|
8302
|
+
roleMap: loomRoles
|
|
8303
|
+
}
|
|
8304
|
+
]
|
|
8305
|
+
};
|
|
8306
|
+
/** Folio: quiet sheets and band-coloured statements. */
|
|
7208
8307
|
const folioRoles = {
|
|
7209
8308
|
card: "sheet",
|
|
7210
8309
|
statement: {
|
|
@@ -7297,6 +8396,16 @@ const folioLooks = {
|
|
|
7297
8396
|
knobValues: quieterOrStandard,
|
|
7298
8397
|
roleMap: folioRoles
|
|
7299
8398
|
},
|
|
8399
|
+
{
|
|
8400
|
+
id: id("hero-short-photo-banner"),
|
|
8401
|
+
treatment: "hero-short-panel",
|
|
8402
|
+
roleMap: folioRoles
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
id: id("hero-text-over-photo"),
|
|
8406
|
+
treatment: "hero-photo-overlay",
|
|
8407
|
+
roleMap: folioRoles
|
|
8408
|
+
},
|
|
7300
8409
|
{
|
|
7301
8410
|
id: id("hero-page-head"),
|
|
7302
8411
|
treatment: "hero-ruled",
|
|
@@ -7347,10 +8456,7 @@ const folioLooks = {
|
|
|
7347
8456
|
id: id("event-calendar-ruled-rows"),
|
|
7348
8457
|
treatment: "calendar-card",
|
|
7349
8458
|
itemRoles: { container: "card" },
|
|
7350
|
-
|
|
7351
|
-
source: "text",
|
|
7352
|
-
opacity: 8
|
|
7353
|
-
} },
|
|
8459
|
+
knobValues: { actionStyle: ["button"] },
|
|
7354
8460
|
roleMap: folioRoles
|
|
7355
8461
|
},
|
|
7356
8462
|
{
|
|
@@ -7361,6 +8467,7 @@ const folioLooks = {
|
|
|
7361
8467
|
{
|
|
7362
8468
|
id: id("event-calendar-next-three"),
|
|
7363
8469
|
treatment: "calendar-compact",
|
|
8470
|
+
knobValues: { actionStyle: ["button"] },
|
|
7364
8471
|
roleMap: folioRoles
|
|
7365
8472
|
},
|
|
7366
8473
|
{
|
|
@@ -7644,6 +8751,11 @@ const fulcrumLooks = {
|
|
|
7644
8751
|
knobValues: quieterOrStandard,
|
|
7645
8752
|
roleMap: fulcrumRoles
|
|
7646
8753
|
},
|
|
8754
|
+
{
|
|
8755
|
+
id: id("hero-short-photo-banner"),
|
|
8756
|
+
treatment: "short-panel",
|
|
8757
|
+
roleMap: fulcrumRoles
|
|
8758
|
+
},
|
|
7647
8759
|
{
|
|
7648
8760
|
id: id("hero-page-head"),
|
|
7649
8761
|
treatment: "ruled",
|
|
@@ -7894,6 +9006,14 @@ const posterRoles = {
|
|
|
7894
9006
|
statement: "brand",
|
|
7895
9007
|
highlight: "pop"
|
|
7896
9008
|
};
|
|
9009
|
+
/** The classic hero Looks: the copy block is a sheet, and joins a brand ground it would vanish on. */
|
|
9010
|
+
const posterPhotoGroundRoles = {
|
|
9011
|
+
...posterRoles,
|
|
9012
|
+
card: {
|
|
9013
|
+
default: "sheet",
|
|
9014
|
+
brand: "section"
|
|
9015
|
+
}
|
|
9016
|
+
};
|
|
7897
9017
|
const posterOffers = [
|
|
7898
9018
|
{
|
|
7899
9019
|
id: id("event-details-panel"),
|
|
@@ -7923,13 +9043,12 @@ const posterOffers = [
|
|
|
7923
9043
|
{
|
|
7924
9044
|
id: id("hero-photo-behind-text"),
|
|
7925
9045
|
treatment: "band",
|
|
7926
|
-
roleMap:
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
}
|
|
9046
|
+
roleMap: posterPhotoGroundRoles
|
|
9047
|
+
},
|
|
9048
|
+
{
|
|
9049
|
+
id: id("hero-short-photo-banner"),
|
|
9050
|
+
treatment: "short-band",
|
|
9051
|
+
roleMap: posterPhotoGroundRoles
|
|
7933
9052
|
},
|
|
7934
9053
|
{
|
|
7935
9054
|
id: id("hero-page-head"),
|
|
@@ -8410,6 +9529,11 @@ const lanternLooks = {
|
|
|
8410
9529
|
knobValues: quieterOrStandard,
|
|
8411
9530
|
roleMap: lanternVeilRoles
|
|
8412
9531
|
},
|
|
9532
|
+
{
|
|
9533
|
+
id: id("hero-short-photo-banner"),
|
|
9534
|
+
treatment: "short-veil",
|
|
9535
|
+
roleMap: lanternVeilRoles
|
|
9536
|
+
},
|
|
8413
9537
|
{
|
|
8414
9538
|
id: id("hero-page-head"),
|
|
8415
9539
|
treatment: "centred",
|
|
@@ -9746,12 +10870,15 @@ const curatedSiteStyles = [
|
|
|
9746
10870
|
accordions: editorialDividedAccordionSystem,
|
|
9747
10871
|
testimonialQuote: serifDisplayQuote
|
|
9748
10872
|
},
|
|
9749
|
-
headerStyleRecipes: { "
|
|
10873
|
+
headerStyleRecipes: { "soft-shell": {
|
|
9750
10874
|
tone: "neutral",
|
|
10875
|
+
dropdown: neutralHeaderDropdown,
|
|
9751
10876
|
background: { kind: "transparent" },
|
|
9752
10877
|
nav: {
|
|
9753
|
-
kind: "
|
|
9754
|
-
|
|
10878
|
+
kind: "pill",
|
|
10879
|
+
backing: "capsule",
|
|
10880
|
+
hoverColorToken: "primary",
|
|
10881
|
+
hoverAlpha: 8
|
|
9755
10882
|
},
|
|
9756
10883
|
navWeight: "medium",
|
|
9757
10884
|
navLinkWeight: "medium",
|
|
@@ -9815,6 +10942,104 @@ const curatedSiteStyles = [
|
|
|
9815
10942
|
paletteRecommendation("soft-natural-sage"),
|
|
9816
10943
|
paletteRecommendation("soft-natural-stone")
|
|
9817
10944
|
]
|
|
10945
|
+
}),
|
|
10946
|
+
defineCuratedSiteStyle({
|
|
10947
|
+
id: "site-style:loom",
|
|
10948
|
+
name: "Loom",
|
|
10949
|
+
offering: { kind: "lab" },
|
|
10950
|
+
description: "Stitched seams, sewn-label buttons and one strong patch of colour on each page. Warm and handmade, for studios and makers who teach.",
|
|
10951
|
+
generationBrief: "Use warm serif headings, clear working copy, flat grounds and one strong patch of colour. Keep workshop details and booking actions easy to find.",
|
|
10952
|
+
headingDecoration: noHeadingDecoration,
|
|
10953
|
+
tokenRecipes: {
|
|
10954
|
+
palette: "warm-neutral",
|
|
10955
|
+
contrast: "strong",
|
|
10956
|
+
radius: "soft",
|
|
10957
|
+
shadow: "none",
|
|
10958
|
+
typography: "classic-serif",
|
|
10959
|
+
spacing: "airy",
|
|
10960
|
+
motion: "subtle"
|
|
10961
|
+
},
|
|
10962
|
+
compositionBudget: accentLedQuietBudget,
|
|
10963
|
+
typography: loomTypography,
|
|
10964
|
+
heroTypography: groundedSerifHeroTypography,
|
|
10965
|
+
looks: loomLooks,
|
|
10966
|
+
contentTemplateDefaults: { event: "event-header" },
|
|
10967
|
+
themeOverrides: {
|
|
10968
|
+
accordions: editorialDividedAccordionSystem,
|
|
10969
|
+
testimonialQuote: serifDisplayQuote
|
|
10970
|
+
},
|
|
10971
|
+
headerStyleRecipes: { "serif-line": {
|
|
10972
|
+
tone: "neutral",
|
|
10973
|
+
dropdown: neutralHeaderDropdown,
|
|
10974
|
+
background: {
|
|
10975
|
+
kind: "token",
|
|
10976
|
+
token: "background"
|
|
10977
|
+
},
|
|
10978
|
+
nav: {
|
|
10979
|
+
kind: "underline",
|
|
10980
|
+
hover: "underline",
|
|
10981
|
+
underlineColorToken: "accent"
|
|
10982
|
+
},
|
|
10983
|
+
navWeight: "semibold",
|
|
10984
|
+
navLinkWeight: "semibold",
|
|
10985
|
+
navTypography: "plain",
|
|
10986
|
+
border: "bottom",
|
|
10987
|
+
shadow: { kind: "explicit-none" },
|
|
10988
|
+
frame: { kind: "none" },
|
|
10989
|
+
logo: {
|
|
10990
|
+
fontFamily: "heading",
|
|
10991
|
+
letterSpacing: "normal",
|
|
10992
|
+
gradient: false
|
|
10993
|
+
},
|
|
10994
|
+
cta: { treatment: "primary" }
|
|
10995
|
+
} },
|
|
10996
|
+
footerLookRecipes: { "footer-links-row": {
|
|
10997
|
+
arrangement: "simple",
|
|
10998
|
+
ground: {
|
|
10999
|
+
kind: "style-surface",
|
|
11000
|
+
surface: "deep"
|
|
11001
|
+
},
|
|
11002
|
+
nav: {
|
|
11003
|
+
weight: "regular",
|
|
11004
|
+
colorToken: "primaryForeground",
|
|
11005
|
+
hoverColorToken: "primaryForeground",
|
|
11006
|
+
typography: "body"
|
|
11007
|
+
},
|
|
11008
|
+
legal: {
|
|
11009
|
+
kind: "separate",
|
|
11010
|
+
bar: {
|
|
11011
|
+
fullBleed: false,
|
|
11012
|
+
background: {
|
|
11013
|
+
kind: "style-surface",
|
|
11014
|
+
surface: "deep"
|
|
11015
|
+
},
|
|
11016
|
+
textColor: "primaryForeground",
|
|
11017
|
+
textAlign: "left",
|
|
11018
|
+
paddingY: "compact",
|
|
11019
|
+
paddingX: "none",
|
|
11020
|
+
borderTop: {
|
|
11021
|
+
width: "medium",
|
|
11022
|
+
colorToken: "primaryForeground"
|
|
11023
|
+
}
|
|
11024
|
+
}
|
|
11025
|
+
},
|
|
11026
|
+
brandAlign: "start",
|
|
11027
|
+
brandLogoSize: "md"
|
|
11028
|
+
} },
|
|
11029
|
+
recommendedFooterLookIds: ["footer-links-row"],
|
|
11030
|
+
buttonStyleChoices: [
|
|
11031
|
+
buttonChoice("sewn-label"),
|
|
11032
|
+
buttonChoice("square-outline", void 0, {
|
|
11033
|
+
corners: "soft",
|
|
11034
|
+
lineWeight: "heavy"
|
|
11035
|
+
}),
|
|
11036
|
+
buttonChoice("editorial-link", void 0, { underline: "persistent-mark" })
|
|
11037
|
+
],
|
|
11038
|
+
paletteRecommendations: [
|
|
11039
|
+
paletteRecommendation("loom-hearth"),
|
|
11040
|
+
paletteRecommendation("loom-flax"),
|
|
11041
|
+
paletteRecommendation("loom-ember")
|
|
11042
|
+
]
|
|
9818
11043
|
})
|
|
9819
11044
|
];
|
|
9820
11045
|
const curatedSiteStylesById = new Map(curatedSiteStyles.map((style) => [style.id, style]));
|
|
@@ -9848,7 +11073,10 @@ function curatedStyleTemplate(input) {
|
|
|
9848
11073
|
};
|
|
9849
11074
|
}
|
|
9850
11075
|
curatedSiteStyles.forEach((style) => {
|
|
9851
|
-
if (style.looks.kind === "offers")
|
|
11076
|
+
if (style.looks.kind === "offers") {
|
|
11077
|
+
validateLookFallbacks(style.looks);
|
|
11078
|
+
validateCalendarModeOffers(style.looks);
|
|
11079
|
+
}
|
|
9852
11080
|
(/* @__PURE__ */ new Set([...Object.values(style.footerLookRecipes ?? {}), ...style.recommendedFooterLookIds.map((id) => resolveFooterLookRecipe(style, id))])).forEach((recipe) => validateFooterRecipeSurfaces(style, recipe));
|
|
9853
11081
|
});
|
|
9854
11082
|
function withTeamLooks(looks, roleMap) {
|
|
@@ -10004,9 +11232,10 @@ function resolveModeArrangement(input) {
|
|
|
10004
11232
|
}
|
|
10005
11233
|
/** Mode is content-owned and independent of the selected Look. */
|
|
10006
11234
|
function readStoredMode(manifest, content) {
|
|
10007
|
-
|
|
11235
|
+
const meaning = manifest.variantMeaning;
|
|
11236
|
+
if (meaning.kind !== "mode") return null;
|
|
10008
11237
|
const stored = content.variant;
|
|
10009
|
-
return
|
|
11238
|
+
return isArrangementMode(stored) && meaning.modes.includes(stored) ? stored : meaning.defaultMode;
|
|
10010
11239
|
}
|
|
10011
11240
|
function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
|
|
10012
11241
|
if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
|
|
@@ -10029,6 +11258,13 @@ function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArr
|
|
|
10029
11258
|
if (style.offers.some((offer) => catalogue.some((candidate) => candidate.id === offer.id && candidate.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && lookModes(candidate).includes(mode))) && !fallbackEndsAtOffer(entry, mode, style, catalogue, /* @__PURE__ */ new Set())) throw new Error(`Invalid Look fallback for ${style.skin}: ${entry.id} (${mode ?? "default"})`);
|
|
10030
11259
|
}));
|
|
10031
11260
|
}
|
|
11261
|
+
/** Every admitted calendar mode needs an automatic Look before a style can load. */
|
|
11262
|
+
function validateCalendarModeOffers(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
11263
|
+
const calendarLooks = catalogue.filter((look) => look.blockKinds.includes("block.event-calendar"));
|
|
11264
|
+
arrangementModes.forEach((mode) => {
|
|
11265
|
+
if (!calendarLooks.some((look) => lookModes(look).includes(mode) && style.offers.some((offer) => offer.id === look.id))) throw new Error(`Missing automatic calendar Look for ${style.skin}: ${mode}`);
|
|
11266
|
+
});
|
|
11267
|
+
}
|
|
10032
11268
|
function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
|
|
10033
11269
|
if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
|
|
10034
11270
|
if (style.offers.some((offer) => offer.id === entry.id)) return true;
|
|
@@ -10059,7 +11295,9 @@ const arrangementLookHooks = [
|
|
|
10059
11295
|
"data-photo-count",
|
|
10060
11296
|
"data-slot",
|
|
10061
11297
|
"data-control",
|
|
10062
|
-
"data-placeholder-field"
|
|
11298
|
+
"data-placeholder-field",
|
|
11299
|
+
"data-one-person",
|
|
11300
|
+
"data-team-about"
|
|
10063
11301
|
];
|
|
10064
11302
|
appearancePresets.filter(isArrangementAppearancePreset);
|
|
10065
11303
|
/** Closed structural hooks shared by block arrangements and bounded skins. */
|
|
@@ -10191,22 +11429,6 @@ function resolveLookSlotSurfaces(look, roles, surfaces) {
|
|
|
10191
11429
|
return Object.fromEntries(entries);
|
|
10192
11430
|
}
|
|
10193
11431
|
//#endregion
|
|
10194
|
-
//#region ../theme-core/src/site-styles/resolver.ts
|
|
10195
|
-
const blockDesignFallback = {
|
|
10196
|
-
sectionSurface: "base",
|
|
10197
|
-
contentFrame: plainFrame,
|
|
10198
|
-
sectionHeight: "default",
|
|
10199
|
-
heroLegibility: "none",
|
|
10200
|
-
imageSurfaceTreatment: { kind: "none" },
|
|
10201
|
-
imageSurfaceMotion: "static",
|
|
10202
|
-
tileTreatment: "default",
|
|
10203
|
-
eventListTreatment: "plain",
|
|
10204
|
-
eyebrowTreatment: "plain",
|
|
10205
|
-
accordionIconTreatment: null,
|
|
10206
|
-
composition: null
|
|
10207
|
-
};
|
|
10208
|
-
blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
|
|
10209
|
-
//#endregion
|
|
10210
11432
|
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
10211
11433
|
const headerNavTypographyPreferenceValues = [
|
|
10212
11434
|
"inherit",
|
|
@@ -10251,136 +11473,6 @@ function readHeaderNavFontSizePreference(value) {
|
|
|
10251
11473
|
return value === "sm" || value === "base" || value === "lg" || value === "xl" ? value : "inherit";
|
|
10252
11474
|
}
|
|
10253
11475
|
//#endregion
|
|
10254
|
-
//#region ../theme-core/src/site-styles/headerBrandPresentation.ts
|
|
10255
|
-
/**
|
|
10256
|
-
* Whether the header wears a brand presentation at all (#1318 Phase 4c).
|
|
10257
|
-
*
|
|
10258
|
-
* `applyHeaderBrandPresentation` is unconditional today: given a logo context
|
|
10259
|
-
* it always writes a `logo` object carrying a resolved display, size and
|
|
10260
|
-
* accommodation. That makes "this header has no brand presentation block" —
|
|
10261
|
-
* which is what several live sites persist, including one whose site *does*
|
|
10262
|
-
* have a logo asset — a state the preference record could not express, so a
|
|
10263
|
-
* recompile would silently give the site a logo treatment it has never
|
|
10264
|
-
* rendered.
|
|
10265
|
-
*
|
|
10266
|
-
* This is the third field in this phase with that shape, after the interaction
|
|
10267
|
-
* palette and the nav text size: the persisted bytes carry intent the reader
|
|
10268
|
-
* cannot say, so the recompile "corrects" it. The fix is the same one — widen
|
|
10269
|
-
* the closed vocabulary with a named member and derive it by baseline
|
|
10270
|
-
* comparison — and it is a *widening*, not a restyle: `'recommended'` is the
|
|
10271
|
-
* default and reproduces today's behaviour exactly, so no row whose bytes carry
|
|
10272
|
-
* a presentation compiles differently for `'plain'` existing.
|
|
10273
|
-
*
|
|
10274
|
-
* `'plain'` is deliberately not "preserve whatever bytes are there". It is a
|
|
10275
|
-
* constructive instruction — *write no presentation block* — so Phase 4e's
|
|
10276
|
-
* compiler, which builds the header from nothing, can produce it.
|
|
10277
|
-
*/
|
|
10278
|
-
const headerBrandPresentationValues = ["recommended", "plain"];
|
|
10279
|
-
defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
|
|
10280
|
-
//#endregion
|
|
10281
|
-
//#region ../theme-core/src/site-styles/generatedSchemas.ts
|
|
10282
|
-
function uniqueNonEmpty(values) {
|
|
10283
|
-
const uniqueValues = [...new Set(values)];
|
|
10284
|
-
const firstValue = uniqueValues[0];
|
|
10285
|
-
if (!firstValue) throw new Error("Expected at least one generated schema option.");
|
|
10286
|
-
return [firstValue, ...uniqueValues.slice(1)];
|
|
10287
|
-
}
|
|
10288
|
-
const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
|
|
10289
|
-
const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
|
|
10290
|
-
const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
|
|
10291
|
-
const generatedPanelFrameSchema = z.object({
|
|
10292
|
-
kind: z.literal("panel"),
|
|
10293
|
-
treatment: z.enum(generatedPanelTreatments)
|
|
10294
|
-
}).strict();
|
|
10295
|
-
const generatedFlushPanelFrameSchema = z.object({
|
|
10296
|
-
kind: z.literal("flush-panel"),
|
|
10297
|
-
treatment: z.enum(generatedFlushTreatments),
|
|
10298
|
-
bleed: z.enum(generatedFlushBleeds)
|
|
10299
|
-
}).strict();
|
|
10300
|
-
const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
|
|
10301
|
-
z.object({ kind: z.literal("plain") }).strict(),
|
|
10302
|
-
generatedPanelFrameSchema,
|
|
10303
|
-
generatedFlushPanelFrameSchema
|
|
10304
|
-
]);
|
|
10305
|
-
const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
|
|
10306
|
-
function generatedChoiceSchema(valueSchema) {
|
|
10307
|
-
return z.discriminatedUnion("kind", [z.object({
|
|
10308
|
-
source: z.literal("generated"),
|
|
10309
|
-
kind: z.literal("auto")
|
|
10310
|
-
}).strict(), z.object({
|
|
10311
|
-
source: z.literal("generated"),
|
|
10312
|
-
kind: z.literal("explicit"),
|
|
10313
|
-
value: valueSchema
|
|
10314
|
-
}).strict()]);
|
|
10315
|
-
}
|
|
10316
|
-
const generatedBlockDesignIntentSchema = z.object({
|
|
10317
|
-
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
10318
|
-
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
10319
|
-
cardRole: generatedChoiceSchema(cardRoleWithLegacyAliasSchema),
|
|
10320
|
-
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
10321
|
-
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
10322
|
-
}).strict();
|
|
10323
|
-
const generatedMediaCompositionIntentSchema = z.enum([
|
|
10324
|
-
"none",
|
|
10325
|
-
"supporting",
|
|
10326
|
-
"dominant"
|
|
10327
|
-
]);
|
|
10328
|
-
const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
|
|
10329
|
-
const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
|
|
10330
|
-
const generatedBlockMediaIntentSchema = z.object({
|
|
10331
|
-
media: generatedMediaCompositionIntentSchema,
|
|
10332
|
-
decorative: generatedDecorativeCompositionIntentSchema,
|
|
10333
|
-
heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
|
|
10334
|
-
}).strict();
|
|
10335
|
-
const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
|
|
10336
|
-
const generatedPageDesignBlockIntentSchema = z.object({
|
|
10337
|
-
blockId: z.string().min(1),
|
|
10338
|
-
blockKind: z.string().min(1),
|
|
10339
|
-
purpose: z.string().min(1),
|
|
10340
|
-
design: generatedBlockDesignIntentSchema,
|
|
10341
|
-
mediaIntent: generatedBlockMediaIntentSchema,
|
|
10342
|
-
boundaryIntent: generatedBoundaryIntentSchema
|
|
10343
|
-
}).strict();
|
|
10344
|
-
z.object({
|
|
10345
|
-
siteStyleId: generatedSiteStyleIdSchema,
|
|
10346
|
-
blocks: z.array(generatedPageDesignBlockIntentSchema)
|
|
10347
|
-
}).strict();
|
|
10348
|
-
//#endregion
|
|
10349
|
-
//#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
|
|
10350
|
-
const logoTextIntentSchema = z.object({
|
|
10351
|
-
mobileMaxWidth: z.enum([
|
|
10352
|
-
"xs",
|
|
10353
|
-
"sm",
|
|
10354
|
-
"md"
|
|
10355
|
-
]).optional(),
|
|
10356
|
-
mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
10357
|
-
hideOnShrink: z.boolean().optional()
|
|
10358
|
-
}).strict();
|
|
10359
|
-
const structureSchema = z.object({
|
|
10360
|
-
positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
|
|
10361
|
-
shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
|
|
10362
|
-
logoText: z.union([
|
|
10363
|
-
z.literal("inherit"),
|
|
10364
|
-
z.literal("none"),
|
|
10365
|
-
logoTextIntentSchema
|
|
10366
|
-
])
|
|
10367
|
-
}).strict();
|
|
10368
|
-
const headerPreferencesShape = {
|
|
10369
|
-
brandPresentation: z.enum(headerBrandPresentationValues),
|
|
10370
|
-
brandDisplay: z.enum(brandDisplayModeValues),
|
|
10371
|
-
logoSize: z.enum(logoSizePolicyValues),
|
|
10372
|
-
navFontRole: z.enum(headerNavTypographyPreferenceValues),
|
|
10373
|
-
navTextSize: z.enum(headerNavFontSizePreferenceValues),
|
|
10374
|
-
interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
|
|
10375
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
10376
|
-
structure: structureSchema
|
|
10377
|
-
};
|
|
10378
|
-
z.object(headerPreferencesShape).strict();
|
|
10379
|
-
z.object(headerPreferencesShape).omit({
|
|
10380
|
-
brandPresentation: true,
|
|
10381
|
-
structure: true
|
|
10382
|
-
}).strict();
|
|
10383
|
-
//#endregion
|
|
10384
11476
|
//#region ../theme-core/src/header/legacyNavLinkStyle.ts
|
|
10385
11477
|
function buildLegacyHeaderNavLinkStyle(header, contrastTreatment, navTextSize) {
|
|
10386
11478
|
const navStyle = header.navStyle ?? "minimal";
|
|
@@ -10473,329 +11565,4 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
|
|
|
10473
11565
|
};
|
|
10474
11566
|
}
|
|
10475
11567
|
//#endregion
|
|
10476
|
-
|
|
10477
|
-
const nonEmptyStringSchema = z.string().min(1);
|
|
10478
|
-
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
10479
|
-
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
10480
|
-
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
10481
|
-
const designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
|
|
10482
|
-
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
10483
|
-
const publishedPageBlockSnapshotSchema = z.object({
|
|
10484
|
-
kind: z.literal("published-block-content"),
|
|
10485
|
-
blockId: designBlockIdSchema,
|
|
10486
|
-
contentVersionId: blockContentVersionIdSchema,
|
|
10487
|
-
identifier: z.string().nullable(),
|
|
10488
|
-
blockKind: nonEmptyStringSchema,
|
|
10489
|
-
orderIndex: blockOrderIndexSchema
|
|
10490
|
-
}).strict();
|
|
10491
|
-
const draftPageBlockSnapshotSchema = z.object({
|
|
10492
|
-
kind: z.literal("draft-block-content"),
|
|
10493
|
-
blockId: designBlockIdSchema,
|
|
10494
|
-
contentVersionId: blockContentVersionIdSchema.nullable(),
|
|
10495
|
-
identifier: z.string().nullable(),
|
|
10496
|
-
blockKind: nonEmptyStringSchema,
|
|
10497
|
-
orderIndex: blockOrderIndexSchema
|
|
10498
|
-
}).strict();
|
|
10499
|
-
const missingPageBlockSnapshotSchema = z.object({
|
|
10500
|
-
kind: z.literal("missing-block-content"),
|
|
10501
|
-
blockId: designBlockIdSchema,
|
|
10502
|
-
identifier: z.string().nullable(),
|
|
10503
|
-
blockKind: nonEmptyStringSchema,
|
|
10504
|
-
orderIndex: blockOrderIndexSchema,
|
|
10505
|
-
reason: z.enum([
|
|
10506
|
-
"new-block",
|
|
10507
|
-
"deleted-content-version",
|
|
10508
|
-
"unpublished-block"
|
|
10509
|
-
])
|
|
10510
|
-
}).strict();
|
|
10511
|
-
const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
|
|
10512
|
-
publishedPageBlockSnapshotSchema,
|
|
10513
|
-
draftPageBlockSnapshotSchema,
|
|
10514
|
-
missingPageBlockSnapshotSchema
|
|
10515
|
-
]);
|
|
10516
|
-
const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
10517
|
-
const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
10518
|
-
const publishedPageDesignVersionDataV1Schema = z.object({
|
|
10519
|
-
schemaVersion: z.literal(1),
|
|
10520
|
-
stage: z.literal("published"),
|
|
10521
|
-
pageId: designPageIdSchema,
|
|
10522
|
-
blockSequence: publishedPageBlockSequenceSchema
|
|
10523
|
-
}).strict();
|
|
10524
|
-
const draftPageDesignVersionDataV1Schema = z.object({
|
|
10525
|
-
schemaVersion: z.literal(1),
|
|
10526
|
-
stage: z.literal("draft"),
|
|
10527
|
-
pageId: designPageIdSchema,
|
|
10528
|
-
blockSequence: draftPageBlockSequenceSchema
|
|
10529
|
-
}).strict();
|
|
10530
|
-
z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
|
|
10531
|
-
z.discriminatedUnion("kind", [
|
|
10532
|
-
z.object({
|
|
10533
|
-
kind: z.literal("block"),
|
|
10534
|
-
blockId: designBlockIdSchema
|
|
10535
|
-
}).strict(),
|
|
10536
|
-
z.object({
|
|
10537
|
-
kind: z.literal("entry"),
|
|
10538
|
-
entryId: designEntryIdSchema
|
|
10539
|
-
}).strict(),
|
|
10540
|
-
z.object({
|
|
10541
|
-
kind: z.literal("page"),
|
|
10542
|
-
pageId: designPageIdSchema
|
|
10543
|
-
}).strict()
|
|
10544
|
-
]);
|
|
10545
|
-
function validateBlockSequence(snapshots, ctx) {
|
|
10546
|
-
for (const issue of collectBlockSequenceIssues(snapshots)) ctx.addIssue(issue);
|
|
10547
|
-
}
|
|
10548
|
-
function collectBlockSequenceIssues(snapshots) {
|
|
10549
|
-
const issues = [];
|
|
10550
|
-
const seenBlockIds = /* @__PURE__ */ new Set();
|
|
10551
|
-
const seenOrderIndexes = /* @__PURE__ */ new Set();
|
|
10552
|
-
let previousOrderIndex = null;
|
|
10553
|
-
snapshots.forEach((snapshot, index) => {
|
|
10554
|
-
if (seenBlockIds.has(snapshot.blockId)) issues.push({
|
|
10555
|
-
code: z.ZodIssueCode.custom,
|
|
10556
|
-
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
10557
|
-
path: [index, "blockId"]
|
|
10558
|
-
});
|
|
10559
|
-
seenBlockIds.add(snapshot.blockId);
|
|
10560
|
-
const orderIndex = snapshot.orderIndex;
|
|
10561
|
-
if (seenOrderIndexes.has(orderIndex)) issues.push({
|
|
10562
|
-
code: z.ZodIssueCode.custom,
|
|
10563
|
-
message: `Duplicate orderIndex in page design blockSequence: ${String(orderIndex)}`,
|
|
10564
|
-
path: [index, "orderIndex"]
|
|
10565
|
-
});
|
|
10566
|
-
seenOrderIndexes.add(orderIndex);
|
|
10567
|
-
if (previousOrderIndex !== null && orderIndex <= previousOrderIndex) issues.push({
|
|
10568
|
-
code: z.ZodIssueCode.custom,
|
|
10569
|
-
message: `Expected orderIndex greater than ${String(previousOrderIndex)} for blockSequence position ${String(index)}; received ${String(orderIndex)}.`,
|
|
10570
|
-
path: [index, "orderIndex"]
|
|
10571
|
-
});
|
|
10572
|
-
previousOrderIndex = orderIndex;
|
|
10573
|
-
});
|
|
10574
|
-
return issues;
|
|
10575
|
-
}
|
|
10576
|
-
//#endregion
|
|
10577
|
-
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
10578
|
-
const themeTokenRecipeOptions = {
|
|
10579
|
-
palette: [
|
|
10580
|
-
"brand-led",
|
|
10581
|
-
"warm-neutral",
|
|
10582
|
-
"high-contrast",
|
|
10583
|
-
"soft-natural"
|
|
10584
|
-
],
|
|
10585
|
-
contrast: [
|
|
10586
|
-
"standard",
|
|
10587
|
-
"strong",
|
|
10588
|
-
"maximum"
|
|
10589
|
-
],
|
|
10590
|
-
radius: [
|
|
10591
|
-
"square",
|
|
10592
|
-
"soft",
|
|
10593
|
-
"rounded",
|
|
10594
|
-
"pill"
|
|
10595
|
-
],
|
|
10596
|
-
shadow: [
|
|
10597
|
-
"none",
|
|
10598
|
-
"subtle",
|
|
10599
|
-
"layered"
|
|
10600
|
-
],
|
|
10601
|
-
typography: [
|
|
10602
|
-
"serif-editorial",
|
|
10603
|
-
"clean-sans",
|
|
10604
|
-
"classic-serif",
|
|
10605
|
-
"friendly-sans"
|
|
10606
|
-
],
|
|
10607
|
-
spacing: [
|
|
10608
|
-
"compact",
|
|
10609
|
-
"regular",
|
|
10610
|
-
"airy"
|
|
10611
|
-
],
|
|
10612
|
-
motion: [
|
|
10613
|
-
"none",
|
|
10614
|
-
"subtle",
|
|
10615
|
-
"expressive"
|
|
10616
|
-
]
|
|
10617
|
-
};
|
|
10618
|
-
z.object({
|
|
10619
|
-
palette: z.enum(themeTokenRecipeOptions.palette),
|
|
10620
|
-
contrast: z.enum(themeTokenRecipeOptions.contrast),
|
|
10621
|
-
radius: z.enum(themeTokenRecipeOptions.radius),
|
|
10622
|
-
shadow: z.enum(themeTokenRecipeOptions.shadow),
|
|
10623
|
-
typography: z.enum(themeTokenRecipeOptions.typography),
|
|
10624
|
-
spacing: z.enum(themeTokenRecipeOptions.spacing),
|
|
10625
|
-
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
10626
|
-
});
|
|
10627
|
-
z.number().int().nonnegative().brand();
|
|
10628
|
-
z.discriminatedUnion("kind", [
|
|
10629
|
-
z.object({
|
|
10630
|
-
kind: z.literal("legacy"),
|
|
10631
|
-
pauseAnnouncedAt: z.string().datetime({ offset: true }).optional()
|
|
10632
|
-
}).strict(),
|
|
10633
|
-
z.object({
|
|
10634
|
-
kind: z.literal("paused"),
|
|
10635
|
-
authority: z.enum(["legacy", "document"]),
|
|
10636
|
-
checkpointId: z.string().uuid(),
|
|
10637
|
-
pausedAt: z.string().datetime({ offset: true })
|
|
10638
|
-
}).strict(),
|
|
10639
|
-
z.object({
|
|
10640
|
-
kind: z.literal("document"),
|
|
10641
|
-
checkpointId: z.string().uuid(),
|
|
10642
|
-
activatedAt: z.string().datetime({ offset: true })
|
|
10643
|
-
}).strict()
|
|
10644
|
-
]);
|
|
10645
|
-
//#endregion
|
|
10646
|
-
//#region ../theme-core/src/site-styles/pageDesignVersionIntent.ts
|
|
10647
|
-
function taggedStyledIntent(intent) {
|
|
10648
|
-
const { siteStyleId, ...decisions } = intent;
|
|
10649
|
-
return {
|
|
10650
|
-
kind: "legacy-styled",
|
|
10651
|
-
siteStyleId,
|
|
10652
|
-
decisions
|
|
10653
|
-
};
|
|
10654
|
-
}
|
|
10655
|
-
z.union([
|
|
10656
|
-
z.nullish(z.never()).transform(() => ({ kind: "automatic" })),
|
|
10657
|
-
pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
10658
|
-
kind: "decisions",
|
|
10659
|
-
decisions
|
|
10660
|
-
})),
|
|
10661
|
-
pageDesignIntentV2Schema.transform(taggedStyledIntent),
|
|
10662
|
-
pageDesignIntentV1Schema.transform((intent) => taggedStyledIntent(normalizeLegacyPageDesignIntent(intent)))
|
|
10663
|
-
], { error: (issue) => {
|
|
10664
|
-
const value = issue.input;
|
|
10665
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 1 && value.schemaVersion !== 2 ? "Unsupported Theme V2 page design intent schemaVersion." : "Invalid Theme V2 page design intent shape.";
|
|
10666
|
-
} });
|
|
10667
|
-
//#endregion
|
|
10668
|
-
//#region ../blocks/src/system/runtime/nodes/mediaContext.ts
|
|
10669
|
-
function buildMediaAssetIndex(assets) {
|
|
10670
|
-
return buildRenderableMediaAssetIndex(assets);
|
|
10671
|
-
}
|
|
10672
|
-
function normalizeSupabaseUrl(value) {
|
|
10673
|
-
return value?.replace(/\/$/, "");
|
|
10674
|
-
}
|
|
10675
|
-
function buildResolveImageUrlContext(input) {
|
|
10676
|
-
return {
|
|
10677
|
-
supabaseUrl: normalizeSupabaseUrl(input?.supabaseUrl),
|
|
10678
|
-
siteId: input?.siteId,
|
|
10679
|
-
mediaAssetIndex: input?.mediaAssetIndex ?? buildMediaAssetIndex(input?.mediaAssets)
|
|
10680
|
-
};
|
|
10681
|
-
}
|
|
10682
|
-
/**
|
|
10683
|
-
* Server-side: AsyncLocalStorage for request isolation.
|
|
10684
|
-
* Prevents race conditions when multiple requests are processed concurrently.
|
|
10685
|
-
*
|
|
10686
|
-
* Lazy initialization to avoid issues in environments that don't support async_hooks.
|
|
10687
|
-
*/
|
|
10688
|
-
const serverStorageState = {
|
|
10689
|
-
storage: null,
|
|
10690
|
-
checked: false
|
|
10691
|
-
};
|
|
10692
|
-
function getServerStorage() {
|
|
10693
|
-
if (typeof window !== "undefined") return null;
|
|
10694
|
-
if (serverStorageState.checked) return serverStorageState.storage;
|
|
10695
|
-
serverStorageState.checked = true;
|
|
10696
|
-
try {
|
|
10697
|
-
const globalWithNonWebpackRequire = globalThis;
|
|
10698
|
-
const AsyncLocalStorage = (typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ : new Function("id", "return require(id)"))("async_hooks").AsyncLocalStorage;
|
|
10699
|
-
if (AsyncLocalStorage) {
|
|
10700
|
-
serverStorageState.storage = new AsyncLocalStorage();
|
|
10701
|
-
return serverStorageState.storage;
|
|
10702
|
-
}
|
|
10703
|
-
return null;
|
|
10704
|
-
} catch {
|
|
10705
|
-
console.warn("[blocks] AsyncLocalStorage not available - using module-level state");
|
|
10706
|
-
return null;
|
|
10707
|
-
}
|
|
10708
|
-
}
|
|
10709
|
-
/**
|
|
10710
|
-
* Client-side context storage.
|
|
10711
|
-
* Safe because browsers are single-threaded per tab.
|
|
10712
|
-
*
|
|
10713
|
-
* IMPORTANT: This must be shared across bundles.
|
|
10714
|
-
* SDK preview mode can load multiple independently-bundled entrypoints
|
|
10715
|
-
* (e.g. `@riverbankcms/sdk/rendering` + `@riverbankcms/sdk/preview-next/client`),
|
|
10716
|
-
* which can otherwise each get their own module-scoped singleton.
|
|
10717
|
-
*/
|
|
10718
|
-
const RB_MEDIA_CONTEXT_KEY = Symbol.for("riverbankcms.blocks.mediaContext");
|
|
10719
|
-
function getClientContextStore() {
|
|
10720
|
-
const g = globalThis;
|
|
10721
|
-
const existing = g[RB_MEDIA_CONTEXT_KEY];
|
|
10722
|
-
if (existing && typeof existing === "object") return existing;
|
|
10723
|
-
const next = {};
|
|
10724
|
-
g[RB_MEDIA_CONTEXT_KEY] = next;
|
|
10725
|
-
return next;
|
|
10726
|
-
}
|
|
10727
|
-
/**
|
|
10728
|
-
* Get the current media context.
|
|
10729
|
-
* Server-side: Uses AsyncLocalStorage for request isolation.
|
|
10730
|
-
* Client-side: Uses module-level state (safe in single-threaded browser).
|
|
10731
|
-
*/
|
|
10732
|
-
function getMediaContext() {
|
|
10733
|
-
const storage = getServerStorage();
|
|
10734
|
-
if (storage) return storage.getStore() ?? {};
|
|
10735
|
-
return getClientContextStore();
|
|
10736
|
-
}
|
|
10737
|
-
/**
|
|
10738
|
-
* Set the Supabase URL in the current context.
|
|
10739
|
-
* @deprecated Use runWithMediaContext instead for request isolation.
|
|
10740
|
-
*/
|
|
10741
|
-
function updateMediaContext(patch) {
|
|
10742
|
-
const storage = getServerStorage();
|
|
10743
|
-
const current = storage?.getStore();
|
|
10744
|
-
if (current) Object.assign(current, patch);
|
|
10745
|
-
else if (storage?.enterWith) storage.enterWith(patch);
|
|
10746
|
-
else Object.assign(getClientContextStore(), patch);
|
|
10747
|
-
}
|
|
10748
|
-
function setContextSupabaseUrl(url) {
|
|
10749
|
-
updateMediaContext({ supabaseUrl: normalizeSupabaseUrl(url) });
|
|
10750
|
-
}
|
|
10751
|
-
/** @deprecated Use runWithMediaContext for request isolation. */
|
|
10752
|
-
function setContextSiteId(siteId) {
|
|
10753
|
-
updateMediaContext({ siteId });
|
|
10754
|
-
}
|
|
10755
|
-
function setContextMediaAssetIndex(index) {
|
|
10756
|
-
updateMediaContext({ mediaAssetIndex: index });
|
|
10757
|
-
}
|
|
10758
|
-
function setContextResolveImageUrlContext(context) {
|
|
10759
|
-
setContextSupabaseUrl(context?.supabaseUrl);
|
|
10760
|
-
setContextSiteId(context?.siteId);
|
|
10761
|
-
setContextMediaAssetIndex(context?.mediaAssetIndex);
|
|
10762
|
-
}
|
|
10763
|
-
function getCurrentResolveImageUrlContext() {
|
|
10764
|
-
const context = getMediaContext();
|
|
10765
|
-
if (!context.supabaseUrl && !context.siteId && !context.mediaAssetIndex) return;
|
|
10766
|
-
return {
|
|
10767
|
-
supabaseUrl: context.supabaseUrl,
|
|
10768
|
-
siteId: context.siteId,
|
|
10769
|
-
mediaAssetIndex: context.mediaAssetIndex
|
|
10770
|
-
};
|
|
10771
|
-
}
|
|
10772
|
-
/**
|
|
10773
|
-
* Get the Supabase URL for constructing direct storage URLs.
|
|
10774
|
-
* Used for serving images directly from Supabase storage CDN.
|
|
10775
|
-
*
|
|
10776
|
-
* Resolution order:
|
|
10777
|
-
* 1. Context URL (set via runWithMediaContext or setContextSupabaseUrl)
|
|
10778
|
-
* 2. Environment variable NEXT_PUBLIC_SUPABASE_URL
|
|
10779
|
-
*
|
|
10780
|
-
* SDK sites receive the URL from the API, so they don't need the env var.
|
|
10781
|
-
* Dashboard and frontend apps use the env var.
|
|
10782
|
-
*/
|
|
10783
|
-
function getSupabaseUrl() {
|
|
10784
|
-
const context = getMediaContext();
|
|
10785
|
-
if (context.supabaseUrl) return context.supabaseUrl;
|
|
10786
|
-
const url = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
|
10787
|
-
if (!url) throw new Error("NEXT_PUBLIC_SUPABASE_URL is not configured. Set it to your Supabase project URL (e.g., https://xxx.supabase.co)");
|
|
10788
|
-
return url.replace(/\/$/, "");
|
|
10789
|
-
}
|
|
10790
|
-
/**
|
|
10791
|
-
* Get the site ID for constructing storage paths.
|
|
10792
|
-
* Required for relative path resolution.
|
|
10793
|
-
*/
|
|
10794
|
-
function getSiteId() {
|
|
10795
|
-
return getMediaContext().siteId;
|
|
10796
|
-
}
|
|
10797
|
-
function getMediaAssetIndex(context) {
|
|
10798
|
-
return context?.mediaAssetIndex ?? getMediaContext().mediaAssetIndex;
|
|
10799
|
-
}
|
|
10800
|
-
//#endregion
|
|
10801
|
-
export { footerForegroundCandidates as A, deriveSectionGround as B, deriveSiteStyleBlockPolicy as C, getGradientPreset as D, gradientToCss as E, composeBoundary as F, defineBlockDesignMetadata as G, parseCanonicalRuntimeBackground as H, sectionFactsForContent as I, cardListKnobBlocks as J, resolveEffectiveKnobs as K, boundaryRuntimeMetricsForDecorativeTransition as L, generateNavLinkCSS as M, headerRootPaint as N, parseGradientPresetId as O, boundaryLayout as P, anglePolygonCss as R, resolvePublishedLook as S, compiledRuntimeStyleFieldNames as T, resolveSectionBackground as U, heroPhotoPaintsGround as V, sectionForegroundBackground as W, resolveLookSlotSurfaces as _, getSupabaseUrl as a, resolveEffectiveArrangement as b, headerForegroundCandidates as c, readOpeningForegroundProjection as d, mergeHeaderNavTypographyPreference as f, resolveItemSurface as g, arrangementSlotNames as h, getSiteId as i, buildTextContrastShadow as j, generateFooterCss as k, headerLeafTextColor as l, arrangementLookHooks as m, getCurrentResolveImageUrlContext as n, setContextResolveImageUrlContext as o, readHeaderNavFontSizePreference as p, cardListFamilyBlocks as q, getMediaAssetIndex as r, effectiveHeaderNavLinkStyle as s, buildResolveImageUrlContext as t, transparentHeaderForegroundInput as u, arrangementManifestFromVariants as v, requireCuratedSiteStyle as w, resolveModeArrangement as x, readStoredMode as y, transitionCatalogueEntries as z };
|
|
11568
|
+
export { footerForegroundCandidates as A, transitionCatalogueEntries as B, requireCuratedSiteStyle as C, parseGradientPresetId as D, getGradientPreset as E, pageDesignDecisionsV2Schema as F, cardListFamilyBlocks as H, headerNeedsPhotoShade as I, headerRootPaint as L, generateNavLinkCSS as M, bookingPageLookIdValues as N, generatedDesignOptionCatalog as O, parseBookingPageLookId as P, boundaryRuntimeMetricsForDecorativeTransition as R, offeredSiteStyles as S, gradientToCss as T, cardListKnobBlocks as U, resolveEffectiveKnobs as V, resolveEffectiveArrangement as _, readOpeningForegroundProjection as a, deriveSiteStyleBlockPolicy as b, headerNavTypographyPreferenceValues as c, arrangementLookHooks as d, arrangementSlotNames as f, readStoredMode as g, arrangementManifestFromVariants as h, transparentHeaderForegroundInput as i, buildTextContrastShadow as j, generateFooterCss as k, mergeHeaderNavTypographyPreference as l, resolveLookSlotSurfaces as m, headerForegroundCandidates as n, defaultHeaderNavPreferences as o, resolveItemSurface as p, headerLeafTextColor as r, headerNavFontSizePreferenceValues as s, effectiveHeaderNavLinkStyle as t, readHeaderNavFontSizePreference as u, resolveModeArrangement as v, compiledRuntimeStyleFieldNames as w, curatedSiteStyleIdValues as x, resolvePublishedLook as y, anglePolygonCss as z };
|