@riverbankcms/sdk 0.161.0 → 0.162.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/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-CdQS6C7i.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-CyBaPaIq.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-BtnsA14K.d.ts} +9 -5
- package/dist/_dts/{index-BVkP8f70.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-DI2yaSPY.d.ts} +4099 -3343
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-Dbd0Sn0G.d.ts} +3300 -1691
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-BPfAAZDW.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-DWbrtKf8.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 +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/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-ZGUiHpDE.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-D02ngcUH.d.ts → types-CfNG5koF.d.ts} +2 -2
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-k4lhuCn5.mjs} +14 -21
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +10 -10
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-_aIK2ojv.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-DJBIQBOw.mjs} +1762 -254
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-BWsDgjMC.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-BFgsLqTj.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-BaXZ1-Ky.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BvjcAZpS.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/mediaContext-CNzWmoA4.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-B3RNPVrt.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-CkSUep5a.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-cZ24QwtW.mjs} +272 -68
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -7
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-DNHLlze-.mjs} +4575 -4311
- package/dist/client/{shop-RGWa43H7.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-CreQ0I7i.mjs} +38 -31
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/{mediaContext-jPeJ2PmJ.mjs → site-styles-B9HgmY07.mjs} +1329 -511
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-DCdVErTJ.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-CsysCF22.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-BpBjo9Te.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-BO2OmMO9.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +164 -1042
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-VaHvYtrA.mjs} +9 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +220 -130
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-CHKOWXxl.mjs} +608 -333
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-C0VUwEHz.mjs} +158752 -162808
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-BeR2S8oG.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +2 -2
- 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-CkrFDMrl.mjs} +394 -200
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-BuhKvYkE.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-BobW6DOz.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-CGvGr3yD.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +1127 -144
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-CCG_3mbY.mjs} +7 -4
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-jntGoMrf.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-DByQwIyW.mjs} +264 -168
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-LfgxSJYE.mjs} +31 -10
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-8A3T5v4M.mjs} +647 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-Digv02oV.mjs} +308 -36
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-BiqpDRwB.mjs} +2813 -2549
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-DrkprQPL.mjs} +81 -113
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-BmKKkkbh.mjs} +2 -2
- package/dist/server/{src-ILxc6pid.mjs → src-08GY1njw.mjs} +902 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CSd_Vusz.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +872 -41
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as NAV_LINK_BORDER_RADIUS_MAP, $t as resolveSurfaceForeground, An as expandPalette, B as cardRoleSchema, Bn as paletteColorsSchema, Ct as asDesignSystemTemplateId, Dt as assertNever, En as surfaceForegroundInputFromResolved, Et as asSiteStyleId, Fn as resolveConcreteColorHex, G as headerInteractionQuietPalette, Gn as unsafeAsOpaqueButtonColourToken, Hn as paletteValueKey, Ht as plainFrame, J as defaultButtonStyleSelectionFor, K as brandDisplayModeValues, Kn as parseThemeColorToken, Ln as featuresFromHex, Lt as isArrangementMode, Mn as gradientScrimSamples, Nn as scrimTone, On as surfaceForegroundValue, Pt as flushPanelFrame, Q as generateInteractiveChildInheritanceCSS, Rt as makeBoundaryId, St as asDesignPageId, Tt as asPageFlowPresetId, Un as paletteValueKeySchema, Ut as requireNonEmptyReadonlyArray, V as cardRoleValues, Vn as paletteModeSchema, Vt as panelFrame, W as headerInteractionPaletteValues, Wn as requirePaletteColorsFromEntries, X as generateEffectsCSS, Xt as resolveSurface, Y as buttonStyleSelectionSchema, Z as generateBaseInteractiveCSS, _t as asBlockContentVersionId, at as navLinkOwnsHoverForeground, bn as surfaceToneFromForegroundToken, bt as asDesignBlockId, cr as parseEditorSessionGeneration, et as NAV_LINK_LETTER_SPACING_MAP, ft as siteChromeBackgroundOverrideOwner, gt as asAppearancePresetId, ht as arrangementModes, it as navLinkHoverColorCandidate, kt as defineExactCatalog, mt as themeV2RuntimeStyleFieldNames, n as headerPositioningValues, nn as TokenResolver, nt as NAV_LINK_PADDING_X_MAP, ot as navLinkOwnsUnderline, q as logoSizePolicyValues, qn as themeColorShadeSteps, rt as NAV_LINK_TEXT_SIZE_MAP, sn as rgbColorValue, st as navEffectPolicy, tn as planForegroundHover, tt as NAV_LINK_PADDING_MAP, ut as runtimeBoxBackgroundSchema, vt as asBlockOrderIndex, wt as asLayoutVariantKey, xt as asDesignBoundaryId, yt as asBoundaryOptionId, zn as hexColorSchema, zt as noHeadingDecoration } from "./schema-DNHLlze-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../theme-core/src/site-styles/appearancePresetTypes.ts
|
|
5
5
|
/** Block supply is capability, never a second Look catalogue. */
|
|
@@ -77,7 +77,7 @@ function isArrangementAppearancePreset(preset) {
|
|
|
77
77
|
return preset.structure.kind === "arrangement";
|
|
78
78
|
}
|
|
79
79
|
function lookModes(look) {
|
|
80
|
-
return Object.keys(look.structure.byMode).map((mode) => mode
|
|
80
|
+
return Object.keys(look.structure.byMode).map((mode) => isArrangementMode(mode) ? mode : null);
|
|
81
81
|
}
|
|
82
82
|
function cardListKnobDefaults(block, arrangement, knobs, defaults) {
|
|
83
83
|
if (!cardListKnobBlocks.some((kind) => kind === `block.${block}`)) return {};
|
|
@@ -292,10 +292,11 @@ const id$1 = asAppearancePresetId;
|
|
|
292
292
|
const appearancePresets = [
|
|
293
293
|
defineBlockAppearancePreset({
|
|
294
294
|
structure: {
|
|
295
|
-
kind: "
|
|
295
|
+
kind: "recipe",
|
|
296
296
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
297
297
|
},
|
|
298
298
|
id: "hero-immersive-image",
|
|
299
|
+
carry: { kind: "by-layout" },
|
|
299
300
|
target: "hero",
|
|
300
301
|
label: "Photo behind centred text",
|
|
301
302
|
blockKinds: ["block.hero"],
|
|
@@ -317,10 +318,11 @@ const appearancePresets = [
|
|
|
317
318
|
}),
|
|
318
319
|
defineBlockAppearancePreset({
|
|
319
320
|
structure: {
|
|
320
|
-
kind: "
|
|
321
|
+
kind: "recipe",
|
|
321
322
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
322
323
|
},
|
|
323
324
|
id: "hero-bottom-left-panel",
|
|
325
|
+
carry: { kind: "by-layout" },
|
|
324
326
|
target: "hero",
|
|
325
327
|
label: "Text panel, bottom left of photo",
|
|
326
328
|
blockKinds: ["block.hero"],
|
|
@@ -366,10 +368,11 @@ const appearancePresets = [
|
|
|
366
368
|
}),
|
|
367
369
|
defineBlockAppearancePreset({
|
|
368
370
|
structure: {
|
|
369
|
-
kind: "
|
|
371
|
+
kind: "recipe",
|
|
370
372
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
371
373
|
},
|
|
372
374
|
id: "hero-poster-image",
|
|
375
|
+
carry: { kind: "by-layout" },
|
|
373
376
|
target: "hero",
|
|
374
377
|
label: "Strong brand tint, big title",
|
|
375
378
|
blockKinds: ["block.hero"],
|
|
@@ -395,10 +398,11 @@ const appearancePresets = [
|
|
|
395
398
|
}),
|
|
396
399
|
defineBlockAppearancePreset({
|
|
397
400
|
structure: {
|
|
398
|
-
kind: "
|
|
401
|
+
kind: "recipe",
|
|
399
402
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
400
403
|
},
|
|
401
404
|
id: "hero-brand-scrim",
|
|
405
|
+
carry: { kind: "by-layout" },
|
|
402
406
|
target: "hero",
|
|
403
407
|
label: "Photo with a brand tint",
|
|
404
408
|
blockKinds: ["block.hero"],
|
|
@@ -418,10 +422,11 @@ const appearancePresets = [
|
|
|
418
422
|
}),
|
|
419
423
|
defineBlockAppearancePreset({
|
|
420
424
|
structure: {
|
|
421
|
-
kind: "
|
|
425
|
+
kind: "recipe",
|
|
422
426
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
423
427
|
},
|
|
424
428
|
id: "hero-brand-scrim-fixed-frame",
|
|
429
|
+
carry: { kind: "by-layout" },
|
|
425
430
|
target: "hero",
|
|
426
431
|
label: "Fixed photo with a brand tint",
|
|
427
432
|
blockKinds: ["block.hero"],
|
|
@@ -443,10 +448,14 @@ const appearancePresets = [
|
|
|
443
448
|
}),
|
|
444
449
|
defineBlockAppearancePreset({
|
|
445
450
|
structure: {
|
|
446
|
-
kind: "
|
|
451
|
+
kind: "recipe",
|
|
447
452
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
448
453
|
},
|
|
449
454
|
id: "hero-brand-depth-expressive",
|
|
455
|
+
carry: {
|
|
456
|
+
kind: "look",
|
|
457
|
+
look: "hero-page-head"
|
|
458
|
+
},
|
|
450
459
|
target: "hero",
|
|
451
460
|
label: "Brand colour, no photo",
|
|
452
461
|
blockKinds: ["block.hero"],
|
|
@@ -459,8 +468,22 @@ const appearancePresets = [
|
|
|
459
468
|
}
|
|
460
469
|
}),
|
|
461
470
|
defineBlockAppearancePreset({
|
|
462
|
-
structure: { kind: "
|
|
471
|
+
structure: { kind: "recipe" },
|
|
463
472
|
id: "hero-contained-intro",
|
|
473
|
+
carry: {
|
|
474
|
+
kind: "look",
|
|
475
|
+
look: "hero-page-head",
|
|
476
|
+
layouts: {
|
|
477
|
+
split: {
|
|
478
|
+
kind: "look",
|
|
479
|
+
look: "hero-photo-beside-text"
|
|
480
|
+
},
|
|
481
|
+
splitReverse: {
|
|
482
|
+
kind: "look",
|
|
483
|
+
look: "hero-photo-beside-text"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
464
487
|
target: "hero",
|
|
465
488
|
label: "Text in a panel on a soft band",
|
|
466
489
|
blockKinds: ["block.hero"],
|
|
@@ -473,10 +496,14 @@ const appearancePresets = [
|
|
|
473
496
|
}),
|
|
474
497
|
defineBlockAppearancePreset({
|
|
475
498
|
structure: {
|
|
476
|
-
kind: "
|
|
499
|
+
kind: "recipe",
|
|
477
500
|
constraints: { layoutFamilies: ["split"] }
|
|
478
501
|
},
|
|
479
502
|
id: "hero-split-editorial",
|
|
503
|
+
carry: {
|
|
504
|
+
kind: "look",
|
|
505
|
+
look: "hero-photo-beside-text"
|
|
506
|
+
},
|
|
480
507
|
target: "hero",
|
|
481
508
|
label: "Split on the page background",
|
|
482
509
|
blockKinds: ["block.hero"],
|
|
@@ -488,10 +515,14 @@ const appearancePresets = [
|
|
|
488
515
|
}),
|
|
489
516
|
defineBlockAppearancePreset({
|
|
490
517
|
structure: {
|
|
491
|
-
kind: "
|
|
518
|
+
kind: "recipe",
|
|
492
519
|
constraints: { layoutFamilies: ["split"] }
|
|
493
520
|
},
|
|
494
521
|
id: "hero-split-brand",
|
|
522
|
+
carry: {
|
|
523
|
+
kind: "look",
|
|
524
|
+
look: "hero-photo-beside-text"
|
|
525
|
+
},
|
|
495
526
|
target: "hero",
|
|
496
527
|
label: "Split on brand colour",
|
|
497
528
|
blockKinds: ["block.hero"],
|
|
@@ -504,10 +535,14 @@ const appearancePresets = [
|
|
|
504
535
|
}),
|
|
505
536
|
defineBlockAppearancePreset({
|
|
506
537
|
structure: {
|
|
507
|
-
kind: "
|
|
538
|
+
kind: "recipe",
|
|
508
539
|
constraints: { layoutFamilies: ["split"] }
|
|
509
540
|
},
|
|
510
541
|
id: "hero-split-soft-panel",
|
|
542
|
+
carry: {
|
|
543
|
+
kind: "look",
|
|
544
|
+
look: "hero-photo-beside-text"
|
|
545
|
+
},
|
|
511
546
|
target: "hero",
|
|
512
547
|
label: "Split, panel on a soft band",
|
|
513
548
|
blockKinds: ["block.hero"],
|
|
@@ -519,10 +554,14 @@ const appearancePresets = [
|
|
|
519
554
|
}),
|
|
520
555
|
defineBlockAppearancePreset({
|
|
521
556
|
structure: {
|
|
522
|
-
kind: "
|
|
557
|
+
kind: "recipe",
|
|
523
558
|
constraints: { layoutFamilies: ["split"] }
|
|
524
559
|
},
|
|
525
560
|
id: "hero-split-accent",
|
|
561
|
+
carry: {
|
|
562
|
+
kind: "look",
|
|
563
|
+
look: "hero-photo-beside-text"
|
|
564
|
+
},
|
|
526
565
|
target: "hero",
|
|
527
566
|
label: "Split, panel on accent colour",
|
|
528
567
|
blockKinds: ["block.hero"],
|
|
@@ -534,7 +573,7 @@ const appearancePresets = [
|
|
|
534
573
|
}),
|
|
535
574
|
defineBlockAppearancePreset({
|
|
536
575
|
structure: {
|
|
537
|
-
kind: "
|
|
576
|
+
kind: "recipe",
|
|
538
577
|
composition: {
|
|
539
578
|
kind: "intro",
|
|
540
579
|
treatment: "editorial-statement"
|
|
@@ -542,6 +581,7 @@ const appearancePresets = [
|
|
|
542
581
|
constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
|
|
543
582
|
},
|
|
544
583
|
id: "intro-editorial-statement",
|
|
584
|
+
carry: { kind: "by-layout" },
|
|
545
585
|
target: "intro",
|
|
546
586
|
label: "Large statement",
|
|
547
587
|
blockKinds: ["block.intro"],
|
|
@@ -552,7 +592,7 @@ const appearancePresets = [
|
|
|
552
592
|
}),
|
|
553
593
|
defineBlockAppearancePreset({
|
|
554
594
|
structure: {
|
|
555
|
-
kind: "
|
|
595
|
+
kind: "recipe",
|
|
556
596
|
composition: {
|
|
557
597
|
kind: "intro",
|
|
558
598
|
treatment: "portrait-bio"
|
|
@@ -560,6 +600,10 @@ const appearancePresets = [
|
|
|
560
600
|
constraints: { layoutVariantKeys: ["media-copy"] }
|
|
561
601
|
},
|
|
562
602
|
id: "intro-portrait-bio",
|
|
603
|
+
carry: {
|
|
604
|
+
kind: "look",
|
|
605
|
+
look: "intro-photo-beside-text"
|
|
606
|
+
},
|
|
563
607
|
target: "intro",
|
|
564
608
|
label: "Portrait and bio",
|
|
565
609
|
blockKinds: ["block.intro"],
|
|
@@ -569,8 +613,12 @@ const appearancePresets = [
|
|
|
569
613
|
}
|
|
570
614
|
}),
|
|
571
615
|
defineBlockAppearancePreset({
|
|
572
|
-
structure: { kind: "
|
|
616
|
+
structure: { kind: "recipe" },
|
|
573
617
|
id: "offerings-preview-default-cards",
|
|
618
|
+
carry: {
|
|
619
|
+
kind: "look",
|
|
620
|
+
look: "feature-cards-cards"
|
|
621
|
+
},
|
|
574
622
|
target: "offerings",
|
|
575
623
|
label: "Cards",
|
|
576
624
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -581,8 +629,12 @@ const appearancePresets = [
|
|
|
581
629
|
}
|
|
582
630
|
}),
|
|
583
631
|
defineBlockAppearancePreset({
|
|
584
|
-
structure: { kind: "
|
|
632
|
+
structure: { kind: "recipe" },
|
|
585
633
|
id: "offerings-preview-secondary-cards",
|
|
634
|
+
carry: {
|
|
635
|
+
kind: "look",
|
|
636
|
+
look: "feature-cards-cards"
|
|
637
|
+
},
|
|
586
638
|
target: "offerings",
|
|
587
639
|
label: "Cards on a soft band",
|
|
588
640
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -593,8 +645,12 @@ const appearancePresets = [
|
|
|
593
645
|
}
|
|
594
646
|
}),
|
|
595
647
|
defineBlockAppearancePreset({
|
|
596
|
-
structure: { kind: "
|
|
648
|
+
structure: { kind: "recipe" },
|
|
597
649
|
id: "offerings-preview-non-carded",
|
|
650
|
+
carry: {
|
|
651
|
+
kind: "look",
|
|
652
|
+
look: "feature-cards-open-columns"
|
|
653
|
+
},
|
|
598
654
|
target: "offerings",
|
|
599
655
|
label: "No cards",
|
|
600
656
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -606,7 +662,7 @@ const appearancePresets = [
|
|
|
606
662
|
}),
|
|
607
663
|
defineBlockAppearancePreset({
|
|
608
664
|
structure: {
|
|
609
|
-
kind: "
|
|
665
|
+
kind: "recipe",
|
|
610
666
|
composition: {
|
|
611
667
|
kind: "offerings-preview",
|
|
612
668
|
treatment: "paired-feature-cards"
|
|
@@ -614,6 +670,10 @@ const appearancePresets = [
|
|
|
614
670
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
615
671
|
},
|
|
616
672
|
id: "offerings-preview-paired-feature-cards",
|
|
673
|
+
carry: {
|
|
674
|
+
kind: "look",
|
|
675
|
+
look: "feature-cards-lead-support"
|
|
676
|
+
},
|
|
617
677
|
target: "offerings",
|
|
618
678
|
label: "One large card, one smaller",
|
|
619
679
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -625,7 +685,7 @@ const appearancePresets = [
|
|
|
625
685
|
}),
|
|
626
686
|
defineBlockAppearancePreset({
|
|
627
687
|
structure: {
|
|
628
|
-
kind: "
|
|
688
|
+
kind: "recipe",
|
|
629
689
|
composition: {
|
|
630
690
|
kind: "offerings-preview",
|
|
631
691
|
treatment: "open-editorial-columns"
|
|
@@ -633,6 +693,10 @@ const appearancePresets = [
|
|
|
633
693
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
634
694
|
},
|
|
635
695
|
id: "offerings-preview-open-editorial-columns",
|
|
696
|
+
carry: {
|
|
697
|
+
kind: "look",
|
|
698
|
+
look: "feature-cards-open-columns"
|
|
699
|
+
},
|
|
636
700
|
target: "offerings",
|
|
637
701
|
label: "Open columns",
|
|
638
702
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -644,7 +708,7 @@ const appearancePresets = [
|
|
|
644
708
|
}),
|
|
645
709
|
defineBlockAppearancePreset({
|
|
646
710
|
structure: {
|
|
647
|
-
kind: "
|
|
711
|
+
kind: "recipe",
|
|
648
712
|
composition: {
|
|
649
713
|
kind: "offerings-preview",
|
|
650
714
|
treatment: "joined-programme-panel"
|
|
@@ -652,6 +716,10 @@ const appearancePresets = [
|
|
|
652
716
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
653
717
|
},
|
|
654
718
|
id: "offerings-preview-joined-programme-panel",
|
|
719
|
+
carry: {
|
|
720
|
+
kind: "look",
|
|
721
|
+
look: "feature-cards-index"
|
|
722
|
+
},
|
|
655
723
|
target: "offerings",
|
|
656
724
|
label: "Rows joined in one panel",
|
|
657
725
|
blockKinds: ["block.offerings-preview"],
|
|
@@ -662,8 +730,12 @@ const appearancePresets = [
|
|
|
662
730
|
}
|
|
663
731
|
}),
|
|
664
732
|
defineBlockAppearancePreset({
|
|
665
|
-
structure: { kind: "
|
|
733
|
+
structure: { kind: "recipe" },
|
|
666
734
|
id: "feature-cards-raised-rule",
|
|
735
|
+
carry: {
|
|
736
|
+
kind: "look",
|
|
737
|
+
look: "feature-cards-cards"
|
|
738
|
+
},
|
|
667
739
|
target: "feature-cards",
|
|
668
740
|
label: "Raised cards with a line",
|
|
669
741
|
blockKinds: ["block.feature-cards"],
|
|
@@ -674,8 +746,12 @@ const appearancePresets = [
|
|
|
674
746
|
}
|
|
675
747
|
}),
|
|
676
748
|
defineBlockAppearancePreset({
|
|
677
|
-
structure: { kind: "
|
|
749
|
+
structure: { kind: "recipe" },
|
|
678
750
|
id: "feature-cards-bold-colors",
|
|
751
|
+
carry: {
|
|
752
|
+
kind: "look",
|
|
753
|
+
look: "feature-cards-cards"
|
|
754
|
+
},
|
|
679
755
|
target: "feature-cards",
|
|
680
756
|
label: "Colour-filled cards",
|
|
681
757
|
blockKinds: ["block.feature-cards"],
|
|
@@ -686,8 +762,12 @@ const appearancePresets = [
|
|
|
686
762
|
}
|
|
687
763
|
}),
|
|
688
764
|
defineBlockAppearancePreset({
|
|
689
|
-
structure: { kind: "
|
|
765
|
+
structure: { kind: "recipe" },
|
|
690
766
|
id: "feature-cards-editorial-columns",
|
|
767
|
+
carry: {
|
|
768
|
+
kind: "look",
|
|
769
|
+
look: "card-list-accent-edged-cards"
|
|
770
|
+
},
|
|
691
771
|
target: "feature-cards",
|
|
692
772
|
label: "Open columns on a soft band",
|
|
693
773
|
blockKinds: ["block.feature-cards"],
|
|
@@ -699,7 +779,7 @@ const appearancePresets = [
|
|
|
699
779
|
}),
|
|
700
780
|
defineBlockAppearancePreset({
|
|
701
781
|
structure: {
|
|
702
|
-
kind: "
|
|
782
|
+
kind: "recipe",
|
|
703
783
|
composition: {
|
|
704
784
|
kind: "feature-cards",
|
|
705
785
|
treatment: "asymmetric-emphasis"
|
|
@@ -707,6 +787,10 @@ const appearancePresets = [
|
|
|
707
787
|
constraints: { layoutFamilies: ["grid"] }
|
|
708
788
|
},
|
|
709
789
|
id: "feature-cards-asymmetric-emphasis",
|
|
790
|
+
carry: {
|
|
791
|
+
kind: "no-equivalent",
|
|
792
|
+
because: "No shared Look lays cards out in uneven pairs."
|
|
793
|
+
},
|
|
710
794
|
target: "feature-cards",
|
|
711
795
|
label: "Cards in uneven pairs",
|
|
712
796
|
blockKinds: ["block.feature-cards"],
|
|
@@ -717,7 +801,7 @@ const appearancePresets = [
|
|
|
717
801
|
}),
|
|
718
802
|
defineBlockAppearancePreset({
|
|
719
803
|
structure: {
|
|
720
|
-
kind: "
|
|
804
|
+
kind: "recipe",
|
|
721
805
|
composition: {
|
|
722
806
|
kind: "feature-cards",
|
|
723
807
|
treatment: "framed-programme"
|
|
@@ -725,6 +809,10 @@ const appearancePresets = [
|
|
|
725
809
|
constraints: { layoutFamilies: ["grid"] }
|
|
726
810
|
},
|
|
727
811
|
id: "feature-cards-framed-programme",
|
|
812
|
+
carry: {
|
|
813
|
+
kind: "look",
|
|
814
|
+
look: "feature-cards-cards"
|
|
815
|
+
},
|
|
728
816
|
target: "feature-cards",
|
|
729
817
|
label: "Close-set cards on brand colour",
|
|
730
818
|
blockKinds: ["block.feature-cards"],
|
|
@@ -736,10 +824,14 @@ const appearancePresets = [
|
|
|
736
824
|
}),
|
|
737
825
|
defineBlockAppearancePreset({
|
|
738
826
|
structure: {
|
|
739
|
-
kind: "
|
|
827
|
+
kind: "recipe",
|
|
740
828
|
constraints: { layoutVariantKeys: ["editorial-diptych"] }
|
|
741
829
|
},
|
|
742
830
|
id: "feature-cards-editorial-diptych",
|
|
831
|
+
carry: {
|
|
832
|
+
kind: "look",
|
|
833
|
+
look: "feature-cards-cards"
|
|
834
|
+
},
|
|
743
835
|
target: "feature-cards",
|
|
744
836
|
label: "Two large cards side by side",
|
|
745
837
|
blockKinds: ["block.feature-cards"],
|
|
@@ -750,8 +842,9 @@ const appearancePresets = [
|
|
|
750
842
|
}
|
|
751
843
|
}),
|
|
752
844
|
defineBlockAppearancePreset({
|
|
753
|
-
structure: { kind: "
|
|
845
|
+
structure: { kind: "recipe" },
|
|
754
846
|
id: "events-lined-panel",
|
|
847
|
+
carry: { kind: "by-layout" },
|
|
755
848
|
target: "events",
|
|
756
849
|
label: "Cards on a panel",
|
|
757
850
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -761,8 +854,12 @@ const appearancePresets = [
|
|
|
761
854
|
}
|
|
762
855
|
}),
|
|
763
856
|
defineBlockAppearancePreset({
|
|
764
|
-
structure: { kind: "
|
|
857
|
+
structure: { kind: "recipe" },
|
|
765
858
|
id: "events-ruled-register",
|
|
859
|
+
carry: {
|
|
860
|
+
kind: "look",
|
|
861
|
+
look: "event-calendar-ruled-rows"
|
|
862
|
+
},
|
|
766
863
|
target: "events",
|
|
767
864
|
label: "Ruled list",
|
|
768
865
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -773,8 +870,12 @@ const appearancePresets = [
|
|
|
773
870
|
}
|
|
774
871
|
}),
|
|
775
872
|
defineBlockAppearancePreset({
|
|
776
|
-
structure: { kind: "
|
|
873
|
+
structure: { kind: "recipe" },
|
|
777
874
|
id: "events-editorial-register",
|
|
875
|
+
carry: {
|
|
876
|
+
kind: "look",
|
|
877
|
+
look: "event-calendar-ruled-rows"
|
|
878
|
+
},
|
|
778
879
|
target: "events",
|
|
779
880
|
label: "Editorial list",
|
|
780
881
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -785,8 +886,12 @@ const appearancePresets = [
|
|
|
785
886
|
}
|
|
786
887
|
}),
|
|
787
888
|
defineBlockAppearancePreset({
|
|
788
|
-
structure: { kind: "
|
|
889
|
+
structure: { kind: "recipe" },
|
|
789
890
|
id: "events-dense-index",
|
|
891
|
+
carry: {
|
|
892
|
+
kind: "look",
|
|
893
|
+
look: "event-calendar-ruled-rows"
|
|
894
|
+
},
|
|
790
895
|
target: "events",
|
|
791
896
|
label: "Compact list",
|
|
792
897
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
@@ -797,8 +902,12 @@ const appearancePresets = [
|
|
|
797
902
|
}
|
|
798
903
|
}),
|
|
799
904
|
defineBlockAppearancePreset({
|
|
800
|
-
structure: { kind: "
|
|
905
|
+
structure: { kind: "recipe" },
|
|
801
906
|
id: "schedule-details-brand-depth",
|
|
907
|
+
carry: {
|
|
908
|
+
kind: "look",
|
|
909
|
+
look: "event-details-panel"
|
|
910
|
+
},
|
|
802
911
|
target: "events",
|
|
803
912
|
label: "Details on brand colour",
|
|
804
913
|
blockKinds: ["block.event-details"],
|
|
@@ -809,8 +918,12 @@ const appearancePresets = [
|
|
|
809
918
|
}
|
|
810
919
|
}),
|
|
811
920
|
defineBlockAppearancePreset({
|
|
812
|
-
structure: { kind: "
|
|
921
|
+
structure: { kind: "recipe" },
|
|
813
922
|
id: "media-text-flush-feature",
|
|
923
|
+
carry: {
|
|
924
|
+
kind: "look",
|
|
925
|
+
look: "media-text-photo-beside-text"
|
|
926
|
+
},
|
|
814
927
|
target: "media-text",
|
|
815
928
|
label: "Photo to the edge, on a soft band",
|
|
816
929
|
blockKinds: ["block.media-text"],
|
|
@@ -820,8 +933,9 @@ const appearancePresets = [
|
|
|
820
933
|
}
|
|
821
934
|
}),
|
|
822
935
|
defineBlockAppearancePreset({
|
|
823
|
-
structure: { kind: "
|
|
936
|
+
structure: { kind: "recipe" },
|
|
824
937
|
id: "testimonials-simple-cards",
|
|
938
|
+
carry: { kind: "by-layout" },
|
|
825
939
|
target: "testimonials",
|
|
826
940
|
label: "Quote cards",
|
|
827
941
|
blockKinds: ["block.testimonials"],
|
|
@@ -832,8 +946,9 @@ const appearancePresets = [
|
|
|
832
946
|
}
|
|
833
947
|
}),
|
|
834
948
|
defineBlockAppearancePreset({
|
|
835
|
-
structure: { kind: "
|
|
949
|
+
structure: { kind: "recipe" },
|
|
836
950
|
id: "testimonials-raised-panel",
|
|
951
|
+
carry: { kind: "by-layout" },
|
|
837
952
|
target: "testimonials",
|
|
838
953
|
label: "Quotes on a panel",
|
|
839
954
|
blockKinds: ["block.testimonials"],
|
|
@@ -844,8 +959,9 @@ const appearancePresets = [
|
|
|
844
959
|
}
|
|
845
960
|
}),
|
|
846
961
|
defineBlockAppearancePreset({
|
|
847
|
-
structure: { kind: "
|
|
962
|
+
structure: { kind: "recipe" },
|
|
848
963
|
id: "testimonials-accent-panel",
|
|
964
|
+
carry: { kind: "by-layout" },
|
|
849
965
|
target: "testimonials",
|
|
850
966
|
label: "Quotes on an accent panel",
|
|
851
967
|
blockKinds: ["block.testimonials"],
|
|
@@ -856,8 +972,9 @@ const appearancePresets = [
|
|
|
856
972
|
}
|
|
857
973
|
}),
|
|
858
974
|
defineBlockAppearancePreset({
|
|
859
|
-
structure: { kind: "
|
|
975
|
+
structure: { kind: "recipe" },
|
|
860
976
|
id: "testimonials-statement-cards",
|
|
977
|
+
carry: { kind: "by-layout" },
|
|
861
978
|
target: "testimonials",
|
|
862
979
|
label: "Cards on accent colour",
|
|
863
980
|
blockKinds: ["block.testimonials"],
|
|
@@ -868,8 +985,9 @@ const appearancePresets = [
|
|
|
868
985
|
}
|
|
869
986
|
}),
|
|
870
987
|
defineBlockAppearancePreset({
|
|
871
|
-
structure: { kind: "
|
|
988
|
+
structure: { kind: "recipe" },
|
|
872
989
|
id: "testimonials-brand-statement-cards",
|
|
990
|
+
carry: { kind: "by-layout" },
|
|
873
991
|
target: "testimonials",
|
|
874
992
|
label: "Cards on brand colour",
|
|
875
993
|
blockKinds: ["block.testimonials"],
|
|
@@ -881,13 +999,21 @@ const appearancePresets = [
|
|
|
881
999
|
}),
|
|
882
1000
|
defineBlockAppearancePreset({
|
|
883
1001
|
structure: {
|
|
884
|
-
kind: "
|
|
1002
|
+
kind: "recipe",
|
|
885
1003
|
composition: {
|
|
886
1004
|
kind: "testimonials",
|
|
887
1005
|
treatment: "open-editorial"
|
|
888
1006
|
}
|
|
889
1007
|
},
|
|
890
1008
|
id: "testimonials-non-carded",
|
|
1009
|
+
carry: {
|
|
1010
|
+
kind: "by-layout",
|
|
1011
|
+
layouts: { grid: {
|
|
1012
|
+
kind: "look",
|
|
1013
|
+
look: "testimonials-quote-columns",
|
|
1014
|
+
knobs: { quoteCount: "all" }
|
|
1015
|
+
} }
|
|
1016
|
+
},
|
|
891
1017
|
target: "testimonials",
|
|
892
1018
|
label: "No cards",
|
|
893
1019
|
blockKinds: ["block.testimonials"],
|
|
@@ -898,7 +1024,7 @@ const appearancePresets = [
|
|
|
898
1024
|
}),
|
|
899
1025
|
defineBlockAppearancePreset({
|
|
900
1026
|
structure: {
|
|
901
|
-
kind: "
|
|
1027
|
+
kind: "recipe",
|
|
902
1028
|
composition: {
|
|
903
1029
|
kind: "testimonials",
|
|
904
1030
|
treatment: "evergreen-lead"
|
|
@@ -906,6 +1032,10 @@ const appearancePresets = [
|
|
|
906
1032
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
907
1033
|
},
|
|
908
1034
|
id: "testimonials-evergreen-lead",
|
|
1035
|
+
carry: {
|
|
1036
|
+
kind: "look",
|
|
1037
|
+
look: "testimonials-lead-quote"
|
|
1038
|
+
},
|
|
909
1039
|
target: "testimonials",
|
|
910
1040
|
label: "Lead quote, others in two columns",
|
|
911
1041
|
blockKinds: ["block.testimonials"],
|
|
@@ -916,7 +1046,7 @@ const appearancePresets = [
|
|
|
916
1046
|
}),
|
|
917
1047
|
defineBlockAppearancePreset({
|
|
918
1048
|
structure: {
|
|
919
|
-
kind: "
|
|
1049
|
+
kind: "recipe",
|
|
920
1050
|
composition: {
|
|
921
1051
|
kind: "testimonials",
|
|
922
1052
|
treatment: "room-and-response"
|
|
@@ -924,6 +1054,10 @@ const appearancePresets = [
|
|
|
924
1054
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
925
1055
|
},
|
|
926
1056
|
id: "testimonials-room-and-response",
|
|
1057
|
+
carry: {
|
|
1058
|
+
kind: "look",
|
|
1059
|
+
look: "testimonials-lead-quote"
|
|
1060
|
+
},
|
|
927
1061
|
target: "testimonials",
|
|
928
1062
|
label: "Tall lead quote, others beside",
|
|
929
1063
|
blockKinds: ["block.testimonials"],
|
|
@@ -934,7 +1068,7 @@ const appearancePresets = [
|
|
|
934
1068
|
}),
|
|
935
1069
|
defineBlockAppearancePreset({
|
|
936
1070
|
structure: {
|
|
937
|
-
kind: "
|
|
1071
|
+
kind: "recipe",
|
|
938
1072
|
composition: {
|
|
939
1073
|
kind: "testimonials",
|
|
940
1074
|
treatment: "open-floor"
|
|
@@ -942,6 +1076,10 @@ const appearancePresets = [
|
|
|
942
1076
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
943
1077
|
},
|
|
944
1078
|
id: "testimonials-open-floor",
|
|
1079
|
+
carry: {
|
|
1080
|
+
kind: "look",
|
|
1081
|
+
look: "testimonials-lead-quote"
|
|
1082
|
+
},
|
|
945
1083
|
target: "testimonials",
|
|
946
1084
|
label: "Title beside, lead quote on top",
|
|
947
1085
|
blockKinds: ["block.testimonials"],
|
|
@@ -951,8 +1089,9 @@ const appearancePresets = [
|
|
|
951
1089
|
}
|
|
952
1090
|
}),
|
|
953
1091
|
defineBlockAppearancePreset({
|
|
954
|
-
structure: { kind: "
|
|
1092
|
+
structure: { kind: "recipe" },
|
|
955
1093
|
id: "faq-base-accordion",
|
|
1094
|
+
carry: { kind: "by-layout" },
|
|
956
1095
|
target: "faq",
|
|
957
1096
|
label: "Plain list of questions",
|
|
958
1097
|
blockKinds: ["block.faq"],
|
|
@@ -963,8 +1102,9 @@ const appearancePresets = [
|
|
|
963
1102
|
}
|
|
964
1103
|
}),
|
|
965
1104
|
defineBlockAppearancePreset({
|
|
966
|
-
structure: { kind: "
|
|
1105
|
+
structure: { kind: "recipe" },
|
|
967
1106
|
id: "faq-contained-help",
|
|
1107
|
+
carry: { kind: "by-layout" },
|
|
968
1108
|
target: "faq",
|
|
969
1109
|
label: "Questions in a panel",
|
|
970
1110
|
blockKinds: ["block.faq"],
|
|
@@ -975,8 +1115,9 @@ const appearancePresets = [
|
|
|
975
1115
|
}
|
|
976
1116
|
}),
|
|
977
1117
|
defineBlockAppearancePreset({
|
|
978
|
-
structure: { kind: "
|
|
1118
|
+
structure: { kind: "recipe" },
|
|
979
1119
|
id: "contact-form-panel",
|
|
1120
|
+
carry: { kind: "by-layout" },
|
|
980
1121
|
target: "contact-form",
|
|
981
1122
|
label: "Form on a panel",
|
|
982
1123
|
blockKinds: ["block.form"],
|
|
@@ -986,8 +1127,12 @@ const appearancePresets = [
|
|
|
986
1127
|
}
|
|
987
1128
|
}),
|
|
988
1129
|
defineBlockAppearancePreset({
|
|
989
|
-
structure: { kind: "
|
|
1130
|
+
structure: { kind: "recipe" },
|
|
990
1131
|
id: "booking-brand-band",
|
|
1132
|
+
carry: {
|
|
1133
|
+
kind: "no-equivalent",
|
|
1134
|
+
because: "Appointment booking has no shared Looks."
|
|
1135
|
+
},
|
|
991
1136
|
target: "contact-form",
|
|
992
1137
|
label: "Booking form on brand colour",
|
|
993
1138
|
blockKinds: ["block.appointment-booking"],
|
|
@@ -997,8 +1142,12 @@ const appearancePresets = [
|
|
|
997
1142
|
}
|
|
998
1143
|
}),
|
|
999
1144
|
defineBlockAppearancePreset({
|
|
1000
|
-
structure: { kind: "
|
|
1145
|
+
structure: { kind: "recipe" },
|
|
1001
1146
|
id: "cta-accent-band",
|
|
1147
|
+
carry: {
|
|
1148
|
+
kind: "look",
|
|
1149
|
+
look: "cta-centred"
|
|
1150
|
+
},
|
|
1002
1151
|
target: "cta",
|
|
1003
1152
|
label: "Accent colour band",
|
|
1004
1153
|
blockKinds: ["block.cta-full"],
|
|
@@ -1009,11 +1158,11 @@ const appearancePresets = [
|
|
|
1009
1158
|
}
|
|
1010
1159
|
}),
|
|
1011
1160
|
defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
|
|
1012
|
-
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside
|
|
1161
|
+
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
|
|
1013
1162
|
slotRoles: { panel: "card" },
|
|
1014
1163
|
styleFallback: [id$1("form-below-introduction")]
|
|
1015
1164
|
}),
|
|
1016
|
-
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in
|
|
1165
|
+
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
|
|
1017
1166
|
defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
|
|
1018
1167
|
defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
|
|
1019
1168
|
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
@@ -1036,6 +1185,10 @@ const appearancePresets = [
|
|
|
1036
1185
|
slotRoles: { copy: "card" },
|
|
1037
1186
|
styleFallback: [id$1("hero-photo-beside-text")]
|
|
1038
1187
|
}),
|
|
1188
|
+
defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
|
|
1189
|
+
slotRoles: { copy: "card" },
|
|
1190
|
+
styleFallback: [id$1("hero-page-head")]
|
|
1191
|
+
}),
|
|
1039
1192
|
defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], { styleFallback: [id$1("hero-photo-beside-text")] }),
|
|
1040
1193
|
defineCardListLook("feature-cards-cards", "Cards", "cards", [
|
|
1041
1194
|
"media",
|
|
@@ -1108,7 +1261,7 @@ const appearancePresets = [
|
|
|
1108
1261
|
slotRoles: { date: "highlight" },
|
|
1109
1262
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1110
1263
|
}),
|
|
1111
|
-
defineArrangementLook("event-calendar-next-three", "event-calendar", "
|
|
1264
|
+
defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
|
|
1112
1265
|
itemRoles: { container: "card" },
|
|
1113
1266
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1114
1267
|
}),
|
|
@@ -1417,39 +1570,6 @@ function uniqueStrings(values) {
|
|
|
1417
1570
|
return Array.from(new Set(values));
|
|
1418
1571
|
}
|
|
1419
1572
|
//#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
1573
|
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
1454
1574
|
function parseCanonicalRuntimeBackground(content) {
|
|
1455
1575
|
const background = readRecord(readRecord(content._sectionStyles)?.background);
|
|
@@ -1946,16 +2066,10 @@ const sectionTransitionFamilies = [{
|
|
|
1946
2066
|
label: family.label,
|
|
1947
2067
|
variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
|
|
1948
2068
|
}))];
|
|
1949
|
-
|
|
2069
|
+
new Map(boundaryOptions.map((option) => [option.id, option]));
|
|
1950
2070
|
new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
|
|
1951
2071
|
new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
|
|
1952
2072
|
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
2073
|
function stableTreatmentKey(treatment) {
|
|
1960
2074
|
switch (treatment.kind) {
|
|
1961
2075
|
case "none": return "none";
|
|
@@ -1973,7 +2087,6 @@ function stableTreatmentKey(treatment) {
|
|
|
1973
2087
|
treatment.slope,
|
|
1974
2088
|
treatment.direction
|
|
1975
2089
|
].join(":");
|
|
1976
|
-
case "legacy-unsupported": return `${treatment.kind}:${treatment.boundaryOptionId}`;
|
|
1977
2090
|
}
|
|
1978
2091
|
}
|
|
1979
2092
|
//#endregion
|
|
@@ -2180,7 +2293,7 @@ const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
|
2180
2293
|
kind: z.literal("user-pinned"),
|
|
2181
2294
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
2182
2295
|
}).strict();
|
|
2183
|
-
|
|
2296
|
+
z.object({
|
|
2184
2297
|
kind: z.literal("user-pinned"),
|
|
2185
2298
|
value: z.string().min(1).transform(asBoundaryOptionId)
|
|
2186
2299
|
}).strict();
|
|
@@ -2232,10 +2345,6 @@ const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
|
|
|
2232
2345
|
"steep"
|
|
2233
2346
|
]),
|
|
2234
2347
|
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
2348
|
}).strict()
|
|
2240
2349
|
]);
|
|
2241
2350
|
const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
|
|
@@ -2253,51 +2362,13 @@ const pageDesignBoundaryPinSchema = z.object({
|
|
|
2253
2362
|
nextBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
2254
2363
|
choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
|
|
2255
2364
|
}).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
2365
|
const pageDesignDecisionsV2Schema = z.object({
|
|
2275
2366
|
schemaVersion: z.literal(2),
|
|
2276
2367
|
pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
|
|
2277
2368
|
blockLookPins: z.array(pageDesignBlockLookPinSchema),
|
|
2278
2369
|
boundaryPins: z.array(pageDesignBoundaryPinSchema)
|
|
2279
2370
|
}).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
|
-
}
|
|
2371
|
+
pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
|
|
2301
2372
|
function addDuplicateStringIssues(ctx, input) {
|
|
2302
2373
|
const seen = /* @__PURE__ */ new Set();
|
|
2303
2374
|
const duplicates = /* @__PURE__ */ new Set();
|
|
@@ -4883,6 +4954,201 @@ const measureNight = defineCuratedPalette({
|
|
|
4883
4954
|
}
|
|
4884
4955
|
]
|
|
4885
4956
|
});
|
|
4957
|
+
const loomHearth = defineCuratedPalette({
|
|
4958
|
+
authoringKey: "loom-hearth",
|
|
4959
|
+
name: "Loom — Hearth",
|
|
4960
|
+
description: "Warm paper, espresso ink and a rust patch.",
|
|
4961
|
+
tags: {
|
|
4962
|
+
tone: "classic",
|
|
4963
|
+
energy: "calm",
|
|
4964
|
+
era: "organic"
|
|
4965
|
+
},
|
|
4966
|
+
mode: "light",
|
|
4967
|
+
colors: [
|
|
4968
|
+
{
|
|
4969
|
+
name: "primary",
|
|
4970
|
+
hex: "#a2471f"
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
name: "secondary",
|
|
4974
|
+
hex: "#33261d"
|
|
4975
|
+
},
|
|
4976
|
+
{
|
|
4977
|
+
name: "accent",
|
|
4978
|
+
hex: "#7f5f0e"
|
|
4979
|
+
},
|
|
4980
|
+
{
|
|
4981
|
+
name: "success",
|
|
4982
|
+
hex: "#2c7a45"
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
name: "warning",
|
|
4986
|
+
hex: "#8a5a00"
|
|
4987
|
+
},
|
|
4988
|
+
{
|
|
4989
|
+
name: "destructive",
|
|
4990
|
+
hex: "#b3261e"
|
|
4991
|
+
},
|
|
4992
|
+
{
|
|
4993
|
+
name: "background",
|
|
4994
|
+
hex: "#faf5ec"
|
|
4995
|
+
},
|
|
4996
|
+
{
|
|
4997
|
+
name: "surface",
|
|
4998
|
+
hex: "#fffdf7"
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
name: "surfaceAlt",
|
|
5002
|
+
hex: "#f0e7d5"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
name: "muted",
|
|
5006
|
+
hex: "#61544a"
|
|
5007
|
+
},
|
|
5008
|
+
{
|
|
5009
|
+
name: "text",
|
|
5010
|
+
hex: "#2c211a"
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
name: "primaryForeground",
|
|
5014
|
+
hex: "#fff6e8"
|
|
5015
|
+
},
|
|
5016
|
+
{
|
|
5017
|
+
name: "border",
|
|
5018
|
+
hex: "#8a7660"
|
|
5019
|
+
}
|
|
5020
|
+
]
|
|
5021
|
+
});
|
|
5022
|
+
const loomFlax = defineCuratedPalette({
|
|
5023
|
+
authoringKey: "loom-flax",
|
|
5024
|
+
name: "Loom — Flax",
|
|
5025
|
+
description: "Pale sage, pine ink and a deep green patch.",
|
|
5026
|
+
tags: {
|
|
5027
|
+
tone: "classic",
|
|
5028
|
+
energy: "calm",
|
|
5029
|
+
era: "organic"
|
|
5030
|
+
},
|
|
5031
|
+
mode: "light",
|
|
5032
|
+
colors: [
|
|
5033
|
+
{
|
|
5034
|
+
name: "primary",
|
|
5035
|
+
hex: "#33695a"
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
name: "secondary",
|
|
5039
|
+
hex: "#222b26"
|
|
5040
|
+
},
|
|
5041
|
+
{
|
|
5042
|
+
name: "accent",
|
|
5043
|
+
hex: "#a34d22"
|
|
5044
|
+
},
|
|
5045
|
+
{
|
|
5046
|
+
name: "success",
|
|
5047
|
+
hex: "#2c7a45"
|
|
5048
|
+
},
|
|
5049
|
+
{
|
|
5050
|
+
name: "warning",
|
|
5051
|
+
hex: "#7a5200"
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
name: "destructive",
|
|
5055
|
+
hex: "#a93226"
|
|
5056
|
+
},
|
|
5057
|
+
{
|
|
5058
|
+
name: "background",
|
|
5059
|
+
hex: "#eef1ea"
|
|
5060
|
+
},
|
|
5061
|
+
{
|
|
5062
|
+
name: "surface",
|
|
5063
|
+
hex: "#f9faf6"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
name: "surfaceAlt",
|
|
5067
|
+
hex: "#dfe4d6"
|
|
5068
|
+
},
|
|
5069
|
+
{
|
|
5070
|
+
name: "muted",
|
|
5071
|
+
hex: "#4c5a51"
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
name: "text",
|
|
5075
|
+
hex: "#222c27"
|
|
5076
|
+
},
|
|
5077
|
+
{
|
|
5078
|
+
name: "primaryForeground",
|
|
5079
|
+
hex: "#f2f6ec"
|
|
5080
|
+
},
|
|
5081
|
+
{
|
|
5082
|
+
name: "border",
|
|
5083
|
+
hex: "#68776d"
|
|
5084
|
+
}
|
|
5085
|
+
]
|
|
5086
|
+
});
|
|
5087
|
+
const loomEmber = defineCuratedPalette({
|
|
5088
|
+
authoringKey: "loom-ember",
|
|
5089
|
+
name: "Loom — Ember",
|
|
5090
|
+
description: "Deep espresso, cream ink and a terracotta patch.",
|
|
5091
|
+
tags: {
|
|
5092
|
+
tone: "classic",
|
|
5093
|
+
energy: "calm",
|
|
5094
|
+
era: "organic"
|
|
5095
|
+
},
|
|
5096
|
+
mode: "dark",
|
|
5097
|
+
colors: [
|
|
5098
|
+
{
|
|
5099
|
+
name: "primary",
|
|
5100
|
+
hex: "#a95224"
|
|
5101
|
+
},
|
|
5102
|
+
{
|
|
5103
|
+
name: "secondary",
|
|
5104
|
+
hex: "#140d0a"
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
name: "accent",
|
|
5108
|
+
hex: "#e0a83c"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
name: "success",
|
|
5112
|
+
hex: "#7cc79b"
|
|
5113
|
+
},
|
|
5114
|
+
{
|
|
5115
|
+
name: "warning",
|
|
5116
|
+
hex: "#e3b25c"
|
|
5117
|
+
},
|
|
5118
|
+
{
|
|
5119
|
+
name: "destructive",
|
|
5120
|
+
hex: "#ec8d80"
|
|
5121
|
+
},
|
|
5122
|
+
{
|
|
5123
|
+
name: "background",
|
|
5124
|
+
hex: "#201512"
|
|
5125
|
+
},
|
|
5126
|
+
{
|
|
5127
|
+
name: "surface",
|
|
5128
|
+
hex: "#2b1e19"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
name: "surfaceAlt",
|
|
5132
|
+
hex: "#170f0c"
|
|
5133
|
+
},
|
|
5134
|
+
{
|
|
5135
|
+
name: "muted",
|
|
5136
|
+
hex: "#c9b29a"
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
name: "text",
|
|
5140
|
+
hex: "#f4e8d4"
|
|
5141
|
+
},
|
|
5142
|
+
{
|
|
5143
|
+
name: "primaryForeground",
|
|
5144
|
+
hex: "#fff6e8"
|
|
5145
|
+
},
|
|
5146
|
+
{
|
|
5147
|
+
name: "border",
|
|
5148
|
+
hex: "#9a8264"
|
|
5149
|
+
}
|
|
5150
|
+
]
|
|
5151
|
+
});
|
|
4886
5152
|
//#endregion
|
|
4887
5153
|
//#region ../theme-core/src/palette/curated/index.ts
|
|
4888
5154
|
function admitCuratedPaletteDefinition(definition) {
|
|
@@ -4913,6 +5179,18 @@ const curatedPalettes = [
|
|
|
4913
5179
|
];
|
|
4914
5180
|
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
4915
5181
|
const styleSuggestedPalettes = [
|
|
5182
|
+
{
|
|
5183
|
+
...admitCuratedPaletteDefinition(loomHearth),
|
|
5184
|
+
ownerStyleId: "site-style:loom"
|
|
5185
|
+
},
|
|
5186
|
+
{
|
|
5187
|
+
...admitCuratedPaletteDefinition(loomFlax),
|
|
5188
|
+
ownerStyleId: "site-style:loom"
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
...admitCuratedPaletteDefinition(loomEmber),
|
|
5192
|
+
ownerStyleId: "site-style:loom"
|
|
5193
|
+
},
|
|
4916
5194
|
{
|
|
4917
5195
|
...admitCuratedPaletteDefinition(fulcrumDeepGreen),
|
|
4918
5196
|
ownerStyleId: "site-style:fulcrum"
|
|
@@ -6381,54 +6659,93 @@ function defaultTypographyForRecipe(recipe) {
|
|
|
6381
6659
|
case "classic-serif": return classicSerifTypography;
|
|
6382
6660
|
}
|
|
6383
6661
|
}
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6662
|
+
/** Loom: the working face is Figtree; Fraunces owns display and quote copy. */
|
|
6663
|
+
const loomTypography = {
|
|
6664
|
+
body: {
|
|
6665
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6666
|
+
size: "lg",
|
|
6667
|
+
weight: "regular",
|
|
6668
|
+
lineHeight: "relaxed",
|
|
6669
|
+
letterSpacing: "normal"
|
|
6670
|
+
},
|
|
6671
|
+
smallHeading: {
|
|
6672
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6673
|
+
weight: "semibold"
|
|
6674
|
+
},
|
|
6675
|
+
headings: {
|
|
6676
|
+
default: {
|
|
6677
|
+
family: "Fraunces, Georgia, serif",
|
|
6678
|
+
weight: "semibold",
|
|
6679
|
+
lineHeight: "normal",
|
|
6680
|
+
letterSpacing: "tight",
|
|
6681
|
+
italic: null,
|
|
6682
|
+
case: null
|
|
6683
|
+
},
|
|
6684
|
+
h1: {
|
|
6685
|
+
size: "2xl",
|
|
6686
|
+
weight: "semibold",
|
|
6687
|
+
lineHeight: "tight",
|
|
6688
|
+
letterSpacing: "tight",
|
|
6689
|
+
italic: null
|
|
6690
|
+
},
|
|
6691
|
+
h2: {
|
|
6692
|
+
size: "xl",
|
|
6693
|
+
weight: "semibold",
|
|
6694
|
+
lineHeight: "snug",
|
|
6695
|
+
letterSpacing: "tight",
|
|
6696
|
+
italic: null
|
|
6697
|
+
},
|
|
6698
|
+
h3: {
|
|
6699
|
+
size: "md",
|
|
6700
|
+
weight: "semibold",
|
|
6701
|
+
lineHeight: "snug",
|
|
6702
|
+
letterSpacing: "normal",
|
|
6703
|
+
italic: null
|
|
6704
|
+
}
|
|
6705
|
+
},
|
|
6706
|
+
scale: "spacious"
|
|
6707
|
+
};
|
|
6708
|
+
//#endregion
|
|
6709
|
+
//#region ../theme-core/src/site-styles/designState.ts
|
|
6710
|
+
const designResolutionPolicySchema = z.enum([
|
|
6711
|
+
"generated",
|
|
6712
|
+
"user",
|
|
6713
|
+
"admin",
|
|
6714
|
+
"sdk"
|
|
6715
|
+
]);
|
|
6716
|
+
const runtimeStyleFieldNameSchema = z.enum(themeV2RuntimeStyleFieldNames);
|
|
6717
|
+
const nonEmptyRuntimeStyleFieldNamesSchema = z.array(runtimeStyleFieldNameSchema).min(1).transform((fields) => [fields[0], ...fields.slice(1)]);
|
|
6718
|
+
const styleAuthoritySchema = z.discriminatedUnion("kind", [z.object({
|
|
6719
|
+
kind: z.literal("theme-v2"),
|
|
6720
|
+
source: designResolutionPolicySchema,
|
|
6721
|
+
siteStyleId: z.string().min(1).transform(asSiteStyleId),
|
|
6722
|
+
templateId: z.string().min(1).transform(asDesignSystemTemplateId),
|
|
6723
|
+
templateVersion: z.number().int().nonnegative(),
|
|
6724
|
+
resolverVersion: z.number().int().nonnegative()
|
|
6725
|
+
}).strict(), z.object({
|
|
6726
|
+
kind: z.literal("advanced-detached"),
|
|
6727
|
+
reason: z.literal("detached-custom-runtime-fields")
|
|
6728
|
+
}).strict()]);
|
|
6729
|
+
z.object({
|
|
6730
|
+
unit: z.literal("block-runtime-fields"),
|
|
6731
|
+
blockId: z.string().min(1).transform(asDesignBlockId),
|
|
6732
|
+
fields: nonEmptyRuntimeStyleFieldNamesSchema,
|
|
6733
|
+
authority: styleAuthoritySchema
|
|
6734
|
+
}).strict();
|
|
6735
|
+
asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
|
|
6736
|
+
/**
|
|
6737
|
+
* Curated library of gradient presets.
|
|
6738
|
+
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
6739
|
+
*/
|
|
6740
|
+
const GRADIENT_PRESETS = [
|
|
6741
|
+
{
|
|
6742
|
+
id: "primary-secondary",
|
|
6743
|
+
name: "Primary to Secondary",
|
|
6744
|
+
description: "Blend your primary and secondary brand colors",
|
|
6745
|
+
type: "linear",
|
|
6746
|
+
angle: 135,
|
|
6747
|
+
stops: [{
|
|
6748
|
+
color: "primary-500",
|
|
6432
6749
|
position: 0
|
|
6433
6750
|
}, {
|
|
6434
6751
|
color: "secondary-500",
|
|
@@ -6789,8 +7106,39 @@ const curatedSiteStyleIdValues = [
|
|
|
6789
7106
|
"site-style:poster",
|
|
6790
7107
|
"site-style:lantern",
|
|
6791
7108
|
"site-style:measure",
|
|
6792
|
-
"site-style:folio"
|
|
7109
|
+
"site-style:folio",
|
|
7110
|
+
"site-style:loom"
|
|
6793
7111
|
];
|
|
7112
|
+
/** Keyed by the offered looks, so adding a look without its hero Look doesn't compile. */
|
|
7113
|
+
const bookingPageNoPhotoHeroLookIds = {
|
|
7114
|
+
"site-style:fulcrum": "hero-photo-beside-text",
|
|
7115
|
+
"site-style:folio": "hero-page-head",
|
|
7116
|
+
"site-style:measure": "hero-page-head",
|
|
7117
|
+
"site-style:grounded-practice": "hero-contained-intro",
|
|
7118
|
+
"site-style:lantern": "hero-framed-title",
|
|
7119
|
+
"site-style:poster": "hero-page-head"
|
|
7120
|
+
};
|
|
7121
|
+
function bookingPageOfferingFor(siteStyleId) {
|
|
7122
|
+
const entry = Object.entries(bookingPageNoPhotoHeroLookIds).find(([id]) => id === siteStyleId);
|
|
7123
|
+
return entry ? { noPhotoHeroLookId: asAppearancePresetId(entry[1]) } : void 0;
|
|
7124
|
+
}
|
|
7125
|
+
function clientStyleMatchesSite(siteSlugs, target) {
|
|
7126
|
+
if (target.audience !== "site-picker" && target.audience !== "local-demo") return false;
|
|
7127
|
+
return target.siteSlug != null && siteSlugs.includes(target.siteSlug);
|
|
7128
|
+
}
|
|
7129
|
+
/** The same eligibility decision governs offering and the apply write boundary. */
|
|
7130
|
+
function siteStyleOfferingDecision(offering, target) {
|
|
7131
|
+
if (target.audience === "lab") return { kind: "offered" };
|
|
7132
|
+
const localDemo = target.audience === "local-demo" && target.environment === "local-development";
|
|
7133
|
+
switch (offering.kind) {
|
|
7134
|
+
case "public": return target.audience === "booking-page" && !offering.bookingPage ? { kind: "audience-mismatch" } : { kind: "offered" };
|
|
7135
|
+
case "lab": return localDemo ? { kind: "offered" } : { kind: "lab" };
|
|
7136
|
+
case "client": return localDemo || clientStyleMatchesSite(offering.siteSlugs, target) ? { kind: "offered" } : { kind: "client-site-mismatch" };
|
|
7137
|
+
}
|
|
7138
|
+
}
|
|
7139
|
+
function offeredSiteStyles(target, catalogue = curatedSiteStyles) {
|
|
7140
|
+
return catalogue.filter((style) => siteStyleOfferingDecision(style.offering, target).kind === "offered");
|
|
7141
|
+
}
|
|
6794
7142
|
const quietBudget = {
|
|
6795
7143
|
accentDensity: "low",
|
|
6796
7144
|
panelDensity: "medium",
|
|
@@ -6986,6 +7334,10 @@ function defineHeaderCuration(input) {
|
|
|
6986
7334
|
return [toEntry(first), ...remaining.map(toEntry)];
|
|
6987
7335
|
}
|
|
6988
7336
|
const headerCurationBySiteStyle = {
|
|
7337
|
+
"site-style:loom": defineHeaderCuration([{
|
|
7338
|
+
layoutId: "classic",
|
|
7339
|
+
styleIds: ["serif-line"]
|
|
7340
|
+
}]),
|
|
6989
7341
|
"site-style:clarity-zen-blue": defineHeaderCuration([{
|
|
6990
7342
|
layoutId: "centered",
|
|
6991
7343
|
styleIds: [
|
|
@@ -7091,120 +7443,586 @@ const headerCurationBySiteStyle = {
|
|
|
7091
7443
|
]
|
|
7092
7444
|
},
|
|
7093
7445
|
{
|
|
7094
|
-
layoutId: "floating",
|
|
7095
|
-
styleIds: ["minimal-surface", "glass"]
|
|
7096
|
-
}
|
|
7097
|
-
]),
|
|
7098
|
-
"site-style:poster": defineHeaderCuration([{
|
|
7099
|
-
layoutId: "classic",
|
|
7100
|
-
styleIds: [
|
|
7101
|
-
"brand-underline",
|
|
7102
|
-
"fine-line",
|
|
7103
|
-
"minimal"
|
|
7104
|
-
]
|
|
7105
|
-
}]),
|
|
7106
|
-
"site-style:lantern": defineHeaderCuration([{
|
|
7107
|
-
layoutId: "centered",
|
|
7108
|
-
styleIds: [
|
|
7109
|
-
"serif-line",
|
|
7110
|
-
"minimal",
|
|
7111
|
-
"fine-line"
|
|
7112
|
-
]
|
|
7113
|
-
}, {
|
|
7114
|
-
layoutId: "classic",
|
|
7115
|
-
styleIds: [
|
|
7116
|
-
"minimal",
|
|
7117
|
-
"serif-line",
|
|
7118
|
-
"fine-line"
|
|
7119
|
-
]
|
|
7120
|
-
}]),
|
|
7121
|
-
"site-style:folio": defineHeaderCuration([
|
|
7446
|
+
layoutId: "floating",
|
|
7447
|
+
styleIds: ["minimal-surface", "glass"]
|
|
7448
|
+
}
|
|
7449
|
+
]),
|
|
7450
|
+
"site-style:poster": defineHeaderCuration([{
|
|
7451
|
+
layoutId: "classic",
|
|
7452
|
+
styleIds: [
|
|
7453
|
+
"brand-underline",
|
|
7454
|
+
"fine-line",
|
|
7455
|
+
"minimal"
|
|
7456
|
+
]
|
|
7457
|
+
}]),
|
|
7458
|
+
"site-style:lantern": defineHeaderCuration([{
|
|
7459
|
+
layoutId: "centered",
|
|
7460
|
+
styleIds: [
|
|
7461
|
+
"serif-line",
|
|
7462
|
+
"minimal",
|
|
7463
|
+
"fine-line"
|
|
7464
|
+
]
|
|
7465
|
+
}, {
|
|
7466
|
+
layoutId: "classic",
|
|
7467
|
+
styleIds: [
|
|
7468
|
+
"minimal",
|
|
7469
|
+
"serif-line",
|
|
7470
|
+
"fine-line"
|
|
7471
|
+
]
|
|
7472
|
+
}]),
|
|
7473
|
+
"site-style:folio": defineHeaderCuration([
|
|
7474
|
+
{
|
|
7475
|
+
layoutId: "floating",
|
|
7476
|
+
styleIds: ["minimal-surface", "glass"]
|
|
7477
|
+
},
|
|
7478
|
+
{
|
|
7479
|
+
layoutId: "classic",
|
|
7480
|
+
styleIds: [
|
|
7481
|
+
"minimal",
|
|
7482
|
+
"serif-line",
|
|
7483
|
+
"fine-line",
|
|
7484
|
+
"soft-bar"
|
|
7485
|
+
]
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
layoutId: "centered",
|
|
7489
|
+
styleIds: [
|
|
7490
|
+
"serif-line",
|
|
7491
|
+
"fine-line",
|
|
7492
|
+
"minimal",
|
|
7493
|
+
"soft-bar"
|
|
7494
|
+
]
|
|
7495
|
+
}
|
|
7496
|
+
]),
|
|
7497
|
+
"site-style:measure": defineHeaderCuration([{
|
|
7498
|
+
layoutId: "classic",
|
|
7499
|
+
styleIds: ["fine-line", "minimal"]
|
|
7500
|
+
}])
|
|
7501
|
+
};
|
|
7502
|
+
/** Optional authored overrides remain absent when the catalogue did not supply them. */
|
|
7503
|
+
function authoredSiteStyleOverrides(input) {
|
|
7504
|
+
return {
|
|
7505
|
+
...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
|
|
7506
|
+
...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
|
|
7507
|
+
...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
|
|
7508
|
+
...input.heroTypography ? { heroTypography: input.heroTypography } : {}
|
|
7509
|
+
};
|
|
7510
|
+
}
|
|
7511
|
+
function siteStyleFontDefaults(input) {
|
|
7512
|
+
const typography = input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography);
|
|
7513
|
+
return {
|
|
7514
|
+
typography,
|
|
7515
|
+
fontPairings: input.fontPairings ?? [{
|
|
7516
|
+
id: "look-default",
|
|
7517
|
+
heading: typography.headings.default.family,
|
|
7518
|
+
body: typography.body.family
|
|
7519
|
+
}]
|
|
7520
|
+
};
|
|
7521
|
+
}
|
|
7522
|
+
function withBookingPageOffering(offering, bookingPage) {
|
|
7523
|
+
return bookingPage ? {
|
|
7524
|
+
...offering,
|
|
7525
|
+
bookingPage
|
|
7526
|
+
} : offering;
|
|
7527
|
+
}
|
|
7528
|
+
function defineCuratedSiteStyle(input) {
|
|
7529
|
+
const offering = input.offering ?? {
|
|
7530
|
+
kind: "public",
|
|
7531
|
+
generation: { kind: "explicit_only" }
|
|
7532
|
+
};
|
|
7533
|
+
const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
|
|
7534
|
+
return {
|
|
7535
|
+
id: asSiteStyleId(input.id),
|
|
7536
|
+
name: input.name,
|
|
7537
|
+
description: input.description,
|
|
7538
|
+
generationBrief: input.generationBrief,
|
|
7539
|
+
selectionKeywordRules: input.selectionKeywordRules ?? [],
|
|
7540
|
+
offering: offering.kind === "public" ? withBookingPageOffering(offering, bookingPageOfferingFor(input.id)) : offering,
|
|
7541
|
+
template: curatedStyleTemplate(input),
|
|
7542
|
+
contentTemplateDefaults: input.contentTemplateDefaults,
|
|
7543
|
+
headingDecoration: input.headingDecoration ?? noHeadingDecoration,
|
|
7544
|
+
...authoredSiteStyleOverrides(input),
|
|
7545
|
+
componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
|
|
7546
|
+
looks: input.looks ?? {
|
|
7547
|
+
kind: "recipe",
|
|
7548
|
+
recommendedAppearancePresetIds
|
|
7549
|
+
},
|
|
7550
|
+
headerCuration: headerCurationBySiteStyle[input.id],
|
|
7551
|
+
headerStyleRecipes: input.headerStyleRecipes,
|
|
7552
|
+
footerLookRecipes: input.footerLookRecipes,
|
|
7553
|
+
recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
|
|
7554
|
+
buttonStyleChoices: input.buttonStyleChoices,
|
|
7555
|
+
paletteRecommendations: input.paletteRecommendations,
|
|
7556
|
+
...siteStyleFontDefaults(input)
|
|
7557
|
+
};
|
|
7558
|
+
}
|
|
7559
|
+
function buttonChoice(styleId, note, parameters) {
|
|
7560
|
+
const selection = parameters === void 0 ? defaultButtonStyleSelectionFor(styleId) : buttonStyleSelectionSchema.parse({
|
|
7561
|
+
styleId,
|
|
7562
|
+
parameters
|
|
7563
|
+
});
|
|
7564
|
+
return note ? {
|
|
7565
|
+
...selection,
|
|
7566
|
+
note
|
|
7567
|
+
} : selection;
|
|
7568
|
+
}
|
|
7569
|
+
function paletteRecommendation(authoringKey, note) {
|
|
7570
|
+
const valueKey = requireCuratedPaletteValueKey(asCuratedPaletteAuthoringKey(authoringKey));
|
|
7571
|
+
return note ? {
|
|
7572
|
+
id: valueKey,
|
|
7573
|
+
note
|
|
7574
|
+
} : { id: valueKey };
|
|
7575
|
+
}
|
|
7576
|
+
/**
|
|
7577
|
+
* V1 generated site styles are curated product presets, not AI-authored design
|
|
7578
|
+
* systems. Generators choose one of these bounded entries, then downstream
|
|
7579
|
+
* resolve/compile steps translate it to Theme and block runtime fields.
|
|
7580
|
+
*/
|
|
7581
|
+
const id = asAppearancePresetId;
|
|
7582
|
+
const quieterOrStandard = { titleSize: ["quiet", "auto"] };
|
|
7583
|
+
/** Loom: sheets for cards, a ground-aware statement, and highlights on the section. */
|
|
7584
|
+
const loomRoles = {
|
|
7585
|
+
card: "sheet",
|
|
7586
|
+
statement: {
|
|
7587
|
+
default: "brand",
|
|
7588
|
+
brand: "deep",
|
|
7589
|
+
deep: "inverse"
|
|
7590
|
+
},
|
|
7591
|
+
highlight: "section"
|
|
7592
|
+
};
|
|
7593
|
+
const loomLooks = {
|
|
7594
|
+
kind: "offers",
|
|
7595
|
+
skin: "loom",
|
|
7596
|
+
skinTokens: {
|
|
7597
|
+
radius: "14px",
|
|
7598
|
+
rule: "2px",
|
|
7599
|
+
"mark-length": "30px",
|
|
7600
|
+
"mark-weight": "4px",
|
|
7601
|
+
plate: "10px",
|
|
7602
|
+
gutter: "24px",
|
|
7603
|
+
"copy-gap": "1.25rem",
|
|
7604
|
+
"stack-gap": "2.5rem",
|
|
7605
|
+
"shadow-offset": "3px",
|
|
7606
|
+
wrap: "1140px",
|
|
7607
|
+
margin: "2.5rem"
|
|
7608
|
+
},
|
|
7609
|
+
fontLoading: {
|
|
7610
|
+
extraHeadingFontWeights: [
|
|
7611
|
+
560,
|
|
7612
|
+
600,
|
|
7613
|
+
640
|
|
7614
|
+
],
|
|
7615
|
+
italicHeadingFontWeights: [400, 480],
|
|
7616
|
+
extraBodyFontWeights: [
|
|
7617
|
+
400,
|
|
7618
|
+
600,
|
|
7619
|
+
700
|
|
7620
|
+
]
|
|
7621
|
+
},
|
|
7622
|
+
surfaces: {
|
|
7623
|
+
base: {
|
|
7624
|
+
kind: "token",
|
|
7625
|
+
token: "background"
|
|
7626
|
+
},
|
|
7627
|
+
band: {
|
|
7628
|
+
kind: "token",
|
|
7629
|
+
token: "surfaceAlt"
|
|
7630
|
+
},
|
|
7631
|
+
brand: {
|
|
7632
|
+
kind: "token",
|
|
7633
|
+
token: "primary",
|
|
7634
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7635
|
+
},
|
|
7636
|
+
deep: {
|
|
7637
|
+
kind: "token",
|
|
7638
|
+
token: "secondary",
|
|
7639
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7640
|
+
},
|
|
7641
|
+
sheet: {
|
|
7642
|
+
kind: "token",
|
|
7643
|
+
token: "surface",
|
|
7644
|
+
roleOnly: true
|
|
7645
|
+
},
|
|
7646
|
+
inverse: {
|
|
7647
|
+
kind: "token",
|
|
7648
|
+
token: "text",
|
|
7649
|
+
roleOnly: true,
|
|
7650
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
|
|
7651
|
+
}
|
|
7652
|
+
},
|
|
7653
|
+
rhythm: {
|
|
7654
|
+
"flow:quiet": [
|
|
7655
|
+
"base",
|
|
7656
|
+
"band",
|
|
7657
|
+
"base",
|
|
7658
|
+
"base",
|
|
7659
|
+
"band",
|
|
7660
|
+
"base"
|
|
7661
|
+
],
|
|
7662
|
+
"flow:balanced": [
|
|
7663
|
+
"base",
|
|
7664
|
+
"band",
|
|
7665
|
+
"base",
|
|
7666
|
+
"band",
|
|
7667
|
+
"brand",
|
|
7668
|
+
"base"
|
|
7669
|
+
],
|
|
7670
|
+
"flow:expressive": [
|
|
7671
|
+
"base",
|
|
7672
|
+
"brand",
|
|
7673
|
+
"base",
|
|
7674
|
+
"band",
|
|
7675
|
+
"base",
|
|
7676
|
+
"band"
|
|
7677
|
+
]
|
|
7678
|
+
},
|
|
7679
|
+
offers: [
|
|
7680
|
+
{
|
|
7681
|
+
id: id("event-details-panel"),
|
|
7682
|
+
treatment: "details-panel",
|
|
7683
|
+
roleMap: loomRoles
|
|
7684
|
+
},
|
|
7685
|
+
{
|
|
7686
|
+
id: id("event-details-header"),
|
|
7687
|
+
treatment: "details-header",
|
|
7688
|
+
roleMap: loomRoles
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
id: id("hero-photo-beside-text"),
|
|
7692
|
+
treatment: "hero-framed",
|
|
7693
|
+
roleMap: {
|
|
7694
|
+
...loomRoles,
|
|
7695
|
+
highlight: "deep"
|
|
7696
|
+
}
|
|
7697
|
+
},
|
|
7698
|
+
{
|
|
7699
|
+
id: id("intro-statement-beside-text"),
|
|
7700
|
+
treatment: "intro-statement",
|
|
7701
|
+
roleMap: loomRoles
|
|
7702
|
+
},
|
|
7703
|
+
{
|
|
7704
|
+
id: id("team-members-tall-portraits"),
|
|
7705
|
+
treatment: "team-tall-portraits",
|
|
7706
|
+
roleMap: loomRoles
|
|
7707
|
+
},
|
|
7708
|
+
{
|
|
7709
|
+
id: id("shop-price-cards-featured"),
|
|
7710
|
+
treatment: "shop-price-cards-featured",
|
|
7711
|
+
roleMap: loomRoles
|
|
7712
|
+
},
|
|
7713
|
+
{
|
|
7714
|
+
id: id("card-list-plates"),
|
|
7715
|
+
treatment: "items-plates",
|
|
7716
|
+
roleMap: loomRoles,
|
|
7717
|
+
removeKnobs: ["showPhotos"],
|
|
7718
|
+
knobValues: { dates: ["next-dates"] },
|
|
7719
|
+
itemRoles: { items: "card" }
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
id: id("feature-cards-cards"),
|
|
7723
|
+
treatment: "cards-sewn",
|
|
7724
|
+
roleMap: loomRoles,
|
|
7725
|
+
removeKnobs: ["showPhotos"],
|
|
7726
|
+
knobValues: {
|
|
7727
|
+
cardMarker: ["none"],
|
|
7728
|
+
actionStyle: ["link"]
|
|
7729
|
+
}
|
|
7730
|
+
},
|
|
7731
|
+
{
|
|
7732
|
+
id: id("media-text-photo-beside-text"),
|
|
7733
|
+
treatment: "media-framed",
|
|
7734
|
+
roleMap: loomRoles
|
|
7735
|
+
},
|
|
7736
|
+
{
|
|
7737
|
+
id: id("event-calendar-session-cards"),
|
|
7738
|
+
treatment: "calendar-session-cards",
|
|
7739
|
+
roleMap: loomRoles,
|
|
7740
|
+
removeKnobs: ["showPhotos"]
|
|
7741
|
+
},
|
|
7742
|
+
{
|
|
7743
|
+
id: id("testimonials-lead-quote"),
|
|
7744
|
+
treatment: "quote-lead",
|
|
7745
|
+
roleMap: loomRoles,
|
|
7746
|
+
itemRoles: {
|
|
7747
|
+
items: "card",
|
|
7748
|
+
at: { first: "highlight" }
|
|
7749
|
+
}
|
|
7750
|
+
},
|
|
7751
|
+
{
|
|
7752
|
+
id: id("faq-questions-under-title"),
|
|
7753
|
+
treatment: "faq-under",
|
|
7754
|
+
roleMap: loomRoles
|
|
7755
|
+
},
|
|
7756
|
+
{
|
|
7757
|
+
id: id("cta-centred"),
|
|
7758
|
+
treatment: "cta-centred",
|
|
7759
|
+
roleMap: loomRoles
|
|
7760
|
+
},
|
|
7761
|
+
{
|
|
7762
|
+
id: id("newsletter-signup-text-beside"),
|
|
7763
|
+
treatment: "signup-text-beside",
|
|
7764
|
+
roleMap: loomRoles
|
|
7765
|
+
},
|
|
7766
|
+
{
|
|
7767
|
+
id: id("body-text-reading-column"),
|
|
7768
|
+
treatment: "body-reading",
|
|
7769
|
+
roleMap: loomRoles
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
id: id("image-gallery-captions-under"),
|
|
7773
|
+
treatment: "gallery-captions-under",
|
|
7774
|
+
roleMap: loomRoles
|
|
7775
|
+
},
|
|
7776
|
+
{
|
|
7777
|
+
id: id("form-below-introduction"),
|
|
7778
|
+
treatment: "form-below",
|
|
7779
|
+
roleMap: loomRoles
|
|
7780
|
+
},
|
|
7781
|
+
{
|
|
7782
|
+
id: id("location-map-beside-address"),
|
|
7783
|
+
treatment: "map-beside-address",
|
|
7784
|
+
roleMap: loomRoles
|
|
7785
|
+
},
|
|
7786
|
+
{
|
|
7787
|
+
id: id("event-calendar-month-grid"),
|
|
7788
|
+
treatment: "calendar-month-grid",
|
|
7789
|
+
roleMap: loomRoles
|
|
7790
|
+
},
|
|
7791
|
+
{
|
|
7792
|
+
id: id("form-beside-introduction-arched-panel"),
|
|
7793
|
+
treatment: "form-beside",
|
|
7794
|
+
roleMap: loomRoles
|
|
7795
|
+
},
|
|
7796
|
+
{
|
|
7797
|
+
id: id("newsletter-signup-in-arch"),
|
|
7798
|
+
treatment: "signup-frame",
|
|
7799
|
+
roleMap: loomRoles
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
id: id("image-gallery-square-tiles"),
|
|
7803
|
+
treatment: "gallery-square-tiles",
|
|
7804
|
+
roleMap: loomRoles
|
|
7805
|
+
},
|
|
7806
|
+
{
|
|
7807
|
+
id: id("media-text-circle-beside-text"),
|
|
7808
|
+
treatment: "media-circle",
|
|
7809
|
+
roleMap: loomRoles
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
id: id("hero-headline-row"),
|
|
7813
|
+
treatment: "hero-headline-row",
|
|
7814
|
+
roleMap: {
|
|
7815
|
+
...loomRoles,
|
|
7816
|
+
highlight: "deep"
|
|
7817
|
+
}
|
|
7818
|
+
},
|
|
7819
|
+
{
|
|
7820
|
+
id: id("hero-copy-over-gallery"),
|
|
7821
|
+
treatment: "hero-copy-over-gallery",
|
|
7822
|
+
roleMap: {
|
|
7823
|
+
...loomRoles,
|
|
7824
|
+
highlight: "deep"
|
|
7825
|
+
}
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
id: id("hero-page-head"),
|
|
7829
|
+
treatment: "hero-page-head",
|
|
7830
|
+
roleMap: {
|
|
7831
|
+
...loomRoles,
|
|
7832
|
+
highlight: "deep"
|
|
7833
|
+
}
|
|
7834
|
+
},
|
|
7835
|
+
{
|
|
7836
|
+
id: id("card-list-accent-edged-cards"),
|
|
7837
|
+
treatment: "items-accent-edged-cards",
|
|
7838
|
+
roleMap: loomRoles
|
|
7839
|
+
},
|
|
7840
|
+
{
|
|
7841
|
+
id: id("feature-cards-open-columns"),
|
|
7842
|
+
treatment: "cards-open-columns",
|
|
7843
|
+
roleMap: loomRoles
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
id: id("feature-cards-lead-support"),
|
|
7847
|
+
treatment: "cards-lead-support",
|
|
7848
|
+
roleMap: loomRoles
|
|
7849
|
+
},
|
|
7850
|
+
{
|
|
7851
|
+
id: id("feature-cards-index"),
|
|
7852
|
+
treatment: "cards-index",
|
|
7853
|
+
roleMap: loomRoles
|
|
7854
|
+
},
|
|
7855
|
+
{
|
|
7856
|
+
id: id("feature-cards-sequence"),
|
|
7857
|
+
treatment: "cards-sequence",
|
|
7858
|
+
roleMap: loomRoles
|
|
7859
|
+
},
|
|
7860
|
+
{
|
|
7861
|
+
id: id("event-calendar-ruled-rows"),
|
|
7862
|
+
treatment: "calendar-ruled-rows",
|
|
7863
|
+
roleMap: loomRoles
|
|
7864
|
+
},
|
|
7865
|
+
{
|
|
7866
|
+
id: id("event-calendar-grouped-by-day"),
|
|
7867
|
+
treatment: "calendar-grouped-by-day",
|
|
7868
|
+
roleMap: loomRoles
|
|
7869
|
+
},
|
|
7870
|
+
{
|
|
7871
|
+
id: id("event-calendar-next-three"),
|
|
7872
|
+
treatment: "calendar-next-three",
|
|
7873
|
+
roleMap: loomRoles
|
|
7874
|
+
},
|
|
7875
|
+
{
|
|
7876
|
+
id: id("events-spotlight"),
|
|
7877
|
+
treatment: "events-spotlight",
|
|
7878
|
+
roleMap: loomRoles
|
|
7879
|
+
},
|
|
7880
|
+
{
|
|
7881
|
+
id: id("events-recurring-week"),
|
|
7882
|
+
treatment: "events-recurring-week",
|
|
7883
|
+
roleMap: loomRoles
|
|
7884
|
+
},
|
|
7885
|
+
{
|
|
7886
|
+
id: id("hero-framed-title"),
|
|
7887
|
+
treatment: "hero-framed-title",
|
|
7888
|
+
roleMap: {
|
|
7889
|
+
...loomRoles,
|
|
7890
|
+
highlight: "deep"
|
|
7891
|
+
}
|
|
7892
|
+
},
|
|
7893
|
+
{
|
|
7894
|
+
id: id("testimonials-quote-cards"),
|
|
7895
|
+
treatment: "quote-cards",
|
|
7896
|
+
roleMap: loomRoles
|
|
7897
|
+
},
|
|
7898
|
+
{
|
|
7899
|
+
id: id("testimonials-quote-columns"),
|
|
7900
|
+
treatment: "quote-columns",
|
|
7901
|
+
roleMap: loomRoles
|
|
7902
|
+
},
|
|
7903
|
+
{
|
|
7904
|
+
id: id("testimonials-one-quote"),
|
|
7905
|
+
treatment: "quote-single",
|
|
7906
|
+
roleMap: loomRoles
|
|
7907
|
+
},
|
|
7908
|
+
{
|
|
7909
|
+
id: id("testimonials-one-at-a-time"),
|
|
7910
|
+
treatment: "quote-one-at-a-time",
|
|
7911
|
+
roleMap: loomRoles
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
id: id("testimonials-scroll-row"),
|
|
7915
|
+
treatment: "quote-scroll-row",
|
|
7916
|
+
roleMap: loomRoles
|
|
7917
|
+
},
|
|
7918
|
+
{
|
|
7919
|
+
id: id("event-calendar-month-day"),
|
|
7920
|
+
treatment: "calendar-month-day",
|
|
7921
|
+
roleMap: loomRoles
|
|
7922
|
+
},
|
|
7923
|
+
{
|
|
7924
|
+
id: id("intro-photo-beside-text"),
|
|
7925
|
+
treatment: "intro-photo-beside-text",
|
|
7926
|
+
roleMap: loomRoles
|
|
7927
|
+
},
|
|
7928
|
+
{
|
|
7929
|
+
id: id("newsletter-signup-one-row"),
|
|
7930
|
+
treatment: "signup-one-row",
|
|
7931
|
+
roleMap: loomRoles
|
|
7932
|
+
},
|
|
7933
|
+
{
|
|
7934
|
+
id: id("card-list-wide-slides"),
|
|
7935
|
+
treatment: "items-wide-slides",
|
|
7936
|
+
roleMap: loomRoles
|
|
7937
|
+
},
|
|
7938
|
+
{
|
|
7939
|
+
id: id("card-list-scroll-row"),
|
|
7940
|
+
treatment: "items-scroll-row",
|
|
7941
|
+
roleMap: loomRoles
|
|
7942
|
+
},
|
|
7943
|
+
{
|
|
7944
|
+
id: id("body-text-title-beside"),
|
|
7945
|
+
treatment: "body-beside",
|
|
7946
|
+
roleMap: loomRoles
|
|
7947
|
+
},
|
|
7948
|
+
{
|
|
7949
|
+
id: id("body-text-large-opening"),
|
|
7950
|
+
treatment: "body-opening",
|
|
7951
|
+
roleMap: loomRoles
|
|
7952
|
+
},
|
|
7953
|
+
{
|
|
7954
|
+
id: id("faq-title-beside-questions"),
|
|
7955
|
+
treatment: "faq-beside",
|
|
7956
|
+
roleMap: loomRoles
|
|
7957
|
+
},
|
|
7958
|
+
{
|
|
7959
|
+
id: id("faq-questions-two-columns"),
|
|
7960
|
+
treatment: "faq-columns",
|
|
7961
|
+
roleMap: loomRoles
|
|
7962
|
+
},
|
|
7963
|
+
{
|
|
7964
|
+
id: id("faq-all-answers-showing"),
|
|
7965
|
+
treatment: "faq-open",
|
|
7966
|
+
roleMap: loomRoles
|
|
7967
|
+
},
|
|
7968
|
+
{
|
|
7969
|
+
id: id("image-gallery-lead-photo"),
|
|
7970
|
+
treatment: "gallery-lead-photo",
|
|
7971
|
+
roleMap: loomRoles
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
id: id("cta-title-beside-buttons"),
|
|
7975
|
+
treatment: "cta-title-beside-buttons",
|
|
7976
|
+
roleMap: loomRoles
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
id: id("cta-figure-beside-offer"),
|
|
7980
|
+
treatment: "cta-figure-beside-offer",
|
|
7981
|
+
roleMap: loomRoles
|
|
7982
|
+
},
|
|
7983
|
+
{
|
|
7984
|
+
id: id("location-map-above-details"),
|
|
7985
|
+
treatment: "map-above-details",
|
|
7986
|
+
roleMap: loomRoles
|
|
7987
|
+
},
|
|
7988
|
+
{
|
|
7989
|
+
id: id("location-map-address-over-wide-map"),
|
|
7990
|
+
treatment: "map-address-over-wide-map",
|
|
7991
|
+
roleMap: loomRoles
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
id: id("location-map-entrance-photo"),
|
|
7995
|
+
treatment: "map-entrance-photo",
|
|
7996
|
+
roleMap: loomRoles
|
|
7997
|
+
},
|
|
7998
|
+
{
|
|
7999
|
+
id: id("team-members-portrait-bio"),
|
|
8000
|
+
treatment: "team-portrait-bio",
|
|
8001
|
+
roleMap: loomRoles
|
|
8002
|
+
},
|
|
7122
8003
|
{
|
|
7123
|
-
|
|
7124
|
-
|
|
8004
|
+
id: id("team-members-ruled-names"),
|
|
8005
|
+
treatment: "team-ruled-names",
|
|
8006
|
+
roleMap: loomRoles
|
|
7125
8007
|
},
|
|
7126
8008
|
{
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
"serif-line",
|
|
7131
|
-
"fine-line",
|
|
7132
|
-
"soft-bar"
|
|
7133
|
-
]
|
|
8009
|
+
id: id("shop-price-cards"),
|
|
8010
|
+
treatment: "shop-price-cards",
|
|
8011
|
+
roleMap: loomRoles
|
|
7134
8012
|
},
|
|
7135
8013
|
{
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
8014
|
+
id: id("shop-ruled-prices"),
|
|
8015
|
+
treatment: "shop-ruled-prices",
|
|
8016
|
+
roleMap: loomRoles
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
id: id("card-list-photos-on-top"),
|
|
8020
|
+
treatment: "items-photos-on-top",
|
|
8021
|
+
roleMap: loomRoles
|
|
7143
8022
|
}
|
|
7144
|
-
]
|
|
7145
|
-
"site-style:measure": defineHeaderCuration([{
|
|
7146
|
-
layoutId: "classic",
|
|
7147
|
-
styleIds: ["fine-line", "minimal"]
|
|
7148
|
-
}])
|
|
8023
|
+
]
|
|
7149
8024
|
};
|
|
7150
|
-
|
|
7151
|
-
const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
|
|
7152
|
-
return {
|
|
7153
|
-
id: asSiteStyleId(input.id),
|
|
7154
|
-
name: input.name,
|
|
7155
|
-
description: input.description,
|
|
7156
|
-
generationBrief: input.generationBrief,
|
|
7157
|
-
selectionKeywordRules: input.selectionKeywordRules ?? [],
|
|
7158
|
-
offering: input.offering ?? {
|
|
7159
|
-
kind: "public",
|
|
7160
|
-
generation: { kind: "explicit_only" }
|
|
7161
|
-
},
|
|
7162
|
-
template: curatedStyleTemplate(input),
|
|
7163
|
-
contentTemplateDefaults: input.contentTemplateDefaults,
|
|
7164
|
-
headingDecoration: input.headingDecoration ?? noHeadingDecoration,
|
|
7165
|
-
...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
|
|
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
|
|
7172
|
-
},
|
|
7173
|
-
headerCuration: headerCurationBySiteStyle[input.id],
|
|
7174
|
-
headerStyleRecipes: input.headerStyleRecipes,
|
|
7175
|
-
footerLookRecipes: input.footerLookRecipes,
|
|
7176
|
-
recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
|
|
7177
|
-
buttonStyleChoices: input.buttonStyleChoices,
|
|
7178
|
-
paletteRecommendations: input.paletteRecommendations,
|
|
7179
|
-
typography: input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography),
|
|
7180
|
-
...input.heroTypography ? { heroTypography: input.heroTypography } : {}
|
|
7181
|
-
};
|
|
7182
|
-
}
|
|
7183
|
-
function buttonChoice(styleId, note, parameters) {
|
|
7184
|
-
const selection = parameters === void 0 ? defaultButtonStyleSelectionFor(styleId) : buttonStyleSelectionSchema.parse({
|
|
7185
|
-
styleId,
|
|
7186
|
-
parameters
|
|
7187
|
-
});
|
|
7188
|
-
return note ? {
|
|
7189
|
-
...selection,
|
|
7190
|
-
note
|
|
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. */
|
|
8025
|
+
/** Folio: quiet sheets and band-coloured statements. */
|
|
7208
8026
|
const folioRoles = {
|
|
7209
8027
|
card: "sheet",
|
|
7210
8028
|
statement: {
|
|
@@ -7297,6 +8115,11 @@ const folioLooks = {
|
|
|
7297
8115
|
knobValues: quieterOrStandard,
|
|
7298
8116
|
roleMap: folioRoles
|
|
7299
8117
|
},
|
|
8118
|
+
{
|
|
8119
|
+
id: id("hero-short-photo-banner"),
|
|
8120
|
+
treatment: "hero-short-panel",
|
|
8121
|
+
roleMap: folioRoles
|
|
8122
|
+
},
|
|
7300
8123
|
{
|
|
7301
8124
|
id: id("hero-page-head"),
|
|
7302
8125
|
treatment: "hero-ruled",
|
|
@@ -7644,6 +8467,11 @@ const fulcrumLooks = {
|
|
|
7644
8467
|
knobValues: quieterOrStandard,
|
|
7645
8468
|
roleMap: fulcrumRoles
|
|
7646
8469
|
},
|
|
8470
|
+
{
|
|
8471
|
+
id: id("hero-short-photo-banner"),
|
|
8472
|
+
treatment: "short-panel",
|
|
8473
|
+
roleMap: fulcrumRoles
|
|
8474
|
+
},
|
|
7647
8475
|
{
|
|
7648
8476
|
id: id("hero-page-head"),
|
|
7649
8477
|
treatment: "ruled",
|
|
@@ -7894,6 +8722,14 @@ const posterRoles = {
|
|
|
7894
8722
|
statement: "brand",
|
|
7895
8723
|
highlight: "pop"
|
|
7896
8724
|
};
|
|
8725
|
+
/** The classic hero Looks: the copy block is a sheet, and joins a brand ground it would vanish on. */
|
|
8726
|
+
const posterPhotoGroundRoles = {
|
|
8727
|
+
...posterRoles,
|
|
8728
|
+
card: {
|
|
8729
|
+
default: "sheet",
|
|
8730
|
+
brand: "section"
|
|
8731
|
+
}
|
|
8732
|
+
};
|
|
7897
8733
|
const posterOffers = [
|
|
7898
8734
|
{
|
|
7899
8735
|
id: id("event-details-panel"),
|
|
@@ -7923,13 +8759,12 @@ const posterOffers = [
|
|
|
7923
8759
|
{
|
|
7924
8760
|
id: id("hero-photo-behind-text"),
|
|
7925
8761
|
treatment: "band",
|
|
7926
|
-
roleMap:
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
}
|
|
8762
|
+
roleMap: posterPhotoGroundRoles
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
id: id("hero-short-photo-banner"),
|
|
8766
|
+
treatment: "short-band",
|
|
8767
|
+
roleMap: posterPhotoGroundRoles
|
|
7933
8768
|
},
|
|
7934
8769
|
{
|
|
7935
8770
|
id: id("hero-page-head"),
|
|
@@ -8410,6 +9245,11 @@ const lanternLooks = {
|
|
|
8410
9245
|
knobValues: quieterOrStandard,
|
|
8411
9246
|
roleMap: lanternVeilRoles
|
|
8412
9247
|
},
|
|
9248
|
+
{
|
|
9249
|
+
id: id("hero-short-photo-banner"),
|
|
9250
|
+
treatment: "short-veil",
|
|
9251
|
+
roleMap: lanternVeilRoles
|
|
9252
|
+
},
|
|
8413
9253
|
{
|
|
8414
9254
|
id: id("hero-page-head"),
|
|
8415
9255
|
treatment: "centred",
|
|
@@ -9815,6 +10655,103 @@ const curatedSiteStyles = [
|
|
|
9815
10655
|
paletteRecommendation("soft-natural-sage"),
|
|
9816
10656
|
paletteRecommendation("soft-natural-stone")
|
|
9817
10657
|
]
|
|
10658
|
+
}),
|
|
10659
|
+
defineCuratedSiteStyle({
|
|
10660
|
+
id: "site-style:loom",
|
|
10661
|
+
name: "Loom",
|
|
10662
|
+
offering: { kind: "lab" },
|
|
10663
|
+
description: "Stitched seams, sewn-label buttons and one strong patch of colour on each page. Warm and handmade, for studios and makers who teach.",
|
|
10664
|
+
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.",
|
|
10665
|
+
headingDecoration: noHeadingDecoration,
|
|
10666
|
+
tokenRecipes: {
|
|
10667
|
+
palette: "warm-neutral",
|
|
10668
|
+
contrast: "strong",
|
|
10669
|
+
radius: "soft",
|
|
10670
|
+
shadow: "none",
|
|
10671
|
+
typography: "classic-serif",
|
|
10672
|
+
spacing: "airy",
|
|
10673
|
+
motion: "subtle"
|
|
10674
|
+
},
|
|
10675
|
+
compositionBudget: accentLedQuietBudget,
|
|
10676
|
+
typography: loomTypography,
|
|
10677
|
+
heroTypography: groundedSerifHeroTypography,
|
|
10678
|
+
looks: loomLooks,
|
|
10679
|
+
contentTemplateDefaults: { event: "event-header" },
|
|
10680
|
+
themeOverrides: {
|
|
10681
|
+
accordions: editorialDividedAccordionSystem,
|
|
10682
|
+
testimonialQuote: serifDisplayQuote
|
|
10683
|
+
},
|
|
10684
|
+
headerStyleRecipes: { "serif-line": {
|
|
10685
|
+
tone: "neutral",
|
|
10686
|
+
background: {
|
|
10687
|
+
kind: "token",
|
|
10688
|
+
token: "background"
|
|
10689
|
+
},
|
|
10690
|
+
nav: {
|
|
10691
|
+
kind: "underline",
|
|
10692
|
+
hover: "underline",
|
|
10693
|
+
underlineColorToken: "accent"
|
|
10694
|
+
},
|
|
10695
|
+
navWeight: "semibold",
|
|
10696
|
+
navLinkWeight: "semibold",
|
|
10697
|
+
navTypography: "plain",
|
|
10698
|
+
border: "bottom",
|
|
10699
|
+
shadow: { kind: "explicit-none" },
|
|
10700
|
+
frame: { kind: "none" },
|
|
10701
|
+
logo: {
|
|
10702
|
+
fontFamily: "heading",
|
|
10703
|
+
letterSpacing: "normal",
|
|
10704
|
+
gradient: false
|
|
10705
|
+
},
|
|
10706
|
+
cta: { treatment: "primary" }
|
|
10707
|
+
} },
|
|
10708
|
+
footerLookRecipes: { "footer-links-row": {
|
|
10709
|
+
arrangement: "simple",
|
|
10710
|
+
ground: {
|
|
10711
|
+
kind: "style-surface",
|
|
10712
|
+
surface: "deep"
|
|
10713
|
+
},
|
|
10714
|
+
nav: {
|
|
10715
|
+
weight: "regular",
|
|
10716
|
+
colorToken: "primaryForeground",
|
|
10717
|
+
hoverColorToken: "primaryForeground",
|
|
10718
|
+
typography: "body"
|
|
10719
|
+
},
|
|
10720
|
+
legal: {
|
|
10721
|
+
kind: "separate",
|
|
10722
|
+
bar: {
|
|
10723
|
+
fullBleed: false,
|
|
10724
|
+
background: {
|
|
10725
|
+
kind: "style-surface",
|
|
10726
|
+
surface: "deep"
|
|
10727
|
+
},
|
|
10728
|
+
textColor: "primaryForeground",
|
|
10729
|
+
textAlign: "left",
|
|
10730
|
+
paddingY: "compact",
|
|
10731
|
+
paddingX: "none",
|
|
10732
|
+
borderTop: {
|
|
10733
|
+
width: "medium",
|
|
10734
|
+
colorToken: "primaryForeground"
|
|
10735
|
+
}
|
|
10736
|
+
}
|
|
10737
|
+
},
|
|
10738
|
+
brandAlign: "start",
|
|
10739
|
+
brandLogoSize: "md"
|
|
10740
|
+
} },
|
|
10741
|
+
recommendedFooterLookIds: ["footer-links-row"],
|
|
10742
|
+
buttonStyleChoices: [
|
|
10743
|
+
buttonChoice("sewn-label"),
|
|
10744
|
+
buttonChoice("square-outline", void 0, {
|
|
10745
|
+
corners: "soft",
|
|
10746
|
+
lineWeight: "heavy"
|
|
10747
|
+
}),
|
|
10748
|
+
buttonChoice("editorial-link", void 0, { underline: "persistent-mark" })
|
|
10749
|
+
],
|
|
10750
|
+
paletteRecommendations: [
|
|
10751
|
+
paletteRecommendation("loom-hearth"),
|
|
10752
|
+
paletteRecommendation("loom-flax"),
|
|
10753
|
+
paletteRecommendation("loom-ember")
|
|
10754
|
+
]
|
|
9818
10755
|
})
|
|
9819
10756
|
];
|
|
9820
10757
|
const curatedSiteStylesById = new Map(curatedSiteStyles.map((style) => [style.id, style]));
|
|
@@ -9848,7 +10785,10 @@ function curatedStyleTemplate(input) {
|
|
|
9848
10785
|
};
|
|
9849
10786
|
}
|
|
9850
10787
|
curatedSiteStyles.forEach((style) => {
|
|
9851
|
-
if (style.looks.kind === "offers")
|
|
10788
|
+
if (style.looks.kind === "offers") {
|
|
10789
|
+
validateLookFallbacks(style.looks);
|
|
10790
|
+
validateCalendarModeOffers(style.looks);
|
|
10791
|
+
}
|
|
9852
10792
|
(/* @__PURE__ */ new Set([...Object.values(style.footerLookRecipes ?? {}), ...style.recommendedFooterLookIds.map((id) => resolveFooterLookRecipe(style, id))])).forEach((recipe) => validateFooterRecipeSurfaces(style, recipe));
|
|
9853
10793
|
});
|
|
9854
10794
|
function withTeamLooks(looks, roleMap) {
|
|
@@ -10004,9 +10944,10 @@ function resolveModeArrangement(input) {
|
|
|
10004
10944
|
}
|
|
10005
10945
|
/** Mode is content-owned and independent of the selected Look. */
|
|
10006
10946
|
function readStoredMode(manifest, content) {
|
|
10007
|
-
|
|
10947
|
+
const meaning = manifest.variantMeaning;
|
|
10948
|
+
if (meaning.kind !== "mode") return null;
|
|
10008
10949
|
const stored = content.variant;
|
|
10009
|
-
return
|
|
10950
|
+
return isArrangementMode(stored) && meaning.modes.includes(stored) ? stored : meaning.defaultMode;
|
|
10010
10951
|
}
|
|
10011
10952
|
function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
|
|
10012
10953
|
if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
|
|
@@ -10029,6 +10970,13 @@ function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArr
|
|
|
10029
10970
|
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
10971
|
}));
|
|
10031
10972
|
}
|
|
10973
|
+
/** Every admitted calendar mode needs an automatic Look before a style can load. */
|
|
10974
|
+
function validateCalendarModeOffers(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
10975
|
+
const calendarLooks = catalogue.filter((look) => look.blockKinds.includes("block.event-calendar"));
|
|
10976
|
+
arrangementModes.forEach((mode) => {
|
|
10977
|
+
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}`);
|
|
10978
|
+
});
|
|
10979
|
+
}
|
|
10032
10980
|
function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
|
|
10033
10981
|
if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
|
|
10034
10982
|
if (style.offers.some((offer) => offer.id === entry.id)) return true;
|
|
@@ -10059,7 +11007,9 @@ const arrangementLookHooks = [
|
|
|
10059
11007
|
"data-photo-count",
|
|
10060
11008
|
"data-slot",
|
|
10061
11009
|
"data-control",
|
|
10062
|
-
"data-placeholder-field"
|
|
11010
|
+
"data-placeholder-field",
|
|
11011
|
+
"data-one-person",
|
|
11012
|
+
"data-team-about"
|
|
10063
11013
|
];
|
|
10064
11014
|
appearancePresets.filter(isArrangementAppearancePreset);
|
|
10065
11015
|
/** Closed structural hooks shared by block arrangements and bounded skins. */
|
|
@@ -10316,7 +11266,7 @@ function generatedChoiceSchema(valueSchema) {
|
|
|
10316
11266
|
const generatedBlockDesignIntentSchema = z.object({
|
|
10317
11267
|
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
10318
11268
|
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
10319
|
-
cardRole: generatedChoiceSchema(
|
|
11269
|
+
cardRole: generatedChoiceSchema(cardRoleSchema),
|
|
10320
11270
|
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
10321
11271
|
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
10322
11272
|
}).strict();
|
|
@@ -10380,6 +11330,10 @@ z.object(headerPreferencesShape).omit({
|
|
|
10380
11330
|
brandPresentation: true,
|
|
10381
11331
|
structure: true
|
|
10382
11332
|
}).strict();
|
|
11333
|
+
z.object(headerPreferencesShape).pick({
|
|
11334
|
+
brandPresentation: true,
|
|
11335
|
+
structure: true
|
|
11336
|
+
}).strict();
|
|
10383
11337
|
//#endregion
|
|
10384
11338
|
//#region ../theme-core/src/header/legacyNavLinkStyle.ts
|
|
10385
11339
|
function buildLegacyHeaderNavLinkStyle(header, contrastTreatment, navTextSize) {
|
|
@@ -10478,7 +11432,6 @@ const nonEmptyStringSchema = z.string().min(1);
|
|
|
10478
11432
|
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
10479
11433
|
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
10480
11434
|
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
10481
|
-
const designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
|
|
10482
11435
|
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
10483
11436
|
const publishedPageBlockSnapshotSchema = z.object({
|
|
10484
11437
|
kind: z.literal("published-block-content"),
|
|
@@ -10528,50 +11481,36 @@ const draftPageDesignVersionDataV1Schema = z.object({
|
|
|
10528
11481
|
blockSequence: draftPageBlockSequenceSchema
|
|
10529
11482
|
}).strict();
|
|
10530
11483
|
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
11484
|
function validateBlockSequence(snapshots, ctx) {
|
|
10546
|
-
|
|
11485
|
+
collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
|
|
10547
11486
|
}
|
|
10548
11487
|
function collectBlockSequenceIssues(snapshots) {
|
|
10549
|
-
const
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
11488
|
+
const indexed = snapshots.map((snapshot, index) => ({
|
|
11489
|
+
...snapshot,
|
|
11490
|
+
index
|
|
11491
|
+
}));
|
|
11492
|
+
const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
|
|
11493
|
+
const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
|
|
11494
|
+
return indexed.flatMap((snapshot, index) => {
|
|
11495
|
+
const previous = snapshots[index - 1]?.orderIndex;
|
|
11496
|
+
return [
|
|
11497
|
+
...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
|
|
11498
|
+
code: z.ZodIssueCode.custom,
|
|
11499
|
+
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
11500
|
+
path: [index, "blockId"]
|
|
11501
|
+
}] : [],
|
|
11502
|
+
...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
|
|
11503
|
+
code: z.ZodIssueCode.custom,
|
|
11504
|
+
message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
|
|
11505
|
+
path: [index, "orderIndex"]
|
|
11506
|
+
}] : [],
|
|
11507
|
+
...previous !== void 0 && snapshot.orderIndex <= previous ? [{
|
|
11508
|
+
code: z.ZodIssueCode.custom,
|
|
11509
|
+
message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
|
|
11510
|
+
path: [index, "orderIndex"]
|
|
11511
|
+
}] : []
|
|
11512
|
+
];
|
|
10573
11513
|
});
|
|
10574
|
-
return issues;
|
|
10575
11514
|
}
|
|
10576
11515
|
//#endregion
|
|
10577
11516
|
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
@@ -10625,177 +11564,56 @@ z.object({
|
|
|
10625
11564
|
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
10626
11565
|
});
|
|
10627
11566
|
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
11567
|
//#endregion
|
|
10646
|
-
//#region ../theme-core/src/site-styles/
|
|
10647
|
-
|
|
10648
|
-
const
|
|
10649
|
-
return
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
};
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
11568
|
+
//#region ../theme-core/src/site-styles/pageEditAdmission.ts
|
|
11569
|
+
const generationSchema = z.string().transform((value, ctx) => {
|
|
11570
|
+
const result = parseEditorSessionGeneration(value);
|
|
11571
|
+
if (result.ok) return result.value;
|
|
11572
|
+
ctx.addIssue({
|
|
11573
|
+
code: "custom",
|
|
11574
|
+
message: "Invalid editor session generation"
|
|
11575
|
+
});
|
|
11576
|
+
return z.NEVER;
|
|
11577
|
+
});
|
|
11578
|
+
z.discriminatedUnion("kind", [z.object({
|
|
11579
|
+
kind: z.literal("open"),
|
|
11580
|
+
generation: generationSchema
|
|
11581
|
+
}).strict(), z.object({
|
|
11582
|
+
kind: z.literal("paused"),
|
|
11583
|
+
generation: generationSchema
|
|
11584
|
+
}).strict()]);
|
|
11585
|
+
z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
11586
|
+
kind: "decisions",
|
|
11587
|
+
decisions
|
|
11588
|
+
}))], { error: (issue) => {
|
|
10664
11589
|
const value = issue.input;
|
|
10665
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !==
|
|
11590
|
+
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
|
|
10666
11591
|
} });
|
|
10667
11592
|
//#endregion
|
|
10668
|
-
//#region ../
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
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;
|
|
11593
|
+
//#region ../theme-core/src/site-styles/bookingPageLookIds.ts
|
|
11594
|
+
/** Deterministic fallback order; Fulcrum is the default. */
|
|
11595
|
+
const bookingPageLookIdValues = [
|
|
11596
|
+
"site-style:fulcrum",
|
|
11597
|
+
"site-style:folio",
|
|
11598
|
+
"site-style:measure",
|
|
11599
|
+
"site-style:grounded-practice",
|
|
11600
|
+
"site-style:lantern",
|
|
11601
|
+
"site-style:poster"
|
|
11602
|
+
];
|
|
11603
|
+
/** Boundary admission for draft and suggestion inputs. */
|
|
11604
|
+
function parseBookingPageLookId(value) {
|
|
11605
|
+
const id = bookingPageLookIdValues.find((candidate) => candidate === value);
|
|
11606
|
+
return id ? asSiteStyleId(id) : null;
|
|
11607
|
+
}
|
|
11608
|
+
bookingPageLookIdValues.map((value) => {
|
|
11609
|
+
const id = parseBookingPageLookId(value);
|
|
11610
|
+
if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
|
|
11611
|
+
const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
|
|
11612
|
+
if (!style) throw new Error(`Booking look is not offered: ${value}`);
|
|
10766
11613
|
return {
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
mediaAssetIndex: context.mediaAssetIndex
|
|
11614
|
+
...style,
|
|
11615
|
+
id
|
|
10770
11616
|
};
|
|
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
|
-
}
|
|
11617
|
+
});
|
|
10800
11618
|
//#endregion
|
|
10801
|
-
export {
|
|
11619
|
+
export { sectionFactsForContent as A, resolveEffectiveKnobs as B, generateFooterCss as C, headerRootPaint as D, generateNavLinkCSS as E, heroPhotoPaintsGround as F, cardListKnobBlocks as H, parseCanonicalRuntimeBackground as I, resolveSectionBackground as L, anglePolygonCss as M, transitionCatalogueEntries as N, boundaryLayout as O, deriveSectionGround as P, sectionForegroundBackground as R, parseGradientPresetId as S, buildTextContrastShadow as T, cardListFamilyBlocks as V, deriveSiteStyleBlockPolicy as _, readOpeningForegroundProjection as a, gradientToCss as b, arrangementLookHooks as c, resolveLookSlotSurfaces as d, arrangementManifestFromVariants as f, resolvePublishedLook as g, resolveModeArrangement as h, transparentHeaderForegroundInput as i, boundaryRuntimeMetricsForDecorativeTransition as j, composeBoundary as k, arrangementSlotNames as l, resolveEffectiveArrangement as m, headerForegroundCandidates as n, mergeHeaderNavTypographyPreference as o, readStoredMode as p, headerLeafTextColor as r, readHeaderNavFontSizePreference as s, effectiveHeaderNavLinkStyle as t, resolveItemSurface as u, requireCuratedSiteStyle as v, footerForegroundCandidates as w, getGradientPreset as x, compiledRuntimeStyleFieldNames as y, defineBlockDesignMetadata as z };
|