@riverbankcms/sdk 0.178.0 → 0.180.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/README.md +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -2
- package/dist/_dts/sdk/src/gifting/client.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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- 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 +3 -3
- 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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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 +1 -1
- package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { J as imageMediaSchema, K as assetMediaSchema, Q as videoMediaSchema, Y as mediaSchema, at as arrangementModes, ct as eyebrowTreatmentValues, dt as isArrangementMode, ft as tileTreatmentValues, it as accordionIconSetValues, lt as headingDecorationColorTokenValues, nt as accordionIconColorTokenValues, ot as decorativeTransitionIntentValues, pt as visibleHeadingDecorationFamilyValues, q as externalMediaSchema, rt as accordionIconMotionValues, st as eventListTreatmentValues, ut as headingDecorationOverrideValues } from "./src-o7WEvbK1.mjs";
|
|
3
|
+
import { C as paletteModeSchema, E as themeColorTokenSchema, O as VARIANT_ROLES, S as paletteColorsSchema, T as parseThemeColorToken, _ as hexColorSchema, b as paletteColorEntries, c as buttonEffectApplicationSchema, f as buttonVisualStatesSchema, l as buttonPressOffsetSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, v as isThemeColorToken, w as parseColorTokenParts, x as paletteColorsFromEntries } from "./types-BEaKfam_.mjs";
|
|
4
|
+
import { At as featuresFromHex, Ct as resolveOpaqueSurfaceHex, Et as requirePaletteColorsFromEntries, F as defineButtonStyleRecipe, I as mapButtonRoleAppearances, K as rgbColorValue, L as mapButtonVisualAppearances, Ot as preparePaletteColourIndex, St as resolveConcreteColorHex, Tt as paletteValueKeySchema, Y as resolveSurfaceForeground, _ as contextualButtonSurfaceResetStyles, _t as surfaceInkDeclarations, a as requireResolvedSurface, b as BUTTON_CONTRAST_POLICY, bt as freezeOwnedThemeValue, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, dt as SURFACE_INK_CSS_VARS, ft as surfaceForegroundDeclarations, h as scrimTone, ht as surfaceForegroundValue, i as prepareThemeSurfaceRevision, it as contrastThresholdByPolicy, j as ELEVATION_OFFSET, m as minimumScrimOpacity, o as resolveSurface, ot as expandPalette, p as gradientScrimSamples, t as parseResolvedSurface, u as surfaceTransportContext, ut as SURFACE_FOREGROUND_CSS_VARS, wt as paletteValueKey, xt as ownedThemeSnapshot } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../site-contracts/src/identity/designIds.ts
|
|
7
7
|
function asDesignBlockId(value) {
|
|
@@ -2452,6 +2452,87 @@ const themeSchema = z.object({
|
|
|
2452
2452
|
styleGroups: z.record(z.string(), z.array(z.string())).optional()
|
|
2453
2453
|
});
|
|
2454
2454
|
//#endregion
|
|
2455
|
+
//#region ../site-contracts/src/blocks/knobs.ts
|
|
2456
|
+
/** Block supply is capability, never a second Look catalogue. */
|
|
2457
|
+
const cardListBlockParts = {
|
|
2458
|
+
"block.feature-cards": [
|
|
2459
|
+
"media",
|
|
2460
|
+
"title",
|
|
2461
|
+
"text",
|
|
2462
|
+
"action"
|
|
2463
|
+
],
|
|
2464
|
+
"block.offerings-preview": [
|
|
2465
|
+
"media",
|
|
2466
|
+
"title",
|
|
2467
|
+
"text",
|
|
2468
|
+
"facts",
|
|
2469
|
+
"chips",
|
|
2470
|
+
"numeral",
|
|
2471
|
+
"schedule",
|
|
2472
|
+
"dates",
|
|
2473
|
+
"availability",
|
|
2474
|
+
"action",
|
|
2475
|
+
"date-stamp"
|
|
2476
|
+
],
|
|
2477
|
+
"block.appointment-services": [
|
|
2478
|
+
"media",
|
|
2479
|
+
"title",
|
|
2480
|
+
"text",
|
|
2481
|
+
"facts",
|
|
2482
|
+
"action"
|
|
2483
|
+
],
|
|
2484
|
+
"block.team-members": [
|
|
2485
|
+
"media",
|
|
2486
|
+
"title",
|
|
2487
|
+
"text",
|
|
2488
|
+
"facts",
|
|
2489
|
+
"chips",
|
|
2490
|
+
"action"
|
|
2491
|
+
],
|
|
2492
|
+
"block.shop": [
|
|
2493
|
+
"title",
|
|
2494
|
+
"text",
|
|
2495
|
+
"facts",
|
|
2496
|
+
"price",
|
|
2497
|
+
"action"
|
|
2498
|
+
]
|
|
2499
|
+
};
|
|
2500
|
+
const cardListFamilyBlocks = Object.keys(cardListBlockParts);
|
|
2501
|
+
const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
|
|
2502
|
+
const lookKnobBlocks = {
|
|
2503
|
+
actionStyle: cardListKnobBlocks,
|
|
2504
|
+
titleSize: "block.hero",
|
|
2505
|
+
imagePosition: [
|
|
2506
|
+
"block.hero",
|
|
2507
|
+
"block.intro",
|
|
2508
|
+
"block.media-text"
|
|
2509
|
+
],
|
|
2510
|
+
imageShape: ["block.intro", "block.media-text"],
|
|
2511
|
+
aspectRatio: "block.media-text",
|
|
2512
|
+
stickerLine: "block.hero",
|
|
2513
|
+
smallCaption: "block.hero",
|
|
2514
|
+
photoTint: "block.hero",
|
|
2515
|
+
candleGlow: "block.hero",
|
|
2516
|
+
columnGuides: "block.hero",
|
|
2517
|
+
showPhotos: cardListKnobBlocks,
|
|
2518
|
+
cardMarker: cardListFamilyBlocks,
|
|
2519
|
+
dates: "block.offerings-preview",
|
|
2520
|
+
grouping: "block.offerings-preview",
|
|
2521
|
+
columns: "block.feature-cards",
|
|
2522
|
+
listColumns: "block.event-calendar",
|
|
2523
|
+
blackAndWhite: "block.image-gallery",
|
|
2524
|
+
showCapacity: "block.event-calendar",
|
|
2525
|
+
alignment: "block.body-text",
|
|
2526
|
+
autoAdvance: "block.testimonials",
|
|
2527
|
+
quoteCount: "block.testimonials",
|
|
2528
|
+
archFrame: [
|
|
2529
|
+
"block.testimonials",
|
|
2530
|
+
"block.newsletter-signup",
|
|
2531
|
+
"block.form"
|
|
2532
|
+
],
|
|
2533
|
+
tilt: "block.testimonials"
|
|
2534
|
+
};
|
|
2535
|
+
//#endregion
|
|
2455
2536
|
//#region ../theme-core/src/tokens/resolver.ts
|
|
2456
2537
|
/**
|
|
2457
2538
|
* Resolves theme tokens to CSS variables
|
|
@@ -2704,87 +2785,6 @@ function inheritedSurfaceDeclarations(arrangement) {
|
|
|
2704
2785
|
].map((property) => `${property}: inherit;`);
|
|
2705
2786
|
}
|
|
2706
2787
|
//#endregion
|
|
2707
|
-
//#region ../site-contracts/src/blocks/knobs.ts
|
|
2708
|
-
/** Block supply is capability, never a second Look catalogue. */
|
|
2709
|
-
const cardListBlockParts = {
|
|
2710
|
-
"block.feature-cards": [
|
|
2711
|
-
"media",
|
|
2712
|
-
"title",
|
|
2713
|
-
"text",
|
|
2714
|
-
"action"
|
|
2715
|
-
],
|
|
2716
|
-
"block.offerings-preview": [
|
|
2717
|
-
"media",
|
|
2718
|
-
"title",
|
|
2719
|
-
"text",
|
|
2720
|
-
"facts",
|
|
2721
|
-
"chips",
|
|
2722
|
-
"numeral",
|
|
2723
|
-
"schedule",
|
|
2724
|
-
"dates",
|
|
2725
|
-
"availability",
|
|
2726
|
-
"action",
|
|
2727
|
-
"date-stamp"
|
|
2728
|
-
],
|
|
2729
|
-
"block.appointment-services": [
|
|
2730
|
-
"media",
|
|
2731
|
-
"title",
|
|
2732
|
-
"text",
|
|
2733
|
-
"facts",
|
|
2734
|
-
"action"
|
|
2735
|
-
],
|
|
2736
|
-
"block.team-members": [
|
|
2737
|
-
"media",
|
|
2738
|
-
"title",
|
|
2739
|
-
"text",
|
|
2740
|
-
"facts",
|
|
2741
|
-
"chips",
|
|
2742
|
-
"action"
|
|
2743
|
-
],
|
|
2744
|
-
"block.shop": [
|
|
2745
|
-
"title",
|
|
2746
|
-
"text",
|
|
2747
|
-
"facts",
|
|
2748
|
-
"price",
|
|
2749
|
-
"action"
|
|
2750
|
-
]
|
|
2751
|
-
};
|
|
2752
|
-
const cardListFamilyBlocks = Object.keys(cardListBlockParts);
|
|
2753
|
-
const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
|
|
2754
|
-
const lookKnobBlocks = {
|
|
2755
|
-
actionStyle: cardListKnobBlocks,
|
|
2756
|
-
titleSize: "block.hero",
|
|
2757
|
-
imagePosition: [
|
|
2758
|
-
"block.hero",
|
|
2759
|
-
"block.intro",
|
|
2760
|
-
"block.media-text"
|
|
2761
|
-
],
|
|
2762
|
-
imageShape: ["block.intro", "block.media-text"],
|
|
2763
|
-
aspectRatio: "block.media-text",
|
|
2764
|
-
stickerLine: "block.hero",
|
|
2765
|
-
smallCaption: "block.hero",
|
|
2766
|
-
photoTint: "block.hero",
|
|
2767
|
-
candleGlow: "block.hero",
|
|
2768
|
-
columnGuides: "block.hero",
|
|
2769
|
-
showPhotos: cardListKnobBlocks,
|
|
2770
|
-
cardMarker: cardListFamilyBlocks,
|
|
2771
|
-
dates: "block.offerings-preview",
|
|
2772
|
-
grouping: "block.offerings-preview",
|
|
2773
|
-
columns: "block.feature-cards",
|
|
2774
|
-
listColumns: "block.event-calendar",
|
|
2775
|
-
blackAndWhite: "block.image-gallery",
|
|
2776
|
-
showCapacity: "block.event-calendar",
|
|
2777
|
-
alignment: "block.body-text",
|
|
2778
|
-
autoAdvance: "block.testimonials",
|
|
2779
|
-
quoteCount: "block.testimonials",
|
|
2780
|
-
archFrame: [
|
|
2781
|
-
"block.testimonials",
|
|
2782
|
-
"block.newsletter-signup",
|
|
2783
|
-
"block.form"
|
|
2784
|
-
],
|
|
2785
|
-
tilt: "block.testimonials"
|
|
2786
|
-
};
|
|
2787
|
-
//#endregion
|
|
2788
2788
|
//#region ../theme-core/src/site-styles/types.ts
|
|
2789
2789
|
/**
|
|
2790
2790
|
* Defines a literal-preserving catalog while rejecting top-level extra keys on
|
|
@@ -4367,6 +4367,24 @@ const blockAppearancePresets = [
|
|
|
4367
4367
|
},
|
|
4368
4368
|
styleFallback: [id$1("media-text-photo-beside-text")]
|
|
4369
4369
|
}),
|
|
4370
|
+
defineArrangementLook("media-text-quote-beside-circle", "media-text", "Quote beside a round photo", "circle-beside", ["imagePosition"], {
|
|
4371
|
+
mediaFrame: { default: {
|
|
4372
|
+
kind: "fixed",
|
|
4373
|
+
aspectRatio: "1/1",
|
|
4374
|
+
borderRadius: "50%"
|
|
4375
|
+
} },
|
|
4376
|
+
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [
|
|
4377
|
+
sketch.title(.6),
|
|
4378
|
+
sketch.quote("small"),
|
|
4379
|
+
sketch.text(2),
|
|
4380
|
+
sketch.text(1, .5)
|
|
4381
|
+
])]),
|
|
4382
|
+
forcedKnobs: {
|
|
4383
|
+
imageShape: "circle",
|
|
4384
|
+
aspectRatio: "1/1"
|
|
4385
|
+
},
|
|
4386
|
+
styleFallback: [id$1("media-text-circle-beside-text"), id$1("media-text-photo-beside-text")]
|
|
4387
|
+
}),
|
|
4370
4388
|
defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, {
|
|
4371
4389
|
photoUse: "beside",
|
|
4372
4390
|
thumbnail: sketch.page([sketch.middle([
|
|
@@ -5098,6 +5116,24 @@ const blockAppearancePresets = [
|
|
|
5098
5116
|
}),
|
|
5099
5117
|
blockKinds: ["block.team-members"]
|
|
5100
5118
|
},
|
|
5119
|
+
{
|
|
5120
|
+
...defineCardListLook("team-members-person-rows", "One person per row, with facts", "stack", [
|
|
5121
|
+
"media",
|
|
5122
|
+
"title",
|
|
5123
|
+
"text",
|
|
5124
|
+
"facts"
|
|
5125
|
+
], ["showPhotos"], {
|
|
5126
|
+
thumbnail: sketch.page([sketch.down(2, [sketch.row(sketch.weight(2, [sketch.photo("medium", "circle"), sketch.card([sketch.text(3, .7)])]), sketch.weight(3, [
|
|
5127
|
+
sketch.title(.4, "small"),
|
|
5128
|
+
sketch.title(.6),
|
|
5129
|
+
sketch.text(4)
|
|
5130
|
+
]))])]),
|
|
5131
|
+
teamBiography: "profile",
|
|
5132
|
+
teamFacts: "person",
|
|
5133
|
+
styleFallback: [id$1("team-members-portrait-bio")]
|
|
5134
|
+
}),
|
|
5135
|
+
blockKinds: ["block.team-members"]
|
|
5136
|
+
},
|
|
5101
5137
|
{
|
|
5102
5138
|
...defineCardListLook("team-members-ruled-names", "Names in a ruled list", "index", [
|
|
5103
5139
|
"title",
|
|
@@ -6253,6 +6289,16 @@ function parseSchemaVersionedJson(input) {
|
|
|
6253
6289
|
};
|
|
6254
6290
|
}
|
|
6255
6291
|
asBoundaryOptionId("break:unknown");
|
|
6292
|
+
/**
|
|
6293
|
+
* Site style is site-owned authority. Page design snapshots retain pins and
|
|
6294
|
+
* flow choices, but must not keep resolving against a superseded site style.
|
|
6295
|
+
*/
|
|
6296
|
+
function rebasePageDesignIntentToSiteStyle(intent, siteStyleId) {
|
|
6297
|
+
return intent.siteStyleId === siteStyleId ? intent : {
|
|
6298
|
+
...intent,
|
|
6299
|
+
siteStyleId
|
|
6300
|
+
};
|
|
6301
|
+
}
|
|
6256
6302
|
z.object({
|
|
6257
6303
|
kind: z.literal("user-pinned"),
|
|
6258
6304
|
value: z.string().min(1).transform(asBoundaryOptionId)
|
|
@@ -20396,6 +20442,11 @@ const loomLooks = {
|
|
|
20396
20442
|
treatment: "team-ruled-names",
|
|
20397
20443
|
roleMap: loomRoles
|
|
20398
20444
|
},
|
|
20445
|
+
{
|
|
20446
|
+
id: id("team-members-person-rows"),
|
|
20447
|
+
treatment: "team-person",
|
|
20448
|
+
roleMap: loomRoles
|
|
20449
|
+
},
|
|
20399
20450
|
{
|
|
20400
20451
|
id: id("shop-price-cards"),
|
|
20401
20452
|
treatment: "shop-price-cards",
|
|
@@ -20451,6 +20502,11 @@ const poiseOffers = [
|
|
|
20451
20502
|
roleMap: poiseRoles,
|
|
20452
20503
|
itemRoles: { items: "card" }
|
|
20453
20504
|
},
|
|
20505
|
+
{
|
|
20506
|
+
id: id("team-members-person-rows"),
|
|
20507
|
+
treatment: "team-person",
|
|
20508
|
+
roleMap: poiseRoles
|
|
20509
|
+
},
|
|
20454
20510
|
{
|
|
20455
20511
|
id: id("shop-price-cards-featured"),
|
|
20456
20512
|
treatment: "prices-featured",
|
|
@@ -20892,6 +20948,11 @@ const havenOffers = [
|
|
|
20892
20948
|
roleMap: havenRoles,
|
|
20893
20949
|
itemRoles: { container: "card" }
|
|
20894
20950
|
},
|
|
20951
|
+
{
|
|
20952
|
+
id: id("team-members-person-rows"),
|
|
20953
|
+
treatment: "team-person",
|
|
20954
|
+
roleMap: havenRoles
|
|
20955
|
+
},
|
|
20895
20956
|
{
|
|
20896
20957
|
id: id("shop-price-cards-featured"),
|
|
20897
20958
|
treatment: "prices-featured",
|
|
@@ -21413,6 +21474,11 @@ const brookOffers = [
|
|
|
21413
21474
|
treatment: "team-names",
|
|
21414
21475
|
roleMap: brookRoles
|
|
21415
21476
|
},
|
|
21477
|
+
{
|
|
21478
|
+
id: id("team-members-person-rows"),
|
|
21479
|
+
treatment: "team-person",
|
|
21480
|
+
roleMap: brookRoles
|
|
21481
|
+
},
|
|
21416
21482
|
{
|
|
21417
21483
|
id: id("shop-price-cards"),
|
|
21418
21484
|
treatment: "prices",
|
|
@@ -22027,6 +22093,11 @@ const orbitOffers = [
|
|
|
22027
22093
|
treatment: "media-circle",
|
|
22028
22094
|
roleMap: orbitRoles
|
|
22029
22095
|
},
|
|
22096
|
+
{
|
|
22097
|
+
id: id("media-text-quote-beside-circle"),
|
|
22098
|
+
treatment: "media-quote",
|
|
22099
|
+
roleMap: orbitRoles
|
|
22100
|
+
},
|
|
22030
22101
|
{
|
|
22031
22102
|
id: id("media-text-photo-beside-text"),
|
|
22032
22103
|
treatment: "media-beside",
|
|
@@ -22047,6 +22118,12 @@ const orbitOffers = [
|
|
|
22047
22118
|
treatment: "team-names",
|
|
22048
22119
|
roleMap: orbitRoles
|
|
22049
22120
|
},
|
|
22121
|
+
{
|
|
22122
|
+
id: id("team-members-person-rows"),
|
|
22123
|
+
treatment: "team-person",
|
|
22124
|
+
slotRoles: { facts: "card" },
|
|
22125
|
+
roleMap: orbitRoles
|
|
22126
|
+
},
|
|
22050
22127
|
{
|
|
22051
22128
|
id: id("shop-price-cards"),
|
|
22052
22129
|
treatment: "prices",
|
|
@@ -22272,6 +22349,21 @@ const orbitOffers = [
|
|
|
22272
22349
|
treatment: "faq-open",
|
|
22273
22350
|
roleMap: orbitRoles
|
|
22274
22351
|
},
|
|
22352
|
+
{
|
|
22353
|
+
id: id("list-ticked-points"),
|
|
22354
|
+
treatment: "list-ticks",
|
|
22355
|
+
roleMap: orbitRoles
|
|
22356
|
+
},
|
|
22357
|
+
{
|
|
22358
|
+
id: id("list-two-columns"),
|
|
22359
|
+
treatment: "list-columns",
|
|
22360
|
+
roleMap: orbitRoles
|
|
22361
|
+
},
|
|
22362
|
+
{
|
|
22363
|
+
id: id("list-headed-cards"),
|
|
22364
|
+
treatment: "list-cards",
|
|
22365
|
+
roleMap: orbitRoles
|
|
22366
|
+
},
|
|
22275
22367
|
{
|
|
22276
22368
|
id: id("cta-text-in-panel"),
|
|
22277
22369
|
treatment: "cta-panel",
|
|
@@ -25236,7 +25328,10 @@ const curatedSiteStyles = [
|
|
|
25236
25328
|
defineCuratedSiteStyle({
|
|
25237
25329
|
id: "site-style:orbit",
|
|
25238
25330
|
name: "Orbit",
|
|
25239
|
-
offering: {
|
|
25331
|
+
offering: {
|
|
25332
|
+
kind: "client",
|
|
25333
|
+
siteSlugs: ["danu"]
|
|
25334
|
+
},
|
|
25240
25335
|
description: "Round photos with a ring around them, three dots above each heading, white rounded cards and pill buttons, with arcs where your bands of colour begin and end. For dance schools, movement classes and community studios.",
|
|
25241
25336
|
generationBrief: "Use warm, lively words in sentence case for the text, and keep headings short, because they are set in capitals. Say plainly who a class is for and that beginners are welcome, give real times, prices and places, and avoid fitness slogans and promises about results.",
|
|
25242
25337
|
headingDecoration: noHeadingDecoration,
|
|
@@ -25326,9 +25421,19 @@ function requireCuratedSiteStyle(id) {
|
|
|
25326
25421
|
function designRuntimeRulesForSiteStyle(siteStyle) {
|
|
25327
25422
|
return siteStyle?.designRuntimeRules ?? defaultDesignRuntimeRules;
|
|
25328
25423
|
}
|
|
25424
|
+
function designRuntimeRulesForTheme(theme) {
|
|
25425
|
+
const siteStyleId = theme?.siteStyleId;
|
|
25426
|
+
if (!siteStyleId) return defaultDesignRuntimeRules;
|
|
25427
|
+
return designRuntimeRulesForSiteStyle(requireCuratedSiteStyle(asSiteStyleId(siteStyleId)));
|
|
25428
|
+
}
|
|
25329
25429
|
function componentRuntimeRulesForSiteStyle(siteStyle) {
|
|
25330
25430
|
return siteStyle?.componentRuntimeRules ?? defaultComponentRuntimeRules;
|
|
25331
25431
|
}
|
|
25432
|
+
function componentRuntimeRulesForTheme(theme) {
|
|
25433
|
+
const siteStyleId = theme?.siteStyleId;
|
|
25434
|
+
if (!siteStyleId) return defaultComponentRuntimeRules;
|
|
25435
|
+
return componentRuntimeRulesForSiteStyle(requireCuratedSiteStyle(asSiteStyleId(siteStyleId)));
|
|
25436
|
+
}
|
|
25332
25437
|
function curatedStyleTemplate(input) {
|
|
25333
25438
|
return {
|
|
25334
25439
|
id: asDesignSystemTemplateId(`template:${input.id.replace("site-style:", "")}`),
|
|
@@ -25366,6 +25471,11 @@ function withTeamLooks(looks, roleMap) {
|
|
|
25366
25471
|
treatment: "team-names",
|
|
25367
25472
|
roleMap
|
|
25368
25473
|
},
|
|
25474
|
+
{
|
|
25475
|
+
id: id("team-members-person-rows"),
|
|
25476
|
+
treatment: "team-person",
|
|
25477
|
+
roleMap
|
|
25478
|
+
},
|
|
25369
25479
|
...looks.offers
|
|
25370
25480
|
]
|
|
25371
25481
|
};
|
|
@@ -25451,6 +25561,68 @@ function filterLookIdsForPolicy(policy, looks) {
|
|
|
25451
25561
|
default: return assertNever(policy, "Unhandled site style block policy");
|
|
25452
25562
|
}
|
|
25453
25563
|
}
|
|
25564
|
+
function requiredLookChoice(lookId) {
|
|
25565
|
+
return {
|
|
25566
|
+
kind: "user-pinned",
|
|
25567
|
+
value: lookId
|
|
25568
|
+
};
|
|
25569
|
+
}
|
|
25570
|
+
/**
|
|
25571
|
+
* Writes the look pins a locked-look site style requires.
|
|
25572
|
+
*
|
|
25573
|
+
* Boundary pins are never written: a site style's join rules
|
|
25574
|
+
* are resolved at read time by `resolvePageJoins`, so it shows as a default
|
|
25575
|
+
* and follows later changes to the style (issue 1422). Pins already stored,
|
|
25576
|
+
* including ones an earlier version wrote on the style's behalf, are left as
|
|
25577
|
+
* they are.
|
|
25578
|
+
*/
|
|
25579
|
+
function applySiteStyleBlockPoliciesToPageDesignIntent(intent, blocks) {
|
|
25580
|
+
const policyLookPins = blocks.flatMap((block) => {
|
|
25581
|
+
const policy = deriveSiteStyleBlockPolicy({
|
|
25582
|
+
siteStyleId: intent.siteStyleId,
|
|
25583
|
+
blockKind: block.blockKind
|
|
25584
|
+
});
|
|
25585
|
+
switch (policy.kind) {
|
|
25586
|
+
case "open": return [];
|
|
25587
|
+
case "locked-look-and-layouts": return [{
|
|
25588
|
+
blockId: block.blockId,
|
|
25589
|
+
blockKind: block.blockKind,
|
|
25590
|
+
choice: requiredLookChoice(policy.lookId)
|
|
25591
|
+
}];
|
|
25592
|
+
default: return assertNever(policy, "Unhandled site style block policy");
|
|
25593
|
+
}
|
|
25594
|
+
});
|
|
25595
|
+
if (policyLookPins.length === 0) return intent;
|
|
25596
|
+
const policyPinBlockIds = new Set(policyLookPins.map((pin) => pin.blockId));
|
|
25597
|
+
return {
|
|
25598
|
+
...intent,
|
|
25599
|
+
blockLookPins: [...intent.blockLookPins.filter((pin) => !policyPinBlockIds.has(pin.blockId)), ...policyLookPins]
|
|
25600
|
+
};
|
|
25601
|
+
}
|
|
25602
|
+
function planBlockContentVariantPolicyUpdate(input) {
|
|
25603
|
+
switch (input.policy.kind) {
|
|
25604
|
+
case "open": return { kind: "unchanged" };
|
|
25605
|
+
case "locked-look-and-layouts": {
|
|
25606
|
+
const currentVariant = typeof input.content.variant === "string" ? asLayoutVariantKey(input.content.variant) : null;
|
|
25607
|
+
return currentVariant && isLayoutVariantAllowedByPolicy(input.policy, currentVariant) ? { kind: "unchanged" } : {
|
|
25608
|
+
kind: "set-variant",
|
|
25609
|
+
variantKey: input.policy.defaultLayoutVariantKey
|
|
25610
|
+
};
|
|
25611
|
+
}
|
|
25612
|
+
default: return assertNever(input.policy, "Unhandled site style block policy");
|
|
25613
|
+
}
|
|
25614
|
+
}
|
|
25615
|
+
function applyBlockContentVariantPolicy(input) {
|
|
25616
|
+
const plan = planBlockContentVariantPolicyUpdate(input);
|
|
25617
|
+
switch (plan.kind) {
|
|
25618
|
+
case "unchanged": return input.content;
|
|
25619
|
+
case "set-variant": return {
|
|
25620
|
+
...input.content,
|
|
25621
|
+
variant: plan.variantKey
|
|
25622
|
+
};
|
|
25623
|
+
default: return assertNever(plan, "Unhandled block content variant policy plan");
|
|
25624
|
+
}
|
|
25625
|
+
}
|
|
25454
25626
|
//#endregion
|
|
25455
25627
|
//#region ../theme-core/src/site-styles/effectiveArrangement.ts
|
|
25456
25628
|
/** Content stage: legacy Looks leave arrangement to stored intent and defaults. */
|
|
@@ -26237,4 +26409,4 @@ function listItemPresentation(presentation, index, count, featured = false) {
|
|
|
26237
26409
|
} : presentation;
|
|
26238
26410
|
}
|
|
26239
26411
|
//#endregion
|
|
26240
|
-
export {
|
|
26412
|
+
export { navLinkHoverColorCandidate as $, cardListFamilyBlocks as $t, componentRuntimeRulesForSiteStyle as A, appearancePresets as At, gradientToCss as B, featureCardCompositionTreatmentValues as Bt, resolvePublishedLook as C, asSiteStyleId as Cn, parseCanonicalRuntimeBackground as Ct, deriveSiteStyleBlockPolicy as D, defaultHeroImageSurfaceTreatment as Dt, buildInitialPolicyPageDesignIntent as E, sectionSurfaceBase as Et, requireCuratedSiteStyle as F, defineBlockDesignCapability as Ft, footerForegroundCandidates as G, testimonialsCompositionTreatmentValues as Gt, resolveCardRole as H, offeringsPreviewCompositionTreatmentValues as Ht, compilePageRuntimeFields as I, defineExactCatalog as It, generateNavLinkCSS as J, opaqueSurfaceDeclarations as Jt, getNavLinkPreset as K, toNonEmptyReadonlyArray as Kt, compiledRuntimeStyleFieldNames as L, defineFrameCapability as Lt, designRuntimeRulesForSiteStyle as M, resolveEffectiveKnobs as Mt, designRuntimeRulesForTheme as N, lookModes as Nt, filterLayoutProfilesForPolicy as O, stripStaleTransitionStyleGroup as Ot, getCuratedSiteStyle as P, assertNever as Pt, generateInteractiveChildInheritanceCSS as Q, TokenResolver as Qt, stripCompiledRuntimeStyleFields as R, defineNoBlockDesignCapability as Rt, resolveModeArrangement as S, asPageFlowPresetId as Sn, deriveSectionGround as St, applySiteStyleBlockPoliciesToPageDesignIntent as T, sectionForegroundBackground as Tt, generateDefaultCardSystem as U, plainFrame as Ut, getGradientPreset as V, introCompositionTreatmentValues as Vt, generateFooterCss as W, sectionBackgroundPaintValues as Wt, resolveEffectApplications as X, surfaceToneFromForegroundToken as Xt, generateEffectsCSS as Y, selectLogoVariant as Yt, resolveEffectPaint as Z, arrangementSlotNames as Zt, resolveLookForBlock as _, asHeaderStyleId as _n, spaciousBoundaryOption as _t, resolvedItemSurfaceProps as a, customCssRuleSchema as an, resolvePageDesignBoundaryChoice as at, readStoredMode as b, asDesignBlockId as bn, transitionCatalogueEntries as bt, resolveLookSurfacePresentation as c, runtimeBoxBackgroundSchema as cn, sectionShapeFromContent as ct, arrangementLookHooks as d, cardVariantRoleValues as dn, boundaryOptions as dt, cardListKnobBlocks as en, navLinkOwnsHoverForeground as et, arrangementStyleAvailability as f, itemRoleValues as fn, boundaryRuntimeMetricsForDecorativeTransition as ft, resolveArrangementLookForBlock as g, asHeaderLayoutId as gn, softBoundaryOption as gt, getCompatibleBlockAppearancePresets as h, parseGradientPresetId as hn, noneBoundaryOption as ht, lookListPresentationSchemaShape as i, blockCustomCssRuleSchema as in, resolvePageDesignBlockLookChoice as it, componentRuntimeRulesForTheme as j, blockAppearancePresets as jt, filterLookIdsForPolicy as k, themeV2CompilerOwnedFieldNames as kt, selectItemSurfacePresentation as l, boxlessCardVariantValue as ln, sectionShapeHook as lt, compileArrangementLookRuntime as m, surfaceCardRoleValues as mn, isDecorativeTransitionIntent as mt, listLookControl as n, themeSchema as nn, parsePageDesignIntent as nt, itemRole as o, boxBackgroundOverlaySchema as on, pageDesignDecisionsV2Schema as ot, automaticArrangementLook as p, openCardRoleValue as pn, boundaryTreatmentForBoundaryOptionId as pt, buildTextContrastShadow as q, opaqueSurfaceContextFromTheme as qt, listLookSlot as r, headerVariantValues as rn, rebasePageDesignIntentToSiteStyle as rt, lookPresentationOnPalette as s, boxBackgroundSchema as sn, sectionShapeForGround as st, listItemPresentation as t, sectionStylesOverrideSchema as tn, navLinkOwnsUnderline as tt, arrangementAppearancePresets as u, cardRoleSchema as un, boundaryOptionForTransitionIntent as ut, styleSectionBackgroundForColour as v, siteChromeBackgroundOverrideOwner as vn, transitionIntentForTreatment as vt, applyBlockContentVariantPolicy as w, makeBoundaryId as wn, resolveSectionBackground as wt, resolveEffectiveArrangement as x, asLayoutVariantKey as xn, applyLookPhotoTreatment as xt, arrangementManifestFromVariants as y, asAppearancePresetId as yn, anglePolygonCss as yt, surfaceResolutionContextFromTheme as z, designIssueSeverityForPolicy as zt };
|
package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Dn as parseMailingListVisitorSelection,
|
|
3
|
-
import {
|
|
2
|
+
import { Dn as parseMailingListVisitorSelection, r as newsletterBlockSubmissionMessage, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-o7WEvbK1.mjs";
|
|
4
4
|
import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
6
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
7
|
-
import { S as clsx } from "./ThemedButton-
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-DtKdUdkO.mjs";
|
|
6
|
+
import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
7
|
+
import { S as clsx } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
8
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
9
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
9
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-OBqsfT24.mjs";
|
|
10
10
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
12
12
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|