@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
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as loadPage } from "./loadPage-
|
|
2
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
3
|
-
import { t as createRiverbankClient } from "./client-
|
|
1
|
+
import { t as loadPage } from "./loadPage-jntGoMrf.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CCG_3mbY.mjs";
|
|
3
|
+
import { t as createRiverbankClient } from "./client-BobW6DOz.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $n as resolveConcreteColorHex, Ft as asDesignBlockId, G as cardRoleSchema, Ht as assertNever, Ln as surfaceToneFromForegroundToken, Lt as asDesignPageId, Mt as asBlockContentVersionId, Nt as asBlockOrderIndex, Q as logoSizePolicyValues, Qn as scrimTone, Vt as asSiteStyleId, Y as headerInteractionPaletteValues, Z as brandDisplayModeValues, Zn as gradientScrimSamples, _r as parseEditorSessionGeneration, dr as parseThemeColorToken, fr as themeColorShadeSteps, ht as runtimeBoxBackgroundSchema, mn as resolveSurfaceForeground, n as headerPositioningValues, rn as plainFrame, zt as asLayoutVariantKey } from "./schema-BiqpDRwB.mjs";
|
|
2
|
+
import { F as boundaryRuntimeMetricsForDecorativeTransition, N as pageDesignDecisionsV2Schema, O as generatedDesignOptionCatalog, S as offeredSiteStyles, c as headerNavTypographyPreferenceValues, o as defaultHeaderNavPreferences, s as headerNavFontSizePreferenceValues, x as curatedSiteStyleIdValues } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
5
5
|
function defineBlockDesignMetadata(input) {
|
|
@@ -61,39 +61,6 @@ function uniqueStrings(values) {
|
|
|
61
61
|
return Array.from(new Set(values));
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../theme-core/src/site-styles/cardRoleVocabulary.ts
|
|
65
|
-
/**
|
|
66
|
-
* The legacy `itemSurface` treatment vocabulary, and how it reads as a card
|
|
67
|
-
* role.
|
|
68
|
-
*
|
|
69
|
-
* `itemSurface` named a *treatment* ("raised", "inset"); a role names *which
|
|
70
|
-
* card* a Look wants and defers the appearance to the site style. Phase 3
|
|
71
|
-
* deleted the treatment vocabulary and the recipe table it fed, so this map is
|
|
72
|
-
* no longer a migration coexistence device — it is the one parse boundary where
|
|
73
|
-
* persisted design plans written before the cutover still load, normalizing to
|
|
74
|
-
* the role they meant.
|
|
75
|
-
*
|
|
76
|
-
* Per-value rationale is recorded in
|
|
77
|
-
* `.project/plans/1297-card-role-contract-site-styles-own-card-surfaces/mapping-table.md`.
|
|
78
|
-
*/
|
|
79
|
-
const legacyItemSurfaceCardRoles = {
|
|
80
|
-
none: "none",
|
|
81
|
-
flat: "default",
|
|
82
|
-
default: "default",
|
|
83
|
-
outlined: "default",
|
|
84
|
-
raised: "default",
|
|
85
|
-
inset: "alternative",
|
|
86
|
-
editorial: "open",
|
|
87
|
-
"color-blocked": "alternative"
|
|
88
|
-
};
|
|
89
|
-
Object.keys(legacyItemSurfaceCardRoles);
|
|
90
|
-
/**
|
|
91
|
-
* The parse boundary for card roles reaching design intents and persisted
|
|
92
|
-
* design plans: roles pass through, legacy `itemSurface` values normalize to
|
|
93
|
-
* the role they meant, everything else fails the parse.
|
|
94
|
-
*/
|
|
95
|
-
const cardRoleWithLegacyAliasSchema = z.preprocess((value) => normalizeCardRole(value) ?? (typeof value === "string" && Object.prototype.hasOwnProperty.call(legacyItemSurfaceCardRoles, value) ? legacyItemSurfaceCardRoles[value] : value), cardRoleSchema);
|
|
96
|
-
//#endregion
|
|
97
64
|
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
98
65
|
function parseCanonicalRuntimeBackground(content) {
|
|
99
66
|
const background = readRecord(readRecord(content._sectionStyles)?.background);
|
|
@@ -527,7 +494,7 @@ function generatedChoiceSchema(valueSchema) {
|
|
|
527
494
|
const generatedBlockDesignIntentSchema = z.object({
|
|
528
495
|
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
529
496
|
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
530
|
-
cardRole: generatedChoiceSchema(
|
|
497
|
+
cardRole: generatedChoiceSchema(cardRoleSchema),
|
|
531
498
|
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
532
499
|
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
533
500
|
}).strict();
|
|
@@ -591,13 +558,16 @@ z.object(headerPreferencesShape).omit({
|
|
|
591
558
|
brandPresentation: true,
|
|
592
559
|
structure: true
|
|
593
560
|
}).strict();
|
|
561
|
+
z.object(headerPreferencesShape).pick({
|
|
562
|
+
brandPresentation: true,
|
|
563
|
+
structure: true
|
|
564
|
+
}).strict();
|
|
594
565
|
//#endregion
|
|
595
566
|
//#region ../theme-core/src/site-styles/pageDesignAuthority.ts
|
|
596
567
|
const nonEmptyStringSchema = z.string().min(1);
|
|
597
568
|
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
598
569
|
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
599
570
|
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
600
|
-
const designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
|
|
601
571
|
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
602
572
|
const publishedPageBlockSnapshotSchema = z.object({
|
|
603
573
|
kind: z.literal("published-block-content"),
|
|
@@ -647,50 +617,36 @@ const draftPageDesignVersionDataV1Schema = z.object({
|
|
|
647
617
|
blockSequence: draftPageBlockSequenceSchema
|
|
648
618
|
}).strict();
|
|
649
619
|
z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
|
|
650
|
-
z.discriminatedUnion("kind", [
|
|
651
|
-
z.object({
|
|
652
|
-
kind: z.literal("block"),
|
|
653
|
-
blockId: designBlockIdSchema
|
|
654
|
-
}).strict(),
|
|
655
|
-
z.object({
|
|
656
|
-
kind: z.literal("entry"),
|
|
657
|
-
entryId: designEntryIdSchema
|
|
658
|
-
}).strict(),
|
|
659
|
-
z.object({
|
|
660
|
-
kind: z.literal("page"),
|
|
661
|
-
pageId: designPageIdSchema
|
|
662
|
-
}).strict()
|
|
663
|
-
]);
|
|
664
620
|
function validateBlockSequence(snapshots, ctx) {
|
|
665
|
-
|
|
621
|
+
collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
|
|
666
622
|
}
|
|
667
623
|
function collectBlockSequenceIssues(snapshots) {
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
624
|
+
const indexed = snapshots.map((snapshot, index) => ({
|
|
625
|
+
...snapshot,
|
|
626
|
+
index
|
|
627
|
+
}));
|
|
628
|
+
const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
|
|
629
|
+
const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
|
|
630
|
+
return indexed.flatMap((snapshot, index) => {
|
|
631
|
+
const previous = snapshots[index - 1]?.orderIndex;
|
|
632
|
+
return [
|
|
633
|
+
...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
|
|
634
|
+
code: z.ZodIssueCode.custom,
|
|
635
|
+
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
636
|
+
path: [index, "blockId"]
|
|
637
|
+
}] : [],
|
|
638
|
+
...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
|
|
639
|
+
code: z.ZodIssueCode.custom,
|
|
640
|
+
message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
|
|
641
|
+
path: [index, "orderIndex"]
|
|
642
|
+
}] : [],
|
|
643
|
+
...previous !== void 0 && snapshot.orderIndex <= previous ? [{
|
|
644
|
+
code: z.ZodIssueCode.custom,
|
|
645
|
+
message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
|
|
646
|
+
path: [index, "orderIndex"]
|
|
647
|
+
}] : []
|
|
648
|
+
];
|
|
692
649
|
});
|
|
693
|
-
return issues;
|
|
694
650
|
}
|
|
695
651
|
//#endregion
|
|
696
652
|
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
@@ -744,44 +700,56 @@ z.object({
|
|
|
744
700
|
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
745
701
|
});
|
|
746
702
|
z.number().int().nonnegative().brand();
|
|
747
|
-
z.discriminatedUnion("kind", [
|
|
748
|
-
z.object({
|
|
749
|
-
kind: z.literal("legacy"),
|
|
750
|
-
pauseAnnouncedAt: z.string().datetime({ offset: true }).optional()
|
|
751
|
-
}).strict(),
|
|
752
|
-
z.object({
|
|
753
|
-
kind: z.literal("paused"),
|
|
754
|
-
authority: z.enum(["legacy", "document"]),
|
|
755
|
-
checkpointId: z.string().uuid(),
|
|
756
|
-
pausedAt: z.string().datetime({ offset: true })
|
|
757
|
-
}).strict(),
|
|
758
|
-
z.object({
|
|
759
|
-
kind: z.literal("document"),
|
|
760
|
-
checkpointId: z.string().uuid(),
|
|
761
|
-
activatedAt: z.string().datetime({ offset: true })
|
|
762
|
-
}).strict()
|
|
763
|
-
]);
|
|
764
703
|
//#endregion
|
|
765
|
-
//#region ../theme-core/src/site-styles/
|
|
766
|
-
|
|
767
|
-
const
|
|
768
|
-
return
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
704
|
+
//#region ../theme-core/src/site-styles/pageEditAdmission.ts
|
|
705
|
+
const generationSchema = z.string().transform((value, ctx) => {
|
|
706
|
+
const result = parseEditorSessionGeneration(value);
|
|
707
|
+
if (result.ok) return result.value;
|
|
708
|
+
ctx.addIssue({
|
|
709
|
+
code: "custom",
|
|
710
|
+
message: "Invalid editor session generation"
|
|
711
|
+
});
|
|
712
|
+
return z.NEVER;
|
|
713
|
+
});
|
|
714
|
+
z.discriminatedUnion("kind", [z.object({
|
|
715
|
+
kind: z.literal("open"),
|
|
716
|
+
generation: generationSchema
|
|
717
|
+
}).strict(), z.object({
|
|
718
|
+
kind: z.literal("paused"),
|
|
719
|
+
generation: generationSchema
|
|
720
|
+
}).strict()]);
|
|
721
|
+
z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
722
|
+
kind: "decisions",
|
|
723
|
+
decisions
|
|
724
|
+
}))], { error: (issue) => {
|
|
783
725
|
const value = issue.input;
|
|
784
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !==
|
|
726
|
+
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
|
|
785
727
|
} });
|
|
786
728
|
//#endregion
|
|
729
|
+
//#region ../theme-core/src/site-styles/bookingPageLookIds.ts
|
|
730
|
+
/** Deterministic fallback order; Fulcrum is the default. */
|
|
731
|
+
const bookingPageLookIdValues = [
|
|
732
|
+
"site-style:fulcrum",
|
|
733
|
+
"site-style:folio",
|
|
734
|
+
"site-style:measure",
|
|
735
|
+
"site-style:grounded-practice",
|
|
736
|
+
"site-style:lantern",
|
|
737
|
+
"site-style:poster"
|
|
738
|
+
];
|
|
739
|
+
/** Boundary admission for draft and suggestion inputs. */
|
|
740
|
+
function parseBookingPageLookId(value) {
|
|
741
|
+
const id = bookingPageLookIdValues.find((candidate) => candidate === value);
|
|
742
|
+
return id ? asSiteStyleId(id) : null;
|
|
743
|
+
}
|
|
744
|
+
bookingPageLookIdValues.map((value) => {
|
|
745
|
+
const id = parseBookingPageLookId(value);
|
|
746
|
+
if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
|
|
747
|
+
const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
|
|
748
|
+
if (!style) throw new Error(`Booking look is not offered: ${value}`);
|
|
749
|
+
return {
|
|
750
|
+
...style,
|
|
751
|
+
id
|
|
752
|
+
};
|
|
753
|
+
});
|
|
754
|
+
//#endregion
|
|
787
755
|
export { heroPhotoPaintsGround as a, sectionForegroundBackground as c, deriveSectionGround as i, defineBlockDesignMetadata as l, composeBoundary as n, parseCanonicalRuntimeBackground as o, sectionFactsForContent as r, resolveSectionBackground as s, boundaryLayout as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hn as
|
|
2
|
-
import {
|
|
1
|
+
import { Gn as surfaceForegroundValue, Hn as surfaceForegroundDeclarations, Ht as assertNever, Sn as rgbColorValue, U as renderCssDeclarations, Un as surfaceForegroundInputFromResolved, _n as TokenResolver, _t as siteChromeBackgroundOverrideOwner, a as generateMobileOverlayBackdropFilterFix, h as getComponentShadowVar, i as generateHeaderScrollTreatmentStyles, l as MQ_MD_DOWN, m as getComponentBorderWidthPx, mn as resolveSurfaceForeground, o as getHeaderPaintTargets, qn as expandPalette, s as renderHeaderPaintTargetRules } from "./schema-BiqpDRwB.mjs";
|
|
2
|
+
import { M as generateNavLinkCSS, P as headerRootPaint, j as buildTextContrastShadow, l as mergeHeaderNavTypographyPreference, t as effectiveHeaderNavLinkStyle, u as readHeaderNavFontSizePreference } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
|
|
3
3
|
//#region ../theme-core/src/responsive/mediaQuery.ts
|
|
4
4
|
/**
|
|
5
5
|
* Convert familiar viewport media queries to container queries when safe.
|