@riverbankcms/sdk 0.161.0 → 0.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
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-DaPiPYUL.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D7ItMsEl.mjs";
|
|
3
|
+
import { t as createRiverbankClient } from "./client-C2Q56xqV.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $ as logoSizePolicyValues, Ft as asBlockOrderIndex, Gn as surfaceToneFromForegroundToken, K as cardRoleSchema, Kn as resolveSurfaceForeground, Lt as asDesignBlockId, Mn as gradientScrimSamples, Mr as themeColorShadeSteps, Nn as scrimTone, Pt as asBlockContentVersionId, Q as brandDisplayModeValues, Ut as asSiteStyleId, Vt as asLayoutVariantKey, Wt as assertNever, X as headerInteractionPaletteValues, _t as runtimeBoxBackgroundSchema, an as plainFrame, jr as parseThemeColorToken, n as headerPositioningValues, pn as parseEditorSessionGeneration, tr as resolveConcreteColorHex, zt as asDesignPageId } from "./schema-DgrigZq9.mjs";
|
|
2
|
+
import { F as pageDesignDecisionsV2Schema, N as bookingPageLookIdValues, O as generatedDesignOptionCatalog, P as parseBookingPageLookId, R as boundaryRuntimeMetricsForDecorativeTransition, S as offeredSiteStyles, c as headerNavTypographyPreferenceValues, o as defaultHeaderNavPreferences, s as headerNavFontSizePreferenceValues, x as curatedSiteStyleIdValues } from "./effectiveNavLinkStyle-DLzJPcDL.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
5
5
|
function defineBlockDesignMetadata(input) {
|
|
@@ -61,51 +61,36 @@ 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);
|
|
100
67
|
if (!background) return { kind: "none" };
|
|
101
68
|
const parsed = runtimeBoxBackgroundSchema.safeParse(background);
|
|
102
69
|
if (!parsed.success) return { kind: "none" };
|
|
103
|
-
|
|
70
|
+
const painted = applyLookPhotoTreatment(content, parsed.data);
|
|
71
|
+
return painted.contentOwner === "page-design-editor" ? {
|
|
104
72
|
kind: "page-design-override",
|
|
105
|
-
background:
|
|
73
|
+
background: painted
|
|
106
74
|
} : {
|
|
107
75
|
kind: "block-authored",
|
|
108
|
-
background:
|
|
76
|
+
background: painted
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** The Look owns shading and ink together; authored image/crop stay intact. */
|
|
80
|
+
function applyLookPhotoTreatment(content, background) {
|
|
81
|
+
const structure = readRecord(readRecord(readRecord(content._effectiveLook)?.look)?.structure);
|
|
82
|
+
if (background.type !== "image" || structure?.photoTreatment !== "text-overlay") return background;
|
|
83
|
+
return {
|
|
84
|
+
...background,
|
|
85
|
+
overlay: {
|
|
86
|
+
type: "gradient",
|
|
87
|
+
opacity: 1,
|
|
88
|
+
gradient: "var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"
|
|
89
|
+
},
|
|
90
|
+
textColor: "neutral-50",
|
|
91
|
+
headingColor: "neutral-50",
|
|
92
|
+
linkColor: "neutral-50",
|
|
93
|
+
supportingColor: "neutral-50"
|
|
109
94
|
};
|
|
110
95
|
}
|
|
111
96
|
function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
|
|
@@ -151,7 +136,7 @@ function sectionForegroundBackground(resolved, palette) {
|
|
|
151
136
|
if (resolved.kind !== "content-media") return resolved.background;
|
|
152
137
|
const original = resolveSurfaceForeground(resolved.background, palette);
|
|
153
138
|
const measured = resolveSurfaceForeground(resolved.ground, palette);
|
|
154
|
-
if (original.kind
|
|
139
|
+
if (original.kind !== "known" || measured.kind !== "known") return resolved.background;
|
|
155
140
|
return [
|
|
156
141
|
"text",
|
|
157
142
|
"heading",
|
|
@@ -527,7 +512,7 @@ function generatedChoiceSchema(valueSchema) {
|
|
|
527
512
|
const generatedBlockDesignIntentSchema = z.object({
|
|
528
513
|
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
529
514
|
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
530
|
-
cardRole: generatedChoiceSchema(
|
|
515
|
+
cardRole: generatedChoiceSchema(cardRoleSchema),
|
|
531
516
|
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
532
517
|
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
533
518
|
}).strict();
|
|
@@ -591,13 +576,16 @@ z.object(headerPreferencesShape).omit({
|
|
|
591
576
|
brandPresentation: true,
|
|
592
577
|
structure: true
|
|
593
578
|
}).strict();
|
|
579
|
+
z.object(headerPreferencesShape).pick({
|
|
580
|
+
brandPresentation: true,
|
|
581
|
+
structure: true
|
|
582
|
+
}).strict();
|
|
594
583
|
//#endregion
|
|
595
584
|
//#region ../theme-core/src/site-styles/pageDesignAuthority.ts
|
|
596
585
|
const nonEmptyStringSchema = z.string().min(1);
|
|
597
586
|
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
598
587
|
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
599
588
|
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
600
|
-
const designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
|
|
601
589
|
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
602
590
|
const publishedPageBlockSnapshotSchema = z.object({
|
|
603
591
|
kind: z.literal("published-block-content"),
|
|
@@ -647,50 +635,36 @@ const draftPageDesignVersionDataV1Schema = z.object({
|
|
|
647
635
|
blockSequence: draftPageBlockSequenceSchema
|
|
648
636
|
}).strict();
|
|
649
637
|
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
638
|
function validateBlockSequence(snapshots, ctx) {
|
|
665
|
-
|
|
639
|
+
collectBlockSequenceIssues(snapshots).forEach((issue) => ctx.addIssue(issue));
|
|
666
640
|
}
|
|
667
641
|
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
|
-
|
|
642
|
+
const indexed = snapshots.map((snapshot, index) => ({
|
|
643
|
+
...snapshot,
|
|
644
|
+
index
|
|
645
|
+
}));
|
|
646
|
+
const firstBlockIndexes = new Map([...indexed].reverse().map((item) => [item.blockId, item.index]));
|
|
647
|
+
const firstOrderIndexes = new Map([...indexed].reverse().map((item) => [item.orderIndex, item.index]));
|
|
648
|
+
return indexed.flatMap((snapshot, index) => {
|
|
649
|
+
const previous = snapshots[index - 1]?.orderIndex;
|
|
650
|
+
return [
|
|
651
|
+
...firstBlockIndexes.get(snapshot.blockId) !== index ? [{
|
|
652
|
+
code: z.ZodIssueCode.custom,
|
|
653
|
+
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
654
|
+
path: [index, "blockId"]
|
|
655
|
+
}] : [],
|
|
656
|
+
...firstOrderIndexes.get(snapshot.orderIndex) !== index ? [{
|
|
657
|
+
code: z.ZodIssueCode.custom,
|
|
658
|
+
message: `Duplicate orderIndex in page design blockSequence: ${String(snapshot.orderIndex)}`,
|
|
659
|
+
path: [index, "orderIndex"]
|
|
660
|
+
}] : [],
|
|
661
|
+
...previous !== void 0 && snapshot.orderIndex <= previous ? [{
|
|
662
|
+
code: z.ZodIssueCode.custom,
|
|
663
|
+
message: `Expected orderIndex greater than ${String(previous)} for blockSequence position ${String(index)}; received ${String(snapshot.orderIndex)}.`,
|
|
664
|
+
path: [index, "orderIndex"]
|
|
665
|
+
}] : []
|
|
666
|
+
];
|
|
692
667
|
});
|
|
693
|
-
return issues;
|
|
694
668
|
}
|
|
695
669
|
//#endregion
|
|
696
670
|
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
@@ -744,44 +718,52 @@ z.object({
|
|
|
744
718
|
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
745
719
|
});
|
|
746
720
|
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
721
|
//#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
|
-
|
|
722
|
+
//#region ../theme-core/src/site-styles/pageEditAdmission.ts
|
|
723
|
+
const generationSchema = z.string().transform((value, ctx) => {
|
|
724
|
+
const result = parseEditorSessionGeneration(value);
|
|
725
|
+
if (result.ok) return result.value;
|
|
726
|
+
ctx.addIssue({
|
|
727
|
+
code: "custom",
|
|
728
|
+
message: "Invalid editor session generation"
|
|
729
|
+
});
|
|
730
|
+
return z.NEVER;
|
|
731
|
+
});
|
|
732
|
+
z.discriminatedUnion("kind", [z.object({
|
|
733
|
+
kind: z.literal("open"),
|
|
734
|
+
generation: generationSchema
|
|
735
|
+
}).strict(), z.object({
|
|
736
|
+
kind: z.literal("paused"),
|
|
737
|
+
generation: generationSchema
|
|
738
|
+
}).strict()]);
|
|
739
|
+
z.union([z.nullish(z.never()).transform(() => ({ kind: "automatic" })), pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
740
|
+
kind: "decisions",
|
|
741
|
+
decisions
|
|
742
|
+
}))], { error: (issue) => {
|
|
783
743
|
const value = issue.input;
|
|
784
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !==
|
|
744
|
+
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 2 ? "Unsupported page design decisions schemaVersion." : "Invalid page design decisions shape.";
|
|
785
745
|
} });
|
|
746
|
+
bookingPageLookIdValues.map((value) => {
|
|
747
|
+
const id = parseBookingPageLookId(value);
|
|
748
|
+
if (!id) throw new Error(`Invalid booking look catalogue entry: ${value}`);
|
|
749
|
+
const style = offeredSiteStyles({ audience: "booking-page" }).find((candidate) => candidate.id === id);
|
|
750
|
+
if (!style) throw new Error(`Booking look is not offered: ${value}`);
|
|
751
|
+
return {
|
|
752
|
+
...style,
|
|
753
|
+
id
|
|
754
|
+
};
|
|
755
|
+
});
|
|
756
|
+
[...[
|
|
757
|
+
165,
|
|
758
|
+
150,
|
|
759
|
+
135,
|
|
760
|
+
120,
|
|
761
|
+
105,
|
|
762
|
+
90,
|
|
763
|
+
75,
|
|
764
|
+
60,
|
|
765
|
+
45,
|
|
766
|
+
30
|
|
767
|
+
].flatMap((o) => [o, -o])];
|
|
786
768
|
//#endregion
|
|
787
769
|
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 };
|