@riverbankcms/sdk 0.170.0 → 0.171.1
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 +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
- package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
- package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.d.ts} +2 -2
- package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.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 +7 -7
- 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/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
- 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 +4 -4
- 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/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- 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 +3 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
- package/dist/_dts/{types-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
- package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
- package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.mjs} +13 -13
- package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
- package/dist/client/{Page-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-DRJy4eU3.mjs +894 -0
- package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
- package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-BnyVRqdU.mjs} +73 -26
- package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
- package/dist/client/client.mjs +656 -220
- package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
- package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
- package/dist/client/{cta-CfuyGqXL.mjs → cta-CP9l112u.mjs} +2 -2
- package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
- package/dist/client/{display-DDNmyb0z.mjs → display-ChgDe9Da.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
- package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
- package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
- package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
- package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
- package/dist/client/portal/client.mjs +294 -48
- package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
- package/dist/client/rendering/client.mjs +57 -32
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +1956 -191
- package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
- package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
- package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
- package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
- package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
- package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
- package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
- package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
- package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
- package/dist/preview-next/before-render.mjs +33 -13
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
- package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
- package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
- package/dist/preview-next/container-responsive.css +43 -0
- package/dist/preview-next/editor-base.css +14 -4
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
- package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
- package/dist/server/config-template-validation.mjs +30 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -34
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
- package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +8 -6
- package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
- package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
- package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
- package/dist/server/rich-text-CRcONdyM.mjs +33 -0
- package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
- package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -1
- package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
- package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
- package/dist/styles/index.css +408 -10
- package/package.json +1 -1
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
- package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
- package/dist/server/bindings-C1-MNwwS.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
|
@@ -1,8 +1,317 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as mediaSchema } from "./media-Brn9FW5s.mjs";
|
|
1
|
+
import { Dt as themeColorTokenSchema, St as paletteColorsFromEntries, Tt as parseColorTokenParts, b as buttonSystemSchema, vt as hexColorSchema, xt as paletteColorEntries, yt as isThemeColorToken } from "./resolveButtonColourStates-euZnRMIu.mjs";
|
|
2
|
+
import { i as mediaSchema, n as externalMediaSchema, r as imageMediaSchema, s as videoMediaSchema, t as assetMediaSchema } from "./media-Brn9FW5s.mjs";
|
|
4
3
|
import { a as declarationValueSchema, i as customCssRulesSchema, n as blockCustomCssRulesSchema, o as declarationsSchema, s as selectorSchema } from "./customCss-QymcmOZ-.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../site-contracts/src/identity/designIds.ts
|
|
6
|
+
function asDesignBlockId(value) {
|
|
7
|
+
return brandNonEmptyString(value, "DesignBlockId");
|
|
8
|
+
}
|
|
9
|
+
function asDesignBoundaryId(value) {
|
|
10
|
+
const boundaryId = brandNonEmptyString(value, "DesignBoundaryId");
|
|
11
|
+
if (!boundaryId.startsWith("boundary:")) throw new Error(`DesignBoundaryId must start with "boundary:". Received: ${value}`);
|
|
12
|
+
return boundaryId;
|
|
13
|
+
}
|
|
14
|
+
function asLayoutVariantKey(value) {
|
|
15
|
+
return brandNonEmptyString(value, "LayoutVariantKey");
|
|
16
|
+
}
|
|
17
|
+
function asAppearancePresetId(value) {
|
|
18
|
+
return brandNonEmptyString(value, "AppearancePresetId");
|
|
19
|
+
}
|
|
20
|
+
function asBoundaryOptionId(value) {
|
|
21
|
+
return brandNonEmptyString(value, "BoundaryOptionId");
|
|
22
|
+
}
|
|
23
|
+
function asPageFlowPresetId(value) {
|
|
24
|
+
return brandNonEmptyString(value, "PageFlowPresetId");
|
|
25
|
+
}
|
|
26
|
+
function asSiteStyleId(value) {
|
|
27
|
+
const siteStyleId = brandNonEmptyString(value, "SiteStyleId");
|
|
28
|
+
if (!siteStyleId.startsWith("site-style:")) throw new Error(`SiteStyleId must start with "site-style:". Received: ${value}`);
|
|
29
|
+
return siteStyleId;
|
|
30
|
+
}
|
|
31
|
+
function asDesignSystemTemplateId(value) {
|
|
32
|
+
return brandNonEmptyString(value, "DesignSystemTemplateId");
|
|
33
|
+
}
|
|
34
|
+
function makeBoundaryId(previousBlockId, nextBlockId) {
|
|
35
|
+
return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
|
|
36
|
+
}
|
|
37
|
+
function brandNonEmptyString(value, label) {
|
|
38
|
+
if (value.length === 0) throw new Error(`${label} must be a non-empty string.`);
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../site-contracts/src/identity/presentationVocabulary.ts
|
|
43
|
+
const arrangementModes = [
|
|
44
|
+
"list",
|
|
45
|
+
"calendar",
|
|
46
|
+
"week",
|
|
47
|
+
"combined"
|
|
48
|
+
];
|
|
49
|
+
function isArrangementMode(value) {
|
|
50
|
+
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
51
|
+
}
|
|
52
|
+
const tileTreatmentValues = [
|
|
53
|
+
"default",
|
|
54
|
+
"quiet",
|
|
55
|
+
"brand-depth"
|
|
56
|
+
];
|
|
57
|
+
const eventListTreatmentValues = [
|
|
58
|
+
"plain",
|
|
59
|
+
"lined-panel",
|
|
60
|
+
"ruled-register",
|
|
61
|
+
"editorial-register",
|
|
62
|
+
"dense-index"
|
|
63
|
+
];
|
|
64
|
+
const eyebrowTreatmentValues = [
|
|
65
|
+
"plain",
|
|
66
|
+
"accent",
|
|
67
|
+
"pill",
|
|
68
|
+
"accent-pill",
|
|
69
|
+
"pill-bounce",
|
|
70
|
+
"accent-pill-bounce"
|
|
71
|
+
];
|
|
72
|
+
const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
|
|
73
|
+
const headingDecorationOverrideValues = ["site-default", "off"];
|
|
74
|
+
const headingDecorationColorTokenValues = [
|
|
75
|
+
"text",
|
|
76
|
+
"primary",
|
|
77
|
+
"secondary",
|
|
78
|
+
"accent",
|
|
79
|
+
"border",
|
|
80
|
+
"muted"
|
|
81
|
+
];
|
|
82
|
+
const accordionIconSetValues = [
|
|
83
|
+
"plus",
|
|
84
|
+
"chevron",
|
|
85
|
+
"caret",
|
|
86
|
+
"minimal-cross"
|
|
87
|
+
];
|
|
88
|
+
const accordionIconColorTokenValues = [
|
|
89
|
+
"text",
|
|
90
|
+
"muted",
|
|
91
|
+
"primary",
|
|
92
|
+
"secondary",
|
|
93
|
+
"accent",
|
|
94
|
+
"current"
|
|
95
|
+
];
|
|
96
|
+
const accordionIconMotionValues = [
|
|
97
|
+
"none",
|
|
98
|
+
"rotate",
|
|
99
|
+
"swap"
|
|
100
|
+
];
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region ../site-contracts/src/identity/siteStyleLooks.ts
|
|
103
|
+
/** Deterministic fallback order; Fulcrum is the default. */
|
|
104
|
+
const bookingPageLookIdValues = [
|
|
105
|
+
"site-style:fulcrum",
|
|
106
|
+
"site-style:folio",
|
|
107
|
+
"site-style:measure",
|
|
108
|
+
"site-style:lantern",
|
|
109
|
+
"site-style:poster",
|
|
110
|
+
"site-style:loom",
|
|
111
|
+
"site-style:brook",
|
|
112
|
+
"site-style:poise"
|
|
113
|
+
];
|
|
114
|
+
function asFooterLookId(value) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
function asHeaderLayoutId(value) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
function asHeaderStyleId(value) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
const pageDesignEditorBackgroundOverrideOwner = "page-design-editor";
|
|
124
|
+
const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../site-contracts/src/theme/cards.ts
|
|
127
|
+
/** Arrangement Looks can request only these shared item roles. */
|
|
128
|
+
const itemRoleValues = [
|
|
129
|
+
"card",
|
|
130
|
+
"statement",
|
|
131
|
+
"highlight"
|
|
132
|
+
];
|
|
133
|
+
const cardVariantRoleValues = ["default", "alternative"];
|
|
134
|
+
const boxlessCardVariantValue = "none";
|
|
135
|
+
const openCardRoleValue = "open";
|
|
136
|
+
/**
|
|
137
|
+
* The roles a site style implements with an actual card variant. `none` is
|
|
138
|
+
* deliberately absent: it is a role value only, never a variant.
|
|
139
|
+
*/
|
|
140
|
+
const surfaceCardRoleValues = [...cardVariantRoleValues, openCardRoleValue];
|
|
141
|
+
/**
|
|
142
|
+
* The closed role vocabulary Looks and blocks use for surfaced and boxless
|
|
143
|
+
* card choices.
|
|
144
|
+
*
|
|
145
|
+
* - `none` — no site-style card surface; the block's own composition and
|
|
146
|
+
* the author's own card fields govern the item. This is *not*
|
|
147
|
+
* a promise of visible boxlessness: a block whose base class
|
|
148
|
+
* draws a border still draws one. It says the Look is not
|
|
149
|
+
* asking the site style for a card.
|
|
150
|
+
* - `open` — boxless but marked (a rule or accent edge, no enclosing box)
|
|
151
|
+
* - `default` — the site's quiet everyday card
|
|
152
|
+
* - `alternative` — the statement card carrying the site's personality
|
|
153
|
+
*/
|
|
154
|
+
const cardRoleValues = [...surfaceCardRoleValues, boxlessCardVariantValue];
|
|
155
|
+
const cardSpacingSchema = z.enum([
|
|
156
|
+
"none",
|
|
157
|
+
"compact",
|
|
158
|
+
"cozy",
|
|
159
|
+
"medium",
|
|
160
|
+
"comfortable",
|
|
161
|
+
"spacious"
|
|
162
|
+
]);
|
|
163
|
+
/** Per-axis padding, for boxless cards whose inline padding differs from block. */
|
|
164
|
+
const cardSpacingAxesSchema = z.object({
|
|
165
|
+
block: cardSpacingSchema,
|
|
166
|
+
inline: cardSpacingSchema
|
|
167
|
+
});
|
|
168
|
+
/**
|
|
169
|
+
* A card's content padding: one value for both axes, or one per axis. Two
|
|
170
|
+
* fields would let a variant say both and leave the reader to guess, so this is
|
|
171
|
+
* a union.
|
|
172
|
+
*/
|
|
173
|
+
const cardSpacingValueSchema = z.union([cardSpacingSchema, cardSpacingAxesSchema]);
|
|
174
|
+
const gradientDirectionSchema = z.enum([
|
|
175
|
+
"to-r",
|
|
176
|
+
"to-l",
|
|
177
|
+
"to-t",
|
|
178
|
+
"to-b",
|
|
179
|
+
"to-tr",
|
|
180
|
+
"to-tl",
|
|
181
|
+
"to-br",
|
|
182
|
+
"to-bl"
|
|
183
|
+
]);
|
|
184
|
+
const surfaceCardRoleSchema = z.enum(surfaceCardRoleValues);
|
|
185
|
+
const cardRoleSchema = z.enum(cardRoleValues);
|
|
186
|
+
const cardBackgroundSchema = z.discriminatedUnion("type", [
|
|
187
|
+
z.object({
|
|
188
|
+
type: z.literal("solid"),
|
|
189
|
+
colorToken: themeColorTokenSchema
|
|
190
|
+
}),
|
|
191
|
+
z.object({
|
|
192
|
+
type: z.literal("gradient"),
|
|
193
|
+
fromToken: themeColorTokenSchema,
|
|
194
|
+
toToken: themeColorTokenSchema,
|
|
195
|
+
direction: gradientDirectionSchema
|
|
196
|
+
}),
|
|
197
|
+
z.object({ type: z.literal("transparent") })
|
|
198
|
+
]);
|
|
199
|
+
const cardBorderSchema = z.object({
|
|
200
|
+
widthClass: z.string(),
|
|
201
|
+
colorToken: themeColorTokenSchema
|
|
202
|
+
});
|
|
203
|
+
/** Per-corner radius value. `expressive` is a large block-radius multiple. */
|
|
204
|
+
const cardCornerValueSchema = z.enum([
|
|
205
|
+
"square",
|
|
206
|
+
"soft",
|
|
207
|
+
"rounded",
|
|
208
|
+
"pill",
|
|
209
|
+
"expressive"
|
|
210
|
+
]);
|
|
211
|
+
const cardEdgeSchema = z.enum([
|
|
212
|
+
"left",
|
|
213
|
+
"top",
|
|
214
|
+
"right",
|
|
215
|
+
"bottom"
|
|
216
|
+
]);
|
|
217
|
+
/** `hairline` (1px) is the widening the boxless `open` role needs. */
|
|
218
|
+
const cardEdgeRuleWidthSchema = z.enum([
|
|
219
|
+
"hairline",
|
|
220
|
+
"thin",
|
|
221
|
+
"medium",
|
|
222
|
+
"thick",
|
|
223
|
+
"heavy"
|
|
224
|
+
]);
|
|
225
|
+
const cardEdgeRuleLengthSchema = z.enum(["full", "short"]);
|
|
226
|
+
const cardEdgeRuleAlignSchema = z.enum([
|
|
227
|
+
"start",
|
|
228
|
+
"center",
|
|
229
|
+
"end"
|
|
230
|
+
]);
|
|
231
|
+
/**
|
|
232
|
+
* Decorations are edge rules today. The alias exists so the list can grow into
|
|
233
|
+
* a discriminated union without every call site changing.
|
|
234
|
+
*/
|
|
235
|
+
const cardDecorationSchema = z.object({
|
|
236
|
+
edge: cardEdgeSchema,
|
|
237
|
+
colorToken: themeColorTokenSchema,
|
|
238
|
+
width: cardEdgeRuleWidthSchema,
|
|
239
|
+
/** Defaults to `full`. */
|
|
240
|
+
length: cardEdgeRuleLengthSchema.optional(),
|
|
241
|
+
/** Where a `short` rule sits along its edge. Defaults to `start`. */
|
|
242
|
+
align: cardEdgeRuleAlignSchema.optional(),
|
|
243
|
+
/** Opacity applied to `colorToken`, 0–1. Scoped here, not on the token. */
|
|
244
|
+
alpha: z.number().min(0).max(1).optional()
|
|
245
|
+
});
|
|
246
|
+
const cardDecorationsSchema = z.array(cardDecorationSchema).max(2);
|
|
247
|
+
const cardCornerRadiiSchema = z.object({
|
|
248
|
+
topLeft: cardCornerValueSchema.optional(),
|
|
249
|
+
topRight: cardCornerValueSchema.optional(),
|
|
250
|
+
bottomLeft: cardCornerValueSchema.optional(),
|
|
251
|
+
bottomRight: cardCornerValueSchema.optional()
|
|
252
|
+
});
|
|
253
|
+
const cardVariantSchema = z.strictObject({
|
|
254
|
+
id: z.string(),
|
|
255
|
+
name: z.string().min(1).max(20),
|
|
256
|
+
enabled: z.boolean(),
|
|
257
|
+
priority: z.union([
|
|
258
|
+
z.literal(1),
|
|
259
|
+
z.literal(2),
|
|
260
|
+
z.literal(3)
|
|
261
|
+
]),
|
|
262
|
+
role: surfaceCardRoleSchema,
|
|
263
|
+
background: cardBackgroundSchema,
|
|
264
|
+
spacing: cardSpacingValueSchema,
|
|
265
|
+
foregroundToken: themeColorTokenSchema.optional(),
|
|
266
|
+
shadow: z.object({
|
|
267
|
+
elevation: z.enum([
|
|
268
|
+
"none",
|
|
269
|
+
"low",
|
|
270
|
+
"medium",
|
|
271
|
+
"high"
|
|
272
|
+
]),
|
|
273
|
+
softness: z.enum([
|
|
274
|
+
"crisp",
|
|
275
|
+
"soft",
|
|
276
|
+
"hard"
|
|
277
|
+
]).nullable(),
|
|
278
|
+
position: z.enum(["bottom", "bottom-right"]).default("bottom")
|
|
279
|
+
}).optional(),
|
|
280
|
+
corners: z.enum([
|
|
281
|
+
"square",
|
|
282
|
+
"soft",
|
|
283
|
+
"rounded",
|
|
284
|
+
"pill"
|
|
285
|
+
]).optional(),
|
|
286
|
+
cornerRadii: cardCornerRadiiSchema.optional(),
|
|
287
|
+
border: cardBorderSchema.optional(),
|
|
288
|
+
decorations: cardDecorationsSchema.optional()
|
|
289
|
+
});
|
|
290
|
+
/**
|
|
291
|
+
* A site style saying "these two
|
|
292
|
+
* variants are both the default card" is an authoring error worth rejecting.
|
|
293
|
+
*/
|
|
294
|
+
function validateUniqueCardVariantRoles(system, ctx) {
|
|
295
|
+
const declared = /* @__PURE__ */ new Set();
|
|
296
|
+
system.variants.forEach((variant, index) => {
|
|
297
|
+
const role = variant.role;
|
|
298
|
+
if (declared.has(role)) {
|
|
299
|
+
ctx.addIssue({
|
|
300
|
+
code: "custom",
|
|
301
|
+
path: [
|
|
302
|
+
"variants",
|
|
303
|
+
index,
|
|
304
|
+
"role"
|
|
305
|
+
],
|
|
306
|
+
message: `Card role "${role}" is already implemented by another variant.`
|
|
307
|
+
});
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
declared.add(role);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
const cardSystemSchema = z.object({ variants: z.array(cardVariantSchema).min(1).max(3) }).superRefine(validateUniqueCardVariantRoles);
|
|
314
|
+
//#endregion
|
|
6
315
|
//#region ../site-contracts/src/theme/accordions.ts
|
|
7
316
|
/**
|
|
8
317
|
* Accordion icon styles for expand/collapse indicators
|
|
@@ -649,6 +958,108 @@ const componentShadowSchema = z.object({ elevation: z.enum([
|
|
|
649
958
|
"2xl"
|
|
650
959
|
]).default("sm") });
|
|
651
960
|
//#endregion
|
|
961
|
+
//#region ../site-contracts/src/theme/tokenOrColor.ts
|
|
962
|
+
/**
|
|
963
|
+
* Runtime color-reference fields intentionally accept any string, including
|
|
964
|
+
* the legacy empty-string "no color" sentinel. Semantic validation needs
|
|
965
|
+
* palette context and happens in `parseThemeColorReference`.
|
|
966
|
+
*/
|
|
967
|
+
const tokenOrCssColorValueSchema = z.string();
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region ../site-contracts/src/theme/backgrounds.ts
|
|
970
|
+
const boxBackgroundOverlaySchema = z.preprocess(normalizeAuthoringOpacity, z.discriminatedUnion("type", [
|
|
971
|
+
z.object({ type: z.literal("none") }),
|
|
972
|
+
z.object({
|
|
973
|
+
type: z.literal("color"),
|
|
974
|
+
color: tokenOrCssColorValueSchema.nullable().optional(),
|
|
975
|
+
opacity: z.number().min(0).max(1).nullable().optional()
|
|
976
|
+
}),
|
|
977
|
+
z.object({
|
|
978
|
+
type: z.literal("gradient"),
|
|
979
|
+
gradient: z.string().nullable().optional(),
|
|
980
|
+
opacity: z.number().min(0).max(1).nullable().optional()
|
|
981
|
+
})
|
|
982
|
+
]));
|
|
983
|
+
const commonSchema = z.object({
|
|
984
|
+
contentOwner: z.literal(pageDesignEditorBackgroundOverrideOwner).optional(),
|
|
985
|
+
textColor: tokenOrCssColorValueSchema.nullable().optional(),
|
|
986
|
+
headingColor: tokenOrCssColorValueSchema.nullable().optional(),
|
|
987
|
+
linkColor: tokenOrCssColorValueSchema.nullable().optional(),
|
|
988
|
+
supportingColor: tokenOrCssColorValueSchema.nullable().optional()
|
|
989
|
+
});
|
|
990
|
+
const mediaPresentationSchema = commonSchema.extend({
|
|
991
|
+
opacity: z.preprocess(normalizeOpacity, z.number().min(0).max(1).nullable()).optional(),
|
|
992
|
+
objectFit: z.enum([
|
|
993
|
+
"fill",
|
|
994
|
+
"fit",
|
|
995
|
+
"original",
|
|
996
|
+
"custom"
|
|
997
|
+
]).nullable().optional(),
|
|
998
|
+
scale: z.string().nullable().optional(),
|
|
999
|
+
position: z.string().nullable().optional(),
|
|
1000
|
+
motion: z.enum(["static", "fixed-frame"]).nullable().optional(),
|
|
1001
|
+
overflow: z.boolean().nullable().optional(),
|
|
1002
|
+
overlay: boxBackgroundOverlaySchema.nullable().optional()
|
|
1003
|
+
});
|
|
1004
|
+
const boxBackgroundSchema = z.discriminatedUnion("type", [
|
|
1005
|
+
commonSchema.extend({
|
|
1006
|
+
type: z.literal("color"),
|
|
1007
|
+
color: tokenOrCssColorValueSchema.nullable().optional(),
|
|
1008
|
+
/**
|
|
1009
|
+
* Compiler-owned. The scrim a site-style colour surface lays over media
|
|
1010
|
+
* that replaces it (a Look's band meeting an authored photo), sized so the
|
|
1011
|
+
* surface's foreground stays legible over any pixel. A colour background
|
|
1012
|
+
* never draws it itself; `resolveSectionBackground` moves it onto the
|
|
1013
|
+
* merged media background as its overlay.
|
|
1014
|
+
*/
|
|
1015
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
1016
|
+
}),
|
|
1017
|
+
commonSchema.extend({
|
|
1018
|
+
type: z.literal("gradient"),
|
|
1019
|
+
gradient: z.string().nullable().optional(),
|
|
1020
|
+
gradientPresetId: z.string().min(1).nullable().optional(),
|
|
1021
|
+
/** Compiler-owned; see the colour branch. */
|
|
1022
|
+
mediaScrim: boxBackgroundOverlaySchema.nullable().optional()
|
|
1023
|
+
}),
|
|
1024
|
+
mediaPresentationSchema.extend({
|
|
1025
|
+
type: z.literal("image"),
|
|
1026
|
+
image: imageMediaSchema.nullable().optional()
|
|
1027
|
+
}),
|
|
1028
|
+
mediaPresentationSchema.extend({
|
|
1029
|
+
type: z.literal("video"),
|
|
1030
|
+
image: videoMediaSchema.nullable().optional(),
|
|
1031
|
+
showVideoOnMobile: z.boolean().nullable().optional()
|
|
1032
|
+
})
|
|
1033
|
+
]);
|
|
1034
|
+
/** Application rendering sources are admitted separately from saved references. */
|
|
1035
|
+
const runtimeBoxBackgroundSchema = z.discriminatedUnion("type", [
|
|
1036
|
+
boxBackgroundSchema.options[0],
|
|
1037
|
+
boxBackgroundSchema.options[1],
|
|
1038
|
+
boxBackgroundSchema.options[2].extend({ image: z.union([
|
|
1039
|
+
imageMediaSchema,
|
|
1040
|
+
externalMediaSchema.extend({ type: z.literal("image") }),
|
|
1041
|
+
assetMediaSchema.extend({ type: z.literal("image") })
|
|
1042
|
+
]).nullable().optional() }),
|
|
1043
|
+
boxBackgroundSchema.options[3].extend({ image: z.union([
|
|
1044
|
+
videoMediaSchema,
|
|
1045
|
+
externalMediaSchema.extend({ type: z.literal("video") }),
|
|
1046
|
+
assetMediaSchema.extend({ type: z.literal("video") })
|
|
1047
|
+
]).nullable().optional() })
|
|
1048
|
+
]);
|
|
1049
|
+
function normalizeAuthoringOpacity(value) {
|
|
1050
|
+
if (!isRecord(value)) return value;
|
|
1051
|
+
return {
|
|
1052
|
+
...value,
|
|
1053
|
+
opacity: normalizeOpacity(value.opacity)
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
function normalizeOpacity(value) {
|
|
1057
|
+
return typeof value === "number" && value > 1 && value <= 100 ? value / 100 : value;
|
|
1058
|
+
}
|
|
1059
|
+
function isRecord(value) {
|
|
1060
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1061
|
+
}
|
|
1062
|
+
//#endregion
|
|
652
1063
|
//#region ../site-contracts/src/theme/customCssAtRules.ts
|
|
653
1064
|
/** Valid keyframe offset values - requires % for numeric values */
|
|
654
1065
|
const KEYFRAME_OFFSET_PATTERN = /^(from|to|\d{1,3}%)$/i;
|
|
@@ -806,6 +1217,54 @@ const headerScrollTreatmentSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
806
1217
|
backgroundTone: z.enum(["light", "dark"])
|
|
807
1218
|
})]).optional();
|
|
808
1219
|
//#endregion
|
|
1220
|
+
//#region ../site-contracts/src/theme/headerVariant.ts
|
|
1221
|
+
/**
|
|
1222
|
+
* The header variants the system actually renders.
|
|
1223
|
+
*
|
|
1224
|
+
* Each one has a layout row in the site-header block and a paint target in
|
|
1225
|
+
* `paintTargets.ts`. This is the canonical list: the block transform's variant
|
|
1226
|
+
* class allowlist and the AI theme generator's enum both derive from it, so
|
|
1227
|
+
* they cannot drift.
|
|
1228
|
+
*/
|
|
1229
|
+
const headerVariantValues = [
|
|
1230
|
+
"classic",
|
|
1231
|
+
"centered",
|
|
1232
|
+
"floating"
|
|
1233
|
+
];
|
|
1234
|
+
z.enum(headerVariantValues);
|
|
1235
|
+
/**
|
|
1236
|
+
* Header variant spellings that were once authorable but no longer name a
|
|
1237
|
+
* layout of their own, and the variant they read as now.
|
|
1238
|
+
*
|
|
1239
|
+
* `transparent` was an overlay header with no CSS of its own: everything it
|
|
1240
|
+
* did (transparent root background, overlay content flow) is what `floating`
|
|
1241
|
+
* already does, and it had zero persisted usage in production or locally when
|
|
1242
|
+
* it was retired. It survives here as a one-boundary alias so a theme authored
|
|
1243
|
+
* against the old vocabulary still parses.
|
|
1244
|
+
*
|
|
1245
|
+
* This matters because the theme schema is strict and has no per-field
|
|
1246
|
+
* `.catch()`: an out-of-enum variant fails `themeSchema.safeParse` for the
|
|
1247
|
+
* *whole* theme, which silently swaps the site's theme for
|
|
1248
|
+
* `modernMinimalTheme`. Aliasing here keeps that from happening.
|
|
1249
|
+
*/
|
|
1250
|
+
const legacyHeaderVariants = { transparent: "floating" };
|
|
1251
|
+
const legacyHeaderVariantValues = Object.keys(legacyHeaderVariants);
|
|
1252
|
+
/**
|
|
1253
|
+
* The header variant boundary for themes that go through `themeSchema`:
|
|
1254
|
+
* canonical variants pass through, legacy spellings normalize to the variant
|
|
1255
|
+
* they meant, everything else fails the parse.
|
|
1256
|
+
*
|
|
1257
|
+
* Deliberately an enum plus a transform rather than a `z.preprocess`, so the
|
|
1258
|
+
* schema's *input* type stays an accurate union (the legacy spelling is still
|
|
1259
|
+
* accepted on the wire) instead of widening to `unknown`. `SdkThemeWire` in
|
|
1260
|
+
* `@riverbankcms/api` is `z.input<typeof themeSchema>`, so a widened input here
|
|
1261
|
+
* would leak straight into a public type.
|
|
1262
|
+
*
|
|
1263
|
+
* Persisted runtime themes are admitted through `parseThemeForPersistence`
|
|
1264
|
+
* before reaching consumers, so legacy spellings normalize at that boundary.
|
|
1265
|
+
*/
|
|
1266
|
+
const headerVariantWithLegacyAliasSchema = z.enum([...headerVariantValues, ...legacyHeaderVariantValues]).transform((value) => value in legacyHeaderVariants ? legacyHeaderVariants[value] : value);
|
|
1267
|
+
//#endregion
|
|
809
1268
|
//#region ../site-contracts/src/theme/logoFacts.ts
|
|
810
1269
|
const brandDisplayModeValues = [
|
|
811
1270
|
"auto",
|
|
@@ -1473,53 +1932,4 @@ const themeSchema = z.object({
|
|
|
1473
1932
|
styleGroups: z.record(z.string(), z.array(z.string())).optional()
|
|
1474
1933
|
});
|
|
1475
1934
|
//#endregion
|
|
1476
|
-
|
|
1477
|
-
/**
|
|
1478
|
-
* Proves that every persisted button variant compiles against the theme's
|
|
1479
|
-
* concrete palette. Public rendering may still recover from malformed
|
|
1480
|
-
* external/runtime input, but persistence boundaries must reject it.
|
|
1481
|
-
*/
|
|
1482
|
-
function parseThemeForPersistence(value) {
|
|
1483
|
-
const parsed = themeSchema.safeParse(value);
|
|
1484
|
-
if (!parsed.success) return {
|
|
1485
|
-
ok: false,
|
|
1486
|
-
error: {
|
|
1487
|
-
kind: "invalid-theme-schema",
|
|
1488
|
-
issues: parsed.error.issues
|
|
1489
|
-
}
|
|
1490
|
-
};
|
|
1491
|
-
const parsedTheme = parsed.data;
|
|
1492
|
-
const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
|
|
1493
|
-
...parsedTheme,
|
|
1494
|
-
buttons: {
|
|
1495
|
-
...parsedTheme.buttons,
|
|
1496
|
-
surfacePolicy: createStandardButtonSurfacePolicy()
|
|
1497
|
-
}
|
|
1498
|
-
} : parsedTheme;
|
|
1499
|
-
if (!theme.buttons) return {
|
|
1500
|
-
ok: true,
|
|
1501
|
-
value: theme
|
|
1502
|
-
};
|
|
1503
|
-
const palette = expandPalette(theme.palette);
|
|
1504
|
-
for (const variant of theme.buttons.variants) {
|
|
1505
|
-
const result = compileButtonColourStates({
|
|
1506
|
-
variant,
|
|
1507
|
-
global: theme.buttons.global,
|
|
1508
|
-
palette
|
|
1509
|
-
});
|
|
1510
|
-
if (!result.ok) return {
|
|
1511
|
-
ok: false,
|
|
1512
|
-
error: {
|
|
1513
|
-
kind: "invalid-button-colour-contract",
|
|
1514
|
-
variantId: variant.id,
|
|
1515
|
-
cause: result.error
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
}
|
|
1519
|
-
return {
|
|
1520
|
-
ok: true,
|
|
1521
|
-
value: theme
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
|
-
//#endregion
|
|
1525
|
-
export { themeSchema as n, parseThemeForPersistence as t };
|
|
1935
|
+
export { asBoundaryOptionId as A, eventListTreatmentValues as C, tileTreatmentValues as D, isArrangementMode as E, asPageFlowPresetId as F, asSiteStyleId as I, makeBoundaryId as L, asDesignBoundaryId as M, asDesignSystemTemplateId as N, visibleHeadingDecorationFamilyValues as O, asLayoutVariantKey as P, arrangementModes as S, headingDecorationColorTokenValues as T, asHeaderLayoutId as _, headerVariantValues as a, pageDesignEditorBackgroundOverrideOwner as b, runtimeBoxBackgroundSchema as c, cardRoleValues as d, cardVariantRoleValues as f, asFooterLookId as g, surfaceCardRoleValues as h, themeSchema as i, asDesignBlockId as j, asAppearancePresetId as k, boxlessCardVariantValue as l, openCardRoleValue as m, containerStylesOverrideSchema as n, boxBackgroundOverlaySchema as o, itemRoleValues as p, sectionStylesOverrideSchema as r, boxBackgroundSchema as s, cardStylesOverrideSchema as t, cardRoleSchema as u, asHeaderStyleId as v, eyebrowTreatmentValues as w, siteChromeBackgroundOverrideOwner as x, bookingPageLookIdValues as y };
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createRiverbankClient } from "./client-
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { t as createRiverbankClient } from "./client-DCwLR0kQ.mjs";
|
|
2
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-C4I3ltU_.mjs";
|
|
3
|
+
import { t as loadPage } from "./loadPage-COvxWN0r.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-
|
|
2
|
-
import { A as cardDecorationPseudoRules, C as generateOpaquePanelCss, D as generateShadowCssVars, E as resolvedButtonFocusDeclarations, O as renderCssDeclarations, S as generateCheckableCss, T as resolvedButtonColourDeclarations, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, k as cardBorderDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, w as RESOLVED_BUTTON_DISABLED_DECLARATIONS, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-
|
|
1
|
+
import { M as onColorTokenName, N as getTextColorForBackground, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ht as textColorValue, i as formatButtonColourContractError, j as isOnColorBackgroundCandidateToken, n as compileButtonColourStates, tt as surfaceForegroundDeclarations, x as buttonVariantIdSchema } from "./resolveButtonColourStates-euZnRMIu.mjs";
|
|
2
|
+
import { A as cardDecorationPseudoRules, C as generateOpaquePanelCss, D as generateShadowCssVars, E as resolvedButtonFocusDeclarations, O as renderCssDeclarations, S as generateCheckableCss, T as resolvedButtonColourDeclarations, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, k as cardBorderDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, p as generateProgressCss, r as compileCustomCssRules, t as ThemeScopeCore, v as INPUT_GROUP_ERROR_SELECTOR, w as RESOLVED_BUTTON_DISABLED_DECLARATIONS, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-B7Ey6AWT.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { z } from "zod";
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as themeSchema$1 } from "./schema-CxBsE9Dv.mjs";
|
|
2
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Bk0o95m6.mjs";
|
|
2
3
|
import * as fs from "fs/promises";
|
|
3
4
|
import * as path from "path";
|
|
4
5
|
//#region src/theme/loader.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RichTextDocSchema, t as createRichTextDocFromMarkdown } from "./richTextSchema-
|
|
1
|
+
import { n as RichTextDocSchema, t as createRichTextDocFromMarkdown } from "./richTextSchema-QLaQrbII.mjs";
|
|
2
2
|
import { i as ALLOWED_TRANSFORM_IDS, n as ALLOWED_NODE_TYPES, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
3
3
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -369,7 +369,7 @@ const llmBaseFieldSchema = z.object({
|
|
|
369
369
|
label: z.string().min(1),
|
|
370
370
|
description: z.string().nullable(),
|
|
371
371
|
required: z.boolean(),
|
|
372
|
-
defaultValue:
|
|
372
|
+
defaultValue: z.nullable(jsonValueSchema)
|
|
373
373
|
});
|
|
374
374
|
/**
|
|
375
375
|
* Text field schema.
|
|
@@ -441,7 +441,7 @@ const llmNestedFieldSchema = z.object({
|
|
|
441
441
|
label: z.string(),
|
|
442
442
|
required: z.boolean().nullable(),
|
|
443
443
|
multiline: z.boolean().nullable(),
|
|
444
|
-
defaultValue:
|
|
444
|
+
defaultValue: z.nullable(jsonValueSchema)
|
|
445
445
|
}).passthrough();
|
|
446
446
|
const llmNestedFieldsSchema = z.array(llmNestedFieldSchema);
|
|
447
447
|
/**
|
|
@@ -521,9 +521,7 @@ function buildLlmNodeSchema(maxDepth) {
|
|
|
521
521
|
$repeat: llmRepeatSchema.nullable(),
|
|
522
522
|
$when: z.object({ condition: z.object({ from: z.string() }) }).nullable()
|
|
523
523
|
});
|
|
524
|
-
|
|
525
|
-
for (let i = 0; i < maxDepth; i++) schema = nodeBase.extend({ children: z.array(schema).nullable() });
|
|
526
|
-
return schema;
|
|
524
|
+
return Array.from({ length: Math.max(0, Math.ceil(maxDepth)) }).reduce((schema) => nodeBase.extend({ children: z.array(schema).nullable() }), nodeBase.extend({ children: z.null() }));
|
|
527
525
|
}
|
|
528
526
|
const llmNodeSchema = buildLlmNodeSchema(6);
|
|
529
527
|
/**
|
|
@@ -1757,6 +1755,11 @@ Output with repeater:
|
|
|
1757
1755
|
//#endregion
|
|
1758
1756
|
//#region src/manifest/passes/ai-helpers.ts
|
|
1759
1757
|
/**
|
|
1758
|
+
* AI Helper Functions
|
|
1759
|
+
*
|
|
1760
|
+
* Shared utilities for making structured LLM calls.
|
|
1761
|
+
*/
|
|
1762
|
+
/**
|
|
1760
1763
|
* Custom error class that includes the raw LLM response for debugging.
|
|
1761
1764
|
*/
|
|
1762
1765
|
var AiValidationError = class extends Error {
|
|
@@ -1810,7 +1813,7 @@ async function getJsonFromAiText(ai, config, userMessage, schema) {
|
|
|
1810
1813
|
} catch (err) {
|
|
1811
1814
|
throw new AiValidationError(`NON_JSON_RESPONSE: ${err instanceof Error ? err.message : String(err)}`, rawText, null);
|
|
1812
1815
|
}
|
|
1813
|
-
const result =
|
|
1816
|
+
const result = z.safeParse(schema, json);
|
|
1814
1817
|
if (!result.success) throw new AiValidationError(JSON.stringify(result.error.issues, null, 2), rawText, json);
|
|
1815
1818
|
return {
|
|
1816
1819
|
data: result.data,
|
|
@@ -3120,7 +3123,7 @@ async function convertHtmlToManifest(input, options) {
|
|
|
3120
3123
|
* ```
|
|
3121
3124
|
*/
|
|
3122
3125
|
function validateManifestOutput(data) {
|
|
3123
|
-
const parseResult =
|
|
3126
|
+
const parseResult = z.safeParse(htmlToManifestOutputSchema, data);
|
|
3124
3127
|
if (!parseResult.success) return {
|
|
3125
3128
|
valid: false,
|
|
3126
3129
|
errors: parseResult.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as builtinTransformDefinitions } from "./pageRenderPlan-CVCGTj5S.mjs";
|
|
2
|
+
import { Co as blockCategoryEnum, Do as validateManifestLookField, Eo as fieldSchema, To as builtInBlockKindsSchema, bo as NodeSchema, qo as parseMailingListProviderScope, t as getBlockDefinition, wo as blockSectionDeclarationShape, zi as RESOLVED_INTERNAL_LINK_ENTITY_TYPES } from "./registry-CaeRTf4E.mjs";
|
|
3
3
|
import { a as SUPPORTED_LOADER_ENDPOINTS } from "./responseMedia-t6gs0cB7.mjs";
|
|
4
4
|
import { r as footerModeSchema } from "./mode-bkFS8glh.mjs";
|
|
5
5
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
6
6
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-Cqp13TKc.mjs";
|
|
7
|
-
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-
|
|
7
|
+
import { t as SUPPORTED_LOADER_ENDPOINTS$1 } from "./prefetchBlockData-CbRsnhta.mjs";
|
|
8
8
|
import { n as BINDING_TRANSFORM_VALUES$1 } from "./bindings-DhmIW3Er.mjs";
|
|
9
|
-
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-
|
|
9
|
+
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-DkzOr19P.mjs";
|
|
10
10
|
import { i as safeParseRouteTemplate, t as describeRouteTemplateParseError } from "./routeTemplate-AsKQwa47.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
//#region ../site-contracts/src/blocks/sdkDeclaration.ts
|
|
@@ -226,14 +226,14 @@ const sdkCustomBlockInputSchema = z.object({
|
|
|
226
226
|
category: blockCategoryEnum,
|
|
227
227
|
icon: z.string().optional(),
|
|
228
228
|
tags: z.array(z.string()).optional(),
|
|
229
|
-
fields:
|
|
229
|
+
fields: z.array(fieldDefinitionInputSchema).min(1),
|
|
230
230
|
dataLoaders: sdkDataLoadersSchema$1,
|
|
231
|
-
layout:
|
|
231
|
+
layout: z.optional(NodeSchema),
|
|
232
232
|
...sdkBlockPresentationShape,
|
|
233
233
|
...blockSectionDeclarationShape
|
|
234
234
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration);
|
|
235
235
|
const sdkBlockFieldExtensionInputSchema = z.object({
|
|
236
|
-
fields:
|
|
236
|
+
fields: z.array(fieldDefinitionInputSchema).min(1),
|
|
237
237
|
...blockSectionDeclarationShape
|
|
238
238
|
}).superRefine(validateManifestLookField);
|
|
239
239
|
const sdkBlockFieldExtensionsInputSchema = z.record(z.string().min(1), sdkBlockFieldExtensionInputSchema);
|
|
@@ -1215,7 +1215,7 @@ const sdkCustomBlockSchema = z.object({
|
|
|
1215
1215
|
tags: z.array(z.string()).optional(),
|
|
1216
1216
|
fields: fieldSchema.array().min(1, "Custom blocks must have at least one field"),
|
|
1217
1217
|
dataLoaders: sdkDataLoadersSchema,
|
|
1218
|
-
layout:
|
|
1218
|
+
layout: z.optional(NodeSchema),
|
|
1219
1219
|
...sdkBlockPresentationShape,
|
|
1220
1220
|
...blockSectionDeclarationShape
|
|
1221
1221
|
}).superRefine(validateManifestLookField).superRefine(validateSdkBlockDeclaration).superRefine(validateCustomBlockPresentation);
|
|
@@ -1292,7 +1292,7 @@ const riverbankSiteConfigSchema = z.object({
|
|
|
1292
1292
|
blockFieldOptions: blockFieldOptionsSchema,
|
|
1293
1293
|
blockFieldExtensions: blockFieldExtensionsSchema,
|
|
1294
1294
|
workflows: sdkWorkflowsSchema,
|
|
1295
|
-
content:
|
|
1295
|
+
content: z.optional(contentConfigSchema),
|
|
1296
1296
|
contentDir: z.string().optional(),
|
|
1297
1297
|
sync: syncConfigSchema,
|
|
1298
1298
|
deploy: deployConfigSchema,
|